Today I stumbled upon a newish MySQL feature that can often be very useful. Since MySQL 4.1 there’s a non-standard feature (i.e. it’s an extension of SQL standard and won’t work on other databases) that lets you insert a new row, but if it happens that a row with same primary/unique key already exists it [...]
Category: Programming, Resources and Links |
4 Comments »
Tags: MySQL, MySQL Insert Row, MySQL Row Update
Over a year ago I wrote about an excellent script called Niceforms and little fix I wrote (see NiceForms with even nicer select). Now a final version has been released - Niceforms 1.0 which solves a lot of problems from previous version.
I still haven’t had chance to look at the new improvements but it seems [...]
Category: Programming, Resources and Links |
2 Comments »
Tags: Fancy Forms, Forms, Styling Input Tags
When you start learning Ruby and Ruby on Rails you are faced with very powerful set of tools and sometimes it can be overwhelming. You are often faced with long cryptic explanation of some feature and all you want is a quick overview of what it does and how you could use it.
Rails Simplified will [...]
Category: Programming, Ruby & Rails |
No Comments »
Tags: Rails Migrations, Ruby on Rails
Most people know what CAPTCHA is and if they don’t then I am sure that they have seen one. Furthermore, I am sure that everyone has been molested by bad CAPTCHA. Once I tried to register at a forum and it took me 8 times to get the CAPTCHA right - 8 times! I had [...]
Category: Programming, Web |
40 Comments »
Tags: Captcha
Currently I am working on my first big Rails application and I needed an simple and quick way to get matching movies and music based on user entered keywords. The best place to get such information is Amazon as they have almost anything in their store.
So I decided to write a small Rails application that [...]
Category: Programming, Ruby & Rails |
4 Comments »
Tags: Amazon on Rails, Creating Amazon on Rails app, Ruby on Rails
Every now and then you need to limit the number of rows MySQL returns, i.e. use the LIMIT clause. Result set pagination is by far the most often usage of LIMIT clause, since you usually want to select only rows you’ll be displaying on certain page.
The problem is that for pagination you also need total [...]
Category: Programming |
35 Comments »
Tags: Add new tag, MySQL
Few days ago Vijay asked if there’s a way to disable ctrl + n combination (open the new window shortcut. So I set out to create a small Java Script that disables any ctrl + key combination (e.g. ctrl + v, ctrl + c, ctrl + a, etc.).
Script is a bit more complicated than Disable [...]
Category: Programming |
44 Comments »
Tags:
Recently I’ve started playing around with Ruby and Ruby On Rails on our hosted server. Since I liked it a lot I have finally decided to try to install it on our local Windows server. While I was doing it I found that most of the online tutorials are not all completely accurate, i.e. they [...]
Category: Programming, Ruby & Rails |
3 Comments »
Tags:
UPDATE 31-Jan-2007: There’s a new version of Niceforms. For more info see this post.
Few months ago I stumbled upon a great piece of JavaScript called NiceForms by Lucian Slatineanu. The idea of script is to replace all form elements with visually much nicer and more controllable elements. Great thing about it is that it replaces [...]
Category: Programming |
37 Comments »
Tags: