Jourdein

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

RSS
people

The Accidental Husband

The Accidental Husband (2008) at IMDB

Watched the movie and really likes it as like most of youtubers say about how charming Jeffrey Dean Morgan (as Patrick) and beautiful Uma Thurman (as Emma) are. The movie is mixed with some Hindi music and sparkling hindi ceremony that is to my liking. Also enjoyed the funny encounters of Emma and Patrick every time they met. I also like the father of Emma, Sam Shepard (as Wilder). I don’t know what I like about him but I like somewhere when spoke, make jokes and being a good advisor to her daughter.

So, the romantic comedy movie is again about the love doctor but this time, the doctor is a ’she’ performed by Uma Thurman as Emma. If you remember Hitch is also love doctor movie played by Will Smith and was also one of my favourites. Up until now, two love doctor’s movies Hitch and Accidental Husband are my favourite.

So in this movie, Emma is a radio broadcaster that received problem from the caller and tend to resolve it. Patrick on the side of the world, is getting married this lovely woman, Sofia (Justina Machado) which ended up cancelling the wedding after she seeked advices from Emma. Patrick, frustrated by this event (because he love Sofia so much) trying to teach Emma a lesson for destroying his wedding by being ‘technically’, Emma husband. Emma on the hand is going to marry Richard (Colin Firth) in two weeks time. Things happened during that period of setting the things right and Patrick started to really fall in love with Emma and Emma also to Patrick. Long story short, they ended being the real husband and wife.

I like:

  • Hindi songs especially in the end
  • Charming Patrick and funny Emma
  • Beautiful hindi ceremony (maybe coz I also like hindi
No Comments | Tags: , ,

Looking for Subversion FREE hosting…

While looking for free hosting for Subversion or CVS, I found this guy at XP-Dev that offer FREE Subversion Hosting and Project Tracking. For Subversion Hosting, he offer 1500 MB FREE Subversion repository for each user. Offer unlimited number of repositories and repository users.

It’s really tempting. Visit his website for more info. I’ve just registered and it was easy and fast prompt and I still playing with it. My first time here, it was good (as I never had hosted with any other before.. :p)

Anyway, it’s free and the founder, Roopinder Singh gladly created a post on “Why is Subversion Hosting on XP-Dev.com is free”. It should answer your questions as it did mine.

Twitter: http://twitter.com/xpdev

No Comments | Tags: , , ,

Array Controller bounded to an Array

I was scratching my head of why the heck does the my tableview does not automatically update its data.

My binding:

NSArrayController = ACIssues
Controller Class = Issue Controller (have NSArray property subviewControllers)

ACIssues has it contentArray binded to subviewControllers’s array in Issue Controller. Somehow, changes made to the array of subviewControllers in Issue Controller does not reflect on other table which I had it binded to ACIssues.

After searching the internet, I found this

http://boredzo.org/blog/archives/2008-11-26/how-to-work-with-a-bound-to-array (open in new window)

Very good one. What it said… There’re right and wrong way to bind.

The right way is by using indexed accessors. Then, your Array Controller will see any changes you’ve made. What I did was creating indexed accessor methods.

- (void)insertObject:(id)object inSubviewControllersAtIndex:(unsigned)index {
[[self subviewControllers] insertObject:object atIndex:index];
}


- (void)removeObjectFromSubviewControllersAtIndex:(unsigned)index {
[[self subviewControllers] removeObjectAtIndex: index];
}

and calling it where I wanted to change the array.

[self insertObject:obj inSubviewControllersAtIndex:(index + 1)];
[self removeObjectFromSubviewControllersAtIndex:index];

the structure of this indexed accessor:

insertObject:(id)object inKeyAtIndex:(unsigned)index

where key is the property or in my case array that is binded to the Array Controller.

No Comments | Tags: , , , , ,

301 or 302 or Meta refresh tag

I did a google search on which is the best one to use to redirect page from another. I had this in mind, whether to use meta tag refresh or 301 redirect in htaccess file. I was afraid that using meta redirect would be rank penalize by google.

After the search, the safest way to redirect is to use 301 redirect. To do 301 redirect you just need to add this code in .htaccess file in the root directory:

RewriteEngine On
Redirect 301 /index.html http://mydomain.com/blog/

You might be asking what is meta fresh tag… It just a simple html code put on the top of the html file that redirect user from that page to another page. It look like this:

<meta http-equiv="refresh" content="0;url=http://www.anotherdomain.com">

Here I’ve got some good illustration of the what those mean with other types or redirection.

redirection cartoon illustration

Here is the link which I referred to (all links open in new window):

No Comments | Tags: , , ,

Otai post on sweetcron modification

Azri has uploaded sweetcron modification code to change option.
http://codegenius.wordpress.com/2008/12/31/adding-new-option-in-sweetcron/#more-7

No Comments | Tags: ,

Re: Interesting finds

I stumbled upon this article that got his article from some other article about the “interesting finding” he found.

Yahoo is still popular than Google
Friendster is more popular than Facebook
Blogspot is more popular than Wordpress
MalaysiaKini is more popular than The Star

No Comments |

Don’t port everything from Windows to Mac

While I did search for text highlighting for my project, I stumbled upon a website that discuss about the worse and wrong menu items in Windows. I like this paragraph from the author:

Apple in its wisdom has given Cocoa developers much more control over how menus are drawn in Leopard. You can in fact, draw anything you please in a menu now. Don’t do it. It was bad enough when you could clutter up your menus with blocky little useless icons, now the user can innocently click on a menu and be confronted with the Gates of Hell. Don’t do it. Resist the temptation. Put the NSView down. If you are porting a Windows app, do not let the pointy haired boss force you into porting the ugly menus. Tell him it can’t be done. Tell him you would lose Tiger compatibility. Tell him anything, but don’t mess with Mac menus.

Read more at his website: Chaotic nature of windows menus.

No Comments | Tags: ,

D90 Released!

D90 Spec

Nikon D90

Nikon releases D90 that claimed to be able to record Cinematic 24fps 720p HD movie with sound, with high definition LCD monitor and improved ADR (aka Adaptive D-Lighting).

Check out the details here.

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: ,