Jourdein Inc

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

RSS
people

Blank page when loading Facebook auth on Safari mobile

Took all days to figure out.

My iOS app called Safari to allow permission to access user’s Facebook but, the page was empty with just the navigation bar with ‘Login’ and ‘Okay’ button.

Turns out, it’s because of private browsing that I’ve enabled on the iPad. After disabling that, everything went ok again.

No Comments | Tags: , , ,

Write bootable disk image to USB drive using OS X terminal

  • Format usb disk as free space.
  • Determine device name
 disktutil list
  • Unmount the USB drive
sudo umount /dev/disk1
  • Burn the image to the USB drive
 sudo dd if=/location/disk.img of=/dev/disk1
  • Convert iso to img
 hdiutil convert -format UDRW -o ./outputfile.dmg ./inputfile.iso
No Comments | Tags: , ,

Export Ovi Contacts to Google Contacts

I’ve been using Nokia E52 for short time only because of it ended in a toilet. Huh…

During that short period, I’ve copied my contacts to the phone. When time goes by, I update the contacts in the phone but forgot to sync (PC or ovi.com).

Yet, having that backup is a bliss.

Ovi does not allow you to export your contacts directly. What I did was to sync it with Windows Contacts. You can sync it with MS Outlook if you want but it wasn’t a success for me.

On success, you can see the Contacts folder inside you home directory is filled with contact’s files. The extension is ‘contact’.

Next, I fired up MS Mail and using the ‘export’ function to export Windows Contacts to a ‘CSV’ file. Don’t do VCF since it just convert files from ‘.contact’ to ‘.vcf’. It don’t do much when you want to import to Google Contacts.

MS Mail read Windows Contacts as its main contact files information. That’s why, we can use the import/export to manage the contacts.

From here on it’s easy now. Just open Google Contacts and then import the CSV file that was just created.

No Comments | Tags: , , , , ,

Aku Kerdil

Allah S.W.T berfirman, “Perempuan yang jahat untuk lelaki yang jahat dan lelaki yang jahat untuk perempuan yang jahat, perempuan yang baik untuk lelaki yang baik dan lelaki yang baik untuk perempuan yang baik.” (an-Nur’:26)

Susungguhnya, aku bukanlah lelaki sehebat Saidina Umar atau sekacak Nabi Yusuf atau bukan memberi cinta seteguh cinta kasih Adam untuk Hawa.

Kupohon maaf kerana aku bukan seperti yang kau harapkan. Maafkanku?

Hatiku resah memikirkan diriku tidak sehebat teman-teman kelilingmu. Sungguh kerdil kurasa…sudahlah di hadapan Tuhanku… juga dengan sahabat-sahabatmu.

Tentu sudah di kalangan mereka, ada seorang yang kau inginkan, mengimpikan ciri lelaki idaman. Cukup kacak dan baik di matamu. Berakhlak baik luas ilmunya.

Maafkan aku sekali lagi kerana aku bukan lelaki idaman yang kau idamkan. Sungguh… aku tidak mengharapkan kesempurnaan darimu. Tidaklah paras rupa sehebat Aisyah dan seteguh Zulaikha. Cukuplah agamamu supaya kelak dapat kau bantuku, anak-anakku menuju ke Jannah.

Indahnya bila kita dapat beribadah bersama-sama. Solat berjemaah, solat-solat sunat, Tahajud Cinta di Sepertiga Malam, Puasa Sunat, membaca Al-Quran, membaca tafsir. Pasti indah bila semuanya di lakukan bersama. Aku memerlukanmu, selama ini aku keseorangan mengamalkan semua itu. Kadangkala juga aku tidak mempunyai kekuatan untuk mengamalkan semua tu, aku lemah, ada yang aku tertinggal, aku tak istiqamah. Aku menzalimi diri aku sendiri. Jika kau bersamaku, pasti kau akan memberi semangat padaku, mengingatkanku, menasihatiku..

Jodoh, ajal, maut rezeki semuanya telah pun tertulis di Luh Mahfuz. Aku mengimpikan hari esok yang indah namun, belum pasti kita sempat mengecapinya. Mati itu pasti. Setiap yang bernyawa itu akan merasakan mati. Kematian yang bagaimanakah akan kita hadapi?

