« first day (1445 days earlier)      last day (3502 days later) » 

2:00 PM
@Basj it does for me
 
@Basj It works, but there's a weird bug
The text resizes twice every time you send a command
Makes it look buggy as a UI
 
also, after zooming in like 500%, I can't zoom out back.
 
@Sippy this happened to me when Brower's internal zoom was not reset to default
 
@Basj Ah yeah.
Good catch.
 
@Sippy can you reset browser's zoom (with menu View or something) and do it again? which browser btw ?
 
2:01 PM
Chrome
you're right.
CTRL+ and CTRL- change the default zoom for browser
So that's an issue.
 
@Sippy no it doesn't anymore... Maybe it was changed before (with the version you launched one hour ago)
 
@Basj wait wtf
O_O
How did I change my zoom level then
 
@Sippy: do you see the top navbar being zoomed ?
 
Nope
 
ok so that means that it doesn't change the browser zooming
 
2:04 PM
Man this library is SOOOO COOOOOOL
 
ohhh yes, i just updated the page some minutes ago to correct
 
I can't see it being useful to me ever
But it's awesome nonetheless xD
 
what lib?
 
The one Basj is making.
I don't have a good grasp of the lib/framework/plugin terminology btw.
So it's probably something else.
 
you have a link in the favorite @rlemon but I know you don't have time for that
 
2:05 PM
good job @Basj
 
@Basj nice
 
@Sippy now that the browser's zoom is reset to default, is it 100% working : CTRL PLUS, CTRL MINUS, CTRL hyphen ?
@rlemon thanks. Have a look at my plan to eat more vegetables : bigpicture.bi/1898oa
 
@Basj Yep.
 
@Basj FEATURE REQUEST: make it so control + click allows me to move the text
 
@rlemon top of TODO LIst :)
 
2:07 PM
@Basj superkewl.
 
@rlemon but higher in the todolist is : version management : if you do modifications on the vegetable list, and hit <SAVE>, my own version is also modified :)
 
If you plan on releasing it
Please don't do any keywords in french
'texte'
 
and some text formatting too
 
have a look at the recipe of "moussaka" (you can zoom on it)....
 
this reminds me of prezi.com
 
2:08 PM
This tool can contain hundreds of recipes in 1 page :) (if you zoom)
@AwalGarg yes someone told me already
 
@AwalGarg A little, if this can be released in lib form it makes prezi a bit useless tho ;D
 
@Sippy true, i'll modify this
 
Cos any website can do what prezi does with this.
 
@Sippy prezi is good, but has lots of limitations and is not free. Basj definitely has something superb though.
 
@Sippy can you try with the other browsers you have (FF + IE ?)
 
2:11 PM
@Basj fancy
@Basj have you seen this? bartaz.github.io/impress.js
(space to progress)
 
(or arrow keys)
 
space is better
larger
 
... I should not annoy him ;p
 
@AwalGarg I agree.
 
yeah definitely, whatever rlemon says... I agree
 
2:15 PM
too late. I've donned my ass kicking boots.
 
@Basj One other consideration is that this lib will be highly usable on touch devices, you need to ensure that zoom functionality works in the same way on those devices so as to be overridden.
 
@rlemon i tried with impress.js, but if I remember well (I'll check my test later) when you have 10000 texts, it was very slooooooow
 
@Basj I was just showing it too you
:P
 
@rlemon if you click on the tablet's button, it shows a gif
 
2:16 PM
...difficult to control
 
@NickDugger because it's hammer time
duh
 
does someone see where the problem is here please?
this prints an Object to the console, i'd like to get its response or responseText instead... anyone please?


function getGeoX(id){
return $.ajax({
type : 'POST',
url : './php/utils/getGeoX.php',
data : {'id':id},
dataType : 'json'
});
}

var lat = getGeoX(id);
console.log(lat);
 
fucking crap I should leave
 
mhm, keep it up
remember who needs help more often ;)
 
