Posted by

Comments

# Re-enabling user:pass with IE

Saturday, February 07, 2004 10:57 AM by TrackBack

# re: Introduction.

Saturday, February 07, 2004 4:23 PM by Jan

Welcome David! I'm looking forward to read your posts!

# re: Re-Enable user:pass@ IE functionality.

Saturday, February 07, 2004 4:50 PM by Kent Sharkey

While I respect your wanting the user:pass functionality...

Remember that re-enabling it opens you up to the exploit, so please be careful when clicking links on sites that could use it in a less than nice fashion. http://zcat.wired.net.nz/upgrade/ shows a neat use of it (View Source and look at the 'Upgrade here' link to see the joke/spoof)

Also, just to pick nits. From the RFC you show, there are two important lines:
<pre>
3.1. Common Internet Scheme Syntax

While the syntax for the rest of the URL may vary depending on the particular scheme selected
</pre>

<pre>Some schemes (e.g., ftp) allow the
specification of a user name.
</pre>

and the big one is at 3.3. HTTP
<pre>
An HTTP URL takes the form:

http://<host>:<port>/<path>?<searchpart>
</pre>

Notice that the definition of an HTTP URL does not include the user:password combo.

Either way, enjoy

# re: Setting NTFS Permissions with C#

Sunday, February 08, 2004 5:36 AM by Spike

thanks for the code ;-)

# Re-Enable the Authentication Method of IE

Sunday, February 08, 2004 8:21 AM by TrackBack

Re-Enable the Authentication Method of IE

# re: How to Trackback?

Sunday, February 08, 2004 8:45 AM by Scott

"The good news is you do not have anything to do".

You do NOT do anything. If you link to someone a trackback will happen (or be attempted). There is NOTHING for you to do.

-Scott

# re: How to Trackback?

Sunday, February 08, 2004 9:07 AM by David Cumps

Thanks for the comment. But what does all that in 'Advanced Options' actually do then? :)

# re: Re-Enable user:pass@ IE functionality.

Sunday, February 08, 2004 2:17 PM by zcat

They appear to have fixed both the display bug _and_ dissabled Authentication, so re-enabling it shouldn't expose you to the display bug again, but you'll still be exposed to addresses like "microsoft.com{lots-of-random-garbage}@202.49.168.192/".

It's only a matter of time until someone finds -another- bug in IE, and the scammers will get another two-month window to exploit it before MS produces a patch.

The safest way to get that functionality back is to download a 'better' browser..

# re: Re-Enable user:pass@ IE functionality.

Sunday, February 08, 2004 2:25 PM by zcat

Oh, one other thing; in the past people have found registry hacks to change other undesirable behaviour in Windows (Messenger, for example) and some time later a Microsoft patch changes it back. So if you do apply this hack, expect that it will break again with random security updates and you'll have to keep applying it.

Apparently "Trustworthy computing" involves randomly changing the user's desired configuration.

# re: Re-Enable user:pass@ IE functionality.

Sunday, February 08, 2004 4:38 PM by David Cumps

the exposing part to such url is easily spotted, i agree that a normal user doesn't understand it that he arrives at the site after the @, but the ones doing this reghack probably know that :)

# re: Setting NTFS Permissions with C#

Monday, February 09, 2004 5:07 PM by Kit George

As a side note, we are looking at exposing ACLs directly in the base classes for the framewokr, in the future. Keep an eye out for Beta1, and feel free to ask the team any question directly, via the questions page at <a href="http://www.gotdotnet.com/team/clr/bcl/">The BCL WebPage</a>.

# re: Re-Enable user:pass@ IE functionality.

Monday, February 09, 2004 8:57 PM by Batatinha

Well, I followed all the steps, tryed doing it manually and I didnt have my user:pass back. Then I tryed the file you guys have, downloaded it and ran it, upgraded the registry, still didnt work... You guys have any idea what am I doing wrong? I of course rebooted my computer, but it still didnt work... Please help!!!

# re: Re-Enable user:pass@ IE functionality.

Tuesday, February 10, 2004 3:34 PM by David Cumps

If you contact me trough the contact form, or leave your email behind i'll try to help you :)

http://weblogs.asp.net/cumpsd/contact.aspx

# re: DevDays 2004 Belgium - Day 1

Tuesday, February 10, 2004 4:38 PM by Jason Nadal

PDC whidbey is in fact "Version 8.0.30703.27 (m2.030828-2105)"...sounds the same to me.

# re: Re-Enable user:pass@ IE functionality.

Tuesday, February 10, 2004 8:51 PM by Batatinha

W00T, ended up working somehow.... =P Thanks anyways doh! =)

# re: DevDays 2004 Belgium - ASP.NET

Wednesday, February 11, 2004 4:59 AM by Dhoore

seems like fun!!
i wanted to be there too ;)
greets

# re: DevDays 2004 Belgium - ASP.NET

Wednesday, February 11, 2004 6:08 PM by Paschal

David they did the same presentation in Ireland yesterday !
And David Chappell did the same but he wore the Irish football jersey.

I was impressed by Avalon, but it seems to be confirmed by the MS chaps it will be only for Longhorn users. so not sure how we are going to deploy something like this before maybe 2010.

# re: DevDays 2004 Belgium - Day 2 - One API To Rule Them All

Wednesday, February 11, 2004 6:16 PM by Paschal

Sorry I commented on the wrong post :-)

David they did the same presentation in Ireland yesterday !
And David Chappell did the same but he wore the Irish football jersey.

I was impressed by Avalon, but it seems to be confirmed by the MS chaps it will be only for Longhorn users. so not sure how we are going to deploy something like this before maybe 2010.

# .NET for IT Professionals

Thursday, February 12, 2004 4:34 AM by TrackBack

# re: DevDays 2004 Belgium - ASP.NET

Thursday, February 12, 2004 11:17 AM by David Cumps

True, it will only be for Longhorn, other OS's will need Windows Forms still. Too bad, but it's a nice future :)

# re: DevDays 2004 Belgium - Day 2 - One API To Rule Them All

Thursday, February 12, 2004 1:42 PM by Gerd De Bruycker

David,

Now I know whom I took a picture of at the end of the Conference. BTW, very nice overview you wrote about the event. I hope you like it and that we see you next time.

Greetings,

Gerd

# re: DevDays 2004 Belgium - Day 2 - One API To Rule Them All

Thursday, February 12, 2004 2:00 PM by David Cumps

... I'm amazed of you finding my blog and replying :) (in a very positive way ;))

Thanks for taking the picture btw! The batteries lasted just long enough to save it ;)

# re: DevDays 2004 Belgium - Day 2 - One API To Rule Them All

Thursday, February 12, 2004 5:00 PM by Dhoore

nice picture! :p
i think it was very intresting, the next time they organize those devdays, i might go there too
MS seems to have a lot of new facilities developed, that's kinda cool :p

greets,

Dhoore

# re: Orkut - An Overview

Thursday, February 12, 2004 5:12 PM by Dhoore

ja tis gelik nog redelijk cool en al
je moet wel teveel invullen vind ik :p
kzijn da gestopt na een tijdje, khad geen zin meer ;)

greets

# re: DevDays 2004 Belgium - ASP.NET

Friday, February 13, 2004 2:24 AM by Razor

I agree we have to wait for Longhorn for a while, but it's nice to know that it's coming.

# re: Javascript Open Directory Image Viewer

Friday, February 13, 2004 7:13 AM by Randy

Nice update David. It's really cool :) and very handy.

It's indeed very annoying to click on every picture.
I love this script :d

# David's pictures from DevDays

Friday, February 13, 2004 7:14 AM by TrackBack

David's pictures from DevDays

# re: Javascript Open Directory Image Viewer

Friday, February 13, 2004 10:12 AM by Dhoore

yeah it's kinda cool, except when there are pictures with an extension like .JPG (notice the uppercase), then those pictures aren't shown, but it's still good thou (y)

greets

# re: Javascript Open Directory Image Viewer

Friday, February 13, 2004 10:35 AM by David Cumps

Just add an or in the if statement :p
Or convert to url to lowercase first

# Microsoft Belgium Developer & IT Pro Days 2004

Sunday, February 15, 2004 12:35 PM by TrackBack

Microsoft Belgium Developer & IT Pro Days 2004

# re: Longhorn installation failing - 'An error occurred while copying files'

Monday, February 16, 2004 11:56 AM by Thomas Drolshagen

Use the lh_usa_4051_x86fre_pro.iso image instead of the
lh_usa_4051_x86chk_pro.iso image.

hth,
thomas

# re: Longhorn installation failing - 'An error occurred while copying files'

Monday, February 16, 2004 12:02 PM by David Cumps

I am using the lh_usa_4051_x86fre_pro.iso image :(

# re: Longhorn installation failing - 'An error occurred while copying files'

Monday, February 16, 2004 12:18 PM by R


Maybe the CD is dodgy?

# re: Javascript Open Directory Image Viewer

Monday, February 16, 2004 12:18 PM by Davy

How to get this working?
I cant get it working..
I want to list directory information of my /images for example.
Wanna show the links to the image + creation date + file size.. But don't know howto :s
Ideas?

# re: Longhorn installation failing - 'An error occurred while copying files'

Monday, February 16, 2004 12:24 PM by David Cumps

Burned it twice already, without result. Hopefully it's not the .iso cos that's another download then (bandwidth usage limit's here)

# re: Javascript Open Directory Image Viewer

Monday, February 16, 2004 12:26 PM by David Cumps

First of all, this is ment for open dirs like: http://users.pandora.be/tr/ms/

You add a new url to your favourites, and in the 'Url' field you pase the chunk of javascript.

Now, when you're on an open dir, click the favourite and it'll draw a new page with all the images on that page. Without you having to click each one of them.

This isn't really an info tool or something, it won't give you links, creation date or file size. It's more of a lazy tool :)

If it doesn't work when you click the favourite the first time, go back and retry, sometimes it seems to fail, but it works :)

# re: Longhorn installation failing - 'An error occurred while copying files'

Monday, February 16, 2004 2:20 PM by Will

Hey. I got the same thing. I'm installing lh_usa_4051_x86fre_pro.iso downloaded today (2/16/200). I'm using the ISO capture from VirtualPC. Bummer.

# re: Longhorn installation failing - 'An error occurred while copying files'

Monday, February 16, 2004 2:49 PM by Will

OOPS. I left the installer running over lunch and it seems to be progressing (although it is going to take a lot longer than 14 minutes :) ). Sorry about that.

# re: Longhorn installation failing - 'An error occurred while copying files'

Monday, February 16, 2004 2:52 PM by David Cumps

Yes, if it continues it takes about 5 hours (noted on other blogs). But the problem is the error popping up on :(

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Tuesday, February 17, 2004 2:54 PM by Bertg

Ture,

I wonder who the stupid fuck is in SP.A/Spirit who said that...

All thos idiotic litle things make the good BIG things (that no1 talks about) forgotten...

And there comes the Extremist partys laughing (i guess tomorrow) cause they will have read reactions on the net ... :(

Politicians should know what they say...

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Tuesday, February 17, 2004 4:18 PM by Dennis

Linux runs on old, slow hardware with better performance than Windows. That's why it "lasts longer."

Financial diff comes from case studies. "I was spending $X with Microsoft. Now it's $Y with Linux." Tends to be a big difference.

I'm a .Net developer but I can see their point.

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Tuesday, February 17, 2004 4:40 PM by David Cumps

But with what do you compare it with? Yes you can run linux on older hardware as a router or server, standing in console prompt the whole day. But when you're starting to use X, you need some decent hardware as well.

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Wednesday, February 18, 2004 2:01 AM by Jan

Dennis, you can run Windows 95 on a 386 with 32MB of memory, no problem! I'm pretty sure if you want to run the latest version of a Linux distro with the latest version of an office suite that you'll need a pretty beefed pc (been there done that).

A small note regarding this topic (from a developer point of view): increasing computer power is our friend (quote from Steve Riley, I thought). Fast computers enable us to write great software. VS.NET 2003 offers a much greater user experience than VB 1 for example because I like background compilation, intellisense, dynamic help (in fact I don't like dynamic help but you get the point), ... all these features improve my productivity.

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Wednesday, February 18, 2004 6:40 AM by SBC

LOL! It proves once again that politicians should stay out of technology.. aahh.. ignorance is bliss.. :-)

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Thursday, February 19, 2004 5:05 PM by Wouter Verhoeven

Aah I can tell. You never *truly* ran Linux before. Did you?

Yeah yeah, I know, you probably installed some Red Hat or Mandrake distro. It was a fiasco. It was different. You didn't understand anything about Unix philosophy. You probably couldn't get your osbscure, fancy scanner to work properly and concluded that Linux is crap. Simply put. You went haywire.

Let me put it this way. If you buy a car, you want choice right? Well if you buy a Microsoft car, it's *always* the expensive car. It's always the same company that does the maintenance. You are *obligated* to buy the fancy addons, otherwise your engine just stops working. And from the moment you bought that shiny MS car, you are doomed to drive MS forever.

That's why I drive Linux.
Lot's of models. It's as expensive as you choose. It runs excellent. Every model has a power engine. It just keeps on running. Maintenance is a breeze.

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Friday, February 20, 2004 7:07 AM by David Cumps

Acutally I run gentoo on my laptop... It's different yes, notice I don't say it's bad.

And i know the philosophy, yes

But what I don't like is bad arguments. I can do the win-linux discussion, if it's done with decent arguments.

One of my longest holding opinions actually is to use win for clients and linux for servers. Because an end-user (when i'm talking customers here, not business pcs) doesn't know how to recompile his kernel to get usb support or to get his new hp 3500c scanner to work without too much hasle.

# re: Student Evangelist - Longhorn Screenies

Saturday, February 21, 2004 6:53 PM by Bertg

nice look, altough it could be touch lighter :)

# re: I'm On Longhorn - Download Manager == Evil!

Saturday, February 21, 2004 9:11 PM by Hendrik

Also using MA3D?!

# re: I'm On Longhorn - Download Manager == Evil!

Sunday, February 22, 2004 5:33 AM by David Cumps

Yup, MA3D. You too?

# re: Visual Studio.NET and PHP Coloring

Sunday, February 22, 2004 9:42 AM by Dhoore

nice tool! it's very usefull, thanks!

# re: Student Evangelist - Longhorn Screenies

Sunday, February 22, 2004 10:04 AM by Dhoore

there's a lot of black in the default look :)
but that's doesn't matter, i kinda like black :p

# PHP syntax highlighting in VS.Net

Sunday, February 22, 2004 5:48 PM by TrackBack

PHP syntax highlighting in VS.Net

# PHP Syntax Coloring with Visual Studio.NET

Sunday, February 22, 2004 7:12 PM by TrackBack

PHP Syntax Coloring with Visual Studio.NET

# re: Visual Studio.NET and PHP Coloring

Sunday, February 22, 2004 7:14 PM by CyberWolf

very useful
thanks from another php coder ;)

# PHP Code highlighting in Visual Studio .NET

Monday, February 23, 2004 7:59 AM by TrackBack

PHP Code highlighting in Visual Studio .NET

# re: XAML - Irregular Controls

Monday, February 23, 2004 10:41 AM by Joe Beda

Unfortunately, David, we will probably not be able to do the exact layout that you have above in XAML in v1. The reason is that we only support affine 2D transforms on controls. This means that you should be able to skew, but you can't do any perspective transforms. Another way to think about it is that all parallel lines are still parallel after an affine transform.

Perhaps one of these days I'll post on my blog about that decision, but in the meantime, you can do a lot with a simple skew (as you saw from the demos at the PDC).

As to not being able to put a skew on a listbox -- that sounds like a bug to me.

Joe

# re: Visual Studio.NET and PHP Coloring

Monday, February 23, 2004 10:47 AM by Anonymus333

Thanx to another "open" programmer...

# re: XAML - Irregular Controls

Monday, February 23, 2004 5:09 PM by Joe Beda

I forwarded a link to your article around and one of our devs tried putting a skew on a listbox on the latest and greatest bits. Everything looks good. So, as of right now, it doesn't look like there is a bug here. :)

Joe

# re: XAML - Irregular Controls

Monday, February 23, 2004 6:03 PM by David Cumps

I added 2 gifs to give you an idea of what it's doing here :)

# re: XAML - Irregular Controls

Tuesday, February 24, 2004 1:33 PM by Joe Beda

I've tried out your XAML with the latest and greatest and the bug seems to have gone away. Here is a link:

http://www.eightypercent.net/Archive/2004/02/24.html#a167

Joe

# Skewed view

Tuesday, February 24, 2004 2:52 PM by TrackBack

Skewed view

# re: XAML - Irregular Controls

Tuesday, February 24, 2004 5:14 PM by Dhoore

I kinda like the colors, they are indeed kiddie, but i love the buttons!
nice work David ;)

# re: A Console IRC Bot.

Tuesday, February 24, 2004 5:26 PM by Dhoore

well this is some very nice source code you posted here.
i think a lot of people can learn from it
thanks!

# re: Basic C# Examples

Tuesday, February 24, 2004 5:28 PM by Dhoore

i think it's a very good idea, in this way we (= fellow students and other persons) can learn from examples, which is, I think, the best way to learn something

# re: Basic C# Examples

Tuesday, February 24, 2004 5:30 PM by Spike

Well, what do you think I think of this plan? :-p

It's a genious idea,...

Didn't I tell someone It would be cool to make an IRC-bot with C# ;-), just kidding.

If I can find some new subjects to work on, and subjects that aren't too hard, because, I can't ask you to write an Operating System, or could I :-p...?


(This isn't necessary, there are plenty of OS'es, and plenty left to try)

# re: A Console IRC Bot.

Tuesday, February 24, 2004 5:32 PM by Spike

Muchos graçias senior,

I'll check this source out, but It won't be for today, maybe in a couple of hours, (tomorrow :-p)...

# re: Basic C# Examples

Tuesday, February 24, 2004 8:19 PM by Andy Smith

I know this is kind of at right angles to the point of the post, but if you want a real IRC lib for c#, check out my Nebo irc lib on the gotdotnet workspaces.
http://workspaces.gotdotnet.com/nebo
(at the moment, gotdotnet seems to be down, check back when you can)

# Take Outs: The Digital Doggy Bag of Blog Bits for 24 February 2004

Wednesday, February 25, 2004 5:55 AM by TrackBack

Take Outs: The Digital Doggy Bag of Blog Bits for 24 February 2004

# Non-Rectangular Forms with .NET

Wednesday, February 25, 2004 10:08 AM by TrackBack

Non-Rectangular Forms with .NET

# re: Non-Rectangular Form

Wednesday, February 25, 2004 12:39 PM by Dhoore

cool! it's kinda funny, and strange :s ;)

# re: Non-Rectangular Form

Wednesday, February 25, 2004 2:45 PM by Stijn

Nice, thx voor the answer...
will test is someday :)

