This time we’ll see how to add some sexy/fancy charts to your rails app. The goal is to end up with something like: Various options You might have heard or even tried solution such as Gruff or JFreeChart . While these solutions are great, they are certainly a pain in the butt. Rdf. jQuery iPod-style Drilldown Menu. Posted by Maggie on 04/02/2009 Topics: css jQuery jQuery UI ThemeRoller ui design Update: We contributed this menu plugin to the jQuery UI library.
We got lots of fantastic feedback on our earlier iPod-style menu, and decided to upgrade it for jQuery 1.3. As noted in our original post, the iPod-style menu provides easy navigation of complex nested structures with any number of levels. Much of the functionality that controls the iPod style menu, like positioning and option selection, is shared by dropdown and flyout menus which are better suited for smaller data sets, so we extended the script to include support for these additional menu types. We also built in the ability to customize a menu's appearance, including active and hover states, by passing in classes as options. By default, the menu script will transform an unordered list of links into a simple dropdown menu: Demo Page When the menu content contains nested lists, by default it creates an iPod-style menu: Demo Page Demo Page How it works. Duck_punching » Passenger (mod_rails) for development. Now with.
Dev mojo After reading the great posts by Geoffrey “PeepCode” Grosenbach and Manfred Stienstra about using Phusion Passenger for development I had to give it a try. My doctor she’d never heard of mod_rails but gave me antibiotics for it just in case. After little bit of setup I can say I am much happier with this dev rig than the old ‘script/server’ style. Just open a browser and the app is just waiting to serve you. Nice and agile or something. Bugger no debugger! One thing was missing for me though.
Keepin’ it real (easy) So your working away and you run into a tough bug in some action or corner of your app. Rake restart DEBUG=true. Articles: Ubuntu Gutsy - Nginx config layout. Assuming you have followed this article and have installed Nginx via the Aptitude package manager, we can now have a look at what the install, um, installed.
If you have used Apache with a debian based layout, you will note some very nice similarities and consistencies. Looksee Let's start by moving to the Nginx directory and listing what is there. cd /etc/nginx ls You will see this: The folders are highlighted in blue. Sites-available Inside here will be files containing the configurations for each site you want to serve. Sudo nano sites-available/default As I say, we'll look in more detail at the actual configuration later.
Do note that a file in sites-available does not mean they are active (i.e. your users will not be able to browse to the domain) as you need to enable them first. Sites-enabled. Installing RMagick on OS X using MacPorts. Revised 16Nov2007 This page describes a method for installing RMagick, ImageMagick, and the delegate libraries used by ImageMagick.
I developed this procedure using a clean install of OS X 10.5 (Leopard) on a PowerPC PowerBook G4, but the procedure should be the same for Tiger and Intel Macs. You will need to have your OS X installation disk, a connection to the Internet, and at least an hour of free time (assuming you have a broadband connection).
You should also be familiar with the bash shell and the Terminal application. Step 1: Install MacPorts Go to the Installing MacPorts web page and follow the instructions there to install MacPorts. The remainder of these instructions assume that you installed MacPorts using all the defaults. Step 2: Install ImageMagick and its delegate libraries If you have not already done so, start the Terminal application. RMagick 2.0.0: RVG Tutorial. A tutorial Introduction RVG (Ruby Vector Graphics) is a facade for RMagick's Draw class that supplies a drawing API based on the Scalable Vector Graphics W3C recommendation.
RVG is a scalable vector drawing library. Scalable means that drawings are not fixed to a single size in pixels. The same drawing can be rendered for a screen display or for printing. As an introduction to the RVG library, let's see how to draw this little duck on the left. Summary All drawings follow the same 3 steps: 11.6 Date and Time Functi. Chart Types - Google Chart API - Google Code.