Articles by rizapn, 3 February 2011 11:52 am

I’m a PHP user. I use PHP to do some task in my daily job. Two days ago, I need to connect to microsoft SQL server using PHP. It is quite easy, because PHP has many standard mssql_xxx() function just like any other db connecting stuff.

The problem is : I can connect to the same server from one PC, but can not do it, even with the very same PHP version and configuration from some others (located in the different network segment). I got this error : "mssql_connect(): Unable to connect to server: ..."

Googling, and I found, it is probably caused by protocol used by mssql_connect() (which is netbios instead of tcp). I then check the sql server configuration, but the TCP is already enabled. Then, after some more googling, I found this link : http://bugs.php.net/bug.php?id=40034

That is a bug … some version of PHP ntwdblib.dll use netbios instead of TCP as a default protocol. If our network router is not allowing netbios connection cross the segment, then it will give us a problem.

Finally, this is the working solution (at least for me) : download the “TCP” version of ntwdblib.dll from this site : http://www.dlldll.com/ntwdblib.dll_download.html … It works for my situation, and hope it is also good for all of you with the similar problem …

Good luck,

Articles by rizapn, 22 January 2011 8:14 am

Have you ever stuck in this problem? You are 100% sure about your username and password, but still, your Blackberry keep telling this annoying error messages “Invalid Yahoo! ID or Password” … even if we are able to logged in using that combination using a computer in that time.

Very strange condition, but it is happened some times. I am on that condition for the last 2 days, and it makes me mad, because I use YM in BB almost anytime.

Googling, posting a question in Blackberry Support site, and reading some others comment also. Finally, I was able to solve it using this suggestion …

1. Login to Yahoo! account using a computer
2. Change the password
3. Login to Yahoo! Messenger using a computer
4. While you are still logged in, using your BB to login to YM
5. Voila … it works now (at least, it happened also to me)

Good luck …

Articles by rizapn, 28 April 2010 3:00 pm

As a programmer, usually, my application is not a commercial ones. I build them, because I love to do a programming, so I just share with the communities as a freeware. But sometimes, for any reason, we have to create a commercial application. Today, I believe, Java is the most language which is used in the mobile programming. Personally, I have a “bad” experience with Java mobile programming. It was 2005, and I got a conclution that Java is very slow, and it was not good for building an application. But, today, I change my mind. I got a very good impression after building myQuran.

First, I build it under JDE (Java Development kit for BB). I was very impressed with BB’s java library. It is very complete and it make us, as a programmer, just sooo happy. Almost everything is provided. It just like we build a desktop application :) OK, great …

Then, I try to port it to the “normal” java for mobile, J2ME. And even, for some functions, I got a very positif feeling. I use SUN Wireless Toolkit for building and running that myQuran application. Everything is perfect in the simulator, and it is time to try it on the real device. Because I use Huawei C6100 CDMA handset in my day-to-day activities, I try it there … and guess what is my feeling? WOW … it’s amazing. Fast and the display is very clear …

Then, some stuff is coming, and I have to make it (myQuran) commercial. Suddently, Java is becoming nightmare :( I can not find any way to lock my application. I can not read the DeviceID (ESN/IMEI/MEID) or user card ID (IMSI/DN) without signing the application (Blackberry is more powerfull in this area, they provide some class which is able to return some unique value from handset or SIM/RUIM card even from un-signed application).

OK, I got a certificate for my application and I can read IMSI from user’s RUIM card. But, then … I found another big problem. I can decompile my application JAR file and create a/some java file from that JAR. I try to check the java, and yes … I can found and read the algorithm to generate the registration code. Obfuscating it? Yes, I did it, but still … I can read it :( … My JAR is almost naked …

And now, I’m still googling, and try to find a way to hide at least the registration algorithm, if I CAN NOT prevent my JAR for being decompiled.

Commercial by rizapn, 3 March 2010 3:09 pm

I just put myself into the “Hello World !” of BB application :)

I bought this devices some months back, but accidently, I want to write something for this phone just a week ago, when I saw a very good PC application for reading Al-Quran digitally.

For you, a moslem brother and sister, who like to “bring” Al-Quran together with this BB phone, just try this application. It use a single PNG file for every page. Use a very clear Quran images provided by some PC application and then convert it to the PNG with 480 or 320 width resolution (see the samples) to get the best reading result.

This application also have some simple but powerfull capabilities, such as : goto page, goto surah and ayah, play voice (pre-recorded AMR/MP3/WMA file separated for each ayah).

(Read more details …)

Articles by rizapn, 17 December 2009 6:06 am

Rubik’s Cube is an old puzzle game. It is invented in 1974, and then sold in the toy shop since 1980 (Wikipedia). There are many type of Rubik, based on its size: 2x2x, 3x3x3, 4x4x4, 5x5x5, etc … or from its form.

Rubik’s Cube adalah permainan yang sudah lama ada. Ditemukan pada tahun 1974, dan diperjual-belikan sejak tahun 1980 (Wikipedia). Ada berbagai macam Rubik, sesuai dengan ukurannya : 2x2x2, 3x3x3, 4x4x4, 5x5x5, dan seterusnya … atau dari bentuknya.

I play it since 20 years ago when I was in college. I don’t remember who teach me about the algorithm, but finally I can solve it, with some simple formula. I just remember that, I solve it layer by layer. The first layer is solved “without” any formula, but some logics.

Waktu kuliah, saya mulai menyenangi permainan ini, dengan tujuan untuk membuat ke-enam sisi (dulu, tahunya Rubik itu ya yang ukuran 3x3x3 aja) -nya sama. Entah siapa yang ngajarin (ma’af, bener-bener lupa, itu udah 20 tahun yang lalu), akhirnya saya bisa, dengan menggunakan beberapa “rumus”. Yang saya inget, bikinnya harus layer demi layer. Layer pertama bener-bener “tanpa formula”, karena harus menjadi kebiasaan. Masih bisa dinalar :)

(Read more details …)

   Prev »»