#region .Net Blog
Welcome David! I'm looking forward to read your posts!
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
thanks for the code ;-)
Re-Enable the Authentication Method of IE
"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
Thanks for the comment. But what does all that in 'Advanced Options' actually do then? :)
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..
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.
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 :)
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>.
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!!!
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
PDC whidbey is in fact "Version 8.0.30703.27 (m2.030828-2105)"...sounds the same to me.
W00T, ended up working somehow.... =P Thanks anyways doh! =)
seems like fun!! i wanted to be there too ;) greets
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.
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.
True, it will only be for Longhorn, other OS's will need Windows Forms still. Too bad, but it's a nice future :)
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
... 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 ;)
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
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
I agree we have to wait for Longhorn for a while, but it's nice to know that it's coming.
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
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
Just add an or in the if statement :p Or convert to url to lowercase first
Microsoft Belgium Developer & IT Pro Days 2004
Use the lh_usa_4051_x86fre_pro.iso image instead of the lh_usa_4051_x86chk_pro.iso image. hth, thomas
I am using the lh_usa_4051_x86fre_pro.iso image :(
Maybe the CD is dodgy?
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?
Burned it twice already, without result. Hopefully it's not the .iso cos that's another download then (bandwidth usage limit's here)
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 :)
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.
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.
Yes, if it continues it takes about 5 hours (noted on other blogs). But the problem is the error popping up on :(
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...
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.
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.
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.
LOL! It proves once again that politicians should stay out of technology.. aahh.. ignorance is bliss.. :-)
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.
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.
nice look, altough it could be touch lighter :)
Also using MA3D?!
Yup, MA3D. You too?
nice tool! it's very usefull, thanks!
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
PHP Syntax Coloring with Visual Studio.NET
very useful thanks from another php coder ;)
PHP Code highlighting in Visual Studio .NET
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
Thanx to another "open" programmer...
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
I added 2 gifs to give you an idea of what it's doing here :)
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
I kinda like the colors, they are indeed kiddie, but i love the buttons! nice work David ;)
well this is some very nice source code you posted here. i think a lot of people can learn from it thanks!
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
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)
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)...
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
Non-Rectangular Forms with .NET
cool! it's kinda funny, and strange :s ;)
Nice, thx voor the answer... will test is someday :)
Cool article!
Thanks, this was just what I was looking for. Doesn't look difficult after all.
I think this 'll be handy :)
nice, verry nice :) but can't the picture be included in the exe-file? -bert-
hmmm, I tought i found that one a while back :p still waiting for the intellisense plugin for PHP :)
Real well done :) I Like it. It has been very usefull
it's very nice, this could by usefull if you want to test small files, cool :)
Forms non rettangolari
Very nice one (y), good work David. I will test it immediately.
Looks like SnippetCompiler: http://www.sliver.com/dotnet/SnippetCompiler/
Thanks for the link! Going to check it out this afternoon, looks wonderfull :)
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
in notepad it are squars, when I copied it to here it were strange Chinese signs. After posting it became ???????? hehe :)
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
Maby easter egg :p
Hmmm, this could be handy :) cya later projects :p
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.
Thankyouverrymutch!
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?
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
BTW, it works with that little file
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.
hu? Damn.. please give me ya email and i`ll send it manually.. strange.. i`ll take a look to the source
http://files.w-nz.com/show.php?id=16&skin=default this one should work (server wouldnt let you download an .exe)
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 :)
Why convert the hashed value to a string? It is still storable - be it a binary field in a DB, or a binary file :)
nice done, yeah in php it's indeed easier :)
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.
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. :-(
we use it in our zosa project and it rocks
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.
gonna use it for asp.net project thanks alot mister elite coder ;) (in a positive meaning that is :p)
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.
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?
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?
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 :) :)
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
Thanks for sharing, Take a look at these efforts too: http://www.sliver.com/dotnet/SnippetCompiler/ http://www.codeproject.com/dotnet/nscript.asp
I used your uploaded project and it has the FormBorderStyle property already set to None.
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 :)
thx
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.
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
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
Rock
Not that I know of, how to make them aware? or how to know if they are :)
Happy birthday David!
Happy Birthday David ! I'm curious about the other two articles.
Congratulations!
happy birthday
Yolly good birthday today :) Good yob in not dieing :p well euh... that is what a birthday is no?
Okay, an other thing to study :p
Thats an other thing I can study... so euh... format... XP? something wrong?
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)
LOLz :p
You have been Taken Out! Thanks for the post.
Thanks for the source code, I'm using it for some stuff I'm playing with. So far it's working perfectly.
There is no Microsoft.Win32.Security package
If you would download the source you'd see what it is :) The GotDotNet sample has that namespace for it's class.
... right, sorry/thanks.
WELCOME
Labo.net
C# is for mental ill peoples:) better leave it.. it will die by itself soon
some people still believe in fairy tales ;)
WHhhhhaaaa.. YOU SAVED MY DAY !!!!! ") Thank you God,!!
Thank You VERY MUCH!
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.
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)
yeap! RPG! i think it stands for Role Playing Games.....:p
RPG Really Painfull & Gruesome :-)
Sorry, where's the asp.net?
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.
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.
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 ;)
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.
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...
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];
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 :)
Congrats! Already a FBB (Famous Belgian Blogger)! ;-)
we will go for a long time, walk and run. I'm sure about that ;-)
Congrats David :)
maby I'll try it again, previous version wasn't that good...
Taking notes... could use it soon :p
php, you can fit "anything" in a var.. string, int, char :) C# a var can only contain one type of data-struct, no?
You go girl! boy...
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)
nice article,it quench my programming hurdel....
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...
Notepad has to guess the encoding and can be tricked into guessing wrong.
you forgot to mention me :p
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.
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.
Ok, I updated the title and comments, it's now Small Console ChatServer :) and you can telnet to it ;)
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.
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
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 :)
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.
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
Check this for info on distrubution lists: http://support.microsoft.com/?kbid=313797 It provides VB.NET code thou
one word ...tech guru :)....here is great ")...The whole secret of the teacher's force lies in the conviction that man are convertible.
But the conversion can take a long long time :)
good idea
how to use them somebody can give me exmples, thank! newman0708@yahoo.com.cn
good work, very nice code!
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:"
Keep on reading that book... It's one of the books every developer should read, don't you think?
Yup, it's even "required reading at Microsoft" ;) (as BillG quoted on the book)
then why are ther still "so many" exploits... do notice the quotes!
that's odd :p my solution -> don't unchek it :p
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.
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.
noted into memory :p small bug are hard to find :p
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.
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
glad to know my asp.net thread was of use to someone else as well as me. drazic19
I got that for the first time a couple weeks ago. It sounded horrible, I expected VS to shut down or something...
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. :)
This stupid message has been around since COM at least, and unfortunately not fixed yet.
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
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.
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.
yes, it's really stupid mistake :)
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
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 ;))
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)
Yes, the System.Text.Encoding.Default worked really nice. Thanks! (and thanks for such a quick answer too)
No problem :) Glad somebody could use my code :p
hope i'll still get that edition :)
This makes sense as VS add-ins are COM objects.
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.)
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' ;)
@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...
top job. i'v ealtered the regs file for actionscript *.as files, lovely job.
I am pretty mucho interested in the vb.net / vb version of the code. Any way to get a copy of it ?
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
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 ....
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
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.
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!
nice!!
It was a very nice presentation, I learnt alot about secure coding :). I also took this picture (after a few tries)
hey, sounds like I've missed something interesting. But thanks for giving me an individual lesson :p
To bad I had to mis that presentation... :s
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.
Yes
I'm sorry, I cannot provide you with a download location for Longhorn, I got mine on DVD.
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.
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
This was extremeley helpful, thanks!!!
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.
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?
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
doesn't work for me on VS 7.0.
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)
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.
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
@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
Then I don't have an idea, sorry. Maybe it's something server related, or network related.
I really like it
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
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.
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
Isn't there a navigation on the side with the .NET documentation? or is it just a generation option?
this can bee handy... lets stry it on non executables :p
thanks for this :)
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.
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.
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!
This reminds me an article for IBuySpy module communication by Brian Bilbro: http://authors.aspalliance.com/bbilbro/viewarticle.aspx?paged_article_id=6
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 :)
How about using interfaces...
Or <a href="http://wilcoding.xs4all.nl/Wilco/Articles/View.aspx?NodeID=136">connection points or meta-data based connection points</a>? ;).
How create a verify for web form?
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...
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.
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.
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
Very very cool
Yea, this does not work in Visual Studio .NET 2002. Can anyone help?
I believe it is a matter of changing the .reg file, to 7.0 if I remember correctly
I used the "php_edit2002.reg" which is for 7.0 and it did not work.
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 :)
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?
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
IMHO you have done better, layout wise that is...
Registerd for 4, but didn't get it... hoping i'll get it now?
I'm folowing these for 2 years, or have been trying too... and it surly aint easy :p
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
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".
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
A computer, 1 Longhorn CD (but they gave 2DVDs on DevDays). Where? MA3D, your school, MS-beta site, MS-events, ...
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
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.
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
If you would look at all the comments: I can NOT get you Longhorn!
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
i don't care what version, any will do
Please re-read my post, especially the Update2 ...
not even top 100? oh David... Just joking, well done :)
: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
Since when do you read the License Agreement? :p
If some one creates an "ACT OF GOD" virus we're all screwed.
I think "Acts of God" has a specific legal meaning, covering earthquakes and the like. Could be wrong about this, though.
hehe :p since i stumbled upon one through Google :) I should start reading them more, what else could be in it?
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..
No kidding? Why not just "Natural Disasters" :)
Many EULA's include "Acts of God" in their agreements.
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...
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
so, i'm an atheist can i agree?
Does it cover programmers that THINK they're god?
Scott: Yea ;o) In case if their site will go down becouse of programmer who think he is God ;o)
I think it's very funny :p
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
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
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
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.
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
look at the above sample and first removeAces from them, and then AddAce your desired rights..
How can I get a list of all the sid. is there are way to remove acces to all ?
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 :)
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!
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...
.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...
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)
I can view source again! I cleared my temporary internet files, which took about 5 minutes, and now source opens. Thanks for the tip!
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
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...)
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
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.
hmmm, now i see why you don't have to place the extention, if you want to strat notepad from RUN :p
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!
congrats!
hey nice going :) Isn't that the site with the 'lets do it how they want"-layout ? :p
Proficiat ^^
Congrats!! :)
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
i want to save the text file as encoding"UNICODE"...ANYONE HELP ME...AS SOON AS POSSIBLE.. THANX
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
VERY COOL!! Now if only I could find the same for .cfm as well.
Doesn't work for me either. This is because i do not have C# or C++ installed with my VS.NET ....
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);
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 :)
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 ;)
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.
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!
Interesting... Thanx for the pointers :) DotNetNuke guys should test their releases better
Hmm, I really don't have an idea how to do that, if anyone knows, please reply :p
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?
wow, that's very nice! when i got the time, i will also create my own outlook today :) nice job!
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 ;)...
;) 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 :)
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
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.
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
need vb documentation
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
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
nice, this is usefull :) thx!
Tnx for the attribute :) didn't knew that one
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
Dat dutch rest in english, minor mistake :p
this is good info :) maby we could teach it at school :)
same as last year?
Indeed =)
congrats =) I had 'just' a 'High Distinction', but that's fine with me :)
Just what i was looking for. Thanks mate. Btw, what theme are you using in your screen shot?
My own theme? :p That's what the article is about, creating your own :) 'Summer' Style ;)
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 :)
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)
How do I know which additional datafields are available ? You are using some of them like datafld="Name".... Thanks & regards Derek
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
this is nice :) add's a lot of code lines :)
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.
You're making sense, but I wouldn't immediately know a solution, sorry
Hi, I add reference to 'Microsoft Outlook 11.0 Object Library' but i didn't get the Interop.Outlook namespace any help?
Did you get any new references? Check the Object Browser for the exact namespace if there are any Office references
Yes I get 3 new references: 1.microsoft.office.core 2.outlook 3.stdole
p.s if you can help me - i need to import data form outlook to dataset any help?
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
You forgot my own God. The God of PC-nitwits. :-d
Hopefully we will not have a God for Microsoft Software and Linux Software. This can only result to a religion war ;)
: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 =)
God of Bugs and he has the Gremlins at his beck and call when he wants to strike ??
i think you have to much fantasy ;) but i must say that i like your new religion! :D
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)!
cool, i had 2 mistakes, but that was good too ;) congratz
Gratz!! :) I had two mistakes as well, two little, no big mistakes ;)
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.
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 :)
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
you could do this if documents.links doesn't exist: document.links = document.getElementsByTagName('a');
but i was there :p i hope they learned not to use claroline anymore...
I've got the magazine :) haven't read all of it though
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.
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
Sweet mother of God. :D Is there an impact on the amount of time it takes for the dialog to load?
this is nice! I like it a lot :)
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
Great and interesting... :)
What visual theme are you using? That's a nice looking start button as well.
Cool Stuff, Very interesting!
wheeeeeeeee it works, nice tutorial!!!!!!
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)
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.
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.
Nice tutorial, works perfect here!! Thank you!! :) btw, I like the theme too =) with the nice, tight lay-out :)
When is the theme tweaking coming? =) (I like that visual theme :p)
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 :-)
Love the tutorials, keep them comming
A backup before editing, one to edit on and backup with replacer... -> 2 backups = overkill :p nice tutorial :)
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)
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!!!!!
Virtual Pc, nah :p Ghostcasting rox as a recovery method ;)
Meh, it doesn't really work for me... I prefer this one: http://www.justlikeed.net/StripDir/
THANKS!!! Works great for me in VS 2002. :o)
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
The full control checkbox is checked? Hmm, i don't really know what could be the problem then, sorry.
Hi Cumps nice to meet you yes its checked but i am unable to get the files from sub folders 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
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
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
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);
good
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.
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.
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.
is this problem sorted out? I have the same problem as you mentioned. What is the exact solution?
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.
Good thing you could fix it :)
How Open *.pst file ???
hello please my run menu
I even know much of this stuff... And I'm not even an IT-er... SHAME ON THEM!!
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.
* Can't spell "lose" when posting to a blog or message board.
:p "are not native english speakers"
Cool, but I still, can't understand the language you coded it in... But I find the matches with the song ;)
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.
"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? :)
It was 'Prince' first of all, Sinead O'Conner did a cover of it.
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
Sorry :) I didn't knew it from the start, someone told me on ICQ.
Can not shutdown a windows XP computer in 5 blind! keypresses :p
Sinead O'Conner version is GOOOD! and now I'll think of this code, instaid of enjoying the song :s :p
I believe it's 4 keypresses here? Win - Arrow Up - Enter - Enter (if Shutdown is the default option in the dropdown :))
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.
check out multisite2 at http://www.hairy-spider.com/multisite.aspx should do exactly what you require
THIS watercolor thems is so sweet! This tutorial is great =) much bettery then that Windows XP Silver look ;) And again, gratz to the man ;)
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!!!
Tnx for multisite! Going to check it out right after all my blog postings of today ;)
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.
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.
www.wallpaperchanger.de ...
wade.beasley@insightbb.com Thanks, Wade
email: scndsky@hormail.com firstnaam: doctor lastname: strangelove
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.
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
First: Seminary Last: Boy Email: seminaryboy2004@yahoo.com Tx, James
First: Mike Last: Wikstrom Email: mikewikstrom@hotmail.com Thanks
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
Sorry, I forgot my junk mail gets deleted immediately. Could you send it again, Please? Mike Wikstrom mikewikstrom@hotmail.com
Name: Domagoj Lastname: Kovač email: domagojkovac@yahoo.com
An invitation has been emailed to your friend Domagoj at domagojkovac@yahoo.com Mike, i forwarded the request again :)
Thanks a lot, you rock!
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.
sajeevan@free.fr thanx,
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)
first name, last name?
fname: Raj lname: Menon email: ozone@iname.com
An invitation has been emailed to your friend Raj at ozone@iname.com Fun, I just got more invites.. "You have 5 invitations left"
fname: Mario lName: chavez email: chavezmarioalberto@msn.com Thanks
An invitation has been emailed to your friend Mario at chavezmarioalberto@msn.com
Ah, those people sent me a mail on 19/7 too. A new way of head-hunting. ;-)
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
An invitation has been emailed to your friend Rudi at ThaRudeDude@hotmail.com. 3 invites left :)
Cool.. I am trying to get one.. I love testing. Its hyped but interesting just the same.. Thanks
An invitation has been emailed to your friend doug at doug_woznicki@hotmail.com 2 left
sajeevan@free.fr first name : Sajeevan last name : Jay thanx,
You have 0 invitations left An invitation has been emailed to your friend Sajeevan at sajeevan@free.fr. Done, all are gone :)
same here, theme hacking is actually more easy :)
this is very funny :D admin rights, it could come in handy some day ;) greets
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?
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
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.
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
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.
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 ;)
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."
Check this out: http://www.mozilla.org/docs/end-user/keywords.html
lol :p Too bad it doesn't happen to my new account ;)
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
"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*
seems intresting, i wish i was there too, it's a shame i had to work
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
Hi Just tried this with Oulook 2003 and got an exception error? Thanks
Which error? Tried debugging? Which line was the error when you debugged? Greets :)
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.
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.
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.
wow, commented on the wrong post in the wrong tab. delete me, or ignore me, please :)
But it's true, UltraMon rox :) I'm using it as well =)
OK!
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
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
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
I'm only 47% nerd :p! I'm neoNerd (still defining that, and no... nothing to do with the Matrix)
I like it! But a bit more enthousiasm would be great! :p
Somehow I've only managed to get 40 - Lightly nerd. Not quite sure how. That's good, right? :p
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!
56% nerdy :-)
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
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.
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.
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 :)
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 :)
Nice post...!!!
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
Nice post, but your own search doesn't work - at least in FireFox.
Now it works ;)
Works awesome. Also note that I changed the google url to .COM instead of .BE for the standard English site. Thanks.
Awesome, added it to my blog too :) Thanks for sharing!
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?
Heather: for MSN it will be search.msn.com instead of www.google.com and search.yahoo.com for yahoo
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
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!
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)
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! :)
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)
You rock man! Thanks!
nice going, rock star ;)
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.
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 ;)
Guess what, now i'm ok with the Attribution and Exclusivity sections of Google's agreement :p And my site is still small-style ;)
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.
No more search then, let's wait for the integrated search.
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...
David - Thanks for taking the time to write this. Very, very, very useful and helpful!!
Your Dominant Intelligence is Logical-Mathematical Intelligence that is 18 years old :p (didn't do the other tests) yeah, thats me :)
Great! Thanks, that was elucidating.
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
My brother's 7 as well :p
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