Cookies setting
Art origins5

Thinking Sphinx on Windows

0

Setting up a search engine in your rails application is quite simple in theory. All you need is a few short lines of code and the right gem. The problem usually occurs when installing the engine itself, especially on windows, as usual. What follows is a short guide on how to make sphinx work with mysql on windows, with some tips and useful links. I used to develop my search on my linux vps because of it. Then I tried Sunspot and life was beautiful, until it screw everything up... I blame the evil Java and my self, for even consider. using it. Now I am back on Sphinx and I even make it work on windows. Here is how.

 

Here is a step…

Spam

Akismet and spam is no more!

0

The previous iteration of this site had lots of problems with spam comments. It came to the point, that I had to disable all commenting. On the new version of the site I’ve implemented a spam stopping sistem with Akismet. It’s a nice free to use (for personal use only) service that checks the presence of spam for you. For this to work with Rails I use Rakismet, a Ruby gem that makes the process as painless as possible.

Here I want to take a moment and thank Akismet and Rakismet for saving this site from the spam invasion. All it took was a few reports and the spam is no more (hopefully for good).

I think the Rakismet documentation and the Akismet

7035b6589b53c7eaf785bed28e10d6a3

Back on rails 3.2!

0
Galx post

The "galx" project

0

This is the project that was keeping me from posting anything new for a while. It’s my diploma thesis. The idea was to create a simple web gallery CMS, that will be then used to implement the version 2.0 of this page. Other than its main feature it also has a blog, link, static pages and comments. The advantages of such an application for the user are the possibilities to easily create and edit content and the adaptation of the page's design to personal needs. A demo is located at www.galx.eu.

At the moment, I am working on a design for the demo for its presentation to the faculty. Here is a sample of what I have in mind for the main logo:


When it's…

Tagging

Tagging with acts-as-taggable-on

1

As you know, tags are one of the key features of web 2.0. Personally I don't really care much for tags, but I had to implement them in a project of mine.
If you need a very basic tagging functionality, this tutorial covers that as well. To save yourself some time you can use the plugin called
acts-as-taggable-on. It basically covers all your tagging needs. I find the documentation on github a bit unclear, so I've decided to write a quick and clear tutorial on how to make this thing work. There are two parts, first I describe the basics and then I'll go in to ma more complex example.

 

The model
You need to add this to the model you

Sorting

Sorting with rails and jquery

0

There are a few tutorials on the subject already, but I want to show a very basic example that works and is completely unobtrusive. I’ve already mentioned in my previous blog post about Ryan Bates' screencast that shows you how to do sorting with prototype. There are also these two useful tutorials on the subject I found link1 link2. Mine is much more basic than those two, with some useful tricks.
Let’s start with what we need for this to work:
jQuery and jquery-ui included at the bottom of your layout like this = javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js", "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js", 'sort'

The last one is sort.js in which will hold the JS code (more on this later).

 

Gems: acts_as_list (more details in

Previous next

Next and previous buttons

0

This is a quick tutorial on how to add next and previous buttons to an image. I’ll explain two ways to do the same thing and add some useful tips that could make your life easier. I usually use will_pagiante for all my pagination needs and what I am doing here can also be achieved with it, but that may seem just too much work for a simple problem. When I was looking for a solution I didn’t find much useful information, so I’ve decided to change that.
In my gallery application (I’ll write more details on that in one of my next blog posts), I have many galleries that have many images. For a more simple solution, just remove the gallery parts. As I upload multiple images

Ror

RoR for n00bs

0

After making this page in rails, I’ve decided to give something back. This is not one of the thus dozen Rails tutorials for beginners, that are all the same. I just want to point in the right directions to help make the learning process as painless as possible. Particularly for those like me, who’ve decided to be hardcore and develop on Windows.


Why Ruby (on rails)?
Ask Google and you’ll get tons of arguments. For me is the simplicity, the DRY »Don’t Repeat Yourself« philosophy (that I don’t yet fully practice) and the predefined organization of all the elements.
For those who’ve never done any web development, it’ll probably be very easy to learn. On the other hand, for someone who has been already programming