2005-12-20

MSMQ permissions needs a "touch"

Recently I was working with a project where I needed to set up some MSMQ queues at the install phase. I realized I needed to change the security attributes when converting the c# application to a windows service. After scraping the web I found a way to set attributes.

The install went fine but when trying to access that queue I still received errors about permissions. I looked in the MSMQ attributes for that queue in Administrive tools. All was set right. After unchecking and then rechecking a box followed by Apply it worked again. A bug! This workaround/step would not be accepted by the end customer so I had to find a work around. After some testing I found that I could use the function SetPermissions on a queue after setting the permissions in the install. The result looks like this:

// local system account
Trustee t1 = new Trustee();
t1.Name = "SYSTEM";
t1.TrusteeType = TrusteeType.User;
t1.SystemName = ".";
AccessControlEntry ace1 = new AccessControlEntry();
ace1.EntryType = AccessControlEntryType.Allow;
ace1.GenericAccessRights = GenericAccessRights.All;
ace1.StandardAccessRights = StandardAccessRights.All;
ace1.Trustee = t1;

// any other computer
Trustee t2 = new Trustee();
t2.Name = "Everyone";
t2.TrusteeType = TrusteeType.Group;
t2.SystemName = ".";
AccessControlEntry ace2 = new AccessControlEntry();
ace2.EntryType = AccessControlEntryType.Allow;
ace2.GenericAccessRights = GenericAccessRights.All;
ace2.StandardAccessRights = StandardAccessRights.All;
ace2.Trustee = t2;

AccessControlList acl = new AccessControlList();
acl.Add(ace1);
acl.Add(ace2);
MSMQInstaller.Permissions = acl;

// This corrects a bug when previous settings are not correctly applied
// Using the SetPermissions after adding the accesscontrollist applies previous settings
// Remember to use Allow below to keep existing settings
MessageQueue m = new MessageQueue(MSMQInstaller.Path);
m.SetPermissions("SYSTEM", MessageQueueAccessRights.FullControl, AccessControlEntryType.Allow);

2005-10-13

Every day is a new day

I has been a while since I last posted here. I have been spending a lot of time on VisualCron. The future of VisualCron is becoming more clear. There are still of lot of things to implement but the foundation feels very stable.

The "singing-booth" is also ready now. It's a black rectangle, 1.2 * 1.5 meters with 2.2 in height. It is painted black now and I have put up some diffusers. It looks quite good and it sounds very good. I may post some pictures here later. I have to spend some time singing every day. Training singing is like training a muscle. I am very "untrained" right now but a little practice will do the trick!

Both my friend DJ and I have had very little time over to spend on our new project. But it will get better! Our next meeting is on sunday and hopefully everything will be clearer then!

2005-09-07

X-Station finally here

I received my X-Station this monday. Finally. I played around with it for a while. I am a newbie on that area but I got it working with Reason 3 and upgrade the firmware.

At the same day I bought Battlefield 2. Now I am stuck on that one too!

This month will be hectic. A lot of happenings will occur. As usual, besides the music project and BF2, I have another project going on with my friend DJ. Can't tell you anything about it yet but we hope that our idea is as great as we think! :) We'll be finished, hopefully, in the middle of November. But that's a very tight schedule! ;)

Neda and I has booked a trip to London the 16th of December. Just for the weekend. Can you imagine that I have never been there before?!

2005-08-21

VisualCron 2.5.0 released

Finally, after many weeks of work the version above of VisualCron is released. This version was an important step for me and VisualCron.

I have listened to a lot of user requests and implemented the most important things, you can read a list of changes here. Hope you'll like it!

My personal life has been suffering and I hope that this version will calm down most of the users for, at least, a shorter period. So after another weekend of work I go to sleep and wake up to my regular work again ;)

2005-08-19

Free caribbean cruise

I just got a computer, automated call on my home phone saying that I won a caribbean cruise like this:

Congratulations! You’ve won a free caribbean cruise. To reclaim your prize, press 9. That’s the nine-key on your telephone.


I didn't press 9 - I hung up and I think that you should do it too because I have heard that they will charge you 800 Euro and you won't get any trip :)

2005-08-12

Result is what counts

I have not been lazy - I have just been busy like a bee. In the previous weeks I have dreamt about VisualCron and worked late nights. A lot of important steps has been made both which I have mentioned before and new ones.

You, VisualCron users out there, has been lucky because the fact that I have not received my X-Station yet.

I expect the VisualCron release to be within 2 weeks from now.

2005-07-26

Going to Sicily

