Jourdein

I code, I experienced, I blog and I share my enthusiasm

RSS
people

Cross browser styling for inline-block

IE does support inline-block css styling but to which the elements are natively inline. Apply inline-block styling to strong, spans and ems.

But there’s another thing. If hasLayout is triggered on a block element, and then set that element to display inline, it will automagically become an inline-block in IE. However, you must do a *property hack to hide the display:inline from non-IE browser.

display: inline-block;
zoom: 1;
*display: inline;
No Comments | Tags: , , ,

Reset Leopard to its initial state

leopard-welcome

Reset or some called it “revirginize” is putting the Leopard to state where it’s first bought/installed, where you would see welcome screen/video and setup/customize your Mac OS X Leopard installation.

1. Enter “Single User Mode” – (press Command-S during startup)
2. Check file system:

$ /sbin/fsck -fy

3. Mount root partition as writable:

$ /sbin/mount -uw /

4. Remove file .AppleSetupDone (hidden file):

$ rm /var/db/.AppleSetupDone

5. Remove user(s)

$ launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist
$ dscl . -delete /Users/{username}

6. Remove user(s) Home directories:

$ rm -rf /Users/{username}

7. Reboot

I think the option 4 is the key procedure here that make the installation reset to its initial state.

Sources:

No Comments | Tags: , , , ,

Disable iPhone 2.0 keyboard dictionary autocorrect

Though iPhone dictionary keyboard is an innovative word suggestion but sometimes, I would like the keyboard to be turned off so that I would be able to write in my language. Actually, if it turned off, I would not mind. I think I would be typing faster if the dictionary is disabled.

Thus, I googled on how to disable the dictionary for iPhone 2.0. In iPhone 1.1.4 firmware, they have the tweak called KB that will disabled it. But in 2.0, none of it happened to be anywhere yet. The solution I found required SSH to some folder and renaming it language bundle.

The instruction requires terminal to connect to iPhone through SSH but I prefer using Transmit (FTP app).

So, what you require are:

  • SSHed iPhone
    (I installed OpenSSH from Cydia. This mean that your phone is already jailbroken ‘ed’)
  • FTP App (I use Transmit on MacBook)

Where to start?

  1. Open FTP application. Connect to iPhone using IP address with username:root password:alpine
  2. Point you FTP browser to /System/Library/TextInput/
  3. Rename TextInput_en.bundle to something. I rename to TextInput_en_bak.bundle.
  4. Create a new folder with original name which you have renamed TextInput_en_bak.bundle
  5. Respring or reboot you iPhone to commit changes.

If you would like to see the source of website that I’ve referred to, visit:

http://n00.be/archives/724/

No Comments | Tags: , , ,

Create account to download from AppStore without credit card

For sometimes, I was using my iPhone without being able to download FREE application from AppStore because of me having to register with the credit card or paypal or visa or any other payment method. I just download iPhone apps from Cydia.

But, during that time, my friend who was able to download all that cool FREE apps from AppStore keep showing me the cool app he has and even blogging about it (read here). Ahh… I want that but I don’t want to put my VISA card there. Thus, I searched and found:

[link] How to get a Free Itunes Account (No Credit Card Needed) [link]

Actually I found 2 or 3 places that give the step on how to get the free itunes account and the one I referred is not the above one but, that link (i think) provide with steps. The basic is the same.

  • Find where to find redeem code (get it)
  • Redeemed it in iTunes
  • iTunes asked to enter account (if already exist) or create new
  • You create new (here you find out the added radio button “none” for method of payment
  • After this point is just normal step. Put your information and eureka…

You may need to put “your” US city and postcode. Good luck.

4 Comments | Tags: ,