« first day (957 days earlier)      last day (3991 days later) » 

6:00 PM
no difference
if (flag == searchItems.length) {
 this.className = "";
} else {
 this.className = "hideEl";
}
is what I tried
 
is chrome choking on that jsperf as well?
 
that was a live test
the funny thing is firefox handles it just fine
 
Do you have a lot if other logic or dom manipulation in the each?
 
The funny thing is, Firefox is actually a different browser than Chrome.
 
nope
If I remove the section of code shown nothing locks
Kendall you need to eat something
you get to be like Betty White when you are hungry
2
 
6:05 PM
Everyone does. Otherwise they would starve.
 
is searchitems an array or a jq object?
 
I had two steak sandwiches for lunch. I'm not hungry.
 
an array
 
@TravisJ lmao!
 
man the pub has 2 for 1 burgers tonite. They should give me a free one next week
 
6:08 PM
damn beer and burgers sounds wonderful
braught
some dogs
nacho cheese dip with some chips
 
yeah yesterday's pub was between work and the tube station. Can't go there two days in a row or they might get suspicious
too many coworkers walk by
 
suspicious of what? lol
oh
they'll think you're an alchy
 
At first I thought Grooveshark was mixing music. Then I caught on my phone was ringing.
 
Well, testing > jsperf I guess.
I will just do this:
if (flag == searchItems.length) {
 this.className = showIt;
} else {
 this.className = hideIt;
}

and then

$("."+showIt).show();
$("."+hideIt).hide();

later
which is faster (and the original design). thanks for your input :)
 
why the hide show??
that does inline styles
 
6:11 PM
It is 90% faster in production
 
.hideIt { display: none; }
 
nope
too slow
showIt and hideIt are guids
 
can you throw a js fiddle up that shows the lockup?
 
any time a lot of dom gets added in a jsperf it fails pretty hard
I am not sure it would handle the 5000 elements
 
firing up the laptop. I think they have wifi here :)
 
6:19 PM
Quick question: if I have a struct with a string field, and I assign the struct to another variable, does it make a copy of the string in memory, or do the string fields in both structs point to the same location in memory, since string is a reference type?
 
makes a copy
 
@TravisJ: so, if I have a struct with string fields, i should make sure that the strings won't be very large, otherwise there will be a lot of copying as it is passed around, correct?
 
No, Travis is wrong.
It copies the reference, not the string.
 
@KendallFrey: ok, that's what I thought. I just wanted to make sure that strings weren't treated specially somehow (i.e. not like other regular reference types)
 
Strings are treated just like any other reference types, but because they're immutable, they're almost indistinguishable from value types.
 
6:22 PM
@KendallFrey: excellent - thanks for the clarification
 
Imagine me screaming "FUCK" at the top of my lungs, over and over. Because that's what I want to do right now.
 
why
 
You know how you feel when you've been debugging something for 8 hours and it turns out to be a single line that you knew you needed but forgot to add? Yeah, that!
 
@KendallFrey - It will copy the reference for the string? Sorry Rob
 
lol
been there
 
6:27 PM
@TravisJ Indeed it will.
 
Apparently I have had too much js lately.
 
When a struct is copied, it simply copies the contents of memory at the struct's address.
@TravisJ JS is the same, I'm guessing.
 
in js strings are treated as primitive values
 
They are in C# too.
As far as is relevant, anyway.
 
6:29 PM
I wish JS supported pointers.
IMO, the biggest hole in JS is the lack of goto.
 
i see the slowdown on toggleclass as well which is weird.
although maybe its the logic behind toggleclass
 
sup guys
 
Up is the direction toward the sky, or opposite of down. Why do you ask?
A more pertinent question would be, why must I be such a dick?
 
@drch - I like how you used the [''] to access the api
 