The clock is 5 am and in less than two hours Neda and I go to Giardini-Naxos in Sicily. It's really hot there right now, about 38 degrees Celsius.

Last week I were with my friends in Gotland, Sweden. The weather was bad but it did not affect the partying! Anyway, I used some of the bad weather to develop VisualCron and the new features are doing great.

The cab is waiting now!

2005-07-12

X-Station delayed..

I received a mail today saying that my X-Station was delayed. "Hopefully" it would come in stock at the end of this month. We'll see, I was thinking of swapping to an M-Audio Ozonic but I don't like the idea of firewire and it has no synthesizer. Cheaper though. I don't have the time anyway right now :) so I'll guess I wait.

Another hot day today. This evening I am going to the gym. Finally I am back on track :) Have I felt this feeling before? ;)

2005-07-11

Soon vacation..

It's been a lot todo lately. Both at work and home. This week is the last before my three weeks of vacation. A short vacation this year.

It's hot in Sweden. Today it is 32C and it has been like this for two weeks now.

There are many things to finish up before the vacation. I hoped to have a new version of VisualCron before the vacation but that seems hard now. I made a version but wasn't satisfied with that design, so now I am redesigning it - hopefully you'll like it. I have received a lot of interesting emails from interesting people lately. It's nice to get to know you, who you are - you out there!

A major event of this week is the arrival of my new toy. Hopefully it will be delivered by end of this week. It isn't crucial because I have so many other things todo so I can't play with it. Are you curious? :) It's a Novation X-station, a midikeyboard with integrated synth, soundcard and mic preamp. I am also building a cube for recording songs. The strategy is to order some sounddiffusers from Germany. I am not sure what will be produced - it's just for fun! But maybe I'll place a link here later!

About vacation. This year we are leaving, all of my friends to Gotland. Gotland is a small island which belong to Sweden. Next, me and my girlfriend are leaving for Sicily, Giardini-Naxos. After that, we'll visit my parents cabin in "Värmland".

Time to go home for today!

2005-06-22

BF2 is not good for VisualCron

A few days ago I tried the Battlefield 2 Demo and now I am stuck. I am thinking about buying the retail version at the release tomorrow. I don't like paying for software but I'm paying for the service, to play online etc - that's the way it should be.

Anyway, I am still making changes to the new version of VisualCron with "Time exceptions". It is some massive gui changes todo as well as coding changes.

On friday we have this holiday in Sweden called "Midsommar", midsummer. I'll spend some time with my friends and Neda to eat and take a break from work. Maybe I'll post some pictures later.

2005-06-13

DNSExit is down

DNSExit.com is down. I haven't had any problems before so this is the first time. Anyway, shit happens. I have spent a lot of time with VisualCron these days. Some minor corrections and some building on new features.

I have some problems with running jobs under certain credentials. After some research I have found that the problems exist due to some security fixes of Microsoft. The user, which a service account normally runs under, can't to any type of impersonation, i.e. try to run a process as another user. What I have heard, this will be possible in .NET 2.0. I am really interested in beginning developing in 2.0. but a small issue :) is that nobody has the runtime, so you are on your own if you try to redistribute it. I thought that I could come around this by just changing the service so that it runs under a different user. However, this produced some other errors, the service could not log anything and logon in the SSL was slow (don't know why). When I tried to impersonate it also produced an initialization error. So I have 3 errors to handle. That's why I am postponing the credential-thing and focusing on time exceptions and running so called "missed events" (when the server has been down or something like that). After that, I promise to take care of the credential thing - maybe that will be in .NET 2.0.

Personal stuff. Yesterday, Neda and I, invited her parents along with some other family members. We ate indian food and had a nice time. Now, it's monday and I am back on work!

Later.

2005-06-09

Cleaning VC up

After the release of the new VisualCron beta I have spent some time fixing bugs which were expected to be somewhere :) A newsletter has been created which the users can subscribe to. I try to send a mail about anf for every update I make.

Right now I am working on time exceptions, i.e. if you don't want your job to execute on a holiday or something like that. This may take some days to finish, I have spent a lot of time in front of the computer lately and I have bad concience for Neda.

Next in line is the "missed events" functionality. If you computer shuts down or something like that, VisualCron will run all the events that should have been run during the downtime, at startup.

See you later..

2005-06-01

Cisco does not like Cisco

After months of struggling with my home network I found a solution. What I experienced was regular disturbance in the network. Listening to WinAmp radio failed after 10 minutes. Strange logs in my router. I have router Linksys RV082 (produced by Cisco). I also have IP-telephony and that device is a Cisco ATA-188. I realised yesterday that these two doesn't like each other. The problem disappeared when I placed a switch between those. I don't know why and I don't want to spend more time on that problem. I am just happy that it works now!

