Ruby

  • Most Topular Stories

  • Top 8 Learning resources for ruby beginner

    Masteruby
    28 Mar 2014 | 12:00 am
    In this tutorial i'm gonna to show you some resources to learn ruby. Some are paid, some are free, it depends on you what you choose. So where to start? It depends on who you are. You have no programming background and you like reading books Learn to Program by Chris Pine This book assumes you have no programming background. You will walk through practical examples about how to write code in Ruby. You will start with basic data types like variables, numbers, strings. Then you will move on classes, reading, writting to the file, lambdas, procs. What I like about this book is it's…
  • Is this a God Object?

    RubyFlow
    15 Apr 2014 | 1:36 pm
    God Objects in Rails
  • Full-Calendar Rails Engine

    Vinsol - Ruby on Rails, iOS, Android Consulting and Development
    Akhil Bansal
    7 Apr 2014 | 2:29 am
    A couple of years ago we integrated jQuery FullCalendar plugin with a rails backend. The plugin became reasonably popular and was being used in many Rails apps. Recently we upgraded it to include an efficient full-sized, drag & drop calendar functionality within a Rails Engine and release it as a gem. With Rails 4 deprecating Rails::Plugin(commit) this would come really handy. It easily blends within a rails application. Provides a great UI experience with the use of AJAX to fetch events on-the-fly for each month and hooks for user-triggered events (like clicking or dragging an event)…
  • TechPeaks: Startup Life in the Italian Alps

    Obie Fernandez
    Obie Fernandez
    7 Jan 2014 | 6:00 am
    Last summer (2013) I was honored with an invitation to serve as a mentor for the inaugural group of entrepreneurs welcomed into the TechPeaks accelerator program. It opened my eyes to what's possible when a progressive local government achieves effective cultivation of innovation and startups. Quite an experiment the Italians pulled off last year, and the results have encouraged them to do it again this year, with notable evolutions to their program that I believe make it an even better opportunity for aspiring entrepreneurs. Here's one of the coolest aspects of it, that really sets this…
  • 7 slow and painful deaths by regexp

    8th Color
    Stéphan Mestach
    28 Mar 2014 | 7:39 am
    The road to hell is paved with regular expressions - Ilian Iliev Dot is a special char Carriage return in content Denial of Service by regexp Non escaping of special chars Over specifying Validating an URI with a regexp Write once debug everywhere DSL 1. Dot is a special char Simple elegant, you read it, you understand it # process all ruby files process_ruby_file(file_name) if file_name.match(/.rb/) # and profit But ouch it matches also sample.erb or paris_rb.html You know what? A regular expression is a program in itself and it deserves tests! Want to test it? Take the matching code and…
  • add this feed to my.Alltop

    RubyFlow

  • Is this a God Object?

    15 Apr 2014 | 1:36 pm
    God Objects in Rails
  • How to refactor a long, messy, badly tested controller

    15 Apr 2014 | 12:11 pm
    At some point in your Rails career, you’ll run into a controller that’ll make you want to give up programming forever. As great as it would be to just close your eyes and pretend it doesn’t exist, someday you’ll have to fix a bug in one of these controllers. And, being a good software developer, you want to leave the code better than you found it. But how do you refactor it, especially if you don't have good tests to rely on?
  • Ruby - the good parts

    14 Apr 2014 | 12:26 am
    Kamil Bielawski from our team at AmberBit posted a blog post about what he think are good parts of Ruby language. Do not miss it!
  • Episode 19 - Dates with MHPrettyDate, NSCalendar, and NSDateComponents

    13 Apr 2014 | 10:03 pm
    Dates are an important part of a lot of applications, and how you display them for their context can make a difference to how quickly users parse the information on screen. In this episode I walk you through getting the MHPrettyDate cocoapod set up in the Tasker application, and show you how to use NSCalendar and NSDateComponents to work with dates properly. https://motioninmotion.tv/screencasts/20
  • supervision gem release 0.1

    13 Apr 2014 | 2:50 pm
    I've released supervision that aids writing more resilient and self-healing distributed systems. Please check it out! Any feedback appreciated!
 
  • add this feed to my.Alltop

    Obie Fernandez

  • 8 Apr 2014 | 3:41 pm

    Obie Fernandez
    8 Apr 2014 | 3:41 pm
    Glad to announce that my latest book, The Lean Enterprise, is now widely available in print and Kindle editions on Amazon. Getting lots of great reviews already!
  • TechPeaks: Startup Life in the Italian Alps

    Obie Fernandez
    7 Jan 2014 | 6:00 am
    Last summer (2013) I was honored with an invitation to serve as a mentor for the inaugural group of entrepreneurs welcomed into the TechPeaks accelerator program. It opened my eyes to what's possible when a progressive local government achieves effective cultivation of innovation and startups. Quite an experiment the Italians pulled off last year, and the results have encouraged them to do it again this year, with notable evolutions to their program that I believe make it an even better opportunity for aspiring entrepreneurs. Here's one of the coolest aspects of it, that really sets this…
  • Robert Williams, man to watch in 2014

    Obie Fernandez
    1 Jan 2014 | 10:23 am
    I recently interviewed Robert Williams, founder of Workshop. Over the course of the last year Robert went from full-time employment, to successful freelancing, to launching a successful online business helping other freelancers to succeed using his methods. What is your background? My background is in design. I went to an expensive art school - which I now regret, because 90% of the education I use on a daily basis is stuff I learned online (mostly for free). I worked at a few design agencies after college, then in the marketing department for a large nursery - but those jobs left me…
  • Haml's little-known list_of helper

    Obie Fernandez
    20 Nov 2013 | 3:59 am
    TIL that given an Enumerable object and a block, the list_of method will iterate and yield the results of the block into sequential <li> elements. Haml %ul  = list_of [1, 2, 3] do |item|    Number #{item} HTML <ul>  <li>Number 1</li>  <li>Number 2</li>  <li>Number 3</li></ul> The list_of method also optionally takes a hash of options applied to the output li tags as attributes. Interested in more information like this? You can download my book The Rails 4 Way at Leanpub today. Final print edition on Addison Wesley coming early next…
  • Disruptive Innovation Within the Enterprise?

    Obie Fernandez
    14 Nov 2013 | 7:34 pm
    Large companies often try to tackle disruptive innovation within their existing corporate structures. But when they do, it rarely works. The limitations on what can be accomplished cascade from the executive imagination (or lack thereof) down to the rank and file innovation team members, affecting every aspect of product development and marketing. At LSM we are brought in to large companies to teach them how to do Lean Startup. We (too) frequently work with innovation teams that aren't even allowed to talk with the company's customers. Mind you these are people who are paying tens of…
  • add this feed to my.Alltop

    Polishing Ruby + Software Releases - zenspider.com

  • minitest version 5.3.3 has been released!

    ryan davis
    14 Apr 2014 | 2:42 pm
    minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. "I had a class with Jim Weirich on testing last week and we were allowed to choose our testing frameworks. Kirk Haines and I were paired up and we cracked open the code for a few test frameworks... I MUST say that minitest is *very* readable / understandable compared to the 'other two' options we looked at. Nicely done and thank you for helping us keep our mental sanity." -- Wayne E. Seguin minitest/unit is a small and incredibly fast unit testing framework. It provides a rich set of…
  • minitest version 5.3.2 has been released!

    ryan davis
    2 Apr 2014 | 3:54 pm
    minitest provides a complete suite of testing facilities supporting TDD, BDD, mocking, and benchmarking. "I had a class with Jim Weirich on testing last week and we were allowed to choose our testing frameworks. Kirk Haines and I were paired up and we cracked open the code for a few test frameworks... I MUST say that minitest is *very* readable / understandable compared to the 'other two' options we looked at. Nicely done and thank you for helping us keep our mental sanity." -- Wayne E. Seguin minitest/unit is a small and incredibly fast unit testing framework. It provides a rich set of…
  • hoe version 3.11.0 has been released!

    ryan davis
    2 Apr 2014 | 3:43 pm
    Hoe is a rake/rubygems helper for project Rakefiles. It helps you manage, maintain, and release your project and includes a dynamic plug-in system allowing for easy extensibility. Hoe ships with plug-ins for all your usual project tasks including rdoc generation, testing, packaging, deployment, and announcement.. See class rdoc for help. Hint: ri Hoe or any of the plugins listed below. For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf Changes: 3.11.0 / 2014-04-02 1 minor enhancement: Added test:slow task so I don’t have to remember sort’s flags anymore. YAY for UNIX!
  • oedipus_lex version 2.2.1 has been released!

    ryan davis
    2 Apr 2014 | 3:34 pm
    Oedipus Lex is a lexer generator in the same family as Rexical and Rex. Oedipus Lex is my independent lexer fork of Rexical. Rexical was in turn a fork of Rex. We’ve been unable to contact the author of rex in order to take it over, fix it up, extend it, and relicense it to MIT. So, Oedipus was written clean-room in order to bypass licensing constraints (and because bootstrapping is fun). Oedipus brings a lot of extras to the table and at this point is only historically related to rexical. The syntax has changed enough that any rexical lexer will have to be tweaked to work inside of…
  • zenweb version 3.4.0 has been released!

    ryan davis
    24 Mar 2014 | 6:13 pm
    Zenweb is a set of classes/tools for organizing and formating a website. It is website oriented rather than webpage oriented, unlike most rendering tools. It is content oriented, rather than style oriented, unlike most rendering tools. It uses a rubygems plugin system to provide a very flexible, and powerful system. Zenweb 3 was inspired by jekyll. The filesystem layout is similar to jekyll’s layout, but zenweb isn’t focused on blogs. It can do any sort of website just fine. Zenweb uses rake to handle dependencies. As a result, scanning a website and regenerating incrementally is…
 
  • add this feed to my.Alltop

    Vinsol - Ruby on Rails, iOS, Android Consulting and Development

  • Full-Calendar Rails Engine

    Akhil Bansal
    7 Apr 2014 | 2:29 am
    A couple of years ago we integrated jQuery FullCalendar plugin with a rails backend. The plugin became reasonably popular and was being used in many Rails apps. Recently we upgraded it to include an efficient full-sized, drag & drop calendar functionality within a Rails Engine and release it as a gem. With Rails 4 deprecating Rails::Plugin(commit) this would come really handy. It easily blends within a rails application. Provides a great UI experience with the use of AJAX to fetch events on-the-fly for each month and hooks for user-triggered events (like clicking or dragging an event)…
  • Guide to Caching in Rails using Memcache

    Pikender Sharma
    11 Feb 2014 | 1:54 am
    Guide to Caching in Rails using Memcache 1 The post intends to cover the topics and tools that can help in implementing Memcache as caching store in Rails and debugging issues with it. To help newbies grasp it from start, it also provides references to installing and validating the memcache install without Rails too. “Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering” Installing Memcache Mac OS X Snow Leopard brew install memcached Ubuntu sudo apt-get install memcached More…
  • Let your code speak – I

    Pikender Sharma
    20 Jan 2014 | 6:45 am
    I want to make an attempt at extending the excellent review of Confident Ruby by Avdi Grimm from Viget Labs here which is best described by the below excerpt. Confident Ruby makes the case that writing code is like telling a story, and reading code littered with error handling, edge cases, and nil checks is like listening to a bad story. The book presents techniques and patterns to write more expressive code with less noise—to tell a better story. And, My favorite in the review list is BRE GTFO LOL where “BRE” stands for begin/rescue/end In our day to day Rails coding routine,…
  • [Press Release] VinSol Releases Four Spree Commerce Extensions

    kapil
    9 Oct 2013 | 1:39 am
    The following is a press release announcing launch of open source Spree commerce extensions from our eCommerce team. New Delhi, October 10, 2013 – VinSol, a New Delhi, India based premier Ruby on Rails studio and Spree Commerce premier partner, today announced the release of four useful extensions for the Spree Commerce community. The extensions include Spree Wallet, Spree Favorite Products, Spree Bank Transfer and Spree Admin Roles. VinSol believe that the extensions would provide substantial return of investment to Spree Commerce Developers as well as Store Owners. When contacted, Manik…
  • Drawing tool in iOS ( openGLES or UIBezierPath )

    Manish
    7 Oct 2012 | 11:59 pm
    New to the problem of making a drawing/painting tool for an iOS application many developers get confused on using either OpenGLES or UIBeizerPath. Sometimes sample code on apples developer website GLPAINT  points many developers to use OpenGL Views for making paint layers for an application. A major issue with this that the developers do not understand is that OpenGL Views leave very heavy memory footprints and on devices like ipad1 having 24mb of memory to use per view , this can be a pain. Trying to make a transparent openGL view which allows the user to paint on a transparent canvas with…
  • add this feed to my.Alltop

    DevInterface Blog

  • Codemotion Roma: uno sguardo al futuro della tecnologia

    DevInterface
    16 Apr 2014 | 12:31 am
    Alla conferenza hanno partecipato i maggiori esperti mondiali di innovazione e programmazione. Startup, stampanti 3d e nuove tecnologie sono stati i protagonisti dell’evento che ha visto oltre 2000 partecipanti Si è appena concluso Codemotion, la più grande conferenza tecnica dedicata agli sviluppatori in Italia. Durante i due giorni dell’evento professionisti della programmazione, studenti, semplici curiosi e bambini hanno attraversato le aule e i corridoi del dipartimento di Ingegneria dell’università Roma Tre per incontrare esperti internazionali di tecnologia e partecipare ai…
  • 7 buoni motivi per aprire un sito di e-commerce

    Claudio
    8 Apr 2014 | 1:54 am
    In questo periodo di crisi economica globale, abbiamo ogni giorno notizia di aziende costrette a chiudere. Soprattutto nel settore del commercio al dettaglio  la concorrenza si sta facendo ogni giorno sempre più serrata. Ecco quindi che l’e-commerce può diventare un’ancora di salvezza per rilanciare le imprese già sul mercato, o comunque un’idea da prendere in considerazione per chi, nonostante la crisi, vuole mettersi in proprio ed avviare una nuova attività. Vediamo quindi quali sono i principali motivi per aprire un sito di e-commerce. Un’azienda che non ha un…
  • Codemotion Roma 2014 – 9/12 Aprile: ecco il programma ufficiale

    Claudio
    2 Apr 2014 | 11:40 pm
    Innovazione e creatività saranno le parole chiave di Codemotion Roma, la conferenza internazionale dedicata alla tecnologia e aperta a tutti i linguaggi di programmazione. L’evento si svolgerà a Roma presso il Dipartimento di Ingegneria di Roma Tre dal 9 al 12 aprile. Codemotion si articolerà su 16 track tematiche dedicate agli sviluppatori, ma non solo: le aziende saranno in prima linea grazie ai numerosi talk enterprise oriented. Mobile, Web, BigData, Cloud, User Experience sono solo alcuni dei temi che verranno affrontati durante la conferenza. Non mancheranno Angular JS e Dart, i…
  • Cloud Ecommerce – Vendi i tuoi prodotti online

    Claudio
    21 Mar 2014 | 7:15 am
    Cloud Ecommerce è la soluzione per la vendita online di DevInterface. Uno strumento potente e flessibile, ideale per creare il tuo sito di e-commerce ed iniziare a vendere i tuoi di prodotti online.Il suo punto di forza è il pannello di amministrazione semplice ed efficace, con una grafica moderna e funzionale, studiato per semplificare al massimo il controllo del tuo store online. La sua interfaccia intuitiva lo rende adatto sia a chi ha già esperienza nella gestione di un negozio online, sia a chi per la prima volta vuole espandere il proprio business su internet. Alla semplicità di…
  • Gruppi Emergenti si rinnova

    Claudio
    29 Jan 2014 | 1:06 am
    Ci sono grandi novità per Gruppi Emergenti, il primo portale dedicato alla musica emergente italiana. A 3 anni dal lancio, il portale è stato completamente riscritto per migliorare sia le funzionalità che l’aspetto grafico. L’obiettivo, come sempre, è quello di dare agli artisti emergenti italiani la massima visibilità online. Anche per questo gli artisti e le strutture non vengono più visualizzati in ordine di inserimento nel portale, ma in funzione dell’attività generata. Con questo nuovo algoritmo quindi chi pubblica più contenuti viene premiato ottenendo maggiore…
 
  • add this feed to my.Alltop

    Ruby-coloured glasses

  • Link: Female Founders by Paul Graham

    Taryn East
    16 Apr 2014 | 3:08 am
    Paul Graham (of Y-Combinator) writes some amazingly worthwhile essays. One of his recent ones is about what he's learned about Female founders Read to discover: Is YC anti-female (spoiler: no) Do female founders fare differently in startup culture (spoiler: sometimes, but that should rapidly improve) What can we do to encourage more females to be founders?
  • Heartbleed: openSSL has been compromised test your site!

    Taryn East
    9 Apr 2014 | 6:21 pm
    So, you may have read that there's a security vulnerability in OpenSSL called Heartbleed. It's pretty serious and potentially affects everyone. You should change all your passwords right now. Read more about it here: Here's How To Protect Yourself From The Massive Security Flaw That's Taken Over The Internet You can use this site to test any site you care to try: Heartbleed test
  • Quit being so negative!

    Taryn East
    3 Apr 2014 | 3:21 pm
    Interacting with other people is all about perceptions. For better or worse, we can't see inside of other peoples' heads and have to infer what's inside of them based on their actions... and also on (get this) *our* past behaviour. You thought it would be *their* past behaviour, yes? but actually unless you've known somebody a really long time - your perceptions of another person are more based on what you have done in the past, than on what they have. It's way too easy to totally miss this point when it comes up in reality - because what you think another person is doing... just seems so…
  • Speaking Eloquent Javascript - learn javascript (and programming) for free

    Taryn East
    28 Mar 2014 | 9:30 pm
    Eloquent javascript seems a nice site for learning programming for free, by working your way through a free textbook. I've only skimmed it myself - I've been working my way through Code School's Javascript path. Another that's just come out is Speaking javascript (an O'Reilly book that's also online for free) I've heard good things about both of these. Have you tried either one? If so, tell me what you think, or if you have a better (free) source, let me know in the comments.
  • Link: Australia's top female programmers

    Taryn East
    23 Mar 2014 | 2:00 am
    Pollenizer has posted a list of what they call Australia's top female programmers. I apparently made the grade... but it's a little scary to see my name amongst some of the most awesome women coders I've met over the years...
  • add this feed to my.Alltop

    8th Color

  • PullReview: Badge and integration with BitBucket and GitLab

    toch
    16 Apr 2014 | 7:32 am
    PullReview recently gets a few new features: Badge Public Review for Public Repo BitBucket and GitLab and lots more: HipChat notification Performance of the home page Profile Heartbleed Support Contact Badge Badges in README.md are a very common way to inform people about your project good health. PullReview now provides its own badges: Each badge presents a brief status as following: ✗ the number of detected issues ✔ the number of fixed issues (+ the number of issues fixed since the previous review) It will be colored depending on the progress: red if more issues have just been added…
  • 7 daily use cases of Ruby String

    toch
    11 Apr 2014 | 4:03 am
    Strings are everywhere. You deal with String instances not only every day, but probably every minute. They came from files, databases, REST APIs, or you simply use them to print results. It’s a pervasive representation, and Ruby provides plenty to ease its manipulation. But String comes with its own share of problems and you won’t always find a quick solution in the doc like how to deal with invalid byte sequence or convert back a String to a Date with an uncommon format. Below, I share 7 common use cases of String I met very often and should be useful to you. How to remove…
  • When should I use a Set in Ruby?

    toch
    4 Apr 2014 | 5:32 am
    You develop a small contact manager for a client. Contact = Struct.new(:name, :email) One important feature is the possibility to define a list of contacts. granny = Contact.new('granny', 'granny@weatherwax.me') bill = Contact.new('bill', 'bill@door.me') At first, you started with an array, contacts = [] but you realize quickly that you have to check for duplicates. You end in many places with something like: contacts << granny unless contacts.include? granny or contacts.uniq! Last time you were working with the list, you needed to send a campaign…
  • 7 slow and painful deaths by regexp

    Stéphan Mestach
    28 Mar 2014 | 7:39 am
    The road to hell is paved with regular expressions - Ilian Iliev Dot is a special char Carriage return in content Denial of Service by regexp Non escaping of special chars Over specifying Validating an URI with a regexp Write once debug everywhere DSL 1. Dot is a special char Simple elegant, you read it, you understand it # process all ruby files process_ruby_file(file_name) if file_name.match(/.rb/) # and profit But ouch it matches also sample.erb or paris_rb.html You know what? A regular expression is a program in itself and it deserves tests! Want to test it? Take the matching code and…
  • 7 daily use cases of Ruby Hash

    toch
    14 Mar 2014 | 2:08 am
    Everyday, you deal with Hashes. Creating a new Hash or retrieving an element by its key, are common and simple to do. But when you need to merge 2 nested Hashes or filter some keys from one, you need to think a little about it. In the great doc, you’ll find plenty of explanations for each method of Hash. As it’s not case oriented, you won’t quickly find how to resolve it. Below, I share 7 common use cases of Hash I met very often and should be useful to you. How to convert a JSON into a Hash? How to convert a Hash into a JSON? How to set default value for a nested Hash? How…
  • add this feed to my.Alltop

    Masteruby

  • Learn Ruby on Rails book review

    9 Apr 2014 | 12:00 am
    Recently I received free copy of Learn Ruby on Rails book by Daniel Kehoe, so I've decided to write this review. Who is this book for Book is aimed at begining rails developers. So if you have no experiences with Rails, that's first book you should try. You will find out all example code on github repository and because book is part of subscription program you will get access to book updates, some other tutorials and another book about Bootstrap. What's in this book Book gives you step by step guide for creating rails application. In example application you will create mailing…
  • How to create todo list app adding removing and deleting tasks

    4 Apr 2014 | 12:00 am
    In previous part of this tutorial we've created static pages In this post we'll learn: How to style our app with Bootstrap Showing list of all tasks Adding tasks Deleting Tasks Completing Tasks Styling our app with Bootstrap Our app is little bit boring, just html, no css. Let's do something about that we will use Bootstrap to take care of basic design Get started with Bootstrap Bootstrap is a framework for easier developing websites. To use it we have to install bootstrap-sass gem Gemfile gem 'bootstrap-sass' bundle install Styling Navigation with Boostrap Let's make…
  • How to install Ruby and Rails for your operating system

    28 Mar 2014 | 12:00 am
    In this post I want to show you how to install Ruby and ROR for your operating system. How to install Ruby and Rails on Windows Step 1: Get rails installer Get installer on rails installer site. Step 2: Run rails installer Go to folder where you've downloaded installer and run it: It will install Ruby with Rails and all dependencies you will use in developing Rails application Step 3: Running installer in Command prompt Try checking succesfull installation. Go to the Start Menu, select all programs and choose Rails Installer and then Command Prompt with Ruby and Rails You should see…
  • Top 8 Learning resources for ruby beginner

    28 Mar 2014 | 12:00 am
    In this tutorial i'm gonna to show you some resources to learn ruby. Some are paid, some are free, it depends on you what you choose. So where to start? It depends on who you are. You have no programming background and you like reading books Learn to Program by Chris Pine This book assumes you have no programming background. You will walk through practical examples about how to write code in Ruby. You will start with basic data types like variables, numbers, strings. Then you will move on classes, reading, writting to the file, lambdas, procs. What I like about this book is it's…
  • Top 10 commands in terminal you will use everyday

    26 Mar 2014 | 12:00 am
    In previous tutorial about how to create todo list app in rails you saw that we will use terminal with Rails most of the time. In this tutorial you will learn top ten commands you will use everyday in terminal. Let's get started. First go to menu and open up: Command Prompt or PowerShell in Windows and Terminal in Linux and Mac. You should see something like this: Ok so everything works let's begin. 1. cd(change directory) To change actual working directory you use cd command. Type cd and directory into you want to move. Move to another directory To move into Desktop directory you…
 
Log in