« first day (1647 days earlier)      last day (3304 days later) » 

12:00 PM
@SecondRikudo it's not the same if a is undefined
 
You're asking about undeclared vs undefined?
 
@meze You shouldn't have an array with undefineds in it in the first place.
 
Wait, that wouldn't matter, just a.slice(0, 1).map(fn)[0] would work
 
That's bad code.
 
@BenFortune Y U delete your answer?
 
user2620028
12:01 PM
@SecondRikudo I haven't even shown you what i'm working on yet :(
 
@SecondRikudo ur ugly and ur mother dresses u funny >:(
 
Because it's puny compared to yours :(
 
@HatterisMad Now's a great time.
 
@SecondRikudo come to the react thing, we have cookies.
 
user2620028
@SecondRikudo You don't want to know
 
12:01 PM
@BenjaminGruenbaum Your mother is a hamster and your father smelled of elderberries
 
user2620028
Hello Ravindra
 
Can I ask a racist/cultural question?
 
user2620028
Please
 
@SecondRikudo That's mean. Revoking my vote.
 
Why is it so many people from India with avatars aren't smiling or look happy in their avatar?
 
user2620028
12:03 PM
Some cultures smiling is not normal for a mugshot for work
 
Most European/American people who have profiles usually have a picture of themselves smiling, most Indian ones usually look dead serious.
 
@BenjaminGruenbaum I think it's a professionalism thing? They want to look good for a potential employer?
 
@SecondRikudo YGLF didn't let me smile for my mugshot :(
 
user2620028
I don't know about India but Thailand I have been asked not to smile for some pictures
 
!!urban YGLF
 
12:03 PM
@BenjaminGruenbaum In India, people don't have fun, they have (outsourced) work. :P
 
@SecondRikudo No definition found for YGLF
 
Ah, You Gotta Love Frontend
@RoelvanUden From their end it's insourced.
 
Is that a real word?
 
user2620028
@SecondRikudo It was sourced from inside of India?
 
@RoelvanUden you are wrong about india
 
12:05 PM
@RavindraGalav he was obviously joking.
 
@BenjaminGruenbaum I dunno. He seemed pretty serious to me.
Isn't that what the :P at the end mean?
 
the p stands for pretty serious
 
@SecondRikudo yeah, :P is like a flag indicating seriousness.
Yeah, that's another common way to read it.
 
user2620028
The :P is a safety net in case someone takes you serious
 
@RavindraGalav (He was joking, don't worry about it :P)
 
12:07 PM
Nope, still sounds horrible.
 
user2620028
saaaafety net
 
Yeah im still cringing pretty hard at that
 
Great safety net :P
 
Cheeses...
 
Inb4 flagged, I'll see you guys in an hour-ish?
 
user2620028
12:08 PM
yeeep
 
rip
Stickied screenshot? :)
 
user2620028
doit
 
12:19 PM
In jQuery , when should I use $("<iframe>") vs $("<iframe/>") ?
(slash pov)
 
POB
 
me ?
 
Yep
 
@RoyiNamir Why would you use $("<iframe>")?
 
can you pause the ability to re-execute an event until some other event has finished?
 
12:24 PM
@corvid use a boolean flag
 
@BenjaminGruenbaum creating iframe element and inject to BODY
 
Why are you doing that in the first place?
@corvid elegantly or the easy way?
 
@BenjaminGruenbaum Elegantly, because it's the base of my page. The only problem is that the component is from a third party resource.
 
@corvid RxJS
Read the tut
 
Im using it with my router (html page). I need to test something and to do some clicking . but the page doesnt have jQuery . so I inject jQuery to the main page. and then create the same page within an iframe. It works with $("<iframe>") but it doesnt work with $("<iframe>").
at the end it's something like :
$("<iframe>").attr('src',"http://192.168.1.1/RgSetup.asp").css('width','100%').css('height','400px').appendTo("body");
But my question is when should I use $("<iframe>") VS $("<iframe/>")
 
12:26 PM
@RoyiNamir that sounds like a terrible idea :(
 
I know what i'm doing.
 
That's jquery alright
 
@RoyiNamir Then don't ask us
 
I aksed pure jquery question
 
12:27 PM
@RoyiNamir as long as you're aware of all the issues using an iframe will cause across different browsers.
//I'd use:
var iframe = document.createElement("iframe");
iframe.src = "...";
iframe.style = "width: 100%; height: 400px;";
document.body.appendChild(iframe);
Horizontal code is annoying to read
 
yes . I'd also add some callback , but again :-) when should I use $("<iframe>") VS $("<iframe/>")?
I believe there's a difference
 
$("<iframe">)
.attr('src',"http://192.168.1.1/RgSetup.asp")
.css('width','100%')
.css('height','400px')
.appendTo("body");
No more horizontal code
 
@RoyiNamir self closing tags don't exist in HTML5, the syntax is just allowed to please people who're used to xhtml
 
oh ok
(lol look how much words ive written just to get this answer)
:-)
^
 
12:31 PM
In terms of what they do in jQuery - they do the same thing
 
@JanDvorak Next time : if you continue answering like an AH , with Then don't ask us , - you're welcome not to answer my questions . look how many times I had to repeat the simple question : $("<iframe>") VS $("<iframe/>"). stop acting like you own this chat
you're not.
 
@RoyiNamir he actually does own the chat... well, the room.
 
Then he shouldn't be rude
 
If he wants, he can kick you out of here, he won't because that'd be extremely rude, and his response wasn't the most polite to your question - but he definitely can.
 
@RoyiNamir I did answer your question. Immediately. it literally doesn't matter. Did you not understand "POB"?
 
12:37 PM
I asekd legit question
 
I don't know what POB means
 
I meant POINT OF VIEW
 
primarily opinion based
 
ok
 
@RoyiNamir Right, but a lot of times when people come here it's the XY problem
 
12:37 PM
is it that hard to say primarily opinion based
instead of using an obscure as fuck acronym
 
@Meredith is it that hard to ask? it's not that obscure, at least on SE
 
I mean
 
@RoyiNamir I'm still not convinced what you're doing is the best way to approach it but you've made it clear you're content with your approach - I owed it to you to make sure I'm not helping you shoot yourself in the foot first.
 
(oh boy) , did I ask some ambigiouse ? pob question ?
 
What I said wasn't phrased as a question but I did basically ask
 
12:38 PM
I think not
it's really simple question like "a vs b" when to use which
 
I am saying that it doesn't matter which one you choose.
 
Jan , that is ALSO valid answer.
but look what happend :
started asking : and then replied : why ? bad idea(router)
how that relates?
 
If you want an answer use <iframe>
 
I wanted to really ask something simple
 
@RoyiNamir look up "XY problem"
 
12:40 PM
@JanDvorak almost every day I see xy problem scenarioujs
 
Do you want us to answer your questions, or help solve a problem you're facing?
 
I don't think it's the case here
 
@RoyiNamir it really is
 
the problem is with my router
 
@RoyiNamir unless you're only complaining I said "POB" rather than "it's the same"
 
12:40 PM
do you want to solve it ?
I dont think so
 
Shall I add Bluebird to my open-source Node module?
Because I want to keep Node v0.10 support and also use Promises.
(If anyone's interested: github.com/oratio-io/safe_children)
 
Why do you need 0.10?
 
If you want promises, you probably want Bluebird
 
It's only needed for 1 function
@Meredith sudo apt-get install nodejs
 
I had a stomach bug over the weekend, but what concerns me is that I seem to have lost a few pounds because of it. I suspect an underlying issue, or I just got lucky lol
 
12:43 PM
@NickDugger Give!
 
@GabrielTomitsuka I'd document it. Many libraries basically require 0.12 'or set your own promise provider'
 
@BenFortune give you my illness? That's a bit odd.
 
My cat managed to throw up all over my bed last night, the stench was horrific.
 
@RoelvanUden Well, I think I'll just add Bluebird
 
I think template inheritance in iron:router works a little strangely...
What happens when you have multiple handlers for the same event? Which "wins out"? Is there a way to extend each function?
// layout.js
Template.layout.onRendered(function() {
  $(window).resize(function() {
    // do some stuff
  });
});
// namelist.js
Template.nameList.onRendered(function() {
  $(window).resize(paginate);
});
 
12:51 PM
@GabrielTomitsuka your code just does return Promise.resolve()
o_0
It doesn't even use promises, at leat not correctly.
 
@BenjaminGruenbaum It's not yet ready :P
 
You should use bluebird over native promises anyway, they're easier to debug
 
I'm debugging something else right now
Specifically, "Why the heck don't the child process logs work?"
The README.md is also wrong, btw
@BenjaminGruenbaum I need return new Promise(function(resolve, reject){ in this case, correct?
What? If I do vm.runInThisContext(file, {timeout: timeout});, the file doesn't log. But if I do vm.runInThisContext(file);, it works.
 
1:18 PM
guys how woul you test API calls without doing git add, git commit, and git push all the time?
I have several functions like submitScore() and I want to test it it works
 
what do api calls have to do with git?
 
maybe use localhost?
Or i'm not understanding the question
 
@Vlad Go back a step and slow down
 
I want to make a game that uses Google Play Game Services
 
the question is terrible, I'm trying to get him to ask the real question
ok, that's the goal; now what's the issue?
 
1:20 PM
I cannot test them localy because I use G+ data and it throws error: Origin mismatch
so I need to upload code to my site each time I do change :D
 
SSH
FTP
just upload the code without using Git
 
@Vlad File watcher and uploaders may work?
 
Firezilla I remember doing a good job
Yeah that might go faster
 
FTP? Seriously? What is this, 2004?
3
 
1:23 PM
Then configure another origin for local tests, IE your IP.
 
Not sure how to do that, I am newbie with Google app services overall
 
Do whatever you did originally, with a different host...
 
so I add new web app in my Google Dev console that says origin: localhost:8080?
 
Wait, are you talking about GAE?
 
maybe it is plausible
 
1:26 PM
I'm a butterfly
 
@NickDugger what do you suggest me to use instead of FTP?
 
@Neoares git
 
No its not Google APP ENgine I use Google Play Game Services, but all other services are integrated
Google + services and many other are example
 
@NickDugger FTP and Git are different. I just want to upload some files, or modify some lines, so FTP plugin for notepad++ is fine for me :)
 
Fixed. I was sending a date as the timeout :P
 
1:28 PM
@NickDugger But yes, I've used Git in some large projects, and it's way better
 
@Neoares git
 
@NickDugger ok you are a git-geek xD
 
I'll take that as a compliment
 
"gapi" to be more precise
 
Good luck tracking your changes when something breaks. :)
 
1:29 PM
@NickDugger If I need a software that allows me to send a file to my remote server back and forth quickly but we can't afford VPN, what should we use?
SFTP or FTPS?
 
@Unihedro email
 
@NickDugger So we should set up a mail server to indirectly accomplish a task?
Thanks.
 
@NickDugger u mean git?
 
Yes
email > git
 
1:30 PM
@NickDugger What does git have to do with this?
 
@Unihedro ssh / sftp
 
@Unihedro everything
 
1 min ago, by Unihedro
SFTP or FTPS?
 
sftp, it's the one bult into ssh
ftps is extra junk
 
git has 3 words, illuminati conrifmed
 
1:31 PM
letters*
 
Are illuminati jokes still a thing?
 
lol yes xD
 
They are if you're 12
 
:(
 
1:32 PM
:F
 
Might be irrelevant, but I use scp for sending a file to my remote server back and forth.
 
12 years.. 1+2=3...
 
rsync
Personally, I send my files via owl.
 
scp is ok, too, it goes ove ssh
 
1:33 PM
on fact, scp is what i use. I mistakenly called it sftp
 
these google APIs are whole science :)
 
makes even less sense after your edit
 
@Vlad Which one?
 
@GabrielTomitsuka yeah lol
 
@GabrielTomitsuka overall looks like a science. But I use Google Play Game Services API at the moment
 
1:40 PM
guys guys guys, I'm the Owner of #Javascript on the Portuguese SO;
Is it do-able to have a Portuguese version of the rules in rules.javascriptroom.com ? :)
 
@MoshMage why?
This is an English-only chatroom, I believe it says that in the rules
having rules in Portuguese would be counter-productive
 
Apparently there is a Portoguese SO.
 
@KendallFrey I'm talking of something like "rules.javascriptroom.com/pt" obvisouly -- It would be counter-productive otherwise :P
 
but answering to your question "because I want to mimic this room" as it's a pretty neat room
 
1:42 PM
@MoshMage But why? Like I said, having portuguese rules for an english room doesn't make sense
@RoelvanUden welcome to the 21st century
 
@KendallFrey I don't believe in that funny non-English thing. It's a hoax.
 
@KendallFrey because I could use the same link, and since I plan on making that channel a "child" of this one it makes sense in my mind :P
 
@RoelvanUden it needs moar people though. And mods :)
 
1:44 PM
@MoshMage I don't think we're going to associate this room with any other one, nothing against your chat room, but that's how we roll here
 
6
Q: Visible code markup in profiles

vcsjonesWhen I look at a user's profile, I see this:

 
We're kinda like America.
 
Muuurica
 
@MoshMage A question, though, why not simply hang out here? English is fun!
 
1:45 PM
@MoshMage markdown is also like america
 
@MoshMage This is how we do with Markdown: [ link ]( title )
 
@RoelvanUden I guess for some of the same reasons the portoguese SO was created in the first place, english isn't as widely spread in all countries like we sometimes want to think
 
@RoelvanUden who are you kidding, english is fucking stupid
 
@KendallFrey I had a dream that I forgot english and had to relearn it. It was hard
English is a whole lot of nonsense
 
@RoelvanUden I know, and I normally do, is just BR/PT people might also need help there; I'm thinking if they didn't post at the Internation SO they might not be able to communicate properly in english so.. having the channel there should be helpful :)
@GabrielTomitsuka That's how I did it the first time :(
 
