torsten's .NET blog In the end, everything is a gag [Ch. Chaplin]
# Thursday, December 18, 2003
RSS Bandit at email.about. Again.
Technorati tags:  | 
Thursday, December 18, 2003 10:44:33 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
# Friday, December 12, 2003
No sex, huh?
Technorati tags:
Friday, December 12, 2003 1:14:28 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [3]  | 
Security vulnerability, No.

As a RSS Bandit user you know we are hosting a IE Control. So we have to consider all the security vulnerability related to Internet Explorer. Don Park pointed to Zap the Dingbat, that provides a exploit to test Url spoofing. We use our own Url toolbar, so my first idea was: we should be aware of this. But the used control is not under our control, so I really had to test it out. Here is the result:

You see: it displays the full address not cutted after the magic character... Doh!

Technorati tags:  |  |  | 
Friday, December 12, 2003 10:48:41 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [2]  | 
# Wednesday, December 10, 2003
What's wrong with the Process.StartInfo?

If you read the MSDN docs about Process.StartInfo you would assume: nothing is wrong, excellent in controlling the startup of a new process. But how about this line of code:

if(Process.GetCurrentProcess().StartInfo.WindowStyle == ProcessWindowStyle.Minimized) {
  ... // do special things here
}

It will never evaluate to true! The reason is simple: the StartInfo is not populated with the settings of the current running process. So if the documentation states: "Gets or sets the properties to pass to the Start method of the Process" it does not mean: the current process. As long as we have to live with DOT.NET 1.1 the only workaround is to interop with the common API function GetStartupInfo() and corrsponding parameter structure to get the infos we want. But I really like the code above, the more intuitive and managed way. Any MS folks listening?

Technorati tags:  | 
Wednesday, December 10, 2003 9:06:45 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [1]  | 
# Monday, December 08, 2003
We are listening...

Thoemmi.NET posted here today, that he does not feel right. He is right. Outlook 2003 bars are not enough to get the right feeling: so I just added this feature today because it seems to be easy. And yes, it was :-) and it's more powerful than OL2003..., currently only available via GDN source control (build 1.2.0.63 and higher). You can select the new style(s) from the "Feed Details" Tab context menu.

Technorati tags:  |  | 
Monday, December 08, 2003 2:34:24 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [2]  | 
# Saturday, December 06, 2003
Notable II

As I posted here, the new version with the modified UI is now available. The "Update All Feeds" button is back, but the visibility is configurable. The search feature will be further enhanced: currently we search over all items in title, link, subject and content. This will be optional next, also the search method (string compare, regex, or XPath). And not to forgot: searches are persistable in the near future...

Flags will be also enhanced. Stay tuned!

Technorati tags:  |  | 
Saturday, December 06, 2003 8:20:35 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
# Friday, November 28, 2003
Teaser...
Next time we want to publish a new release of RSS Bandit. What do you think, what do you like? Do you want the "Update All Feeds" button back on the main toolbar? Should we provide an option to support also the older W2K style toolbar rendering?

Technorati tags:
Friday, November 28, 2003 10:34:43 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [4]  | 
# Tuesday, November 25, 2003
InternetGetCookie() in .NET
Sometimes there is a need to send cookies over the line on a call to HttpWebRequest.GetResponse(). The documentation about HttpWebRequest.CookieContainer: "... The CookieContainer property provides an instance of the CookieContainer class that contains the cookies associated with this request." That's really nice to have this support already there! But: how I get it setup on the first request? Often users already have a dozen cookies within their temporary internet files folder managed by Internet Explorer. How can I reuse these?
Bad news: there is no managed code support in the .NET Framwork to get them. Good news: we can use the Windows API support provided in wininet.dll to retrieve the cookies: InternetGetCookie(). So we can define the Interop declaration as follows:

[DllImport("wininet.dll", CharSet=CharSet.Auto , SetLastError=true)]
public static extern bool InternetGetCookie (
 
string url, string name, StringBuilder data, ref int dataSize);

That's it. To wrap the call we define a wrapper function:

private static string RetrieveIECookiesForUrl(string url) {
    StringBuilder cookieHeader =
new StringBuilder(new String(' ', 256), 256);
   
int datasize = cookieHeader.Length;
   
if (!InternetGetCookie(url, null, cookieHeader, ref datasize)) {
       
if (datasize < 0) 
           
return String.Empty;
        cookieHeader =
new StringBuilder(datasize); // resize with new datasize
        InternetGetCookie(url,
null, cookieHeader, ref datasize);
   
}
   
return cookieHeader.ToString();
}

