« first day (969 days earlier)      last day (3993 days later) » 

10:00 PM
haha
 
user1596138
@Gacnt With little income, comes great bills, too.
 
user1596138
Haha no, I live cheap. My bills pile up to about $890/month total. Minus Gas food and smokes... Problem is it's hard to live when your income is about $990 with those bills.
 
@AnmolSaraf 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.
 
Gas prices? 1.30ish/L in my city
 
user1596138
About $4.15/gallon in mine.
 
10:02 PM
* 1.24 to get to NZ dollars
NZ$2.15 here today
 
user1596138
!!convert 1 gallon liter
 
@Jhawinsss Confuse converter with gallon, receive error message
 
my rent alone is $900 here..
 
user1596138
Is that how convert works?
 
user1596138
@CapricaSix Hahaha what???
 
10:02 PM
my rent is 235 a week
 
@phenomnomnominal My mortgage, is $2,850 a month, for a fucking trailer - with a $1,200 truck payment, my gfs $600 truck payment, + our insurance + utilities bill + gas for vehicles + groceries + all other necessities
 
user1596138
My rent is $575/month and I live in a shitty apartment. I only pay half, though.
 
per week? Do you live in Aus or something?
 
And crashed again.
 
my $900 rent is a crappy 1 bedroom with ~300 sqft
 
10:04 PM
Rent for 1br in SF: 2k/mo (starting)
 
SF salaries are crazy compared to Vancouver though
 
Per week yeah, I like in NZ
 
user1596138
I actually make about $1,500/month. I lose almost $500 to taxes every fucking month.
 
@Jhawinsss 33%? Where do you even live? I pay 22% + ~150 and my salary is pretty low
 
@Gacnt ew no
 
user1596138
10:07 PM
@theintellects Indiana, USA.I lose about 30%. I think I have my withholding too high but I don't know enough about it to change it.
 
No word of a lie, this house is currently for sale at a listed: $559,600
 
Mustache.render("Hello {{World}}",{World:"Gacnt"})
It accepts a view, and a view model and renders
@GNi33 Why not :)
@GNi33 although I admit, I do all the templating on the client side
 
not sure, I used it a lot for clientside - templating, so my head had it stuck there I guess
just reading up on it a little, seems like there could be some troubles when using it server- and client-side
Handlebars is just great, so I'll give it a go
 
Hey, why is this returning as NaN? I tried doing -0 to convert it to number but it still doesn't work! jsfiddle.net/zrrQr
 
10:10 PM
res.render('home', { title: 'Home Page!' });
#Jade
!!!
html
 head
 title #{title}
 body
  p You're Gay!
How is that not short of amazing
 
@phenomnomnominal how?
what context?
 
Also use < not <=
 
@phenomnomnominal it doesnt make a diff?
 
For a second there I forgot I wasn't a room owner, was gonna do something :(
 
10:11 PM
@Gacnt That's lame.
 
@Gacnt not a fan :/
 
@Gacnt is that domo?
 
looking into combining Emmet with templating engines like Mustache
 
@Gacnt Why aren't you a room owner?
 
@phenomnomnominal thx!
 
10:11 PM
might be interesting
 
data-bind="visible: !(tour().isPublic)" // Doesn't show when tour().isPublic is false. What am I doing wrong?
 
@AdamLynch That's sounds like something I'd be interested in
 
@lawm, also, that's an awful way to get an average
 
@Gacnt Good one you have found something worse than twig
 
10:12 PM
@SomeKittens is isPublic observable?
 
Houses under $550,000: non-existant
 
@phenomnomnominal ....
is there a secret function?
the stringy array thing is just the context of my project
 
@SomeKittens complete guess... but maybe you need brackets after isPublic; ..tour().isPublic()
 
5 hours ago, by Stack Exchange
 
10:13 PM
@rlemon Are we going to have a 100k - message party .... (in about an hour or so?)
 
Right before that, the bot said yes, and I did !!undo that's why it doesn't appear in transcript
 
@Gacnt ouch
 
@BenjaminGruenbaum I thought of it based on an issue I saw in one of the Emmet GitHub accounts
 
140 messages to go
 
that way you'd have tiny templates but still all the power
 
10:13 PM
@Gacnt Why were you removed in the first place?
 
