Simplificator_Logo

web applications


viagra moins cher viagra vendita italia achete levitra trouver du levitra pastilla sildenafil achat de cialis acheter viagra pas chere levitra 20 mg sildenafil sin receta viagra ricetta medica cialis generico 10 mg viagra bestellen levitra venta libre dysfonction erectile viagra 100 mg levitra ohne rezept acquisto viagra comprar viagra em portugal acheter viagra cialis prijs sildenafil kaufen viagra italia acheter cialis pharmacie comprar cialis generico kamagra gel acquisto viagra italia viagra venta libre tadalafil moins cher clomid prix kamagra 100 vardenafil generique sildenafil costo acheter cialis sur internet achat viagra en ligne cialis receta pastilla levitra cialis belgique compro viagra sildenafil rezeptfrei levitra en pharmacie levitra generique cialis meilleur prix acheter cialis generique pharmacie en ligne curare impotenza comprare levitra leivtra moins cher acheter prozac viagra senza ricetta acheter cialis sur la net acheter isotretinoine levitra generico cialis generico vardenafil generika levitra ricetta achat de viagra cialis venta libre levitra sin receta cialis suisse cialis svizzera acheter cialis en belgique sildenafil precio cialis preço posologia viagra viagra sans prescription cialis bon prix viagra kopen prezzi viagra comprar cialis tadalafil bestellen viagra prijs cialis livraison rapide viagra te koop levitra france cialis prix propecia prix kamagra te koop prezzi cialis compro levitra acheter zithromax commande viagra viagra ricetta receta viagra acheter cialis en ligne prezzi levitra cialis vente en ligne sildenafil moins cher commander kamagra impuissance homme acquistare viagra levitra sur le net compra levitra levitra pharmacie vendo viagra kamagra en france acquisto viagra originale achat levitra acheter kamagra france cialis sur le net pildoras cialis cura impotenza cialis france acquista levitra cialis rezeptfrei levitra precio cialis moins cher kamagra rezeptfrei levitra prezzo propecia generique achete cialis generique du cialis acheter kamagra oral jelly trouver du cialis vente de cialis traitement impuissance viagra rezeptfrei cialis sur internet vendo levitra vendita cialis aquisto viagra achat pharmacie acquisto viagra senza ricetta viagra en ligne cialis europe compro cialis cialis inde levitra te koop impuissance erection aquisto cialis acheter zyban viagra donne compra viagra

Archive for the ‘Ruby’ Category

« Previous Entries

Hpricot and Namespaces/XPath

Friday, September 4th, 2009

Until today we were happy users of Hpricot (0.8.1) . Easy to use, nice API, fast (enough)… but today we had to move a project over to Nokogiri.Why? Hpricot does not support XPath with namespaces. Worse: it does not even complain when you use a namespaced XPath query. It just keeps telling you that your XPath ended up in Nirvana and that there is no result.“Hey pal, you are using namespaces in XPath and i do not understand this” would have been a nice message.Since Hpricot does properly parse the namespaces, you can work around the problem using the at (aliased as %) method. But we need full XPath support hence the switch to Nokogiri.Some links i came across while researching the issue:

  • http://enfranchisedmind.com/blog/posts/hpricot-does-namespaces
  • http://www.rubyinside.com/nokogiri-ruby-html-parser-and-xml-parser-1288.html

Posted in Ruby, Tech | 2 Comments »

Determine Language of Text

Tuesday, July 14th, 2009

Wan’t to know what language a text is written in? Maybe a comment on your Blog, an e-Mail you received, let your CMS guess the language of an article? Enter the babel gem!

Babel uses a n-gram approach to build reference profiles for languages. It also builds a profile for the input text and then calculates the distance between each reference profile and the input profile. The closest profile is probably the one with the language of the input text. Proabably. Chances are that Babel gives you wrong results on short sentences or single words.  You want to know more? Here is a paper that describes and compares different approaches.

We’ve setup a demo app so you can try out babel. And of course you can get the gem from github.

Posted in News, Ruby, Tech | No Comments »

When taxes become taxis

Thursday, June 25th, 2009