Same reason I always ask what's up; its in our nature
Anyone any experience with the MX record thing for Google Apps for Business?
(yes I know, hardly a c# topic ;))
 
6:33 PM
Hank lives.
What's the deal with your mx record?
 
Der @Billdr!!
I got this domain name called htbr.nl
 
So memorable.
 
Updated the MX records as Google suggested
 
@TravisJ: check out the summary near the bottom of this: learningjquery.com/2010/05/now-you-see-me-showhide-performance
enabling/disabling a stylesheet sounds mental but .css() is faster according to this guys claims
 
I can nslookup the records using 8.8.8.8 fine, but Google Apps is still 'updating' for whatever reason
 
6:35 PM
@ActionHank hey!
 
Woah, @Steve is here too!
Hi man
Hows life
 
I don't remember it being an issue to set up. My guess is you skipped a step.
 
its alright!
how is life with you
 
I'm battling Google's Apps for Business now
 
@TravisJ: here's one showing all 3. jsfiddle.net/k8hm9
 
6:38 PM
VEREY IMPATIENT
 
gah
 
@Billdr okay, I'm in trouble shooting mode
 
@drch - Interesting link. I only see 2 on your fiddle
 
IIRC I need to set 5 MX records
 
I went to /1 on my own and found it :P
 
'ASPMX.L.GOOGLE.COM.
ALT1.ASPMX.L.GOOGLE.COM.
ALT2.ASPMX.L.GOOGLE.COM.
ASPMX2.GOOGLEMAIL.COM.
ASPMX3.GOOGLEMAIL.COM.
 
i wonder at what point the css rules are run....
 
Oh goddamnit
 
gonna try something
 
Well anyway, these 5
 
6:40 PM
they seem pretty similar in speed to me
 
If i go nslookup - 8.8.8.8 (google's dns) and type set q=MX and htbr.nl it returns
`Non-authoritative answer:
htbr.nl mail exchanger = 10 ASPMX.L.GOOGLE.COM.
htbr.nl mail exchanger = 20 ALT1.ASPMX.L.GOOGLE.COM.
htbr.nl mail exchanger = 50 ASPMX3.GOOGLEMAIL.COM.
htbr.nl mail exchanger = 30 ALT2.ASPMX.L.GOOGLE.COM.
htbr.nl mail exchanger = 40 ASPMX2.GOOGLEMAIL.COM.`
which looks good, right?
 
@TravisJ winner: jsfiddle.net/NMT2e/1
detach, maniuplate, reattach
combine that with the .css approach and you got a stew goin
 
interesting
The css approach was really not any different
the detach shows promise
 
i wonder if chrome is applying the rules as the dom is manipulating while firefox waits for the event handler to complete.
but in general, if youre doing lots of dom manip, its best to remove the element from the dom and put it back when youre done
thats why the 'load divs' is quite fast
 
cool, working on that
although, I apparently broke some side affect which is slowing down my time improving the performance
overall, today is not going well
 
6:46 PM
that's good though
set the bar low for tomorrow
 
So @Steve, still in Amsterdam?
 
wrong steve
if i was in amsterdam i'd be drunk, high, and with a hooker, not in a c# chat room
 
makes sense
 
i'm the vulgar one
 
I have to check in more often
forgetting which steve was in A'dam
silly me
 
6:52 PM
oh man this project I'm working on just got put in hold and the word is that it will be for a while
 
So, my co-worker lend an Auris and decided to scuff the side of my car with it
 
gotta love projects where you invoice 50k and don't have to deliver anything
 
@drch thats... no
I can't decide if that's good or not
as a developer: WANT BUILD APP NOW
 
it's awesome
 
as a man: MONEYZ
 
6:53 PM
the fun part is always the beginning
 
Can someone explain to me what this line of code does? I don't understand the | operator
contact.PointerInfo.PointerFlags = PointerFlags.DOWN | PointerFlags.INRANGE | PointerFlags.INCONTACT;
 
@ActionHank Adam and Steve. The gay version of Eden.
 
A Gay Bible. Would be a seller, I reckon
 
Amman it does a but wise or, basically a way if storing a bunch of flags in a single integer variable
 
All bibles are gay.
Sorry hank, I don't have an answer for your MX situation. I'm neck deep in something.
 
6:55 PM
@drch so like declaring an enum?
 
@Billdr I hope it's something sweet you're neck deep into
I'll have patience then
 
@KendallFrey we both know i'm into you kendall
 
@AmmarAhmed like declaring 3 enums
 
It is not sweet. At all.
 
Adam and Yves
 
6:56 PM
The flags stored in PointerFlags are DOWN, INRANGE and INCONTACT
@Billdr sucks
 
agreed!
 
@AmmarAhmed although naming a variable the exact same name as the Enum is a bad practice
(at least in my book)
 
my book says that's a-ok
public Foo Foo { get; set; }
 
how do you do your taxes if you free lance
do you still pay into like ss?
 
Free Lance before March 30
 
7:02 PM
sort of
 
oh wait this wasn't a word joke
 
lol no its not
 
I pay myself a salary that is low enough that it's all included
I'm in the UK so my NI and pension are paid by the govt because I only make £7k per year
 
oh
 
yeah I have a salary that is just under the poverty line
 
7:04 PM
why
guessing thats a choice
 
we have the same thing in Canada. If you make 11k or less you get it all for free. Not sure how it works in the USA
because I don't pay tax in that 7k
and I don't have to pay NI and my company doesn't have to pay employers NI
 
but if you made 100k, you wouldn't be paying 93k in taxes
 
my company makes 100k. It pays me a salary of 7k. That's a business expense do no company tax.
 
ohhhhhh
gotcha
 
my company pays 20% on its profits
then issues me 30k in dividends
which again I don't pay personal tax on cause I only make 7k per year
 
7:09 PM
so pretty much you make a buttload of money, but its through your company so you don't have to pay personal taxes on it
is there some limitation on what you can buy with "company money"
 
yep. It's less about how much you make and more about how much you take home
Kinda - it has to be a business expense. But my company can buy me a car or invest in property (which I can live in)
 
gotcha
 
and it's expenses aren't taxed - it pays taxes on profits
so it's always beneficial to funnel as much if your expenses as you can they your company
 
well i'm in the states, not sure if its the same way or not
 
it's very similar I'm sure
that's why people bitch about the rich exploiting tax loop holes
but they're there for small businesses too
Plus you tend to get big incentives for small businesses as well
IE in Canada, tax rate for dividends from a small Canadian business is like 14%
 
7:15 PM
i guess i wasn't aware that only profit is taxed, i thought
 
but for a foreign co, it's 29
 
all revenue was taxed
 
just wikid it and corp tax rate in the US is 35
That's fucked
get a bit if experience and cone to the UK :)
I'm only here till the end of the year though. Gotta figure all this shit out again in whatever country I end up in.
 
going to live in thailand
program from the beach, where $1usd is worth a ton over there, its going to be great
 
I have a bank account in the Isle of Mann in case I need it ;)
 
