I sometimes experienced that lifehacker.com or gizmodo.com do redirection automatically to lifehacker.jp or gizmodo.jp. Possibly that the website is either checking the ip address of the user or the browser's local language setting. This auto redirection is quite annoying when accessing the page from google search result, because instead of showing the correct page, it shows the front page of the Japanese version. To solve this annoying redirection, add subdomain "us." in front of the url of lifehacker.com or gizmodo.com page.
For example, if the original URL is:
http://lifehacker.com/5799574/top-10-fixes-for-the-webs-most-annoying-problems
it will become:
http://us.lifehacker.com/5799574/top-10-fixes-for-the-webs-most-annoying-problems
Once the us.lifehacker.com is loaded, it will stay in the English version although we omit the subdomain "us." until we delete the cookies.
That's all :)
Everything void
Everything is void, but it's too real and too good to say so ;)
Sunday, May 08, 2011
Monday, February 28, 2011
How to hibernate instead of standby when closing the lid of macbook(pro|air)
Sometimes, we probably prefer to hibernate my mbp instead of make it standby when closing the lid. I am wondering why there is no GUI setting for this simple matter. The only way that I know is by using command pmset from the terminal window as follow:
(1) To enable the hibernate:
(2) To switch back (standby):
Or for more detail of pmset command, read the manual (man pmset).
That's all :)
(1) To enable the hibernate:
$ sudo pmset -a hibernatemode 5
(2) To switch back (standby):
$ sudo pmset -a hibernatemode 0
Or for more detail of pmset command, read the manual (man pmset).
That's all :)
Labels:
macOSX
Saturday, February 26, 2011
How to show full path in Mac OSX Finder window title bar
To show the complete path in the Finder title bar of Mac OSX (maybe only for OSX 10.5 and newer), type the following two commands in terminal:
And to reverse:
That's all :)
$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
$ killall Finder
And to reverse:
$ defaults write com.apple.finder _FXShowPosixPathInTitle -bool NO
$ killall Finder
That's all :)
Labels:
macOSX
Friday, January 14, 2011
How to add shortcut to sidebar OSX
To add shortcut to the finder's sidebar on OSX:
That's all :)
- drag and drop the folder or,
- select the folder, press: Command+T
That's all :)
Labels:
macOSX
Friday, December 24, 2010
Windows could not start because the following file is missing or corrupt \windows\SYSTEM32\CONFIG\SYSTEM
Three days ago, a friend asked me to recover his laptop (winXP) from the following error which always appeared during booting:
The solution is straightforward from Microsoft website (http://support.microsoft.com/kb/307545). In brief:
The first step is to gain access to windows OS by replacing the broken registry file with the default registry file (windows installation CD is required). The second step is to copy the latest system restore registry file (hopefully your system restore is enabled) to replace the default registry file.
To be more detail, those steps are done as follow:
That's all :)
Windows could not start because the following file is missing or corrupt \windows\SYSTEM32\CONFIG\SYSTEM
The solution is straightforward from Microsoft website (http://support.microsoft.com/kb/307545). In brief:
The first step is to gain access to windows OS by replacing the broken registry file with the default registry file (windows installation CD is required). The second step is to copy the latest system restore registry file (hopefully your system restore is enabled) to replace the default registry file.
To be more detail, those steps are done as follow:
- boot using the WinXP installation CD, select repair
- after entering the command prompt, manually copy (overwrite) the registry file (SYSTEM, SOFTWARE, SAM, SECURITY, DEFAULT) from C:\WINDOWS\REPAIR\ to C:\WINDOWS\SYSTEM32\CONFIG\ (you might want to backup the original files)
- restart to save mode.
- gain access to System Volume Information folder (http://support.microsoft.com/kb/309531/), inside the folder, find sub folder with name _restore {GUID}\RPx\snapshot. For example: C:\System Volume Information\_restore{D86480E3-73EF-47BC-A0EB-A81BE6EE3ED8}\RP1\Snapshot
- copy the following files from the Snapshot folder to any other folders: _REGISTRY_USER_.DEFAULT, _REGISTRY_MACHINE_SECURITY, _REGISTRY_MACHINE_SOFTWARE, _REGISTRY_MACHINE_SYSTEM, _REGISTRY_MACHINE_SAM. Rename each of the files to DEFAULT, SECURITY, SOFTWARE, SYSTEM, SAM, respectively.
- boot using WinXP installation CD, select repair
- after entering the command prompt, manually copy (overwrite) the file from step (5) to C:\WINDOWS\SYSTEM32\CONFIG\
- restart.
- finish, or according to the microsoft website, you should try to restore the setting to previous restore point (Start, All Programs, Accessories, System Tools, System Restore, Restore to a previous restore point).
That's all :)
Labels:
xp
Tuesday, June 29, 2010
Colored ls in MacOSX terminal
To have a colored ls in MacOSX terminal:
That's all :)
- edit or create ~/.profile
- add line:
export CLICOLOR=1
That's all :)
Labels:
macOSX
Friday, February 12, 2010
Emulating HASP HL Basic
About a month ago, I was asked to remove the protection of a software (it looks like the software is specially developed --not for public sale) which is using usb key to protect the unauthorized execution.
First of all, I would like to give credit to the reverse engineering team board, even though I never post any message there, but their board contains invaluable information to help me complete this task. Please notice that I share this information only for educational purpose and only as a note for myself. If you have trouble, please don't ask me. Go to the board instead. :)
Gladly, the usb key type is HASP HL Basic, which is simpler to emulate. Here is the step I've done to successfully emulate the usb key:
All of the tools are available freely in the internet, however, it takes time to find.
That's all :)
First of all, I would like to give credit to the reverse engineering team board, even though I never post any message there, but their board contains invaluable information to help me complete this task. Please notice that I share this information only for educational purpose and only as a note for myself. If you have trouble, please don't ask me. Go to the board instead. :)
Gladly, the usb key type is HASP HL Basic, which is simpler to emulate. Here is the step I've done to successfully emulate the usb key:
- Get the password-1 and password-2 of the usb key
Tool required: hasploger
Plug the usb key and run hasploger. Then, execute the protected software. Hasploger will be able to get the password-1 and password-2 of the usb key. - Dump the usb key (password-1 and password-2 from step (1) are required)
Tool required: h5dmp
The size of the dump file is 719 bytes (hasp.dmp) - Create dummy memory file
Tool required: any, notepad text editor is also possible
Since hasp HL Basic does not contain memory, create file with any content with size 112 bytes (hhl_mem.dmp) - Convert the dump file from step (2) and (3) to registry file to be used by emulator
Tool required: UniDumpToReg - Install emulation
Tool required: I am using multikey_19.0.2-x86 to emulate the key in vista (32bit). While in XP I am using vbus_0.15.4.
By using the example of registry file from multikey/vbus, modify the registry file from step (4). Then, install the registry and the emulation tool. - Done.
All of the tools are available freely in the internet, however, it takes time to find.
That's all :)
Update #1 (2010/11/03)
I've just realized that I miss-typed when I checked my files,the correct multikey file that I was using is multikey_18.0.2-x86. Probably there's a new update now since it had been months.
That's all :)
Subscribe to:
Posts (Atom)