WHY hasn't google fixed this? Bonus - a new word.

by Jesse 19. August 2008 16:50

I happen to notice some activity on my network this evening and, well, that shouldn't, so I looked into it.  Upon a google search regarding UDP port 50085 and came across a term, GateMAC -- search away!  What I found was the following clones (see:ALL THE SAME).  This irritates me to no end.

http://www.pcreview.co.uk/forums/thread-3383218.php

http://www.winvistaclub.com/forum/windows-vista-general-topics/7031-gatemac.html

http://forums.techarena.in/vista-help/891380.htm

http://www.eggheadcafe.com/software/aspnet/31485161/what-is-a-gatemac-network.aspx

http://www.vistax64.com/vista-general/120869-what-gatemac-network.html

http://www.mindfrost82.com/f166-windows-vista/39494-what-gatemac-network.html#post541507

6 of them? I mean seriously. that's ALMOST as bad as having search results of search results.  What the hell!?  This does nothing than waste my time and clutter my searches with CRAP.  From now on, I'm calling them spoogle.  That's right, spam + google = spoogle.  From now on, when I run into spoogles, I'm posting them.  How exactly are these things created?  WHY are they created?  More ads?  More angry blog posts from people like me?  What's the reasoning behind this crap?  Egh, and to think, sometimes I found things useful @ egghead.

Oh and no, none of them contained a useful answer.  I ended up writing a quick IPSec policy that prohibits 50085 udp traffic outside of my home network, period.  Take that.

Be the first to rate this post

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

Tags: , , , , ,

Misc | Scam | Weird

SQL Domain Error Occurred? Hu?

by Jesse 6. June 2008 09:57

Working with some good ole Sql today, get slapped in the face with this

Msg 3623, Level 16, State 1, Procedure FindLocations, Line 9
A domain error occurred.

Gah! Considering I copied this from an in-line sql statement, I figured I was golden, wrong.  So what's going on?  The procedure that did this is doing a little calculation to determine miles away based on a lat/long value lookup.  Where's the problem?  Lat/Long values can be negative and if you know anything about math, the square root of a negative number is (!) imaginary, something sql has NO CLUE how to handle (but matlab does!). 

So, to fix this problem, and since no results will ever be negative miles away (relativity?), I pulled the calculation result into the magical "ABS" (absolute) function to give me a positive number, no matter what.

 

Be the first to rate this post

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

Tags: ,

Tech | Weird | Sql

Unable to start debugging ...?

by Jesse 9. April 2008 02:47

Came in this morning and was smacked in the face with this... 

I'd been dorking around in the project in somewhat strange places so this wasn't a complete and total surprise.  I reset IIS, restarted the comp, went into the web.config and searched for red squigglies, rebuilt the solutions a billion times, cleaned the solution, looked at the error output, no help.  After a random web search and seeing suggestions that I've already tried, I go into the asp.net config settings within IIS for the particular app I'm working on (maybe I set it to v1.1? nope), click on the tabs and I get this surprisingly useful error.

...Debug cannot be parsed ..."On is not a valid value for boolean".  This also gives you a line number...gasp!  I jump into the web.config and sure enough on line 9 ....

custom error mode on, debug mode on ...how quaint ...thanks vstudio for not pitching a (useful) fit!  If you ever run across a strange cannot debug error, I suggest going into the asp.net config and clicking on the tabs!

Be the first to rate this post

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

Tags: ,

Visual Studio | Misc | Weird

My TreeView ate my TreeNodeCollection

by Jesse 6. March 2008 10:38

I seem to always come into contact with these "We hate you!" type errors, and this one is up there.  Took me a while to figure this out, Humor me.

Open up a new web project, create a short number of nodes as such...(sorry its in VB)

Dim Master As New TreeNode("Master", "1m")
Dim Node1 As New TreeNode("Item1", "1p")
Dim Node2 As New TreeNode("Item2", "2p")
Dim Child As New TreeNode("Child1", "1c")
'add child node to node1
Node1.ChildNodes.Add(Child)
'add node1 and 2 to Master
Master.ChildNodes.Add(Node1)
Master.ChildNodes.Add(Node2)

Ok, got that? Now if you tag this into a treeview, you get this kind of display...

Master
- Item1
  o Child1
- Node2

Which is great, but what if you wanted a tree of JUST the children items to Master? so it would look like this...

Item1
- Child1
Item2

How would you do that?  Use some kind of loop?  How about trying TreeView1.Nodes.Add(Master.ChildNodes) (bernt, one's a collection and the control only expects a single node)? I decided to use the Master.ChildNodes and try a foreach loop -- surprise, and recieved this error. 

Index was out of range. Must be non-negative and less than the size of the collection. 

Hu?  My code isn't complicated, so what'd I do wrong?  I move out my Master.ChildNodes into its own collection, "nodes", slightly refactor and check my logic.

For count As Integer = 0 To nodes.Count - 1
    
Me.treeView.Nodes.Add(nodes(count))
Next

yep, I'm starting at 0, minus one off the collection count -- thats lining up, makes sense so I run the code, check the count, yep its 2, thats good

I'm thinking at this point maybe I'm counting wrong, maybe it IS 1 based, so I step into the next and see this

Wait ...hu? Why would it REMOVE an item from my collection when I add it to the treeview?  What if I wanted that for multiple places?  This doesn't add up.  So, let me ask the question -- WHY is it doing this?!  If you switch the Me.treeView.Nodes.Add(nodes(0)) it'll build just fine.  I just don't get it.  With other things like lists and the like, you can rip though those things and pull only what you need into whatever and it does not remove stuff.

Can someone try this and see if you get the same thing?

Be the first to rate this post

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

Tags:

.Net | Coding | Weird | VB

CNN whoopie

by Jesse 29. February 2008 05:38

I like CNN, I go there a lot and read the articles but ...the S&P index lost how much?!

Currently rated 5.0 by 1 people

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

Tags:

Weird

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.

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

Sitefinity

Ninject

Subsonic

Java

Disclaimer

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

© Copyright 2007-2008