www.archive-net-2013.com » NET » B » BOLDR

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".

    Archived pages: 25 . Archive date: 2013-05.

  • Title: Weblog about Ruby, Javascript, iPhone, NoSQL... – Boldr
    Descriptive info: .. boldr.. by Nicolas Mérouze.. 2012.. Node.. js is the new PHP.. The current state of Ruby concurrency.. Undesign.. The past, the present and the future of Boldr.. 2010.. Rails 3 + Mongoid + HAML + RSpec 2 template.. Getting started with Duby and MongoDB.. Store Rails sessions in MongoDB.. MVC with Node.. js - Which modules?.. Design refresh thanks to CSS3.. How to upgrade plugins to Rails 3.. 0.. Real World  ...   Cramp.. Speed up Ajax with HTML5 Web Storage.. Easy Testing MongoMapper models.. iPhone app in 5 minutes with Titanium Mobile.. 2009.. Create a Web App with Node.. js.. Bookmarks #2.. Bookmarks #1.. Convert HTML presentations to PDF.. jQuery Underscore together.. My JRuby talk at BlockCampParis.. BlockCampParis.. Relaunch again.. I'm a consultant in development, design and social media strategy.. I've previously founded several startups including.. Tigerlily.. Twitter.. /.. RSS feed.. Github.. Hire me..

    Original link path: /
    Open archive

  • Title: Node.js is the new PHP – Boldr
    Descriptive info: April 02, 2012.. Like any new stuff a bit hype and rapidly gaining traction, Node.. js is sometimes under the fire of developers considering Node.. js as a bad library.. PHP has been and is still in this state with a lot of developers in the community but with a lot of people considering it harmful.. Why Node.. js is gaining traction?.. js enables developers to.. create async web servers without headaches.. because you don't have to think about threads and other concurrency stuff.. You can find a.. good explanation here.. Using evented long-lived protocols like.. Websockets is very easy.. The underlying language of Node.. js, Javascript, is more and more widespread so more and more people can understand Node.. js because they know Javascript.. We can't say the same things for concurrent languages such as Erlang, Haskell or Clojure.. Finally I find the.. documentation pretty good.. , and.. the wiki.. has a list of libraries that's worth a quick read.. js has design flaws.. You'll not have headaches regarding concurrency (at first), but you'll have them when dealing with callbacks.. For some cases I almost ended up with.. one callback per line, that's crazy.. !.. The current focus of languages and libraries is to  ...   But.. more features can mean more complexity.. and core 3rd party developers have to be careful to not add overkill features while maturing Node.. To use or not to use Node.. At the beginning PHP gained traction because it was easy to build websites.. In addition it was very common on hosting services.. And PHP has a very good documentation.. The focus nowadays is on webapps and real-time, Node.. js is the easy way to do it and Javascript is more and more common which makes Node.. js easier to understand.. PHP had design flaws and still has some.. js chose to be simple but may be too simple and the maturing can exacerbate the flaws or resolve the issues, we'll have to wait see.. The parallel between PHP and Node.. js is evident.. And I think it's really important to not fall into the trap of the hype using Node.. js for everything without learning about concurrent languages that may solve your problems more elegantly than Node.. The wiki page on the projects using Node.. is a good indicator of what you can do with it.. If you liked the article and/or want to talk to me about it, you can follow me on.. twitter..

    Original link path: /node-js-new-php
    Open archive

  • Title: The current state of Ruby concurrency – Boldr
    Descriptive info: March 26, 2012.. I'm working on a project with Websockets and it's a been hard to do it in Ruby compared to Node.. js and Clojure.. At the start everything worked great but if you need something particular you're stuck.. I rewrote it in Node.. js in a few hours.. Concurrency was a myth in Ruby.. some years ago but.. progress has been made.. and has been.. demystified.. and.. discussed.. It is now more mature and understandable but needs some more love.. Concurrency doesn't need callbacks.. Event-based libraries are the hot thing right now because Node.. js made it popular.. In Ruby we have.. EventMachine.. but it's a bit complicated and frankly callbacks are a mess.. We have.. EM::Synchrony.. too to do EventMachine without callbacks (and with fibers) and Goliath to create Web backends with EM::Synchrony.. The missing libraries.. Goliath.. is pretty cool, there are a lot of examples to get you started but the documentation is a bit thin and it requires wrappers around existing libraries so you can't use whatever you want.. I've tried to write something with Goliath and it was very difficult to find what I could use and what I couldn't.. In addition the wrappers can have different APIs than the original libraries which do  ...   like you would with EventMachine or Node.. js using.. regular synchronous Ruby libraries.. based on TCPSocket".. It seems very great and there's a.. good documentation on the wiki.. but unfortunately few examples.. We need to push concurrency forward.. The reason Node.. js had a steady growth is that it's simple to get started.. You don't need to wonder what are the compatible libraries, there was documentation from the start and you didn't need to learn another programming language (like you would do with Erlang, Haskell or Clojure) because you usually write Javascript even if it's a little bit.. I have the impression that it's rocket science to do concurrency in Ruby but so simple elsewhere, simply because there is a lack of clear documentation (and compatible libraries if you don't use Celluloid).. If you want the community to adopt your solution you have to market your stuff, not just with logos and good headlines but with documentation and examples too (I pointing my finger at Celluloid here).. Rails is the perfect example of good marketing, it has a shiny presentation but the main thing was the video to build your blog in 10 minutes.. Create a wonderful.. real-world.. example and show how.. simple.. your solution is and people will use it..

    Original link path: /current-state-ruby-concurrency
    Open archive

  • Title: Undesign – Boldr
    Descriptive info: January 01, 2012.. I wanted to reopen this blog for a few weeks now and I didn't know what type of design I wanted to make.. I decided a few days ago to undesign it and keep only what's really necessary.. So no textures, no images and no colors (except for code highlighting).. The design and the development was fast and I can finally write.. I like the result and now I can focus on the experience you'll have on the blog, from reading to interacting (no interactions yet, but comments are coming soon)..

    Original link path: /undesign
    Open archive

  • Title: The past, the present and the future of Boldr – Boldr
    Descriptive info: I stopped blogging about 18 months ago.. I've been very busy with my startup.. This has been great but ultimately I realized that spending so much time and energy and stressing all day wasn't what I wanted for my life.. So a few months ago I had the opportunity to become a freelance again and I took it.. Now that I work less I'm happier, the stress has vanished, I got married and I can  ...   new side projects.. 2011 has globally been a great year for me and I perfected my skills in other areas than programming, so expect to have articles about more things than HTML5/CSS3, Ruby and Javascript.. Boldr is now the name of my company which is also why I decided to write again in order to prepare the company for future clients.. I'm almost full for 2012 but I would be happy to work on small projects..

    Original link path: /past-future-boldr
    Open archive

  • Title: Rails 3 + Mongoid + HAML + RSpec 2 template – Boldr
    Descriptive info: July 18, 2010.. Quick app template based on.. the one from Les Hill.. :.. rails new my_app -OJT -m http://gist.. github.. com/raw/473676/ca54399b18bd1f35587ef0a3891aa6b427508da7/app.. rb.. It gives you Mongoid + HAML + RSpec 2 + jQuery.. This is my standard stack when I'm creating a new application nowadays..

    Original link path: /rails-3-app-template-mongoid-rspec-haml
    Open archive

  • Title: Getting started with Duby and MongoDB – Boldr
    Descriptive info: February 19, 2010.. I first talked about.. Duby back in November.. The project has since evolved, there's now more features and it's more usable.. I'm able to run MongoDB so I decided to share it.. If you know nothing about Duby,.. read the README.. NOTE.. : The following example is based on the.. java example from the mongo-java-driver repo.. Setup.. We first need to download the.. MongoDB jar.. and add its path to CLASSPATH:.. $ export CLASSPATH=.. :/my/path/to/mongo-1.. 2.. jar.. Then we create our Duby file we name.. MongoTest.. duby.. Connection to MongoDB.. We start by importing all we need:.. import.. com.. mongodb.. Mongo.. DBCollection.. BasicDBObject.. DBObject.. DBCursor.. DB.. java.. util.. Set.. List.. Then get the DB connection:.. begin.. m.. =.. Mongo.. new.. db.. getDB.. "mydb".. # the rest of the code will go here.. rescue.. Exception.. end.. Cool new feature: Iterators.. One reason I love Ruby is because iterators are nice! This feature landed in Duby a while ago and it's just a pleasure to use it (here to  ...   "MongoDB".. "type".. "database".. "count".. 1.. info.. "x".. 203.. "y".. 102.. "info".. Of course we can put a.. inside another.. And here's how to insert the document we've just build:.. insert.. (.. ).. Getting an existing document.. Nothing really to say about how to get the document we've just inserted:.. myDoc.. findOne.. Executing the file.. I hasn't been able to run the file via.. duby MongoTest.. I had to compile it then call it with Java.. dubyc -java MongoTest.. duby javac MongoTest.. java java MongoTest.. Thoughts about Duby.. dubyc -java.. converts Duby code to Java code.. So you don't have to worry about performance.. Duby code really feels like Ruby.. And this feeling's getting more and more true.. You can create a Duby class and use it in your Java code (unlike JRuby).. It's because "Duby is Java with Ruby syntax".. And it's wonderful.. The true awesomeness is that you can create Android applications with Duby!.. Check out this example.. Are you excited now? You should be and try Duby right now!..

    Original link path: /getting-started-duby-mongodb
    Open archive

  • Title: Store Rails sessions in MongoDB – Boldr
    Descriptive info: February 18, 2010.. There are a few built-in session stores in Rails but if you want to store them in MongoDB (or anything not using ActiveRecord) there's nothing.. Not anymore with.. mongo_session_store.. : The project was initially created by Chris Brickley with MongoMapper support but without Mongoid support and it was not in a gem.. Usage with MongoMapper.. First we load the gem:.. config.. gem.. "mongoid".. "mongo_session_store".. Don't forget to create an initializer to add the connection to  ...   :lib.. =.. "mongo_session_store/mongo_mapper".. Usage with Mongoid.. It's almost the same with Mongoid.. First setup the environment correctly:.. require.. "mongo_session_store/mongoid".. ActionController.. ::.. Base.. session_store.. :mongoid_store.. Then the session store initializer:.. :mongo_mapper_store.. : Mongoid acts a bit differently than MongoMapper but I havn't had the time to fix.. the issue.. Next.. I'm gonna add some tests, try to have the same usage for Mongoid and MongoMapper and add Rails 3 support.. But if you want some other things please.. fork it..

    Original link path: /rails-sessions-mongodb
    Open archive

  • Title: MVC with Node.js - Which modules? – Boldr
    Descriptive info: February 16, 2010.. When you start a new technology you may be lost.. js is young (1 year today) but there's already a.. bunch of frameworks.. (express seems to be the most advanced) and a.. lot.. of modules.. The best way to begin is to explore the ecosystem.. To do that, let's create our own Model-View-Controller stack.. : The whole example is.. available on GitHub.. and not all the code is in the article, so be sure to check it out.. Models.. There's a lot of.. modules for databases.. and some of them have ORMs.. We can use Redis, MongoDB, CouchDB, Tokyo Cabinet, Postgres, Sqlite 3, Riak.. For this example we're going to use.. node-dirty.. which do not require any database installation.. node-dirty is a fast JSON store and it's easy to use, have a look at the following code:.. /* Requirements */.. paths.. unshift.. ".. /vendor/node-dirty/lib".. );.. var.. sys.. "sys".. ),.. Dirty.. "dirty".. ;.. /* Model */.. posts.. "posts.. dirty".. {.. flushInterval.. 10.. });.. /* Persistence */.. post.. title.. "Awesome post".. };.. add.. /* Querying */.. get.. _id.. Views.. Now we have data we will need views to display them.. I've already written something about.. Mustache.. and for this example I'm gonna use it too but there are other.. modules available  ...   because it uses.. EJSGI.. (an async Rack-like interface for Javascript).. With Scylla we're defining the route with a string containing the HTTP verb and the pattern.. Then we bind a function to it.. /vendor/ejsgi/lib".. /vendor/node-scylla/lib".. scylla.. "scylla".. ejsgi.. "ejsgi".. /* Controller */.. HomeController.. index.. function.. req.. body.. "Hello World!".. res.. jsgi.. stream.. (),.. status.. 200.. headers.. "content-type".. "text/html".. "content-length".. length.. }.. write.. close.. ();.. return.. /* Router */.. Router.. ().. call.. this.. prototype.. Object.. create.. process.. mixin.. "GET /".. /* Server */.. Server.. adapter.. "localhost".. 8000.. start.. : I included the router stuff in the controller part because most of the code is in the controller.. Conclusion.. As we've seen there are a lot of modules for each part of the MVC stack.. It's kinda difficult to choose but it's mainly about what you like (which database you want to use, which templating engine you like and which is the most powerful router).. Most frameworks for Node.. js are not fully agnostic (nor fully opiniated) yet so it can be a dealbreaker if you like things that ain't in a framework you want to use.. If you're like this you can comment the article and write about your preferences.. It will maybe ease the choice for newcomers in the Node.. s world..

    Original link path: /mvc-stack-node-js-ejsgi-scylla-mustache
    Open archive

  • Title: Design refresh thanks to CSS3 – Boldr
    Descriptive info: February 10, 2010.. I have talked about it on my.. twitter account.. it's now there.. Here's a small design refresh for Boldr.. The HTML code has not changed it's just a new CSS.. I was using HTML5 since the beginning.. Meanwhile, I was not using CSS3 at all.. I decided to do something and now I'm using.. @font-face.. for the titles,.. and rounded corners for the logo and CSS Animations for the links.. There will be more details in  ...   and rounded corners should be OK with the majority of the browsers (including IE6, 7 and 8).. CSS Animations should be OK with Safari/Chrome/WebKit and Firefox nightlies.. It's awesome to see that you can do a bit of CSS3 even with Internet Explorer and I will do more and more CSS3 in the next iterations.. I added Intense Debate to the articles, so if you have any suggestions or comments about the design you can tell me this here..

    Original link path: /new-design-css3-font-face-webkit-transition
    Open archive

  • Title: How to upgrade plugins to Rails 3.0 – Boldr
    Descriptive info: February 05, 2010.. Rails 3.. 0 beta is out and it's now time to upgrade all the plugins available.. To show you how to do it I've decided to create a small plugin compatible with Rails 2.. x and Rails 3.. It's a wrapper around.. Rack::Cache.. to insert it automatically in a Rails application.. It's a gem.. First things first we create the gem we will name rails-cache.. Thanks to Jeweler it's dead easy.. Just a few lines of code in a Rakefile and it's done:.. "rake".. "jeweler".. Jeweler.. Tasks.. name.. "rails-cache".. summary.. "Add Rack::Cache to your Rails app".. email.. "nicolas.. merouze@gmail.. com".. homepage.. "http://github.. com/nmerouze/rails-cache".. authors.. [.. "Nicolas Mà ©rouze".. ].. files.. Dir.. "*".. "{lib}/**/*".. add_dependency.. "rack-cache".. "~ 0.. 5.. 2".. GemcutterTasks.. LoadError.. "Jeweler (or a dependency) not available.. Install it with: sudo gem install jeweler".. To create the VERSION file a.. echo "1.. 0" VERSION.. is enough.. Rails 2.. x way.. The code of the gem will be in.. lib/rails/cache.. rb.. and it's just the insertion of the Rack::Cache middleware:.. "rack/cache".. Rails.. configuration.. middleware.. use.. Rack.. Cache.. :metastore.. "file:.. #{.. root.. +.. "cache/rack/meta".. :entitystore.. "cache/rack/body".. :verbose..  ...   load a gem which have a custom path:.. :require.. :path.. /rails-cache".. The.. option is the path to our gem.. We have a lot of solution to do the same in Rails 2.. x, with a plugin instead of a gem for example, but it is not as elegant as with Bundler (Bundler is usable with Rails 2.. x).. To create a plugin for Rails there's an object for that now,.. Rails::Railtie.. So we just need to write an object which inherit from.. in.. module.. class.. Railtie.. railtie_name.. :rails_cache.. initializer.. "rails_cache.. insert_rack_cache".. app.. The gem has been upgraded to Rails 3.. 0!.. x and 3.. 0 in a gem.. This is just an example here, but it's possible there's a better solution:.. if.. VERSION.. MAJOR.. ==.. 2.. else.. And you can find the.. whole code on GitHub.. More about Plugins/Engines.. José Valim has written a.. draft documentation.. about Rails::Railtie, Rails::Engine and Rails::Application.. Yehuda Katz has made a.. blog post about it.. rails3_datamapper.. is a good example to see how to write a Rails 3.. 0 plugin.. The latest commits for.. CarrierWave.. have been made to upgrade it to Rails 3..

    Original link path: /upgrade-plugins-gems-rails-3
    Open archive


  • Archived pages: 25