Posts

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