« first day (1288 days earlier)      last day (3652 days later) » 

12:04 PM
I feel undercompetent for this one
 
@dystroy ?
 
@BenjaminGruenbaum I mean I see there are words. That's about where my analysis stops.
 
Hello
i need to check if a function finished executing. So I added a callback and it still doesnt work, why?
                    loadStartMessages(function() {
                        $(".load").fadeOut("slow");
                        startup();
                    });
 
Maybe loadStartMessages doesn't accept a callback?
Maybe there's an error raised somewhere?
Your question is very vague
 
12:18 PM
No errors
function loadStartMessages(callback) {
    getChatMessages();
    return true;
}
tried with return true and without return
 
Use a debugger to see if the callback is executed edit : or ask a zirak to read the function
 
callback isn't called anywhere...
 
Ah i see, needed to do callback()
 
hey guys, newbie here. Learning basics of JS...does JS code cascade like CSS?
 
what does that mean?
 
12:24 PM
well like in CSS, the last rule trumps the rule before it
aka, "cascades down"
 
you don't have rules in JS
 
So you're asking if you can overwrite things?
 
you're free
 
so if i have this JS:
if (computerChoice < 0.34) {
computerChoice = "rock";
} else if(computerChoice <= 0.67) {
computerChoice = "paper";
so if the computerChoice = 0.33, would it be "paper" ?
 
Try it out and see
 
12:25 PM
i did, and it doesn't "cascade"
i think that answers my question
 
I don't get it. Why would the else if execute?
 
yea good point
 
The if executes since the condition is satisfied, so the else if doesn't.
 
i guess what threw me off was the local variables vs global variables
 
12:27 PM
What's with all the DEVELOPERS?
 
Look at the video posted just that,
 
@BenjaminGruenbaum what do you mean?
 
@Zirak don't have to, it's the one where Balmer goes apeshit, right?
@redshift look at stars list, to your right
 
And continuously yells "DEVELOPERS"
 
That's not special
 
12:29 PM
would you say you guys are more programmers than designers?
 
@redshift no, we're all designers really :P
 
See my gravatar? That's my skill level.
Mad skillz bro
 
lol
do you guys have any samples of recent work /
 
@redshift ever heard of Facebook? @Zirak designed that with php
 
nope
 
12:31 PM
imagemagick ftw
 
i've only heard of Geocities and Tripod
 
Geocities was designed by @BenjaminGruenbaum in Perl, his favourite programming language.
In fact, he invented Perl back in 1976
 
tell him he misspelled pearl
 
My real name is Larry.
 
@BenjaminGruenbaum Impressive...
 
12:57 PM
> [the jQuery team] created a plug-in system whereby you could attach functions to the almighty dollar symbol
It's cool how jquery doesn't have a plugin system, but people think it has one because jQuery.fn = jQuery.prototype
And when I say "cool", I mean "annoyingly stupid"
oohh, you can post comments. Is it worth it?
 
@Zirak fwiw, it is a neat way to extend it given that in that era, using prototypes was not really that common.
You can't judge jQuery by 2014 standards, or even by 2012 ones.
 
It's not criticism on jquery, it's criticism on how people think of jquery.
 
Ah, ok then :)
 
It's probably useless though
 
^ Because Microsoft
 
1:29 PM
@AbhishekHingnikar why are you wearing a tie?
 
@BenjaminGruenbaum College Uniform
 
@BenjaminGruenbaum like the school uniform :P we have a college uniform
 
You have to wear a tie every day?
When you talk to Microsoft about apps and windows 8 and windows phone, you realize a tie is the last thing they want to see, right?
 
@BenjaminGruenbaum Yes i do, thats why i am not gonna wear this stuff tomorrow.
 
1:32 PM
Wear a github t-shirt or something.
@AbhishekHingnikar cool
 
err, i have a suit :-/
Coat, Trousers xD
other option is a Python t-shirt (totally worth it !)
 