7:19 PM
is that a big deal or something? idk what that is
 
tax haven
I've been thinking of doing a year in Asia actually. I want to find somewhere I can live for a year with like $15k
 
fuck yeah, that would be awesome
 
maybe Vietnam
 
a bunch of my old marine buddies are going to thailand this fall to go hiking and biking and shit
i'm thinking of going
 
do it
 
7:26 PM
idk, i got pretty fat in the past 4 years lmao
 
the ladyboys don't care how fat you are
 
plus hiking and biking will end up as drinking and drinking
 
lol probably
 
nobody wants to hike at 34 C
 
7:28 PM
Phi phi islands is nice
but I prefer Bali to Thailand
 
Does it have wifi?
 
Im going to try to find a job that lets me work remotely
 
Full moon party is sick if it is still around
 
probably go to Croatia for the first couple if months
 
@drch Stack Exchange is great for that.
 
7:30 PM
then Asia once they trust that I can get shit done
@Kendall ? Remote job board or something?
they have quite a but of it out here cause its hard to get devs outside if London
 
They have lots of remote workers.
Plus, if you work for Stack Exchange, you get a diamond.
 
and not odesk 10/hr jobs ?
I don't get out if bed out here for less than $70/hr
although that would drop for a remote gig
 
but the you could stay in bed
 
good point
I can still get visas for Germany and Norway
so next year will probably be Germany
 
Try to find something in Norway, I think they pay really good.
 
7:36 PM
but I don't want to go there in winter so I gotta find something to do for Jan-May
 
meh you can ski in the winter
 
yeah I've heard that as well. Very high cost of living but very good pay
 
Jan-April is nice
October-December can probably be dark and depressing
The climate in Oslo is ok
 
yeah I think I'll hit the Olympics first then maybe thaw out in Thailand and Vietnam
 
@drch - Any idea why $holder isn't getting appended to $wrapper? jsfiddle.net/cWW84
 
7:38 PM
Far west you can expect a lot of rain
 
dude I'm from Vancouver rain is my middle name
 
what up @TravisJ
 
sup scott, are you sure you have all the proper using declarations for the same namespaces in the other project?
 
I guess , its calling the functioin just fine , its just when it tries to open the datacontext it throws the exception , and when the datacontext get initialized that should be up to the second project
 
7:41 PM
Does it have access to the connection string from the other project's web.config?
 
hmmm
I don't know , I thought the face that project 2 has access to web.config and project 2 is using it , that should be ok, right?
 
Travis: try <div/>
 
I am not sure. I don't work much on n-tier multi project solutions.
 
back on the iPhone so hard to check :p
 
@drch - no dice
didn't work with <div></div> either
 
7:44 PM
oh wait yeah
 
the wrap is fine, it just wont append
 
a.apped(b) appends b to a
 
yes
 
Think you have it backwards
 
I think it is correct. $holder was detached. So I need to append holder to wrapper.
$wrapper.append($holder);
 
7:46 PM
ok. Beer + iPhone makes it tricky ;)
 
lol
Maybe I will post an actual so question for it
 
I see a red border
doesn't that mean its working?
 
No, the red border is from the wrapper. The holder should have the text "a"
 
holder.wrap(wrapper); wrapper.append(holder); is doing my head in
 
lol
 
7:49 PM
yeah I'll take a look in a few. Can't inspect the markup on mobile :)
 
