Posts

Showing posts from 2014

Getting Wiimote to work on Ubuntu 14.10

Install xwiimote and blueman. Use blueman (Bluetooth Manager) to ad the wiimote. When add, choose add without pairing. Connect the wiimote using blueman or the applet integrated on the desktop toolbar. Dolphin can then find it.

Windows Store can't be opened in Windows servers 2012 R2

If you fail to open the windows store app, try the following: 1) Open a powershell and enter the following command: powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml 2) Clean up windows store cache: Run "WSReset.exe". Ref1 , Ref2

Install old Changjie input method in Windows 8.1

The procedure in this reference is basically correct, except that the script has some typos. Below please find the correct script for Changjie input method. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\CTF\TIP\{B115690A-EA02-48D5-A231-E3578D2FDF80}\LanguageProfile\0x00000404\{4BDF9F03-C7D3-11D4-B2AB-0080C882687E}] "IconFile"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\  74,00,25,00,5c,00,53,00,59,00,53,00,54,00,45,00,4d,00,33,00,32,00,5c,00,49,\  00,6e,00,70,00,75,00,74,00,4d,00,65,00,74,00,68,00,6f,00,64,00,5c,00,53,00,\  68,00,61,00,72,00,65,00,64,00,5c,00,52,00,65,00,73,00,6f,00,75,00,72,00,63,\  00,65,00,44,00,6c,00,6c,00,2e,00,64,00,6c,00,6c,00,00,00 "Display Description"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,\  52,00,6f,00,6f,00,74,00,25,00,5c,00,53,00,59,00,53,00,54,00,45,00,4d,00,33,\  00,32,00,5c,00,69,00,6e,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,2c,00,\  2d,00,35,00,30,00,36,0

Extending Arduino SNES ROM-reader -- solderless reader, spc7110 support

Image
This short article shows my following extensions on the Arduino SNES ROM-reader as described here . Construct the reader hardware without soldering Solderless reader SPC7110 support Solderless reader The key thing is to identify the names of the components that you need and get them. In fact that step takes me quite a while to sort out. The components that you need: Arduino Resistors, capacitors and shift registers as described in the schematic diagram  A security screwdriver for Nintendo SNES (to open the SNES cart) Extra stuff needed for solder-less construction breadboards Wire cable connectors (male-to-male and male-to-female) 0.100" 35- or 36-pin Spacing Card Edge Connector -- note that we need to have male pin on one side of the connector, so we can plug in the male-to-female connectors to connect it to the breadboard SPC7110 support SPC7110 is a special chip that appears in a few SNES carts in 1995-1997. Carts with this chip features a 8Mb prog

Octoshape under environment with network proxy

In an environment with network proxy, you have to manually specify the global http and https proxy setting of the system for octoshape to work properly. In Ubuntu, you can find it in All Settings -> Network. Under proxy, manually set the HTTP and HTTPS proxy and click on "Apply system wide".

Linux script to upload files to DropBox and Google drive; send email when there is a new file

1. Linux script to upload file Dropbox See here Google drive Ref: https://gist.github.com/deanet/3427090 You have to update the username and password, and the folderId. folderId can be found from Google Drive URL in your browser. For example, if the Google Drive folder to which you want to upload thing has the following URL: https://drive.google.com/?tab=wo&authuser=0#folders/1234567890AB-CDEFGHIJKLMNOPQR the folderId would be 1234567890AB-CDEFGHIJKLMNOPQR Sample script # Things to update username="xxxx@gmail.com" password="xxxx" pewede="/tmp" tipe="application/x-mobi" folderId="xxxx" OUTFILE2=myfile.mobi accountype="GOOGLE" #gooApps = HOSTED , gmail=GOOGLE   det=`date +%F` browser="Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1" /usr/bin/curl -v --data-urlencode Email=$username --data-urlencode Passwd=$password -d accountType=$accountype -d service=writely -d

Network for VM under proxy environment

Use bridge networking mode rather than the default NAT. Then the VM is like an additional machine in the local network, and its proxy setting can be configured as any other machine in the network. Reference

Turning wubi installation to VirtualBox virtual machine

Create a new VM in VirtualBox menu. Set up two CD/DVD devices. The first device should mount a Linux Live CD. The other should mount the Guest Addition ISO. You should also put the root.disk to be imported as VirtualBox VM to somewhere in the host OS, and set up "Shared Folder" that points to the respective directory. Boot up the VM and take the "Try" option. When the VM boots up, call gparted and create partitions on the VM harddisk for swap and primary partition. You should get at two /dev/sdax/ devices. Mount the Guest Addition CD and install Guest Addition. Inside the VM, mount the host OS "Shared Folder" that contains root.disk ( Ref ): sudo mount -t vboxsf share ~/host Use the MigrateWubi script to migrate the root.disk content to the VM devices you created above: sudo bash wubi-move.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda1 /dev/sda2    

Get gcin to work on Ubuntu 14.04/15.04

1) Go to Ubuntu software center and install synaptic. 2) Start synaptic, and install gcin and gnome-session-fallback package from there. Log out and then choose to use the gnome-fallback for your session. 3) In System Settings -> Language Support, choose gcin as the keyboard input method system. 4) Log out then log in with the Gnome classic desktop. 5) On the top panel, pres alt+super(win button) + right click, add "Notification Area" applet. In Ubuntu 15.04, if you choose Ubuntu-mate, you just need to do steps 3 and 4 and you get everything. No need to do step 5 to get it on the notification area.

ASUS N550JV DB72T issues and solutions

1) It cannot be shut down properly - the screen is OFF but the power stays ON for a long time after issuing a shutdown in windows. Solution: Update the Bluetooth driver. Version V8.0.1.305 available at here works for me. Reference 2) Cannot do system restore using the recovery partition in the hard drive, using the F9 on boot method. Has to rely on clonezilla to generate a disk clone. The USB recovery disk apporach doesn't seem to work. Reference

Download RTHK audio programme archive

Image
In the following, I will show you how we can download RTHK audio programmes through its archive directly. Here we assume you have install ffmpeg . 1) Visit here to locate the programme that you want to download. Go to the page where you can play the sound file. 2) Right click on the webpage so you can view the source code. For example, with Interent Explorer, you should choose the "View Source" item. 3) Locate the value of hlsStreamUrl[0] . In the following example, it is " http://stmw2.rthk.hk/aod/_definst_/radio/archive/radio1/hkfootpath/mp3/mp3:20140330.mp3/playlist.m3u8 " 4) At where you can access ffmpeg executable, run the following command: ffmpeg -i [hlsStreamUrl[0]] [output_filename] In the following example, it is: ffmpeg -i http://stmw2.rthk.hk/aod/_definst_/radio/archive/radio1/hkfootpath/mp3/mp3:20140330.mp3/playlist.m3u8 output.mp3 Reference: here P.S. RTHK mp3 player: http://rthk.hk/mp3/player.htm

Charamel/Silvermel for Firefox/Thunderbird 24 or up

Image
Install the " Disable Add-on Compatibility Checks " plugin to skip the plugin compatibility check. Then you can install and use the Charamel/Thunderbird plugin even though it is yet compatible with Firefox/Thunderbird 24 or up. Firefox: https://addons.mozilla.org/en-US/firefox/addon/checkcompatibility/ Thunderbird: https://addons.mozilla.org/en-us/thunderbird/addon/checkcompatibility/