Archive for ruby

[justfewtuts] xml-motor ~ what it is; how & why should you use it

Posted in ABK Labs, Blogroll, tutorial with tags , , , , , , , , , , , , , on April 10, 2012 by abhishekkr

justfewtuts.blogspot.com [5-March-2012]

http://justfewtuts.blogspot.in/2012/03/xml-motor-what-it-is-how-why-should-you.html
View As Presentation: http://speakerdeck.com/u/abhishekkr/p/xml-motor-whatwhyhow-this-xml-parsing-rubygem#

Late 2011, I started with a new rubygem project for parsing xml, html content.
@Rubygems: http://rubygems.org/gems/xml-motor
@GitHub     : https://github.com/abhishekkr/rubygem_xml_motor

Just created it to test out my work at compact, quick & easy xml-parsing algorithm… can see that
@Slideshare: http://www.slideshare.net/AbhishekKr/xmlmotor

So, currently this is a non-native, completely independent less-than-250 ruby-LOC available as a simple rubygem to be require-d and use in an easy freehand notation and match with any node attributes.

…..click here to read this full original post

Advertisements

[justfewtuts] messQ ~ just a fun little project providing socket-based Queue service

Posted in Uncategorized with tags , , , , , , on April 10, 2012 by abhishekkr

justfewtuts.blogspot.com [5-March-2012]

http://justfewtuts.blogspot.in/2012/03/messq-just-fun-little-project-providing.html

messQ is a small project started to implement and improve in the areas of message queue mechanisms.

What it does currently? Just a Network Service to be connect and enqueue/dequeue messages.

What it requires? Ruby, terminal and your fingers 🙂

Git it:           $ git clone git://github.com/abhishekkr/messQ.git
Download:   https://github.com/abhishekkr/messQ/tarball/master

Start messQ server:       $ ruby messQ.rb
This starts a message queue server at  port 8888.

Enque new message:
Open a connection at port 8888, then say “enq MESSAGE_TO_BE_QUEUED“.

Deque oldest message:
Open a connection at port 8888, then say “deq“. It returns the dequed message.

…..click here to read full original post

[tekwalk] MCollective can’t handle Puppet ~ just like psychotic love stories

Posted in ABK Labs, Blogroll with tags , , , , , , , , , on April 10, 2012 by abhishekkr

tekwalk.blogspot.com [5-March-2012]

http://tekwalk.blogspot.in/2012/03/mcollective-cant-handle-puppet-just.html

Past 2 months, I’ve been in pain due to the psychotic love story of MCollective and Puppet.

YES, they are very helpful products to automate configuration management and orchestrate metadata-based multicast-ed actions.

YES, they are now under the same organization PuppetLabs which is whole-heartedly working to improve them so they could retain their status in the started-to-glamour-izing DevOps domain. So, both of them will improve a lot.

But, first of all.
If you don’t properly test your corporate-aiming projects over Ruby1.9.x; please do post a big notice on your projects page or at least on first page of your amazing Doc.
My story for past few weeks:
I start using a project…..

…..click to here to read full original post

[tekwalk] Puppet ain’t sweet anymore & Marionette-Collective hopeful

Posted in ABK Labs, Blogroll with tags , , , , , , , , , on April 10, 2012 by abhishekkr

tekwalk.blogspot.com [22-February-2012]

http://tekwalk.blogspot.in/2012/02/puppet-aint-sweet-anymore-marionette.html

its a fine piece of utility working mostly fine, but my luck….. mostly end up getting blocked in my tasks by the flaws in library/utility/framework 😦

Puppet ain’t sweet.

Why? What happened? Puppet is Good.
Puppet has been there in the wild for a long time (at-least more than 5yrs) now as compared to the closest competitor to it ‘Chef’.
Saying it out-loud the feel I’m getting using them lately ~ as if it is acting like an old pop-artist trying to put out a lot at-once to maintain their superiority over upcoming rockstars.
I’ve used their older service before which wasn’t much glossy (at design level) but a lot more stable and composed at implementation…..

…..click here to read full original post

[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

[just.few.tuts] xml-motor ~ a new non-native rubygem on new Compact XML-Parsing Algorithm

Posted in Uncategorized with tags , , , , , , , , , , on November 14, 2011 by abhishekkr

@ justfewtuts.blogspot.com

Source @ github: https://github.com/abhishekkr/rubygem_xml_motor

Gem @ RubyGem: http://rubygems.org/gems/xml-motor

Algorithm @Slideshare: http://www.slideshare.net/AbhishekKr/xmlmotor

[9-November-2011] http://justfewtuts.blogspot.com/2011/11/new-portable-algo-easy-xml-parsing.html

Easy XML Parsing using XML-Motor (currently just implemented in Ruby as a Gem)
Using a new, compact algorithm of XML Parsing

 

[12-November-2011] http://justfewtuts.blogspot.com/2011/11/xml-motor-v003-mine-xml-once-multiple.html

released v0.0.3 of xml-motor with following update: http://rubygems.org/gems/xml-motor

So, the improved way for multiple searches

[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