# re: Non-Rectangular Forms - C#

Wednesday, February 25, 2004 4:08 PM by Stefano Demiliani

Cool article!

# re: Setting NTFS Permissions with C#

Thursday, February 26, 2004 12:09 AM by Aero

Thanks, this was just what I was looking for.
Doesn't look difficult after all.

# re: Non-Rectangular Forms - C#

Thursday, February 26, 2004 5:06 PM by Bertg

I think this 'll be handy :)

# re: Non-Rectangular Form

Thursday, February 26, 2004 5:12 PM by Bertg

nice, verry nice :)

but can't the picture be included in the exe-file?

-bert-

# re: Visual Studio.NET and PHP Coloring

Thursday, February 26, 2004 5:46 PM by Bertg

hmmm,
I tought i found that one a while back :p

still waiting for the intellisense plugin for PHP :)

# re: C# Script

Friday, February 27, 2004 4:44 AM by bws

Real well done :) I Like it. It has been very usefull

# re: C# Script

Friday, February 27, 2004 7:01 AM by Dhoore

it's very nice, this could by usefull if you want to test small files, cool :)

# Forms non rettangolari

Friday, February 27, 2004 8:05 AM by TrackBack

Forms non rettangolari

# re: C# Script

Friday, February 27, 2004 8:08 AM by Bleyke

Very nice one (y), good work David. I will test it immediately.

# SnippetCompiler

Friday, February 27, 2004 8:23 AM by Fabrice

Looks like SnippetCompiler:
http://www.sliver.com/dotnet/SnippetCompiler/

# re: C# Script

Friday, February 27, 2004 8:35 AM by David Cumps

Thanks for the link! Going to check it out this afternoon, looks wonderfull :)

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 11:11 AM by Dhoore

omg, this is really strange!!
when i do this test, i see lots of squares like this: ????????
(dunno if that worked)
so it's not really invisible but still very strange

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 11:15 AM by NibbleR

in notepad it are squars, when I copied it to here it were strange Chinese signs. After posting it became ????????

hehe :)

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 1:32 PM by Bobfox

another strange one, if I create the file with UltraEdit, and then load it in Notepad, I get the same squares. If I load it in UltraEdit, it's OK.

???

Robert

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 1:53 PM by Bertg

Maby easter egg :p

# re: C#-Script

Friday, February 27, 2004 1:54 PM by Bertg

Hmmm, this could be handy :)

cya later projects :p

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 2:40 PM by Raj


I believe it is an encoding bug of some kind. If you go to a command prompt and type

> EDIT myscrewedupfile.txt

you will be able to see the text.

Here is another funny thing.
Close the command prompt. Close the text file if you still have it opened.

1) Double click on the myscrewedupfile.txt
It opens in notepad with the invisible text
Close notepad

2) Use a hex editor (I used this one: http://www.hhdsoftware.com/)
and open this same text file

3) Leaving the file open in hex editor, open it in notepad - volia - you see the text!

weird stuff.

# re: Including Resources in .exe

Friday, February 27, 2004 6:02 PM by Bertg

Thankyouverrymutch!

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 6:15 PM by bas westerbaan

Well.. it is just an encoding issue. Nothing more :)
I think it is stupid from notepad that it even has encoding.
It is time for a new 'notepad' with only plain dos text
in c++ for speed off course.
Interested?

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 6:38 PM by bas westerbaan

OK,
here is my little notepad replacement.. made in mfc.. Got one prob.. I dont know how to change the font to courier new.. anyone knows.. please mail me @ wnz[at]w-nz.com

simplepad
http://files.w-nz.com/show.php?id=15&skin=default

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 6:38 PM by bas westerbaan

BTW, it works with that little file

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 6:46 PM by David Cumps

Download link is broken ;)

Notepad can have encoding, but I'm wondering if it was a mistake to set the savind encoding different from the default loading one.

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 6:56 PM by bas westerbaan

hu? Damn.. please give me ya email and i`ll send it manually.. strange.. i`ll take a look to the source

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 7:01 PM by bas westerbaan

http://files.w-nz.com/show.php?id=16&skin=default

this one should work

(server wouldnt let you download an .exe)

# re: Notepad bug? Encoding issue?

Friday, February 27, 2004 8:15 PM by David Cumps

That works :) not that I really need a notepad replacement, got it in my shellextension ;)

Just hope someone will reply with the "why" notepad does this :)

# Just a thought..

Saturday, February 28, 2004 1:19 PM by Gilad Goldberg

Why convert the hashed value to a string? It is still storable - be it a binary field in a DB, or a binary file :)

# re: Create Hashes - MD5, SHA1, SHA256, SHA384, SHA512

Saturday, February 28, 2004 1:32 PM by Dhoore

nice done, yeah in php it's indeed easier :)

# re: Create Hashes - MD5, SHA1, SHA256, SHA384, SHA512

Saturday, February 28, 2004 2:38 PM by David Cumps

Why, well, to make it resemble the PHP function :)

But also, I don't know if cookies can store binary data? But I'm sure they can work with strings, so to be 'universal' (read: in my projects) I made it as a string. Because you kinda have a guarantee that you always can get away with strings. And I don't know if you have the same as a binary array?

If you have the same garantee, than I'd like to know :) Because I create my classes in image of what I know at that time, which can change in the future.

# re: Notepad bug? Encoding issue?

Saturday, February 28, 2004 5:28 PM by Bart De Smet

Weird problem indeed. When you open the file using UTF-8 encoding, nothing goes wrong, but when you open it using the default ASCII, it goes wrong. :-(

# re: MD5, SHA1, SHA256, SHA384, SHA512 Hash class article.

Sunday, February 29, 2004 6:55 AM by Bleyke

we use it in our zosa project and it rocks

# re: Notepad bug? Encoding issue?

Sunday, February 29, 2004 6:18 PM by dotnetjunkie

this is why:
because of the encoding issue, notepad sees the character set as Chinese, which needs the font 'SimSun", and if that's not present on your system, or you're using another font (as in notepad), you get the empty space or squares...

Try copying and pasting the text in Wordpad, and you'll see that the font dropdown box shows the font SimSun.

# re: MD5, SHA1, SHA256, SHA384, SHA512 Hash class article.

Sunday, February 29, 2004 8:06 PM by CyberWolf

gonna use it for asp.net project
thanks alot mister elite coder ;) (in a positive meaning that is :p)

# re: Non-Rectangular Form

Monday, March 01, 2004 7:26 AM by Roberto Alicata

I tested the project you uploaded under Windows2000 but it works in a strange way. The region is correct but the backgroung image of the form isn't align with the region, so i can see the purple pixel around the bitmap.

# re: Non-Rectangular Form

Monday, March 01, 2004 7:53 AM by David Cumps

The purple border might be a problem on my side, as that purple isn't like the filling purple :)

I created the image in Photoshop, and it must have blended the borders a bit with the purper, that's why they didn't get marked as transparant.

If you would make sure all purple really IS #ff00ff purple then it would be gone.

Does this help you?

# re: Non-Rectangular Form

Tuesday, March 02, 2004 7:21 AM by Roberto Alicata

ehmm no :)
the problem isn't about few pixels around the image, but the background is shifted down about 50 px, i think this is the vertical space of the caption or not?

# re: Non-Rectangular Form

Tuesday, March 02, 2004 7:34 AM by Roberto Alicata

after this line:
this.Region = RegionConvert.ConvertFromTransparentBitmap(imageBackground, transparentColor);

I must add this one:

this.Region.Translate(SystemInformation.FrameBorderSize.Width - 1,SystemInformation.CaptionHeight + SystemInformation.FrameBorderSize.Height - 1 );

Dont ask me why, but it works fine now :) :)

# re: Non-Rectangular Form

Tuesday, March 02, 2004 1:32 PM by David Cumps

Did you forget this step?
"Now we go to our Form, you'll have to set the FormBorderStyle property to None."

Otherwise you indeed have that shift because the caption gets drawn. Easier with a property then by code ;)

# Take Outs: The Digital Doggy Bag of Blog Bits for 29 February 2004

Tuesday, March 02, 2004 5:32 PM by TrackBack

Take Outs: The Digital Doggy Bag of Blog Bits for 29 February 2004

# re: C#-Script

Tuesday, March 02, 2004 6:07 PM by frihani

# re: Non-Rectangular Form

Friday, March 05, 2004 6:58 AM by Roberto Alicata

I used your uploaded project and it has the FormBorderStyle property already set to None.

# re: Non-Rectangular Form

Friday, March 05, 2004 9:04 AM by David Cumps

Strange...
When i put your line in my project the image gets shifted higher then the region.

But when I set the FormBorderStyle to FixedSingle it works again.

It could be a version issue?

Anyway, it works for you, that's what counts :)

# re: .reg to re-enable user:pass in IE

Friday, March 05, 2004 6:05 PM by mike h

thx

# re: Internet Explorer is getting worse day by day..

Saturday, March 06, 2004 6:05 AM by TrackBack

# re: MD5, SHA1, SHA256, SHA384, SHA512 Hash class article.

Sunday, March 07, 2004 5:49 AM by Spike

hmm, Isn't this something we use in Zosa ;-)

Keep up the good work David and tnx for the code, I'am sure I can use it for other projects then Zosa too.

# re: Create Hashes - MD5, SHA1, SHA256, SHA384, SHA512

Monday, March 08, 2004 11:37 AM by Tom Mertens

There is actually a static method in ASP.NET's form authentication class that allows you to do it somewhat easier. Have a look at "FormsAuthentication.HashPasswordForStoringInConfigFile". It takes two arguments: the password and a string containing "md5" or "sha1" which states the hashing algorithm to use. But I must admit that the method's name in PHP is somewhat shorter. :)
More info at http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebSecurityFormsAuthenticationClassHashPasswordForStoringInConfigFileTopic.asp

# re: Create Hashes - MD5, SHA1, SHA256, SHA384, SHA512

Monday, March 08, 2004 1:18 PM by David Cumps

Thanks for pointing that out!

I'll remember that when I need md5/sha1. In our current project I went a bit paranoid and used sha512 ;)

# Using .NET Cryptographic Hash Classes

Saturday, March 13, 2004 5:12 PM by TrackBack

Using .NET Cryptographic Hash Classes

# re: Visual Studio.NET and PHP Coloring

Sunday, March 14, 2004 5:34 AM by Rock

Rock

# re: Notepad bug? Encoding issue?

Sunday, March 14, 2004 11:11 AM by David Cumps

Not that I know of, how to make them aware? or how to know if they are :)

# re: Birthday - 20 years - Telnet ChatServer

Monday, March 15, 2004 3:49 AM by Jan

Happy birthday David!

# re: Birthday - 20 years - Telnet ChatServer

Monday, March 15, 2004 4:33 AM by Sven Cipido

Happy Birthday David !

I'm curious about the other two articles.

# re: Birthday - 20 years - Telnet ChatServer

Monday, March 15, 2004 5:39 AM by Tom Mertens

Congratulations!

# re: Birthday - 20 years - Telnet ChatServer

Monday, March 15, 2004 7:10 AM by Dhoore

happy birthday

# re: Birthday - 20 years - Telnet ChatServer

Monday, March 15, 2004 9:52 AM by Bertg

Yolly good birthday today :)
Good yob in not dieing :p

well euh... that is what a birthday is no?

# re: Telnet ChatServer

Monday, March 15, 2004 9:58 AM by Bertg

Okay, an other thing to study :p

# re: Outlook and C# - Gather Addresses

Monday, March 15, 2004 10:05 AM by Bertg

Thats an other thing I can study...
so euh... format... XP? something wrong?

# re: Outlook and C# - Gather Addresses

Monday, March 15, 2004 11:57 AM by David Cumps

Nah, computer at my parents, took about 15 minutes after logon before all their programs got loaded, and all programs were installed right in the root of the drive :'(

So it's time for XP now, more dummy proof, and I've been playing with group policies now to restrict a lot of things :) (Annoying thing, when you forbid access to the Control Panel, it's forbidden for everyone, even for the administrator, weird)

# re: Outlook and C# - Gather Addresses

Monday, March 15, 2004 2:33 PM by Bertg

LOLz :p

# Take Outs for 15 March 2004

Monday, March 15, 2004 5:29 PM by TrackBack

You have been Taken Out! Thanks for the post.

# re: A Console IRC Bot.

Tuesday, March 16, 2004 8:11 AM by Steve Tibbett

Thanks for the source code, I'm using it for some stuff I'm playing with. So far it's working perfectly.

# re: Birthday - 20 years - Telnet ChatServer

Tuesday, March 16, 2004 9:47 AM by Meurice

happy birthday

# re: Setting NTFS Permissions with C#

Wednesday, March 17, 2004 11:19 AM by Tom Jones

There is no Microsoft.Win32.Security package

# re: Setting NTFS Permissions with C#

Wednesday, March 17, 2004 3:11 PM by David Cumps

If you would download the source you'd see what it is :)

The GotDotNet sample has that namespace for it's class.

# re: Setting NTFS Permissions with C#

Wednesday, March 17, 2004 3:35 PM by Tom Jones

... right, sorry/thanks.

# re: Basic C# Examples

Friday, March 19, 2004 7:42 AM by PAVAN

WELCOME

# Labo.net

Friday, March 19, 2004 2:08 PM by TrackBack

Labo.net

# re: Basic C# Examples

Saturday, March 20, 2004 9:52 AM by bozhan

C# is for mental ill peoples:)
better leave it..
it will die by itself soon

# re: Basic C# Examples

Saturday, March 20, 2004 10:23 AM by David Cumps

some people still believe in fairy tales ;)

# re: Visual Studio.NET and PHP Coloring

Saturday, March 20, 2004 3:50 PM by edgecrush3r

WHhhhhaaaa.. YOU SAVED MY DAY !!!!! ") Thank you God,!!

# re: Visual Studio.NET and PHP Coloring

Saturday, March 20, 2004 7:41 PM by Mike Knebel

Thank You VERY MUCH!

# re: Ancient Technologies - RPG & AS/400

Sunday, March 21, 2004 8:51 AM by Sven Cipido

This looks great. I know AS/400 is used a lot in the business world, and yes I know how difficult it is to program the AS/400. I've done it for 4 years.

I don't know if you already know, but Microsoft has also a solution to use the AS/400 as back-end. it's named Host Integration Server 2004 (HIS). At this moment it's still in Beta 2. Whit HIS, you can call RPG programs from withing VS.net and visa versa;

I have used HIS now for a few months, and we're implementing this server for a customer. The big advantage is that you can leave all your business logic and the database site on the AS/400. You just have to write an interface between the two in HIS and the front end in f.e. ASP.Net.

You can find some information, troubles and there solution on my blog.

# re: Ancient Technologies - RPG & AS/400

Sunday, March 21, 2004 9:12 AM by David Cumps

Didn't knew that :) Thanks for mentioning, going to check it out once. (Althou I really hope to stay away from any AS/400's in the future :p)

# re: Ancient Technologies - RPG & AS/400

Sunday, March 21, 2004 9:24 AM by Guest

yeap! RPG! i think it stands for Role Playing Games.....:p

# re: Ancient Technologies - RPG & AS/400

Sunday, March 21, 2004 9:37 AM by denny

RPG

Really
Painfull
&
Gruesome

:-)

# re: Differences between PHP and ASP.NET

Sunday, March 21, 2004 11:45 AM by Gareth

Sorry, where's the asp.net?

# re: Ancient Technologies - RPG & AS/400

Sunday, March 21, 2004 12:28 PM by Patrick Verbruggen

Do solutions like the one you described still happen? Oh YES, they do. Lots of them. A large number of SMEs (or KMOs as we know them in Belgium) still run AS/400s as their mission critical system (which is not such a bad idea: they are *very* dependable machines!)

I haven't built such a solution myself, but a fair number of my colleageus @ Real Software have built (and are sometimes still building) them.

# Take Outs for 21 March 2004.

Sunday, March 21, 2004 1:23 PM by TrackBack

Take Outs for 21 March 2004.

# re: Differences between PHP and ASP.NET

Sunday, March 21, 2004 2:40 PM by David Cumps

ASP.NET is just a 'platform', you have an ASP.NET application. You can use C#, VB.NET, COBOL.NET in your ASP.NET app, here I'm using C#. So it would make sense to explain basics C#.

PHP is a language, ASP.NET isn't. This person wanted to switch from PHP to ASP.NET using C#, so the answers to his questions made it possibile to create an ASP.NET app with C#. It's a very basic comparision between how you do something in PHP, and how you would do it using C# (in creating an ASP.NET app)

But yes, my mind was set on the ASP.NET because it was a reply in the Getting Started part of the ASP.NET Forums. But you could classify it under basic C# as well.

# re: Ancient Technologies - RPG & AS/400

Sunday, March 21, 2004 2:42 PM by David Cumps