2:18 PM
Who is fucking bastard who changed bigpicture.bi/1898oa with nazi symbol (I hope it's the Indian svastika instead....) ??? :)
loll
 
@rlemon Me! :D
 
@Basj my change was subtle, but not the swastika
@Basj also, just track ips
 
@rlemon how to do that ?
 
Yeah, if you're gonna let strangers edit things, you should track who they are by some means
 
@Basj in your server logs.
 
2:20 PM
@AwalGarg oh I have them in my logs, but it will be a difficult to know who has done what
 
> Server:Apache
Transfer-Encoding:chunked
X-Powered-By:PHP/5.5.16
 
@Basj don't allow them to save without auth
 
> assuming he's using phpoop
 
@Basj hmm, check by timestamps maybe?
 
auth with openID or something
 
2:21 PM
@NickDugger @rlemon that's why some important feature I have to implement is saving with auth or versionning....
what would you suggest ?
 
user1596138
@Basj lmao
 
Is openID still a thing?
 
posted on September 30, 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) {} Whee!

 
I'd go auth + versioning
 
or just don't overwrite the original thing. forking/versioning is the best solution, IMO.
 
user1596138
2:21 PM
@Basj Why do they get so big when you zoom out?
 
let me login with my twitter
 
1) like in jsfiddle : mydocument, then mydocument/1, then mydocument/2 like jsfiddle ?
@Jhawins dunnnooo!
 
Why not implement an easy-to-use oauth implementation like gmail, facebook, stackoverflow etc?
 
@Kippie nope. atleast not after this year. OAuth 2.0 has taken over.
 
Well, yeah, I mean 2.0
stop being so pedantic
 
2:22 PM
lol
 
user1596138
@Kippie He wasn't.
 
I totally didn't flip any tables.
 
@AwalGarg an idea? ;)
 
@Julo0sS an idea can change lives!
idea for what?
 
someone is having fun here : bigpicture.bi/1898oa
 
user1596138
2:23 PM
@BenjaminGruenbaum That's probably a better bandaid patch option
 
he said : "you people need to get a life." loll
 
@Julo0sS learn how xml http requests work
@Basj that was me
 
@Jhawins good, then it's settled :P
 
@rlemon oh okay!
 
user1596138
Good idea
 
2:24 PM
they do need to get a life. spam trolls are sad
3
 
@Julo0sS y u no formdata?
 
@AwalGarg about the "stupid" question i asked above (as rlemon would qualify it)
 
user1596138
@Julo0sS dont be a bitch
 
lol
 
when did I say it was stupid?
the fuck dude
 
2:24 PM
you did not explicitly say it
 
I just said learn how xml http requests work.
 
@Julo0sS questions aren't stupid, anyways, rlemon is real angry today, don't mess with him.
 
@rlemon this means the same
 
you're code shows you are very confused about synch / asynch
 
yes i am
 
2:25 PM
@Julo0sS !?
 
*your
 
@Julo0sS no, that is the solution to your problem.
 
Then learn ...
 
Am I a genius now too?
 
@Julo0sS read my answer on "how to return the response from an AJAX call" or Felix's
 
2:25 PM
and i try to read about, but can't find where i'm wrong
 
lol wow
 
Just a last question : for all of you who have tried, did it work with CTRL PLUS / CTRL MINUS ?
 
okay now I am calling your question stupid.
 
thanx :P
 
@Julo0sS Dude, when you ask for help, and someone tells you the information that you need to solve your problem, don't turn around and complain to them.
 
2:26 PM
172
A: How to return the response from an Ajax call?

Benjamin GruenbaumIf you're not using jQuery in your code, this answer is for you Your code should be something along the lines of this: function foo() { var httpRequest = new XMLHttpRequest(); httpRequest.open('GET', "/echo/json"); httpRequest.send(); return httpRequest.responseText; } var resu...

 
wait, the bot message got unpinned!
!!are you alive?
 
user1596138
@AwalGarg Indeed
 
@AwalGarg better ping @rlemon about the bot
 
timed out
 
user1596138
@AwalGarg Dammit I started this not 5 seconds ago
 
2:26 PM
@AwalGarg rlemon is literally gonna come and find you lel
 
