« first day (1013 days earlier)      last day (3933 days later) » 

user1596138
11:00 PM
@Zirak I find PHP a lot more fun to learn then most other languages. Which is odd... Because it's pretty unintuitive..
 
Only it's not really apples, it's 2 tables deep, and telling if an apple is good or bad isn't just a bool - it's another nested calculation.
 
I too once liked php. And then I learned better languages (and, oddly, Perl).
 
Mostly it always bothers me that I can't 'keep track of the last values' in SQL and have to self join every time I have to look at things that come before.
 
But, again...language is subjective, blah blah.
 
user1596138
True true. It's the only server-side language I'm good with for now though.
 
11:03 PM
if I want to store a value in a <tr> that may contain / and spaces I can only use a data-element right?
 
user1596138
In a table-row...?
 
yes
value = "Midwest / North"
so I can target the row to remove it
 
@BenjaminGruenbaum you're thinking about it the wrong way.
 
user1596138
Ah, I understand now. Classes would work, but a data-element is better.
 
you should think of SQL transactions as set-based
 
11:06 PM
well, the table will be drawn dynamically based on a JSON - but in order to remove a row from the table and the JSON I need a value I can target
explain
please
 
? I was talking to Ben
 
oh - LOL - fine
whatever
 
@Shmiddty I am, I'm just saying that the switch is always unintuitive :)
 
Baking too much logic into stored procedures is a slippery slope.
 
It's not a stored procedure, I wanted a statistic and the huge amount of data mandated everything has to be done on the DB side
 
11:10 PM
temporary tables weren't feasible?
or table variables
 
It's a query that has to run rarely.
 
how do I force a number to be a varchar in a variable?
 
@jbolanos that depends on context, how are you passing it, where are you trying to make it a varchar?
 
It works and everything and surprisingly it's very fast (under a second for crunching a self join of millions of records with two nested SELECTs)
 
@BenjaminGruenbaum proper indexing? ;)
 
11:12 PM
var name = $(this).attr('id'); // 79
nvm - the JSON doesn't care
 
@Shmiddty Magic :)
 
right.
 
I'm really surprised that it's that fast... it was just very long to write, all the conditions and all.
 
yeah
somethings get complicated
 
Cool, I got php properly configured. This was easier than I remembered.
 
11:13 PM
I should have just written it in C#, would have probably been faster. I bet LINQ adapters write better SQL than me today.
 
This one report... each individual query isn't all that complicated (I have to do some ugly stuff in a couple of places because of poor DB design), but the report hits almost every table in the database, and is expected to run in under a few seconds. Was a bitch to write, and now they want more from it.
 
Two hours of debugging later, I've determined what I thought was a - was actually +
 
@Shmiddty Denormalize :P
 
@BenjaminGruenbaum honestly, just grabbing the data sets then doing the BL in the BL layer is probably better/faster/easier.
 
@SomeKittens Test more (god I love being a prick sometimes :P)
 
11:16 PM
@BenjaminGruenbaum It was the tests that revealed as such (Trialing TDD)
 
@BenjaminGruenbaum I just want to tear everything down and rebuild.
 
@Shmiddty Not when you have huge amounts of data, there is no way I can pull millions of records into memory and manipulate them in place. Even thousands is usually pushing it.
 
now, half the tests are broken, but that's because I'm refactoring and renamed a function.
 
true.
 
11:17 PM
ok - time to go home and play Eve Online
 
I have to say LINQ pretty nifty work creating SQL, and I like the syntax a lot better.
 
LINQ is pretty elegant in general.
 
also, i'm pretty sure no one likes SQL
 
For example, counting the apples where the apple is good and there is at least one good apple before is pretty simple.
 
the fact that SQL uses = for both comparison and assignment bothers me.
 
11:21 PM
And the apple also belongs to a kid
Kids.SelectMany(x=>x.Apples) // god I love that one, all the apples that belong to kids
     .Select(apple=>new {x:apple,xs:apple.Kid.Apples})
     .Count(obj=>(obj.x.IsGood && obj.xs.Where(y=>y.Date < x.Date)).Any())