Jodoh itu pasti. Andai jodoh aku denganmu, kubersyukur ke hadrat Ilahi. Andai di suatu masa, kita berpisah kuakur dan pasrah. Pastinya, Allah sudah sediakan untukmu, dia yang lebih sesuai, lagi baik dariku… atau mungkin seperti yang kau harapkan.

Sehingga bila tiba saat itu, kuakan berdoa agar aku adalah jodoh untukmu. Agar kau mengasihi dan menyayangiku… menerimaku seadanya.

Aku berharap agar Hidayah diberikan padaku agar hidupku sentiasa di bawah rahmatNya dan di jalan yang diredhaiNya.

1 Comment | Tags: , ,

Doa untuk isteri

Bingkisan menarik yang kutemui semasa merayau di internet.
Source: http://napoleon.abatasa.com/post/detail/8514/doa-untuk-istri-tercinta

Ku ketuk pintu rumah, “Assalamu’alaikumm bundaaa….”

“Walikumsalammm…” Jawab yang di dalam.

Seburat wajah yang aku rindukan keluar. Wajah rembulan yang menyejukan hati dan memberikan ketentraman juga kedamaian batin ini. Seulas senyum menghiasi bibir menyabut kedatanganku, menjabat tangan dan menciumnya.

“Jam berapa yah dari bandung?” Tanyanya.

“jam tujuhan bunda.”

“oooo…, ayah istirahat dulu ya. Bunda nyiapin minum untuk ayah.

Langsung aku menuju kamar dan rebahan. Tak berapa lama kemudian istriku datang dengan membawa air putih dan makanan kecil.

Segera aku minum dan mengambil makanan kecila dan kumasukan ke mulut.

“Bunda nyiapian makan ya yah..” Dengan membalikan badanya. Aku hanya mengangguk pelan. Sebelum  pintu kamar aku memanggilnya.

“Bunda..!”

“ya yah..” Sedikit agak kaget.

Aku hampiri dia dan memeluknya serta ku kecup keningnya.

“Makasih bunda.”

“Sama-sama ayah..” Dengan tersenyum. Dia pun beerlalu setelah pelukan kulepaskan.

Terimakash ya Allah, Engkau telah memberikan anugrah kepada hambamu ini seorang istri yang baik hatinya. Semoga Kau menjadikan ia  istri yang solehah juga. Jadikanlah kami keluarga yang benar-benar sakinah mawadah warahmah. Keluarga yang senantiasa mendapatkan berkah dari-Mu, mendapatkan  anugrah dari-Mu. Magfiroh dari-Mu, naungan dari-Mu dan ridho dari-Mu. Langgengkan pernikahan kami dan jodohkan kami  di akherat nanti. Amin.

No Comments | Tags: ,

TableFour.Us iPhone app is out!

Long awaited moment is here. For the past 3 months, we’ve been working on a cool project and now it’s out. Available for download from iTunes App Store.

For all the news and updates, head to TableFour.Us blog.

TableFour.Us iPhone interfaces

 

Amanz.my has been stalking its development quite sometimes and you can see all the news updates there.

TableFour.Us also has Facebook Page. Like the page to get latest updates of the app or even to win some freebies.

https://www.facebook.com/tablefour.us?sk=wall

 

No Comments | Tags: , , ,

Child attention span problem