@BenjaminGruenbaum why do you hate me so much?
 
In case you're wondering about the bot - rlemon knows what's up with the bot but will only tell you if you ping him 3 times asking about it.
:D
 
mahahahaha
 
user1596138
@BenjaminGruenbaum The new user welcome message counting stuff is also broken by this
 
rofl
 
2:27 PM
WANT THE BOT BACK UP? GO AHEAD! PING ME ABOUT IT ONE MORE TIME. I DARE YOU! also @BenjaminGruenbaum loves to be asked all of your jQuery questions.
9
 
Do you double dare me motherfucker?
 
:P
 
hello Caprica!
 
my master says unless you all stop being little bitches he's going to uninstall me.
please stop.
 
user1596138
2:28 PM
HAMMERTIME!
 
I'm afraid
 
@CapricaSix hello
 
@Jhawins is interested in mentoring newbies in PHP. Anyone interested in free php/mysql lessons - ping him, he'll appreciate it.
 
@CapricaSix Y U NO ANSWER??
 
2:28 PM
@Basj Your cookbook got rekt. :/
 
the troll is very powerful (and has really nothing to do in his life) : he comes again with the svastika every 10 seconds....
 
user1596138
@rlemon @BenjaminGruenbaum had a great idea. I just tried disabling the isOwner check and everything is fine (if you also remove the XHR / message counter for new users input
 
(I am not pinging rlemon at all)
 
arghhhhh
 
@Jhawins sounds good
 
2:29 PM
@notlemon: Yay
 
help me :)
 
user1596138
@BenjaminGruenbaum I tried it. Good so far, there are just no owner commands obviously.
 

 Root Access

For all you Super Users out there. You have backups, right?
 
user1596138
else if ( canDo === 'OWNER' ) {
	return false;
}
 
user1596138
And comment out like 4 lines before welcome
 
user1596138
2:31 PM
@BenjaminGruenbaum Am so glad I can remove/unpin stars..
 
@Jhawins that's ok bro, I posted it in other rooms and it got starred there
 
user1596138
!!die
 
user1596138
@Jhawins Registered; need 1 more to execute
 