VisualCron 2.0.1 - Beta released!

After many months of work I have released the beta of the new VisualCron. It has a lot of new features which I mentioned before. Soo, maybe I can relax for a few hours and sit and wait for the first bug report to arrive. =) This version feels stable but I had to cut in new functionality. I will be working on the upcoming features - maybe already tonight!

Please send me your comments about the new version - I hope that I am on the right way and this version is for you out there!

2005-05-30

Tough weekend

This weekend has been spent moving heavy items from Neda to me. I was out with the boys on the saturday and when I came home to the apartment it was totally remade. Neda, with her sister and mother were responsible for the makeover. It both looks and feels great.

The sunday was spent on VisualCron. It feels stable right now and I am making minor changes. I have decided what to bring in this version and what to bring in a future versions. The translators have done a great job. Almost all languages have a complete translation.

I am heading home now from the work. Time for some workout and maybe later some VisualCron development.. :)

2005-05-27

5 days

I've spent 5 days on my new job now. Most of the time has been spent on installation and filling gaps in knowledge. There has and will be a lot of other things this week. Neda has started to move in with me. Yesterday she came to me with her car fully loaded with clothes. I had to throw away some of my clothes but I'm sure that I won't miss any of them. This weekend is dedicated till helping Neda moving to me and VisualCron.

VisualCron has kind of paused during this week but I'll continue later tonight. The most important thing is to have a stable beta so new users can try it out and old users can upgrade without having to much disturbance. VisualCron is totally rebuilt and with the changes made I have a totally new platform that better supports new functionality. I have added a lot of new functionality which I hope that users will appreciate.

I have decided that some functionality have to wait due to some problems. For example, running commands as a different user. I know this is an important feature but when VisualCron is running as a service under the system account this is impossible due to security issues. Changing serviceaccount displayed some strange error and I have to do more research there.

I'll try to post changes made here, and what I have been spending my time on.

More information later..

2005-05-25

Post about Neda

Before mentioning her name I in any post I would like to tell you who she is. Neda is my love, grown up in Iran. We have seen each other for about three months now. It feels good - I am feeling relaxed which in itself is a very good sign.

The news is that Neda is moving in with me! We have already started planning the whole thing, which furniture to use and not. Here is a picture, isn't she nice!

2005-05-24

Looking for energy

These days at my new job has drained a lot of energy. Maybe it is some kind of tension - I don't know. I feel comfortable anyway. I am just disappointed at myself. Last week I a lot of energy for VisualCron but not this week - yet. I have to go to the gym and look for energy over there. It's different now when I can't train on the lunchbreak. Also, maybe I should drink some more redbull!

I spent one hour playing HL2, one of few games worth buying. Anyway, I did not get any satisfaction from that either. Have to find out what's wrong..

2005-05-23

First day at my new job

I've just been away on lunch from my new work at Cybercom. Working as a consultant may be very different from my last job. But here I am, just hooked up the new computer, installed some programs etc.

Last friday they celebrated me at my old job. Feels a bit sad to leave them all but the best time to leave is when it feels best. We went to TGI, ate some good food and then entered the party life of Stockholm.

This weekend I spent some time with the new version of VisualCron. VisualCron is a task scheduler for Windows. It has more functions and remote control. It is freeware and I hope that the users will appreciate the new functions.

Now I have to continue with the installation of software.

2005-05-19

Serialize me!

Ripped from wikipedia:

In computer science, serialization means to force one-at-a-time access for the purposes of concurrency control, or to encode a data structure as a sequence of bytes. The opposite operation, to extract a data structure from a series of bytes, is deserialization.

When I say serialize me I am talking about the process of describing me, the text on this page are serialized versions of me. When you have all information you can deserialize the text to an object, me.

I am serious but a second truth is that all other names where taken :)

Back to bullshit. The advantages of serialization among other things are:

  • making an object persistent
  • distributing an object

This utterly boring part was the first and last description why I am using this address/username/title etc.

Over and out!

2005-05-18

First time / My eyes hurt

I'm in a hurry but I'll try to make a decent first impression. Blogging is new to me. I am used to be a pioneer on most things on the Internet but not this time. Feels like I'm the last this time!

Right now my eyes hurt! I am a programmer and I have spent a lot of time on my personal projects the last days. I'll tell more about them later! A lot of time is being spent in front of my computer. Feels like I have been surrounded by computers all my life. I only react to silence now, cause noise is what I'm used to.

Have to go now - see you later!