admin has submitted 105 links
The future of shoulda
in Ruby added by admin, on 18/6/2010 framework ruby on rails shoulda testing
Shoulda has long been one of our most useful and popular open source projects, and it continues to serve us well as we use it daily. However, there have been some changes over the past year in the way that we use Shoulda, and these changes have led to some decisions about its future. In our post about the Rails 3 roadmap, we briefly covered the changes we made in Shoulda 2.11 as well as our intentions for Shoulda 3. However, we wanted to go over these changes in depth and explain some of our motivation.
1 comment save reportContextFree.js & Algorithm Ink: Making Art with Javascript
in Javascript added by admin, on 15/6/2010 contextfree html5 oo programming
ContextFree.js & Algorithm Ink: Making Art with Javascript Aza Raskin, the head of UX at Mozilla, has released ContextFree.js and the corresponding site Algorithm Ink. ContextFree.js is a port of Context Free Art by Chris Coyne, and uses the HTML5 Canvas element to render the incredibly simple Context Free grammar. It makes rendering complex and beautiful art very simple. For example, the following code:
1 comment save reportLightning Talk: TATFT - Test All the F***in Time
in Ruby added by admin, on 13/6/2010 intermediate rspec ruby on rails tdd testing
Video from Ruby Hoedown 2008. If you're not testing, please stop reading this and start TATFT.
2 comments save reportDjango performance tips
in Python added by admin, on 12/6/2010 django framework intermediate
Django handles lots of traffic with ease; Django sites have survived slashdottings, farkings, and more. Here are some notes on how we tweak our servers to get that type of high performance.
1 comment save reportThe Road to Passenger 3: Technology Preview 1 & Performance
in Ruby added by admin, on 12/6/2010 apache2 news passenger
It has already been two years since we’ve first released Phusion Passenger. Time sure flies and we’ve come a long way since then. We were the first to implement a working Ruby web app deployment solution that integrates seamlessly in the web server, and all the features that we’ve developed over time – smart spawning and memory reduction, upload buffering, Nginx support, etc – have served us for a long time.
1 comment save reportjQuery Globalization Plugin from Microsoft
in Javascript added by admin, on 11/6/2010 ajax jquery
Today, we released a prototype of a new jQuery Globalization Plugin that enables you to add globalization support to your JavaScript applications. This plugin includes globalization information for over 350 cultures ranging from Scottish Gaelic, Frisian, Hungarian, Japanese, to Canadian English. We will be releasing this plugin to the community as open-source.
1 comment save reportRake Tasks 101
in Ruby added by admin, on 10/6/2010 framework oo programming rake ruby on rails
I’ve been working with Rake quite a bit on my current project so I thought I’d share some beginner tips. Before I go into Rake, what is it? Rake is a Ruby-based build program. Ruby on Rails uses Rake quite a bit in it’s process. If you’ve worked on a Rails project you’ll used one, some or all of the following: rake db:create, rake gems:unpack, rake db:migrate, and rake test. Now that’s not all of Rail’s Rake tasks, just some common ones.
1 comment save reportUnobtrusive JavaScript in Rails 3
in Ruby added by admin, on 10/6/2010 beginner tutorials javascript ruby on rails
One of the biggest changes on the frontend side of the upcoming Rails 3 version is the replacement of the Prototype JavaScript helpers in favor of Unobtrusive JavaScript (UJS).
3 comments save reportDataMapper 1.0 Released
in Ruby added by admin, on 9/6/2010 news orm
I'm pleased to announce that we released DataMapper 1.0 "Vermouth" earlier today. Thank you to everyone in the community, especially this mailing list and the IRC channel. There's no way we could've reached this milestone without your encouragement and assistance.
1 comment save reportHow to Use Optional Parameters in C# 4.0
in .NET added by admin, on 18/5/2010 examples oo programming
Optional parameters are default values used when a function or method is called without specific arguments. They can be used in PHP…
1 comment save reportInside Ruby on Rails: Rescuable and rescue_from
in Ruby added by admin, on 26/12/2009 exception ruby on rails
Last time I talked about the ActiveSupport Module#delegate method. Today, I want to introduce an other poweful ActiveSupport module: Rescuable, also known in the Rails ecosystem as rescue_from.
comment save reportCSS Star Rating System
in CSS added by admin, on 12/5/2008 examples intermediate style
Recently I had to create a Star Rating system for a client so I thought I'd share with you the techniques I used to accomplish this. If you are not familiar with a Star Rating System, it's simply a method of voting using (usually) 5 stars in a row, which will change colour as you hover over them indicating the level at which to rate something.
comment save reportA Lightweight Approach to Aspect-Oriented Programming in Python
in Python added by admin, on 21/4/2008 aspect-oriented intermediate
aspects.py library provides means to intercept function calls. Functions and methods (also in Python standard library and third party code) can be wrapped so that when they are called, the wrap is invoked first. Depending on the wrap, the execution of the original function can be omitted, or the function can be called arbitrarily many times. Wraps are able to modify the arguments and the return value of the original function. In the terminology of aspect-oriented programming, the library allows applying advices (wraps) to call join points of methods and functions in around fashion.
comment save reportBehavior-driven Testing with RSpec
in Ruby added by admin, on 31/3/2008 intermediate rspec testing
Testing fever has infected the Ruby programming community, and the infection is spreading. One of the most promising innovations in testing in the past year is the introduction and rapid growth of RSpec, a behavior-driven testing tool. Learn how RSpec can change the way you think about testing.
comment save reportUsing Pyke, the Python knowledge engine
in Python added by admin, on 22/3/2008 intermediate knowledge engine
This describes how to use pyke from within your python program.
comment save reportStoring User Profiles
in .NET added by admin, on 9/3/2008 examples intermediate user
User Profiles - The profile feature in ASP.NET 2.0 allows you to define and store per-user settings to be used throughout your application. Settings can also be stored in an anonymous profile while users are not logged in, and then migrated to a logged-in user profile at a later time.
comment save reportLearning Python Programming Language Through Video Lectures
in Python added by admin, on 8/3/2008 beginner tutorials video lectures
One of the upcoming projects I am doing (I will reveal it in one of the next blog post) is going to be written entirely in Python. I have a good understanding of Python but, same as I had with JavaScript, I have little experience doing projects from the ground up in it. Before diving into the project I decided to take a look at a few Python video lectures to learn language idioms and features which I might have not heard of.
comment save reportThe state of Python profilers in two words. Use cProfile.
in Python added by admin, on 1/3/2008 intermediate profiling
This is for people who still wonder what they should use every time. cProfile was added in Python 2.5 after much discussion about the downsides of existing profilers.
comment save reportRails Messaging Tutorial
in Ruby added by admin, on 26/2/2008 examples intermediate messaging
This guide aims to be a simple, logical tutorial showing how to develop a simple Rails messaging system with all of the trimmings with Ruby on Rails (v2.0.2). This tutorial is intended for beginner to intermediate Rails users. If you've never used Rails before, I suggest you check out any of the excellent introductions out there.
comment save reportPython - 15 Line HTTP Server - Web Interface For Your Tools
in Python added by admin, on 14/2/2008 intermediate oo programming web server
I write a lot of command line tools and scripts in Python. Sometimes I need to kick them off remotely. A simple way to do this is to launch a tiny web server that listens for a specific request to start the script.
comment save reportAdding Type Checking to Ruby
in Ruby added by admin, on 6/2/2008 intermediate type
What’s the first thing you think of when you consider the Ruby Language? Dynamic types, right? Ruby is famous (infamous?) for its extremely flexible type system, and as a so-called “scripting language”, the core of this mechanism is a lack of type checking. This feature allows for some very concise expressions and a great deal of flexibility, but sometimes makes your code quite a bit harder to understand.
comment save reportRuby Spin-up: Where Did That Method Come From?
in Ruby added by admin, on 28/1/2008 beginner tutorials examples oo programming
A tutorial that gives a nice background on some object-oriented thinking in Ruby, including classes, superclasses, modules, and singleton methods. It's a straightforward tutorial aimed at those who have gotten their feet wet in Ruby, but not the object-oriented aspects of Ruby.
comment save reportPython as Config Language -- Forget XML and INI files
in Python added by admin, on 12/1/2008 configuration-file
A programming language has all the advantages as a language for encoding parameters. I see why it's rare -- too many programmers have spent too much time with MS's abominable INI files and think it's "normal".
comment save report