« first day (1000 days earlier)      last day (4173 days later) » 

17:00
I came from being an Assistant Manager at a restaurant making 32k salary (working 55+ hours a week)
NEW DEALS ON STEAM WOOOOOO!!!!
@Jhawinsss Being paid something is still better. The guy I worked for owes me £3k
> The Steam Store is experiencing some heavy load right now. Please try again later.
BOOOOOOO
This sale, I'm not going to go crazy
17:01
/afk smoke
user1596138
@Amaan I have a guy who owes me $1,200 :/
room topic changed to JavaScript / Career Advice: Bow before Thoraxis -> read rules.javascriptroom.com CRY MOAR! [2.9] [consistency-of-suckiness] [ecmascript] [javascript]
It can be pretty annoying
The reason I won't be buying many games this sale is because I bought pretty much every game I wanted during previous sales
Excluding BioShock Infinite and Far Cry 3. Which still seem too expensive
user1596138
@rlemon Average household income in my area is $41K. All of Indiana is only $45K.
IM IN!
for those who are not
user1596138
17:02
You have a different minimum wage for people under 18??
yup
No, customers, no
student minimum
/me continues DDOSing Steam
2
user1596138
And people serving alcohol make less?
17:03
@Jhawinsss they assume tips (and having a mother who is a bar tender, I can vouch that they do make a shitload in tips)
@rlemon THANK YOU
user1596138
How'd you get the whole page screenshotted?
I might get Fez
user1596138
@rlemon Here you just have to make at least $7.25. If you don't get enough tips your employer has to foot the difference.
17:04
I don't think Just Cause 2 has ever been that cheap
user1596138
Smoke time.
Probably getting XCOM and FTL
FTL is fun. Could get repetitive, but it's worth it
WOOP WOOP 4 new games
just think..... 8 more hours and I'll have more options....
4 games.... <$20
:D:D:D
Tip: Don't buy Anno 2070
however much they discount it
17:07
@Amaan worst is looking at all the cheap games I bought a while ago and still haven't really played :(
Hahaha, finally getting The Walking Dead?
Oh, wait wait!
new XCOM is really good
Don't get it. I can gift it to you
possibly a bit more depth would be nice
career advice?
where do I sign up?
17:08
I have a copy from the Humble Bundle
:D
More seriously, I have more cryptic JavaScript Q's, is @Esailija around?
I'm not going to get any from the games on sale now. I have way too big a backlog
(Nothing compared to Loktar, of course :p)
oh shit I didnt look
FTL is awesome
@SimonSarris How'd the book's release go?
Chivalry is awesome
@rlemon ^
17:09
I didn't enjoy Chivalry's mechanics much
(Played it during the free weekend)
@Amaan I don't get to see sales numbers for a while
if thats what thee means
I like the yell button
Thank you, Shog "ORM" Nine. — Jan Dvorak 14 secs ago
@Amaan chivalry is hard
its hard to master
I love it
I guess its not a good recommendation for @rlemon its fps-ish twitch based
but FTL is amazing!
Hello everyone
var re=new RegExp("name=['\"](\w+)[\"']")
'<div name="hi">'.match(re);
it is returning null but i want it to return hi.
17:11
How much is XCOM like Frozen Synapse?
@SomeKittens don't know, never heard of Frozen Synapse
@Ankit don't try to parse HTML with regexes
@Ankit '<div name="hi">'.match(/\"\w+\"/) works for me, though parsing HTML with regex is usually a bad idea.
HTML has a bonus to defense, and may respond by summoning Cthulu
17:13
@Ankit You forgot to escape the \ in \w
especially not if you don't know about regex literals
@SomeKittens You know, some day I'm going to make a regex that can match html.
@KendallFrey .*
@KendallFrey I think some posters explain how that's fundamentally impossible, since HTML isn't regular, and therefore any matching algorithm wouldn't be a regular expression
IIRC
Yeah, but .NET regex isn't regular either.
17:15
@k0pernikus 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.
Actually, Ruby has a pretty powerful regex engine
Is the DLC for XCOM worth it?
it should be actually be able to parse any context-free grammar
which HTML is
@SomeKittens don't have any of that either. A friend insisted I should use a rebalancing mod, but I always try to play through the vanilla game first
namely, \gn means "match using the rexex for the n'th capturing group
17:18
I stopped playing it so much after the first wtfraep in the (first?) alien base
@SomeKittens If you end up playing soon, tell me how similar it is to Frozen Synapse
user1596138
Marlboros cost me $5.83 a pack. Just sayin.
so, /(\(\g1\))*/ matches any balanced set of parentheses
.NET regex is stack-based rather than recursive.
@Amaan Didn't you pick it up from the HIB?
17:20
that sounds harder to get right
You can create an arbitrary number of stacks.
Yeah, it's more complex.
still sounds harder to get right and less readable
Definitely less readable.
Probably more powerful though.
show your regex for balanced parentheses
Regexps can get less readable?
17:21
@NagaJolokia yep
:-( Modern languages should be making them more readable.
for example when you disallow the extended mode and inline comments
@SomeKittens I've played Frozen Synapse (before the bundle), and I loved it. Haven't checked XCOM out, though
At least perl has //x
0
Q: Will object reuse optimize this often-called function?

Simon SarrisSuppose I have a function that I need to call a lot, maybe a few thousand times on every mouse down or mouse move. It uses an instance of a function (class), called Transform: function func1(a, b, c) { var t = new Transform(); t.rotate(a); t.scale(b, c); return t.m[0]; } So I'm creatin...

:(
Not as straightforward as I had hoped.
Does anyone have any insight?
@Amaan for that price you can't go wrong; get it
/
  abcd # the first four characters
  (.*?) # capture anyting in between
  efgh # the end delimiter
/x
@darksky 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.
guys, can a jquery ajax results in anything else other than success or error?
@darksky What do the docs say?
@darksky always
something makes me uneasy
I mean, it either has to succeed or not
what would you like instead?
but I feel like there might be a third option
17:28
what about "never completes"?
@Darkyen Should be:
var coffee = new Coffee();

if (coffee.empty) coffee.refill();

coffee.drink();
yeah, timeout maybe?
would that be an error?
user1596138
I'd think so
hmmm
user1596138
17:28
I was going to buy that the other day. But then I remembered I can't haha.
also, the property should be isEmpty
but please verify
{"region":"Great Plains","area":"Midwest","market":"Rockford","switch":"79"}
how do I get the value of "switch"?
@Jhawinsss
find me this
@jbolanos did you try .switch?
17:29
obj.switch?
@jbolanos also ["switch"]
switch is a method
@SimonSarris Dunno. But do you need to make new objects at all? It looks like you're just number crunching.
@Darkyen background:black
the color is white
;)
17:29
@Darkyen cafePress. Make it yourself.
@Jhawinsss how u found it ??
then`obj["switch"]`
user1596138
I googled "css style t shirt"
@JanDvorak thanks for some reason didn't think of quotes
user1596138
And for the coffee mug I googled "if statement mug" or something.
17:30
0
Q: How to load external ads script?

LewisI am trying to load this script on wordpress, but it is not loading <script type="text/javascript"> var ord = window.ord || Math.floor(Math.random() * 1e16); document.write('<script type="text/javascript" src="http://ad.doubleclick.net/N7241/adj/ibibleverses.christianpost.com/right.vp.300x500;sz...

0
Q: Will object reuse optimize this often-called function?

Simon SarrisSuppose I have a function that I need to call a lot, maybe a few thousand times on every mouse down or mouse move. It uses an instance of a function (class), called Transform: function func1(a, b, c) { var t = new Transform(); t.rotate(a); t.scale(b, c); return t.m[0]; } So I'm creatin...

lol nic
yep. obj[switch] is definitely wrong
yeah - been trying to get them to stop using the term switch - its messes with both my JS and the Java source code
user1596138
I liked this one better though.
user1596138
no more one-box i.sstatic.net/Nyg5x.jpg
17:33
good one :D
we need to make one
user1596138
That one's useful!
lets make one in coffee_script ?
user1596138
I'm buying this one.
user1596138
@Jhawinsss it's missing "or die" on every line
17:34
I had a mug that had printed (upside down) "Logjam: Pouring hot comedy in your lap since 2011" // Logjam was an independent movie I was an extra for.
@NagaJolokia its a really simplified case of what's happening
user1596138
Found one for deep.
user1596138
@SimonSarris oic, so func1 could be anything
@KenOKABE 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.
@TomW Alrighty
@rlemon Did you get The Walking Dead?
@Neal you mean cv?
@Amaan fair warning, there are elements that are frustrating, and places where you'll think 'I wish I had more control over this'
but the overall experience makes up for it, I think
@SomeKittens well that too. but that answer should be deleted. (the user deleted it himself it seems)
17:39
var mug = new Mug(),
    drinkInterval;

mug.onempty = function(){
    mug.refill(new Coffee({
        cream: true,
        sugar: true
    });
    clearInterval(drinkInterval);
};

mug.onfilled = function(){
    drinkInterval = setInterval(mug.drink, 60000);
};
@Shmiddty you'll soon have lots of people trying to drink from their empty mugs
@Shmiddty Hmmm drinkInterval should be a local variable in Mug, or else your code will crap out :-P
setInterval(mug.drink, 10);
what's really needed is a functional solution invoking monads, which takes a mug empty of any beverage, and fills the beverage before piping it to an arbitrary face
@Neal The mug doesn't control drinking.
17:41
mug.chug();
@Shmiddty you have clearInterval in a Mug method. :-P
self.getMouth().consume(mug.getContents());
@eazimmerman self.imbibe(mug.getContents());
@DouglasTreadwell 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.
imbibe?
17:43
!!tell eazimmerman define imbibe
@eazimmerman imbibe To drink (used frequently of alcoholic beverages).
ohh. i haven't seen that word in ages.
@SimonSarris If your functions always follow the form of get transform - reset - do stuff - free transform, then do you even need the cache at all? Won't one transform object suffice? Or do the funcs nest?
person.prototype.imbibe = function(/* args */) {
var consumable;
...
if ( consumable.getTemperature('celsius') > 70 ) {
this.getBodyPart('tongue').burn();
}
...
};
Why is the chat title all funky?
17:46
@NagaJolokia Well, to be more complicated, suppose there are 9000 Nodes. Each node needs to do this operation, so each node has a this._transform. I re-use that transform per node, so I'm not making new transforms every time, but I still have 9000 of them. This runs sequentially though, so its possible instead to only use one Transform.
And I'm wondering if that is worth it.
the title for this room changes more than a chameleon
function Worker(){
    var mug = new Mug();

    mug.onempty = function(){
        mug.refill(new Coffee({
            cream: true,
            sugar: true
        });
    };

    this.onthirsty = function(){
        mug.drink();
    };
}

new Worker();
I want to be a billionair and maybe also own a lamborgotti fasterosa what jquery plugin will let me do this?
@Incognito $.fn.dreamWorld
!!> $.fn.dreamworld
17:51
@Incognito "ReferenceError: $ is not defined"
Didn't work plz halp
@Shmiddty Nooo don't override Worker! That is not good :-(
function CodeMonkey(){
    var mug = new Mug();

    mug.onempty = function(){
        mug.refill(new Coffee({
            cream: true,
            sugar: true
        });
    };

    this.onthirsty = function(){
        mug.drink();
    };
}

new CodeMonkey();
happy?
@Shmiddty ehhh no. Why u not use .prototype.?
CodeMonkey.prototype <| {beer: function(){return Infinity}};
17:55
@Incognito eh?
function CodeMonkey(){
    alert("JUST SHUT UP AND DRINK SOME COFFEE");
}
@Shmiddty I don't drink coffee
here you go.
!!> var jQueryScript = document.createElement('script'); jQueryScript.src = 'http://code.jquery.com/jquery-1.10.2.min.js'; document.head.appendChild(jQueryScript);
@eazimmerman "ReferenceError: document is not defined"
:c
!!Load jQuery
17:57
@eazimmerman That didn't make much sense. Use the help command to learn more.
made total $ense.
!!tell eazimmerman sandbox
@eazimmerman Please use the sandbox to become familiar with the bot's features.
i know Caprica can't load scripts
it doesn't have a dom
@Neal Have you ever said anything of value?
17:59
@Zirak on occasion.
user1596138
I can't ever get anyone else in this office to make coffee... But they'll drink a few full pots a day when I'm making it.
user1596138
Had to start buying K-Cups
Career Advice ?
@SimonSarris I've added func3 which uses a sngle transform object. Maybe all the pushing and popping is slowing down func2 compared to func1 i.e. it turns out new is cheaper.
do you know its like * for college students ? <AND ESP FOR HELP VAMPS>
18:07
room topic changed to JavaScript: Bow before Thoraxis -> read rules.javascriptroom.com CRY MOAR! [2.9] [consistency-of-suckiness] [ecmascript] [javascript]
@bnz 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.
IT'S OVER 9000! now I can ignore SO main again.
wow, the comments are just clueless stackoverflow.com/q/17621140/617762
!!stat canon extended
@JanDvorak canon has 9034 reputation, earned 70 rep today, asked 1 questions, gave 283 answers.avg. rep/post: 31.8. Badges: 0g 11s 34b
18:17
/afk lunch
what's wrong with id="body"?
they're selecting by the tag anyways
the second half is a subjective advice
@deep It means I aint got time to learn your $5 words
@deep My pocket dictionary just isn't good enough for you.
@deep subjective Pertaining to subjects as opposed to objects (A
it means that someone might rightfully disagree
that two opposing answers are both correct
In modern psychology, cognitive dissonance is the discomfort experienced when simultaneously holding two or more conflicting cognitions: ideas, beliefs, values or emotional reactions. In a state of dissonance, people may sometimes feel "disequilibrium": frustration, hunger, dread, guilt, anger, embarrassment, anxiety, etc. Festinger subsequently (1957) published a book called A Theory of Cognitive Dissonance in which he outlines the theory. Cognitive dissonance is one of the most influential and extensively studied theories in social psychology. The theory of cognitive dissonance in so...
I like cats. You might like dogs. Neither of us is "wrong." It's a subjective opinion.
18:26
ex: "blue is the best color eva" + "red FTW !!!11one`
user1596138
!!tell deep sandbox
@deep Please use the sandbox to become familiar with the bot's features.
user1596138
I know it doesn't apply... I just wanted to do it...
yeah
(Though props for trying)
to summarize: #1 is irrelevant, #2 is subjective and maybe slightly rude, #3 is the actual advice and #4 is the mix of all three — Jan Dvorak 2 mins ago
after the edit: #1 is subjective, #2 is the actual advice, and #3 is just pointless sugar ;-)
user1596138
18:40
!!stat deep extended
@Jhawinsss deep has 72 reputation, earned 0 rep today, asked 1 questions, gave 5 answers.avg. rep/post: 12. Badges: 0g 0s 9b
user1596138
@deep I'm pretty bored. Lets have a game?
user1596138
pick a question and we'll see who can get the most upvotes on their answer.
user1596138
But that's not a real question... I'm flagging it.
user1596138
Yeah. He's just asking for us to write him a function. He isn't asking for help.
18:45
closevoting
@deep yep. And they want dem codez
user1596138
No.
user1596138
I got $50 in free Facebook ad credit. So we'll see how many likes that can get our business page in 2 days. Doubt much if anything will happen.
@Amaan yes
@Loktar already bought it
man you guys are late on the game
I had 4 games purchased 30 seconds after the update
@rlemon Do you have Left4Dead?
and I posted a screenie of the deals
and yes I do mike
user1596138
18:51
Are you still at work? lol
no
boss let us hook off early
@rlemon you, me and @Octavian one night next week?
but I did buy a few while at work :/
remote install is awesome
2 hours ago, by rlemon
user image
2 hours ago, by rlemon
user image
also GTA 4
fuck this sale man. :P
user1596138
GTA 4 is awesome. I used to do prestige hacks for people on PSN and they'd buy me DLC like the ones on GTA.
also little inferno, hotline miami, left4dead2
user1596138
18:56
^^ what?
@AdilF 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.
so 8 games ... I can't wait for the next update.
fuck my wallet.

« first day (1000 days earlier)      last day (4173 days later) »