Sunday 6 September 2015

Download wechat app database file off iphone or ipad

1. On pc install itunes and make a back up of iphone/ipad
2. Install iExplorer and open back up
3. Mount the app folder (AppDomain-com.tencent.xin) as a drive in iExplorer
4. Copy over mounted folder to the pc
5. Install sqlitebrowser and open db file (in the Documents/#randomnumbers/DB/MM.sqlite)

Thursday 27 August 2015

linux mint 17.1 multisystem error, The terminal (VteTerminal) widget requires a version of gtkdialog built with libvte.

I was trying to do a fresh install of windows 7 on ultrabay on Thinkpad T420s.

Upon installing all the updates and trying to make a back up so the partition can be exported to another drive, I decided to upgrade clonezilla to newest version.

As usual, I formatted an empty USB to FAT and tried to load clonezilla image.

First I got a problem, where multisystem did not load at all, stuck at 'multisystem logo'

So I tried to re-install from .sh script downloaded from official website.

Trying to use the script, it complained about xterm.

-> sudo apt-get install xterm

Once xterm was installed script started generating repository pop up (I suppose it is adding some new repo, as manual method requires it).

Then it turned unsuccessful.

A quick googling revealed manual method,
(SOURCE: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.ca&sl=fr&u=http://forum.ubuntu-fr.org/viewtopic.php%3Fid%3D1229491%26p%3D34&usg=ALkJrhi6qDC6qOCIfS1cc3J0GTbWpBts5A)
->   sudo apt-add-repository 'deb http://liveusb.info/multisystem/depot all main'
->   wget -q http://liveusb.info/multisystem/depot/multisystem.asc -O- | sudo apt-key add -
->   sudo apt-get update
->   sudo apt-get install multisystem

'sudo apt-get update' complained about duplicate repository,
-> sudo nano /etc/apt/sources.list
then I commented out by putting # in front of 'deb http://liveusb~~'

Installed multisystem then complained about 'The terminal (VteTerminal) widget requires a version of gtkdialog built with libvte.'

Google search about the error returned a person who had the same problem, (SOURCE: http://superuser.com/questions/919442/failure-of-multisystem-after-first-install-on-mint-17-1-64-bit) and following solution page in dutch which needed to be translated. (SOURCE: https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&rurl=translate.google.ca&sl=de&u=https://forum.ubuntuusers.de/topic/multisystem-findet-nicht-die-richtige-gtkdialo/&usg=ALkJrhjT7TZaQYDdWakXFCc1_DGm-Fj75Q)

I have tried other methods suggested by the first french thread,
-> sudo dpkg -i <path to gtkdialog.deb file>
using files downloaded from,
(SOURCE: http://liveusb.info/multisystem/depot/dists/all/main/).
Using version multisystem 1.0304 1.0309, gtkdialog 0.8.0, 0.8.2-1 0.8.3-2 amd64 in different combination did not yield a working install.

So I tried to purge all instances of multisystem, then did a fresh install of the newest version, which showed the gtkdialog error again.

This time, using dutch webpage solution, I compiled gtkdialog using vte as follows,
-> wget https://gtkdialog.googlecode.com/files/gtkdialog-0.8.3.tar.gz
-> decompress file to '~/Download/gtkdialog-0.8.3/', and cd into the folder
-> sudo apt-get intsall gtk+-2.0-dev
-> sudo ./configure
look for VTE... no
-> sudo apt-get install libvte-dev
-> sudo ./configure
look for VTE... yes
-> sudo make
-> sudo make install
-> gtkdialog -v
this should show 
'gtkdialog version 0.8.3 release (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor Built with additional support for: VTE.'


Props to verdooft and everyone else I refered in resolving the problem!!

Wednesday 12 August 2015

_Halting problem

http://www.quora.com/How-can-the-Halting-Problem-be-explained-to-a-layman

_Things to do with python

www.quora.com/Python-programming-language-1/What-are-some-interesting-things-to-do-with-Python

_How to browse sqllite db file

SOURCE:
https://www.google.ca/?gws_rd=ssl#q=how+to+browse+sql+db+file

_Michener institute Genetics Technology admission requirements

SOURCE:
http://michener.ca/admissions/applying/admissions-requirements/

OPTION A

  • Canadian certified Medical Laboratory Technologist (MLT) AND
  • At least two university-level genetics courses
    • 0.5 credit in Human Genetics (1 semester-length course)
    • 0.5 credit in Molecular Genetics (1 semester-length course)
  •  These courses must have been completed within the last 10 years with a minimum grade of 70%.
CGPA will be calculated using entire undergraduate degree. Minimum CGPA of 75% must be attained in order to be considered.

OPTION B

  • Bachelor of Science (BSc) degree AND
  • At least two university-level genetics courses
    • 0.5 credit in Human Genetics (1 semester-length course)
    • 0.5 credit in Molecular Genetics (1 semester-length course)
  •  These courses must have been completed within the last 10 years with a minimum grade of 70%.
CGPA will be calculated using entire undergraduate degree. Minimum CGPA of 75% must be attained in order to be considered.
NOTE: If you are submitting a Molecular Cell Biology course as a Human Genetics course you must provide course outlines for review and approval.

 Applicant Experience Checklist

To assess your experience, ALL applicants are asked to fill out an Applicant Experience Checklist and to submit the requested supporting documents along with the form by February 13, 2015. Please note that this document must be submitted in person, or by mail or e-mail to the Admissions Office at The Michener Institute, 222 St. Patrick St. Room 500, Toronto, ON M5T 1V4 or admissions@michener.ca
Please click here for the 2015 Applicant Experience Checklist
*The PowerPoint presentation that must be reviewed while completing the Applicant Experience Checklist can be found here.
Each program offered by Michener has a fixed size, reflecting labour market demand and clinical education spaces. Therefore enrolment in the program is limited, and admission can be very competitive. Admissions to the Genetics Technology program will be determined by an assessment of academic achievement, CGPA, (35 %), professional and academic experience (15 %) and the Multi Mini Interview (50%). See Selection Process for more information.

Additional Requirements

All applicants must provide proof of English language proficiency. Applicants providing documents from overseas must complete specific document requirements.

_Make JS BOT for web application agar.io

SOURCE:
https://github.com/heyitsleo/agar.io-bot
http://www.devbattles.com/en/sand/post-1202-Writing+a+bot+for+the+browser+game+agar.io
https://www.reddit.com/r/MachineLearning/comments/38r2lq/a_bot_for_agario/

_Netbook based Video Surveillance using yawcam

SOURCE:
http://community.spiceworks.com/topic/486487-yawcam-webcam-server-alternatives

this is Windows alternative to RPi kerberos.io due to responsiveness issue,
looking for similar linux solution

_[Raspberry Pi] Jasper, voice recognition solution

SOURCE:
http://jasperproject.github.io/documentation/installation/

_[Raspberry PI] web server surveillance system Kerberos.io

SOURCE:
https://kerberos.io/

[Raspberry Pi] Using GPIO port, infrared remote control access (IR sensor)

SOURCE:
16x2 LCD to display status
http://www.adafruit.com/products/181
GPIO setup tutorial
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/test-and-configure
What to do with I2C and SPI
http://quick2wire.com/articles/i2c-and-spi/

tutorials
http://www.modmypi.com/blog/raspberry-pis-remotes-ir-receivers
how to add lirc_rpi
http://www.jamesrobertson.eu/blog/2013/may/19/installing-lirc-on-raspbian.html
comprehensive tutorial
http://alexba.in/blog/2013/01/06/setting-up-lirc-on-the-raspberrypi/

python GPIO
http://openmicros.org/index.php/articles/94-ciseco-product-documentation/raspberry-pi/218-2-raspberry-pi-gpio-inputs-in-python

[Raspberry Pi] passwordless ssh login to pi

I have been rebooting raspberry pi a lot lately, and had to SSH into it each time manually and type in password.

There is a simple way to SSH without typing password each time.

1. On laptop 'ls ~/.ssh'
1.1 if above returns id_rsa.pub or id_dsa.pub, key already exists
1.2 if nothing returns or to make new keys 'ssh-keygen -t rsa -C login@devicename' (e.g. ssh-keygen -t rsa -C "kee@myThinkpad0")
1.3 'cat ~/.ssh/id_rsa.pub' returns 'ssh-rsa <RANDOM CHARACTERS> kee@myThinkpad0'

2. Use this command to append public key to Pi, cat ~/.ssh/id_rsa.pub | ssh <USERNAME>@<IP-ADDRESS> 'cat >> .ssh/authorized_keys'
2.1 I typed( cat ~/.ssh/id_rsa.pub | ssh pi@10.42.0.2 'cat >> .ssh/authorized_keys' )
2.2 This command asked for password, and did not succeed.
2.3 Checking whether the file or folder existed on Pi, 'ls ~/.ssh' returned nothing.
2.4 So, created a folder by 'mkdir ~/.ssh' on Pi made 2.1 work.

The source file mentions "Agent admitted failure to sign using the key" error as well as scp method.

I personally prefer scp (scp ./id_rsa.pub pi@10.42.0.2:~/.ssh), however, this might replace previous file which may not be preferred in some cases.

Source: https://www.raspberrypi.org/documentation/remote-access/ssh/passwordless.md

[Raspberry Pi] unknown host problem with shared internet

I have shared my laptop wifi internet access with raspberry pi using ethernet cable in previous post.

However, when I tried to ping www.google.com, it gave me an error of unknown host.

Trying to 'ping 8.8.8.8' also returned error, while to ping actual IP address worked. (i.e. 'ping xxx.xxx.xxx.xxx')

smithg400 from the source website mentioned specifying gateway in /etc/network/interfaces as well as DNS resolution and to have a look at /etc/resolv.conf

/etc/network/interfaces already had a gateway set up to the IP address of my laptop.

sudo cat /etc/resolv.conf returned empty. So I added nameserver xx.xx.xx.xx on the resolv.conf, which made DNS resolution work and I could ping www.google.com

This however, disappeared once I rebooted. Quick 'man resolvconf' returned that configuration file for resolv.conf is at /etc/resolvconf.conf. So, fix this file as well for persistent result.



Source: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=57024

Tuesday 11 August 2015

[Raspberry Pi] Connecting to raspberry pi using ethernet cable on linux mint 17 laptop

This post has been created using various sources I found on google.

1. To directly connect to PI, without sharing internet
2. Sharing internet

SOURCE:
http://stackoverflow.com/questions/16040128/hook-up-raspberry-pi-via-ethernet-to-laptop-without-router
http://elinux.org/RPi_cmdline.txt
https://pihw.wordpress.com/guides/direct-network-connection/
http://www.linuxcircle.com/2013/05/03/connecting-rpi-to-laptop-ethernet/
https://www.youtube.com/watch?v=ZK-JHfJqmkY

1.1 If headless (no monitor and keyboard for pi), mount SD card on your laptop
1.2 Go to boot partition, append ip=169.254.0.2 and save
1.3 Go to main partition, modify /etc/network/interfaces as below
1.3.1 (Recommended) save a copy of interfaces file for other setup
1.3.2 (Above procedures can be done on the RPi OS once logged in)
------------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
address 169.254.0.2
netmask 255.255.255.0
gateway 169.254.0.1

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf



-----------------------------------------------------------------------------------------------------------
1.4 On laptop, click on network connections, add a new 'Ethernet' connection.
1.4.1 Name the connection as you like, go to IPv4 settings
1.4.2 Change Method: Manual, Add Addresses and set to 169.254.0.1
1.4.3 Netmask 255.255.255.0 Gateway 0.0.0.0



1.5 Reboot RPi and you can SSH using ssh pi@169.254.0.2








2.1 On laptop, click network icon. On drop down menu click network connections.
2.1.1 Name the new Ethernet connection as you wish, go to IPv4 tab
2.1.2 Change Method: Shared to other computers
2.1.3 Click this new connection on network dropdown menu
2.2 On laptop terminal, enter 'cat /var/lib/misc/dnsmasq.leases'
2.1.1 (Output looks like below, remember ip address)
----------------------------------------------------------------------------
1439123882 b8:27:eb:a1:b2:c3 10.42.0.39 raspberrypi
----------------------------------------------------------------------------

2.2 On raspberry pi, modify /etc/network/interfaces as below
--------------------------------------------------------------------------------------------------------
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.42.0.39
netmask 255.255.255.0
gateway 10.42.0.1
--------------------------------------------------------------------------------------------------------
2.3 Reboot OR if using keyboard and monitor 'sudo ifdown eth0' and 'sudo ifup eth0' to get new ip address
2.4 'ping www.google.com' to test the connection