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-27
[17:35]<rwyfcygs>There must be a "StealMeTheFocusOrElse(&bitch) call.
[17:36]<rwyfcygs>And of course, StealMeTheFocusOrElseA(&bitch) for Win9x
[17:43]<sjg>obj1.Equal(obj2) => hastable[obj1] == hastable[obj2] ????
[17:47]<vyzusdjvnev>hey how can I check the browser user agent in asp.net
[17:47]<rwyfcygs>Headers
[17:49]<vyzusdjvnev>link for the example?
[17:50]<vyzusdjvnev>cause i want to do a css file server side based on browser
[17:52]<rwyfcygs>Look at the Headers property of the HttpRequest class (ASP.NET Request object)
[17:53]<vyzusdjvnev>if(Request.UserAgent == "Microsoft Internbet Explorer")
[17:53]<vyzusdjvnev>that?
[17:53]<vyzusdjvnev>s/Internbet/Internet
[17:53]<rwyfcygs>Cool, a UserAgent property
[17:54]<rwyfcygs>I always had to pick through the headers manually on ASp (old)
[17:54]<zyccus>if at all possible
[17:54]<rwyfcygs>(or maybe I'm just dumb)
[17:54]<zyccus>it'll just cause you headaches
[17:56]<vyzusdjvnev>rikkus, is there a better way
[17:56]<vyzusdjvnev>cause css comment conditional code doesn't work
[17:57]<zyccus>the better way is to avoid all CSS which works (significantly) differently in different browsers
[17:57]<vyzusdjvnev>well the only other way is to stop IE users from using the site cause IE sucks
[17:57]<su2zgzzc>Whats a good way to convert nanoseconds (long) to seconds (string) without using floating point?
[17:58]<zyccus>divide by 1000000000?
[17:59]<su2zgzzc>I need nanosecond percision
[17:59]<zyccus>er
[17:59]<zyccus>so you don't want integral seconds...
[17:59]<su2zgzzc>No, I want it as a string
[18:00]<su2zgzzc>I don't want to lose anything by the floating point conversion
[18:01]<zyccus>convert to a string, move the decimal point
[18:01]<su2zgzzc>well insert a decimal point
[18:01]<zyccus>ok, if there wouldn't be one, insert one
[18:01]<zyccus>you get the idea
[18:01]<su2zgzzc>but I also need to pad if the value is less than 1 second
[18:01]<zyccus>yes
[18:02]<su2zgzzc>I just want to know if there is some format spefication I could use to do this instead of padding manaually
[18:03]<zyccus>not that I know of
[18:03]<azysvjvnfyss>when core2 will be out ?
[18:03]<zyccus>Aristoteliss: already is
[18:03]<azysvjvnfyss>rikkus where I can buy one ?
[18:04]<zyccus>Aristoteliss: a shop
[18:04]<azysvjvnfyss>rikkus tell me an eshop
[18:04]<zyccus>Aristoteliss: www.overclockers.co.uk
[18:04]<azysvjvnfyss>mmmmmmm
[18:04]<azysvjvnfyss>newegg doesnt have them :s
[18:04]<zyccus>but you're in greece
[18:05]<zyccus>patras?
[18:06]<zyccus>subanark: perhaps you could use decimal
[18:06]<azysvjvnfyss>Athens
[18:07]<azysvjvnfyss>rikkus if I buy from uk it will exclude VAT?
[18:07]<zyccus>subanark: (123m / 1000000000).ToString() -> 0.000000123
[18:07]<zyccus>subanark: (123456789012m / 1000000000).ToString() -> 123.456789012
[18:08]<zyccus>Aristoteliss: I don't know. Why not just wait a few days?
[18:08]<su2zgzzc>what is the m postfix?
[18:08]<zyccus>it's used to specify that the numeric literal is a decimal
[18:08]<azysvjvnfyss>wait for what ?
[18:09]<su2zgzzc>oh ok... learn something new everyday
[18:09]<zyccus>that's my motto
[18:12]<azysvjvnfyss>my motto is achieve your goal with any means
[18:13]<azysvjvnfyss>well actually, the motto I have at the moment
[18:13]<azysvjvnfyss>these days
[18:14]<sdnffdxdlld>you a manager?
[18:14]<sdnffdxdlld>:P
[18:15]<azysvjvnfyss>a CEO :S
[18:15]<sdnffdxdlld>that explains alot
[18:15]<myanzs>is there a way to speed up the process of dealing with GUI elements from a worker thread? For every method of every object I want to call I have to create a delegate, event, assign the event to the method and then use Object.Invoke method. this is pretty time consuming and adds a lot of extra code
[18:16]<sdnffdxdlld>dicers: background workers didnt work for you?
[18:16]<myanzs>the background worker someone suggested earlier seems to be for long process not just changing some element of the GUI
[18:16]<sdnffdxdlld>you put the worker thread in the back ground worker -_-
[18:17]<sdnffdxdlld>well the background worker *is* the worker thread
[18:17]<myanzs>say I want to just change a button from "Connect" to "Disconnect". or change a label in a similar way. background worker isn't a right way to do this no
[18:18]<sdnffdxdlld>if you want to change it from a wokerthread ... from what daming said earlier if you use the background worker as your worker thread then it'll do stuff like that for you ...
[18:18]<sdnffdxdlld>I havent used it personally so i cant say much more than that
[18:18]<myanzs>or write something in richbox. it's really frustrating to work with delegates because I have to do that entire process for every method I want to call
[18:20]<myanzs>example on msdn with background worker updated progress bar while doing some simulated work. if I figured it out right it's used for some long process like that not simple GUI adjustements like changing a label
[18:21]<svzz[wjzc]>Okay who wants to talk ORM implementation with me?
[18:21]<sdnffdxdlld>:P
[18:22]<sdnffdxdlld>SpikeLite msdn2 background worker
[18:22]<slycnlyvn>smellyhippy, Walkthrough: Multithreading: http://msdn2.microsoft.com/en-us/library/ywkkz4s1.aspx
[18:22]<svzz[wjzc]>it's just about the population... i mean, let's take a table that has a many-to-many relation ship... so in my code i'd have a collection of a class mapping this table... and in each object, a collection or a class mapping each items of the many-to-many relationship...
[18:23]<sdnffdxdlld>SpikeLite msdn2 backgroundworker
[18:24]<slycnlyvn>smellyhippy, BackgroundWorker Class (System.ComponentModel): http://msdn2.microsoft.com/en-us/system.componentmodel.backgroundworker.aspx
[18:24]<svzz[wjzc]>now how do i fill that... to map the main collection it's easy, one reader and one stored proc and that's all... buit for the inner collections... what would be the "way" to fill those... opening a new reader for each row of the main one? open a dataset with all the inenr collections possible items and iterate thought it for each rows of the main reader... or another one?
[18:24]<myanzs>"When you want a responsive UI and you are faced with long delays associated with such operations, the BackgroundWorker class provides a convenient solution."
[18:25]<myanzs>it's even more time consuming to set everything up than with delegate/invoke
[18:26]<myanzs>I wish there was a way to do that entire thing automatically, I use the copy/paste way
[18:29]<vyzusdjvnev>SpikeLite msdn2 Request.UserAgent
[18:29]<vyzusdjvnev>going slow :(
[18:30]<sdnffdxdlld>SpikeLite msdn2 Request.UserAgent
[18:30]<slycnlyvn>smellyhippy, HttpRequest.UserAgent Property (System.Web): http://msdn2.microsoft.com/en-us/library/system.web.httprequest.useragent.aspx
[18:31]<zyccus>spikelite, tell people to use the bloody local documentation viewer
[18:31]<azysvjvnfyss>is there a LGA-775 motherboard that can hold 2 dual core processors? (quad core)
[18:31]<zyccus>For those on * Express, this was just released: http://www.microsoft.com/downloads/details.aspx?FamilyId=373930CB-A3D7-4EA5-B421-DD6818DC7C41&displaylang=en
[18:32]<zyccus>Aristoteliss: not that I know of - but perhaps Apple will have some soon
[18:33]<azysvjvnfyss>so to build a quad core system nowadays I need xeon (socket 771) or opteron (socket 940) right?
[18:36]<zyccus>right
[18:37]<zyccus>there'll be quad core soon enough, if you want that
[18:37]<zyccus>(on a single processor)
[18:38]<zyccus>"We notified customers we're pulling in both the desktop and server (launch) of the first quad-core processors into the fourth quarter of this year from the first half of 2007"
[18:38]<azysvjvnfyss>mm
[18:39]<zyccus>what do you need quad core for, if you don't mind me asking?







