Blog

Some ramblings and write-ups about tech, music, travelling and other topics.

Softbank

APN Settings for Softbank Black SIM

  • Phones

When Softbank started selling iPhones, it finally became possible to obtain a unlimited data SIM card that is can be inserted to Android phone that aren't SIM locked. After some research, I found out the APN settings for this SIM.

Eclipse

Eclipse on MacBook Pro with Retina Display

  • Mac OSX

This post is about getting Eclipse to render in 'High Resolution' mode on a MacBook Pro 10,2 Retina Display.

Bash: reverse i-search and normal i-search

Ctrl+R gives you reverse i-search of bash history, however, once you have selected a command to edit (by hitting ESC) the next search would start from the same line, because it's incremental by definition. This is useful but sometimes you wanna start over. You can rewind/fast-forward your search position in history by:

M->    # move to the latest entry
M-<    # move to the earliest entry
You can also do forward incremental search by Ctrl+S. But unfortunately in bash on most distributions Ctrl+S is assigned to "Stop". Check what the meta commands are assigned to by
stty -a
If you see ixon, you need to turn it off by
stty -ixon
http://stackoverflow.com/questions/549810/control-r-reverse-i-search-in-cygwin-bash-how-do-you-reset-the-search

SSL Certificate for Apache2 in Mac OS X

Generating the private key:

openssl genrsa -des3 -out server.key 1024

Generating the CSR (certificate signing request):

openssl req -new -key server.key -out server.csr

Generating the self signed certificate:

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

Configuring SSL in httpd.conf for Apache:

SSLEngine on
SSLCertificateFile /path/to/generated/server.crt
SSLCertificateKeyFile /path/to/generated/server.key
(replace path appropriately with the path to your certificate and key)

Restart Apache:

apachectl restartApache will ask you for the passphrase to your key. If you think you will be shutting the server down a lot, you may want to remove the passphrase from the key so you can avoid entering it each time. If not, don't worry about it. If so, complete this step after step 2 (Generating the CSR):
cp server.key server.key.copyopenssl rsa -in server.key.copy -out server.key
http://superuser.com/questions/73979/how-to-easily-create-a-ssl-certificate-and-configure-it-in-apache2-in-mac-os-x