Ouch, I hope their dev environments are better then what I went trough when creating this. Maybe something to do with the academic environment that doesn't use tools ;)

# re: Differences between PHP and ASP.NET

Sunday, March 21, 2004 5:57 PM by Jerry Pisk

String literals starting with @ are not string where you don't have to escape special characters, they are strings where you can't escape those. Don't have to would mean that you can, but don't have to if you don't want to but that's not how @ strings work. @ just ignore standard escape sequences, \ is considered a literal \ character, not an escape sequence mark. You cannot use escape sequences at all in @ strings. If you want to include a new line character in your string you can't use @ literal.

# re: Hardware lasts longer under Linux - or how politics don't have a clue.

Sunday, March 21, 2004 6:14 PM by NibbleR

I'm not quiet impressed that Spirit has launched this suggestion. The crazier the better is their spirit. You must know the SPA are in favour of everything that has to do with the word "free", and that's why they probably want to use Linux. Nobody of spa/spirit has probably already used Linux, and I'm sure their emailclient is Outlook, their spreadsheet Word and they play Patience.

It must have happened like this: some geezer entered their office and said: "look what I have: Linux, an operating system like Windows, and it's free!", Steve immediatly fell of his chair, and Bert raised his eyebrows and started crying. Oh, and the thing about Linux being better for your hardware, that's only because Bert gets furious when Windows crashes and then he smacks his computer all the time...

# re: Differences between PHP and ASP.NET

Sunday, March 21, 2004 11:43 PM by Justin Rogers

Strings are not stored the way you mention in your post. They are specifically stored with at least an array length, string length, and an array of WCHAR. ArrayLength can be larger than StringLength and there is a null terminating character applied to the end, so at least that much was correct. Strings have far more overhead than a simple extra WCHAR....

DWORD m_ArrayLength;
DWORD m_StringLength;
WCHAR m_Characters[0];

# re: Differences between PHP and ASP.NET

Monday, March 22, 2004 7:39 AM by David Cumps

Jerry Pisk: That's what I ment, yes. I'm not a native English speaker, but I did mention it was seen as a literal and without escaping. :)

Justin Rogers: Ok, didn't knew all of that. Only wanted to make clear that a string is different from a char, and with all the extra info you gave it's even more obvious :)

# re: Noticed on MSDN

Monday, March 22, 2004 8:46 AM by Jan

Congrats! Already a FBB (Famous Belgian Blogger)! ;-)

# re: Noticed on MSDN

Monday, March 22, 2004 12:38 PM by Sven Cipido

we will go for a long time, walk and run. I'm sure about that ;-)

# re: Noticed on MSDN

Monday, March 22, 2004 12:59 PM by James Crowley

Congrats David :)

# re: Visual Studio.NET and PHP Coloring - Revisted

Monday, March 22, 2004 1:55 PM by Bertg

maby I'll try it again,
previous version wasn't that good...

# re: Ancient Technologies - RPG & AS/400

Monday, March 22, 2004 1:55 PM by Bertg

Taking notes...
could use it soon :p

# re: Differences between PHP and ASP.NET

Monday, March 22, 2004 2:01 PM by Bertg

php,
you can fit "anything" in a var..
string, int, char :)

C#
a var can only contain one type of data-struct, no?

# re: Noticed on MSDN

Monday, March 22, 2004 2:01 PM by Bertg

You go girl!
boy...

# re: Differences between PHP and ASP.NET

Monday, March 22, 2004 2:09 PM by David Cumps

That's what ment by loosly typed vs strongly typed.

C# is strongly typed, everything is of a certain type.

In php it's loosly, it can be anything as you say. Just like VB6 supports the Variant type and also doesn't require to declare variables (when you work with Option Strict)

# re: Setting NTFS Permissions with C#

Tuesday, March 23, 2004 7:49 AM by manish gupta

nice article,it quench my programming hurdel....

# re: @-notation was never legal in HTTP URLs anyway

Tuesday, March 23, 2004 8:23 AM by TrackBack

# re: Microsoft Convention - Belgium

Tuesday, March 23, 2004 5:51 PM by denny

Hmmm..... kinda creepy the look of "Microsoft" behind *BARS*

with all the lawsuites ms is dealing with ..... just kinda a funny / hinky vibe with the bars...

# Some files come up strange in Notepad

Wednesday, March 24, 2004 4:01 AM by TrackBack

Notepad has to guess the encoding and can be tricked into guessing wrong.

# re: Microsoft Convention - Belgium

Wednesday, March 24, 2004 4:54 AM by Bertg

you forgot to mention me :p

# re: Telnet ChatServer

Wednesday, March 24, 2004 1:14 PM by Nate

You do know that the Telnet is a defined standard. You can look up the RFCs. This is nice little chat program, but it is not telnet.

# re: Telnet ChatServer

Wednesday, March 24, 2004 2:20 PM by David Cumps

Yes, ofcourse, I should've chosen a better name. Sorry, what I really ment is that it's a small app listening on a port where you could use telnet to easily access it.

My bad. I'll add it at the top of the article.

# re: Small Console ChatServer

Wednesday, March 24, 2004 2:38 PM by David Cumps

Ok, I updated the title and comments, it's now Small Console ChatServer :) and you can telnet to it ;)

# re: Notepad bug? Encoding issue?

Wednesday, March 24, 2004 7:36 PM by Norman Diamond

I don't have SimSun or any other Chinese font, so Notepad must be substituting a Japanese font. But no matter what encoding Notepad guessed, it isn't a Japanese encoding. The display consists of:
a full-width Kanji character
a half-width black rectangle
three full-width Kanji characters
a half-width black rectangle
a full-width Kanji character
a half-width black rectangle

The half-width black rectangles are the same as Notepad normally displays for a single byte value which is neither a valid single-byte character nor the first byte of a valid double-byte character.

# re: Notepad bug? Encoding issue?

Thursday, March 25, 2004 2:52 PM by Sikko2go

It's not really an 'issue'. It's just that Notepad is not capable of displaying all kinds of Unicode variants
See for more info http://blogs.msdn.com/oldnewthing/archive/2004/03/24/95235.aspx

# re: Notepad bug? Encoding issue?

Thursday, March 25, 2004 3:21 PM by David Cumps

Checked that, already replied there ;)
Tried adding it as a trackback, didn't work for some reason when I tried. Will update my post with the url :)

# re: Notepad bug? Encoding issue?

Thursday, March 25, 2004 8:11 PM by Norman Diamond

3/25/2004 8:52 PM Sikko2go:

> It's not really an 'issue'. It's just that Notepad is not capable of
> displaying all kinds of Unicode variants

It is an issue. Notepad isn't displaying a file's contents that are perfectly well encoded in Windows's main, system, default code page. In Japanese Windows systems this is code page 932 (Shift-JIS), set by default at the beginning of the install process, and rarely changed (I didn't change it). In US Windows systems I thought it would be either code page 437 or 850, but someone told me it's something different (without saying which one), but still, surely it gets set by default at the beginning of the install process and most US users don't change it. When Notepad can't even display those files correctly, Unicode variants are not to blame.

# re: Outlook and C# - Gather Addresses

Friday, March 26, 2004 6:21 AM by Enrique

Hi, interesting article, thanks.

Only a question, please.
I need access email addresses of an Distribution List, in Public Folders/All Public Folders/COMPANY Contacts/MyDistributionList.

I use Outlook 2003, but I have many problems. Some suggestion ?

Thanks.

Greetings.

ekiquenet@yahoo.es

# re: Outlook and C# - Gather Addresses

Friday, March 26, 2004 8:04 AM by David Cumps

Check this for info on distrubution lists:
http://support.microsoft.com/?kbid=313797

It provides VB.NET code thou

# re: Microsoft Convention - Belgium

Friday, March 26, 2004 11:47 AM by sharare

one word ...tech guru :)....here is great ")...The whole secret of the teacher's force lies in the conviction that man are convertible.

# re: Microsoft Convention - Belgium

Friday, March 26, 2004 11:55 AM by David Cumps

But the conversion can take a long long time :)

# re: MD5, SHA1, SHA256, SHA384, SHA512 Hash class article.

Saturday, March 27, 2004 2:56 AM by TrackBack

# re: Outlook and C# - Gather Addresses

Saturday, March 27, 2004 7:19 AM by Newman

good idea

# re: MD5, SHA1, SHA256, SHA384, SHA512 Hash class article.

Saturday, March 27, 2004 7:22 AM by Newman

how to use them

somebody can give me exmples,

thank!

newman0708@yahoo.com.cn

# C# Script

Saturday, March 27, 2004 7:55 AM by Newman0708

good work,

very nice code!

# re: MD5, SHA1, SHA256, SHA384, SHA512 Hash class article.

Saturday, March 27, 2004 8:56 AM by David Cumps

Look at http://weblogs.asp.net/cumpsd/articles/81507.aspx
Download the project and see, or view the example right under "This is how we test it:"

# re: WiFi - Developer Fusion - Writing Secure Code

Wednesday, March 31, 2004 4:48 PM by Tom Mertens

Keep on reading that book... It's one of the books every developer should read, don't you think?

# re: WiFi - Developer Fusion - Writing Secure Code

Wednesday, March 31, 2004 5:05 PM by David Cumps

Yup, it's even "required reading at Microsoft" ;) (as BillG quoted on the book)

# re: WiFi - Developer Fusion - Writing Secure Code

Wednesday, March 31, 2004 6:31 PM by Bertg

then why are ther still "so many" exploits...

do notice the quotes!

# re: Visual Basic 6 - DBGrid, Empty Cells AllowSizing Bug?

Thursday, April 01, 2004 3:08 PM by Bertg

that's odd :p
my solution -> don't unchek it :p

# re: Longhorn installation failing - 'An error occurred while copying files'

Saturday, April 03, 2004 5:48 AM by Kevin Daly

Don't know if anyone's still watching this thread after so long, and sorry to chime in with a "Me Too", but, well, "Me too".
I've tried it off both the first DVD and the ISO image, with the same problem.
I get this under VMware and Virtual PC 2004.
So far all I can think of is that it doesn't like something about my hardware configuration, either the motherboard (it's 3 years old at least) or the 1G of generic RAM I added to my 512m base RAM.

It's a little bit frustrating.

# re: Longhorn installation failing - 'An error occurred while copying files'

Saturday, April 03, 2004 6:53 AM by David Cumps

Hey Kevin,

Don't know if it might help you, but try looking for another CD, or maybe if you can get a newer/older build.

I got a new CD from someone here, don't know if it was the same build, but it installed, and it didn't take 5 hours as well, like everyone says, but it was done in about 1h30.

Hopefully the next versions will give less problems.

# re: Parameterized Queries - MySQL

Sunday, April 04, 2004 7:38 PM by Bertg

noted into memory :p

small bug are hard to find :p

# re: Parameterized Queries - MySQL

Sunday, April 04, 2004 11:07 PM by Ryan Gregg

You should look into using the ByteFX MySQL library. It's a native MySQL interface for .NET, so you don't have to use ODBC or ODBC drivers. It also supports name parameters, which could certainly make the code easier to understand and update.

Just a thought! I've been using the library for a project I've been working on, and it's worked great.

# re: Parameterized Queries - MySQL

Monday, April 05, 2004 5:25 AM by David Cumps

Good alternative, I thought of using it as well, but it will be in the next project :)

For others wanting it:
http://www.mysql.com/downloads/api-dotnet.html
MySQLDriverCS & ByteFX.Data

# re: Parameterized Queries - MySQL

Tuesday, April 06, 2004 10:48 AM by drazic19

glad to know my asp.net thread was of use to someone else as well as me.

drazic19

# re: Importance of Error Messages

Thursday, April 08, 2004 8:17 PM by Shannon J Hager

I got that for the first time a couple weeks ago. It sounded horrible, I expected VS to shut down or something...

# re: Importance of Error Messages

Thursday, April 08, 2004 10:02 PM by Addy Santo

There is an implied second half to that message, which can be interpreted in a number of different ways depending on your mental state:

Catastrophic Failure: Time to go home,
Catastrophic Failure: Time to go to sleep,
Catastrophic Failure: Time to reboot,
etc.

:)




# re: Importance of Error Messages

Friday, April 09, 2004 4:56 AM by Fabrice

This stupid message has been around since COM at least, and unfortunately not fixed yet.

# re: Importance of Error Messages

Friday, April 09, 2004 8:00 AM by David Cumps

I encountered it with a VS add-in, VSNunit in particular. It looked worse then a blue screen to me, I expected my computer to get totally locked up. Luckily it did absolutely nothing :)

# Take Outs for 9 April 2004

Friday, April 09, 2004 6:21 PM by TrackBack

Take Outs for 9 April 2004

# re: Explorer Bug, Long Path, damaged directories.

Saturday, April 10, 2004 1:53 PM by Justin Lovell

It is limiting. Read the docs and it will say that the amount of characters in a NTFS and FAT32 partitions can only have 255 characters.

# re: Explorer Bug, Long Path, damaged directories.

Saturday, April 10, 2004 1:56 PM by David Cumps

Yes, I know, but why isn't there an error when you rename directories making the path go over 255 characters? It isn't refusing me when I rename all those directories, althou they are way over 255 characters after 3 renames. It just let me do it, without arguing, creating a path that is longer then 255 and making it hard work for an administrator to clean it up.

# re: Parameterized Queries - MySQL

Sunday, April 11, 2004 3:42 AM by heh

yes, it's really stupid mistake :)

# re: A Console IRC Bot.

Tuesday, April 13, 2004 12:37 PM by Svarvsven

Interesting code, however I was connecting to quakenet (ie se.quakenet.org, port 6667) and couldnt get the JOIN to work until I received "376" (End of /MOTD command). I rewrote the class for my purposes (ie to generate a stubborn back-talking BOT and also converting it to VB.NET) and fixed that...so it works!

But there is one more issue, the swedish characters. They get lost somehow in the way.

I was thinking that this line:
m_tcpReader = New System.IO.StreamReader(m_tcpStream)

should read:
m_tcpReader = New System.IO.StreamReader(m_tcpStream, System.Text.Encoding.UTF8)

(and same changed for the m_tcpWriter line) but it caused even more problems than it solved (somehow it fails already on the PONG-return).

Is there another System.Text.Encoding I should choose, or is the m_tcpWriter.WriteLine causing the trouble (ie should it be cr+lf or cr only or lf only?)...or something completely other thing?

I guess I could upload some VB-sample code if it would help...or I guess the same things would apply for your source as well?

Best regards,
Svarvsven

# re: A Console IRC Bot.

Tuesday, April 13, 2004 1:20 PM by David Cumps

As you didn't leave an email or so behind, I hope you'll read this ;)

Here's what i fixed for the MOTD:

In the public void Connect(string IrcServer, int IrcPort) method I replaced if (commandParts[0] == this.IrcServer) by the following:

if (commandParts[0].IndexOf(this.IrcServer) != -1) {
// Server message

Because apparently the quakenet server you gave returns this for endMOTD:
:port80a.se.quakenet.org 376 redneckj :End of /MOTD command.

And then in the case "376": I put:
this.IrcWriter.WriteLine(String.Format("JOIN {0}", this.IrcChannel));
this.IrcWriter.Flush();

To solve the JOIN issue you mentioned.

When choosing ASCII as charset it returns a "?" (question mark)

However, when I used
this.IrcReader = new StreamReader(this.IrcStream, System.Text.Encoding.Default);

It displayed me special characters correctly. So it's definately an Encoding issue ;)

This worked as well:
this.IrcReader = new StreamReader(this.IrcStream, System.Text.Encoding.GetEncoding("windows-1252"));

Try using that encoding once (I found it on google when looking for Swedish encoding ;))

# re: A Console IRC Bot.

Tuesday, April 13, 2004 3:27 PM by Svarvsven

Ok, interesting. I'll try the Encoding.Default! Yes, about the JOIN part...I fixed that. :)

Tell me if you want to have a look of the VB-version...

Best regards,
Svarvsven (skom_svarvsven@yahoo.com)

# re: A Console IRC Bot.

Tuesday, April 13, 2004 6:05 PM by Svarvsven

Yes, the System.Text.Encoding.Default worked really nice. Thanks! (and thanks for such a quick answer too)

# re: A Console IRC Bot.

Wednesday, April 14, 2004 9:45 AM by David Cumps

No problem :) Glad somebody could use my code :p

# re: Codezone Magazine

Wednesday, April 14, 2004 11:03 AM by Bertg

hope i'll still get that edition :)

# re: Importance of Error Messages

Wednesday, April 14, 2004 11:13 AM by Fabrice

This makes sense as VS add-ins are COM objects.

# re: Importance of Error Messages

Friday, April 16, 2004 9:27 AM by Rudi

ok, I'm gonna be harsh here but your message:

.NET gave me an error... A 'Catastrophic failure'.

doesn't tell us much either, now does it? how can .NET give you an error? Who/what is .NET? Is she pretty, I know its sexy, but what do you think?

ok, just kidding...

honestly, regarding error messages, it is considered good practice to have a clean simple message stating the 'task' that could not be completed and possible remediation. As important is that there is a configurable way to log the error with sufficient details and that the log is written in a secured way.

The log:
As such Helpdesk/Admin/Devs can find out more information and escalate to the correct person, with sufficient details.
In a secured way:
Imagine a malicious user finding out all sorts of details about your application; database connectionstrings with password are common and well, catastrophic; just open an app, rip out the network cable and play around...; I personally know of several cases where people got access to information they should not see because they encountered a verbose error message.

Be sure to visit our Security Summit (http://www.microsoft.be/securitysummit.)

# re: Importance of Error Messages

Friday, April 16, 2004 9:50 AM by David Cumps

Yes, I read that in 'writing secure code' as well :) never reveal too much info in an error message.