the difficult would be in taken a Mustache template and preprocessing it into Emmet
 
@BenjaminGruenbaum view the transcript, a couple lines before that
What rlemon asked the bot (they were just being dicks :P)
 
@phenomnomnominal whats a less awful way?
 
I think they just forgot to add it back because I didn't ask for it back lol
 
10:14 PM
@Gacnt how come you appear on the list then?
 
@lawm myArr.reduce(function(a,b){return a+b})/myArr.length
 
@BenjaminGruenbaum ahh!
 
oh, I'm blind
sorry :D
 
haha
 
10:15 PM
@BenjaminGruenbaum, I beat you to it
 
@phenomnomnominal JS math is confusing!
 
I can't wait to get on my days off man, 3 more hours, hope to fuck this rain stops so I can go play in my new toy (and also not have to evacuate my town)
 
@BenjaminGruenbaum Yeah. Another element has the same binding but minus the ! and that works.
 
user1596138
Lmao. I used the withholding calculator on the IRS site and it says I will have overpayed some odd $4,000 at the end of the year. Fuck this, I'd rather have it in my pocket now and be able to afford some meat!! Haha
 
@SomeKittens You need ()
isPublic() , since you're in an expression now, and not just an observable
 
10:17 PM
Is there a x abs= -100 thing?
nvm
 
bbl, I need to toilet, and then take a nap
 
Math.abs?
 
