Hacking, Smartphone by rizapn, 28 December 2008 10:50 am

Opera MiniI change my smartphone, and now I have a Windows Mobile 6 inside it. Googling, searching, and find that Opera Mini is the best mobile browser exists. It is very fast (because all content is compressed before passing to our mobile handset), easy to read (mobile screen is very different with desktop right?) and the best thing is : free.

One problem that I found before using this Opera Mini is : it is Java midlet, and my WinMob smartphone (Samsung i600) does not have a built-in java capabilities or a midlet manager. Again, googling, and found that JBED is the best Java Virtual Machine (JVM) for winmob smartphone. I use JBedRose, because it give a full-screen capabilities. Some JVM is not a full-screen when it is executed from WM. There is a small part on the bottom of the screen that is not handled by the JVM, and this jbedrose can handle it. The main plus of this jbedrose is the speed. I try some other JVM, and found no one can beat her speed.

Install jbedrose, install Opera Mini 4.2, and voilla, it is run perfectly. But … why the font is very strange? It is too small, and not so clear for reading in my screen [landscape 320x240] (compared to the old jbed version that I used before). Ask Mr. Google, and found this clue from XDA Developers site :

Add registry key called (Read more details …)

Hacking, Articles, Smartphone by rizapn, 10 November 2008 6:28 am

Dopod c720wI have a keypad problem with my old XPhoneII. So, I decide to change it with another smartphone device, Dopod c720w. A GSM smartphone with 320x240 landscape screen, running on Windows Mobile 5 operating system. For us, who familiar with phone flashing, of course, there is a forum to discuss about upgrading its OS to the new WM6. I, personally, don’t want to migrate to WM6 for the time being. Usually, higher WM version, faster CPU speed is needed. If not, we will get a slower OS running in our phone.

Buy from the largets Indonesian community, kaskus with a good price (at least in my opinion, because I did search in the mall, and found no shop is selling this device, and there are some online adv with higher price). My first impression when the real device is coming into my hand is : slim and elegant, which is very different from the feeling that I got when I see it in the web.

And of course, just like my previous mobile phone, what I want to do in the first time is hacking (or tweaking) it. To make it possible, we must : ‘unlock’ the device, so we can modify (or create) registry values with no restriction using this Smartphone Registry Unlock software. If we want to modify the registry throught a script (very useful for mass modification), we can use this RAPIConfig software.

(Read more details …)

Hacking, Script, wordpress by rizapn, 23 October 2008 3:30 pm

Wordpress MU again … :p

I wrote a plugin, I call it : Header Insert Plugin, which can insert a HTML code into the head section. Using this plugin, Site Admin can insert a specific HTML into the head admin, and users can supply their own value.

For example, Site Admin enter this code :

<style>.myimage { url(%image_url%); }</style>

and the user enter this as ‘image_url’ parameter in the Header Insert Options :

http://myserver.com/username/files/2008/10/test.jpg

then, the plugin will display :

<style>.myimage { url(http://myserver.com/username/files/2008/10/test.jpg); }</style>

in the user’s client.

What is this for ? (Read more details …)

Hacking, Articles, wordpress by rizapn, 21 October 2008 1:52 pm

Still about Wordpress MU plugin. I use Donncha’s Sitewide Tags Plugin to display all recent post from the whole users. The problem is, the comment count is displayed in the wrong way. It is always display 0 (zero), even there is a comment in the original post.

Search in the core code, and found this :

return apply_filters('get_comments_number', $count);

in the comment-template.php file. Voila, we can change how WP display the number of comment.

I add these lines into that plugin, and it works very well … Great WP !

function sitewide_tags_get_comments_num($count)
{
  global $blog_id,$wpdb,$post;
  $tags_blog_id = get_site_option('tags_blog_id');
  if (!$tags_blog_id || $blog_id!=$tags_blog_id) return $count;
  $base = $wpdb->base_prefix;
  list($post_blog_id,$post_id) = explode('.', $post->guid);
  $r = $wpdb->get_col(\"SELECT comment_count FROM $base{$post_blog_id}_posts WHERE ID=$post_id\");
  if (is_array($r)) return $r[0];
  return $count;
}
add_filter('get_comments_number', 'sitewide_tags_get_comments_num');

You probably need to also modify (Read more details …)

Hacking, Script, wordpress by rizapn, 19 October 2008 2:35 pm

Searching, reading, learning … then improve … :p)

After knowing more about Wordpress MU (wpmu), I know that my first plugin for Wordpress MU (Custom CSS menu) is not good in term of coding. It use two separate file, which is actually possible to use only one. Not only two files, but also need to copy one of them to wp-admin folder.

For you who like that plugin (like me :p), just download the latest ones from here. Save the file as a PHP file (if you don’t know how: right click, and then Save Link As … / Save Target As … rename the destination file to “ccss.php”), and copy it to your wp-content/mu-plugins folder, and you will get the additional Custom CSS sub-menu under the Design menu.

The difference between the 1st version and this update is (Read more details …)

«« Next       Prev »»