It builds pretty decent SQL from that sort of statement
 
@BenjaminGruenbaum I see going to sleep went well
 
Anyway, I'm off to sleep, good night :)
 
night
 
@Zirak Always does.
 
I'm going to head home now
ttfn
 
11:23 PM
EVERYONE'S LEAVING ME!
 
@SomeKittens feels neglected
Why don't I just leave you, too!?
 
Not if I leave you first!
/quit Zirak's being mean
 
!!youtube brian fallon chuck ragan great expectations
 
^ everybody leaves, and I'd expect as much from you
Ridiculously amazing tune
 
11:31 PM
Wish I could sing like that
 
Stackoverflow is the best thing since sliced bread.
 
0
Q: Passing data to JS on page load with a cookie

wedstromI am starting a class that will pass data from the server to javascript. Right now it uses a cookie which it destroys on page load. This avoids adding items to the DOM, writing javascript, or making a time-consuming ajax call. The data can be added any time during the php run, and the cookie will...

 
Get out.
 
Why is sliced bread so amazing?
Surely we've had greater accomplishments
 
I personally prefer bread rolls.
 
11:33 PM
Keep in mind, the inventor of sliced bread (or, to be more technically correct, the bread slicer) almost went broke trying to sell it.
 
When were blueberry bagels invented?
 
@Zirak don't you remember the dark era of no sliced bread ? Grim days those were.
 
@minitech March 25 1660, 03:14.
 
@SomeKittens Just like coca cola was bought from a stool for 1K
 
I believe that was a Tuesday @minitech
 
11:34 PM
It was actually a Thursday
 
well i thought it was was day that began with a T
it felt like such a day
 
!!> (new Date('1660-03-25')).getDay()
 
@Zirak 4
 
Sliced bread is so amazing because it's the cheapest thing you can make that fills you up, tastes so good and will go with anything.
 
Does it go with more sliced bread?
Does it go with toxic waste?
 
11:35 PM
@Zirak If you hungry it will go with more than more
 
What a slut sliced bread is. Going with anything.
 
@Zirak it will make it taste better than it would without it
 
Food these days. No morals.
 
@Zirak Food these days is poisonous
 
Back in my days, you had to work hard to teach your food some respect! We only had 1 grape to eat per week, and we were damn thankful!
 
11:36 PM
!!> new Date().getDay()
 
@minitech 5
 
I always forget
 
@Zirak Cool, and now a' days?
 
… wait, that’s not my time zone.
 
@Connor Now I'm mostly in the remembering what was back in my day.
And catching flumbernsappers
 
11:38 PM
WOW that ping scared shit out of me man...
That was loud....
 
Pah! Back in my day, we all had horrendous constipation! When someone scared the shit out of us, we went up to them and said thank you!
 
@rlemon Cooooool
 
@Zirak lol
@rlemon that's dangerous to humans man... next thing you know it no one will believe anything you say and you'll be put in a mental institution...
 
What if he already is in one!?
THE PLOT THICKENS
 
11:44 PM
DUN DUN DUN
 
@Zirak No, seriously why would they wan't to do that? so maybe one day when someone finds out that they have been doing something really naughty, they can just say they imagined it, we have proof from the rat's brains.... it's a interesting link though that has opened my eyes a bit more.
 
@Connor I was thinking more along the lines of "cooool, we now understand a little more about how brains work"
 
@Connor want*
And because knowledge!
What do you mean "finds out"?
If someone's doing something, they do know they're doing it most of the time
 
@Zirak You mean you understand you're just accepting what people tell you?
 
what if you could store memories and plug in old memories of the past when you felt like it :p
 
11:46 PM
@Connor ...what?
 
@Connor I don't know about you, but we're not just accepting what people tell us
 
@Connor im telling you.. give me your bank details.
 
Granted, all our memories could have been implanted a day before, and we wouldn't know
But that isn't "accepting"
 
deja vu is fun though some times a bit spooky
 
@Zirak How can you understand more about how brains work by scientist's who less than 500 years ago thought the world was flat?
 
11:47 PM
@Connor That's a dumb question.
 
