Serge Bornow

Serge Bornow

Toronto, Canada
Serge Bornow
Let's talk singens.inc AT gmail.com

Blog

Simple threading/async execution in Ruby – tip on rake

April 18, 2013 | architecture, coding, ruby | by Serge

Ever need to suspend a task or a small job in Ruby (rails included) ? Of course you do. I won’t get into the lengthy discussion about green-threads in Ruby and yes Ruby is single threaded, JRuby can and does use  JVMs java.lang.Thread , in fact there is a very handy safe class  you should [...]

CoffeeScript way of checking for undefined

February 15, 2013 | coding, javascript | by Serge

I enjoy CoffeeScripting There is some learning curve but experienced developer will pick up. There is something i am not a fond of, its the indentation for block and function definition. Here is something to keep in mind: Checking for a variable existence: Normal Javascript: if (!(typeof data !== “undefined” && data !== null)) { [...]

Amazon Route 53 has another reason to be the best dns

February 13, 2013 | architecture | by Serge

Amazon Route 53 Announces DNS Failover With DNS Failover, Amazon Route 53 can automatically route your website visitors around site outages. DNS Failover helps you improve the availability of your applications in multiple ways, from leveraging a simple backup site hosted on Amazon S3, to running your primary application simultaneously in multiple AWS regions around [...]

Pushing to heroku from a different branch

February 1, 2013 | coding | by Serge

Heroku is great but i am sure you have all sorts of branches and you aren’t using master branch. Here is how you push a branch that you need:   git push heroku mylocalbranch:master

MongoDB in 2012

January 15, 2013 | architecture, mongodb | by Serge

My tale of MongoDB I’ve had a great time with MongoDB in 2012. I’ve replaced several mysql DBs with nicely organized mongoDB collections. I’ve developed an app using NodeJS (see mongoose) and stored massive data in mongodb. My favourite host: MongoLab.com , 500megs free per db and great engineering minds work there. I’ve built and [...]

MongoDB 2.4 full text search , time to drop solr/lucene

January 14, 2013 | architecture, coding | by Serge

Well, not really. Don’t drop Solr/Lucene if it works for you but having full text search feature within MongoDB is definitely handy. It’s not known at this time but i am certain this feature will work with replica set and sharding setups.   More here  

Oracle Localization Tips

January 11, 2013 | coding | by Serge

Tip #1   Localization settings can be set on Database level, Instance level (imagine geographically despersed cluster) , Session level Environmental variable NLS_LANG allows to override Language settings on a session level. For example you have an application deployment in Italy, obviously you’re expecting data to come in an Italian/European format here is the settings [...]