« first day (254 days earlier)      last day (4780 days later) » 
00:00 - 19:0019:00 - 00:00

12:10 AM
howtogeek.com/59103/… <-- read and disseminate. Very important.
 
@drachenstern Interesting. Yet another reason to us AdBlock?
> So make sure you beware when downloading yourself, but especially when you tell your less-savvy friends to download open source software. Don’t just tell them to Google for it anymore – you have to actually give them the real link.
But, that sounds like work. ;)
 
Bah, by and large I just do it for them :p
Wait, they're making a movie about Atlas Shrugged? I need to pay attention to pop culture more
 
12:27 AM
@drachenstern I tend to take the better safe than sorry approach myself. It's easier to provide them the link then it is to deal w/ questions when they can't find it themselves. :)
 
wonders which seat he'll ride in tomorrow.
 
1:29 AM
One wonders what magic he expects to see in a web site using WCF
0
A: Why doesn't a site like Stackoverflow.com make use of WCF?

HoganTwo points Stack overflow was written before WCF was a product. Even so StackOverflow might be using WCF. How exactly would you know if it was or was not? The functionality of WCF is not something that would (or has to) be expose via a web interface.

 
@drachenstern The blu-ray version will come on 4 discs.
 
@mootinator I would only choose a seat which maximized my friction coefficient and minimized the amount of other people's weight I would be responsible for carrying.
2
 
@drachenstern isn't that supposed to be one of the most monumentally boring, and hard to get through books every written?
 
I take it you're not a fan of Ayn Rand?
Somebody at the ready with the crickets for this one ...
 
meh, never really read her
 
1:40 AM
@Zypher No, I thought that was the Bible ... badumching
 
I thought the first 10000 pages were interesting.
The last 30000 were pretty repetitive though.
 
i just know everyone i talk to talks bout reading that book like they are getting ready to run a triathalon
 
Look, when the topic of your book is a Titan, you can't afford to cut corners
 
make me want to read it less
gah damnit, stuck trying to follow the flyers game on gamecast
that is not nearly as fun as tv
 
So ... dinner
 
1:43 AM
beef?
 
Hey, where is that 10k offer for the code tutorial site?
@Zypher Do you work at SO?
 
@TylerChacha yessir
 
@Zypher Can you find out the link to the 10k StackOverflow Code Learning Site
There was an offer from a site that offered tutorials on all these different technologies. It was directed at 10k users, and I can't find the link anymore
 
hrm, was it a house ad? or a post somewhere?
 
I'd prefer not to continously refresh the page until the desired ad pops, because there is a chance it won't
It was on the side bar
 
1:48 AM
ah ad
 
Hi all, there's two questions about being able to buy SE gear and both are marked status completed
However neither of them have a link
Anyone know?
 
^^ that
 
Sweet, thanks!
I'll add it as a comment to those questions
 
@TylerChacha hrm, i'm not seeing any of the ad ops people online.
 