@BenjaminGruenbaum there is something i miss somewhere, sorry if i look stupid, but i can't get a result... i just tried the point explaining ".done" & ".fail" and still not getting anything good :'(
 
!!live
 
user1596138
2:31 PM
@NickDugger You do not have permission to use the command live
 
fine, bitch
 
!!die
 
!!slidepoop
 
what happened here?
 
17 happened
 
user1596138
2:32 PM
Yup, that's an awesomely simple fix thanks @BenjaminGruenbaum you'll have to egt @rlemon to do it since no one else seems to have bot deets
 
World War 50!!!
 
@ircmaxell SO rolled a chat update, so we're having bot trouble :D
 
well, yes
 
@Jhawins or just wait for the fix
 
@Jhawins :P
 
2:32 PM
@Jhawins Our client wants the legacy software that I work on to disable a user after 3 failed login attempts
 
@ROOM: WE CAN GO A FEW DAYS WITHOUT THE BOT. CALM YOUR TITS!
 
@Julo0sS do you have new isolated problem, reduced to the simplest code reproducing it and it's one no one asked about before in Stack Overflow?
 
We told them that it isn't the client that needs changing, but the database, and that may not be supported
The client doesn't care, and neither does my boss :(
 
@ircmaxell how are you?
 
I'm doing alright :-)
 
2:33 PM
They'd have me write to the disk and count the number of failed attempts and prevent further access after 3 failed attempts... fml
 
yourself?
 
  _
/ /
‾
 
I am wondering how many would be "FEW"
 
Tight deadline, struggling with versions of xcode :D
 
You're a google man, maybe you can help me. I need links to any decent SPA tutorials for Angular that do a good job explaining the conceptual shit behind Angular rather than just telling me to copy and paste the code and look at how magical it is.

Would you, if you know any, be so kind as to share those tuts with me?
 
2:35 PM
I don't know of any
 
Shit.
Worth a try.
 
... wow
 
@ircmaxell a bug bit my arm last night and it itches. pls halp!
 
wat u wawin at, @AwalGarg?
@rlemon submit bugfix request
 
@SecondRikudo reminding you that we're still up for 19:00
 
2:36 PM
@rlemon that one I can help with. I'll need a sewing needle, some cotton gauze, some gasoline, a match and a snorkel...
 
@Sippy it's not a bug, it's a feature.
 
@AwalGarg ur a feature
 
Why is [] === [] false?
 
@ircmaxell we are out of gauze
 
@Grim... because objects and references
 
2:37 PM
@Grim... Try reading the specification
 
@Grim... Because javascript doesn't check for equality in objects
 
@Sippy you started with "You're a google man..." and he replied immediately. I am seeing this the second time in this week, the first one my own experience ;p
 
user1596138
@rlemon Been a few days. Why wait.
 
@ircmaxell yes! I was hoping that was where you were going
@Jhawins because that is one bug we've noticed
 
@AwalGarg Everyone knows that google employees are omniscient beings. Right @ircmaxell?
 
2:38 PM
:-D
 
user1596138
@Neil Is it PHP?
 
others are relevant but don't spam. also, I hold all the cards and say so.
 
Heh, half baked quotes.
 
@Jhawins Worse, C++ MFC
 
Jesus, I got these vitamin pack things from GNC, and its like 8 pills per pack the size of my freaking thumb
 
user1596138
2:38 PM
@Neil I man I was gonna say in PHP it's this
 
@ircmaxell who is the guy who reads (and replies to) mails at botguard@google.com ?
 
Took a whole drink just to take them. They better work. >=(
 
@SterlingArcher Do you have tiny, tiny thumbs?
 
@BenjaminGruenbaum wait, is that a guy in the bushes? I dunno. Does he have a gun? I dunno. Red Team GO, Red Team Go!
 
@Sippy lol no i have big hands
 
2:39 PM
:19175719 That's a lovely function name. Think I ought to write a couple of those in my code before my new job
 
user1596138
Nah that's not appropriate ;)
 
@Jhawins Was gonna say, careful or Bartek will report you
 
user1596138
@Neil Actually that is the function name used in the example... On PHP.net page for Functions hahahaha
 
user1596138
Or maybe it was in the comments
 
@Jhawins PHP, building a better future one function at a time
 
user1596138
2:40 PM
It's valid tho
 
I don't doubt it
 
the ng version is (gonna be) niceish
 
user1596138
@Neil Pretty sure an on-screen user works on the PHP.net
 
user1596138
That's the best function name ever tho, seriously.
 
@Jhawins You see, if it were PHP, I could turn down a user after 3 failed attempts, because it is the web application providing the access authority
My client checks with a database given a username and password
It has no authority for determining whether or not a username and password is valid or not
And it would be very improper to code the client like it were
 
2:43 PM
@Jhawins TheThingThatGetsDataFromTheServer
master-chat.js
go SO!
 
user1596138
@Neil Wait were you asking me a serious question?
 
@Jhawins No, just venting
Just can't explain this concept to my boss
 
function ∅() {
    return array();
}
 
@Basj I found a bug. Zoom out on bigpicture.bi/demo
:D
 
@BenjaminGruenbaum i did... believe me it's very frustrating...this is not an async or not problem, this is just : i can't read what i need from this json object...
 
2:45 PM
It's kind of like your boss coming up to you and saying, "We need your software to be super-secure, can you do that for us? Mmmkay. And oh, bob says he really hates having to put in the password, so if the username is Bob, just don't ask for the password. That'd be greaaat."
 
@Julo0sS so that's a yes on that question?
@ircmaxell can't that be return []; ?
 
today it can
 
For at least a few months :P
 
:-P
 
user1596138
@Neil Oh I thought it was in reference to Benjiamin saying I wanted to help with PHP/MySQL haha
 
2:46 PM
@BenjaminGruenbaum What's PHP?
 
Is anybody here knowledgeable on supplements and dietary drugs? I don't want to be taking something that will give me a freaking heart attack or anything.
 
@ircmaxell some languages actually do support this, you know :P
 
@rlemon is there anything (within my limit of knowledge) I can do to help with the bot?
 
@Unihedron It's a place where angels go to die.
2
 
2:48 PM
Did you guys see that I think chrome now supports ES7 Array.prototype.contains?
 
@BenjaminGruenbaum yes, I know
 
user1596138
@Neil Tell them there is a magical unicorn in Indiana that can grant all your impossible stupid-ass wishes... As long as they pay him 6 figures and feed him and do his laundry
 
@ircmaxell you guys need infix notation :D
 
@Neil +1 for concise description.
 
@SterlingArcher fancy!
 
2:48 PM
@Sippy what's the bug ?
 
@SterlingArcher ES6*
 
I have to go (family)...
 
@BenjaminGruenbaum eih
 
by the way, the spammer's IP seems to be 50.206.46.66 if someone knows who he is ;)
 
@Basj On my screen, it doesn't paint properly. When you zoom out, some of the ascii gets painted for every zoom level.
 
2:49 PM
@SterlingArcher wait my bad.
 
@BenjaminGruenbaum the tweet said ES7
Which confuses me
 
@Basj You changed it back to Hi! xD
 
@Jhawins Hah
 
Nono, it's not ES6, I was thinking of String#contains
@ircmaxell you do though
 
@Sippy True story.
 
2:49 PM
@BenjaminGruenbaum the funny thing, every language I've seen used in large scale projects have coding guidelines that specifically prohibit using operator overloading or new operators...
 
@SterlingArcher NO
 
user1596138
@Neil (it's not me)
 
@Sippy was it sometihng else than "Hi" before ?
 
@ircmaxell because languages used to get it very very wrong.
 
user1596138
You have to go find it because unicorns don't have phones
 
2:50 PM
@BenjaminGruenbaum I've been meaning to ask, why are ES7 things being supported, while ES6 isn't even out?
@rlemon k
 
@BenjaminGruenbaum no, it's because intent is being hidden
 
@SterlingArcher because internet
 
Hello guys! For some reason the goo.gl/taIqf linked in the room description isn't working for me. Could someone give me a direct link?
 
lol ok
 
@BenjaminGruenbaum there are lots of subjects about this, most of them seem to solve it with a json.stringify or .responstext but here it does not work
 
@Basj Look now, and zoom out.
 
user1596138
@Neil So what I would do in your situation is shift the focus to making a program to find this unicorn because it sounds easier
 
@ircmaxell Thanks.
 
@Basj Did you disable save?
 
@Basj whois lookup?
 
2:51 PM
@Jhawins Sounds like a dilbert strip
 
479
Q: What is the XY problem?

GnomeWhat is the XY problem? When asking questions, how do I recognize when I'm falling into it? How do I avoid it? Return to FAQ index

 
Copy ┬─┬ ノ( ゜-゜ノ) in place of Hi!
@basj And zoom out
 
@ircmaxell how is array_map(function(){ return 3; }, $arr) more explicit about intent than $arr array_map function(){ return 3; }?
 
@BenjaminGruenbaum : responseText gives me {readystate : 1} and stringify "undefined"
 
I sometimes wonder if I am Dilbert from the types of things that happen in my office
 
2:51 PM
@Julo0sS create an isolated fiddle on jsfiddle.
 
@BenjaminGruenbaum eih... binary functions... eih...
 
@SterlingArcher tl;dr there is already a fix. just waiting on the code.
 
I'd much rather see $arr->map(function() { return 3; })
 
@rlemon What do you mean you're waiting on the code?
You think chat might update again?
 
ugh.
 
2:52 PM
┬----┬
-------
/\/\/\/
 
The code is not in Canada right now.
 
if you're being a smart ass, fuck off. if you're being serious. Zirak has a fix.
 
@ircmaxell seriously, array_filter(function(x){ return x%2 == 0 }, array_map(function(x){ return 2*x; }, $arr) is modern php with function expressions. You find that readable?
 
Ah, okay
I haven't been around, so I didn't know
 
sorry, but i'm seriously getting annoyed at all of these bot pings
 
user1596138
2:53 PM
@Neil Close. I forget where I saw something like that
 
@SomeGuy From what I gather, Zirak figured it out but hasn't patched the bot yet
 
Swift for example would be arr.filter({ $0%2 == 0 }).map({ 2*$0}) (I can make that even less verbose).
 
hi @rlemon
 
@BenjaminGruenbaum That looks like REBEL
 
It's at least as clear, and it's more readable, if the $0 part bothers you write x in x %2 == 0
 
2:54 PM
hello
 
hi @rlemon
 
@rlemon I was sincerely offering help -- wasn't trying to make you mad. Didn't know it was in limbo sorry
 
inb4 flags
 
@AwalGarg ?
 
Ohh lots of words
 
2:54 PM
@BenjaminGruenbaum no. But not because of infix vs prefix...
 
@BenjaminGruenbaum rlemon flags us all for bot pings ;p
 
@SterlingArcher That was because I asked about it :p
I was asking because I intended on looking into the bot when I had some time tomorrow
 
user1596138
!!bewbs
 
2:55 PM
@Jhawins Hahaha
 
user1596138
!!s/.*/this wont work/
 
I like how even as we speak about the bot being dead, we forget that the bot is dead
 
@ircmaxell what about BigInts? Java's x.multiply(y.add(z)) vs x*(y+z)?
@AwalGarg no he doesn't.
 
@SterlingArcher nahh, just a fuckload of pings. some sincere, some are people like @BenjaminGruenbaum being a turd.
 
Hm, okay then. I want to access and parse a JSON file from an external source (in js). Currently I am using the Yahoo Query Language, but that seems like a terrible way to do something so simple. Is there a really simple way?
 
2:56 PM
@rlemon loves pings.
 
but seriously. stop with the fucking pings everyone. I'm actually getting pissed off.
@BenjaminGruenbaum seriously. I'm asking you to stop
 
@BenjaminGruenbaum s/n//
 
@rlemon :(
 
Oh my god I burped and I can taste these freaking nasty ass supplement pills
 
@BenjaminGruenbaum maybe he would do kicking and that would automatically raise flags...?
 
2:57 PM
@PopeyGilbert you mean as in CORS?
 
Holy crap that was digusting
 
user1596138
 
@AwalGarg rlemon wouldn't kick me, we're friends and stuff.
 
@BenjaminGruenbaum in general, I don't know. Because on one hand explicit methods tell you something that the math operators don't... That these aren't primitives you're operating with
 
@Jhawins I always have it on none
 
2:57 PM
@BenjaminGruenbaum Exactly what I mean, yet the API I'm using doesn't support it.
 
◌̅
 
@BenjaminGruenbaum He would kick me... he definitely would. no doubt in that! ;p
 
@Jhawins I don't want to ignore the chat. the notification for real pings is nice
 
"I may not kick you from the chat room, but given the chance, I would kick you square in the balls."
 
@NickDugger What's that, a toilet?
 
user1596138
2:58 PM
@KendallFrey I don't need it on none... The sound of a ping from chat does sometimes cause blisters on my forehead but usually it is of no inconvenience.
 
If you so desire it to be
 
user1596138
Err, wait, it doesn't
 
@ircmaxell the whole primitive vs non-primitive separation is a broken abstraction IMO, I don't mind only allowing operator overloading on value types like in JS - but I don't think PHP has those yet. Also - custom operators are super useful for stuff. I don't think operator overloading is frowned upon in Scala, it's just frowned upon by some people in C++
 
> cause blisters on my forehead
wut
 
@NickDugger I have shit smeared on my screen now. Hope you're happy.
 
2:59 PM
@BenjaminGruenbaum I've also never heard of a 500 million line of code Scala application...
 
user1596138
@rlemon Don't the desktop notifications keep working? And the stack exchange counter? I use them and leave this tab to die under everything else
 

« first day (1445 days earlier)      last day (3502 days later) »