« first day (906 days earlier)      last day (4036 days later) » 

12:00 AM
No ... that's because @rlemon pooped on his slide ...
> He is in a giraffe costume.
Hilarious. :D
 
Surely someone can criticize my dangerous greasemonkey script.
Please?
:_(
 
m59
@KendallFrey I totally would, but I'm a noob
 
CoffeeScript is good
 
12:16 AM
0
Q: Python => Pythonic, Ruby = >?

Jan NetherdrakeThis is non-constructive topic, but I'm wondering, what would the terms be for languages, if you are trying to say you've done something idiomatic in specific language. So if you do something peculiar to the Python way, you say your code is Pythonic. Are there any similar terms for other languag...

 
m59
Alas, I am stuck again. pastebin.com/MqsHbwRM
I put "//" on lines that are shared in the two objects.
I get how I can deal with the first 3 repetitive lines, but the rest that are all wrapped in 'ifs'...
hmm...I may have an idea (probably bad) lol
 
Hi people...
 
@SomeKittens So, give me an idea on how to make the first user to register, an administrator, I'm thinkin do a find() if it .length === 0, then admin: 1 else admin: 0?
48 hrs later and my nameserver hasn't updated for my domain name, must be lost in limbo
 
An hour usually does it for me.
 
Lisp is for lusers
 
12:34 AM
var str = "foobar";
var re = /^foo/;
var found = false;
str = str.replace(re, function () { found = true; return ""; });
// some stuff with found and str
More opinions needed.
 
@m59, pass a function
 
m59
@phenomnomnominal give me a sec
I am doing the best I can
I just think it might suck
@phenomnomnominal pastebin.com/iuXianWf
best I could do. I'm not sure if there is anyway to deal with the if's better.
 
onThumbClick : function(targetLi, data, context, subClassHandler) {
    var videoIndex = targetLi.getAttribute('data-index'); //
    var listIndex = targetLi.parentNode.parentNode.getAttribute('data-list_index'); //
    this.data.each[listIndex].currentVideo = videoIndex; //
    if (this.player) {
        subClassHandler.call(this);
    else if (!this.playerId) {
         window.open(data.each[listIndex].videos[videoIndex].url); //
     }
}

namespace.youtube_thumbs.onThumbClick = function(targetLi, data, context) {
I was thinking something like that
 
m59
ahhhhh
super plus 1
 
12:54 AM
 
@Zirak have seen your no-www website, are you making dig requests to the nameservers for validating the cnames or just doing http requests looking for no 404 errors.. ?
 
@elsanchez It's not actually my website. I should update that...
 
hi
someone has already seen this? Refused to display 'https://accounts.google.com/ServiceLogin?passive=1209600&continue=https%3A%…223‌​4373%25257C0.2473349148%2526authuser%253D0%26btmpl%3Dauthsub&authuser=0' in a frame because it set 'X-Frame-Options' to 'Deny'.
 
1:09 AM
Guys I need help. Its really simple, and I'd feel liek an idiot for opengin a question for it on stackoverflow:
 
m59
go for it
 
2 days ago, by Zirak
@Mike Google sets a header which disallows it to be framed.
 
{"Quiz":"30","Challenge":"69"}

How can I get the value of quiz using javascript ?
btw
i fetched the data via jquery's post method
 
That's taught in javascript 101
 
m59
Learn js, my goodness.
 
1:10 AM
i need help with json
Normally I'd do data.Quiz
 
@Zirak how can i bypass it?
 
2 days ago, by Zirak
Google didn't disallow it so you can un-disallow it; they did it on purpose. They do not want to be put in a frame, so you cannot do it.
 
OH I GOT IT: PARSE THE JSON!!!!!!
 
@Zirak but why google set this
gapi.auth.authorize({client_id: clientId, scope: scopes, immediate: true}, handleAuthResult);
when all people cannot take it?
 
m59
1:11 AM
parse the json...
what?
 
and we must set immediate to false?
 
@MikeBoutin What?
I have no idea what you're talking about
 
I can't just do data.Quiz, unless I've created a data object using .parseJSON
 
Then it's something weird with the api, and I can't help you with that.
 
1:13 AM
damn :/
Ty man
i will set it to false and continue
 
Open the console and type TheThingThatGetsDataFromTheServer
 
yeah, chat has a lot of weird functions everywhere.
 
@Cygwinnian it seems that you will get a faster answer in stackoverflow :P
 
What's the easiest way to get the name of the current user in JS?
 
@Zirak oh, i see, ok hehe. i was just wondering :P
 
m59
1:20 AM
@Cygwinnian then you didn't give a very good example for us to work with. You typed in an object and asked how to get a property of it. I'm wondering why you didn't get an object in the first place if that is what you wanted.
did you try dataType: 'json'?
 
An Irishman, a homosexual and a Jew walk into a bar. What a fine example of an integrated community
 
@XCritics Add a flag in the database
@Cygwinnian data['Quiz']
 
@KendallFrey CHAT.user.current().name
 
good nite all
 
My name is not italics
Ha!
 
1:34 AM
Yes it is.
Ha!
 
Could a non-owner type in CHAT.user.current().is_owner = true into the console and then try and do an owner thing?
 
Probably not.
 
Worth a shot
I disabled my ownership and it wouldn't let me do owner-type things
 
test
I get italics.
> Only a room-owner can pin messages
 
Does the room owner menu show up?
phooey
 
1:36 AM
hey,
 
Yeah.
 
last question
qhats the best way to start a javascript plugin?
like a jQuery plugin but just in javascript
 
I don't knoq.
 
just a simple function where you passed an object with some options and a callback?
 
The only good reason to use ctrl-C ctrl-V while programing is that your keyboard misses some greek letters
 
1:44 AM
@SOChatBot LOL
Troll bot
 
@Zirak (test)
No good. Can someone ping me and/or reply to a message of mine?
 
@Zirak Greetings
 
Awesome, thanks.
 
What'cha testing?
@rlemon you around?
 
2:03 AM
@SomeKittens Any idea why my deployed jitsu app Ajax request stays pending forever, and on local it doesnt? Both using the exact same database
 
They pointing to the right place?
 
Yeah
 
If you need your IDE's code generation tool, then your language is too verbose
 
 
2 hours later…
3:54 AM
Grr, getting so close...
(function () {
  var oldCall = Function.prototype.call;
  var newCall = function(self) {
    Function.prototype.call = oldCall;
    console.log('Function called:');
    Function.prototype.call = newCall;
    this.apply(self, Array.prototype.slice.apply(arguments, [1]));
  }
  Function.prototype.call = newCall;
})();
Just need a reliable way to get a function name?
 
4:20 AM
@phenomnomnominal ask politely
 
@phenomnomnominal Seriously, can I borrow you to view my screen for like 5 minutes, I have a question that will sure intrigue you I think, I'm almost begging at this point, I can't figure this out :/
@JanDvorak you here?
 
4:39 AM
Hello How are you?
Im trying to get some help with this problem
 
4:51 AM
@JerryS. What are you trying to do?
 
@SomeKittens NO I WONT
 
user image
2
 
lol
 
5:07 AM
Every language has an optimization operator. In C++ that operator is ‘//’
 
5:24 AM
@copy Could you offer your assistance for 2 minutes?
 
Maybe
 
@copy can i share my screen with you and show you some problem I'm having? Nodejitsu support is having problems, but I figure a guru like yourself might be able to shed some insight :)
 
No, I don't have time for that
 
damn, ok
 
5:46 AM
@copy can I share my screen with you and show you some problem I'm having? My compiler is having problems, but I figure a guru like yourself might be able to shed some insight :)
 
@BadgerGirl Love you long time
 
No, I left the chat because I have things to do
 
@copy :( I really need help.
 
@copy Can I share my dog with you over webcam? I think my dog is sick, can you help me debug it?
 
I really left the chat. I'm not here. Don't ping me
 
5:56 AM
@BenjaminGruenbaum He had no time to help his girlfriend, what makes you think he'll help you?
 
@copy But I love you.
@BenjaminGruenbaum He doesn't like dogs.
@BenjaminGruenbaum Can you help me with my math homework?
 
@BadgerGirl Doesn't mean he doesn't know how to debug one. I don't like null pointer exceptions
@BadgerGirl What is it about?
 
@BenjaminGruenbaum Propositional laws.
 
@BadgerGirl Probably
 
6:00 AM
No I just looked at it. I don't think I will need help.
 
Generally, compared to other areas of math, it's a pretty easy subject. At least compared to other stuff
 
Unlike with Compilers, @copy
Yeah, it is.
But it's also one of my favorite things to do.
 
Yeah, the beginning of it feels more like CS than Math. Although it gets (a bit) more complicated once you get to more complex predicate logic.
I'd love to have a course that teaches how to do good JIT. No such course here :(
The only course here that touches JIT is apparently pretty basic
 
@BenjaminGruenbaum Yes, discrete math was easy but now we're having it again for AI.
 
@BadgerGirl AI math can get really complicated really fast
 
6:05 AM
@BenjaminGruenbaum I know. :(
Anyways. I should go to sleep.
 
Good night :)
Also, @copy
 
But first: you told me to remind you to help me with Compilers. Here's my reminder @copy
Yeah, good night. :)
 
@BadgerGirl help me for the love of shit
    app.post('/admin.html',       isAdmin, admin.new);

     $.ajax({
            type: 'POST',
            url:  '/admin.html',
            data: dataString,
            success: function(data) {
              if(data.error) {
                $('#alertt').text(data.error);
                $('#alertt').show();
                $('#alertt').fadeIn().delay(2000).fadeOut('slow');
                increment();
              } else if (data.success) {
                var lati = $('#route_latitude').val();
 
Chances are you're not calling response.end()
Put debugger statements, etc
 
@BenjaminGruenbaum res.json({'success': 'Marker saved successfully'});
I do, I have a million console.logs to track its journey, but the POST: request isn't even getting to the server
 
6:15 AM
Your JavaScript is OK (well, it's not, but it'll get the request out)
Either your server isn't running on the correct port
Or at all
 
It's running on nodejitsu
 
Or your server is not handling the request correctly
 
it works perfectly fine on localhost, but when i deploy to jitsu, the request just says (pending)
 
then it's not javascript's fault
 
So it's on Nodejitsus part?
 
6:17 AM
Probably you're running on a specific port
Change it according to their instructions
 
I spent an hour in IRC with the jitsu guy, he couldn't figure it out
 
How does your .listen() look like?
 
default express v3
http.createServer(app).listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});
app.set('port', process.env.PORT || 3000);
 
mmk
In that case I have no idea, also worth mentioning, copy doesn't know node.js
 
oh
If you want I can share my screen and show you what's happening, maybe you might have a better idea?
 
6:24 AM
Not really, sorry, debugging is boring and frustrating work, as a programmer I usually have other people handle 'deployment' and stuff. When I don't I usually just follow the tutorial of where I'm publishing tostep after step.
It's usually something around git push origin master :P
 
rofl
I really like the GUI for Github :/
 
With Azure it's just git push
That's your deployment process, like with heroku
 
i like that the gui lets me see my edits
 
What's wrong with diff ?
 
diff?
 
6:26 AM
The GUI in github is nice because it lets you tag lines and share easily
 
Yeah, but I'm just gonna go to bed I think, no point in reading the same lines of code over and over, I know it's not on my end, it HAS to be on jitsu
wait for them to update the ticket hopefully
The ajax request from user registration works fine, yet this one can't even make it to the server, makes no sense
 
What's the difference between EcmaScript and CoffeeScript ?
 
6:42 AM
@BenjaminGruenbaum if I do a curl post request, it triggers it on the server, but that ajax request i pasted earlier still just pends, any idea why that would be?
 
@XCritics the hrml page from which the ajax request is made is on the same port?
 
@FlorianMargaine how can I check that? I know the server is running on 80
It's on Nodejitsu
 
Should be fine then
 
sigh
 
Add an error callback on your xhr request
 
6:51 AM
ok
@FlorianMargaine should be good?         error: function(jqXHR, textStatus, errorThrown) {
          console.log(textStatus + " " + errorThrown)
        }
@FlorianMargaine

https://github.com/Gacnt/Busapp/blob/master/public/javascripts/adminmap.js#L128
https://github.com/Gacnt/Busapp/blob/master/app.js#L70
https://github.com/Gacnt/Busapp/blob/master/routes/admin.js#L5
The top link, should trigger the second link, which triggers the third :)
 
Good day, people. I have a strange issue that could be related to JS in IE7 using Firebug lite, anyone got a couple of minutes?
 
7:08 AM
Can fat people go skinny dipping?
 
7:19 AM
nodejs is the bomb diggity
2
jokes aside, been working with it lately and it's clean
 
7:31 AM
I actually had this button on my computer when I was a child
does your computer have it?
 
It would make more sense on a mixer
 
I had it on vacuum cleaner
 
@TemporaryNickName me too, it was epic :D
 
It would be fun in an elevator
(or just cut the ropes holding the elevator car)
 
@TemporaryNickName I was too afraid to press it.
 
7:42 AM
me too, but I pressed it once
 
0
Q: Ajax request not working when signed in, works when not signed in

XCriticsI have an Ajax request that is simple like this: $.ajax({ type: "POST", url: "/admin.html", data: dataString, success: function(data) { if(data.error) { $('#alertt').text(data.error); $('#alertt').show(); $('#alert...

 
and I felt nothing happened
 
Maybe it was just there to make it look fast.
 
Yeah, similar to drinking a redbull or Mother as a human
 
It actually did something on very old machines
it overclocked the CPU (which could not be done at boot time due to overheating or something)
 
7:45 AM
Then I was right to be afraid of it.
 
If you want to go somewhere, goto is the best way to get there. [ken]
 
I was pro at playing this game on Windows 95
I've destroyed all my friends in computer learning classes
 
I don't see the value of this HipChat thingy. I mean there is XMPP ...
 
@JanDvorak Glad I didn't know you growing up. You would either been a bad influence or you would have killed me.
 
how can I assign a column number to a <td> ?
 

« first day (906 days earlier)      last day (4036 days later) »