Posts

Showing posts from 2015

Install gcin on Raspbian

Run the following command in a terminal sudo apt-get install gcin im-config imconfig Choose gcin as the default input method. Logout and log in again.

Useful iPhone Open Source/Ad Free apps

View your iphone SMS on a Windows PC: all your text Navigation app that allows offline destination search and turn by turn navigation: maps.me

Sleeping Dogs Definitive Edition Crashes in Windows 10 -- workaround

The trick is to disable the "Touch Keyboard and Handwriting Panel Service" service. For those who don't know how to disable the service, here is one way: Open Control Panel -> System and Security -> Administrative Tools -> Services. There, look for the service called "Touch Keyboard and Handwriting Panel Service". Right click on it and select "stop" to stop the service. You may also ban the service from automatically starting there. Note that you need to disable the service before starting steam. Reference

Windows server 2012 on ASUS N550JV

Follow the instruction here in general. Then download the following drivers from the ASUS support page . For the Nvidia graphics card to work, install the V9.18.13.1193 version of the Nvidia driver under Windows 8, VGA. You may need a few reboot to finally get the driver working. For Direct X to be fully functional, follow the instruction here to install missing .dlls. For Xbox 360 controller: Use the Windows 7 driver available here . Indeed I can't get the controller in any steam games however. I use xb360ce as a workaround. For the radio control driver, use ATK4001 . Bluetooth is not supported on Windows server 2012.

Install additional codec for Ubuntu

sudo apt-get install ubuntu-restricted-extras sudo apt-get install libdvdread4 sudo /usr/share/doc/libdvdread4/install-css.sh sudo apt-get install gstreamer0.10-ffmpeg sudo apt-get install w64codecs sudo apt-get update Reference

Creating USB installed Ubuntu bootable in both UEFI and legacy BIOS mode

Resouces the instruction that I am following GPartd tutorial My notes on the steps Step A: Format the USB stick as required. Boot GPartd. Select the USB stick. If there is a key icon next to any partitions of the stick, unmount the USB stick from either the Linux system or GPartd. Select Partition, then Create new partition. Use the default DOS-favor of partition table. Create the first FAT32 partition of size 1-2GB, with label usb-live at the front. Confirm and make the change before you can right click, select "Manage flag" and make it bootable. Use the remaining space to create a extended partition. From within create the ext4 partition with label usb-installed, and then linux-swap. Note the order is important. The ext4 partition will then move to partition 6 rather than partition 5 if you reverse the order. Step B Straightforward Step C Make sure you detach all the other disks of your PC before booting using the USB. If you come across error when usi

Convert format, resize vdi and set uuid of virtual disks in VirtualBox

Convert format: VBoxManage clonehd source.vdi target.vmdk --format VMDK Resize vdi: VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB   Set harddisk uuid: vboxmanage internalcommands sethduuid "Windows 8.1 Pro.vdi" f8acb710-46c9-4d77-b7d3-52a1845d06c7

Set custom time for VirtualBox virtual machines

Open VirtualBox and identify the name of the virtual machine that you want to work on. Go to the VirtualBox executable page (In Windows, it is usually C:\Program Files\Oracle\VirtualBox). Run the following command to stop the VM to sync its clock with the host. VBoxManage setextradata "My Virtual Machine" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1 Use the following command to set the time offset between the host and the guest. A positive value will set the time of the virtual machine ahead of the host. BoxManage modifyvm "VM name" --biossystemtimeoffset Reference

[WIP] Plop Boot Manager to add boot capability on devices not supported by BIOS

The Linux utility adds boot capability on devices not supported by BIOS. Download location: https://www.plop.at/en/bootmanager/download.html Reference

Enable NTFS write on Mac OSX

Open /etc/fstab for writing sudo nano /etc/fstab Add the following line to the file LABEL=NAME none ntfs rw,auto,nobrowse Unmount and attach the NTFS drive. Open the folder where it is mounted. open /Volumes Reference

