IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.68 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-07-28
[22:27]<rxrcr>AqD, he comes back
[22:27]<afd>the 1st one looks much better!
[22:27]<rxrcr>AqD, it's part of the overall story, worry not foo
[22:27]<afd>chaka: but the 2nd one doesnt look like a commander of babylon
[22:27]<afd>awwwww
[22:28]<afd>i guess it will be finished today :P
[22:28]<afd>then i will buy some better one!
[22:28]<sxncrsv>anyone?
[22:28]<afd>shekast: eh?
[22:28]<sxncrsv>quick question: double d = 1.00d; what should i do to print 1.00 to the page? d.toString("D"); ?
[22:28]<afd>shekast: ohh format
[22:28]<afd>hi r00!
[22:29]<rxrcr>AqD, heh. Appreciate what a masterpeice of storytelling it is. JMS ties all sorts of things together from stuff started in the 1st season
[22:29]<afd>shekast: dunno then, check the SDK document :)
[22:29]<afd>chaka: ohh okay
[22:29]<afd>anyway i'm going to take 2nd glass of vodka :P
[22:29]<afd>later! i will soon be too drunk to talk :D
[22:32]<rxrcr>heh I wish the cafeteria here had beer
[22:45]<slrgscr>I'm using SelectNodes and then GetElementsByTagName and then SelectNodes again to change node and GetElementsByTagName again but it seems to get the same data. Where could I have done something wrong?
[22:48]<slrgscr>I just figured I should not use GetElementsByTagName after doing the SelectNodes, what should I use then?
[22:54]<nnzjpfrr>GetElementsByTagName -> remember -> SelectNodes
[22:54]<nnzjpfrr>I have no clue what the hell you are doing but that should work...
[22:55]<y-gz>SpikeLite Array.Sort
[22:55]<y-gz>SpikeLite msdn2 Array.Sort
[22:55]<slrgscr>zeroflag: let me paste my XML file somewhere
[22:56]<nnzjpfrr>oh
[22:56]<nnzjpfrr>xml
[22:57]<nnzjpfrr>use xpath and all your problems shall solve themselves.
[22:57]<rxrcr>heh
[22:57]<nnzjpfrr>dom is the most stupid thing ever evented since windows.
[22:57]<nnzjpfrr>hold on a second...
[22:58]<slrgscr>zeroflag: http://cpp.sourceforge.net/?show=18254
[22:58]<slrgscr>trying to get the server1 and server2 params
[22:58]<nnzjpfrr>just do what I said: use xpath.
[22:59]<nnzjpfrr>it's so much more elegant.
[22:59]<nnzjpfrr>and readable by the way...
[22:59]<slrgscr>I do use xpath to select the correct node, but then I don't know how to select each element using it's name.
[22:59]<nnzjpfrr>btw, I wouldn't call them server1 and server2
[22:59]<nnzjpfrr>just server should be enough.
[22:59]<nnzjpfrr>uhm
[23:00]<nnzjpfrr>the same way you selected the node? oO
[23:00]<nnzjpfrr>I can't remember the method right now...
[23:00]<slrgscr>mRoot.SelectNodes("/Mysql/Server1");
[23:00]<nnzjpfrr>sounds good.
[23:01]<nnzjpfrr>remove that 1 behind server, call all your servers just "server" without a number, than put the return of that call in an array.
[23:01]<nnzjpfrr>after that, make a foreach over the array, and select your properties...
[23:02]<nnzjpfrr>assuming you put the node in "node": node.SelectSingleNode("MysqlHostname");
[23:02]<nnzjpfrr>or something like that...
[23:02]<nnzjpfrr>if that doesn't work, try a ./ or // in front of the element name...
[23:03]<nnzjpfrr>.oO( or was that SelectSingleElement? )
[23:15]<`d0>http://cgi.ebay.ca/Hummer-H2-H2-Yellow-Hummer-Excellent-Condition-Low-Reserve-2005_W0QQitemZ190012722210QQihZ009QQcategoryZ43913QQrdZ1QQcmdZViewItem
[23:15]<`d0>go bid!
[23:15]<`d0>cheap
[23:16]<gjrvcxnne>how would i bring a form... or a control... to the focus of windows programatically....
[23:16]<y-gz>SpikeLite msdn2 setfocus
[23:16]<y-gz>:/
[23:17]<gjrvcxnne>that requires a form?
[23:18]<`d0>setfocus is for windows.h
[23:18]<nnzjpfrr>how about Select()?
[23:19]<`d0>select is per control
[23:19]<gjrvcxnne>that selects it ala tab order correct?
[23:19]<`d0>GoatCheez your doing webapp?
[23:19]<gjrvcxnne>no
[23:19]<gjrvcxnne>never
[23:19]<nnzjpfrr>something like that...
[23:19]<`d0>if it was then you could use SetFocus()
[23:20]<gjrvcxnne>the web was fun 8-10 years ago... now it's all... just... moving too fast if you ask me...
[23:20]<`d0>heh
[23:20]<`d0>just use PHP :p
[23:20]<gjrvcxnne>i'm not even old, but i'm too old to deal with that crap
[23:20]<`d0>hire some child coders :) They will d o the job for you
[23:20]<gjrvcxnne>If i were to do anything on the web, i would use PHP
[23:20]<gjrvcxnne>or asp6....
[23:21]<`d0>GoatCheeze you want a specific control to be focused?
[23:21]<gjrvcxnne>asp.net has too much magic
[23:21]<gjrvcxnne>no, i need the application to regain focus
[23:21]<`d0>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWindowsFormsControlClassFocusTopic.asp
[23:21]<`d0>did you take a look about that?
[23:22]<gjrvcxnne>will now...
[23:23]<`d0>I don't know what you mean let the application regain focus
[23:23]<gjrvcxnne>no go
[23:23]<gjrvcxnne>well, if the application is hidden behind another application
[23:23]<gjrvcxnne>then you can't see it
[23:23]<gjrvcxnne>i want the application to be brought to the formost of all the windows running on the box
[23:24]<gjrvcxnne>hopefully, i might need an api call to do this, as I can see how it might be a security issue
[23:24]<`d0>hmm sorry m8, I wish I could help
[23:30]<slrgscr>zeroflag: thank you, from your help I found how to do it ;)
[23:31]<edjg>Hello.
[23:34]<gjrvcxnne>y0
[23:34]<gjrvcxnne>does this sound odd to anyone else: "You can't throw exceptions in events. It'll mess up the call stack"
[23:35]<zgzzcygnv>yes
[23:35]<gjrvcxnne>odd as in it's totally not true, correct?
[23:35]<zgzzcygnv>yes
[23:35]<edjg>who the hell said that
[23:35]<gjrvcxnne>*sigh*.... and a Senior developer told me that
[23:35]<edjg>haha
[23:36]<gjrvcxnne>it was in response to a bug I had filed.... now that I look at the statement, it's one of the dumbest things i think i've ever heard him or any other developer here say
[23:36]<gjrvcxnne>almost EVERYTHING is an event... it's stupid to think that you can't throw exceptions in events
[23:36]<edjg>I don't see why an event would really be different than any other method when you get down to it







