Blog Stats
  • Posts - 21
  • Articles - 3
  • Comments - 8
  • Trackbacks - 0

 

Tuesday, December 19, 2006

C# Outlook Interop Problems

In a new simple winform app (sms sender Smile) I recently wrote in my sparetime I had troubles with the Microsoft Office Interop API. I just wanted to get all contacts from my addressbook. This wasn't the problem, but obviously on the computer of a friend this function threw out an error (Invalid-Cast Error).

After some investigation I found out the reason: You've to check every item you step through of its type although all items come from the contacts-folder. This seems a little bit weird to me...

 

for (int i = 1; i < fldContacts.Items.Count; i++)
{
         if (fldContacts.Items[i] is Outlook.ContactItem)
         {
                Outlook.ContactItem contactItem = (Outlook.ContactItem)fldContacts.Items[i];
                //Do something
         }
}

 

The Sea - Morcheeba

Monday, November 13, 2006

dyndns4netopia

I recently got a new router at home (cause I bought bluewin tv (over vdsl)). Before I had another router (SpeedTouch Pro) but with that router it was impossible to update dyndns without an external client running on a server. The last few weeks I had problems with my new Linux server setting up a dyndns client correctly.

Fortunately I've got a easier solution since I found out my new netopia router could handle all my dyndns updates itself. The only thing I had to find out was how to set up the integrated dyndns client over a telnet session. Here's the solution:

open a telnet session to your router (eg. 192.168.1.1)
login to your router (standard user/pass: admin/1234)

Netopia-3000/XXX> configure

Netopia-3000/23894308 (top)>> set dyn
  dynamic-dns
    option (dyndns.org) [ off | dyndns.org ]: dyndns.org
       ddns-host-name (""): myhost.dyndns.org
       ddns-user-name (""): myuser
       ddns-user-password(""): mypass

Netopia-3000/XXX (top)>> save
Netopia-3000/23894308> exit

Thursday, August 17, 2006

dd (Device Dump) - Segmentation fault

Rebuilding the Root-Filesystem of the portux-box (embedded linux) I got a Segmentation fault on my ubuntu-installation (german). The solution:

$export LANG=en
$dd if=/dev/zero of=images/initrd.img bs=1k count=8192

8192+0 records in
8192+0 records out
8388608 bytes (8.4 MB) copied, 0.112637 seconds, 74.5 MB/s

Weird...


Thursday, February 23, 2006

my first googlepage

Now first what is that google-page-thing. Today the latest google product was announced: Google Page Creator. Like GMail or Analytics the new web-application is also ajax-based. With Google Page Creator you are able to make your own small (or perhaps also a little bit bigger) homepage. I tested it a few minutes before and it is very google-like: small, fine and not overloaded. That's cool, really but I would expect a few more functions.
Ok perhaps I am the only one who sais that, it could be that I demand to much. Smile

Here's the result of my first homepage created with Google Page Creator:

googlepage.jpg


Sunday, January 08, 2006

a bit conversion

Next wednesday a local newspaper will publish an article about the weatherstation in schiers. Two years ago two friends of mine and I developped a homepage for a national contest called ThinkQuest. We won the first price in the category "technology and science".
But the weather station has been offline now for a half year because I wanted to enhance the logging program. Today I began to convert the old Visual Studio 2003 (.NET 1.1) project to a .net 2 project. Because my input datatype is decimal I had to convert it to hex. A little code-snipped helped me.

string ConversionResult = String.Format("{0:x2}", StringToConvert);
And because it's a weather station the temperature conversion is also an interessant question:
private double FahrenheitToCelsius(double value)
{
   return (val - 32) / 1.8;
}
private double CelsiusToFahrenheit(double value)
{
   return val * 1.8 + 32;
}
so long,...

Tuesday, December 20, 2005

memory upgrade

Today I installed a second memory module. Before I had had only a DDR 1024MB PC3200 memory bank. The most of my applications ran good but Microsoft Visual Studio 2005 was too slow for me Embarassed.
After the memory upgrade VS 2005 starts clearly faster. And also the build speed has increased.

cpu-graph.jpg

 Ok this picture is not a screenshot about my ram's, I just wanted to show how a dualcore cpu is displayed by the taskmanager.

system.jpg

uitu reloaded

Finally our new homepage is online. Last week we published the new website of our little company Smile. We already received positive feedback about our new design. Dennys Hess (pixel-studio.ch) did a good job, congrats!
We'd began a few months to make a new design but unfortunately we both didn't have the time to finish it. Therefore all the more I'm proud of our new and this time hopefully complete web presence! {goto: http://www.uitu.ch/}

Tuesday, December 13, 2005

ACL in .NET 2

I'd recently searched a solution to set up permissions for a user on a specific directory on a ntfs volume. Of course I wanted to do that in C# Smile. I found out that the .NET Framework 1 and 1.1 doesn't have a namespace to do that. Somewhere I'd read that in with .NET 2 I would have the possibility to manage ACL's. And so it is! Today I found the solution on msdn2.

// Create a new DirectoryInfo object.
DirectoryInfo dInfo = new DirectoryInfo(FileName);
// Get a DirectorySecurity object that represents the
// current security settings.
DirectorySecurity dSecurity = dInfo.GetAccessControl();
// Add the FileSystemAccessRule to the security settings.
dSecurity.AddAccessRule(new FileSystemAccessRule(Account,Rights,ControlType));
// Set the new access settings.
dInfo.SetAccessControl(dSecurity);

Unfortunately I've ever received the following error on removing the rights of a directory:
Some or all identity references could not be translated.

Sunday, November 20, 2005

Sony Ericsson W800i

Since a week I am the proud owner of the beautiful handy Sony Ericsson W800i. For one year I have written my messages with a Sony Ericsson T68i (fossil). My behavior has definitely changend over the last year: I phoned much more than before! Because of that I wanted to have a headset.

w800i.png

Either I would buy a bluetooth headset or I would buy me a new handy with headset. I decided on buying a new handy. I must say I am very happy with my decision! I haven't seen a great handy like the W800i before Smile.

Dieser Weg - Naidoo Xavier (4:06)

Wednesday, November 16, 2005

Google offers web traffic analysis services

Two days ago Google has officially launched Analytics, a a robust new web analysis system that provides site owners with traffic metrics and massive amounts of useful marketing data.

analytics_small.jpg

Analytics features an elegant user interface that leverages modern web technologies like Flash and DHTML. I think Google Analytics looks much better than any of those free logfiles analyzer like awstats or analog but I hate it to copy a javascript snipped to every page I want to analyze!

News

This blog is valid XHTML 1.0 transitional!

Article Categories

Post Categories

Syndication

Hosted by

uitu Solutions

Subtext Blog

 

 

Copyright © Fabian Aggeler