Don't (when you meet Microsoft).
Python t-shift is actually better for a meeting with Microsoft about your app.
Not BSing here.
 
@BenjaminGruenbaum why ?
 
Because, they're trying to, and have been trying to shake their 'suit' reputation for a fairly long while now.
They've been trying to disassociate themselves with 'old, suited, business oriented and cranky' with Windows Phone and Windows 8 tablets. It's exactly what they don't want to be seen as.
 
1:34 PM
They spent tens of millions (no joke) trying to attract technology hipsters.
 
in india i have just seen them doing opposite :-/
 
If you show up with a suit, you're just another Indian in a suite, a 'tool'.
 
but thanks for the headsup i will wear a shirt and jeans tomorrow
 
Oh, it's perfectly OK for them to wear a suit, they're Microsoft.
 
@BenjaminGruenbaum oh i really want to get rid of them now -_- ... I am terrorized of their stack about javascript lol
 
1:35 PM
What?
 
@BenjaminGruenbaum Live SDK, OneDrive API, WinJS
without these 3 and the enforcement of deploying on azure
snapick would off been rolling in google chrome a month ago -_-
 
You don't have to use any of those :P
Although, deploying to Azure for free is pretty sweet. They give you free hosting, that's nice.
 
@BenjaminGruenbaum for Imagine Cup i have to.
 
You can code Python on the server and whatever you want on the client.
 
and My server is Python Powered.
 
1:38 PM
Calling something that has to use their exact stack 'Imagine Cup' lol.
 
@BenjaminGruenbaum hahaha the name makes so much sense now
psh just realized they call it "Microsoft Imagine Cup"
 
@AbhishekHingnikar you have to "get" Microsoft. It works differently and somewhat irrationally.
 
the OneDrive api is a pain in the ass to work with, tomorrow i have to present and that shit is broken today
if this shit doesn't works in 15 minutes, I am going to drop it for now.
 
You know, there is a world of difference inside Microsoft.
 