But that error message just confused me big time, it sounds terrible, and it isn't 'catastrophic' after all. It confused me because I've never seen an error like that. Most simple errors go 'Action Failed.' or 'Task Failed', but never 'Catastrophic' ;)

# re: Codezone Magazine

Sunday, April 18, 2004 6:24 PM by Benjamin J. J. Voigt

@BertG: if you don't get one, let me know, we'll leave you without the second part of the TabletPC article :)

@David: Glad you liked it, and acctualy it's produced by EMEA and shipped through Germany. Editing takes place in Schwitzerland...

# re: Visual Studio.NET and PHP Coloring

Monday, April 19, 2004 9:05 AM by mike

top job. i'v ealtered the regs file for actionscript *.as files, lovely job.

# re: A Console IRC Bot.

Tuesday, April 20, 2004 7:36 AM by SReisinger

I am pretty mucho interested in the vb.net / vb version of the code.

Any way to get a copy of it ?

# re: Longhorn installation failing - 'An error occurred while copying files'

Wednesday, April 21, 2004 9:50 PM by Helpppp

Iam haveing the same problem at 18 minuites it says Error copying files Please help me fakehair@msn.com is my msn and xsx213 is my aim pleaseee helpppp

# re: Microsoft Convention - Belgium

Sunday, April 25, 2004 12:09 PM by sotto

I've been to the convention last year and indeed, it is just marketing, nothing more.
I think devdays are much more valuable for us (student) developers... but these aren't free ....

# re: Javascript Open Directory Image Viewer

Monday, April 26, 2004 3:09 AM by Red Head

wow ! an amizing script
is it possible to make a function like showImages("url of an opendir")
I tried to do this but it didn't work

# re: Javascript Open Directory Image Viewer

Monday, April 26, 2004 11:19 AM by David Cumps

You could do a document.location.href = yoururl right before executing the javascript, so your browser first navigates to the url and then lists the images.

# re: Writing Secure ASP.NET Session - Dutch

Tuesday, April 27, 2004 4:11 PM by lore

Sweeeeet powerpoint presentation, i like the lizard a lot. If I could find his head, we can fix it! :D

I can't say a lot about the content, because I don't have any knowledge about it, but it seems to be interesting!

# re: Writing Secure ASP.NET Session - Dutch

Tuesday, April 27, 2004 4:15 PM by Dhoore

nice!!

# re: Writing Secure ASP.NET Session - Dutch

Tuesday, April 27, 2004 4:16 PM by bleyke

It was a very nice presentation, I learnt alot about secure coding :). I also took this picture (after a few tries)

# re: Writing Secure ASP.NET Session - Dutch

Wednesday, April 28, 2004 5:15 AM by Kelly

hey, sounds like I've missed something interesting.
But thanks for giving me an individual lesson :p

# re: Writing Secure ASP.NET Session - Dutch

Wednesday, April 28, 2004 12:48 PM by Bert

To bad I had to mis that presentation... :s

# re: I'm On Longhorn - Download Manager == Evil!

Wednesday, April 28, 2004 6:48 PM by John Webb

Would you be willing to provide me with a download of Longhorn?
I have been trying to find it, but have not had any success.

My email address is baystatersweb@charter.net

Thank you.

# re: I'm On Longhorn - Download Manager == Evil!

Thursday, April 29, 2004 9:54 AM by Hobo

Yes

# re: I'm On Longhorn - Download Manager == Evil!

Thursday, April 29, 2004 11:10 AM by David Cumps

I'm sorry, I cannot provide you with a download location for Longhorn, I got mine on DVD.

# re: Javascript Open Directory Image Viewer

Wednesday, May 05, 2004 1:42 PM by Ojer

Mmm... doesn't work for me. I get the following error:

Error: document.links is not a function

I tried do this under Firefox 0.8 on a Linux box.

# re: Javascript Open Directory Image Viewer

Wednesday, May 05, 2004 2:39 PM by David Cumps

Then it's probably not a generic javascript function I guess, really not much I can do about it, this was just a quick thing for personal purposes :p

# re: Setting NTFS Permissions with C#

Wednesday, May 05, 2004 4:04 PM by srfonden

This was extremeley helpful, thanks!!!

# re: Javascript Open Directory Image Viewer

Wednesday, May 05, 2004 6:22 PM by Ojer

However, if somebody finds a more strict way (with generic functions only), then i would love to know. This is something U have been looking for quite a while now.

# re: I'm On Longhorn - Download Manager == Evil!

Wednesday, May 05, 2004 6:46 PM by xxmaddjxx

Im having a very big problem with whidbey. I does not recognise the MSAvalon namespace. I check in properties and its set to Framework 1.2, whats up?

# re: Parameterized Queries - MySQL

Wednesday, May 05, 2004 7:18 PM by Peter Lindeman

I am having the same problems with interbase/firbird. I tried the ? marks and that did work. Does anyone know of a similar library for interbase/firebird so I can use named parameters? Thanks

# re: Visual Studio.NET and PHP Coloring

Thursday, May 06, 2004 2:00 PM by david

doesn't work for me on VS 7.0.

# re: A Console IRC Bot.

Thursday, May 06, 2004 4:34 PM by TomFrey

Hi,

I did the changes for the JOIN problem, however I still can't connect to othernet, whereas I can connect to quakenet.
Any ideas?

Regards,
tom (tom.frey@greentreetrading.com)

# re: A Console IRC Bot.

Thursday, May 06, 2004 5:16 PM by David Cumps

You could echo back all IRC data and check what the server tells you, if it needs something additional or if it doesn't understand something.

In IrcCommandReceived, just uncomment the line that writes all data to Console.

# re: A Console IRC Bot.

Thursday, May 06, 2004 6:14 PM by Svarvsven

If there is interest in my vb-port of the bot, please let me know. I did send S Reisinger a copy.

skom_svarvsven@yahoo.com

# re: A Console IRC Bot.

Friday, May 07, 2004 5:36 AM by Tom Frey

@David

That's what I did and the 376 comes in just fine that's why I don't know where the problem is ... no error messages either

# re: A Console IRC Bot.

Friday, May 07, 2004 1:51 PM by David Cumps

Then I don't have an idea, sorry. Maybe it's something server related, or network related.

# re: C# Script

Saturday, May 08, 2004 2:52 PM by Bulldoser

I really like it

# re: A Console IRC Bot.

Saturday, May 08, 2004 8:38 PM by Tom Frey

just to let you know, I figured out the problem now.
It's in here:
if (commandParts[0].IndexOf(this.IrcServer) != -1)
because if you connect to a server like irc.othernet.org or irc.quakenet.org you'll actually get redirected to another server like "Warren.MS.US.Othernet.org" and that's why the whole switch segment never gets triggered

# re: A Console IRC Bot.

Sunday, May 09, 2004 5:27 AM by David Cumps

Right! I remember, had the same when I connected to the global quakenet server, but then I changed it to use a local one, which didn't redirect me again.

# re: Parameterized Queries - MySQL

Sunday, May 09, 2004 5:03 PM by Chris Turchin

I think Carlos G.A's managed firebird provider for .NET supports named parameters with the @-prefix, e.g. "select * from tbl_Name where id = @id" All the info is available here: http://www.go-mono.com/firebird.html

# re: VBDOX - Documentation Generator for VB6

Monday, May 10, 2004 5:05 PM by Bert

Isn't there a navigation on the side with the .NET documentation?
or is it just a generation option?

# re: UPX - the Ultimate Packer for eXecutables

Monday, May 10, 2004 5:06 PM by Bert

this can bee handy...
lets stry it on non executables :p

# re: Re-Enable user:pass@ IE functionality.

Tuesday, May 11, 2004 12:43 AM by ferni

thanks for this :)

# re: VBDOX - Documentation Generator for VB6

Tuesday, May 11, 2004 4:40 AM by David Cumps

sadly there isn't with VBDOX, NDoc generates the same style with navigation. VBDOX only makes the pages, but you can compile it to a windows .chm help file where you have navigation.

# re: Parameterized Queries - MySQL

Wednesday, May 12, 2004 10:07 AM by Peter Lindeman

Thanks Chris, I will have to give it a shot. Not sure I am going to be able to figure out how to get it to work, but I will try.

# re: Parameterized Queries - MySQL

Wednesday, May 12, 2004 3:13 PM by anonymous thanks

Thank you so much for posting this (and thank the lord for google for helping me find this post). I was banging my head against the wall with this same issue and being new to MySql I hadn't realized it didn't support paramertized queries. Thanks!

# re: Controlling a Usercontrol from another Usercontrol

Friday, May 14, 2004 11:04 AM by Gokhan Altinoren

This reminds me an article for IBuySpy module communication by Brian Bilbro:
http://authors.aspalliance.com/bbilbro/viewarticle.aspx?paged_article_id=6

# re: Controlling a Usercontrol from another Usercontrol

Friday, May 14, 2004 11:14 AM by David Cumps

Number 2 of that page (Have a base page class coordinate the communication) is my preffered approach, user controls are simply small modules you can control from your pages.

Pages control usercontrols.
Usercontrols don't control usercontrols.

(I know they can, and a usercontrol can have another usercontrol on it, but you get my point ;))

Very nice page btw, just bookmarked it, if I have to make a communication system between classes later :)

# re: Controlling a Usercontrol from another Usercontrol

Friday, May 14, 2004 12:23 PM by AndrewSeven

How about using interfaces...

# re: Controlling a Usercontrol from another Usercontrol

Friday, May 14, 2004 6:26 PM by Wilco

Or <a href="http://wilcoding.xs4all.nl/Wilco/Articles/View.aspx?NodeID=136">connection points or meta-data based connection points</a>? ;).

# re: Create Hashes - MD5, SHA1, SHA256, SHA384, SHA512

Sunday, May 16, 2004 1:11 AM by a

How create a verify for web form?

# re: Abit motherboard killed RAM (Abit IT7-MAX2)

Monday, May 17, 2004 2:57 PM by Jason

Just wow... I enjoy reading posts like this, although I can sympathize with your plight from the other end as well. I remember a few years back as Win2k was coming out, I had a 3 hour tech support call with MS trying to get it installed on a Gigabit mobo. It seems that the bios didn't recognize certain cylinders/tracks on my hard drive. I eventually got windows installed, but it trashed the drives by a few months later...

# re: Abit motherboard killed RAM (Abit IT7-MAX2)

Monday, May 17, 2004 4:58 PM by David Cumps

You certainly learn a lot from these kind of posts ;)
Like what the solution is to a problem when you encounter it with someone else later on.

# re: Longhorn installation failing - 'An error occurred while copying files'

Tuesday, May 18, 2004 2:06 PM by Ed Stump

Probably your best bet is to get one of the not quite M$ friendly versions. I'm not advocating piracy, but sometimes install issues get fixed by these groups when they work on it. I've run a few winbeta versions that work just fine. It also could be flaky memory or a funky hdd cache on your part.

# re: Longhorn installation failing - 'An error occurred while copying files'

Tuesday, May 18, 2004 4:24 PM by David Cumps

It worked with a disc from someone else already :) (as noted in a previous comment :p)

Wasn't a mem or hdd problem, I tried different pcs, it was a problem with the iso file

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 7:59 AM by Simo

Very very cool

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:01 AM by Simo

Yea, this does not work in Visual Studio .NET 2002. Can anyone help?

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:04 AM by David Cumps

I believe it is a matter of changing the .reg file, to 7.0 if I remember correctly

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:11 AM by Simo

I used the "php_edit2002.reg" which is for 7.0 and it did not work.

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:18 AM by David Cumps

Then I don't have a clue, but this might be a nice alternative:

http://www.jcxsoftware.com/jcx.corporate6/

(If it works for vs2k2)

I'm using it now on 2k3, and it's really nice :)

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:20 AM by Simo

Nope that doesn't work on 2002 either =(. Is there an update from 7.0 to 7.1 or did us 7.0 owners just get shafted?

# re: Visual Studio.NET and PHP Coloring

Wednesday, May 19, 2004 8:35 AM by David Cumps

Not sure, maybe this works:
http://www.codeguru.com/Cpp/V-S/tips/syntaxhighlighting/article.php/c471/

It uses the usertype.dat file as well, and if that doesn't work, I really have no idea. It's a tweak after all :p

# re: New site launch! PC Guru!

Friday, May 21, 2004 9:57 AM by Bert

IMHO you have done better, layout wise that is...

# re: .NET Magazine - Edition #5

Friday, May 21, 2004 9:59 AM by Bert

Registerd for 4, but didn't get it...
hoping i'll get it now?

# re: Accessibility Guide on Webdevelopment

Friday, May 21, 2004 10:00 AM by Bert

I'm folowing these for 2 years, or have been trying too...

and it surly aint easy :p

# re: A Console IRC Bot.

Friday, May 21, 2004 12:56 PM by shane

an ircbot glined me how can i get through it? please help me if you can this is my e-mail if any one can help me it will be greatly appriciated - shane-

skullraider144@yahoo.com

# re: A Console IRC Bot.

Friday, May 21, 2004 1:48 PM by David Cumps

You wait until the gline has expired? Get another host? :p

G-Line: "G-Line" is a global ban system utilized by many networks. While a K-Line is written permanently into the ircd.conf file to block a host from connecting to a server, a G-Line is a temporary ban blocking a host from all of the servers on a network, usually set by an IRC operator utilizing a "network services bot".

# re: Longhorn installation failing - 'An error occurred while copying files'

Friday, May 21, 2004 4:44 PM by D-man

