Monday, July 19, 2010

Creative Web Cam VF0330 not working with Skype

This weekend I tried to have a video call with my sister that unfortunately didn't work. What happened? Skype didn't like my Creative Webcame VF0330! why do I blame Skype? cause Kopete doesn't have to have any issues with it ;)

So after a couple of hours of googling and I ended up stuck while trying to compile the Ov51xJPEG hacked driver, then after reading a little bit more I found the following forum entry with a pretty simple solution to my problem:

First I renamed the old skype executable:

 sudo editor /usr/bin/skypemv /usr/bin/skype /usr/bin/skypewithoutcam  

Then I created the new executable


 sudo editor /usr/bin/skype  

And included the following code

 LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so /your-skype-folder/skypewithoutcam  

That's it! enjoy your video calls ;)

Sunday, May 16, 2010

OpenJDK or Sun's JDK?

Did you just install Ubuntu and noticed that OpenJDK is the default Java Virtual Machine? I have nothing against OpenJDK but some programs require the Sun version.

The good news is that you don't have remove neither of them cause both can live happily next to each other and all it takes to switch from one version to another is the following command:

sudo update-alternatives --config java 

Wednesday, May 12, 2010

Number of files and folders in a Linux folder

Recently I transfered a folder with big a mount of archives and something seemed to be missing, obviously I wanted to verify that the amount of files was correct and probably just like you, I couldn't find a simple Linux command to help me with this, in fact I found crazy commands like:

"echo $(($(ls -l | grep -v ^d | wc -l)-1))"

Until I found the simple and elegant "tree", if you don't have it already just run a simple:

"sudo apt-get install tree"

And then you'll have the simple response you were looking for:

"234 directories, 1786 files"

Simplest way to test mod_rewrite in Apache

Are you looking for a way to test if mod_rewrite is enabled in your Apache server? here is an easy one, create a .htaccess file in a folder like for example "www/rewrite_test_folder" with the following code in it:

Options +FollowSymLinks
RewriteEngine On

Then try to access it via http://localhost/rewrite_test_folder and you should get one of these:

- No errors, mod_rewrite engine is enabled
- 500, Internal Server Error, this means that mod_rewrite was not installed/enabled in your computer

Tuesday, May 4, 2010

First 5 minutes with Kubuntu Lucid Lynx




                         

During the weekend I ran into the news that Lucid Lynx 10.04 LTS, the new upgrade of Ubuntu, was already available. As a Linux fan this is always good news, but at the same time I'm wary about bugs an problems that can delay what I'm doing at the moment or even break something and make my system unusable for a couple of days.
  
It was time to check the features included in this version and see if they were interesting enough to make me go “lucid”.

It turned out that most of the things were already somehow available for me, but what mainly caught my attention was the new Ubuntu One music store, open for many European countries including Estonia, unfortunately not so sure about Venezuela and other Latin American countries yet.

One of the best things of the store is that it will be synched with Ubuntu One, the cloud storage solution offered by Canonical, which means that all my songs will be available in my work and personal computer automatically. Besides this, if you buy through the store you’ll get to help the Iberian Lynx:

“To contribute to the charity all you have to do is buy a track at the normal cost. That's it. Canonical will give away 50% of our take of the revenue up to a total of $1004. You can of course directly contribute to the charity if you prefer.”

After reading all this I decided to go for the upgrade, which took around 7 hours with a 80KB/s average download speed and around 1 hour to install, remove deprecated packages and configure the whole thing. In the end, it was the smoothest upgrade ever! Though I have to warn that some people with dual partition (I removed Windows a while ago) have had problems after reboot, so it might be wise for you to check this out before doing it.

My first impression? Awesomeness! The UI seems more stable and integrated, boot up time reduction is obvious, in general you can feel that it was totally worth doing the upgrade J

So that’s it, I hope this gives you enough interest to give a try to the new Lucid Lynx!

Saturday, March 27, 2010

Enabling Curl with PHP on Windows

Today I was installing Zen Cart when I ran into this error message:

CURL not compiled into PHP - notify server administrator
 
Even though it is quite simple to solve the problem, it took me a while to find this. That's usually a good sign that I should write it down ASAP so here it goes

1) remove ';' from extension=php_curl.dll in php.ini
2) ensure that  ssleay32.dll and libeay32.dll are in Windows/system32.
3) Copy php_curl.dll into Windows\System32 as well.


I hope it helps

Sunday, March 14, 2010

How to synchronize FTP files using Notepad++

Lately I have been working on the migration of a website to a new platform, which required me to modify many files through FTP or remote desktop, most of the times I do this on my Linux computer using Kate which already updates the file on the FTP folder without any issues.

This time I'm working on a Windows XP machine and Notepad++ doesn't include this feature out of the box. Fortunately there are many plugins for Notepad++ and FTP_synchronize can solve this problem for me, here goes basic info on how to install it and use it;

1.- Download FTP_synchronize here
2.- Unzip it and depending on your system copy the file "FTP_synchronizeA.dll" (Win9x/WinME) or "FTP_synchronize.dll" (Windows NT) to "C:\Program Files\Notepad++\plugins"
3.- Restart Notepad++
4.- Click on the new button in the toolbar that says "Show FTP folders"
5.- Click on the "Settings" button
6.- Add a new profile using your info (user, password, server, initial folder, etc) and click on "OK"
7.- Click on the "Connect" button and choose the profile you just created.

    Now you have access to your FTP folder from within Notepad++ and every time you  click on "Ctrl + S" the changes will be updated in the server.