1:46 PM
The only real kind of people are americans
everyone else is fiction
 
@ivarni Well.. but we're developers.. developers read English docs. Right? Right?!
 
@RoelvanUden you would think so.. If you read the questions there, you will NOT think so anymore xD
 
Always wondered what it was like for foreign developers having to learn English syntax
 
@KendallFrey English is way easier than German :P
 
@RoelvanUden I guess developers in general have a higher rate of english literacy, but I probably could find some examples of it not always being the case on SO without spending too much energy :)
 
1:48 PM
@MoshMage Huhnm.. that might be one of the little reasons why I don't answer questions on SO anymore! :-D
 
Especially since I already know english
 
@RoelvanUden lol
 
I mean, even in Murica most people don't speak proper english... :P
 
HI, Anyone knows if it possible to make google map marker to be a custom link? for example <a id="marker1" href="http://google.com" title="marker1" />. I want to use marker to trigger modal windows on the page. I have done a lot of research (probably not enough someone would say) but i can't find a solution.

for (i = 0; i < ofs_title.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(ofs_lat[i], ofs_long[i]),
map: map,
externalURL: 'http://www.google.com'
});
}
 
@ivarni But that's just import * from 'mexico' :P
 
1:50 PM
Bit harsh that. http://t.co/sYyLUA3vxq
 
