Profile cover photo
Profile photo
Amod Pandey
150 followers
150 followers
About
Amod's interests
View all
Amod's posts

Post has attachment
Angular Factory for $resource and dynamic header content
I created a Factory recipe for my $resource instance. There are multiple ways to create it. I used this approach.   angular.     module('myModule').     factory('myService', ['$resource', '$localStorage',       function($resource, $localStorage) {         v...

Post has attachment
Sublime copying all text that match a pattern
I had a text file containing numbers in between text that I wanted to copy, move to a new file and format them. Since the numbers were of of fixed length and at the same index I could have copied them using vertical select. The vertical select is tricky if ...

Post has attachment
Creating a dynamic table out of list of numbers to join
I had a list of ids and I wanted to check which rows are not present in the DB. We can use 'in (1, 2, 3)' and that would say which ones are in, and 'not in' would return rows outside the ids I had. So I wanted to make a table out of the ids and use left or ...

Post has attachment
Query join with View - Oracle Performance
I had a slow running query that joined on two views, A and B. I had this wrong understanding that the query is slow as it prepares the whole view and then runs the query on the view. This was totally incorrect. Consider view in a join as a sub-query. The op...

Post has attachment
Avro - schema change compatibility
I was under the impression that I can add an optional field to Avro schema and consumers with old schema would still be able to read the message whether or not the newly added optional filed is set or not in the record. So I added an optional field to an Av...

Post has attachment
Map.get - KeyNotFound error
It is interesting how different languages approach towards a given problem. Let's have a look at how different languages react while trying to read a key from dictionary Java map.get('key_that_does_not_exist') => null Ruby map[' key_that_does_not_exist'] =>...

Post has attachment

Post has attachment
JDK in OSX
I wanted to figure out the Java installation on OSX so that I can easily switch between JDK 6,7 and 8. I got my answer from this post http://stackoverflow.com/questions/15120745/need-help-understanding-oracles-java-on-mac In summary When we install Java usi...

Post has attachment
PhotoPhotoPhotoPhotoPhoto
Amod's album
19 Photos - View album

Post has attachment
eclipse
Adding more support to your eclipse (say you have only Java support and you want to add web support) 1. Download eclipse with Web support 2. Or, add required module through Help - Install New Software - http://download.eclipse.org/releases/luna (your release)
Wait while more posts are being loaded