Logo

Who is talking?

Archive

CSS common problems

about 6 years ago | Subodh Gupta: Subodh's Blog

overflow:hidden; doesn't work with span use div insteadfont-weight: Semi-Bold; doesn't work on most browsers use font-weight: 600; instead

If at all you need to Uninstall MySQL 5.5 from OSx

about 6 years ago | Amit Kumar: RubyizednRailified

https://gist.github.com/887350

development on Windows deploying to Linux with cruise and bundler?

about 6 years ago | Gourav Tiwari: easy_software = Agile.find(ruby_on_rails)

In my previous post, I set-up bundler with rails-2.2.2 application. Soon after that, I found myself in another trouble.When I set-up bundler, I had to create Gemfile for the gems required by my rails application. Also, when I run bundle install command, it creates Gemfile.lock file, this file holds various information:Gem repositories (sources)Which version of gem the application is using (gem specification)If there is any dependency of any gem, then what they arePlatform detailsIn my current project, I use Windows 7 as development machine, there is a cruise server on linux machine, I am committing my code to a subversion repository and once the build passes on cruise it deploys to a linux server. Every time I run bundle install, it creates a Gemfile.lock with windows version of gems and platform details for windows. If I commit Gemfile and Gemfile.lock, it fails the build and I have to manually login to cruise box and remove those files and re-run bundle install command, so that it generates the Gemfile and Gemfile.lock for linux environment, so that on integration and production servers, the Gemfile and Gemfile.lock will remain with linux version and there is no failures there. This was a pain.I wrote a ruby script to do this job for me. With this script, I removed everything windows specific in Gemfile and Gemfile.lock I can think of. Here is what I did (look at: https://github.com/gouravtiwari/windows_linux_fix_for_bundler for source code)I extended cruise:init rake task(created fix.rake in lib), to include my ruby script.In the script, I am removing windows traces, updating the platform details, running bundle command and then committing the latest Gemfile and Gemgfile.lock toSVN.This way, if by mistake I am committing Gemfile and Gemfile.lock to SVN, I don't need to go to cruise and re-generate Gemfile and Gemfile.lock.

development on Windows deploying to Linux with cruise and bundler?

about 6 years ago | Gourav Tiwari: easy_software = Agile.find(ruby_on_rails)

In my previous post, I set-up bundler with rails-2.2.2 application. Soon after that, I found myself in another trouble.When I set-up bundler, I had to create Gemfile for the gems required by my rails application. Also, when I run bundle install command, it creates Gemfile.lock file, this file holds various information:Gem repositories (sources)Which version of gem the application is using (gem specification)If there is any dependency of any gem, then what they arePlatform detailsIn my current project, I use Windows 7 as development machine, there is a cruise server on linux machine, I am committing my code to a subversion repository and once the build passes on cruise it deploys to a linux server. Every time I run bundle install, it creates a Gemfile.lock with windows version of gems and platform details for windows. If I commit Gemfile and Gemfile.lock, it fails the build and I have to manually login to cruise box and remove those files and re-run bundle install command, so that it generates the Gemfile and Gemfile.lock for linux environment, so that on integration and production servers, the Gemfile and Gemfile.lock will remain with linux version and there is no failures there. This was a pain.I wrote a ruby script to do this job for me. With this script, I removed everything windows specific in Gemfile and Gemfile.lock I can think of. Here is what I did (look at: https://github.com/gouravtiwari/windows_linux_fix_for_bundler for source code)I extended cruise:init rake task(created fix.rake in lib), to include my ruby script.In the script, I am removing windows traces, updating the platform details, running bundle command and then committing the latest Gemfile and Gemgfile.lock toSVN.This way, if by mistake I am committing Gemfile and Gemfile.lock to SVN, I don't need to go to cruise and re-generate Gemfile and Gemfile.lock.

jStat: Advanced Statistics using Javascript

about 6 years ago | Lalatendu Das: Interpretations of technorealism

While 'R' is getting enterprise ready, it's no longer the only open source option for advanced statistical programming. jStat.js is the new kid on the block.Things in favor of jStat:Based on Javascript, jQuery - future is assuredLight-weightAbility to visualize data using flot (jQuery plugin)Still no match for 'R' yet (complete API documentation is yet to come out), but certainly a bright prospect in application which require basic statistical analysis and data visualization (where 'R' is an overkill).Possibilities  with jStat.js - check this outThinking out loud..Node.js + jStat.js ...=..=!=..=... RIP 'R' ??

A quick look at Cricket World Cup 2011

about 6 years ago | Prasoon Sharma: Enterprise Software Doesn't Have to Suck

Preliminary rounds are over. Top 8 teams have qualified to quarter finals. No surprises there. No one doubted Australia, England, India, New Zealand, Pakistan, South Africa, Sri Lanka and West Indies to miss the cut. So what's next? A lot of action. Upcoming games are must-watch as the minnows are gone and now top teams battle in knock-out rounds and results could be surprising. So find a good excuse, a comfortable couch and your best buddies to watch the teams fight it out. There’s a lot of cricket played these days. This is the cup that matters.Here are the players and teams to watch...BATSMENAB de Villiers: At his peak performance since ICC Batsman of the Year award in 2009.Sehwag is fired-up and is dangerous when he spends more time in the middle than in the dressing room.Tendulkar has already scored two excellent centuries and should score his 100th ton in ODI and Tests during this World Cup.Sangakkara is slow but steady. Not flamboyant but successful. Watch out for his contributions.Aussie batsmen haven't scored big yet and their form remains a worry. Top Sri Lankan, Indian and South African batsmen have all found some form and are likely to score big in upcoming matches.Indian and West Indian tails have been frail and collapsed often. Get ready for a world cup that might be decided by how the tail-enders use their bats.BOWLERS: Spinners lead the bowling chart, with Afridi leading the pack. He’s the new Kumble. Aussies are missing their lethal bowling attack but Brett Lee is playing his last world cup like a champion.ALL ROUNDERS: All rounder performance has been key to many world cups.Viv Richards in 1979 for West Indies' victoryMohinder Amarnath, Kapil Dev and Madan Lal in 1983 for India's victorySteve Waugh in 1987 for Australia's victoryImran Khan in 1992 for Pakistan's victoryJayasuriya and Arvind de Silva in 1996 for Sri Lanka's victoryWorld Cups in 1999, 2003 and 2007 were decided by Australia's strong batting and bowling performance. Their batting (Ponting, Gilchrist, Waugh brothers, Bevan, Hayden) and bowling (McGrath, Warne, Lee) was superior compared to everyone else. In this World Cup, Yuvraj decided to prove those wrong who claimed that India is going into the World Cup without a genuine all rounder. His all round performance has been key in a couple of victories already. Kallis, the best all rounder in current ODI era, hasn’t wowed yet. Australia is known for great all rounders but notice the lack of all round performance from Aussies in this world cup (no yellow in chart below).TEAMSIt is difficult to predict the winner as the top 4 teams (Australia, India, South Africa, Sri Lanka) are more or less equal, as seen in preliminary rounds where no team was invincible and no team dominated completely. So get ready to cheer a surprise winner. Its not who you think it is!This world cup will be decided by all rounders and tail-end batsmen (to bat 50 overs). Batting and bowling strengths of top teams are more or less equal. Some have stars like Dale Steyn or Brett Lee while others have good pairs like Zaheer Khan and Harbhajan Singh.

Demystifying the financial Crisis

about 6 years ago | Lalatendu Das: Interpretations of technorealism

A small presentation I prepared to explain the Causes of the Subprime led Financial Crisis..prezi-player { width: 500px; } .prezi-player-links { text-align: center; }Subprime Financial Crisis on PreziPlease feel free to give feedback.

The travels of a T-Shirt in the global economy

about 6 years ago | Lalatendu Das: Interpretations of technorealism

Read an interesting book "The travels of a T-Shirt in the global economy". Author Piethra Rivoli traces the travels of an ubiquitous T-Shirt, from the cotton fields of western Texas to the manufacturing bases in china, back to the US market and then to continetal Africa. In the process she introduces the complex labyrinth of market forces in place, global trade, protectionism and power.A bit detailed at times, but still interesting read if you want to understand global trades..

Seth Godin on Leadership

about 6 years ago | Lalatendu Das: Interpretations of technorealism

"Say what you believe, see who follows."Inspiring!Exclusive interview with Seth Godin from GiANT Impact on Vimeo.

Bundler with rails-2.2.2

about 6 years ago | Gourav Tiwari: easy_software = Agile.find(ruby_on_rails)

I am working on a rails application, which is on rails-2.2.2. I have used bundler on rails-3 application, but never tried bundler for rails-2.2.2. The benefit of bundler is huge, it is gem manager for rails application. So, now no pain of vendoring/localizing gems in rails application.gembundler.com gives step-by-step process on how to install/configure bundler for rails-2.3.x and rails-3.x applications. So, I wanted to find out how does it work with rails-2.2.2 application.So, here is how I did.First of all I have installed bundlergem install bundler // installed bundler 1.0.10Updated rubygemsgem update --system // rubygems > 1.3.6Created config/preinitializer.rb file with below content:begin  require "rubygems"  require "bundler"rescue LoadError  raise "Could not load the bundler gem. Install it with `gem install bundler`."endif Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")  raise RuntimeError, "Your bundler version is too old for Rails 2.3." +   "Run `gem install bundler` to upgrade."endbegin  # Set up load paths for all bundled gems  ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)  Bundler.setuprescue Bundler::GemNotFound  raise RuntimeError, "Bundler couldn't find some gems." +    "Did you run `bundle install`?"end Created Gemfile with something similar:require 'rubygems'source 'http://rubygems.org'source 'http://gemcutter.org'source 'http://gems.github.com'gem 'rails', '2.2.2'gem 'hpricot', '0.6.0'gem "composite_primary_keys", '1.0.8'gem 'javan-whenever', '0.3.7'gem 'mysql', '2.8.1'gem 'activerecord-oracle_enhanced-adapter', '1.1.9'gem 'ruby-oci8', '1.0.3'group :test do  gem 'mocha', '0.9.5'  gem 'rspec',             '1.3.1', :require => 'spec'  gem 'rspec-rails',       '1.3.3'  gem 'database_cleaner',  '0.5.0'  gem 'capybara'  gem 'ruby-debug'  gem 'factory_girl'endFrom the application root, I ran:bundle installThat is it and I have my application up and running with bundler. Once I tested my application, I removed gems folder from /vendor (no need for localized version of gems now.)

Bundler with rails-2.2.2

about 6 years ago | Gourav Tiwari: easy_software = Agile.find(ruby_on_rails)

I am working on a rails application, which is on rails-2.2.2. I have used bundler on rails-3 application, but never tried bundler for rails-2.2.2. The benefit of bundler is huge, it is gem manager for rails application. So, now no pain of vendoring/localizing gems in rails application.gembundler.com gives step-by-step process on how to install/configure bundler for rails-2.3.x and rails-3.x applications. So, I wanted to find out how does it work with rails-2.2.2 application.So, here is how I did.First of all I have installed bundlergem install bundler // installed bundler 1.0.10Updated rubygemsgem update --system // rubygems > 1.3.6Created config/preinitializer.rb file with below content:begin  require "rubygems"  require "bundler"rescue LoadError  raise "Could not load the bundler gem. Install it with `gem install bundler`."endif Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")  raise RuntimeError, "Your bundler version is too old for Rails 2.3." +   "Run `gem install bundler` to upgrade."endbegin  # Set up load paths for all bundled gems  ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)  Bundler.setuprescue Bundler::GemNotFound  raise RuntimeError, "Bundler couldn't find some gems." +    "Did you run `bundle install`?"end Created Gemfile with something similar:require 'rubygems'source 'http://rubygems.org'source 'http://gemcutter.org'source 'http://gems.github.com'gem 'rails', '2.2.2'gem 'hpricot', '0.6.0'gem "composite_primary_keys", '1.0.8'gem 'javan-whenever', '0.3.7'gem 'mysql', '2.8.1'gem 'activerecord-oracle_enhanced-adapter', '1.1.9'gem 'ruby-oci8', '1.0.3'group :test do  gem 'mocha', '0.9.5'  gem 'rspec',             '1.3.1', :require => 'spec'  gem 'rspec-rails',       '1.3.3'  gem 'database_cleaner',  '0.5.0'  gem 'capybara'  gem 'ruby-debug'  gem 'factory_girl'endFrom the application root, I ran:bundle installThat is it and I have my application up and running with bundler. Once I tested my application, I removed gems folder from /vendor (no need for localized version of gems now.)

Why learn R?

about 6 years ago | Prasoon Sharma: Enterprise Software Doesn't Have to Suck

I'm introducing R to a few colleagues this week and want to share why learning a software like R is important... Here are a few articles that explain it well... Other reasons?Importance of data science- Couple years ago Google's Chief Economist Hal Varian said that the sexy job in the next ten years will be statisticians. Read the full article (requires registration)The ability to take data - to be able to understand it, to process it, to extract value from it, to visualize it, to communicate it's going to be a hugely important skill in the next decades, not only at the professional level but even at the educational level for elementary school kids, for high school kids, for college kids. Because now we really do have essentially free and ubiquitous data. So the complimentary scarce factor is the ability to understand that data and extract value from it.I think statisticians are part of it, but it's just a part. You also want to be able to visualize the data, communicate the data, and utilize it effectively. But I do think those skills - of being able to access, understand, and communicate the insights you get from data analysis - are going to be extremely important. Managers need to be able to access and understand the data themselves.- Rise of data scientists- Becoming a data scientist- Essential skills for a data scientistWhere R fits?R provides an environment for all tools needed for data science (see the data science process below from Benjamin Fry's thesis).- R is ideal for small data analysis i.e. data that fits in a computer's RAM e.g. data < 10GB. Whereas SQL and search techniques seem good for larger data sets that can fit in one machine and techniques like Hadoop are good for BIG data sets that cannot fit in one machine.- NY times article on R you ready for R?- NY times article on R- R is becoming popular

Tipping point by Malcolm Gladwell

about 6 years ago | Lalatendu Das: Interpretations of technorealism

Just completed reading 'Tipping Point: How little things can make a big difference' by Malcolm Gladwell.The book primarily covers three basic rules that apply to spread of any epidemic. Those are [sic]:Law of the few: There are always Early adopters for any new idea. Success of the idea depends on the work and influence of the Early adopters. Typically Early adopters can be one of the following categories a) Mavens - One who accumulates knowledge b) Connectors- Who knows a lot of people c) Salesmen - People who can influence others  Stickiness Factor: There is a simple way to package information that, under the right circumstances, can make it irresistible. All you have to do is to find it.Power of Context: Human beings are a lot more sensitive to their environment than they may seem.While the author discusses the above mentioned points in the context of epidemics in general, in hindsight, these laws have profound application in Managing Organizational Change. I would certainly apply these rules, when I plan next to introduce a new process in the organization.