Ruby has many exciting object oriented features, but a large percentage of your code will revolve around arrays. In this valuable tutorial, we’re going to show you some tips and tricks for this powerful data structure.
This article introduces the incredibly easy-to-use Ajax support that is part of the Ruby on Rails web application framework. This is not a step-by-step tutorial, and I assume that you know a little bit about how to organize and construct a Rails web application.
by moving these titles into your views, we can DRY things up a bit and reinforce the MVC design pattern that's so fundamental to Ruby on Rails.
This little plugin allows you to open and browse resources with the native OS explorer
This page lists the built-in Ruby classes and modules, and the methods they contain. Click on a class, module, or method name for a detailed description.
RDoc Documentation
the easiest way to get a PNG of a custom area of the screen in OSX.
A few days back I posted on a simple factory-like method for returning class instances from a loaded SWF file. At lunch yesterday with Matt Chotin he mentioned another way which I thought was worth posting. It seems that there is a property on Loader or SWFLoader called 'loaderContext' and in turn it has a property called 'applicationDomain' and this object has two methods worth knowing about 'hasDefinition' and 'getDefiniton'.
I also needed to be able to sort the results by published date (pub_date). This required a conversion of the datetime field to integer for correct sorting.
So you want to add rapid full-text searching to your Rails app, and either you haven't had much luck getting full text working with Mysql, or you want to start working with something a little more customizable (and very fast). This tutorial will let you know exactly how to do it.
This is what happens when i try to get acts_as_ferret ...."nothing much".... Please help me and excuse me if its really dumb, i'm new to this! thanks
How to make this shorter ?
This article walks through creating a basic authentication system in rails.
Eye-tracking studies are hot in the web design world, but it can be hard to figure out how to translate the results of these studies into real design implementations. These are a few tips from eye-tracking studies that you can use to improve the design of your webpage.
RescueTime is a web-based time management tool (currently in public beta). We offer: - The ability to see exactly how you spend your time. No data entry, no effort - Instant and easy time-management analytics. - The ability to set time management goals
One of the things I proposed was to teach a class called "How to Think," which would focus on how to be creative, thoughtful, and powerful in a world where problems are extremely complex, targets are continuously moving, and our brains often seem like nodes of enormous networks that constantly reconfigure. In the process of thinking about this, I composed 10 rules, which I sometimes share with students.
My colleague David Meeuwis showed me a most useful and non-intuitive tip that explains a subtle difference between using the @ axis and the attribute() axis in E4X.
I get an error about not being able to delete a staticly assigned variable or something like that. There also doesn't seem to be a node.remove() method or anything handy like that. Actionscript's E4X implementation seems to think that you would only want to add nodes to an XML.
The "short-if" statement provides you with a space-saving way of evaluating an expression and returning a value. This is very useful when doing string concatenation among other things.
An overview of several options to internationalize your Rails app
AlivePDF is an open-source ActionScript 3 PDF library for Flash, Flex and AIR.
This must be the easiest way to get full support for PNG-transparency in Internet Explorer 6. The technique even works for PNG-transparency in CSS backgrounds. Credit goes to Angus Turnbull for creating this workaround. My hat is thoroughly tipped.
Check out and view the source for these Flex 3 samples. Some are updates and some are new, but we hope you'll enjoy them. View and download the source code for most applications by browsing, right-clicking, and selecting View Source.
This post assumes an understanding routes and their basic usage. Here is a good resource to get started with routes if you need it. In this post I want to explore the mechanism used to match routes to paths.
Scaffolding is het automatisch genereren van een eenvoudige interface om data te manipuleren. Vertrekkende van een database-tabel met een aantal kolommen erin, maakt het scaffold commando webpagina’s met formulieren (inclusief de verwerking/logica erachter) aan. Deze webpagina’s laten je toe een aantal gestandaardiseerde acties op data uit te voeren
Using mxmlc / Flex Builder, you can safely store any kind of binary data, text, or XML directly in your SWF if loading it at runtime is not possible or not desirable.
One of my pet peeves in code is the absence of constants and thus the prevalence of “magic numbers” in their place. Constants add a touch of readability and semantic meaning and magnify the maintainability of the code. As a simple example, here’s a partial model featuring constants to aid in clear validation specifications:
There have been a whole bunch of posts on this blog about the differences in code size between jQuery and Prototype. The basic premise of those posts (which I agree with) is that because of the way jQuery code is structured, all sorts of typical Javascript design patterns are rendered shorter and simpler in the framework when compared with Prototype.
Also a solution for Safari and IE
First, let me define the problem. The window.onload event is used by programmers to kick-start their web applications. This could be something trivial like animating a menu or something complex like initialising a mail application. The problem is that the onload event fires after all page content has loaded (including images and other binary content).
A walk through process comparison between Prototype and jQuery to help developers go from one language to another. (by Remy Sharp)
In the previous post, I talked about how MXML tags map to ActionScript classes. I was planning on following that up with a short post about the exceptions to the earlier rules. However, a number of thoughtful comments helped me understand that there are more things that need explaining than just the original rules and the exceptions.
One of the most powerful aspects of Flex is that it creates a simple mapping between tags and ActionScript classes. It’s a simple concept, but time and time again, I find that people who don’t know Flex have trouble understanding how this works, or why it would be useful. For those of you who are new to Flex, here are the rules, along with some simple examples to get started with this concept.
There are some tags which aren’t components at all (like the Script tag.. notice that there is no ActionScript class called Script) that are hard-coded into the compiler. The full list of these can be found here.
Create matching color schemes at the click of a button
Colors are more than a combination of red and blue or yellow and black. They are non-verbal communication. Colors have symbolism and color meanings that go beyond ink. As you design brochures, logos, and Web sites, it is helpful to keep in mind how the eye and the mind perceive certain colors and the color meanings we associate with each color.
Meaning of colour in various cultures
Color theory encompasses a multitude of definitions, concepts and design applications. All the information would fill several encyclopedias. As an introduction, here are a few basic concepts.
The Typetester is an online application for comparison of the fonts for the screen. Its’ primary role is to make web designer’s life easier.
The long tail
Put DVDs on your iPod, YouTube videos on DVD, or convert any video file with today's top 10 free video rippers, encoders and converters.
I read your article on turning any action into a keyboard shortcut using AutoHotkey and my interest was piqued. You described how to remap the keys and create keyboard shortcuts for actions, but what I've always really wanted to do was to turn one key on my keyboard—specificially the Capslock key—into a dedicated minimize button.
To display the hand cursor for a displayObject with a dynamic textfield inside it (Suppose the textfield is on top of a shape): mySprite.buttonMode = true; //By default useHandCursor is true; //mySprite.useHandCursor = true; mySprite.mouseChildren = false;
Many designers tend to run with their 'gut feeling', which is only natural because, without knowing why, they are responding to color in a way that we all do - emotionally.
I would rather have 10 pages indexed from a 1000 page site than 1000 pages included in a index because of an XML sitemap, IMO XML sitemaps are a quick route to supplemental hell. Make your SEO’s life easier and don’t use an XML sitemap.
In my daily search on the net I found a really really, really! interesting Flash/javascript library, called SWFUpload, for uploading files. It combines the file upload power of flash with javascript and valid XHTML.
Finally I finished the tutorial about RoR, WebORB and Flex 2. It is based on the college we got a time ago from Raymond. Here he explained the basics about communicate between RoR and Flex 2. Now you can build your own login example
When it comes to a drag and drop, you normally want to have something to drop onto. Otherwise, just dragging an item around the screen can get boring. You want to interact with the page somehow. You might want to drag items into a shopping cart, or sort a list of items, or dock some widget on the screen.
This morning I finished the new and improved version of my installation guide for Apache, MySQL, PHP, PHPMyAdmin and Ruby On Rails. I’ve put it online here (PDF).
I’ve used ezSQL quite a few times in the past but I don’t think I ever blogged it. It’s a very simple-to-use SQL library for PHP.

Comments