Thoughs on php

by Mikael Henriksson 12. May 2010 07:33

Don’t do it! Php is a horrible horrible language. I hate it so much, no help from compilers, no intellisense and no good IDE. Right?

Wrong! There is something called VS.Php for Visual Studio that gives you most of the things you might want. It’s putting enough makeup on the pig for me to kiss it.

new_php_project

There was one thing bugging me about this VS.Php and that is syntax coloring. No support for dark themes possible that I could find and black text on dark grey background sure strains the eyes :)

dark_theme_php

If you change back to the default theme, please remember to save your dark theme or you will have to redo that eventually :)

Tags:

Visual Studio

sql merge into

by Mikael Henriksson 5. May 2010 13:07

-- select table to merge into
merge into dbo.post p
-- select table to merge from
using (select tag from template_tag) tt
-- select how they map together
on p.tag = tt.tag and p.post_id = @post_id
-- specify WHEN to do
when not matched then
-- specify WHAT to do
insert (tag, post_id) 
values (tt.tag, @post_id)
-- specify a second WHEN
when matched then
-- specify and action to perform
update set tag = tt.tag where post_id = @post_id;

A very simple example on the greatness of merge. Now you can quite easily work on those sets in a more natural way. Mostly for my self this post is.

Tags:

SQL Server

Suicide!

by Mikael Henriksson 4. May 2010 08:19

This is my “web 2.0” (god I hate that term) suicide note. Yes it’s true I have committed web 2.0 suicide and you might be thinking why? Why would someone delete all their community accounts and un-befriend everyone on their various lists like that? Well the reason is simple enough.

IT’S JUST A WASTE OF FUCKING TIME!

I have better things to do, I have family, real life friends that I haven’t hung out with enough. I find myself going back through totally useless conversations and tweets. I login just to check shit I don’t even care about and face it:

IT SERVES ME NO PURPOSE!

You say it’s useful? Well let me tell you something, it’s back to being fed information. You know what TV makes you? It begins with Stu- and ends with –pid. If there is a cool enough new technology coming I am sure I will hear about it eventually.

I have decided to value myself and my time more than what I have before. I want to read books, write books keep blogging more frequently and most important I want to keep growing as a developer and as a person and that is not possible while sitting around checking old tweets or friend-of-friend photos I don’t care about anyway.

I am also (probably) going to start blogging about two other areas of my life that is extremely important to me and since I want different feeds for those I’m going to have to rework the blog a bit.

In the case you need to reach me and did that through facebook, twitter or linkedin you can do that on:

email: mikael AT zoolutions DOT se
skype: mikaelhenrixon
gtalk: same as email
msn: same as email

Have a REAL life!

-Mikael

Tags:

About the author

Life architect specialized in programming