The misadventures of Geno

.::[ tech :: society :: people :: life :: code :: stuff ]:..

112764014559361312 September 25, 2005

Filed under: un.categorized — Geno @ 2:18 am

alo! i decided its time to seperate tech from other posts, so from now on all tech, computer and science related stuff will be bloggered here(!), you can return to the other blog here or just follow the links in the navigation bar… out!

 

computer related posts September 23, 2005

Filed under: un.categorized — Geno @ 9:41 pm

riiiiiiiigghhttttt! ok, I decided I need to seperate things. from now on, this blog will not serve any tech and computer/coding related stuff anymore. That has been moved here. You can also find a link to it in the links section. ok, now, its time for that beer. really!

 

A photo in the blogpost via email September 22, 2005

Filed under: un.categorized — Geno @ 6:15 pm

this does not work. and i think it sucks. unless i’m doing something wrong! what!?
ok. i tried to post using email, and attaching an image, hoping the image would show in the post. but it does not. ok. time to go out for a beer. chau!

 

File.GetAttributes unreliable? September 22, 2005

Filed under: un.categorized — Geno @ 12:07 pm

Ha! I am so hoping that there is something I’m missing, yet again I’ve come across a problem with .NET class libraries, that needs to be worked around!

if (File.GetAttributes(srcPath) == System.IO.FileAttributes.Directory)

Is the statement in question. ’srcPath’ is a string that contains the path to a directory. So this if should always fall to the true part, right? Wrong, with some directories it doesn’t. Is it possible for a directory to have the Directory attribute flag NOT set?

Anyways, a more reliable way to find this out is to use:

File.Exists(srcPath) { … }
Directory.Exists(srcPath) { … }

in whatever way you prefer…back to work!

 

google talk September 21, 2005

Filed under: un.categorized — Geno @ 1:45 pm

i’ve been using google talk for a while now, hmmm, actually ever since it came out. and slowly over time my friends list have grown, people have even moved from other IM networks/clients over to gtalk. only problem is, gtalk is feature limited. file sending? encryption between me and buddy? ect ect. maybe I should go see if I can find info at google about this…