@Jhawinsss Good strat for saving (:
 
@phenomnomnominal Something better than:
dataset[i] = Math.abs(dataset[i]);
?
 
@BenjaminGruenbaum Thanks.
 
10:18 PM
@lawm what do you mean?
 
@SomeKittens You're welcome :)
@SomeKittens probably most common KO bug I've had when starting with it
 
user1596138
@theintellects Not when you can't pay bills currently...
 
@Nile Hang on
 
@lawm, that's as good as you will get
 
@phenomnomnominal ok
 
10:19 PM
but what do you mean by "better"
 
x = |x| would be nice
 
@BenjaminGruenbaum Same
 
Yeah, I've hit it a few times. Didn't realize it was the issue here.
continued stubbornly anyway
 
!!live
 
@Connor I'm afraid I can't let you do that, Connor
 
10:21 PM
@SomeKittens I'd probably use a hide binding, or extract the check to a computed
 
@SomeKittens I'm still new to it but without the brackets, i.e. the call, it'll return the value which retrieves the actual value... so it's always truthy
 
@phenomnomnominal oh yes
 
@AdamLynch It has two modes, if you use an actual expression you must use () on observables (or unwrapObservable them`
I generally don't have expressions in bindings at all
function createBindingsStringEvaluator(bindingsString) {
        // Build the source for a function that evaluates "expression"
        // For each scope variable, add an extra level of "with" nesting
        // Example result: with(sc1) { with(sc0) { return (expression) } }
        var rewrittenBindings = ko.expressionRewriting.preProcessBindings(bindingsString),
            functionBody = "with($context){with($data||{}){return{" + rewrittenBindings + "}}}";
        return new Function("$context", "$element", functionBody);
 
@BenjaminGruenbaum can you give an example of something that isn't an expression?
 
a loop label?
 
10:24 PM
@AdamLynch data-bind="text: email" , Knockout sees this and unwrapObservables it
@phenomnomnominal I mean in the context of Knockout, inside a binding
 
Ah, I should read before I respond
 
@BenjaminGruenbaum ah yeah thanks
 
@Shmiddty 66: for(a in r=readline(x=/\S/g))putstr(r.slice(~a)<'!'?' ':x.exec(r))
@Shmiddty I'd still love to know what 0mg's solution is though. I wonder if it's something completely different.
 
596
Q: Can we have the ability to rescind a close vote before it closes?

cletusSometimes you vote to close something and the OP then changes it to fix the issue or issues. You can't take a close vote back though. It would be nice if you could. With the new Duplicate close changes and the review queues, it's even more important to be able to remove accidental or erroneous...

 
knockout uses with ? wtf
 
10:30 PM
> Users will not be able to vote to close again after rescinding a previous close vote
:(
 
@PeeHaa埽 you can't close twice if you reopened anyways. This is the same.
 
@JanDvorak Consider the close as other reason after a change. Or close as other / better dupe
 
@PeeHaa埽 agreed - the ability to revote would be nice.
 
However, what is already planned is a great step forwards.
 
10:33 PM
Although I think we would have better luck becoming mods ;)
@JanDvorak yep agreed
 
@Esailija Yeah, I was wtf too, but it's the only way to get dynamic typing scoping
 
what does that mean?
 
Hmm, one sec
 
user1596138
Hahahahaha ok, I know I'm really off-topic guys, sorry... But yeah, I've already paid more than my estimated fed income taxes for the year and it's June.
 
in my language I simply extract all possible references in the AST and generate code like var age = "age" in $data ? $data.age : $context.age... (simplified and not actual code but yea)
 
user1596138
10:36 PM
So the only reason I'm broke is that I lose $300/month because I didn't understand tax withholding.
 
although it's not blazing fast, at least the whole function doesn't get ignored by optimizing compiler
 
@Esailija Do you let people do a foreach or with inside it?
(with as in knockout's)
 
I have foreach but didn't see reason for with construct in the language
 
Type less in complex bindings, then again - just use templates
Honestly, I was shocked to find that with too when I read the source not too long ago
 
my point is that knockout is taking the easy way out with with
they have access to your code
 
10:38 PM
Propose a fix and make a pull request
 
they can just generate var statements like I do
 
I'd vote for it.
 
do they even have any kind of parser/compiler infrastructure there
 
Not really, read it, it's very basic
 
What does this smiley mean: >,>
I'm trying to find out for an hour
but I don't understand :p
 
10:39 PM
It just looks for data-bind attributes in the DOM
 
so it would be pretty huge pull request
 
"implemented a compiler" :D
 
@Esailija they just look for data-bind statements and ko: statements in comment nodes, bind them to a context and new Function() them
 
@BenjaminGruenbaum wrong chatroom^^ ?
 
10:40 PM
@BenjaminGruenbaum He didn't mention perl as a dynamically scoped language (sometimes)
 
what kind of syntax will be in rewrittenBindings
 
i r sad donkey. meow.
 
@Zirak I don't know if Eric knows perl
@Esailija ?
 
He knows PostScript but not Perl? Scary.
 
@BenjaminGruenbaum like the generated code will be like this
with( $context ) {
    with( $data ) {
        ???
    }
}
what is in ???
arbitrary javascript?
or some simple DSL?
 
10:42 PM
@Esailija at first, it tries to unwrapObservable it, this means that it works either with a simple var name, or an observable. Then it evals it (function constructor)
'parseBindingsString': function(bindingsString, bindingContext, node) {
    try {
        var bindingFunction = createBindingsStringEvaluatorViaCache(bindingsString, this.bindingCache);
        return bindingFunction(bindingContext, node);
    } catch (ex) {
        throw new Error("Unable to parse bindings.\nMessage: " + ex + ";\nBindings value: " + bindingsString);
    }
}
 
so you would at most generate one var statement?
 
I tried doing this to prevent adding a "+" at the end of the string, didn't work. Any reason why?:
if (i < dataset.length){
equation = equation.concat(equation, dataset[i], "+");
}
 
@Esailija Why would it generate a var statement?
 propertyAccessorResultStrings.push(quotedKey + " : function(__ko_value) { " + val + " = __ko_value; }");
 
well let me show you example how something like this works without with
 
getWriteableValue(ko.utils.stringTrim(val))
 
10:45 PM
template.compileFromString( "<div>@year @month @day</div>" )
 
@Esailija Oh, I know how it could be done without with
 
and here's the generated code pastebin.com/k0Pj04CP
 
I've implemented several mustache clones in the past. As well as other templating engines for fun
 
wow...
!!/convert 1IRR USD
 
@Zirak Confuse converter with IRR, receive error message
 
10:46 PM
odd...
 
?
...
 
@BenjaminGruenbaum basically here can be arbitrarily many var statements
 
hah, google doesn't recognize Iranian Rial
 
and I was asking if only one will be in the knockout case
 
Well, 2nd wow:
!!/convert 1USD VND
Damn 500 errors...servers, pull yourselves together
 
10:48 PM
@Esailija Ah, I don't think there will be any var statements
 
the var statements are needed to get rid of with blocks
otherwise you get reference error
when you remove the with blocks
 
The point I was trying to make: en.wikipedia.org/wiki/…
 
Any reason why this gets all weird? jsfiddle.net/zrrQr/5
 
You're concatenating strings.
 
Anyone?
@phenomnomnominal ya?
so?
is that... wrong?
 
10:52 PM
@Esailija Oh yeah, I agree that a refactoring could help, but at the moment the KnockoutJS code is really small compared to other frameworks/libraries
@Esailija it's 3500 lines of code and it's pretty much super simple. If you take out stuff that handles jQuery abuse, it's about done to 3000
 
oh wait..
 
it's not a refactoring
 
@lawm I will always be less than dataset.length
 
@Esailija It's a recoding basically.
 
@phenomnomnominal oh.. so dataset.length-1 for last item detection should be what im doing?
 
10:53 PM
merely mentioning with inside a function disables any optimizations for it
that was the point
not refactoring
also having a real internal representation instead of hacking with strings would solve other problems too
 
or just remove the last plus at the end
 
@phenomnomnominal yeah.....
thats what im tryna do
how do you think i should do that?
 
@Esailija What other problems?
 
user1596138
Bosses wife just came to the office and left me rotisserie chicken since I'm the only one here for the night.
 
10:57 PM
btw I don't really know anything about knockout
 
@phenomnomnominal ...
 
:P
 
@Jhawinsss nice, is she also hot?
@Esailija LOL
@Esailija It gets the job done, I think the guy who wrote it didn't really know JS very well when he wrote it.
 
so I am just assuming because there is no real backing object model behind, that is the reason for having to do stuff like re-doing everything when a small thing changes
 
user1596138
@BenjaminGruenbaum She is in her upper 50s, and my friends grandmother.
 
11:00 PM
@Jhawinsss awww :/
 
got it
 
user1596138
So no. Hahahaha
 
@Jhawinsss, sounds like a yes to me
 
> My guess is that Steve just didn't know that it wasn't needed. Looking back at his original commit, I see a lot of unnecessary news that have since been removed.
 
11:01 PM
@BenjaminGruenbaum lol oh well
 
Silly Steve
 
@phenomnomnominal thanks again @phenomnomnominal
 
Wow, two of them
 
@BenjaminGruenbaum Richard is a fucking idiot
(for those of you that don't know: stackoverflow.com/a/184673/617762 )
 
//He also thought bandanas and aviator sunglasses were "fuckin'
/// gnarly, dude."
LOL
 
11:04 PM
LOL
 
That question is crammed tight with win
 
I always loved that one
 
Definitely
 
// If there are two different ways of doing something, PSD will do both, in
// different places. It will then make up three more ways no sane human would
// think of, and do those too. PSD makes inconsistency an art form.
lol
 
But...this comment is awarded 4 internets: stackoverflow.com/questions/184618/…
 
11:06 PM
LOL
 
> #define TRUE FALSE //Happy debugging suckers
 
> // total_hours_wasted_here = 42
 
The one telling you to update the counter is funny
 
> /* This is O(scary), but seems quick enough in practice. */ followed by four nested for-loops
 
user1596138
@phenomnomnominal Whatever turns you on ;)
 
11:12 PM
@Jacob 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.
 
I'm a mother lover, you're a mother lover we should love each others mother
I like The Lonely Island
 
s/love/fuck
 
@powerc9000 fuckr?
 
no
I'm a mother lover, you're a mother lover we should fuck each others mother
the uncensored version is more fun
 
@JanDvorak The nsfw version of flickr
@copy You'll like this:
#define ever (;;)
for ever { ... }
 
11:25 PM
A function named getOutOfJail frightens me a bit
 
Guys, should Web service be compartment of HTTP and HTTPS? Can it run on SIP or other protocols?
 
@Zirak Why me?
 
Don't you like it?
 
I do
 
There you go, then
 
11:26 PM
Aight
 
> /* Be a real daemon: fork myself and kill my parent */
 
@Sam 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.
 
grooveshark.com/s/Fill+Me+In/3H58le?src=5 @phenomnomnominal Best song you've ever heard
 
@Gacnt, you are wrong about everything to do with music.
 
@phenomnomnominal Do you still love me
For my innocence
 
11:33 PM
No, you're a muppet.
 
@phenomnomnominal can't love another. I own his heart.
 
But but but
 
Dude, I made him BatMan... What have you done?
 
Made him feel more like a man than you've ever done
 
@Gacnt, only because you're such a little bitch.
 
11:35 PM
Awesome, past-me answered present-me's question. Noticed iframe.srcdoc, said "wtf is that", then realized I've found it before: chat.stackoverflow.com/transcript/17?m=7511850#7511850
 
That's right, when he's around me he feels feminine due to my over manlyness
 
@phenomnomnominal I could destroy you
 
You make a 7 year old girl feel like a man.
@Gacnt, bro, I slay dicks for a living.
 
LOL
 
Here, to light up the mood :)
 
11:37 PM
@phenomnomnominal I have no reproductive parts. I am a sentient being.
 
!!/youtube honky cat
 
I thought sentient beings would be smarter..
 
(I'll be back in 6 minutes)
 
@CapricaSix also decent
 
11:40 PM
@rlemon I would terrify you, if I acted at my true power :/
 
Shut up before I crush you with my wallet
 
What wallet
 
@Gacnt, you're the room bitch, deal with it.
 
I don't mind :)
I wonder if you'd act the same way in person with me :D
 
if this were prison you would be passed around like a ... Something that gets passed around a lot.
 
11:42 PM
Ball?
@Gacnt, bro, I would slap you around like you don't even know
 
Hehe, you're silly :)
 
I would, you could probably kick my ass too. But while you were I'd be calling out your programming mistakes and bad music. :p
 
LOL
 
@rlemon, we could take him
 
Out for a nice evening of dinner and a show?
 
11:43 PM
LOLLL
Let's just say you two are the bigger men, so we can stop this pissing contest :D
 
THEN NEVER CALL HIM BACK!
 
haha +1 for anchorman
 
(crap, forgot to transfer data. I should consider a way to plug the bot's memory to a cloud thingamajig)
 
Hmmmm. I don't have a stir stick
Next level balls
 
@Gacnt dude, I would kick your ass in a pissing contest.. I mean I have a 6" head start on you already.....
2
rimshot.jpg
 
user1596138
11:47 PM
@rlemon What is going on
 
LOL
 
user1596138
Holy shit. I eat dinner and you guys have a pissing contest without me?
 
@rlemon Too bad it's all foreskin, you'd flail around like one of those floppy sprinkler heads
 
bah, who wears turtle necks anymore?! it's fucking 2013!
 
user1596138
Time to go home. I am no longer broke... :) I'm getting a case of beer. Later all!
 
11:48 PM
Canadians?
 
Bitches go crazy for my snuffy
 
@phenomnomnominal nahh man, crew cut but then you just neglect the yard work until you can make a hammock.
keeps you warm during hockey season
 
if (this.galleryViewAvailable && this.galleryViewAvailable === true) { well that's redundant
 
lol.
brb need to get a stir stick
 
if (this && this.galleryViewAvailable && this.galleryViewAvailable === true && this.galleryViewAvailable !== false || bananaOverride ) {
 
11:50 PM
this screw driver isn't doing the trick :(
 
thats why mother nature gave man fingers.
stir his coffee
 
@rlemon, thanks, seems more robust
@rlemon, also, that's what penises are for.
 
@Calpis 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.
 
no, penises are for other peoples coffees
I'm really surprised there have been no passive flags so far.
we've taken this joke pretty far.
 
@StaceyAnne 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.
 
11:53 PM
We can go deeper.
Oh no, there's a girl here now
penis
 
who wants to help me update the room rules.
A) I never finished them
B) They are not finished.
 
Put them in a platform that gives room owners explicit read/write access
 
you mean... like github ?? :P
 
Like google docs that requires a password to edit, put that password in a deleted message or something
 
I can add you all as a contributor.
some of you already are
 
11:55 PM
@0101011 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.
 
@CapricaSix Ok, thanks
 
:0101011 You're welcome honey. What's up?
 
Haha, that's a bug with the chat
Or with the bot
Probably the bot
 

« first day (969 days earlier)      last day (3993 days later) »