Personal 2 comments
I waited more than 1 month to receive the license to detain, carry and use a self defense gun. I had a lot of headache to get all the paperwork together to fulfill the requirements. I had to go to doctors, psychologist and police, spend a lot of money so they would approve that I'm healthy (not that I wouldn't be), then pay some taxes, a lot of bureauacracy. But now all that is over.

I received the license yesterday (4th August 2008) and the same day I want to buy the gun. I'm talking about a Mauser HSc mod 90. The caliber used is 10x22T. Can fire blanks, gas and rubber bullets. I'm allowed to fire only rubber bullets with it. I didn't tested it yet, but I will, in the shooting range ...read more
Other 2 comments
Another excellent Logitech product in my hands. I have to admit, it looks and feels great. This backpack is huge. There is a lot of space inside the backpack. More than you expect from first look.

Before buying this Logitech backpack I used the Kensington Contour Cargo Notebook Sleeve. I'm still using it if I have to carry only the notebook. I had one problem with this one, I couldn't carry more than my notebook, charger and mouse.

I ordered the backpack from an online store, I received it in 1 day, it came in a big box. When I spotted the big box I tough that the backpack must be really big. I was wrong, it was big cause of the protective packaging. The backpack is comfortable, feels ...read more
Personal 0 comments
There are many reasons, but most likely because I enjoy it and it's fun. Cycling is an opportunity to know a different world. It can be dangerous, I did hurt myself many times, once even left half of my face without skin. It was painful, my face got back normal, but this was a lesson. I even got hit by cars, still no broken bones and I hope I woun't brake any.

Cycling is healthy. I don't like and I don't lift weights, I never diet, I rarely see a doctor. Cycling keeps me lean, fit, healthy, and happy. Then it is more economical. I don't have to spend money for fuel and car insurance, I can do something else with that amount. Not to mention that I don't pollute the environment. Some ...read more
PHP / mySQL 6 comments
I couldn't find any helper for CakePHP to implement GeSHi, so I had to write my own. Bellow are the results of this helper in action.

To be able to use this helper you need to download GeSHi and put it in /app/vendors/geshi directory. You only need geshi.php and the geshi folder.

/app/views/helpers/formatting.php
 to view the code read the full post

Load the helper into your cotroller var $helpers=Array('Formatting');. To tell the helper what to highlight, the text from your view must be between the <code></code> tags. You can specify the language you wish to highlight like this: <code language="php"></code>. If no language is defined, the default ...read more
Personal 7 comments
Currently I'm working as a web developer for imageright in Timisoara (Romania). Here I develop websites in PHP with mySQL database, using CakePHP as framework. It does make my life easier, no doubt about that. Well, I'll have this job for 1 more week.

Since I won't be employed after this 1 more week I had to find myself another job. And I did, at least I thought that I did.

This Monday I had my interview at one of the two companies. BG Bricks it's a dutch company developing intra net applications. At least that's what they told me. The company headquarter is in the Netherlands, in Timisoara they have just a point office. The job interviews and hirings are managed by another dutch ...read more
PHP / mySQL 2 comments
In CakePHP it is possible to make rules to validate form post values. In the model you use $validate as an array of validation rules.

Usually this would look like this:
 to view the code read the full post

This is all good unless somebody is inserting spaces. At that point the validation returns true and saves spaces into your database table. I guess that is not the desired result. One solution would be to trim individually every input in the controller before validation. That would result in too many lines. CakePHP should have this built in.

The other solution for doing this and loosing those extra lines it is to put the following code in your app_controller.php:
 to view the 
 ...read more
Other 0 comments
Last weekend I was looking for some simple set of 2.1 speakers. I set my mind on the Logitech Z-3i. Unfortunately I couldn't find it in any local store so I had to look for something else.

I was not looking for a 5.1-channel surround sound, but I decided to buy the Logitech X-530. Each of the satellite speakers has a black-plastic casing, a see-through black-cloth grille, and a built-in plastic desktop stand that swivels and conveniently converts into a wall mount. The matching, horizontally oriented center speaker can be placed on your desk or perched atop the monitor; it tilts up or down. A power switch, a 1/8" headphone jack, and a system-volume control sit below the drivers on the ...read more
Other 0 comments
After I got my Dell Inspiron 1520 notebook I felt like I needed a mouse too. The touchpad is fine, only that I can't work with it in PhotoshopCS3. For this one I didn't research the net, I saw it by chance on a shelf in the hypermarket. It made me curious, cause I could not see the scroll wheel. Then I took it off the shelf and looked closer, then I found out that it had no scroll wheel, but even better! The mouse has an OptoWheel - an optical sensor to replace the wheel and features a comfortable touch scroll panel. This allows for four way scrolling and it is easier to use than the traditional mechanical wheel. It connects via USB and uses a laser sensor and provides more tracking power ...read more
Personal 1 comment
Because we moved a lot and because the city is big we bought a 8 day ticket, that means 4 days traveling for 2 persons and it was great that it was valid for 24 hours. We could use it on all types of public transportations. We never encountered ticket collectors. However I advise travelers to buy tickets.

We visited all squares from Vienna, Including Stephan's Platz and St. Stephan's Dom (cathedral), where we went up to one of the towers. From up there you could see a nice city panorama, but it was damn cold. An Asian guy insisted on taking us a photo, after that to another couple who was next to us... in fact he was taking pictures for everybody. The roof of St.Stephan's Dom was made up ...read more
Personal 0 comments
The term silvester (alternately, but uncommonly sylvester or sylwester) is used in certain countries(such as Austria, Czech Republic, Germany, Hungary, Israel, Poland and Slovenia) for December 31st in the Gregorian calendar, New Year's Eve. Swedes don't generally refer to the day itself with this name, but traditionally celebrate Silvester on this day as one of its 365 name days, using that spelling as it's the most common spelling of the name in Sweden. The naming refers to Pope Sylvester I, who died on that date in 335.

The introduction of the Gregorian calendar in 1582 moved the last day of the year from December 24th to December 31st which had been named Silvester since ...read more
Pages: 1 2 »