1:50 AM
No offense, but the guy in the SuperUser shirt doesn't look completely straight..
:(
 
hahaha
that's emmet he is a cool dude
 
I have no doubt he is a cool dude...
but combined with the shirt...
Stupid Careers Ad...
 
which one?
(not that i can do anything about it)
 
the standard double-wide one
The ad I saw is a single box, not a double. Whenever I get the double wide, the chances of getting the right ad is nill
(I'm not giving up!)
So you mange all of the server stuff?
 
I like getting necro rep
 
2:19 AM
Anyone know what AdBlock Plus filter will show ads across the SE/SO network?
 
I imagine it's a matter of removing the line in adblockplus
 
That is like the 1st time that I've used the History page of Chrome in a year
 
2:35 AM
lol
 
@TylerChacha I took the free Resharper course a few weeks back. Wasn't bad.
 
2:52 AM
I'm trying to count the number of unique objects in a given object
 
What code are you using?
 
Javascript
 
I meant the counting part
what's it look like?
 
function count(name, data, level){

        var c = 0;

        if(level === undefined){
            level = 0;
        }

        if(level >= MAX_LEVEL){
            return c;
        }

        for(var i in data){
            var item = data[i];

            try{

                // Check if we've counted it before
                if(!isUnique(item))
                    continue;

            }catch(e){

                // Don't bother with primative objects
                c += 1;
                continue;
I collect all of the objects into a heap, and then compare each object against the heap to see if it is unique
I then continue to go down the tree until I hit my level limit or there are no more primitive values
 
I see that
I figured you wanted to count all the objects that were immediate descendants of an object
 
2:59 AM
the amount of time it takes grows exponentially with each object I guess
 
What's the code look like for isUnique(item)?
 
Right now I'm going about 5 level deep, it is fairly quick. 6 levels is 10% longer, 7 is 50% longer, 8 hasn't finished yet
function isUnique(object){
        for(var i in objects){
            if(objects[i] == object)
            {
                return false;
            }
        }
        return true;
    }
 
Yeah, that's gonna take some time
what you need is to generate a hash for an object, then test to see if that hash exists
 
Javascript has no built in way of doing that
 
then you have to figure out how to generate multiple potential hashes for an object in case of collision, if the hash result is sufficiently small
Yes, I know
 
3:02 AM
then the issue is recursive objects..
I was looking for a way for Javascript to give me the internal object id
 
just md5 everything muhahaha
 
because that doesn't require actually using the data of the object to identify it
 
that will probably be implementation dependent
@mootinator there isn't such a function, iirc
 
Yeah..
 
Lots of implemntations out there.
 
3:05 AM
I'm guessing this is one of those ventures that I'm just doing at the wrong level
 
but for an object with potentially recursive subchildren and have it be unique per the object and it's values?
 
I should probably be doing it at an extension level..
 
I think I would solve the recursive problem first
 
Well, do you think it is a problem worth going after?
 
the recursive problem?
actually, while I was gone I had this epiphany, so to speak.
 
3:07 AM
the entire thing. Counting the number of objects in a Javascript Object
 
your isUnique is your recursive preventer
 
why?
 
because if you find that you've already checked the object then you won't be checking it again
hmmm ....
thinking thinking ... I need to build myself some models and play with some stuff
 
For instance I'm right now parsing through the window object
 
true
 
3:09 AM
Going 7 level deep gets me about 1091 objects
after that, 8 levels deep is getting unresponsive
 
Yeah
can you compare an object to this?
 
that means for the last object, it was compared to 1090 objects, then 1089, 1088
I imagine you can
 
Anybody up for a small scraping challenge?
 
like function compareMe(obj, dupe) { if (obj !== dupe) return true;}
 
Drachenstern can ignore me, since I've posted this in two of his rooms already.
 
3:12 AM
scraping what?
 
Yeah, I think it sucks, but I'm afraid they've screwed themselves
 
@drachenstern Right now the code does 595686 comparisons
 
If it isn't porn I'm not interested.
 
@TylerChacha for 7 levels?
 
ya
Well, for 1091 objects
you can have a 7 level deep object that is only 7 objects
 
3:13 AM
true
 
I didn't mean that.
 
Someone just skyped me: "What do you know about torrents?"
 
I hate those
 
I said "they are files. with text in them."
He responded: "how do I not get caught?"
"Download legitimate material :P"
 
Hah.
 
3:15 AM
So the issue is about handling large sets of objects efficiently
You can't GC them because we need them..
 
The issue isn't O(n^2) sucking?
 
You could dump a certain number of objects based on the tree
but no..
 
Corrected myself O_o.
 
Large datasets suck. They make me remember that my computer isn't infinitely fast
A dataset with 10,000 objects will end up doing 50,005,000 comparisons
 
If you could compute a hash for an object without descending all of it's children you could do this so much faster
 
3:18 AM
so making those 50 million comparisons quick is of the utmost importance..
 
like you said, you need the internal object id
ooooooooooohhhhhhhhhhhhhhhhh
ooooh ooooh oooh
 
javascript doesn't have pointers though...
 
Yeah, the internal object id is the only thing that lets you reference an object without caring about the value of it
and because the same object points to the same id, you just compare two ids and you're golden
 
jQuery can get to the internal id or else it generates it's own ...
see what the jQuery librar does
 
I hope this isn't the answer, because I'll lol: whypad.com/posts/javascript-get-object-id/265
 
3:21 AM
nope
window.id is undefined
 
No
that's the css id
 
@drachenstern Indeed.
 
@drachenstern Where do you see evidence that it can get to the internal id/generate its own?
 
in some one or the other of the debug scripts I've looked at. hold on and I'll repro
 
So, why can't you traverse each object, assign a sequential ID using some attribute nothing is likely to have on it, and know you've seen the object already if the id is already there?
Hem.
 
3:25 AM
because you don't want to assign a property that might already exist and collide with other code
you can assume that ___id___meX is unique
and that might be the way to go
cos you could always generate a random md5hash and use that string as the id ...
 
Yeah
 
so __id__substring(md5hash,8)
cos obj["id"] and obj.id are the same to javascript ...
 
you could also check if the field already exists, and if so use the existing value as the hash..
 
that definitely tells you that you've already visited the object
nah
how would you know it conflicted?
 
true..
well... here is the thing
once I've generated a hash
how do I generate the exact same hash for the next object?
actually
 
3:28 AM
no no no
 
wait
 
that would be a global key
 
hash table
^_^
 
so when you load the global objects, you would generate the key once
then on every object you would assign the same key
and increment a counter and put that value in the key
 
I could just set a object._____CHACHA_SEEN = true; and because anything recursive would be affected, it would work
 
3:29 AM
set it to the count so you know how many objects when you're done too ;)
 
that'll work..
 
And return an error saying "Some jackass used the _______CHACHA_SEEN" properrty.
 
@mootinator how would you know except on the first object?
 
Wait, that doesn't work.
@drachenstern Well, if it's a sequential id, any value not numeric and less than the current pointer.
 
So ... moot gets a cookie for not thinking outside the box (or rather, inside the implementation specific architecture)
@mootinator which only works most of the time
because if I initialize all my objects with that key and the value 1 then ...
 
3:31 AM
haha!
38k objects
 
Just like that you already tested it? wow
 
@drachenstern Then you're a jackass :)
 
you dropped a LOT of recursion
 
Yeah...
Let me increase the level
 
@mootinator anybody who didn't know that deserves to find out for themselves firsthand
 
3:33 AM
10 Levels Deep, 750k
 
set it to 50 levels
 
Hmm, I'm being spammed with cron daemon messages: php: /opt/xml2/lib/libxml2.so.2: no version information available (required by php)
 
I freaking surprised there is that much data in the window object
 
I'm not
 
11 Levels = 6.4 million
 
3:34 AM
it's kinda big
well ...
 
You can see where my doubts are coming in..
 
Yeesh.
 
I think some magic DOM functionality is just creating new objects..
I'm running it on 12 levels
and Chrome killed it
 
Ahh, the joys of having a hosting provider who doesn't suck.
New Blog Post: Maintenance: PHP Upgrades http://bit.ly/gWqnjT #fb
 
Yeah, I think that some magic DOM functionality is ruining it..
you can't honestly believe that any tree goes 38 levels deep without some form of recursion..
 
3:38 AM
Some people don't understand what Stack Overflow is for ...
 
So now that my connection is back :\
 
-1
Q: How to say this in Mandarin Chinese?

boo.How to say: "He not only is a mechanic, but also paints cars as well" in Mandarin Chinese? plz help :) in characters, please.

 
when you're on the final level, console.log the object
 
@drachenstern Level 12 Cap basically just broke the browser
 
Then put it on level 3
I want to see if it's attaching the new id correctly
might have to go to level 4 or 5 for the recursive items
 
3:40 AM
@Myself Closed as lower quality than "send t3h codez"
 
So window.Array doesn't have it set, but window.ArrayBuffer does
 
Ah
I think I might know why
prototype
 
^_^
 
do it for another object that's not window
 
but that shouldn't matter because it will only look at that once
 
3:42 AM
@TylerChacha set it to the first two levels and console.log with the new level as well
/afk
 
Ahh the sweet sounds of dog eating a rawhide bone way too fast, and horking up chunks of it onto the carpet.
 
Yep, it correctly gets rid of recursion
var data = {}; data.test = data; only returns one object
 
@TylerChacha And your logic takes into account things like window.document.defaultView?
 
what about it?
 
defaultView is window
 
3:49 AM
yes
it can handle recursion
 
Good.
Now, I'm off to catch a plane.
 
you're gonna need a big net
3
 
4:00 AM
Clever, @Tyler.
is turning in for an early night
Night folks!
 
I'm about to turn in early myself.
 
Bah
 
bah bah
 
black sheep
 
have you any wool
 
4:12 AM
why do I spend my day with you people..
 
No sir no sir, I had to remit all of it to the IRS.
 
@TylerChacha because you learn things. Like nursery rhymes
 
but I already knew that one..
 
don't make me start telling jokes :p
how many adhd kids does it take to change a light bul...
 
Ooh shiney.
 
4:24 AM
fights hard to suppress the chuckles
 
Hmm, I got to the airport too early. I don't think that's ever happened when I'm on my way out before...
And look, there's a Starbucks.
 
Better to not miss the flight home man
I imagine I'll see you in the AM then. I'm pretty sure it's a less than 14 hour flight back, yes?
 
I'm on my way to Riga, Latvia right now. :P
It's a seven and a half hour flight home from here, not nearly as bad as the one to Hong Kong
 
One supposes one should change one's laundry then consider this 'sleep' thing one keeps hearing so much about.
 
4:43 AM
Bah, sleep.
 
@TimStone I expressed such a sentiment not one hour ago.
 
 
1 hour later…
6:00 AM
Hi guys, is this on topic for SO stackoverflow.com/questions/5658317/…
 
6:10 AM
@JoseK It's marginally programming related.
Though, it is rather localized.
 
hmm, thanks
 
6:23 AM
What type of stuff in software would make you think: "This is amazing!"?
 
do you mean in code?
 
Because I really don't look at any software and think "Wow... this is amazing!"
No. Development Tools, Applications, etc
 
I did that only once when I saw the robot unicorn attack game
 
 
1 hour later…
7:54 AM
morning
 
 
1 hour later…
9:24 AM
@Arjan, you there?
sigh...
 
 
4 hours later…
1:27 PM
I just won the outspoke badge for very strange starred comments.
yesterday, by Trufa
@drachenstern hm?
Like that one
:)
 
2:14 PM
Hey, I just realized. Every tutorial that describes "singleton classes" is incorrect.
You can't have "singleton classes". You can only have a "Singleton class".
 
2:26 PM
Anyone here?
I answered on this post and now my answer was made a CW! Do I not get rep from that?
 
2:54 PM
> A question is not formed just by ending a statement with a question mark. – BoltClock 22 secs ago
 
@PopularDemand Where is that from?
 
3:43 PM
@PopularDemand No, it also requires an inflection at the end when reading it.
 
My Nice Answer was made into a CW! Nooo....
 
hahaha
 
Bing doesn't like me injecting HTML into their page..
 
I should hope not
 
4:08 PM
@ircmaxell Quite so? Inflec tion [ Quite so;
 
hehehe
 
5:13 PM
@Moshe What's a CW?
 
Community Wiki
 
@Hogan Community Wiki - which doesn't generate rep.
See, I learned from this answer that there's a fine line between a really good answer and a too good answer. Apparently, my answer was too good...
Well, here's the answer in case anyone wants to upvote it, even though I get no rep.
10
A: What are the key concepts for an iPhone Developer to learn?

MosheThere are a number of concepts which make up the basics of iOS development. There coding patterns, techniques and some general tidbits that you should know about. Coding Patterns: Key Value Observing (KVO): Allowing one object to respond to changes of another object's properties by registering...

 
Boo, it was a mod turn
 
@ircmaxell Huh? Mod inflection turn?
 
meaning a mod converted it manually (rather than auto-conversion)
 
5:21 PM
@ircmaxell Oh, yea. I know.
So roll it back, perhaps? Or has that hole been closed?
 
:-D
 
I didn't have the guts to do so.
@ircmaxell - Would that get me in trouble?
 
you can't roll it back, I don't think so at least
 
6:27 PM
6
Q: No migration path for year old plus questions except for mods and 20k users

Tim PostRecently, this question was migrated from Stack Overflow to Programmers SE. What was the point of migrating it? It was asked in October 2008 It already has 44 answers These types of migrations are disruptive to their community, not constructive. When you migrate a question, you should be doin...

Folks, please consider a question's age and answer count prior to shipping it to a sister site.
 
+1
 
6:38 PM
Hello
Wow... it takes like no effort to get reputation on SO anymore..
 
nope. I'm averaging around +20 to +30 per day without answering a single question
 
@ircmaxell That's a fairly decent interest rate
 
yeah. I'm quite surprised by it (some days only +10, but a few were like +50 or +60)
 
@ircmaxell, me too. just as well, I'm getting increasingly bad at answering questions...
 
I'm getting increasingly bored with the quality of questions...
although I did answer 2 decent ones today
 
6:46 PM
I'm currently reading: The Dip, Super Systems, Small is the new Big, Ace on the River, and All Marketers are Liars
 
@ircmaxell The only questions that are of any interest to me on SO are the ones I ask :)
 
lol
agree
 
Probably there are other interesting ones there, but I don't see them.
I think I'm suffering from Stackfatigue.
Honestly, my participation (and rep) on meta have exploded over the last 6 months, whereas my SO participation has stagnated, some.
 
same for me, but replace meta with chat :-D
 
I was here on chat an awful lot before someone leaked to me the info that I'd been detected as #5 internet user by IT (and HR)...
The community side just got more interesting that Q&A (sorry Jeff :)
2
 
6:52 PM
ahhh
I'm the one that would detect myself, so no issue
 
Of course, ajax polling would make me come out pretty high anyway, and the guy from IT understood that. But I didn't fancy my chances with any 'technical' explanations like that with HR.
I'm not ready to be fired yet, haven't finished learning Android :)
 
I am :-X
 
00:00 - 19:0019:00 - 00:00

« first day (254 days earlier)      last day (4780 days later) »