Archive for rails

[a.Bionic] auto-download all videos of any Event at Confreaks.com

Posted in ABK Labs with tags , , , , , , , , , on November 28, 2012 by abhishekkr

@ abionic.blogspot.in [27/Nov/2012]

http://abionic.blogspot.in/2012/11/auto-download-all-videos-of-any-event.html

Auto-Download all smallest size Videos of any provided Event in Confreaks.com

to install it either run
$ sudo curl -L -o /etc/profile.d/ddl-confreaks.sh https://gist.github.com/raw/4137843/e6c6c93ef1c4cbf4cb735de821b74fcec467c170/gistfile1.sh

or copy+paste the shell function below in your shell-load-conf file.

suppose the event resides at URL:
http://confreaks.com/events/rubyconf2012

and you just need to run
$ ddl-confreaks rubyconf2012 ~/Downloads

and it will download all Talk Videos from Ruby Conference 2012 at your ~/Downloads directory…

…..click here full post

Advertisements

[tekwalk] Ruby/Rails utilizing Solr in Master/Slave setup

Posted in Blogroll, Uncategorized with tags , , , , , , on December 28, 2011 by abhishekkr

@ tekwalk.blogspot.com [16-November-2011]

http://tekwalk.blogspot.com/2011/11/rubyrails-utilizing-solr-in-masterslave.html

Apache Solr is a high-performance enterprise grade search server being interacted with a REST-like API, documents are provided to as xml, json or binary. It extendsLucene search library.

Ruby/Rails communicates with this awesome search server using Sunspot (sunspot, sunspot_rails gem) library, to do a full-text search. Nice tutorial to use Solr in your Rails project using Sunspot.

Solr can perform as a standalone search server and even as master/slave instances collaborating with each other, with slaves polling master to sync-in their data.

Solr instances can be configured like Slave and as a Master.
Configuration file ‘solrconfig.xml’ needs to be edited with a new RequestHandler for Replication configured: 

{for Slave} :: to either poll at their Master’s machine address at regular intervals

{for Master} :: or…..

…..click here to read in detail

[tekwalk] Explicit SASS update

Posted in AbhishekKr, tutorial with tags , , , , , , , on November 14, 2011 by abhishekkr

@ tekwalk.blogspot.com [26-September-2011]

http://tekwalk.blogspot.com/2011/09/explicit-update-sass-in-rails.html

explicit update SASS in Rails Application Sass (Syntactically Awesome StyleSheets)?
But, if you are using any other web-server (like, thin)….. in that case you’ll have to get your CSS files to be explicitly updated using ‘sass –update’ action.

$ bundle exec sass –update –watch public/stylesheets/sass:public/stylesheets

…..click here to read in detail

 

[takwalk] gherkin native install error AND memory leak in cucumber with HeapOutOfMemory

Posted in Uncategorized with tags , , , , , , , , , , on August 21, 2011 by abhishekkr

@ tekwalk.blogspot.com [19/6/2011]

http://tekwalk.blogspot.com/2011/06/dev-ruby-gherkin-need-native-install.html

[dev-ruby] ‘gherkin’ need a native install AND I ported entire jruby dir

….. still a ‘gherkin’ error was there. Running ‘gem list’ showed that now I had two versions of gherkin installed…..

 

…..click here to read in detail

~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~

@ tekwalk.blogspot.com [19/6/2011]

http://tekwalk.blogspot.com/2011/06/dev-ruby-jrubyonrails-blames.html

[dev-ruby] “JRubyOnRails Blames ActiveRecord” *ing: culprit Cucumber, inspector JConsole

…..After starting Rails Server and waiting for some non-specific time, an exception started arising mentioning ActiveRecord and an Heap OutOfMemory Exception …..

…..click here to read in detail