marsinvasion.blogspot.com
Video Killed the Radio Star: Git and windows
http://marsinvasion.blogspot.com/2011/07/git-and-windows.html
Video Killed the Radio Star. Saturday, July 23, 2011. I've missed git since joining overstock, so while starting on a new personal project, I decided to start off with git again. Now it's been a while since I've programmed on Windows and once you're used to 'nix machine you miss all the tools that's built in. After keeping forgetting that ls, vim or ssh won't work on the stupid windows prompt, I was looking at alternatives. If you don't have a git config file, I would recommend using git config initially.
marsinvasion.blogspot.com
Video Killed the Radio Star: git remove untracked files
http://marsinvasion.blogspot.com/2012/03/git-remove-untracked-files.html
Video Killed the Radio Star. Thursday, March 29, 2012. Git remove untracked files. I do a lot of branch switching and files which are ignored in one branch show up as untracked files. This gets annoying during merge conflicts as then its difficult to keep track of whats actually conflicted and new and whats not. After trying around a few commands this alias works great for me. Git ls-files - other - exclude-standard xargs rm;". Now just run git remove-untracked and the eyesore is gone!
marsinvasion.blogspot.com
Video Killed the Radio Star: February 2011
http://marsinvasion.blogspot.com/2011_02_01_archive.html
Video Killed the Radio Star. Thursday, February 17, 2011. There are a few push applications for grails (horrible documentation) and we had to tweak a few things for our application. Asynchronous Notification or Push follows the typical publish/subscribe design pattern. One of the things about push is it broadcasts to everyone while we had to come up with a way to push messages to specific clients so as not to waste resources on unnecessary updates. You can then create a service as an atmosphere service.
marsinvasion.blogspot.com
Video Killed the Radio Star: Connect to In-memory grails hsql database using java swing
http://marsinvasion.blogspot.com/2010/11/connect-to-in-memory-grails-hsql.html
Video Killed the Radio Star. Wednesday, November 10, 2010. Connect to In-memory grails hsql database using java swing. Grails comes with a Swing Database manager application to connect to your in-memory database. Start the grails app : grails run-app. Add the hsql db to your classpath. I would just add it your bash profile/bash rc file. Export CLASSPATH=$CLASSPATH:/usr/local/grails/lib/hsqldb-1.8.0.10.jar. Run the swing app. Java org.hsqldb.util.DatabaseManagerSwing. Enter the following settings.
marsinvasion.blogspot.com
Video Killed the Radio Star: convert csv to sql
http://marsinvasion.blogspot.com/2011/08/converst-csv-to-sql.html
Video Killed the Radio Star. Friday, August 12, 2011. Convert csv to sql. Generally you can use either awk or sed to generate sql files from a csv input. However on my current project we are using oracle as our db and needed the ability to write a commit instruction every few hundred lines. After a bit of reading about, awk actually keeps track of lines read and was well suited to generate such a sql. Here is my shell script. Usage : ./csv.sh inputfile.csv. Awk -F',' '. If ( lines%100= 0 ){.
marsinvasion.blogspot.com
Video Killed the Radio Star: April 2012
http://marsinvasion.blogspot.com/2012_04_01_archive.html
Video Killed the Radio Star. Thursday, April 19, 2012. Find and replace in place. With our current project structure we are constantly having to jump across versions. Simplest way for in place replacement. For eg. to find and replace all snapshot versions in pom.xml. Find -name 'pom.xml' -print0 xargs -0 sed -i 's/3.1.0-SNAPSHOT/3.1.4-SNAPSHOT/g'. Find -name 'pom.xml' -exec sed -i 's/3.1.4-SNAPSHOT/3.1.5-SNAP/g' {} ;. Labels: find replace in place. Subscribe to: Posts (Atom). View my complete profile.
marsinvasion.blogspot.com
Video Killed the Radio Star: November 2010
http://marsinvasion.blogspot.com/2010_11_01_archive.html
Video Killed the Radio Star. Wednesday, November 10, 2010. Connect to In-memory grails hsql database using java swing. Grails comes with a Swing Database manager application to connect to your in-memory database. Start the grails app : grails run-app. Add the hsql db to your classpath. I would just add it your bash profile/bash rc file. Export CLASSPATH=$CLASSPATH:/usr/local/grails/lib/hsqldb-1.8.0.10.jar. Run the swing app. Java org.hsqldb.util.DatabaseManagerSwing. Enter the following settings.
marsinvasion.blogspot.com
Video Killed the Radio Star: Push in Grails
http://marsinvasion.blogspot.com/2011/02/push-in-grails.html
Video Killed the Radio Star. Thursday, February 17, 2011. There are a few push applications for grails (horrible documentation) and we had to tweak a few things for our application. Asynchronous Notification or Push follows the typical publish/subscribe design pattern. One of the things about push is it broadcasts to everyone while we had to come up with a way to push messages to specific clients so as not to waste resources on unnecessary updates. You can then create a service as an atmosphere service.
marsinvasion.blogspot.com
Video Killed the Radio Star: December 2010
http://marsinvasion.blogspot.com/2010_12_01_archive.html
Video Killed the Radio Star. Sunday, December 19, 2010. Expando to the rescue. As we incorporate more plugins in our environment, one of the issues we faced was on how to test code executed by plugins. Most well written plugins can be auto injected into your controllers and the implementing class is generally not exposed. So without knowing the implementing class, mocking it out would not be possible. Say we have a service using the background service plugin. Def expando = new Expando().
marsinvasion.blogspot.com
Video Killed the Radio Star: August 2011
http://marsinvasion.blogspot.com/2011_08_01_archive.html
Video Killed the Radio Star. Friday, August 12, 2011. Convert csv to sql. Generally you can use either awk or sed to generate sql files from a csv input. However on my current project we are using oracle as our db and needed the ability to write a commit instruction every few hundred lines. After a bit of reading about, awk actually keeps track of lines read and was well suited to generate such a sql. Here is my shell script. Usage : ./csv.sh inputfile.csv. Awk -F',' '. If ( lines%100= 0 ){.