Category Archives: Programming

Programming

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#