what do i need to istall longhorn?i mean programs and how many cd`s are they?And where can i get the original disk(s)please write back

# re: Longhorn installation failing - 'An error occurred while copying files'

Friday, May 21, 2004 5:00 PM by David Cumps

A computer, 1 Longhorn CD (but they gave 2DVDs on DevDays).

Where? MA3D, your school, MS-beta site, MS-events, ...

# re: .NET Magazine - Edition #5

Monday, May 24, 2004 8:03 AM by Tom

Belgians might want to register for the .NET Magazine on the MSDN Belgium & Luxembourg website: http://www.microsoft.com/belux/nl/msdn/community/magazine.mspx

# re: .NET Magazine - Edition #5

Monday, May 24, 2004 8:05 AM by Tom

Bert, feel free to drop us a mail (through the feedback link at the bottom of http://msdn.be) with your coordinates, so that we can see what went wrong.

# re: I'm On Longhorn - Download Manager == Evil!

Tuesday, May 25, 2004 8:08 PM by alle

Would you be willing to provide me with an FTP site & UIDPWD for a download of Longhorn 4074? Been trying to find it, but have not had any success, yet!

My email address is emaleme(at)look.ca ... TIA.

"yes, play on words > not mail > but MALE > and me NOT either!"
alle

# re: I'm On Longhorn - Download Manager == Evil!

Wednesday, May 26, 2004 5:24 AM by David Cumps

If you would look at all the comments: I can NOT get you Longhorn!

# re: I'm On Longhorn - Download Manager == Evil!

Saturday, May 29, 2004 5:52 PM by Zack

i need a download of longhorn very much too please, would you please e-mail it to me, my e-mail address is,
mini_s_2002@msn.com
thanks a lot,
zack

# re: I'm On Longhorn - Download Manager == Evil!

Saturday, May 29, 2004 5:53 PM by Zack

i don't care what version, any will do

# re: I'm On Longhorn - Download Manager == Evil!

Saturday, May 29, 2004 5:57 PM by David Cumps

Please re-read my post, especially the Update2 ...

# re: Gatekeeper 2004 is over!

Saturday, May 29, 2004 7:40 PM by Bert

not even top 100?
oh David...

Just joking, well done :)

# re: Gatekeeper 2004 is over!

Sunday, May 30, 2004 5:28 AM by David Cumps

:p still waiting to see the number of players :) It mentions it's double as much as last year, and I thought there were 25000 then, not sure though, but if it would be true, that would be sweeeet :p

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:07 PM by Robin

Since when do you read the License Agreement? :p

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:11 PM by kevin white

If some one creates an "ACT OF GOD" virus we're all screwed.

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:13 PM by Dave

I think "Acts of God" has a specific legal meaning, covering earthquakes and the like. Could be wrong about this, though.

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:15 PM by David Cumps

hehe :p since i stumbled upon one through Google :)

I should start reading them more, what else could be in it?

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:18 PM by David Cumps

You know what, you're absolutely right! I just checked with Google:

"An act of God is generally considered an act attributable to nature without human interference. For example, damage from a tornado or a lightning strike would be considered an act of God."

But I have to say, it sounds strange..

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:19 PM by David Cumps

No kidding? Why not just "Natural Disasters" :)

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:24 PM by Jeff

Many EULA's include "Acts of God" in their agreements.

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 4:27 PM by David Cumps

I'm amazed, really. What does God have to do with an EULA... weird legal term, religion in legal, pfff, I'm amazed nobody else has ever said something about that wording, some people don't believe in a God, the description is just something for disaster...

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 5:28 PM by Andy

It's an insurance industry term, ie CYA. Basically they're saying if an earthquake destroys their building and you get a virus while their system is down you can't sue them....

-A

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 5:39 PM by Bert

so, i'm an atheist can i agree?

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 6:32 PM by Scott

Does it cover programmers that THINK they're god?

# re: It's just an act of God, nothing special...

Thursday, June 03, 2004 9:23 PM by AT

Scott: Yea ;o) In case if their site will go down becouse of programmer who think he is God ;o)

# re: It's just an act of God, nothing special...

Friday, June 04, 2004 8:19 AM by Dhoore

I think it's very funny :p

# re: Setting NTFS Permissions with C#

Sunday, June 06, 2004 8:59 AM by Chris

This is the most straight forward code example I have yet seen on this topic, however I belive there is a rather BIG SECURITY FLAW! You simply take the existing DACL and use AddAce twice to implement the permissions you desire. This may not always work if a Deny ACE already exists further up the ACL. ACE order is very important and it must be assured that ACEs are in the following order
Explicit Deny
Explicit Allow
Inherited Deny from parent
Inherited Allow from parent
Inherited Deny from grandparent
Inherited Allow from grandparent
Inherited Deny from great grand-parent
Inherited Allow from great grandparent
and so on.
Since the ACL is traversed from top to bottom, if an Allow ACE precedes a Deny ACE and the Deny ACE is a subset of the Allow ACE then the subset of denied users will actually be allowed.

The code above should probably be fixed by calling Dacl.PrepareAcesForACL before calling SecurityDescriptor.SetDacl

Also, any existing ACE entries in the original ACL should be checked to ensure there aren't any duplicates. Of course one way of avoiding checking and being absolutely certain that only the access you have allowed is allowed is by throwing out the existing Dacl and creating a new one from scratch.

-Chris

# re: Setting NTFS Permissions with C#

Sunday, June 06, 2004 9:16 AM by David Cumps

Hey, first of all, tnx for the comment, I learned something from it.
Didn't knew something like PrepareAcesForACL existed.

Now, on to the comment:
I never thought about duplicates, as this code was more something made for one goal, where it would never happen, but now I know it can couse problems as well.

As for the PrepareAcesForACL, I checked out the source of the used dll and found the following pieces:

/// <summary>
/// This algorithm was copied from ATL source code: CAdcl::PrepareAcesForACL.
///
/// We can't use QuickSort (or any other n log (n)) generic sort algorithm
/// because we want partial ordering to be preserved. All we want to do is sort
/// the elements according to their "Order" (see OrderAceAccess.Compare method),
/// but we want the elements which compare to "Equal" to remain in their
/// original order in the array.
/// </summary>
protected override void PrepareAcesForACL()

And this method gets called by
private unsafe byte[] UnsafeGetNativeACL()

Which gets called by
internal byte[] GetNativeACL()

Which is used in
private static void UnsafeSetDacl(SecurityDescriptor secDesc, Dacl dacl, bool defaulted)

And finally used in
public void SetDacl(Dacl dacl)

So, I guess the security flaw is fixed by this? Each time you do a SetDacl it automatically PrepareAcesForACL.

Tell me if I'm wrong, don't want a security flaw in what I tell

# re: Setting NTFS Permissions with C#

Sunday, June 06, 2004 3:32 PM by Chris

I am terribly sorry, I had thought I reviewed the Win32Security dll code carefully, however I missed the call to PrepareAcesForACL() that ultimately gets indirectly called by the SetDacl function. I've been researching how to do this for some time including reading some security books on common mistakes. Most of my reading brought me right to the windows api level (advapi32) where the SetDacl function does not take care of ACE ordering for you. I guess I got a bit over zealous and jumped the gun, I believe you are correct, your orginal code should work well.

-Chris

# re: Setting NTFS Permissions with C#

Sunday, June 06, 2004 9:24 PM by Chris

Adding the following line should take care of any Ace issues.
dacl.RemoveAces(sidUser);

I have looked in the source for Win32Security and the funciton returns false if the Dacl is null, empty, or an Ace for the sid specified is not found.

# re: .reg to re-enable user:pass in IE

Sunday, June 06, 2004 11:40 PM by me

thx

# re: Setting NTFS Permissions with C#

Monday, June 07, 2004 4:11 PM by Silvia Brunet JOnes

Can you help me on a couple of lines I need to write. All I need is to remove access to everyone to a particular file and then set read and write accress to one particular user. Help help ehlps

# re: Setting NTFS Permissions with C#

Monday, June 07, 2004 4:16 PM by David Cumps

look at the above sample and first removeAces from them, and then AddAce your desired rights..

# re: Setting NTFS Permissions with C#

Tuesday, June 08, 2004 9:51 AM by Silvia Brunet Jones

How can I get a list of all the sid. is there are way to remove acces to all ?

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 12:49 PM by Simon Owen

The problem with not being able to view source of a web page (from IE) can crop up when you have a very large temporary Internet files folder, another symptom is when you right click an image to save it disk the save as dialoge will only allow .bmp extension. just clear your temp files ( Tools > Internet Options > General Tab > Delete Files) and the problem goes away :)

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 12:50 PM by Tom

Nice! That happened to me a few months ago. I fixed it by downloading TweakUI and Notepad2. Now I will know what to look for if it ever happens again! Thanks!

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 12:56 PM by David Cumps

Simon, ah, I never had the view-source problems with IE here, but good that I know another cause ;)

And I thought having a huge temp Inet files folder was a good thing, to save your bandwidth...

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 1:01 PM by Damien Guard

.COM's have been run in preference to .EXE's since the days of DOS.

Some viruses back then including PowerPump used to just create a hidden .COM that matched a .EXE name giving it chance to copy itself before launching the .EXE

I'd strongly recommend finding out exactly what notepad.com is on your system ASAP. I can't think of anything legitimate...

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 1:09 PM by David Cumps

It's a part from some spyware junk, I removed an activeX control it downloaded, and there was a similar calc.com in the root of the drive as well...

Got IE security up to High now

I expected it having something to do with DOS, but can it be safely switched now (eg; giving .EXE a higher preference), without breaking anything (on windows 2003)

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 1:11 PM by christoc

I can view source again! I cleared my temporary internet files, which took about 5 minutes, and now source opens. Thanks for the tip!

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 3:18 PM by Jon Galloway

The .com / .exe pair can be used for good as well as evil. That's how Visual Studio runs command-line and GUI style:
http://blogs.msdn.com/junfeng/archive/2004/02/06/68531.aspx
http://www.hanselman.com/blog/PermaLink.aspx?guid=188

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 3:26 PM by David Cumps

Ah, nice way of doing things, but what I don't understand, why depend on the order of execution when it's so easy to change them?

(for example, in the second url they mention BAT COM EXE, and my default system had COM EXE BAT...)

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 4:26 PM by Dhoore

Ow yeah, I knew that problem of 'too many temporary Internet files', but the extensions, I didn't knew that .COM is taken before .EXE, kinda strange

# re: Unable to launch notepad from 'Run' or view HTML source

Wednesday, June 09, 2004 5:12 PM by L McKinney

It may be just for XP Home edition but if you put a shortcut to Notepad on your desktop, view source will stop working. I added a shortcut for my son to kick off notepad to practice typing and that broke IE's view source. Renaming the shortcut fixed it.

# re: Unable to launch notepad from 'Run' or view HTML source

Thursday, June 10, 2004 3:53 AM by BertG

hmmm, now i see why you don't have to place the extention, if you want to strat notepad from RUN :p

# re: Parameterized Queries - MySQL

Thursday, June 10, 2004 7:29 AM by Erik

Thank you! Thank you! Thank you!

Coming from SQL Server and Oracle, I was so used to using named parameters that I totally forgot the questionmark approach. This being my first MySQL project, I was about to knock my head through the wall wondering why that database wasn't accepting my update statements.. as you pointed out, inject dynamic SQL is dangerous and not done.

Like the others I just assume that MySQL supported named parameters... doh!

# re: Won at the DigiKids 2004 Awards!

Thursday, June 10, 2004 8:23 AM by Dhoore

congrats!

# re: Won at the DigiKids 2004 Awards!

Thursday, June 10, 2004 11:15 AM by BertG

hey nice going :)
Isn't that the site with the 'lets do it how they want"-layout ? :p

# re: Won at the DigiKids 2004 Awards!

Thursday, June 10, 2004 11:50 AM by Gertje

Proficiat ^^

# re: Won at the DigiKids 2004 Awards!

Thursday, June 10, 2004 2:13 PM by Steve

Congrats!! :)

# re: Javascript Open Directory Image Viewer

Friday, June 11, 2004 3:13 AM by Johan

Try this app: Opendir Viewer

You can find it on some download sites and the developer is niceapps, www.niceapps.com, if i remember correctly

# re: Notepad bug? Encoding issue?

Sunday, June 13, 2004 3:25 AM by priyanka

i want to save the text file as encoding"UNICODE"...ANYONE HELP
ME...AS SOON AS POSSIBLE..
THANX

# re: Outlook and C# - Gather Addresses

Wednesday, June 16, 2004 6:05 AM by Dave

I'm not running Office 2003, so I dont have msoutl.olb, can someone email it to me or tell me where I can get it?

van240sx@yahoo.ca

thanks

# re: Visual Studio.NET and PHP Coloring

Wednesday, June 16, 2004 12:52 PM by allegro

VERY COOL!! Now if only I could find the same for .cfm as well.

# re: Visual Studio.NET and PHP Coloring

Friday, June 18, 2004 11:13 AM by -- adds --

Doesn't work for me either.

This is because i do not have C# or C++ installed with my VS.NET ....

# Some useful tools found during creating an installer for Kajima

Saturday, June 19, 2004 11:51 AM by TrackBack

# re: Setting NTFS Permissions with C# (urgent)

Saturday, June 19, 2004 5:36 PM by Sakda Chaiworawitkul

I've read your code. It was wonderful. I have added ASPNET user to a folder access allowed user. However, I follow your code to give it full-control right. I found it didn't do anything. Here is my code. What did I do wrong? Please let me know. Thank you.

Microsoft.Win32.Security.SecurityDescriptor secDesc =
Microsoft.Win32.Security.SecurityDescriptor.GetFileSecurity(strSitePath, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);

Dacl dacl = secDesc.Dacl;

Sid sidUser = new Sid (username);

// allow: folder, subfolder and files

// modify

dacl.AddAce (new AceAccessAllowed (sidUser,
AccessType.GENERIC_WRITE | AccessType.GENERIC_READ | AccessType.DELETE | AccessType.GENERIC_EXECUTE , AceFlags.OBJECT_INHERIT_ACE | AceFlags.CONTAINER_INHERIT_ACE));



// allow: this folder

// write attribs

// write extended attribs

// delete

// change permissions

// take ownership

DirectoryAccessType DAType = DirectoryAccessType.FILE_WRITE_ATTRIBUTES | DirectoryAccessType.FILE_WRITE_EA | DirectoryAccessType.DELETE | DirectoryAccessType.WRITE_OWNER | DirectoryAccessType.WRITE_DAC | DirectoryAccessType.MAXIMUM_ALLOWED;

AccessType AType = (AccessType)DAType;

dacl.AddAce (new AceAccessAllowed (sidUser, AType));



secDesc.SetDacl(dacl);

secDesc.SetFileSecurity(strSitePath, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);

# re: Setting NTFS Permissions with C#

Sunday, June 20, 2004 4:37 AM by David Cumps

My guess is that you need to use this:

Microsoft.Win32.Security.SecurityDescriptor secDesc =
Microsoft.Win32.Security.SecurityDescriptor.GetFileSecurity(strSitePath, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);
Dacl dacl = secDesc.Dacl;
Sid sidUser = new Sid (username);

// allow: folder, subfolder and files
// full control
dacl.AddAce (new AceAccessAllowed (sidUser, AccessType.GENERIC_ALL | AccessType.STANDARD_RIGHTS_ALL , AceFlags.OBJECT_INHERIT_ACE | AceFlags.CONTAINER_INHERIT_ACE));

secDesc.SetDacl(dacl);
secDesc.SetFileSecurity(strSitePath, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);

and don't forget to fill up username and strSitePath in your code :)

# re: I'm On Longhorn - Download Manager == Evil!

Monday, June 21, 2004 1:24 AM by Tyler

lol just to be an asshole, would you like to send me the recent longhorn version

lol just kiddin, ill find it myself, its been awhile, last time i got it was 4051... and they havnt sent me the new one yet...

Best of luck ;)

# re: Setting NTFS Permissions with C#

Wednesday, June 23, 2004 6:12 PM by Jeremy Nunn

I wrote a short app that creates folders for users in Active Directory, and assigns permissions to them using this library. I was curious if permissions could be set on a network share (since we programmatically create a share of these folders once they are created.)

By default, the share gives 'Everyone' full control, and I would like to modify this. Can this be done using this or some other library.

# re: Troubleshooting DotNetNuke 2.1.2 Installation

Wednesday, June 23, 2004 9:13 PM by Dave Burke

David, I sat in on two DotNetNuke sessions at DevTeach with Jim Duffy and I am definitely fired up about DNN, so your tips as I am about to install it, are PRICELESS! (Well, not priceless maybe, but really really helpful!) Thanks!

# re: Troubleshooting DotNetNuke 2.1.2 Installation

Thursday, June 24, 2004 4:47 AM by BertG

Interesting...
Thanx for the pointers :)

DotNetNuke guys should test their releases better

# re: Setting NTFS Permissions with C#

Thursday, June 24, 2004 5:25 AM by David Cumps

Hmm, I really don't have an idea how to do that, if anyone knows, please reply :p

# re: Setting NTFS Permissions with C#

Thursday, June 24, 2004 2:55 PM by Paul L

I used this library basically the same way you have, however, the containter inheritance does not seem to be working for me. I set the AceFlags to AceFlags.OBJECT_INHERIT_ACE | AceFlags.CONTAINER_INHERIT_ACE, as you do, but when I look at the properties of a subfolder, it does not show the user in the security tab. If I subsequently add another user to the same folder using Explorer, then the user I added with code magically appears.

Does this work for anyone else?

# re: Personalizing Outlook Today

Friday, June 25, 2004 1:14 PM by Dhoore

wow, that's very nice! when i got the time, i will also create my own outlook today :)

nice job!

# re: Personalizing Outlook Today

Friday, June 25, 2004 10:01 PM by Tom

Nice, but it would be really nice if you used for example Cassini or Bart De Smet's solution for hosting ASP.NET pages (based on Cassini) instead of PHP ;)...

# re: Personalizing Outlook Today

Saturday, June 26, 2004 5:14 AM by David Cumps

;) I got IIS running, no need to run Cassini, it's just that I had a PHP uptime script lying around, and just used that, instead of creating a new one :)

# re: Troubleshooting DotNetNuke 2.1.2 Installation

Saturday, June 26, 2004 2:33 PM by David Guizar

David, Here in Mexico we call "Tocayo" to those people that have the same names. Tocayo, you saved me a lot of time with this simple troubleshooting that you posted.

Thank you very much

# re: Personalizing Outlook Today

Saturday, June 26, 2004 2:52 PM by sven cipido

Very nice, I will try to do this for my own outlook.

Just some remarks ;-) :
- When using this with Outlook 2000 SP3, you can't modify my outlook today anymore. You have to change a value in the registry.
- The technology you use is called "Digital Dashboard". Although you can use this in Outlook 2003, it's the old way. MS has now Portal Server which you can use to modify your Outlook. This because with Digital Dashboard, you have to know HTML and you have to change everything with scripting. But OK, for private use Digital Dashboard is very usefull because otherwise you need to install portal server. But in company environments more and more they will use portal server for the modifications.

# re: Personalizing Outlook Today

Saturday, June 26, 2004 2:59 PM by David Cumps

You mean there are people out there who dont know HTML or don't like it? :p

Portal Server eh, I'll remember that when I have to chance to use it :) tnx

# re: VBDOX - Documentation Generator for VB6

Monday, June 28, 2004 9:34 AM by stephen

need vb documentation

# re: Basic C# Examples

Monday, June 28, 2004 11:59 AM by stonie

how can c# die when microsoft made it and its part of a vs.net package very nicely done. what microsoft makes the public wants.

# Customising Outlook today

Monday, June 28, 2004 5:38 PM by TrackBack

Customising Outlook today

# re: Passing bitwise OR enum values

Monday, June 28, 2004 6:01 PM by Kiliman

If you add the attribute FlagsAttribute:

[Flags] enum Pars { ... }

.NET will automatically give you the combination as string.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemflagsattributeclasstopic.asp

# re: Passing bitwise OR enum values

Monday, June 28, 2004 6:21 PM by Dhoore

nice, this is usefull :)

thx!

# re: Passing bitwise OR enum values

Tuesday, June 29, 2004 5:12 AM by David Cumps

Tnx for the attribute :) didn't knew that one

# re: Setting NTFS Permissions with C#

Wednesday, June 30, 2004 4:20 AM by marcus

Hi, thanks for the Code !!

But I got an issue setting the owner ship of an user. Anything that I am doin is add a line to your code:

secDesc.SetOwner(sidUser);

This does not work, I am new to ACLs and stuff like that, what am I doing wrong ?

:marcus

# re: Personalizing Outlook Today

Thursday, July 01, 2004 8:39 PM by BertG

Dat dutch rest in english,
minor mistake :p

# re: Passing bitwise OR enum values

Thursday, July 01, 2004 8:42 PM by BertG

this is good info :)
maby we could teach it at school :)

# re: Passed another year!

Thursday, July 01, 2004 8:43 PM by BertG

same as last year?

# re: Passed another year!

Friday, July 02, 2004 4:59 AM by David Cumps

Indeed =)

# re: Passed another year!

Sunday, July 04, 2004 7:05 PM by Dhoore

congrats =)
I had 'just' a 'High Distinction', but that's fine with me :)

# re: Personalizing Outlook Today

Monday, July 05, 2004 4:28 PM by Lee

Just what i was looking for. Thanks mate.

Btw, what theme are you using in your screen shot?

# re: Personalizing Outlook Today

Monday, July 05, 2004 5:07 PM by David Cumps

My own theme? :p That's what the article is about, creating your own :)

'Summer' Style ;)

# re: Personalizing Outlook Today

Tuesday, July 06, 2004 4:43 AM by Lee

Sorry, i did not make that very clear :$ - in this pic http://users.pandora.be/tr/ms/blog/outlooktoday/outlook.jpg the windows theme you are using (not the outlook thing :P) - whats it called :)

# re: Personalizing Outlook Today

Tuesday, July 06, 2004 8:01 AM by David Cumps

ah :p It's the 'Watercolor' theme, check this guide on how to do it:
http://www.neowin.net/articles.php?action=more&id=54&perpage=1&pagenum=1

(Note: it might be different for another OS version)

You need to change uxtheme.dll and then search for the Watercolor theme.

PS: If your system crashes or some other damage occurs, I'm NOT responsible :) (never happened here though)

# re: Personalizing Outlook Today

Tuesday, July 06, 2004 8:58 AM by Derek

How do I know which additional datafields are available ?
You are using some of them like datafld="Name"....

Thanks & regards
Derek

# re: Personalizing Outlook Today

Tuesday, July 06, 2004 9:16 AM by David Cumps

Good question, which I sadly enough can't give a good answer to, maybe someone else can.

It's more a matter of finding them yourself, Google can't find anything on it, and I've read that it isn't supported anymore and almost not documented.

I really don't know if there are a lot more besides the one I use, I'd guess there won't be that much more :)

Sorry

# re: ConvertToProperties Macro

Tuesday, July 06, 2004 12:38 PM by BertG

this is nice :)
add's a lot of code lines :)

# re: Non-Rectangular Form

Thursday, July 08, 2004 2:32 AM by InstaPix

what about the ClientRectangle? I'd like to use a shaped form like this, but inside of it i want to be able to use the standard Dock Fill method to have a child control resize to an inset position... e.g. i want to draw my own title bar and resize edges. when i just shape the window, the ClientRectangle is always the max size, so components which Dock Fill stretch out over my edges!

Am I making sense? I tried overriding WndProc for WM_NCCALCSIZE, but even though I inset the ClientRectangle, it seems to have no effect.

# re: Non-Rectangular Form

Thursday, July 08, 2004 7:54 AM by David Cumps

You're making sense, but I wouldn't immediately know a solution, sorry

# re: Outlook and C# - Gather Addresses

Friday, July 09, 2004 7:07 AM by Y a h o o

Hi,
I add reference to 'Microsoft Outlook 11.0 Object Library'
but i didn't get the Interop.Outlook namespace

any help?

# re: Outlook and C# - Gather Addresses

Friday, July 09, 2004 7:12 AM by David Cumps

Did you get any new references? Check the Object Browser for the exact namespace if there are any Office references

# re: Outlook and C# - Gather Addresses

Saturday, July 10, 2004 1:51 PM by Y a h o o

Yes I get 3 new references:
1.microsoft.office.core
2.outlook
3.stdole

# re: Outlook and C# - Gather Addresses

Saturday, July 10, 2004 4:32 PM by Y a h o o

p.s
if you can help me - i need to import data form outlook to dataset
any help?

# re: Outlook and C# - Gather Addresses

Sunday, July 11, 2004 6:49 AM by David Cumps

Well then, press F2 to get the object browser and find the exact namespace for the Interop namespace.

--
You could create a dataset and fill it up with a foreach adding a row each time. It's all the same for emails, contacts, calendar items

# ConvertToProperties Macro Code

Sunday, July 11, 2004 8:46 AM by TrackBack

# re: New Religion

Sunday, July 11, 2004 1:21 PM by Lore

You forgot my own God. The God of PC-nitwits. :-d

# re: New Religion

Sunday, July 11, 2004 2:19 PM by Sonu Kapoor

Hopefully we will not have a God for Microsoft Software and Linux Software. This can only result to a religion war ;)

# re: New Religion

Sunday, July 11, 2004 3:05 PM by David Cumps

:p good one, and since I invented these ones, I can make sure there aren't any gods for those ;) Every good coder is equal =)

# re: New Religion

Sunday, July 11, 2004 5:26 PM by denny

God of Bugs
and he has the Gremlins at his beck and call when he wants to strike ??

# re: New Religion

Sunday, July 11, 2004 7:32 PM by Dhoore

i think you have to much fantasy ;)
but i must say that i like your new religion! :D

# re: New Religion

Monday, July 12, 2004 8:35 AM by BertG

ok, i tried to post this 5 times...

"I don't believe in god's",

but for some strage reason, My power went out, IE crashed, my screen exploded...

Think i know who's behind it....

The all powerfull ROOT / Admin (what ever you prefer :p)!

# re: Drivers License Progress

Monday, July 12, 2004 9:50 AM by BertG

congrats!

# re: Drivers License Progress

Monday, July 12, 2004 9:51 AM by Dhoore

cool, i had 2 mistakes, but that was good too ;)
congratz

# re: Drivers License Progress

Monday, July 12, 2004 12:08 PM by Jochen

Gratz!! :)

I had two mistakes as well, two little, no big mistakes ;)

# re: Small Console ChatServer

Wednesday, July 14, 2004 9:52 AM by Eray Dogan

Hi..
this is good program. I try to write a program that is client for this server but when close the server occur an error at

while ((chatMsg = this.ChatReader.ReadLine()) != null) {

becasue data unable to read. how can I repair this error.

# re: Small Console ChatServer

Wednesday, July 14, 2004 12:26 PM by David Cumps

I'm unable to reproduce the error, but here is a try at a fix:

chatMsg = (this.ChatReader != null) ? this.ChatReader.ReadLine() : null;
while (chatMsg != null) {
if (eventReceiving != null) { this.eventReceiving(chatMsg, this.Id); }
chatMsg = (this.ChatReader != null) ? this.ChatReader.ReadLine() : null;
}

That way you won't get an exception when there's a null ChatReader.

If this doesn't fix it, paste the entire error message you get :)

# re: Ancient Technologies - RPG & AS/400

Saturday, July 17, 2004 11:23 AM by TK

Hi - i am a student and would like to learn a little about integrating different technologies. I am looking into the integration of technology of two different companies, here are some details...

company 1 -
win2000, pentium machines, UX
switching tech in LAN
leased line WAN
Oracle Technology
turnkey apps
legacy apps (CICS, VSAM, IMS, MVC)
company wide integrated internet and email (MS EXchange)

company 2 -
IBM host and SNA environment
AS400 amd BPCS
Near company wide email (Lotus Notes)

my aim is to integrate the two in the best way.
consolidate group communications (intra company WAN)
extend network for voice and data integration
enforcing security

also, company 1 has sites worldwide and company 2 is in a different country.

please could you advise me on a wise move for integration.

thanks

# re: Javascript Open Directory Image Viewer

Monday, July 19, 2004 3:02 PM by bleh

you could do this if documents.links doesn't exist:

document.links = document.getElementsByTagName('a');

# re: Writing Secure ASP.NET Session - Dutch

Tuesday, July 20, 2004 5:09 PM by Robin

but i was there :p

i hope they learned not to use claroline anymore...

# re: ConvertToProperties Macro

Tuesday, July 20, 2004 5:11 PM by Robin

I've got the magazine :)

haven't read all of it though

# re: Setting NTFS Permissions with C#

Thursday, July 22, 2004 4:27 PM by Salim

Hi, Thanks for the code.
i want to access effective permission of logged in User for file as well as AD Object.
This DAcl gives me splitted permission and i dont know how to calculate effective permission for logged in user. I think there must be something but i dont know what and where?
I would be great if you guys can help me.

Thanks a million in advance.

# re: Setting NTFS Permissions with C#

Friday, July 23, 2004 2:21 AM by TrackBack

# re: Setting NTFS Permissions with C#

Friday, July 23, 2004 8:19 AM by David Cumps

You can loop over every sid in dacl and see if it applies to user, and then I think you can use the following method to extract the NTFS permissions out of the sid:

http://weblogs.asp.net/cumpsd/archive/2004/06/28/168112.aspx

# re: Tweaking the Run Box (Windows Resource Hacking)

Saturday, July 24, 2004 1:07 PM by Omer van Kloeten

Sweet mother of God. :D
Is there an impact on the amount of time it takes for the dialog to load?

# re: Custom Run Box (Resource Hacking)

Saturday, July 24, 2004 1:11 PM by Dhoore

this is nice! I like it a lot :)

# re: Tweaking the Run Box (Windows Resource Hacking)

Saturday, July 24, 2004 1:13 PM by David Cumps

None at all :)
WIN + R and it's there immediately ;)

There's a lot more you can tweak in shell32.dll, I replaced most of the icons in there as well. I am using them for more than a year now and suddenly they jumped back to the default due to a Windows Update (which apparently replaced my shell32.dll), but boy, I wasn't used to those anymore, quickly back to my own :p

# re: Custom Run Box (Resource Hacking)

Saturday, July 24, 2004 2:29 PM by Stefano Demiliani

Great and interesting... :)

# re: Tweaking the Run Box (Windows Resource Hacking)

Saturday, July 24, 2004 4:12 PM by -

What visual theme are you using? That's a nice looking start button as well.

# re: Custom Run Box (Resource Hacking)

Saturday, July 24, 2004 4:19 PM by Varad

Cool Stuff, Very interesting!

# re: Tweaking the Run Box (Windows Resource Hacking)

Sunday, July 25, 2004 5:03 AM by Meurice

wheeeeeeeee

it works, nice tutorial!!!!!!

# re: Tweaking the Run Box (Windows Resource Hacking)

Sunday, July 25, 2004 7:28 AM by David Cumps

The theme is watercolor, but it's with a hacked uxtheme.dll

(http://www.neowin.net/articles.php?action=more&id=54&perpage=1&pagenum=4)

# re: Notepad bug? Encoding issue?

Sunday, July 25, 2004 3:00 PM by strangers

Another famous joke in China for notepad

if you input legend, which is once the name for the largest PC company in China, and then save and reopen it, you will find two rectangles instead of two chinese letters. Then people said you should not purchase legend PC since MS hates legend.

Notepad really has some problems in coding/decoding.

# re: Explorer Bug, Long Path, damaged directories.

Sunday, July 25, 2004 3:44 PM by stranger

Even create a not very long directory name written in Chinese may cause errors. The most frequently situation is that you find you cannot delete this directory. It seems that Windows systems reinterpret it into something else.

# re: Tweaking the Run Box (Windows Resource Hacking)

Sunday, July 25, 2004 6:45 PM by Jochen

Nice tutorial, works perfect here!!

Thank you!! :) btw, I like the theme too =) with the nice, tight lay-out :)

# re: Custom Run Box (Resource Hacking)

Sunday, July 25, 2004 6:55 PM by Jochen

When is the theme tweaking coming? =) (I like that visual theme :p)

# re: Tweaking the Run Box (Windows Resource Hacking)

Sunday, July 25, 2004 11:10 PM by Eric Newton

I'm sad that Windows Forms removed "Resource Hacking" of this kind, but I'm hoping that XAML/Avalon will re-enable it.

Heck, I've got Macintosh games with the "Resource stored sounds" completely hacked to the point of utter silliness yet so funny to play.

A game of Links where the ambient bird sounds were replaced with funny comments from friends. An app with a dialog box with controls completely reordered just to fool with anybody who might wanna do something serious with a computer :-)

# re: Tweaking the Run Box (Windows Resource Hacking)

Monday, July 26, 2004 11:53 AM by BertG

Love the tutorials, keep them comming

# re: Custom Run Box (Resource Hacking)

Monday, July 26, 2004 11:56 AM by BertG

A backup before editing, one to edit on and backup with replacer...
-> 2 backups = overkill :p

nice tutorial :)

# re: Custom Run Box (Resource Hacking)

Monday, July 26, 2004 12:02 PM by David Cumps

Like i said, you aren't forced to follow my advise :) But if you suddenly have a HD crash and your backup is gone as well, don't complain (I've already seen HDs fail with two at a time)

# re: I'm On Longhorn - Download Manager == Evil!

Monday, July 26, 2004 2:04 PM by koNflikt

I need longhorn....could you please send it to me? My email address is blank-sucker@no-longhorn.com ;-)

Not REALLY looking for longhorn(well, I am, but not here). Just wanted to see what others have to say about it. I know damn well I'm gonna have to find it on my own, and that goes for all you damn foolz out there as well. If you googled your way here like I did, you might be halfway there. Just don't expect it to pop up as link on any given webpage, for various reasons.....such as it wouldn't last longer than a couple of days before some bigshot pulls it off the the net, storage space, bandwidth consumption, not to mention the LAW. I don't think there are any webmasters out there STUPID enough to host longhorn on their servers and still expect to have their websites up the next month. GO AND LOOK FOR IT ON YOUR OWN!!!! Bullshit to the side, much props go out to CUMPS for what he's doing, let us know how it goes with longhorn.....on a side note....no Virtual PC????....wow, you're brave....

TUX lives on.....fuck M$.......PIMP THA PENGUIN!!!!!

# re: I'm On Longhorn - Download Manager == Evil!

Monday, July 26, 2004 3:46 PM by David Cumps

Virtual Pc, nah :p
Ghostcasting rox as a recovery method ;)

# re: Javascript Open Directory Image Viewer

Tuesday, July 27, 2004 8:32 AM by Josh

Meh, it doesn't really work for me...
I prefer this one:
http://www.justlikeed.net/StripDir/

# re: Visual Studio.NET and PHP Coloring

Wednesday, July 28, 2004 8:40 AM by ASP.Confused

THANKS!!! Works great for me in VS 2002. :o)

# re: Setting NTFS Permissions with C#

Thursday, July 29, 2004 8:07 AM by Rin

I gone through your code. It was wonderful. I have added ASPNET user to my application folder access allowed user. I added your code to give it full-control. when i open the folder security settings its showing full control but my application is not working, once i open the application folder again i set ASPNET user permission to full control then its working fine. Pls suggest me What did I do wrong?

this is my Code

// strSitePath : Application Folder
// strUserName : ASPNET

SecurityDescriptor secDesc = SecurityDescriptor.GetFileSecurity(strSitePath, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);

Dacl dacl = secDesc.Dacl;

Sid sidUser = new Sid (strUserName);
dacl.AddAce (new AceAccessAllowed (sidUser, AccessType.GENERIC_WRITE | AccessType.GENERIC_READ | AccessType.DELETE | AccessType.GENERIC_EXECUTE , AceFlags.OBJECT_INHERIT_ACE | AceFlags.CONTAINER_INHERIT_ACE));
secDesc.SetDacl(dacl);
secDesc.SetFileSecurity(strSitePath, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);



Rin

# re: Setting NTFS Permissions with C#

Thursday, July 29, 2004 8:30 AM by David Cumps

The full control checkbox is checked? Hmm, i don't really know what could be the problem then, sorry.

# re: Setting NTFS Permissions with C#

Thursday, July 29, 2004 10:31 AM by Rin

Hi Cumps
nice to meet you

yes its checked but i am unable to get the files from sub folders




Rin

# re: Setting NTFS Permissions with C#

Thursday, July 29, 2004 12:43 PM by Rin

Hi Cumps

with your code only root directory getting the Full control permission.
How to get the permissions to sub folders of that root directory.





Rin

# re: Setting NTFS Permissions with C#

Thursday, July 29, 2004 1:55 PM by David Cumps

Normally that gets passed because of the "AceFlags.OBJECT_INHERIT_ACE | AceFlags.CONTAINER_INHERIT_ACE", but since you have them set I don't really know what's happening

# re: copying NTFS Permissions with C#

Friday, July 30, 2004 10:37 AM by MVB

I have a question
..
I am copying some files from one folder to another.
I want to copy the NTFS permissions of the files too
Any Idea on how to do that???

Thanks
MVB

# re: Setting NTFS Permissions with C#

Friday, July 30, 2004 11:09 AM by David Cumps

Simple way? xcopy /o (/O : Copies file ownership and ACL information.)

Hard way? Try fo find if File.Copy somehow supports keeping NTFS settings, if not, File.Copy the files over and then use this library to read the rights from the source and apply them to the destination

string sourceFile = @"C:\bla\blaat.doc";
strinc destinationFile = @"C:\somehwere\blaat.doc";

SecurityDescriptor secDescS = SecurityDescriptor.GetFileSecurity(sourceFile, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);
Dacl dacl = secDescS.Dacl;

SecurityDescriptor secDescD = SecurityDescriptor.GetFileSecurity(destinationFile , SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);
secDescD.SetDacl(dacl);
secDescD.SetFileSecurity(destinationFile , SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);

---
I'm not sure if this way works, if it does, it's shorter:

SecurityDescriptor secDesc = SecurityDescriptor.GetFileSecurity(sourceFile, SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);
secDesc.SetFileSecurity(destinationFile , SECURITY_INFORMATION.DACL_SECURITY_INFORMATION);

# re: A Console IRC Bot.

Friday, July 30, 2004 9:03 PM by chris

good

# re: Setting NTFS Permissions with C#

Saturday, July 31, 2004 10:40 AM by Rin

Hi Cumps
This is Rin

using your code can you tested the permissions for the Root directory and sub directories of that root directory?

can you have any idea or code for that Pls do favour.


Thanks
~Rin.

# re: Setting NTFS Permissions with C#

Sunday, August 01, 2004 9:20 AM by David Cumps

Right, First, there is NO way this line gives full control:

dacl.AddAce (new AceAccessAllowed (sidUser, AccessType.GENERIC_WRITE | AccessType.GENERIC_READ | AccessType.DELETE | AccessType.GENERIC_EXECUTE , AceFlags.OBJECT_INHERIT_ACE | AceFlags.CONTAINER_INHERIT_ACE));

This Gives 'Modifiy' rights, nothing more, nothing less.

This on the other hand will give you Full:

dacl.AddAce (new AceAccessAllowed (sidUser, AccessType.GENERIC_ALL , AceFlags.OBJECT_INHERIT_ACE | AceFlags.CONTAINER_INHERIT_ACE));

So replace your line by mine and try again.

# @-notation IS legal...

Monday, August 02, 2004 3:56 AM by Ake

therefore I used it for this novel site name (for Automation people). It is also the reason it is widely used by spammers to hide adresses.

Regards / Ake.Hansson.se (just type hansson with a @)

I quote from a W3C document:

3.2.2. Server-based Naming Authority

URL schemes that involve the direct use of an IP-based protocol to a
specified server on the Internet use a common syntax for the server
component of the URI's scheme-specific data:

<userinfo>@<host>:<port>

where <userinfo> may consist of a user name and, optionally, scheme-
specific information about how to gain authorization to access the
server. The parts "<userinfo>@" and ":<port>" may be omitted.

server = [ [ userinfo "@" ] hostport ]

The user information, if present, is followed by a commercial at-sign
"@".

userinfo = *( unreserved | escaped |
";" | ":" | "&" | "=" | "+" | "$" | "," )

Some URL schemes use the format "user:password" in the userinfo
field. This practice is NOT RECOMMENDED, because the passing of
authentication information in clear text (such as URI) has proven to
be a security risk in almost every case where it has been used.


# re: Unable to launch notepad from 'Run' or view HTML source

Tuesday, August 03, 2004 6:30 AM by Atilla Kurucan

is this problem sorted out? I have the same problem as you mentioned. What is the exact solution?

# re: Unable to launch notepad from 'Run' or view HTML source

Tuesday, August 03, 2004 6:45 AM by Atilla Kurucan

Aha, I fixed it out. But strange, there was 2 applications under windows\system32, notepad.exe and notpad.exe. I tried to copy a new notepad.exe from another computer to mine, and it said that "I am trying to copy ower notpad.exe. Could it be because of a trojan or virus? Anyway I backed up old files, I copied the new notepad to the original path and I deleted notpad.exe. It works.

# re: Unable to launch notepad from 'Run' or view HTML source

Tuesday, August 03, 2004 11:26 AM by David Cumps

Good thing you could fix it :)

# re: Outlook and C# - Gather Addresses

Wednesday, August 04, 2004 1:55 AM by zhuhuafeng

good

# re: Outlook and C# - Gather Addresses

Wednesday, August 04, 2004 2:07 AM by zhuhuafeng

How Open *.pst file ???

# re: Custom Run Box (Resource Hacking)

Saturday, August 07, 2004 2:13 AM by javaid

hello please my run menu

# re: Bad IT people

Wednesday, August 25, 2004 5:04 PM by Jochen

I even know much of this stuff... And I'm not even an IT-er... SHAME ON THEM!!

# re: Bad IT people

Wednesday, August 25, 2004 5:11 PM by foo

Yeah, I know lots of "IT" people that can't understand what a LAN IP is... Sigh...

And RAM. That's so funny. We used to have a guy here that didn't understand the concept of LOW DENSITY SDRAM. Loser.

# re: Bad IT people

Wednesday, August 25, 2004 6:42 PM by Damian

* Can't spell "lose" when posting to a blog or message board.

# re: Bad IT people

Wednesday, August 25, 2004 6:45 PM by David Cumps

:p "are not native english speakers"

# re: Nothing compares to you...

Wednesday, August 25, 2004 7:28 PM by Jochen

Cool, but I still, can't understand the language you coded it in... But I find the matches with the song ;)

# RE: Bad IT people

Wednesday, August 25, 2004 10:07 PM by don@ghostdev.ca (Don Newman)

After "Destroy their mobo and CPU by installing a printer" I'm going to be picturing somebody trying to install a printer internally for days . When I first read about the Ctrl-Alt-Del I thought you were being picky about HOW they did it, which Ctrl and Alt keys and what fingers, but then realized you mean either hitting the wrong keys or hitting Del first. I just take for granted that anyone using a computer more than a week has picked up on most of this stuff, but for an IT person to not know it makes me wonder what kind of favors they had to do to get the job.

# re: Bad IT people

Wednesday, August 25, 2004 10:28 PM by Darren Oakey

"Believe that MSN is the only IM"

hmm... I believe MSN is the only IM [that matters]. Does that make me a bad IT person? :)

# re: Nothing compares to you...

Thursday, August 26, 2004 9:52 AM by Russ C.

It was 'Prince' first of all, Sinead O'Conner did a cover of it.

# re: Bad IT people

Thursday, August 26, 2004 12:31 PM by David Cumps

no, because you added the [ ] part :)

The ctrl-alt-del went something like this: position your 3 fingers in the air above the right buttons and then in a millisecond put them down, hopinh they will hit ctrl alt del simultaniously, repeat if it didn't, i saw them repeat it 6 times :p

# re: Nothing compares to you...

Thursday, August 26, 2004 12:32 PM by David Cumps

Sorry :) I didn't knew it from the start, someone told me on ICQ.

# re: Bad IT people

Friday, August 27, 2004 10:53 PM by BertG

Can not shutdown a windows XP computer in 5 blind! keypresses :p

# re: Nothing compares to you...

Friday, August 27, 2004 10:56 PM by BertG

Sinead O'Conner version is GOOOD!
and now I'll think of this code, instaid of enjoying the song :s :p

# re: Bad IT people

Saturday, August 28, 2004 3:14 PM by David Cumps

I believe it's 4 keypresses here?
Win - Arrow Up - Enter - Enter
(if Shutdown is the default option in the dropdown :))

# re: Windows XP Pro and IIS5 - Multiple Sites

Wednesday, September 01, 2004 11:38 AM by Gabriel

well...theres an ISAPI filter that supposedly allows you to actually RUN multiple sites concurrently with XP Pro...and IIS 5.x

its called multisite...you can google for it.

i couldnt make it work though..if you can, let us know.

Gabe.

# re: Windows XP Pro and IIS5 - Multiple Sites

Wednesday, September 01, 2004 11:47 AM by iis guru

check out multisite2 at http://www.hairy-spider.com/multisite.aspx

should do exactly what you require

# re: Hacking Uxtheme.dll - Watercolor Theme

Wednesday, September 01, 2004 12:03 PM by Jochen

THIS watercolor thems is so sweet! This tutorial is great =) much bettery then that Windows XP Silver look ;)

And again, gratz to the man ;)

# re: Windows XP Pro and IIS5 - Multiple Sites

Wednesday, September 01, 2004 12:10 PM by Wim Hollebrandse

Bloody heck! Talk about coincidence! I just got my new laptop, a Dell Inspiron 8600 and just installed a fresh Windows XP Professional, and remembered seeing this cool utility that allowed you to create multiple web sites in IIS on XP Pro, but couldn't remember where...

So - thanks!!!

# re: Windows XP Pro and IIS5 - Multiple Sites

Wednesday, September 01, 2004 12:33 PM by David Cumps

Tnx for multisite! Going to check it out right after all my blog postings of today ;)

# re: Blog-post record - Using ndiswrapper

Wednesday, September 01, 2004 3:09 PM by Scott

I was unable to get my WLAN card working using the ndiswrapper under Gentoo with kernel 2.4.27, which sucks because I've got a Realtek rtl8180 based card and I want to run the 2.6 kernel. I was able to get the 2.4 drivers from Realtek working under Gentoo. I may have to try it again since I think I had an IRQ problem and not a problem with the actual driver.

Is the Dell trumoble a Realtek based card? I couldn't get a laptop with the Dell card to stay connected to my home WLAN at all. Kept dropping off after it would connect.

# re: Blog-post record - Using ndiswrapper

Wednesday, September 01, 2004 3:51 PM by David Cumps

No, it's a Broadcom BCM 4309 802.11a/b/g mini-pci card. No native driver available :( I hope Broadcom plans on releasing a Linux driver someday.

# re: Random Wallpaper through Scheduled Tasks

Wednesday, September 01, 2004 4:05 PM by Rolf

www.wallpaperchanger.de ...

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:07 PM by Wade Beasley

wade.beasley@insightbb.com

Thanks,
Wade

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:10 PM by Robin

email: scndsky@hormail.com
firstnaam: doctor
lastname: strangelove

# re: Random Wallpaper through Scheduled Tasks

Wednesday, September 01, 2004 4:11 PM by David Cumps

Hehe, well, there is a tool for the people who want something fast ;)

I just created my thingie because I wanted to try :p Gonna add a random function to it that picks one from a directory instead of a number, so that I can just drop in .bmps in a directory to configure it.

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:13 PM by David Cumps

An invitation has been emailed to your friend Wade at wade.beasley@insightbb.com.
An invitation has been emailed to your friend doctor at scndsky@hotmail.com

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:14 PM by Seminary Boy

First: Seminary
Last: Boy
Email: seminaryboy2004@yahoo.com

Tx,
James

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:25 PM by mike wikstrom

First: Mike
Last: Wikstrom
Email: mikewikstrom@hotmail.com

Thanks

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:27 PM by David Cumps

An invitation has been emailed to your friend Seminary at seminaryboy2004@yahoo.com
An invitation has been emailed to your friend Mike at mikewikstrom@hotmail.com

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:33 PM by mike wikstrom

Sorry, I forgot my junk mail gets deleted immediately. Could you send it again, Please?

Mike Wikstrom
mikewikstrom@hotmail.com

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:50 PM by Domagoj Kovač

Name: Domagoj
Lastname: Kovač
email: domagojkovac@yahoo.com

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 4:54 PM by David Cumps

An invitation has been emailed to your friend Domagoj at domagojkovac@yahoo.com

Mike, i forwarded the request again :)

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 5:02 PM by mike wikstrom

Thanks a lot, you rock!

# re: Hacking Uxtheme.dll - Watercolor Theme

Wednesday, September 01, 2004 5:08 PM by Derick Bailey

or you could take the easy route and go get something like http://themexp.org/ or http://www.windowblinds.net/

i use windowblinds, personally... and don't have to worry aboug "hacking" any system files to use it. I installed XP SP2 right on top of my existing WindowBlinds, and never had to think about it because it works right.

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 5:13 PM by sajeevan

sajeevan@free.fr

thanx,

# re: Hacking Uxtheme.dll - Watercolor Theme

Wednesday, September 01, 2004 5:14 PM by David Cumps

Too bloated list time I used Windowblinds ;)
And the easy way is just toooo easy :p

But ok, if you want theme's the easy way, use a program from the above comment.

I'm convinced I want it 'native' instead of having a 3rd-party program do it for me, and I like tweaking and fiddling with my system =) (Norton Ghost = rescue)

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 5:14 PM by David Cumps

first name, last name?

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 6:15 PM by Raj Menon

fname: Raj
lname: Menon
email: ozone@iname.com

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 6:27 PM by David Cumps

An invitation has been emailed to your friend Raj at ozone@iname.com

Fun, I just got more invites.. "You have 5 invitations left"

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 7:10 PM by Mario

fname: Mario
lName: chavez
email: chavezmarioalberto@msn.com
Thanks

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Wednesday, September 01, 2004 7:16 PM by David Cumps

An invitation has been emailed to your friend Mario at chavezmarioalberto@msn.com

# re: Open Java and .NET Programmer functions

Thursday, September 02, 2004 4:23 AM by Rudi

Ah, those people sent me a mail on 19/7 too. A new way of head-hunting. ;-)

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Thursday, September 02, 2004 4:35 AM by Rudi

David, while you are at it; just for curiosity and comparison (since my hotmail now has a whopping 2GB of space too!!)

First name: Rudi
Last name: Larno
e-mail: ThaRudeDude@hotmail.com

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Thursday, September 02, 2004 5:14 AM by David Cumps

An invitation has been emailed to your friend Rudi at ThaRudeDude@hotmail.com.

3 invites left :)

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Thursday, September 02, 2004 5:57 AM by doug_woznicki@hotmail.com

Cool.. I am trying to get one.. I love testing. Its hyped but interesting just the same.. Thanks

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Thursday, September 02, 2004 6:02 AM by David Cumps

An invitation has been emailed to your friend doug at doug_woznicki@hotmail.com

2 left

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Thursday, September 02, 2004 6:05 AM by sajeevan

sajeevan@free.fr

first name : Sajeevan
last name : Jay


thanx,

# re: Six Invites to the Most-Hyped-Mail-Service-Of-The-Year, aka GMail

Thursday, September 02, 2004 7:01 AM by David Cumps

You have 0 invitations left
An invitation has been emailed to your friend Sajeevan at sajeevan@free.fr.

Done, all are gone :)

# re: What is so exciting about GMail?

Friday, September 03, 2004 2:24 AM by TrackBack

# re: Hacking Uxtheme.dll - Watercolor Theme

Friday, September 03, 2004 10:43 PM by BertG

same here, theme hacking is actually more easy :)

# re: The Invisible Administrator

Wednesday, September 08, 2004 8:58 AM by Dhoore

this is very funny :D
admin rights, it could come in handy some day ;)

greets

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Wednesday, September 08, 2004 1:18 PM by toby

I fail to see how having to hack your registry to get a simple feature refutes the benefit of the same feature built in to a competing browser. Shouldn't easy things be ... easy?

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Wednesday, September 08, 2004 1:33 PM by David Cumps

It's about the fact that the code is built in apparently, but there's no GUI for it. And about the fact that IE can have the same things as well, thus loosing an argument for converting...

Double clicking a .reg file isn't difficult

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Wednesday, September 08, 2004 2:29 PM by toby

Well, that's nearly valid, but it does beg the obvious question doesn't it?

Opening a .reg file may not be difficult for a non-developer, but creating one is.

Fortunately (or unfortunately depending on your viewpoint), keywords are among the least important advantages they've got over IE.

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Wednesday, September 08, 2004 3:43 PM by David Cumps

True, but in my conversation they used that argument, I simply wanted to get rid of that argument :p

In my opinion, it's just a matter of taste. Tabbed browsing, very hyped, IE doesn't have it, I used both, but I don't really feel tabbed browsing as something *wow* or something that would make me switch to firefox permanently.

I still need to get some really strong arguments on why to switch, some real added-value. Mouse gestures... don't need them, got shortcuts, tabs, I multitask with alt-tab for years, probably goes as fast as tabbed browsing (ah, I don't group windows in the taskbar as well, that's the frustrating feature, with a high resolution it's easy to even find your IE windows back without alt-tab), standards compliance.. good, except that it's less tolerant on shitty css-files, actually making some sites look worse than better. (example; text-align: center on a div, might nog really center it, you need to have left and right margin set to auto..)

Security arguments are probably the strongest, and I agree, it's some real treath to regular users. I'm running Ie with higest security settings, for 2 years now, never had a problem.... but I know what to trust and what to distrust ;)

So, my final conclusion: It's just taste, use the browser you like the most.

I always try to steer away from browser discussions, because I really don't care what someone else uses, as long as I can use the thing I want, the same with some OS-wars :p

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Wednesday, September 08, 2004 3:59 PM by toby

I agree. Use what you want, or are used to. So long as you're informed.

I would, however, strongly discourage people from hacking their registry to get the keyword feature, especially if they don't know what they're doing. If that's an important feature, switch.

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Wednesday, September 08, 2004 4:06 PM by David Cumps

Left side: "Disclaimer
I (David Cumps) cannot be held responsible for any damage what-so-ever that might come from this blog."

And it's under 'Tweaks'. You'd be a fool if you read a dev's blog, with something about registry keys, about adding undocumented features along with something you don't understand.

Just like I would never touch a single part of a car's engine when I read about some modification to increase performance on a mechanic's blog ;)

# re: The Invisible Administrator

Thursday, September 09, 2004 12:01 AM by Phezult

Never had that happen before, but having four computers with the sam e administrator password grants me full access to them all. Plus, I use the C$ share to navigate to folders via navigation bar. Very few people ever realize that Windows 2000 (and XP, I think) default share your hard drive to anyone with the admin password; no matter WHERE you are on the network.

Maybe you're the "one."

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Thursday, September 09, 2004 1:05 AM by Kristof

# re: The Invisible Administrator

Thursday, September 09, 2004 4:15 AM by David Cumps

lol :p
Too bad it doesn't happen to my new account ;)

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Thursday, September 09, 2004 4:17 AM by David Cumps

Point being? Do you actually read my post? I know mozilla and firefox have it, I showed how IE can have it to, just like posted in all previous comments...

Predictable, when you talk about IE and a feature that mozilla has, there is *ALWAYS* someone to point you out to a page about it

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Thursday, September 09, 2004 7:17 AM by Kristof

"It's about the fact that the code is built in apparently, but there's no GUI for it."

Just want to point out that there is a GUI for it in Mozilla (Firefox)! *sigh*

# re: BENUG Test Driven Development Session - TestDriven.NET

Thursday, September 09, 2004 5:51 PM by Dhoore

seems intresting, i wish i was there too,
it's a shame i had to work

# re: Random Wallpaper through Scheduled Tasks

Thursday, September 09, 2004 5:54 PM by Dhoore

i tried it, but i had a little problem, when the wallpaper changed it didn't show the wallpaper althoug it was selected as background in the registry. But i had the color blue as background

# re: Fix Outlook Contacts Phone Number "+32" with C#

Tuesday, September 21, 2004 2:56 PM by jackofall

Hi Just tried this with Oulook 2003 and got an exception error?

Thanks

# re: Fix Outlook Contacts Phone Number "+32" with C#

Tuesday, September 21, 2004 2:59 PM by David Cumps

Which error? Tried debugging? Which line was the error when you debugged?

Greets :)

# re: Add IE Features - New keywords (yeah, the ones Firefox users are so proud of)

Tuesday, September 28, 2004 11:01 AM by Hannibal Gent

huh? What are you talking about? Is there a dummy version, 'cause I can't follow any longer. I'm just an user who only use ready made programm's. I'm trying Firefox for the moment, but I can hardly find differences between Firefox and IE and no, I don't have the intention to play with reg's in IE neither in Firefox.

# re: Windows XP Pro and IIS5 - Multiple Sites

Wednesday, September 29, 2004 12:24 PM by Stephen

Forget Multisite - its ok for very basic flat sites but can't handle asp. Read through their support forum backwards and it will save you a lot of time.

# re: Different Actions - Same Result

Wednesday, December 01, 2004 8:04 PM by Jeff

If you're using multiple monitors of any sort you're doing yourself a disservice without checking out UltraMon (http://www.realtimesoft.com/ultramon/). It's amazing. Nice little window icon next to minimize that lets you send it to another monitor, no dragging and minimizing, maximizing hassle. That in and of itself was worth it for me. But has other features too.

# re: Different Actions - Same Result

Wednesday, December 01, 2004 8:06 PM by Jeff

wow, commented on the wrong post in the wrong tab. delete me, or ignore me, please :)

# re: Different Actions - Same Result

Thursday, December 02, 2004 11:29 AM by David Cumps

But it's true, UltraMon rox :) I'm using it as well =)

# re: Different Actions - Same Result

Saturday, December 11, 2004 11:48 PM by KĄTNY

OK!

# Setting NFTS Permissions with C#

Monday, December 13, 2004 5:43 AM by TrackBack

# Non-Rectangular Forms with .NET

Monday, January 03, 2005 10:44 PM by TrackBack

# re: BlogCast - Alternate Data Streams

Wednesday, January 05, 2005 6:38 PM by Jochen

I think if I watch this a few times, I will sure be able to understand it for 100% :p No, I mean it, it is very clear, very nice coded, if you ask me. Think you did some pretty good job with this.

I've learned a lot (except the coding, because I don't code off course, it's not my thing ;) ) .

You're always doing some great things, really!

Greets,

Jochen

# re: BlogCast - Alternate Data Streams

Wednesday, January 05, 2005 6:47 PM by Dhoore

I think it's very good, nice talking, nice presentation!
Those alternate datasources are actually very strange i think :p but they might be usefull sometimes :)

And shouldn't you be studying in stead of making blogcasts? ;)
Just kidding.

Well keep up the good work, i hope you will make some more blogcasts in the future.

Greets

# re: BlogCast - Alternate Data Streams

Thursday, January 06, 2005 3:54 AM by Laurens Vandeput

Like I said already very nice job! I've watched it already a few times and it's a very clear presentation.

Keep up the good work!

Laurens

# re: 93% Nerd :p

Friday, January 07, 2005 6:57 AM by BertG

I'm only 47% nerd :p!

I'm neoNerd (still defining that, and no... nothing to do with the Matrix)

# re: BlogCast - Alternate Data Streams

Friday, January 07, 2005 7:00 AM by BertG

I like it!
But a bit more enthousiasm would be great! :p

# re: 93% Nerd :p

Saturday, January 08, 2005 9:28 AM by James Crowley

Somehow I've only managed to get 40 - Lightly nerd. Not quite sure how. That's good, right? :p

# re: Trying Microsoft Fingerprint Reader

Saturday, January 08, 2005 9:56 AM by Spike

cool

where can I buy it :-)

no serious, this could be a huge succes, cause most of the dummy users hate to give those passwords, logons, etc...
me well, kinda used to it so to give in a pass or to not give in a pass really just takes a second two type it in. But what I do think is that it'll be harder to hack those passwords cuz you aint got any :-).
You could begin to think in 007 style with special techniques so you can hack in those systems but that's kinda futurustic isn't it ;-)?
Any way can't wait to test it!

# re: 93% Nerd :p

Saturday, January 08, 2005 10:04 AM by Spike

56% nerdy :-)

# re: Trying Microsoft Fingerprint Reader

Saturday, January 08, 2005 10:08 AM by Dhoore

nice stuff!
i would want one too, then i don't have to type my password everytime i want to log in at a website or at windows :)
that would save me a second or 2 :p

# re: Trying Microsoft Fingerprint Reader

Saturday, January 08, 2005 11:34 AM by Nibbler

hmm, i think the only difficulty to hack it, is that you have to obtain the code of the fingerprint. As far as i think the fingerprint will somehow be turned into a unique code, and it checks if the code is identically. Well if you can manipulate the input and get hold of the person's fingerprintcode, you can hack it.

# re: Trying Microsoft Fingerprint Reader

Saturday, January 08, 2005 12:41 PM by FD

I've been working with the MS Fingerprint Reader when it just came out, and it's a typically MS consumer product. It works with MS software, anything else, you're boned.

I don't even understand how you have the guts to say "it doesn't matter if it doesnt work 100% on FireFox, because a normal user uses IE." I'm not a big fan of FireFox either, but statements like these really make me - and probably others - question your intelligence. What good is a fingerprint reader if you can only use it in this and this and this situation?

As for my experiments with it, the hardware performed pretty well - although this is of course no accomplishment of MS itself, but rather DigitalPersona, the hardware manufacturer.

What's also pretty depressing is that there is no SDK for this fingerprinting device available. MS does not ship its own, and the DigitalPersona SDK doesn't work with the MS model. I'm still looking for as to why that is usefull, because as for my product, I had to go look for another fingerprint reader, and drop support for MS's one. Real pity.

Basically, all MS did was get the hardware from someone else, somehow make it _not_ work with their SDK and write a pretty looking shell around it. Boring.

# re: Trying Microsoft Fingerprint Reader

Saturday, January 08, 2005 1:47 PM by David Cumps

Nibbler: Indeed, I tried 'hacking' it already when trying to use a left behind fingerprint, but didn't work (but I'm not a specialist in fingerprints either :p)

You forget that normal users are boring per definition.

And about the Firefox issue, if it would be a professional device then I would fall over it, but now it's nothing more then a toy. And I don't really want to start a browser discussion here, I might expressed myself a bit too much in general, so here I go again 'most normal users use IE'.

I really don't care what browser you use :)

# re: Trying Microsoft Fingerprint Reader

Saturday, January 08, 2005 2:44 PM by BertG

no FF suport => kill it :p
nah joking :p
think it's a cool gadget, but i can do without right now.

Maby if I'm gray and old, my child will buy me one, cause i won't be able to handle pc's :)

# re: Trying Microsoft Fingerprint Reader

Saturday, January 08, 2005 11:25 PM by Javier Luna

Nice post...!!!

# re: Trying Microsoft Fingerprint Reader

Sunday, January 09, 2005 12:06 PM by Young Crazy Fool

It's a very nice piece of hardware. I also had the change to test it and i loved it. To bad i had to give it back

# Searching Your Blog

Tuesday, January 11, 2005 11:05 AM by TrackBack

# Just added search to my site

Tuesday, January 11, 2005 12:47 PM by TrackBack

# Search my blog

Tuesday, January 11, 2005 1:42 PM by TrackBack

# re: Searching my blog

Tuesday, January 11, 2005 2:52 PM by TrackBack

# Google Your Own Blog

Tuesday, January 11, 2005 2:56 PM by TrackBack

# Add Search to .Text

Tuesday, January 11, 2005 3:12 PM by TrackBack

# Adding Search to my Blog

Tuesday, January 11, 2005 4:21 PM by TrackBack

# re: Adding Search to my Blog

Tuesday, January 11, 2005 4:22 PM by Matt Hawley

Nice post, but your own search doesn't work - at least in FireFox.

# re: Adding Search to my Blog

Tuesday, January 11, 2005 4:39 PM by David Cumps

Now it works ;)

# re: Adding Search to my Blog

Tuesday, January 11, 2005 4:53 PM by Rob Chartier


Works awesome.

Also note that I changed the google url to .COM instead of .BE for the standard English site.

Thanks.

# re: Adding Search to my Blog

Tuesday, January 11, 2005 5:04 PM by Matt Hawley

Awesome, added it to my blog too :) Thanks for sharing!

# Added Search and MS Alerts to my Blog

Tuesday, January 11, 2005 6:14 PM by TrackBack

# Add a google search to your blog

Tuesday, January 11, 2005 7:10 PM by TrackBack

# Adding Search to my Blog

Tuesday, January 11, 2005 8:23 PM by TrackBack

# re: Adding Search to my Blog

Tuesday, January 11, 2005 8:23 PM by Heather

David...you are a rock star! Once I figured out exactly what to paste, it worked great! THANK YOU!

This might be a stupid question, but if I replace the google.com/search with MSN's search site, would it work for MSN also? Don't laugh at me for not knowing this ; ) I'm sure that some of the code would be the same..would I have to change anything else?

# re: Adding Search to my Blog

Tuesday, January 11, 2005 8:29 PM by Anatoly Lubarsky

Heather: for MSN it will be
search.msn.com instead of www.google.com and
search.yahoo.com for yahoo

# re: Adding Search to my Blog

Tuesday, January 11, 2005 8:31 PM by Anatoly Lubarsky

David, some enhancements:
you should use escape(oInput.value), since your search will not work for queries like c# or alike and you can use window.open instead of top.location, it would be better I think

# re: Adding Search to my Blog

Tuesday, January 11, 2005 8:43 PM by Heather

Anatoly...I tried that and it still searched in google..which I thought was really weird. I pasted it into the same place (static news). Is there something I should insert between them? I don't know why it would still search google even after I put MSN in there.

Here's what I used (Sorry David for clogging up your comments section):

<h3>Search my Blog Using MSN</h3>
<input class="BlogSearch" type="text" name="searchBox" id="blogSearchText" value="" onkeypress="return blogSearch(event, this);">
<input type="button" value="Search" onclick="return blogSearch2('blogSearchText');" class="BlogSearchButton">
<script type="text/javascript">

function blogSearch(event, oInput) {
var keyCode = (event) ? event.keyCode : keyStroke.which;
if (keyCode == 13) {
top.location = 'http://www.search.msn.com/search?q=">http://www.search.msn.com/search?q=' + oInput.value + '+inurl%3heatherleigh+%3Aweblogs.asp.net';
return false;
} return true;
}

function blogSearch2(oInputId) {
var oInput = document.getElementById(oInputId);
top.location = 'http://www.search.msn.com/search?q=">http://www.search.msn.com/search?q=' + oInput.value + '+inurl%3Aheatherleigh+%3Aweblogs.asp.net';
return false;
}
</script>


Is there something I should change? I can't believe I am asking for coding advice..I might have to bookmark this!

# Added Search to my blog

Tuesday, January 11, 2005 11:27 PM by TrackBack

# Adding Search to your .Text Blog

Wednesday, January 12, 2005 2:11 AM by TrackBack

# Add a Search box to your blog

Wednesday, January 12, 2005 2:59 AM by TrackBack

# re: Adding Search to my Blog

Wednesday, January 12, 2005 6:08 AM by David Cumps

Thanks for your positive comments, obviously there is a need to add search to this .Text version :p

Anatoly:
I added escape(), tnx for the tip!

Heather:
I made it easy or you and added an MSN version (which you can use together with the google one if you want, the function names are different)

# re: Adding Search to my Blog

Wednesday, January 12, 2005 7:00 AM by Dennis v/d Stelt

No idea if I can say this, but Scott promised me last weeks of december that in january a new version of .Text would be released.

But a few days ago I got an email that it's gonna be "next couple of weeks" for the release! :)

# Search in blogs

Wednesday, January 12, 2005 7:03 AM by TrackBack

# re: Adding Search to my Blog

Wednesday, January 12, 2005 7:06 AM by David Cumps

Cool, hopefully it will run here as well :p curious to see the new features

(update: fixed MSN version, made a typo in the function name)

# re: Adding Search to my Blog

Wednesday, January 12, 2005 9:34 AM by James Geurts

You rock man! Thanks!

# Do you like reading a blog author? Retrieve all blog entries locally for reading/searching using XML, XSLT, XPATH

Wednesday, January 12, 2005 10:36 AM by TrackBack

# Add search to

Wednesday, January 12, 2005 10:38 AM by TrackBack

# re: Adding Search to my Blog

Wednesday, January 12, 2005 11:08 AM by Dhoore

nice going, rock star ;)

# Add search to .Text Blogs!

Wednesday, January 12, 2005 11:47 AM by TrackBack

# re: Adding Search to my Blog

Wednesday, January 12, 2005 6:28 PM by AT

IANAL,
But it looks like you have violated section "2.3 Attribution" of Google Free search argeement at http://www.google.com/services/terms_free.html by not providing a Google logo.

As well you have violated section "1.5 Exclusivity" by offering a link to MSN search on same website.


IMHO, The best way to use Google is to plug in this code:
<FORM method="GET" action="http://www.google.com/search">
<INPUT TYPE="text" name="q" size="25" maxlength="255" value="">
<INPUT TYPE="hidden" name="as_q" value="inurl:/heatherleigh">
<INPUT TYPE="hidden" name="as_sitesearch" value="blogs.msdn.com">
<INPUT TYPE="submit" name="btnG" VALUE="Search in blog">
</FORM>
<a href="http://www.google.com">
<IMG SRC="http://www.google.com/logos/Logo_25wht.gif" border="0" ALT="Powered by Google">
</a>

Take a look - different q and as_q params used ;-)

The only (but huge for me) problem is nested forms due to global ASP.NET form one.
Possibly some kind of ASP or CSS trick requered :-(
Anybody can workaround nested forms problem in ASP without javascript ? I'm not an ASP person :-(

For all others who does not use ASP - and can reallign <form>'s in their templates - my solution will be acceptable.

# re: Adding Search to my Blog

Wednesday, January 12, 2005 7:14 PM by David Cumps

Problem solved, no Google search then for now... I don't want any of those logos disrupting my layout. No visitors for Google then from here.

CSS tricks to change form logic? you have read too many service agreements and not enough code :p

Just because there is the form 'problem' with ASP.NET the solution is Javascript (as you can read on the blog I linked)

PS: Now I really hope there will be an integrated .Text search soon, just to get rid of 'violating' agreements.

PS2: Ok, I'll make a google graphic myself, as that is allowed by their agreement, just not an official graphic ;)

# re: Adding Search to my Blog

Wednesday, January 12, 2005 7:26 PM by David Cumps

Guess what, now i'm ok with the Attribution and Exclusivity sections of Google's agreement :p And my site is still small-style ;)

# Adding Search to my blog the MSN Search Beta way

Thursday, January 13, 2005 2:56 AM by TrackBack

# Google Your Own Blog

Thursday, January 13, 2005 7:40 AM by TrackBack

# re: Adding Search to my Blog

Thursday, January 13, 2005 9:12 AM by AT

Forgive me. Do not take this personaly - but you are again in trouble,

Take a look on this page:
http://www.google.com/stickers.html

And take a read

http://www.google.com/permissions/guidelines.html
"One of the conditions for all uses is that you can't mess around with our logo. Only we get to do that. "

"If you are using the Google logo on a web page, there must exist a minimum spacing of 25 pixels between each side of the logo and other graphic or textual elements on your web page"

Probably the best way to is to add "Powered By" logo at the footer of your page near .TEXT and ASP.NET logos.
You are not allowed to play with logos as you wish - there are strict rules :-(

BTW, Goggle is not lonely in regulating all uses of their products. For Microsoft there are huge dedicated website with details with Do and Don't at http://www.microsoft.com/permission/
In the same time - there are rules for MSN search box (they do not allow to play with box code - but does not requere Exclusivity) http://beta.search.msn.com/docs/affiltou.aspx


For Intel - http://intel.com/sites/corporate/tradmarx.htm
Even Redhat has strict rules about trademarks and all communications at http://www.redhat.com/legal/legal_statement.html

Doing software/web-site development is not technical-only job. You need to play fair on legal side too and respect permissions that others people grant to you.

# re: Adding Search to my Blog

Thursday, January 13, 2005 10:31 AM by David Cumps

No more search then, let's wait for the integrated search.

# Add Searching to your .TEXT blog

Thursday, January 13, 2005 11:07 AM by TrackBack

# re: Adding Search to my Blog

Thursday, January 13, 2005 1:36 PM by Dennis v/d Stelt

Seriously? I think Google is full of shit on the guidelines. Same goes for the NedStat picture, you can't change it. But I've never had any difficulties. And if Google starts complaining, I'll remove it.

But for now I'm keeping it...

# Due to requests I added a Search feature to the blog

Friday, January 14, 2005 4:50 PM by TrackBack

# re: Adding Search to my Blog

Friday, January 14, 2005 7:23 PM by gretchen

David - Thanks for taking the time to write this. Very, very, very useful and helpful!!

# re: Coming soon...

Saturday, January 15, 2005 11:37 AM by TrackBack

# re: Personality Tests

Sunday, January 16, 2005 12:07 PM by BertG

Your Dominant Intelligence is Logical-Mathematical Intelligence that is 18 years old :p
(didn't do the other tests)

yeah, thats me :)

# Search my Blog

Sunday, January 16, 2005 11:08 PM by TrackBack

# re: BlogCast - Alternate Data Streams

Monday, January 17, 2005 10:05 AM by FrankPr

Great! Thanks, that was elucidating.

# re: Personality Tests

Monday, January 17, 2005 11:34 AM by BertG

And I'm a number 7

Happy and chearfull, multi talented and succesfull!
I'm not open...

well they can't always be right :p

# re: Personality Tests

Monday, January 17, 2005 11:35 AM by David Cumps

My brother's 7 as well :p

# We've added a bit of

Monday, January 17, 2005 8:14 PM by TrackBack

# Search Added

Tuesday, January 18, 2005 10:53 AM by TrackBack

# Search Evan's Blog

Tuesday, January 18, 2005 11:54 AM by TrackBack

# search added

Wednesday, January 19, 2005 9:42 AM by TrackBack

# Search my archives

Wednesday, January 19, 2005 11:21 AM by TrackBack

# re: Adding Search to my Blog

Wednesday, January 19, 2005 8:16 PM by jayson knight

AT nailed it; before you guys all run out and install this code on your site, read my post here: http://zerotrilogy.gotdns.com/jaysonblog/archive/2005/01/18/795.aspx

I lasted all of 4 days before I simply disappeared from the Google index, and it's b/c of the search box. That being said, it's a great idea (thanks David!), but I really wish you'd pull the code from your blog as inevetibaly it could lead to a lot of unhappy bloggers who get banned from Google. I'm not as bitter as I could be, but I'm not entirely thrilled either. It could be many weeks before my site is re-spidered.

Cheers
jayson

# Removed search for now

Thursday, January 20, 2005 1:19 AM by