SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 13-06-06, 04:16 PM   #1
timwilky
Member
Mega Poster
 
timwilky's Avatar
 
Join Date: Mar 2004
Location: Not in Yorkshire. (Thank God)
Posts: 4,116
Default Why I hate Microsoft (Techy)

OK my boss is insisting I write his new app using C#.net. I have explained that java runs perfectly well on a PC but he is the boss.


I need to read some values off of a sql database. He won't even let me use oracle. one of the values is of type float. So when I then use the appropriate function, ie DbDataReader.GetFloat(), it errors with cannot cast infinity. WTF. so before the call I have a debug line to return the DbDataReader.GetDataTypeName() and it tells me it is of type Float.


So lots of banging of heads against a wall, then I look at the database and check there is appropriate values. yes there are. I then accidently go into the table design. and oh! SQL server allocates 8 bytes to a floating point number.

Change my call to float value = (float) DbDataReader.GetDouble(); and everthing works.

4 hours chasing a bug, to find it is an incompatability between data type definitions in Microsoft ****ty products.


AAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHH

Sorry the above is techy coding. I just need to shout at somebody and Microsoft don't listen
__________________
Not Grumpy, opinionated.
timwilky is offline   Reply With Quote
Old 13-06-06, 04:19 PM   #2
kciN
Guest
 
Posts: n/a
Default Re: Why I hate Microsoft (Techy)

Quote:
Originally Posted by timwilky
OK my boss is insisting I write his new app using C#.net. I have explained that jave runs perfectly well on a PC but he is the boss.


I need to read some values off of a sql database. He won't even let me use oracle. one of the values is of type float. So when I then use the appropriate function, ie DbDataReader.GetFloat(), it errors with cannot cast infinity. WTF. so before the call I have a debug line to return the DbDataReader.GetDataTypeName() and it tells me it is of type Float.


So lots of banging of heads against a wall, then I look at the database and check there is appropriate values. yes there are. I then accidently go into the table design. and oh! SQL server allocates 8 bytes to a floating point number.

Change my call to float value = (float) DbDataReader.GetGetDouble(); and everthing works.

4 hours chasing a bug, to find it is an incompatability between data type definitions in Microsoft sh*tty products.


AAAAAAAAAAAAAAAAGGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHH

Sorry the above is techy coding. I just need to shout at somebody and Microsoft don't listen
..To all of what you just said!!
  Reply With Quote
Old 13-06-06, 04:20 PM   #3
Carsick
Guest
 
Posts: n/a
Default

I always find it amusing when MS stuff doesn't even work together as they should.
I'm almost exclusively a Java coder and I'm quite happy that way. I'm lucky though, the co I work for are very adamant about sticking with Java as long as it's viable.
  Reply With Quote
Old 13-06-06, 04:24 PM   #4
didge
Guest
 
Posts: n/a
Default

what does fload and string mean?
  Reply With Quote
Old 13-06-06, 04:25 PM   #5
Abyss
Guest
 
Posts: n/a
Default

Change is bad.... it = more work :P
  Reply With Quote
Old 13-06-06, 04:26 PM   #6
Ping
Guest
 
Posts: n/a
Default

*stays very very quiet but takes notes in the hopes of one day making a java programmer look stupid*

  Reply With Quote
Old 13-06-06, 04:28 PM   #7
Xerbraski
Guest
 
Posts: n/a
Default Re: Why I hate Microsoft (Techy)

Quote:
Originally Posted by timwilky
4 hours chasing a bug
Wasn't Northwind doing the same the other day, I think he killed his one though and got lots and lots of satisfaction from it.

Somtimes I find it helps if you write down the word Microsoft and then draw little stick men with guns and stuff shooting the word Microsoft with little dots for bullets and stuff.
At the same you can make your own explosion sound effects with your mouth!!
Then just crumple up the piece of paper and set it on fire... Job done!!
  Reply With Quote
Old 13-06-06, 04:40 PM   #8
timwilky
Member
Mega Poster
 
timwilky's Avatar
 
Join Date: Mar 2004
Location: Not in Yorkshire. (Thank God)
Posts: 4,116
Default

Quote:
Originally Posted by didge
what does fload and string mean?
float and string are data types

float is a floating point number as in not an integer, as in contains a decimal point

although I have not made any reference in my post to a string, a string is a simple text object, such as a persons name.

Both these data types have properties and methods etc. I aint in the business of teaching anyone code hacking. suffice to say a method is a way of doing things with a data object, and a property is information about that object such as the number of characters in the string etc.
__________________
Not Grumpy, opinionated.
timwilky is offline   Reply With Quote
Old 13-06-06, 05:03 PM   #9
didge
Guest
 
Posts: n/a
Default

ahh i see, i know you didn't say anything about strings but when i have heard them they have been in the same context hence why i asked
  Reply With Quote
Old 13-06-06, 05:55 PM   #10
kciN
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by timwilky
Quote:
Originally Posted by didge
what does fload and string mean?
float and string are data types

float is a floating point number as in not an integer, as in contains a decimal point

although I have not made any reference in my post to a string, a string is a simple text object, such as a persons name.

Both these data types have properties and methods etc. I aint in the business of teaching anyone code hacking. suffice to say a method is a way of doing things with a data object, and a property is information about that object such as the number of characters in the string etc.
I remember when I used to program on my Acorn Electron in Basic *cough* I used to use the string command, known as $, if I recall.
Inkey$ I think, a command to wait for a key to be pressed...

And I think everyone remembers the

10 Print "Whatever";
20 Goto 10

(The ; is there to make it not just scroll down the page but across it too.)

I'll shut up now!
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Eye test, gone all techy timwilky Idle Banter 18 01-03-09 06:44 PM
another techy one Wideboy Idle Banter 4 04-05-08 04:35 PM
Techy Q re: Recording MP3s Manguish Idle Banter 8 18-09-07 03:54 PM
Techy help... Outlook & IMAP Jelster Idle Banter 2 27-07-07 04:08 PM
For all you IT techy lot... Sid Squid Idle Banter 9 02-02-06 12:55 PM


All times are GMT. The time now is 11:23 PM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.