USB Live Linux on Mac

Create an UEFI Live Linux USB Use Mac Linux USB Loader to turn a FAT32 USB drive to a UEFI Live Linux system. Use the same software, or the steps in this guide to build files for persistence (useful if you want to keep additional driver and software packages and custom settings after reboot). You can only create at most 4GB of persistence storage with the FAT32 USB drive. Get WiFi working To get the wifi driver working, use a thunderbolt to Ethernet adaptor to get the Mac connected to the Internet. Get the following apt packages to get the wifi device working. sudo apt-get install linux-firmware-nonfree b43-fwcutter firmware-b43-installer More information is available in this reference . The reference also contains instruction to install the driver for those who don't have the thunderbolt to Ethernet adaptor. Utilize the remaining space on the USB The remaining space on the UEFI USB Live Linux can't be used unless it is on a partition other than the one that sto

Asus N550JV-DB72T BIOS Settings to allow booting of non-UEFI devices

Disable fast boot and secure boot Enable CSM

Windows 10 useful installation information

Direct Windows 10 ISO download location: https://www.microsoft.com/en-us/software-download/windows10ISO Fix the "Setup couldn't start properly" problem while using the Windows 10 media creation tool to update: http://www.addictivetips.com/windows-tips/fix-the-setup-couldnt-start-properly-error-when-downloading-windows-10/ Stop Windows 10 from using your network bandwidth for updating others' PC: http://www.pcworld.com/article/2955491/windows/how-to-stop-windows-10-from-using-your-pcs-bandwidth-to-update-strangers-systems.html

rip dvd movie disc on Ubuntu Linux

1) [Optional] Install libdvdread4 sudo apt-get install libdvdread4 2) Install dvd::rip sudo apt-get install dvdrip 3) Start dvdrip dvdrip 4) Start a new project 5) In RIP Title tab, select the file that you want to rip. Then click on the "Rip selected title(s)/chapter(s) button. Reference Alternative using Handbrake: http://lifehacker.com/5809765/how-to-rip-a-dvd-to-your-computer 

Create Windows to go

New method through ESD https://github.com/gus33000/ESD-Decrypter http://www.intowindows.com/create-bootable-usb-of-windows-10-from-esd/ Prerequisites Install ImageX through http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=2525084&kbln=en-us Steps 1) Mount the Windows install media ISO. From the source directory, locate the install.vim file. 2) Run the following command to apply the install media to the USB drive: :\imagex /check /verify /apply :\MyImage.wim 1 C:\ 3) Make sure the USB drive is marked active. 3) Create boot entry X: cd Windows\system32 bcdboot.exe X:\Windows /s X: /f ALL References: http://www.eightforums.com/tutorials/5349-windows-8-go-setup-usb-flash-drive-usb-disk.html https://www.howtogeek.com/196817/how-to-create-a-windows-to-go-usb-drive-without-the-enterprise-edition/  https://msdn.microsoft.com/en-us/library/jj979690(v=winembedded.81).aspx

Adafruit Si5351 clock generation usage

Main tutorial Additional note: Before running the example, download the Adafruit sensor library and put the  .cpp and .h file to the Si5351 library.

Open source file undelete program

testdisk + photorec Installation on Ubuntu: sudo apt-get install testdisk References: http://www.cgsecurity.org/wiki/Undelete_files_from_NTFS_with_TestDisk http://www.linux.org/threads/undelete-files-on-linux-systems.4316/

Convert pidgin conversation log to Adium format (pidgin2adium.py)