is there a mobile app for this or is it just via browser?
 
it's a mobile view in the browser
 
0
Q: Wrap detach append in that order not appending

Travis JIn order to do some DOM manipulation efficiently I am detaching an element. In the process, I came across this interesting situation: jsFiddle Demo var $holder = $("#d"); var $wrapper = $("<div>").css("border","1px solid red"); $holder.wrap($wrapper); $holder.detach(); $wrapper.append($holder);...

 
ugh, someone was putting boxes in the door to keep it open and it kept making this horribly annoying high pitched screech until someone moved the box
 
maybe there was a child in the box
 
7:52 PM
nice
 
more likely if this took place in china
see the news about the baby in a sewer pipe??
crazy footage
 
@drch lmao
 
China has some weird shit goin on sometimes.
 
Most times
 
I think that humanitarian loosely translates to sweep it under the rug in Chinese.
 
7:54 PM
@drch Before I read deltree's message, I thought you were still talking about HTML and I thought about the humor of it also meaning a human baby in a box. Then I caught on you were actually talking about a human baby O.O
 
in france ( I think at the Louvre) they have a sign in Chinese only asking people to please not spit or defecate wherever they please
 
In Luxor I think they have the same thing now
 
spit or defecate? All the stuff in between is cool though right?
 
if (girl) { element.detach(); }
from spit to defecate. No open intervals
 
@deltree If it matches the regex /s.it/, it's a no-no
 
7:57 PM
I feel like when I ask questions here no one cares because I have enough rep that I should "be able to figure it out on my own".
 
^
Except when I ask questions, I get the impression that no one else even knows the answer.
 
Which sucks, because sometimes these edge cases are a pain in the ass
 
I'm sub 1k karma so people still say 'what have you tried '
 
@Kendall - I get that a lot too
 
I'm re-reading your stuff
 
7:58 PM
Usually I end up deleting my question
 
Why?
I don't think I've ever deleted a question of mine.
 
but I think of rep as downvoted bullets so an 800 rep arsenal is plenty
 
check that out
yup, the problem is api.jquery.com/append
I think I can answer his question
aww, too late
 
I got an answer :P (what luck!)
 
:(
 
8:03 PM
It was actually an issue with wrap
 
pfft
append does more than it seems as well
@TravisJ check out the last example on api.jquery.com/append
 
$holder.wrap($wrapper);
var $w = $holder.parent();
win
 
Hello all!!!
i have a nice C# question
Which is faster ----
Parsing JSON or XML?
 
gotta run, see yall tomorrow
 
@KendallFrey i know you know ha
@TravisJ do you know?
 
8:08 PM
Not concretely, no.
 
15
Q: JSON and XML comparison

Durga DuttI want to know which is faster: XML and JSON? When to use which one ?

google knows
 
I would assume json
 
It depends on the parser.
 
C# ha ha
@Steve well done :)
did not think of that
@KendallFrey which is easier to parse?
 
1. JSON is somewhat more concise, which speeds it up in the case of slow streaming.
2. JSON is a subset of JavaScript, which as a programming language, has probably had more effort put into optimizing it.
3. XML does not have a concept of separate types, and everything is a string. This could simplify parsing (but also greatly slow it down if type information is needed)
I'd tend toward JSON being faster.
 
8:12 PM
ok
has anyone worked with the Xbox Live API? ha ha
 
13 secs ago, by Steve
test
 
test?
 
1. The difference will probably not be significant enough to base a decision on.
2. You won't get a precise comparison until you actually compare it in a real example.
 
trying to do recursion with chat messages, it didn't work
 
@Steve linkception!
 
8:14 PM
i would have laughed if i broke the chat
 
I would have too.
Trust me, It's been tried before.
 
@Steve test link
ohh
link that to your question
well chat
 
@Steve Travis did it I think
did not find it, think it was starred
 
1 message moved to Trash can
boom
 
lol
 
8:20 PM
get off my lawn
 
Scarred for life. sniffs meth
 
[x] binmaster
 
@drch - Sadly I cannot use the detach approach as the elements are not in one nice container and tend to be spread out over an area. It would require detaching all of them individually
It worked very fast though in your fiddle
 
doh
 
Maybe if I somehow come up with something super inventive for it, but most likely not. The thing is, this is part of a library, and it has to be rather generic in its approach.
It is used in like 30 features
 
Bob
8:40 PM
I got bored and made this generic parody question i.imgur.com/dOLkgVR.png
14
 
@Bob The lazy answer needs about 5-10x the votes.
 
first star
 
Bob
Ha.
 
@Bob Nice one :-)
 
8:55 PM
grammar nazi editor is a nice touch
 

« first day (957 days earlier)      last day (3991 days later) »