Ranks

by Jesse 20. September 2007 10:52
Here at the office we have a room we call “the bin”. Don’t ask why, that’s what it was called when I showed up, so its the bin. Anyway, the bin was recently renamed the “War Room” and today the other side (where the BA’s sit) went dark (projector) and it was downhill from there. I now call it the Ready Room. Since I took it that far, might as well hand out ranks. The PM is now “Captain”, the Architechs are “Commander”, the Lead Developers are Lt. Commander and the Devs are Lieutenants (or Jr. Lieutenant for junior developers). I think we’re engineering.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Misc

I <3 List

by Jesse 19. September 2007 10:38

I lived under a rock apparently for quite a while, then I discovered the generic list. I’ve come to the conclusion I LOVE lists. I can pass any object, do stuff to it (add, remove, blah blah), its like having a database on tap with all the stored procedures you generally need (update, insert, remove, select, find). In my opinion they stomp arrays outright and they’re FASTER. You can do a String[].sort(delegate, with arrays you can’t! I’ve used lists now to collect a group of entities, find the ones I want (object for object) and dump it out to something useful. I hate arrays, but I <3 List.

So, say you got ton of strings returned from a query and now you need them sorted. Hmm, thats a total hassle with arrays …but lists …well, all you have to do is compare.

List list = new List();
list.Add(”me”);
list.Add(”you”);
list.Add(”they”);
list.Add(”them”);
list.Add(”us”);
//so there’s our list

list.Sort(delegate(string item1, string item2)
{
return (item1.CompareTo(item2));
});

list.ForEach(delegate(string item)
{
Response.Write(item);
});

and now you have a nice, neat sorted list.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | C# | Coding

XSD problems? …hack it

by Jesse 12. September 2007 10:38

@ the office over the past few days, I’ve been embedding myself into the wonderful world of XML. In this happy land, things are …well, usually happy, until you get a crappy XSD file. Technically, the xsd is valid so you can use it and generate a class and what not by using XSD.exe /stuff. It was irritating, because this did not allow nulls, at all, anywhere and after we discovered that hey, guess what, we have no idea if any of the data will ever show up …soooo knowing that we have no choice, we neeeeeeed those nullables (I think in xsd land they’re called nillables or something or other)

Anyway, here’s a quick dirty snippet of code you can use to generate a cleaner xsd. And yes, its THAT easy.

System.Data.DataSet dataSet = new System.Data.DataSet();
dataSet.ReadXmlSchema(”C:\\mycrapXSD.xsd”);
dataSet.WriteXmlSchema(”C:\\myprettyXSD.xsd”);

Use your XSD.exe to generate your class, and as another “gotcha!” — you’ll probably see an array of an array, something like Item[][]; Rid yourself of one of the [] and all will be good in the world.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | Visual Studio | C# | Coding

Ranks

by Jesse 10. September 2007 10:40
Here at the office we have a room we call “the bin”. Don’t ask why, that’s what it was called when I showed up, so its the bin. Anyway, the bin was recently renamed the “War Room” and today the other side (where the BA’s sit) went dark (projector) and it was downhill from there. I now call it the Ready Room. Since I took it that far, might as well hand out ranks. The PM is now “Captain”, the Architechs are “Commander”, the Lead Developers are Lt. Commander and the Devs are Lieutenants (or Jr. Lieutenant for junior developers). I think we’re engineering.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Misc

Multithreading …ooooOOOOooooo

by Jesse 10. September 2007 10:30

I was looking around the web today for a how-to I had seen a long time ago and I came across this page regarding multithreading. I like the idea of multitreading, always have since my dual 1.26ghz days. The nice thing with that article, there’s a ton of pages in reference to multithreadingmore than I knew existed.

I’ve got a few apps at home I think I’d like to try this out on…hmm …and I want a quad core cpu. Hmm.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Coding

IM surprise

by Jesse 7. September 2007 10:23

Today I went to message a friend of mine that works @ HP and I was met with this instant reply…

IM Administrator: Using IM within HP is subject to malware scanning and HP security processes. Instant messages could be transferred to HP affiliates outside your country.

Oh thats ni …wait what? “Could be transferred to HP affiliates outside your country”? Hmm, thats new. I asked him about it and I didn’t get a reply. Hmm.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Misc

.Net Blogging Software

by Jesse 6. September 2007 10:21

Ok, so I’m using wordpress right now and nothing against it but I don’t like it. The hosting it sits on right now is slow and I don’t think they give the mysql box the power they give to the sql2k5 server. I don’t blame them either. What I am looking for is a .Net blog download that is in 2.0 MAYBE even with ajax tagged to sql2k5. If you know of any really good ones, please drop me a line and let me know.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net

Silverlight 1.0 Released

by Jesse 5. September 2007 10:19
Well, its official, silverlight is out which is good. I’m currently working a new item for CodeMash and we are deciding on which version we are going to use. Now that 1.0 is released and not beta/RC/whatever, this should help out. For whatever reason, I can’t seem to get the aspnet Futures to latch onto Visual Studio 2008. Later on I’ll see if I can’t clear this up.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

.Net | Visual Studio | Silverlight

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

Like the description says, at my core, I'm a scientist and engineer.  I came from humble beginnings on a 486DX2 Packard Hell playing doom2 on IPX to in a small time retail shop and got into hardware (ISO layers FTW!) and it was all downhill from there.  I'm infinitely curious about almost everything and always wanting to know.

According to personality tests (real ones) I classify under "Rational" more specifically, a Fieldmarshal.  I think there's something to that.

Some of the stuff I'm currently into/researching...

Sitefinity

Ninject

Subsonic 

Currently working on ...
i did the hundred


and some extra stuff

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's, their brother, their dog, cat, ferret nor gold fish's view in anyway.  At all.  Ever.

© Copyright 2007-2009

Month List