Author Archives: James Lin

Firebug 1.6.0 released

Overview of Firebug 1.6 Firebug 1.6 supports Firefox 3.6 Console and Command Line Command line available on all panels New API for the console object: console.table() Console allows to filter its content Improved auto-completion now the best of all Logging of cut/copy/paste events Support for XPath console logging Descriptive background colors for console messages HTML… Read More »

My dokuwiki plugins

A while ago I wrote some dokuwiki plugins: User Home Page Auto Include Index Table Math Modal Popup ACL Made Easy

Category: PHP

Subnetting

These are: Class A: 10.0.0.0 Class B: 172.16.0.0 – 172.31.0.0 Class C: 192.168.1.0 Each one of those have a subnet. Class A: 255.0.0.0 Class B: 255.255.0.0 Class C: 255.255.255.0 Click to access 501302.pdf

How do you rotate a two dimensional array?

http://stackoverflow.com/questions/42519/how-do-you-rotate-a-two-dimensional-array This is the best so far I have come up with PHP, can anyone refine this for me?? $b = array(); $a = array(array(1,2,3,4),array(5,6,7,8),array(9,0,1,2),array(3,4,5,6)); while(count($a)>0) { $b[count($a[0])-1][] = array_shift($a[0]); if (count($a[0])==0) { array_shift($a); } }

Category: PHP

Problem: JQuery scrollLeft + Chrome + Hidden Div

When I was writting a modal carousel album display, I was having a strange problem with JQuery scrollLeft in Chrome: I had a div with css set to overflow:hidden and using jquery’s scrollLeft function in order to scroll the thumbnails, everything works, however, if you close the modal (setting the div to display:none), the scrollLeft value change back… Read More »

Where AM I? An offline google map application.

Disclaimer: This article is for educational purpose only, it is purely demonstrating how google map works. Hi Guys, If you are reading this article, you should know about google maps. It’s an awesome service, and the API provided can help you to do lots stuff, ie inputting your GPS coordinates and pin point where you are.… Read More »

Category: C#