If you keep getting an error trying to upload the file along the lines of 'This method is not supported', make sure you are using the correct request method.
Friday, April 16, 2010
FtpWebRequest uploading
This may be obvious to some people but WebRequestMethods.File.UploadFile is not the same as WebRequestMethods.Ftp.UploadFile.
If you keep getting an error trying to upload the file along the lines of 'This method is not supported', make sure you are using the correct request method.
If you keep getting an error trying to upload the file along the lines of 'This method is not supported', make sure you are using the correct request method.
Sunday, April 11, 2010
Stupid IE password box behavior
If you have special characters in your password like most good passwords should, and you type your password (with special chars) into a textbox in password mode and use ctrl+bkspc to clear the password, it will give you the location of the special chars in the password box.
I consider this a gigantic security flaw and is pretty terrible. I have only found this behavior in IE. Is this known? I seem to remember running into this for years.
EDIT:
for example, try this
go to gmail in IE
focus on the password box and type "password" (no quotes) and then hit ctrl+bkspc
then do the same for 'pass/word' (no quote)
I consider this a gigantic security flaw and is pretty terrible. I have only found this behavior in IE. Is this known? I seem to remember running into this for years.
EDIT:
for example, try this
go to gmail in IE
focus on the password box and type "password" (no quotes) and then hit ctrl+bkspc
then do the same for 'pass/word' (no quote)
Saturday, April 3, 2010
On Optimization
A few days ago, I became curious about a problem. It wasn't necessarily my problem, but it had been something I'd encountered throughout the past few years I guess. This time around, it was dealing with file path manipulation, so I decided to think of every way I'd seen file path manipulation done and check the speed, GC, and RAM usage throughout each test and see which method was fastest and less RAM dependent. I am not claiming these tests are thorough or even accurate, but the results are interesting. One thing I noticed was that it didn't matter what test was ran first, it always had a large gap in the RAM and GC usage, so I assume it has to do with loading dependent libraries and them being cached in later methods. This recreated every file path on my windows partition (/windows) since I knew I wouldn't get any permission errors.
The main lines in the code that I was testing are the following:
And the results:
May not be the best way to test this, so I am open to suggestions. Source code is here (is monodevelop, so not sure if it will open in VS).
The main lines in the code that I was testing are the following:
... string fileName = d + dirSeparator + info.Name; //dirSeparator is defined once at the beginning of the method. ... string fileName = d + "/" + info.Name; ... string fileName = d + Path.DirectorySeparatorChar + info.Name; ... string fileName = Path.Combine(d, info.Name); ...
And the results:
bperry@bperry-desktop:~/Projects/PathingSpeedTest/PathingSpeedTest/bin/Release$ mono PathingSpeedTest.exe Building cache... Starting escape from outside iterations... Took 23 seconds Most RAM: 78932kb (Started with 78800kb) Most GC: 620kb (Started with 604kb) Starting escape from inside iterations... Took 29 seconds Most RAM: 78828kb (Started with 78828kb) Most GC: 616kb (Started with 612kb) Starting environment escape... Took 29 seconds Most RAM: 78828kb (Started with 78828kb) Most GC: 632kb (Started with 600kb) Starting Path.Combine() test... Took 29 seconds Most RAM: 78828kb (Started with 78828kb) Most GC: 616kb (Started with 612kb) bperry@bperry-desktop:~/Projects/PathingSpeedTest/PathingSpeedTest/bin/Release$
May not be the best way to test this, so I am open to suggestions. Source code is here (is monodevelop, so not sure if it will open in VS).
Tuesday, February 23, 2010
updated portage on gentoo 2008
eselect-news blocking portage from updating?
http://www.mail-archive.com/paludis-user@lists.pioto.org/msg01086.html
Instead, remove eselect-news and just emerge portage.
http://www.mail-archive.com/paludis-user@lists.pioto.org/msg01086.html
Instead, remove eselect-news and just emerge portage.
Thursday, February 18, 2010
Intrepid has old squashfs!
Didn't know this! but fixed now on the server. Was why the script was failing. 4.0 on karmic whereas intrepid has 3.7.
Saturday, February 13, 2010
Little peak at my latest project
Keeps all my apps handy and up to date whenever I need them :-)! Hopefully soon I will release it into the market. Saves the apps to the SD card atm so you can just mount the phone and go.
Sunday, February 7, 2010
CD image fixed on server
For most of this week it appears that the OpenDiagnostics image was broken on the server. It isn't anymore, but the update script broke it, so I am figuring that one out. Original image is up (here).
Subscribe to:
Posts (Atom)