@Connor but now we can recreate the universe 10th of a second after the big bang.. we have come a long way
 
@Connor The same scientists have been at work for 500 years?
 
At some point, you didn't even know the world was bigger than just your vicinity. Do you think your credibility should be tarnished by that?
 
Because otherwise, I don't see how your point holds any value.
 
next you'll say teleportation is not possible @Connor *rolls eyes
 
11:49 PM
I'm fairly certain San Diego doesn't exist, because I've never been there.
 
You have a toaster, that's some mighty progress. You have machines which slice bread.
That's some brainfuck right there.
 
@SomeKittens if your into quantum physics - in some models it technically doesn't exist for you
 
user1596138
So much sarcasm. Can't process.
 
Your computers are made from these insane theories and creations of the mind by...scientists
 
Also how can scientist's tell that dinosaur bones are 68 million years old? is it imprinted on the bones? how can any man tell that when they are between 0 and 100 years old. I call BS on that
 
11:50 PM
Carbon dating
 
half life of particles.
 
@Connor That's actually a really really awesome process
 
!!tell Connor wiki Carbon dating
 
they decay at a specific rate.. by 50% at each time. so you can calculate it. its not sorcery
 
user1596138
11:51 PM
The carbon dating system is a sham.
 
There's this radioactive isotope of Carbon called Carbon-14...oh man
Wikipedia steals all the fun from me again...
 
user1596138
We tricked scientists into discrediting it entirely, multiple times.
 
so who here believes in cold fusion...
 
user1596138
I quit.
 
It's an interesting concept
I love my new headphones. They can go so much louder than any other ones I've ever owned
It's most fun to pump up the volume yourself at certain parts
 
user1596138
11:53 PM
$$('#shit').giving(false)
 
Ok, here's a good one for you, it may not be specific to scientist's and a bit off topic but how come there are at least 2 cures for cancer (that i know of) but no one knows about it.
 
Cancer isn't just a disease
 
there is no cure for cancer?
 
@Connor Because you've been fooled into thinking there's a "cure" for cancer.
 
It's your own body turning against itself, and it is different for everyone
 
11:53 PM
There are loads of cures for all your various forms of cancer
 
user1596138
Lmfao
 
no it removes cancer cells but it can easily come back .. that is by no means a cure.
 
There's just a tradeoff with all of them
 
@Connor You really have a lot of reading to do, man
 
11:54 PM
its more a of a "clean up"
 
@Zirak Death being common in most of them?
 
@Amaan Yes, very slow death.
 
user1596138
@Connor you're either drunk, high, trolling or a severely misguided follower. Only possible explanations here.
 
OH FU
 
@Dave or have you been fooled into believing that there isn't, it might just be that bill gates want's to reduce the human population, and as far as i know there is only one way to do that.
 
11:54 PM
That ping was LOUD
 
SUCCESS
 
Ow
 
@Connor are you one of those conspiracy nuts?
 
Lesson learned
 
@Connor Now I'm certain you're trolling
 
11:55 PM
!!xkcd 1217
 
Hahaha
 
MICHAEL JACKSON IS IRRADIATING OUR TESTICLES WITH CIA SATELLITE TRANSMISSIONS
2
 
Ow. I think you gave me a headache, @Zirak
 
@Zirak Of course this isn't the sort of stuff you wan't to believe, you wan't to see the video where he goes on about it?
 
11:56 PM
want*, God damn it!
 
@Zirak i haven't seen this one, but i just searched google and there is loads of videos youtube.com/watch?v=6WQtRI7A064
Bill Gates Admits Vaccines Are Used for Human Depopulation
 
Most likely something taken out of context, but okay
Let's watch
 
@byoigres Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
if its a youtube video
 
@Dave Don't watch it.
 
11:58 PM
ALL THE TEXT
 
YES. THE PERFECT PLAN.
 
you cant use youtube for your science knowledge
 
Give people health-care so they can die
 
Except for Vsauce videos
You can use those for your science knowledge
 
arxiv.org this is what you should ideally use but its not light reading
 
11:59 PM
That equation is pretty BS
 
Yeah
 

« first day (1013 days earlier)      last day (3933 days later) »