OK, now we have the cookie content string, that looks usually like this: "KEY=Value; KEY2=what ever". Now we simply create managed cookies by creating instances of System.Net.Cookie. But stop! Did we really have to parse the cookie content string (aka cookie headers) to create the instances?
Again, good news: no, we did not have to do this. There is already build in support provided by the CookieContainer class we also need to set on the HttpWebRequest! The code:

public static CookieContainer GetCookieContainerForUrl(Uri url) {
    CookieContainer container =
new CookieContainer();
   
string cookieHeaders = RetrieveIECookiesForUrl(url.AbsoluteUri);
   
if (cookieHeaders.Length > 0) {
        try { container.SetCookies(url, cookieHeaders); } catch (CookieException){}
    }
   
return container;
}

Done :-)
Technorati tags:  |  | 
Tuesday, November 25, 2003 11:56:16 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [5]  | 
# Friday, November 14, 2003
Addendum: this.Site.MoveTo("webhost4life")

Attention to all BlogWorks XML users: if you want to migrate to dasBlog, please feel free to contact me for the .NET migration tool. If there are multiple requests I would add the code to the GDN fileshare. Don't reinvent the wheel.

Technorati tags:
Friday, November 14, 2003 12:46:08 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
Notable

Strait adrenaline. Inspired by a TV spot this week I visited the ghostrider site: special care to the trailers! Unbelievable that this is reality, not a stunt! I didn't recommend to drive this style, but you can get the kick... ;-)

Funny e-Mail client. Accidently found IncrediMail. And I thought, only Mac users really have fun with their machines and programs. On my machine I had some trouble importing my contacts and mails from Outlook 2003, it crashs each time I tried, maybe I should give the next Beta a chance.

Technorati tags:  | 
Friday, November 14, 2003 11:31:50 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
Match photos by color scheme

Royalty-free stock photo agency iStockPro has introduced a nifty Browse by Color dialog which lets you find photos that match your layout's color scheme. Neat!
[Jeffrey Zeldman Presents: The Daily Report]

Right, neat! Some examples: sample 1, sample 2.

Technorati tags:  | 
Friday, November 14, 2003 8:28:27 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
# Wednesday, November 12, 2003
no title
... to see, if I can post from w.bloggar also with categories.
Technorati tags:
Wednesday, November 12, 2003 6:03:57 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [4]  | 
# Sunday, November 09, 2003
Now it seems to work somehow
Just testing the mail a blog post feature of dasBlog, if it works, this entry should show up in a few minutes.
Technorati tags:  | 
Sunday, November 09, 2003 3:55:03 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [1]  | 
# Thursday, November 06, 2003
Web Hoster Change, Site moving...
If you got some problems the next few hours/days with this site: I'm about to switch my web host provider from Brinkster (that with ads on the right border), new WebHost4Life (thanks again to Thoemmi.NET).
Technorati tags:
Thursday, November 06, 2003 10:56:28 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
Web Hoster Wechsel
In den nächsten Stunden und Tagen kann es hier zu einigen Unregelmäßigkeiten kommen (Verfügbarkeit, etc.). Bin grad dabei meinen Web Hoster zu wechseln. Alt, derzeit: Brinkster (mit der komischen Werbung rechts), neu WebHost4Life (danke nochmal an Thoemmi.NET).
Technorati tags:
Thursday, November 06, 2003 10:53:00 AM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
# Sunday, November 02, 2003
Wetter per RSS
Hey, cool: die Wettervorhersage per RSS Feed, z.Bsp. für Memmingen [via Schockwellenreiter]
Technorati tags:
Sunday, November 02, 2003 7:39:02 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
Navigation

Like RSS Bandit? Make a donation to help support its development and maintenance. As little as 1€ will help.

Make payments with PayPal - it's fast, free and secure!
On this page....
<December 2003>
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

SUBSCRIBE RSS GeoURL e-mail

Search
Categories
Blogroll
[Feed] Dare Obasanjo
Dare Obasanjo aka Carnage4Life
[Feed] Clemens Vasters
[Feed] Omar Shahine
[Feed] Tom Mertens

newtelligence dasBlog 2.1.8102.813

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

WOT Notar

Join WebHost4Life.com