Source code download Usage: Obtain a copy of your pidgin conversation log folder (See "Pidgin conversation log location" below on how to locate it on Windows). Also identify the location of the Adium conversation log. Put BeautifulSoup.py (from BeautifulSoup 3 ) and this file in the same folder. Edit the user input parameters section and the Adium specific parameters section if needed. Then run python pidgin2adium.py . You may choose to use options to override the parameters. python pidgin2adium.py --indir INDIR --outdir OUTDIR --username IMACCOUNTUSERNAME --domain IMACCOUNTDOMAIN --service IMSERVICEPROTOCOL   Pidgin conversation log location: For Windows 2000/XP/Vista/7, entering %APPDATA% in your Windows Explorer address bar will take you to the right directory. Windows XP -- C:\Documents and Settings\USERNAME\Application Data . Windows Vista/7 -- C:\Users\USERNAME\AppData\Roaming . Windows 98/ME -- C:\Windows\Profiles\username . The default can be

github commands quick reference

Get into a repo and commit code there. Scenario 1: If you have your NEW empty github or other git repo ready:- cd "/your/repo/dir" git clone https://github.com/user_AKA_you/repoName # (creates /your/repo/dir/repoName) cp "/all/your/existing/code/*" "/your/repo/dir/repoName/" git add -A git commit -m "initial commit" git push origin master Scenario 2: If you have an existing local git repo cd "/your/repo/dir/repoName" #add your remote github or other git repo git remote set-url origin https://github.com/user_AKA_you/your_repoName git commit -m "new origin commit" git push origin master Delete a file from the repo git rm file1.txt git commit -m "remove file1.txt" Reference: 1 , 2

Testing location-based Android apps via AVD devices

Enable telnet on Windows 8: http://www.sysprobs.com/install-and-enable-telnet-in-windows-8-use-as-telnet-client Setting gps location of AVD devices: http://stackoverflow.com/questions/2279647/how-to-emulate-gps-location-in-the-android-emulator Installing external apk: http://stackoverflow.com/questions/17167636/how-to-install-a-apk-on-emulator-in-android-studio. For Android studio, the path to adb is C:\Users\ \AppData\Local\Android\sdk\platform-tools\adb.  An alternative is to use genymotion. You can set the GPS location conveniently through its UI. APK install is as simple as dragging the apk file from your local computer to

Calling PL/SQL functions with boolean output in cx_Oracle

PL/SQL functions with boolean output can't be called through the cursor.callfunc() method in cx_Oracle library. To overcome that, one needs to make use of a PL/SQL block. Here the PL/SQL function that returns a boolean has the following function prototype. FUNCTION is_correct RETURN BOOLEAN The python script using cx_Oracle sel = """ begin   if (is_correct())   then dbms_output.put_line('Yes');   else dbms_output.put_line('No');   end if; end; cursor.callproc("dbms_output.enable") cursor.execute(sel) statusVar = cursor.var(cx_Oracle.NUMBER) lineVar = cursor.var(cx_Oracle.STRING) cursor.callproc("dbms_output.get_line", (lineVar, statusVar)) if statusVar.getvalue() == 0:   sr = lineVar.getvalue()   print sr Reference

Sleeping dogs definitive edition + xbox360ce

Below please find how I get my PS2 controller to work with Sleeping Dogs Definitive Edition (platform: Windows 8.1 Steam) successfully. Make sure you have Visual Studio 2013 redistributables installed. You can install them from http://www.microsoft.com/en-us/download/details.aspx?id=40784. Download the xb360ce application (the 64-bit library version) at https://code.google.com/p/x360ce/downloads/list Unzip x360ce.App and put x360ce_x64.exe under C:\Program Files (x86)\Steam\SteamApps\common\SleepingDogsDefinitiveEdition\. Download https://x360ce.googlecode.com/svn/trunk/x360ce/Support/x360ce.gdb and put it under C:\Program Files (x86)\Steam\SteamApps\common\SleepingDogsDefinitiveEdition\. Make sure you find the following lines in the file. [SDHDShip.exe] Name = Sleeping Dogs: Definitive Edition HookMask = 0x00000002 Run x360ce_x64.exe that you put to C:\Program Files (x86)\Steam\SteamApps\common\SleepingDogsDefinitiveEdition\. Go to the Game Settings tab. Check the appropriat