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-11
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Next >
[22:26]<lnvnzxu>that's a generation 2 collection
[22:26]<mjzymygo> GC.Collect(); works on ALL generations
[22:26]<lnvnzxu>...
[22:26]<lnvnzxu>also called a generation 2 collection
[22:27]<mjzymygo>peterhu... erm... no
[22:27]<rxrcr>heh
[22:27]<lnvnzxu>http://blogs.msdn.com/ricom/archive/2003/12/02/40780.aspx
[22:27]<lnvnzxu>guess rico mariani disagrees with you
[22:29]<lnvnzxu>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/dotnetGCbasics.asp
[22:30]<mjzymygo>peterhu: the first article agree's with me fro what I can see
[22:31]<lnvnzxu>also note: GC.Collect(int), where the int is the oldest generation to perform the collection on
[22:31]<lnvnzxu>i.e. GC.Collect() == GC.Collect(GC.MaxGeneration)
[22:32]<mjzymygo>peter.... the GC.Collect always hit them in order
[22:32]<mjzymygo>starting at 0
[22:32]<mjzymygo>you can't pull a specific Gen 2 collection
[22:32]<lnvnzxu>i didn't say you could
[22:33]<mjzymygo>generation 0 would collect first
[22:33]<mjzymygo>1 if the conditions are right
[22:33]<mjzymygo>maybe even 2
[22:33]<mjzymygo>but GC.Collect() does collection on all generations
[22:34]<lnvnzxu>which is why the term "generation 2 collection" implies a full collection
[22:34]<mjzymygo>erm... no
[22:34]<mjzymygo>because generation 2 isn't always the top generation.
[22:35]<lnvnzxu>how do you arrive at that conclusion?
[22:35]<ymuggjotot0>GC.Collect() does a gen 1 collection
[22:36]<mjzymygo>The generations are based on object age
[22:36]<ymuggjotot0>err gen 0 :)
[22:37]<lnvnzxu>Moridin8: and?
[22:37]<kjr>are there more than 3 generations?
[22:37]<lnvnzxu>Kog: not in microsoft's CLR
[22:37]<kjr>didn't think so
[22:37]<omdss1us>hi, quick stupid question, is there any quick way to determine if a column is in a SqlDataReader?
[22:37]<kjr>it'd be odd managing deltas with a ton of generations
[22:38]<mjzymygo>no, the CLR does only support 3 generations at present
[22:39]<mjzymygo>Kog: it would be handy for long running systems.
[22:39]<svzz[wjzc]>hey guys i need a hand here, i'm trying to "hack" a BindingSource, to have it throw a BeforePositionChanged Event... i tried to "override" the Position property with a new... but seems like i don't know what i'm doing : http://rafb.net/paste/results/eXaZs716.html
[22:39]<svzz[wjzc]>actually i plug a BindingNavigator on that and the Navigating doesn't make my event fire... so is there a way?
[22:47]<gjrvcxnne9w>whoah
[22:47]<maxgg>is there some sort of mapper to help me map file extensions to their corresponding mime types?
[22:47]<gjrvcxnne9w>i somehow started an argument on what GC.Collect does? lol
[22:47]<gjrvcxnne9w>ok, it does a MaxGeneration collection, which right now is always 2
[22:48]<maxgg>i thought to make my own dictionary
[22:48]<maxgg>but... you have this situation where you might not have a complete list
[22:49]<gjrvcxnne9w>i find using magic bytes best for mime types
[22:49]<gjrvcxnne9w>file extensions are evil
[22:49]<gjrvcxnne9w>that'll just confuse u tho lol
[22:49]<maxgg>you mean magic bytes as in reading the start or end of the files and try to figure out what it is?
[22:49]<gjrvcxnne9w>dchen: if you implement a class for it, then your query function could return MimeTypeNotFound
[22:49]<gjrvcxnne9w>yeah actually lol
[22:50]<maxgg>that's a pretty cool idea
[22:50]<maxgg>if it wasn't such short notice i would totally do that
[22:50]<gjrvcxnne9w>it's pretty native on *nix's nowadays
[22:50]<gjrvcxnne9w>microsoft has poor support for it tho
[22:50]<maxgg>with text files it can get pretty hairy though, you have utf8/16-bit unicode/ansi/regional-encoding to deal with on top of the text format
[22:50]<gjrvcxnne9w>lol, yeah, tru...
[22:50]<maxgg>so i wouldn't say it's a trivial exercise to do magic bytes
[22:51]<gjrvcxnne9w>not at all
[22:51]<maxgg>some of these encodings do magic byte identification exactly because it's hard to figure out if you didn't have any hint
[22:51]<gjrvcxnne9w>apache uses magic bytes
[22:52]<maxgg>lots of love for good ol apache :)
[22:52]<maxgg>we are using the other fine camp's intarweb engine though
[22:53]<zgzzcygnv>yo
[22:54]<zgzzcygnv>anyone here installed vista on MS Virtual PC 2004?
[22:54]<pfrcnnus>Does anyone happen to do how to rename a WindowsXP user account via C#?
[22:54]<maxgg>did billg just said chances are pretty good Vista/Office 12 will be out Jan/Dec (respectively)
[22:55]<kjr>GoatCheez: nix is full of magic... magic bytes, magic cookies
[22:55]<kjr>silver bullets
[22:55]<maxgg>?
[22:55]<maxgg>anyone here work at redmond :)
[22:55]<maxgg>?
[22:56]<kjr>dchen: several people
[22:56]<maxgg>cool :)
[22:56]<kjr>i work in redmond, but not for MS
[22:56]<maxgg>http://httpd.apache.org/docs/1.3/mod/mod_mime.html
[22:56]<kjr>ewww... apache 1.3
[22:56]<maxgg>hey hey hey
[22:57]<maxgg>don't knock the 1.* branch :)
[22:57]<maxgg>or has everyone gotten 2.* to work now
[22:57]<maxgg>i remember back when mod_perl weren't very happy with 2.*
[22:59]<maxgg>god, is anyone still sane enough to use perl? are has the ruby/c#/java craze gotten to even the more sensible people?
[22:59]<maxgg>those were the good days
[22:59]<maxgg>perl is dead, then will never produce perl 6
[22:59]<kjr>what the everloving hell are you talking about
[22:59]<kjr>"sane" enough to use perl?
[22:59]<kjr>99.99999% of people can't even write legible perl
[22:59]<maxgg>...
[23:00]<zgzzcygnv>lol
[23:00]<kjr>dchen: if you've written as much perl as you claim, surely you already know that
[23:01]<kjr>vent?
[23:01]<maxgg>i have seen a lot of bad perl
[23:01]<kjr>dchen: the vast majority of perl is illegible and unmaintainable
[23:01]<maxgg>i don't produce bad perl myself, that's all i can do
[23:01]<kjr>dchen: so arguably most of the people writing perl weren't *sane* in the context of extensibility
[23:01]<maxgg>if you want to write reeally legible perl, you can, and that's what the majority of best perl shops do
[23:02]<kjr>dchen: and how much of the perl in the wild does that account for...? 1%?
[23:02]<kjr>you CAN write legible perl, it's just that most people don't
[23:02]<maxgg>i am not trying to be holier than messy-coder are here, just repeat the obvious, anyone can write bad code
[23:02]<kjr>for sure
[23:02]<kjr>but some languages seem to encourage bad practice
[23:03]<kjr>or, for some other reason, are inhabited by programmers that do just that







