Misty thoughts

18May/090

A photo a day for a year

The sun reflecting on the Hooglandsekerk as seem from Aharale & Geiske's window

The sun reflecting on the Hogelandsekerk as seen from Aharale & Geiske's window

A few days ago I came upon this idea and I really liked it. Each day, one photo, with one or two sentences, for a whole year. It helps you remember each and every day in that year, while making you a better photographer. I found this picture to be a good starting picture.
Yesterday I was feeling down about loosing two ships in Eve-online Today, I am celebrating this world, and starting on what I believe to be a great experiment in living.

Tagged as: , No Comments
25Apr/080

Cascade delete in MySQL

Now that I am actually getting payed to program instead of paying to program, I find myself in greater need of practical information. Putting some of it on my blog will help me keep all the knowledge in one place. To start off, I'll mention Cascading delete in SQL.
In the database schema there are 3 tables used to store different objects. As there is a many to many relationship between the the objects, there are relation tables.

Basic database layout

Using cascading delete I can define that if an object is removed from its table, all relation tables entries with that object id are also removed. Quite handy. the way this achieves is MySQL is through the use of foreign keys. If I define in the table members the unique id of a user as a foreign key I can also define tell the RDMS to delete the entries in members where that foreign key exist. Here is an example of the definitions:


CREATE TABLE members (
usr_id VARCHAR(30) NOT NULL,
grp_id VARCHAR(30) NOT NULL,
FOREIGN KEY usr_id REFERENCE user (usr_id) ON DELETE CASCADE,
FOREIGN KEY grp_id REFERENCE group (grp_id) ON DELETE CASCADE);

As you can see the table is created normally by defining the fields, then the foreign keys are named. The REFERENCE shows to which column in what table they refer to.

Filed under: programming, work No Comments
17Mar/080

The first two weeks of work

It has now been two weeks since I started working so I figured it might be a good time for a post about how things are.

Before I started working all I heard from the working people is how they miss the student time. How much more demanding working life is. It won't be an overstatment to say I went to my first day a bit worried.

My first day was like Christmas.  I got a mobile phone, a laptop and a car. And that was pretty much it. The next two days have been just as nice. Together with all the people who started working for Getronics-Pinkroccade this month we had a 2 day into plan. Some presentation, some group talks, and beer. Yes every building in the company has its own beer tap with a barman. I like that. Did I mention, its free beer? The people I met were intellegent, interesting and fun. If this is how most people in the company are, I made a good choice coming to work here.

From the forth day on, and for the coming 2 weeks I'm in courses in Amersfoort. Its quite relaxed. I'm doing the courses alone, with a tutor I can turn to for questions. My tempo is quite high (im going almost at twice the expected rate) so I might be finished earlier then expected.

After I finish the courses I have a month of stage to build some web app (interesting ideas for what exactly are welcome). Then it will be time to actually work on real projects.

Filed under: Me, work No Comments
16Oct/07Off

Found a job

In a streak of luck and some good talks, I got a job at Pinkroccade. I will be following the Young IT professional program they offer. Starting on the 1/3/2008. this should give me a month to visit Israel, and have some time with my brothers in the Netherlands before starting to work full time.

Filed under: work Comments Off
   

Tags

80s 365 american election animation apache coding cognitive cool daily show diving django dreamhost drupal extreme form api fun gaming guide humor ideas it London Me music mysql php programming python religon science skateboard sport spyware switzerland theming thinking thoughts travel usa presidentail election vacation video video clips web web development youtube