Error: Cannot find module 'mexico'
 
anyone know how I can record user interactions and then play it back with native js?
 
like recording button clicks and form inputs
 
in Teenage Programmers Chatroom, Apr 15 at 13:29, by Unihedro
@GabrielTomitsuka I'm not going to spend time on a language so devilishly and unnecessarily complicated that even natives don't mind proper grammar.
 
1:52 PM
there's such a chatroom? by the gods!
 
^ Describing german in a sentence
 
@MoshMage It's where adult programmers go to find themselves a teenage programmer to stalk.
 
also, the CSS on the PT-SO chat's different. it has a shitty blue text-bar and old-ass gradiented-rounded-buttons on top :D
@RoelvanUden /join #teenchat
 
@RoelvanUden Actually, I got a job offer in the Teenage Programmers Chatroom
<- Room owner of the Teenage Programmers Chatroom :)
 
@GabrielTomitsuka 50$ per level kind of offer?
 
1:57 PM
I hope it wasn't some kind of posing in front of a camera.
 
@MoshMage $500/month.
@RoelvanUden I did this: swap-n-sell.com (NOT DONE)
Design is preliminary
Will be fixed by a real designer in a soon future :P
 
import * from 'bootstrap'
 
Good. The design doesn't even render properly here :P
I have no idea what it should look like
 
@GabrielTomitsuka naw bad :o
(the price)
 
@GabrielTomitsuka I crashed it
 

« first day (1647 days earlier)      last day (3304 days later) »