Safiyyah A Aziz
For every hour of tv a child under 3 watches per day, the risk of an attention span problem at age 7 increases 10%. So if a child watches 2 hours of tv, he has a 20% higher risk of poor attention problem compared to kids without tv the moment he enters primary 1.

  • Yong Junina Fadzil N yet parents r under the misconception that watching “educational” dvds will enhance their children’s skills . The result: kids as young as 2 r placed in front of the tv for several hours a day

  • Asilatul Hanaa Abdullah what about baby tv kt astro tu sama gak ke? i have frends yg bg anak main playstation

  • Safiyyah A Aziz Yup Disney baby Einstein DVDs refunded parents and now dropped the word ‘educational’ from their DVDs after researchers from the university of washington found that children watching baby Einstein DVDs did worse than babies who did not watch DVDs.

    Hana: any tv is bad for under 2 and should be limited as much as you can before 5 years old. But I can understand that we live in a realistc world and parents are tired and overworked. So they do need sometime to rest and the tv is just a convenient baby sitter. An unhappy parent is more dangerous than a few hours of tv u suppose. But it should be limited as much as possible.

  • Asilatul Hanaa Abdullah hmmmm i took early childhood short course when i was a teacher heard the same thing too cannot be more than 2 hrs… hmmm ssh kan jd working mum…

  • Yong Junina Fadzil Realistically speaking, tv is a lot better than Playstations or other computer games,provided the programmes watched r not violent or against our moral values. But we can also keep them entertained with crayons n paper, lego(or other building blocks) and dolls or action figures. As long as the toys r suitable for their ages so as to avoid choking n other accidents.

  • Safiyyah A Aziz There the pediatrician has spoken :) . I completely agree with you. Even an empty box can be very entertaining for kids. Art activities, even following mom cleaning and cooking entertains them quite a bit. Safety first of course.

    Apparently now there are a distinction in tv shows for kids: if you have to let your kids watch tv, apparently Dora is better than Barney as Dora encourages imaginative play. So tv shows must meet some criteria.

    And outdoor play instead of video games. To many obese kids around nowadays.

  • Zahara Abdul Manaf saf, this has been mentioned in Malaysian CPG for children ADHD-one of the risk fac for adhd apart from preservatives.

  • Yong Junina Fadzil It’s easier said than done,though. Working hours, unfavourable weather conditions all favour staying indoors, n sometimes giving in to our kids’ demands is a lot less stressful than arguing with them. But realising the long term implications makes the fight worthwhile :) my son prefers to watch discovery channel, national geographic n animal planet in addition to spongebob squarepants etc. So there is balance there,somewhere, I guess :)

  • Safiyyah A Aziz Yeah. There are Many factors. Can they specifically pinpoint which preservatives now?

  • Safiyyah A Aziz I guess discovery is pretty ok. And he is above 5. Hehe. He can appreciate discovery very well. Yeah it is not safe also for much outdoor play on their own. It is tough. We definitely just really have to weigh the risks and benefits and do the best we can. Tell ariff I like spongebob too!

  • Nur Haidzat A Wahid Ooo cutting down Barney from now on thanks Kak Saf! Good to know. :)

  • Safiyyah A Aziz Yeah, at the end of the day we really want the best for our kids and we all try our very best to do whatever we can, still there are Bo guarantees. Allah has the eternal power. We just try our best. Alhamdulillah sumayyah is still tv free and it is quite a challenge sometimes to keep her occupied.
No Comments |

It’s All About You

Really love the song by McFly-All About You. It was an ending soundtrack to a South Korean variety show, Invincible Youth or G7. The song, combined with shots from the show does bring back memories.

The shots are beautiful.

It’s all about you (it’s about you)
It’s all about you baby (it’s all about)
It’s all about you (it’s about you)
It’s all about you

Verse 1:
Yesterday you asked me something I thought you knew
So I told you with a smile, it’s all about you
Then you whispered in my ear and you told me too
Said you’d make my life worthwhile, it’s all about you

Chorus:
And I would answer all your wishes
If you ask me to
But if you deny me one of your kisses
Don’t know what I’d do
So hold me close and say three words like you used to do
Dancing on the kitchen tiles, it’s all about you, yeah!

(Guitar solo)

Chorus 2:
And I would answer all your wishes
If you ask me to
But if you deny me one of your kisses
Don’t know what I’d do
So hold me close and say three words like you used to do
Dancing on the kitchen tiles
Yes you make my life worthwhile
So I told you with a smile
It’s all about you

It’s all about you (it’s about you)
It’s all about you baby (it’s all about)
It’s all about you (it’s about you)
It’s all about you baby (it’s all about)

No Comments | Tags: , , , , ,

Aku nak pilih Janda atau Anak Dara

Kawin janda atau anak dara? Hmm…

Itulah yang bermain difikiranku seawal pagi ini. Adeh… Ikutkan darah muda, nak aku cari awek Jepun atau Korea… Ngee…

Tapi, realistiknya.. aku hanya perlu yang serasi dan sedia mahukan aku. Cantiknya ada pada manisnya sudah…

Aku dicadangkan seorang janda. Agamanya bagus… bagus amat daripada aku. Rasanya kecil pulak diri ini tapi ok la.. buleh kasi ajar sama aku… Tapi sudah ada 4 anak.

Sebelum ni, cuba ber’contact’ dengan seorang anak dara. Tapi, she’s being to hard to get. Chehh.. Awalnya, secara internet messaging ok. Tapi bila messaging through handset, respondnya sedikit dingin. Aduh… aku sudah ada minat pada dia dulu. Tapi sepertinya sekarang ini, hubungan sangat dingin.

