Posts

Showing posts from 2012

Activate copies of Office 2010 which utilizes cscript on PlayOnLinux

Click on "Config" in the PlayOnLinux main screen. Then select the Wine tab on the right window, and select "Registry Editor". Under [HKEY_LOCAL_MACHINE\Software\Microsoft\OfficeSoftwareProtectionPlatform] Insert: "KeyManagementServiceName REG_SZ " [[Licence server]] "KeyManagementServicePort REG_SZ " [[ Port of the licence server]] Start MS Office (i.e. Word). Then the following entry will be automatically created: [HKEY_USERS\S-1-5-20\Software\Microsoft\OfficeSoftwareProtectionPlatform] Insert: "VLRenewalSchedule REG_BINARY " [[Any value]] Close MS Office completely and restart it. Reference

Program to allow old computer to boot with USB driver

Plop

Useful Linux applications

WinFF - play .trp media files   AcetoneISO - dump CD/DVD Hugin - stitch photos

Problem running OpenGL program in a virtual machine

In case you encounter the following issue when running OpenGL program in a virtual machine OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x180fb10 OpenGL Warning: Retry with 0x8002 returned 0 visuals Segmentation fault (core dumped) You may set the LIBGL_ALWAYS_INDIRECT environment variable to 1 before running my GLUT programs, as follows. export LIBGL_ALWAYS_INDIRECT=1 Reference

cannot start eclipse in Ubuntu 12.04 -- java.lang.UnsatisfiedLinkError: Could not load SWT library.

The needed stuff are under /usr/lib/jni/ folder. One needs to symlink them in and it worked. ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/ Reference

Run 32-bit executables on 64-bit Linux

Look for the package/library called ia32.

Ubuntu 12.04 wired internet connection no longer works

Image
My solution: Right-click on the "network manager" applet icon on the top of the ubuntu panel. Select "Edit connection". Delete the respective entry under the "Wired" tab. Then depending on your connection type, you may be able to have the connection auto-detected. In that case, click on the "network manager applet icon again and select that auto-detected item (e.g. Auto ethernet). Then it is suddenly all set.

Add back "Show Desktop" icon in Gnome Fallback session of Ubuntu 12.04

Holding both Alt and Super (Windows) keys, right-click on the top or bottom panel. Select the appropriate icon. Reference

Cannot detect blank disc when using brasero in Linux gnome environment

It appears that there is a problem between brasero and the Gnome file manager nautilus. In case you encounter similar problems, use xfburn instead. But that your Linux machine may lose the capability to open a burned DVD disc automatically. In that case, mount the disc by yourself. To load a disc: mkdir /mnt/cdrom mount /dev/cdrom /mnt/cdrom To unload a disc umount /mnt/cdrom

ffmpeg convert from flv to mp4

ffmpeg -i input.flv output.mp4 Ref: here

Set up gcc/g++ for Matlab in Ubuntu 11.10

Please check here and here .

AutoHotkey: open-source utility to remap gampad input to button input

Please check here for the program. Below is a sample script to translate both gamepad axis and button inputs. ======== ; Autohotkey Script that matches a few joypad buttons to keyboard events ; Instruction: ; 1) Identify the Joypad buttons that you want to use ; The sample script at ; http://www.autohotkey.com/docs/scripts/JoystickTest.htm ; provides a good way for you to find out the mapping ; 2) Modify Part 0 and Part 1 accordingly. ; 3) Enjoy! #Persistent ; Keep this script running until the user explicitly exits it. ; Part 0: turbo key config ; State if any keys need turbo ('Y' if needed) TurboJoy4 = N TurboJoy1 = N TurboJoy8 = N TurboJoy3 = N TurboJoy2 = Y TurboJoy6 = N ; main routine SetTimer, Watch, 5 return ; Watch method Watch: SetKeyDelay -1 ; Avoid delays between keystrokes. ; Part 1: key mapping routine each JoyX to be used ; Joy4 -> 'Q' GetKeyState, Joy4, Joy4 Joy4PPrev = %Joy4P% if Joy4 = D { if TurboJoy4 = Y { Send {Q down}

Look for packages that contain a certain file in Ubuntu

Install package apt-file sudo apt-get install apt-file apt-file update To look for a file, says tk.h, use the following command apt-file search tk.h Reference

MATLAB - cannot find libstdc++ when running external C/C++ program

Error message: ..../sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ...) Solution: Start MATLAB with following command LD_PRELOAD = "Dirlocation"/libstdc++.so.6 "DirForMATLAB_Shell"/matlab For example: libstdc++.so.6 located on "/usr/lib/i386-linux-gnu/" MATLAB is located on " /opt/matlab2011b/bin" Start MATLAB by following command: LD_PRELOAD=/usr/lib/i386-linux-gnu/libstdc++.so.6 /opt/matlab2011b/bin/matlab Reference

Geotag photos automatically

An existing Android app is here . Another existing app in the market is here . Yet another existing app in the market is here . The API to use to access GPS info is here . Orientation (bearing) is accessed via this function .

Note on developing Android app using Linux, Eclipse and HTC Evo View 4G

Using hardware device here Solving "no permission" problem when working with "./adb devices -> no permissions" Check here