- Drupal: FeedAPI Imagegrabber - 25 comments
- Sorting a 2-Dimensional Array in Java - 14 comments
- Tutorial for FeedAPI Image Grabber - 14 comments
- Schengen Visa to Germany - 9 comments
- PHP: Relative URL to Absolute URL - 4 comments
July 2009
You are browsing the archive for July 2009.
MYSQL: MINUS (Set Difference) Operator
Often we need MINUS operator as defined by the SQL definitions i.e you have two sets P and Q and you want P-Q which gives all the elements in P that are not in Q. But unfortunately, MYSQL does not have any operator for such an operation (yeah, I had the same reaction when I [...]
MYSQL: Get the Auto-Increment Values after Insert Statement
Until sometime back, I was unaware of how I could get the value of an auto-incremented field after an Insert Statement. But recently I needed it for two of my projects simultaneously, so I explored the possibilities. As one of my project is in Java and other is in PHP, we will go through both [...]
Sorting a 2-Dimensional Array in Java
Recently while working for my project, I came across this situation when I had a 2-D array and I needed to sort it twice on 2 of its columns. Consider the following 2D array:
String[][] testString = new String[][] {
{"1", "2", "6"},
{"4", "5", "3"}
};
Sorting the above 2D array on zero column [...]