my app isn't fully complete man :'(
am freaking out :-/
 
1:40 PM
@Mick 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.
 
The people who you speak with are probably marketing, and probably India marketing. Speak to them like you talk to marketing, like you're a young bright minded entrepreneur who doesn't realize yet he has a product worth billions but wants to change the world and can show hockey stick graph and guaranteed success. Tell them how awesome they are, they love hearing that. @AbhishekHingnikar
 
Oh, that makes sense. I am planning on doing exact opposite.
 
When you have an API problem, well... I had an Azure problem so I messages Scott Gu (famous Microsoft dude if you don't know, VP there), I got a response in like, 10 minutes and he helped solve my problem. Their Azure team is pretty awesome.
That's two days ago, I know some MVPs who usually can help, and the 'newer' better development teams (like Azure) respond to twitter pretty fast, you can ask them directly, ask in a forum or post a github issue. Asking on SO and pinging them on twitter has also been reported to work.
Getting help isn't all that hard.
@AbhishekHingnikar lol?
 
@BenjaminGruenbaum if i get anybody who is an engineer i will tell em how much they suck
get dq'd and enjoy my life :-)
lol
 
@AbhishekHingnikar do you know how many times I told their engineers they suck :P?
 
1:44 PM
Dear lord this api is horrific to work with
Facebook/Google/even 500px/ gives you images sorted in order of size
 
Did you try talking to them about it? Are you sure you understand the problems it solves and why it's laid out like that?
 
in an array either incrementing or decrementing.
and now see this img[0] - width 720p img[1] - width 54p img[2] - width - 190p img[4] - 1080p
 
@BenjaminGruenbaum yeah :-[ gonna do that.
their one drive api is Dossy.
query a folder, then query its / files , then query files then query their /tags / commetns
ugh
 
Hi guys o/
@Loktar when you have 5 minutes I would like to ask you one or two questions about somethinghitme.com/2013/11/13/snippets-i-always-forget-movement
 
1:55 PM
oh hi !
 
How are you doing ?
 
Horrible
 
Oh? What happens?
 
I need help guys
 
@user3522457 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.
 
2:03 PM
almost there
 
@dievardump tomorrow i have to demonstrate an app at national level
which is far from done.
 
ouch
 
whats operator === means ? if I do
var a = 3;
if( a === 3 ) return true; ?
what the different between === and == ?
 
have you even tried using google or reading any kind of documentation?
!!> [3 === '3', 3 == '3']
 
@ThiefMaster [false,true]
 
2:22 PM
@rlemon any update ;(?
 
none yet
expect later today
is there a theme for all of this btw?
 
Hey @rlemon is it time to ping you ? ;)
 
lol
 
Currently coding the Flore logic. I'll start with a temporary graphical design taken from Tribo
 
@rlemon sure :P
github.com/angular/angular.js/issues/1934#issuecomment-41469790 if everyone could just support me saying "Yeah, I like this proposal better" that'd be swell :P
Also, reading it.
 
2:29 PM
@BenjaminGruenbaum Sorry, can't really take a position on angular, didn't even tried it
 
Well it's more a position on the Promise behavior here it seems.
 
guys
how do I hashmap
 
Have you search on the main website? Seems there is an answer.
 
I don't like those answers
I was wondering about ES6's WeakMap specifically
 
So why not using this word in your first "question" ?
 
2:41 PM
@dievardump to make it more ambiguous and annoying, obviously.
 
Oh ok.
 
I'm kidding, don't mind me.
 
Apparently today I've found out someone was serial downvoting me?
 
I've used simple object right now, will maybe change later.
@Connor meh, they are pretty much always reversed
 
@BartekBanachewicz why not !
jk jk.
 
2:44 PM
HA
 
You got a hater ?
 
I got a hater
 
A serious hater
but probably a newbie
 
I hope he realizes
with every -2 for you he loses -1
 
2:48 PM
guys, is there a mathematical solution to this?
 
what do you mean ? If the question is does it converge, then no
 
@dystroy yes, but what is the end value
 
@t1wc infinity; it doesn't converge, as @dystroy told you.
 
@BartekBanachewicz I don't think so
 
it tends to 0 but never finish
 
2:50 PM
@dystroy proof anywhere?
 
@t1wc it's not about thinking or having an opinion :F
@t1wc Calculus for Dummies?
 
@t1wc yeah, any elementary math cursus
 
@t1wc tadaaa
> By the harmonic series test, the series diverges.
 
1/1 = 1 - 1/2 = 0.5 - 1/3 = 0.333333333333... - 1/4 = ..... - 1/10000000000 = 1e-10 - ...
 
@BartekBanachewicz no idea what those are... but I'm going to trust you
 
Oh it's a summe
 
Can everyone just agree to start writing mathematical formulas in pseudocode....
 
aha
 
user3071008
sounds good
 
2:52 PM
I'm bad bad bad
@BartekBanachewicz the - was a delimiter, not a minus signe. See it as a ;
 
@BartekBanachewicz Use jquery
9
 
@Zirak sounds legit
 
var map = $({ a : 4, foo : 'bar'}).hashmap();
map.IF().hasKey('foo').THEN().animate('left', 400).ENDIF();
 
You're still crazy, Zirak. Good things never change.
 
now you must release that plugin...
I'm pretty sure you'll have many stars for such a stupid thing ^^
 
2:58 PM
@Zirak if i have a number, following the string limit how do i get it in regExp ?
/limit=\d+/ ?
 
What?
 
use a capturing group
 
limit=5 , could be 10 or anything.
i wanna replace that with limit=25 in a string
don't ask why i can't parse the URL
 
ok?
 
how do i do it ?
 
3:00 PM
Exactly like you've shown
 
!!> "limit=33".replace(/(limit=)(\d+)/g, "$125")
 
@dystroy "limit=25"
 
Is that what you want ?
 
yeap, thanx
i wonder why the exact same thing doesnt works for me :-/
 
maybe not exactly exact ?
 
3:02 PM
I don't have the group
thats it.
MY brain is officially dead i guess
i had jQuery included, but wasn't using $.get
ugh
and neither did i use $.Promise fuck man, i have been using WinJS for no reason
ahh. i hate me
 
There's a missing tool in our branching toolset. Or maybe I don't see it. I hate it when I write this kind of thing :
				if (x>0) {
					if (y>0) g.nbFlowersAround[x-1][y-1]++;
					g.nbFlowersAround[x-1][y]++;
					if (y<T-1) g.nbFlowersAround[x-1][y+1]++;
				}
				if (y>0) g.nbFlowersAround[x][y-1]++;
				if (y<T-1) g.nbFlowersAround[x][y+1]++;
				if (x<T-1) {
					if (y>0) g.nbFlowersAround[x+1][y-1]++;
					g.nbFlowersAround[x+1][y]++;
					if (y<T-1) g.nbFlowersAround[x+1][y+1]++;
				}
(adding one to cells adjacent to a position and testing overflow)
How could I have done it better ?
Would the question be acceptable for codereview ? SO ? programers.se ?
 
CR if anything
 
Do you think I'm missing a smart alternative here ?
 
3:17 PM
Your variable name aren't the best
But it looks like standard stuff
 
Ok, this Q will probably simply die but I started being bothered by that question almost 20 years ago...
0
Q: Increment the cells around one in a matrix

dystroyLet's say you want to increment the cells around the position (x,y) in a square matrix m of size T. I've written the same code in a few languages. Here's the JS syntax version : if (x>0) { if (y>0) m[x-1][y-1]++; m[x-1][y]++; if (y<T-1) m[x-1][y+1]++; } if (y>0) m[x][y-1]++; if (y<T...

 
@GaryTorres 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.
 
@BenjaminGruenbaum I shouldn't code on a saturday morning. turning that json into a hierarchy took way too long
 
Same problem here. I think I write about 5 simple lines per hour right now...
 
3:31 PM
you said it could be ugly :P
(the code)
I like my mix of forEach and for loops :)
brb coffee
 
@rlemon The for inside the filter is a some
Or an all
They're the same concept
yeah, an every
 
1
Q: 1 Week Phonegap LocalStorage issue for me, 5 minutes issue for a PRO. Please take a look

Alex StaneseI was trying the whole week to get this working and it still aint! I'm very sure it's not a big deal! I new to phonegap and jquery and I think I haven't implemented the script correctly. So I have his feature in my app where I have 5 lifes and each time I press a button they decrease and they re...

 
BenjaminGruenbaum sorry if that made your eyes bleed.
>   console.error( WinJS?"Some awkward error occured, please see the not so helpfull callstack":"Just check your dev tools from here brah" );
 
3:59 PM
posted on April 26, 2014

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {}

 
@inixsoftware 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.
 
4:35 PM
@user1183352 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 have a question on JavaScript . stackoverflow.com/questions/23313168/…. Could any one tell me why this was down voted?
is there any problem with the way i am understanding it.
 
@GriffinM 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.
 
4:51 PM
@mithunsatheesh I can't see any reason to downvote it, It's not bad a question, I've countered the downvote
 
i have upvoted both the answers for that question. But when i am inspecting the object on firebug, its getting me on to more confused state. could any one help me out for a better understanding?
 
rushing for rep at its best...
Sorry, didn't notice this was just a placeholder. — dystroy 17 secs ago
 
5:09 PM
@dystroy: not at all. if u check i wasnt asking questions recently. but SO was the place i came to when i got messed up with my concepts. i asked why u downvoted because people wont look at my question thinking its badly explained.
 
@mithunsatheesh My comment wasn't targeting you at all
 
oh . i am sorry. :)
 
no worry. To learn more, click the link right to my quoted comment
 
5:27 PM
@BenjaminGruenbaum how on earth was that JAVA ?
 
@AbhishekHingnikar Isn't JavaScript a subset of Java ?
 
Hell No.
 
@Iplodman 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.
 
Then why does it have Java in its name???????
 
Cheers :P
 
5:31 PM
@AbhishekHingnikar Oh, I thought so. I might have been misinformed. BTW I just had a CW answer deleted because OP deleted his question just after having seen my answer. Again.
 
user3071008
17
Q: Why is JavaScript called JavaScript, since it has nothing to do with Java?

MatthewSince JavaScript is not derived from Java, why does it have "Java" in the name?

 
lol dey just n00bs
 
@Zirak the same reason carpet has car
 
javascript created by java enthusiast Brendan Eich for use in Internet Explorer 6
 
> a complementary scripting language to go with Java, with the compiled language
 
user3071008
5:32 PM
but what if carpet really is a pet of a car
 
so it's just a scripting language for the serious language that is Java :)
 
Those rules seem fair enough.
 
@Barguast 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.
 
@Zirak You weren't born were you ? In any case IE wasn't (or we didn't know it, at the very least).
 
Zirak is 92 yo. He was born when the dinosaures disappeared from Earth.
 
5:34 PM
Hi
 
@dievardump the hearth ? That's very poetic, I find.
 
user3071008
dinosaurs*
 
@dystroy Yeah I live in Berlin now, my English is getting worth than ever.
 
!!art or code or chores or guitar
 
@eazimmerman code
 
5:39 PM
@AbhishekHingnikar did you READ your code?
@BartekBanachewicz you can WeakMap in ES5
 
Are you reading the whole transcript?
 
How can one not? It's just too interesting. Once you've started, you're hooked.
 
@dievardump no, I just read context around stars.
 
lol
“It's very important to remember the vast majority of people want to help.” Well, I tend to disagree with this. The issue—as I see it—is the tech world is predominantly male & quite competitive as a result. So I see far more competition in answers—for example—than an actual inherent desire to “do good.” Bad questions that are downvoted are—in my opinion—pretty much universally just bad or lazy questions. — JakeGould 1 min ago
 
5:51 PM
@BenjaminGruenbaum He rolled back an edit I made for shits and giggles that wasn't even based on a point he hadn't made already
 
@BenjaminGruenbaum People should be thankful we don't urinate on posts to mark territory.
 
@BoltClock lol
 
Hmm is it possible to load in a webcam stream (atm I am doing drawImage(videoElement .. ) ) without loading up stream in a video tag?
 
Also, hi
wait, not sure.
@BoltClock you rascal
 
Exactly
 
5:56 PM
@BenjaminGruenbaum atm I just playing around with doing abit of motion detection.. and have a interval that copy the image data from the video to the canvas and looks at pixels/filters
 
@BenjaminGruenbaum The last time we had a comment dispute about gender on meta was... let's see... yesterday
 
hello
guys need help regarding mongodb?
 
I don't think any of us do, no
Nor could we provide help with MongoDB, since I'm not sure how MongoDB is in any way related to JavaScript
 
@BoltClock classy.
@BoltClock node
@Kingisback sure, can you explain to me why I'd want to use a database with no transactions?
 
@BenjaminGruenbaum Other than that
 
6:07 PM
@BenjaminGruenbaum yes and ?
 
How do I make this filter behave as checkbox, on selecting the checkbox the values should be seen and no hidden.
http://plnkr.co/edit/hwpUEVJ9aeAe1H0jEt3C?p=preview
 
Array.prototype.reverse2 = function(){
  var l=this.length-1,m=0,n=this.length;
  while(n-- > 0) {
    var v = this[l];
    this.splice(l,1);
    this.splice(m,0,v);
    m++;
  }
  return this;
}
i wrote my own array reverse function... i don't know why
 
Why would you implement array reverse like that :O?
That's like, super slow.
 
Because he can
 
i had an interview
and they asked me to write a function that would reverse an array without using any extra arrays
so i wrote this
@BenjaminGruenbaum how would you implement an array reverse (without using extra arrays)
 
6:24 PM
Wih the indexer?
 
@eazimmerman Why like that, though?
 
Array.prototype.reverse2 = function(){ // wrong, since assumes no sparse etc.
     for (var i = 0, j = this.length; i < j; i++, j--) {
          var curi = this[i],curj = this[j];
          this[j] = curi;
          this[i] = curj;
     }
     return this;
};
 
Much nicer.
 
Didn't test it, also, extra variable 'wasted' (in fact, two extra variables, but w/e)
@Zirak pretty much what chrome does iirc.
only with delete edge cases for sparse arrays.
Oh cool, I have an off by one error.
 
psh, that's nothing. off-by-two errors are the new thing
 
6:29 PM
Now I have to do ES6 version or I suck.
Array.prototoype.reverse2 = function (){ // wrong, since assumes no sparse etc.
     for (var i = 0, j = this.length-1; i < j; i++, j--) {
          [this[i] , this[j]] = [this[j], this[i]];
     }
     return this;
}
Of course, it would have been much easier to do:
 
@BenjaminGruenbaum invalid left-hand assignment
 
Array.prototype.reverse2 = function (){
    return this = this.map(function(el,i,a){ return a[a.length-1 - i]; })
};
But that creates an extra array, so no dice.
@eazimmerman it's EcmaScript 6 destructuring syntax, try running it through traceur or in firefox nightlies.
!!> var x = 1, y = 2; [x,y] = [y,x]; x;
 
@BenjaminGruenbaum 2
 
@eazimmerman ^
 
hello, what's the quiz ?how to reverse an array without creating a new one, or using .reverse() ?
: )
 
6:38 PM
Parse it backwards
 
hello @Zirak
 
@BenjaminGruenbaum how does that work? is caprica using a different version of JS?
 
but keep the original array in the order it it ?
 
7:16 PM
stackoverflow.com/questions/23282178/… - please take a look at this
 
I was asked to do that, I would do
Array.prototype.reverse2 = function() {
    return this.slice().reverse();
}
 
Testing in Karma on an AngularJS app, I keep getting `ReferenceError: <<controller>> is not defined`. The controller works in the app. I've tried swapping the order on the config files, including jquery files, changing syntax of the test and the controller.

Controller:

    var MyApp = angular.module('MyApp', []);

    MyApp.controller('MyController', function ($scope) {
        $scope.list = [
          {
              'name': '1A',
              'startTime': '8:00 a.m.'
          },
          {
 
does someone know how can I trigger a PrototypeJS event observer from jQuery?
I change a select from Jquery, but the observer defined in Prototype can't see the change
 
@Pascut - depends on the observer, if it's this guy, he's hard to trigger
 
Event.observe(select_el, 'change', this.update.bindAsEventListener(this));
Event.observe(select_el, 'swatches:change', this.update.bindAsEventListener(this));
where select_el is an object representing the select element
that's how I declare the observers in prototype
 
7:30 PM
50
Q: Trigger an event with Prototype

Neil AitkenDoes anybody know of a method to trigger an event in Prototype, as you can with jQuery's trigger function? I have bound an event listener using the observe method, but I would also like to be able to fire the event programatically. Thanks in advance

 
thanks, I've seen that post but I haven't tested the "simulate" yet. I will try it now
 
1
Q: JQuery Array Post to PHP

devtreatI post with Ajax 3 arrays, each one for every column. I calculate the sum in PHP, then I echo it in every .totalCol child. I want to post only one array called data, that contains the 3 columns, calculate the sum and echo back, and the same with rows.I want to make it dynamic because when I click...

 
@user3123545 Hello human
 
7:54 PM
@YingdingWang 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.
 
@kobunheat, San Francisco, CA
I edit @GameLife at @Wired. Co-host of @GoodJobBrain. Personal Twitter account.
14.8k tweets, 18.4k followers, following 239 users
^ its true
the copies of ET :)
 
hallo everyone.
 

« first day (1288 days earlier)      last day (3652 days later) »