About Internet Explorer

Posted by Dityo Nurasto | January 4, 2012 | Software and Web Development | 0 Comments

Obviously, I was grown up with Internet Explorer 6. I want to write up about Internet Explorer and why we should love this browser. Internet Explorer always be victim for browser war and no one could tear IE down from browser market share. Its still has good market share until today.

We all know that IE 6, IE 7, and IE 8 has different implementation. There’s known hacks know as conditional comment, but I prefer say conditional comments are not hacking because the condition located inside HTML comments which will successfully validated by W3C Validation tool.

IE 9 has different story. This browser is the first browser implementing hardware acceleration using GPU on browser’s canvas. You will find smooth transition between scroll and animation on good GPU. Internet Explorer 9 not supporting HTML 5 and CSS 3 widely for good reason, both specification are still in draft until this article written.

Read More …

Show Advertisement in The Middle of WordPress Archive Post

Posted by Dityo Nurasto | December 26, 2011 | Software and Web Development | 0 Comments

You want to monetizing your wordpress powered blog and you pick strategic places to put your ads. One of your ads unit place is in the middle of archive posts list and you want to modify your template / theme to accomplish the task.

There’s many way to edit your template but I want to give an example using simple template. The template will contains index.php and style.css which is the basic requirement for creating wordpress theme. If you get the idea, you may applying this technique in any theme.

Read More …

WordPress Post ID Huge Jumps

Posted by Dityo Nurasto | December 6, 2011 | Software and Web Development | 3 Comments

I am moving from my previous linux web host to dotNet host which can handle ASP.NET pages. I am surprised the migration is relatively easy and wordpress already support IIS rewrite to maintain permalink.

I was tried to check everything out and found my several latest post get HUGE ID, like this one 4.162.708.458. I never post 4 millions article to my website even combine with my revisions. I don’t remember what the exact error but will cause error as like “You don’t have permission to edit” or some kind like that when trying to edit content. In Linux based machine this won’t lead to any problem anyway.

So, I drill down the data and found out interesting auto increment jump from 210 suddenly jump to that number. I don’t want my next post will have ID in 4.162.708.459. Problematic post ID around 14 posts. So, I need a solution to make my next post will be 225. I am using store procedure to achieve my purpose, I know I can use PHP but mysql SP doesn’t need mysql_connect or mysqli_connect. Let’s see the code.

Read More …

Using Same VirtualBox Machine on Dual Boot

Posted by Dityo Nurasto | December 2, 2011 | Servers, Software and Web Development | 0 Comments

My PC installed with Microsoft Windows 7 and Ubuntu 10.04 and recent days I work with both platform to create some web application. I am using SVN to centralize and easier versioning. My SVN server located on one of my VM which is running on Debian Server.

The situation is I want that virtual machine are available on both OS. I was looking everywhere from google for the solution and found a solution but I don’t want to reattach VDI file on new virtual machine because UUID will regenerate and also MAC Address.

The solution is really simple and I don’t even notice that virtual box GUI already has Add features. Luckily, VirtualBox 4.1.6 already integrate virtual harddisk (VDI) and it’s machine configuration (VBOX) under same directory.

Just make sure that your virtual machine under NTFS because Ubuntu will read it easily, most Linux based OS already have the function either.

I was doing these steps to accomplish my mission:

  1. Mount NTFS partition where the virtual machine located
  2. On VirtualBox choose this menu Machine -> Add, or simply press CTRL + A
  3. You may meet this error Configuration error: Failed to get the “Trunk” value
  4. Just reattach the VDI and it will run.

That’s it.  Now, I can use the machine for SVN either in Windows and Ubuntu 10.04.

update: You need to enter settings windows and press OK every time moving to each operating system in order to makes configuration adjusted.

Belajar Framework PHP : Kohana Bagian 1

Posted by Dityo Nurasto | November 8, 2011 | Software and Web Development | 0 Comments

Saya kemarin menulis bahwa akan membahas mengenai pengkodean dalam Framework PHP Kohana. Pada tulisan tersebut saya membahas kulit dari Kohana secara konseptual sekarang kita masuk bagian sedikit teknis.

Kita perlu mendownload Kohana 3.2.x sebelum kita mulai proses pembelajaran mengenai Kohana, setelah mendownload silahkan mengekstrak Kohana pada direktori htdocs pada XAMPP dan rename menjadi kohana karena direktorinya seperti kohana-3.2-master-1.

Saya menggunakan Kohana 3.2.0 karena alasan kemuktahiran Kohana karena versi sebelumnya cara pengkodeannya cukup berbeda. Sebelum kita masuk ke bagian coding (yang akan dimulai dari Bagian 2), kita perlu memahami struktur direktori Kohana secara garis besar.

Read More …

Bit and Bytes

Hello. My name is Dityo Nurasto. I am working as freelance software and web developer.

This is my personal playground. Enjoy your stay and don't hesitate to send comments.