# Become root sudo -i # Do a couple of pre-requisites apt-get install build-essential ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h # Extract each of the VMware module packages cd /usr/lib/vmware/modules/source for file in * do tar xvf $file done # Fetch and apply patches required for this release... wget http://communities.vmware.com/servlet/JiveServlet/download/2234875-108182/vmci.linux-3-8.patch patch -p0 < vmci.linux-3-8.patch # Put the VMware module source packages back together again for file in *-only do tar cvf `basename $file -only`.tar $file done rm -rf *-only # Tell VMware to rebuild the modules - can also just run the command "vmware" as root vmware-modconfig --console --install-all
SELECT * FROM table_name a WHERE EXISTS ( SELECT 1 FROM table_name b WHERE b.name = a.name LIMIT 1 , 1 ) ORDER BY name ASC
You can make it possible to mount HFS+ as Read and Write in Ubuntu Linux.
sudo apt-get install hfsplus
Then, use the -o force option to force the drive to mount:
sudo mount -o remount, force /dev/sdX /your/mount/point
There are a few possible causes including problems with mod_security.. however, if you are working behind a .htaccess/.htpasswd files to protect your site, you need to allow POST calls to go through; they’re being blocked b/c the AJAX call doesn’t know to use your cookie.
<LimitExcept POST> Require valid-user </LimitExcept>
to your .htaccess and you should be good to go.
I needed to see the changes to a folder in realtime and after a bit of looking around, i've found this solution:
watch -d -n 1 'df; echo " "; echo "Local folder updates:"; ls -FIAt;'
If you want to refresh at longer intervals (not 1s as it is now) all you have to do is change the value of the -n parameter as so:
watch -d -n 10 'df; echo " "; echo "Local folder updates:"; ls -FIAt;'
This will show you the changes to the current folder every 10s.
After installing the Google Talk plugin, run the following to add an override for your video settings.
sudo echo "O3D_OVERRIDE_RENDER_MODE=2D" >> /opt/google/talkplugin/envvars
Use sudo if necessary. Restart your browser after doing this and check to see if you can see video streams now.
Go to Tools -> Plugins -> Settings -> Add
Name: Java Ayanata
then install the plugin
more details: http://danjared.wordpress.com/netbeans/
I had a bunch of image files A01.jpg, A02.jpg and so forth that i needed created into a PDF. ImageMagick to the rescue:
cd /path/to/jpgs convert -define pdf:use-trimbox=true *.jpg batbox.pdf
I've looked into Sublime text 2 today, mostly unhappy with the speed Java based IDEs have on linux 64bit. When launching it, although I chose "keep in launcher", the icon does not stay there, so i created a custom launcher.
Create a file sublime2.desktop and save it in ~/.local/share/applications. The file should look like this:
#!/usr/bin/env xdg-open [Desktop Entry] Name=Sublime Text Editor Comment=Sublime Text Editor Exec="/usr/bin/sublime" %F MimeType=text/plain; Terminal=false Type=Application Icon=/home/mimir/sublime.png Categories=GNOME;GTK;Utility;TextEditor;Development;Utility;
You can find the link to the icon here: http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/sublime.png
Make sure to change the Exec path, to where you have installed Sublime2. I've installed in /opt but i've symlinked in /usr/bin
While working on a ZF application, i had some models under the wrong namespace, and changing all the files from Default namespace to Application would have taken me ages. After a bit of google-ing i've found this great perl onliner:
perl -p -i -e 's/Default_/Application_/g' `find ./ -name '*.php'`