What makes the chili peppers so spicy?

0

While eating my delicious pizza I wondered what makes the chili peppers so hot. And the answer is quite interesting.

Chili peppers contain an alcaloid which is named capsaicin. This compound belongs to the capsaicinoids and is also the primary ingredient in pepper spray. When it comes in contact with mucous membranes, it gives you a burning sensation. Interestingly, it does not bind to taste receptors but to pain receptors in the mouth and throat.

And why is water not effective to clear this burning sensation? Capsaicin is not soluble in water.

Data Versioning using Triggers in MySQL

0

At any time during database driven development you ask yourself how to keep track of the changes made to your data in your database. I asked myself the same question. And I came up with a simple solution using triggers.

A trigger is a small function stored inside your database that gets triggered on a event in your database. Like, the moment you add or update a row in your table.

For versioning we need 2 things:

- a few extra fields in your table
- a copy of the table structure of the table you want versioning turned on

First, let’s define 2 extra fields:

- enuVersionStatus (ENUM) = ‘INSERT’, ‘UPDATE’, ‘DELETE’
- tsVersionStatus (timestamp) = current_timestamp & on update current_timestamp

enuVersionStatus is defined as a enumerable field that holds the state of the data
tsVersionStatus is defined as a timestamp and holds the timestamp when the data has been edited

Now we copy the entire structure of our table to a log, or history table. Let’s just append a “_log” to this table and remove any indexes or auto_increment statements. And lastly we create a new trigger:

DELIMITER $$
CREATE TRIGGER myTable_Trigger
BEFORE UPDATE ON myTable
FOR EACH ROW
BEGIN
INSERT INTO myTable_log (SELECT * FROM myTable WHERE id = OLD.id);
END$$

What the trigger does is very simple. Just before doing any update on the table, the “old” entry is being written into the log table. The data in myTable holds the live data and the myTable_log holds all the old entries.

Impressions of Austria

0

It’s time to dedicate a photo album to the time span I’ve already spent in this beautiful country Austria…

Impress yourself :)

Picture of the week #4

0

After a few weeks of tranquility :) , here we are again in the New Year!!

This picture was made last year in Hurghada (Egypt). Enjoy the impressive colors of the Red Sea :)

Happy New Year!

0

Prosit! :)

Happy New Year 2010 to all of you!

May all your dreams come true :)

Merry Christmas to all of you!

0

isageo wish all of you a Merry Christmas! :)

May this Christmas be bright and cheerful and may the New Year begin on a prosperous note!

Picture of the week #3

0

This was one hell of a day… :)

We drove down to Zeltweg (Steiermark) to see the Redbull Airpower event… was very impressive.

www.airpower.at

New HPV vaccine under study in Vienna

0

Last summer, a certain flyer on the pin board got my attention:

A new HPV vaccine is currently under study at the AKH Vienna.

Well, what is the difference between this new vaccine and the “old” one?

The human papillomavirus vaccine GARDASIL® which is currently on the market is quadrivalent. This means that it prevents the infection of 4 different types of human papillomaviruses. The protection is directed against two types (HPV-16 and HPV-18) which can cause cervical cancer, and two other types (HPV-6 and HPV-11) which are responsible for the formation of genital warts.

The new HPV vaccine under study is a nine-valent vaccine. It consists, as the previous one, of hollow virus-like particles assembled from recombinant HPV coat proteins. The nine-valent vaccine is meant to protect against 5 additional HPV types. In this study, the new vaccine is compared to the quadrivalent one.

Picture of the week #2

0

01/2006 – This is one of my favorite pictures ever made. We went out late on a cold January night and took this picture in Mamer, Luxembourg.

Of course, the picture is more impressive in the original size ;)

Install Flex Builder 3 on Eclipse 3.5 (Gallileo) on OS X

0

Today I tried to finish setting up my flex development setup. I had issues setting up a decent php environment inside of the stand alone Flex Builder 3 (based on Eclipse 3.3). So I decided to get myself a good Eclipse PDT from www.eclipse.org/pdt/. Then I tried installing the Flex Builder 3 plug-in for Eclipse. There I ran into serious problems:

It seems that Eclipse made some big changes in Eclipse 3.5 (Gallileo). So the Flex Builder 3 plug-in would not install correctly. After surfing the internet for answers I found a post about the link-file inside the links folder. It seemed that I had to edit this file in order to get it going.

Almost!

Not only do you have to edit the file links/com.adobe.flexbuilder.feature.core.osx.link from /Applications/Adobe Flex Builder 3 Plug-in to path=/Applications/Adobe Flex Builder 3 Plug-in
But this only works with the Cocoa version of Eclipse!

Finally, the working setup:

  • Eclipse PDT Cocoa version
  • Flex Builder 3 plug-in
  • Changes to the links/com.adobe.flexbuilder.feature.core.osx.link file as described above
Go to Top