Kak janda ni, dengar cerita sangat tak kesah status kerja bakal suami asalkan si dia dapat mencurahkan kasih sayang kepada dia dan anaknya. Aku… mungkin mampu to do  just that, but aku punya ego, punya integrity diri. Aku mahu juga menjalankan tanggungjawab aku sekiranya aku bergelar suami. Takkan nak  biar isteri sara keluarga.. Mak aih…

Adeh… susah jugak mau kawin. Sebab aku hidup tak sama macam orang lain. I’m taking too much risk in my life. Jadi, tak perempuan perawan yang mahu kawin dengan orang yang tak tentu lagi (soo much risk involves).

Uh… biarlah… Let my niece kawin dulu… Let my younger brother kawin dulu. Aku cari… Sudah ada jodoh ketentuan. Tapi ya… aku akan usaha…

For the time being, I wanna make sure my position that I’ve risked until today is rewarded. Nanti, bulehlah aku nak pelihara anak janda sekalipun.

p.s. Ngapa tak leh buat macam orang tua dulu2. Arranged marriage. That’s what I hoped for. Like my 3 older brothers…

2 Comments | Tags: , ,

MySQL: TINYINT or INT and what is the meaning of INT(4)

Answer is actually very simple, but several of my friends have missed the point of having size modifier in MySQL column type definitions, so I suppose it’s something non-obvious. Main confusion, I believe, has its roots in string data-type definitions:

 VARCHAR(N)
 CHAR(N)

where N is the maximum number of characters you want to store into field, i.e. it is field’s length. And depending on your settings you might receive an error (in strict SQL mode) when you are inserting something that exceeds the pre-defined length. Even if you don’t receive error or warning, the field is limited to the length you set, and the exceeding part is truncated. So, VARCHAR(20) and VARCHAR(40) are really different with respect to how big the stored value could be.

Now, let’s get back to numeric types. For numeric types length modifier is actually display width, which has nothing to do with what can be stored in field. Yes, that’s it – both TINYINT(1) and TINYINT(4) can store values in range -128..127 (or for unsigned values 0..255), and are absolutely identical datatypes, with one small twist (which concerns date retrieval – see below).

Here is explanation of what is meant by display width, taken directly from the source:

The display width does not constrain the range of values that can be stored in the column, nor the number of digits that are displayed for values having a width exceeding that specified for the column. For example, a column specified as SMALLINT(3) has the usual SMALLINT range of -32768 to 32767, and values outside the range allowed by three characters are displayed using more than three characters.

So, if display width doesn’t constrain the range of values our numeric type can hold, why to use it at all? On MySQL forum, there was a post suggesting that by using the display width, we set mental reminder to ourselves on how big the field should be. Me personally, find this quite logical, this is some kind of mental tooltip which pops up when you review your schema.

Of course, there’s a more deliberate functionality for having display width. One obvious example would be ZEROFILL attribute, which when used in datatype definition guarantees that the value returned would always have pre-defined width, and default space padding is replaced with zeroes. For example, when column is defined as INT(5) ZEROFILL, and value to be retrieved is 4, MySQL would return it as 00004.

So, the bottom line: for numeric types, N in TYPE(N) has nothing to do with value range, and refersto display width.

Type Storage Minimum Value Maximum Value   (Bytes) (Signed/Unsigned) Signed/Unsigned)

TINYINT 1 -128 127

0 255

SMALLINT 2 -32768 32767

0 65535

MEDIUMINT 3 -8388608 8388607

0 16777215

INT 4 -2147483648 2147483647

0 4294967295

BIGINT 8 -9223372036854775808 9223372036854775807

0 18446744073709551615

 

int unsigned 4294967295

 

@philip andrew:
Well, actually integer is quite big enough to make sure you would not run out of numbers. If you use unsigned int, then the maximum is 4294967295 – and believe me it is a huge number!

Of course there might be situations when even this number is not enough, and you resort to BIGINT, but it happens more rare than one might think. Primary keys are used to uniquely identify some entity in your table – and if your application has 4294967295 of anything, it’s quite a big application.

Why I prefer INT? Because of performance – if you don’t need big number, and you use it, then you are wasting not only your resources but computing power as well. MySQL is extremely good when it comes to int primary key traversal (for selects, joins), so try to stick with INT, unless you really need BIGINT.

No Comments | Tags: ,