Thanks to the neat Inflector if ActiveSupport we know that the plural of tax is taxes. But if you ask for the singular form of taxes the inflector will try to convince you that it’s taxis!

>> "tax".pluralize.singularize
=>"taxis"

The reason we even found out about this was, that our tests (you do write tests, do you?) blew up when we used the taxes() fixture with a FixtureClassNotFound error. Of course: we do not have a Taxis class.

So how do you fix this? Simple: Edit config/inflections and add your own rule:

ActiveSupport::Inflector.inflections do |inflect|
  inflect.irregular 'tax', 'taxes'
end
>> "tax".pluralize.singularize
=> "tax"

Be sure to prefix Inflector with the ActiveSupport module. Otherwise you’ll face `load_missing_constant’:NameError: uninitialized constant Inflector

Posted in Ruby, Tech | No Comments »

Tweettweet. Tiny update on Railsworld.com

Monday, June 22nd, 2009

Railsworld now tells the world about new rails sites through twitter.

New additions are tweeted when they are ranked the first time. We do not tweet changes to the ranks as this would be a bit noisy. Follow @railsworld if you are interested.

Railsworld is our demo application. We use it to show customers how rails development works.We will add more tiny features from time to time…

Posted in News, Ruby | No Comments »

new ruby gem: compete

Monday, May 4th, 2009

We’ve written up a tiny ruby gem for the compete api. It can be used to query the compete service for ranking and trust information about a domain. We’ll eventually integrate it into railsworld.com so we have another source for ranking information (right now it’s alexa).

 Find more at the github repo for the compete gem

Posted in News, Ruby, Tech | No Comments »

New Customer: Docuteam

Thursday, March 12th, 2009

We are happy that we won Docuteam as a new customer. During the next months we will be implementing a proof of concept application using Ruby on Rails and ActiveFedora.

Posted in News, Ruby | No Comments »

mysql gem on OS X

Thursday, February 12th, 2009

Lots of people seem to have troubles getting the MySQL gem installed on OS X. Here is what i use:

sudo gem install mysql -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config 

On my machine MySQL5 was installed using port then the path to the config should be correct. Otherwise either you know where the config file is (because you’ve installed MySQL yourself and you know what you are doing but then you would not need to read this) or you have to search for it. Try

which mysql_config 

and if this does not work try

find / -name mysql_config

(and go get a cup of coffee).

Posted in News, Ruby | No Comments »

nicolepont.ch on radiant

Wednesday, February 11th, 2009

We’ve recently moved the Nicole’s site from a Rails version 1.youdontwannaknow to a Radiant based system. With some extensions (reorder, redirect and a custom permission system) the site was easy to develop and is now faster (thanks caching, i like you) and easier to manage. Kudos to the Radiant Team.

Posted in News, Ruby | No Comments »

bugfix release: has_setting gem

Friday, February 6th, 2009

We’ve just added a small bugfix to the has_setting gem. Latest version is now 0.3.8.

has_setting is a dead simple ActiveRecord extension to store settings.

Posted in News, Ruby | No Comments »

Scriptaculous multiple drag and drop updated

Saturday, December 13th, 2008

I just pushed a new version of the scriptaculous multi drag and drop addon. It’s much cleaner, supports mere Draggables and can react on shift clicks too. Check it out at http://simplificator.com/scriptaculous-multidrag/ (source is available on Github).

Posted in Ruby, Tech | No Comments »

« Previous Entries
  • Categories

    • Java
    • Jobs
    • Linux
    • News
    • Ruby
    • Tech
  • Blogroll

    • Agility In The Enterprise
    • Beech Bonanza
    • Coffee & Gems
    • downside.ch
    • Err the Blog – Home
    • FozWorks – Home
    • franck’s blog
    • InVisible Blog
    • Joel on Software
    • Kogler On Rails – Home
    • Loud Thinking
    • Micro Persuasion
    • Nuby on Rails
    • Paul Graham: Essays
    • Pinksemu News
    • RailsJitsu
    • Riding Rails – home
    • The Yellow Marker
    • viibee.com
    • Youtilize
    • zen habits

simplificator is proudly powered by WordPress
Entries (RSS) and Comments (RSS).