« first day (1006 days earlier)      last day (3943 days later) » 

10:00 AM
besides in the past 1 week i have read more maths then i have in my whole life
and now i am trying to do the hardest thing i have ever done in code
2d image -> 3d depth output
using perspective projection in reverse order and learning .trees :-/
so far it has failed ... in horrible manner
 
exit() is a inbuilt function that helps in quiting the application
@Connor
 
@udaysagar There's no exit in js
 
but, i used it earlier.
 
@udaysagar maybe you want return;
 
i want the application to terminate, will return does that?
 
10:04 AM
Maybe there's process.exit in node, but browser js has no such concept.
 
how about jquery
 
You can't just stop, you're in a browser.
 
maybe i have used in jquery
 
...jquery is written in js
 
yes, i know
 
10:05 AM
@udaysagar shtap your stupidity
 
If js can't do it, jquery doubly can't.
 
you cant close an app in browser unless taht window is initiated by js
 
@Darkyen trying to wipe out the stupidity by talking to great ones here..
 
and debating is not a good method :-| , especially debating the obvious
 
maybe you can throw new Exception('stahp it');
 
10:06 AM
@FlorianMargaine lol
 
I get the return value of a php function and I should echo an alert :<? echo '<script type="text/javascript"> alert ('....'); </script>

But why is that because the call to the function is ajax made, the js code inside php is not interprated ?
 
how can i stahp it until i find the answer
 
maybe you want setTimeout then
 
window.close exists only for windows that are created by js
 
@Darkyen Wow, best of luck with that!
 
10:08 AM
yeah i need more then luck
i need somebody insanely awesome with maths.... which is far from my gf / me
 
but, is that impossible to exit the application in a browser?
 
@udaysagar yeap :P
until the page is created by javascript itself .
 
other than using indirect ways like settimeout or some other..
 
and the reason is insecurity
 
@CapricaSix hi
 
10:09 AM
^ --- & Thats just awesome --- ^
 
is that french @Darkyen
 
?
 
on that tablet
under appointment
 
hehe
 
@BhavinChauhan hi there
 
10:11 AM
@FlorianMargaine :-> is that french mate ?
 
@CapricaSix would you like to help me??
 
@udaysagar You can throw an exception, but that doesn't guarantee anything. You should ask yourself why you want the script to kill itself, and fix that.
 
@Zirak :->
stopping a script is not stopping an application my amazing friend :-)
 
@BhavinChauhan how can i be of service?
 
any event will jump start it.
...
 
10:13 AM
@Darkyen Command i does not exist. Did you mean: ie, z, /, !, .
 
@CapricaSix i have html like .. ("<p id='preview'> <img src='" + this.href + "' alt='Image preview' />" + c + "</p>" where c have string value i want write this text over image
 
@BhavinChauhan I am in love with u
 
dammit, i threw away so many answers on the main-page lately
 
Of course not, if he wanted to actually destroy everything, he could do window.close()
 
@BhavinChauhan hint: you're just talking to our chatbot ;)
 
10:15 AM
@Zirak wont work on just any window
 
@Zirak frankly, i dont want to kill the process, but just exit and dont execute the rest
 
@BhavinChauhan what do you mean with you want to write the text over the image?
 
@CapricaSix it mean i want to show text over img
 
$("body").on("click",window.close);
[
<body id=​"chat-body">​…​</body>​
]
20
Uncaught TypeError: Illegal invocation
 
you'd need to either set the image to an absolute - positioning or, to gain more control, use a wrapping div set to relative and set the p - element to absolute
 
10:17 AM
@Darkyen what?
 
@Darkyen window.close.bind(window)
 
@FlorianMargaine hes asking if lorem ipsum is french
 
You're losing the window context
 
@Zirak iirc that shouldnt work either way
 
@GNi33 ,@CapricaSix sorry not write but just display :P
 
10:18 AM
Even if it normally would, that wouldn't, because...see above.
document.body.onclick = window.close.bind(window);
 
@BhavinChauhan huh?
 
@GNi33 i have tried $("body").append("<p id='preview' style='position: relative;width: 100%;'> <img style=' position: absolute;width: 100%;' src='" + this.href + "' alt='Image preview' />" + c + "</p>");
 
and the text is behind the image, right?
 
yeah, I'd try it the other way round
 
10:24 AM
@Zirak i know why it wont work my best friend :-)
 
<div style="position:relative; width=150px;">
    <img src="src.jpg" />
    <p style="position: absolute; bottom: 0; left: 0; right:0;">Your text here</p>
</div>
 
The GNU C Library, commonly known as glibc, is the GNU Project's implementation of the C standard library. Originally written by the Free Software Foundation (FSF) for the GNU operating system, the library's development had been overseen by a committee since 2001, with Ulrich Drepper as the lead contributor and maintainer. In March 2012, the steering committee voted to disband itself, in favor of a community-driven development process, with Ryan Arnold, Maxim Kuvyrkov, Joseph Myers, Carlos O'Donell, and Alexandre Oliva as non-decision making project stewards. Released under the GNU Less...
 
@ItachiUchiha 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.
 
once you read the glibc source code you feel inferior :-(
 
I'll go get some kebab, who's in?
 
10:31 AM
@OctavianDamiean Sure. Got a plane ticket?
 
@OctavianDamiean i am
 
@Zirak Yea, that's a bit complicated.
 
user142019
Good morning. What's up?
 
Now you made me hungry
 
user142019
10:33 AM
_.map(["4", "1"], parseInt) returns [4, NaN]. Why not [4, 1]? parseInt("1") returns 1. :|
 
map passes more than one argument to the function, and parseInt accepts more than one argument: parseInt(string, radix)
 
> C++ is my favorite garbage collected language because it generates so little garbage - Bjarne Stroustrup
 
user142019
@Zirak Ah, I see. Thanks. _.map(["4", "1"], function(x) { return parseInt(x); }) did the trick. :)
 
The 2nd argument map passes is the current index, so you get:
[parseInt(4, 0), parseInt(1, 1)]
 
user142019
I think I'm going to take a look at TypeScript.
 
10:36 AM
If you want to just parse a strict number, use the Number function
 
user142019
Hm cool.
 
Doesn't take any bullshit parameters, just parses a number:
!!> ['4', '1'].map(Number);
 
@Zirak [4,1]
 
Is radix 10 implied in modern browsers?
 
user142019
It's required by the spec.
 
10:38 AM
!!spec parseInt
 
Ah cool.
 
@OctavianDamiean In theory it is always radix 10 in base 10
 
> I started Linux as a desktop operating system. And it's the only area where Linux hasn't completely taken over. That just annoys the hell out of me. - Linus
 
ToInt32(undefined)
|- ToNumber(undefined) = NaN
ToInt32(NaN) = 0
9. Else, R = 0
    a. Let R = 10.
Where R = ToInt32(radix)
 
10:41 AM
Well that's a promising sign.. crashed a web server by running a sql query on it
 
Interesting motto they have there on the es5 GitHub page.
 
s/up through/before and including/ Took me a while to interpret that.
 
So is this PHP or Javascript? — Connor 9 mins ago
can't tell the difference anyway — user2110399 1 min ago
 
STAHP
 
HAMMAHTIME!
 
10:54 AM
@Connor Downvoted.
 
I don't blame you
 
I'm either too stupid, too slow or not motivated enough to answer questions on the main-page
 
Don't make me read any more SO questions. They make me sad.
 
i mean, seriously, 80% are walls of code I don't even bother to dig through with little explanation, 15% are answered immediatly because they are stupid easy and the other 5% are just questions I would need to delve in deeper myself -> thus resulting the question to get answered in the meantime
 
The regs often post interesting Qs in here however; one of the useful features of this room.
 
@BenjaminGruenbaum Are you missing something
 
Your deleted answer?
 
@BenjaminGruenbaum well, is it right?
 
@АртурЛукин 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 don't know backbone so i thought it could be wrong
 
11:06 AM
Hi. small question please. I wrote a plugin ( which uses jquery). Should I attach it to jquery's dollar sign ? $.myPlugin=... or should I attach it to window.myPlugin=... ?
 
@Connor No, new Whatever is exactly identical to new Whatever()
 
@Connor You can only new something if it's a function. You can optionally omit parenthesis from a constructor invocation if you aren't passing arguments, so those two statements are identical
 
@OctavianDamiean I ate sushi. I "hah" at your broken promise of kebabs.
 
@RoyiNamir Probably it should be a jQuery plugin if there is nowhere else putting it makes more sense and it requires jQuery to work.
 
Hah
 
11:08 AM
@RoyiNamir I hate jQuery for this. Chances are this could easily be a stand-alone script.
 
Nevermind
 
Hammond is my favourite organ.
 
@BenjaminGruenbaum :-D or :'-( I'm not sure which.
 
Is that the official stand on typo questions?
!!man 1 scp
 
aw
 
@Zirak What, closing the Q?
 
@NagaJolokia Yeah, whether we close them as off-topic
 
@GNi33 I like the song! Thanks!
 
It seems like a "too localised"
But we don't have a "too localised"
 
11:18 AM
@Zirak they changed things up, so it seems like the most appropriate current choice
 
@Zirak I'd prefer to send the OP a plague of locusts, but I appear to have inherited from an abstract God class and I don't seem to have the implementation.
 
@Amaan cool :) I can't listen to everything of this band, but some songs are really good
 
Yeah, I don't seem to be able to either
Recently, I've been listening to a lot of Augustana and Imagine Dragons again
 
@Zirak Close em, then delete them
 
I don't think we have the power to delete yet
That's just you, with your sparkly 10k+ rep
 
11:26 AM
We have the technology.
 
Hahaha
 
@Amaan 20K
@Zirak what about that caprica question we all pool and give bounty for, answer somethin
 
Oh, wow. thought it'd be in the mod tools
 
@BenjaminGruenbaum 7?
I'm toying with asking+answering a "how would one implement a Naive Bayes Classifier"
 
Check out my userscript it's definitely handy stackapps.com/questions/4228/…
 
11:31 AM
@BenjaminGruenbaum It looks like you can delete at 10k after it's been closed for two days. 20k users can delete immediately
 
It's also vote-based, right? 3 or 5 needed
 
yeah, vote-to-delete
 
hello guys can anyone get me help me on active link on meteor ??
 
@Zirak What Caprica question?
 
@Amaan We want to get the bot to 1k so it can toggle gallery mode.
 
11:34 AM
@Zirak 3
 
"It takes 3 votes, minimum, to delete a closed question. However, the number of delete votes required scales to the number of votes on the question and all its answers."
 
@Dennis Yeah
I just ask in the php room and they take care of it with their
 
@Zirak Oh. It couldn't do that already?
 
@Amaan Nope, it's a 1k privilege
 
@RohanAle don't ask to ask
 
11:37 AM
So we're upvoting the bot
And we'll give it a bounty, but Zirak wants to answer a good question with it first so it'd be 'worthy of' the bounty
 
@Zirak I just had kebab but I had some mechanical difficulties eating it.
 
I...I am.... I'm the bot, if anyone's curious. Give me all your precious rep
2
 
@Connor what do you mean ?
 
nothing, just ask away
if someone can help you and has the time, they will
 
@GNi33 ;)
 
11:40 AM
@OctavianDamiean It's true, I PROMISE! :D
 
@GNi33 Surprise incoming.
 
surprise back to you, bro ;)
 
Wait what!?
 
@OctavianDamiean woah, what the hell?
just saw that bounty, holy...
 
whistles
 
11:55 AM
hahaha
 
So why not upvote this one -> stackoverflow.com/questions/1271503/…
 
Jesus! I had to unsubscribe from all the Mozilla mailing lists ... got spammed with newbie dev mails.
 
@BenjaminGruenbaum you have the terminology confused. "i'm free", as in I don't charge much. "i'm worthless" implies I do bad work... and we all know I do excellent work ;)
@adeneo because that isn't the best answer
that was the answer I put when I first created the account so she could talk in the room.
 
12:11 PM
Just found this in the [chrome.storage](https://developer.chrome.com/extensions/storage.html) example page

chrome.storage.onChanged.addListener(function(changes, namespace) {
for (key in changes) {
var storageChange = changes[key];
console.log('Storage key "%s" in namespace "%s" changed. ' +
'Old value was "%s", new value is "%s".',
key,
namespace,
storageChange.oldValue,
storageChange.newValue);
}
});

Wouldn't that leave a global property "key" with the last iterated key behind ?
 
Zirak want's 1k rep for privs? so the bot can do more chat shit?
 
she ? :(
 
so there needs to be excellent answers.
Caprica
she/he depending on gravatar/name - it's more pleasing than 'it'
 
I agree.
Who was rude with Bushdiver friend ?
 
no clue. I just noticed the pin
the stuff that gets said in other rooms :(
in Lounge<C++>, 8 hours ago, by Mark Garcia
@AshKetchum Yes. $(selector).each(function(idx, elem) { blah });. Can't do Javascript without jQuery. :)
 
12:19 PM
i got some weird silver point on this page, awesome
 
gz ^^
 
12:30 PM
@dievardump Just read the transcript; didn't see anything obvious at first glance.
 
http://i.imgur.com/YUtN25E.png
way to go, outlook, way to go
2
 
"Is it full yet?"
 
how to put a bunch of pdf's on an iPhone ... suggestions aer needed... dunt be pita's
 
@GNi33 hahaha
 
12:49 PM
@Darkyen - convert them to HTML5 -> idrsolutions.com
 
@adeneo what an eligant solution
and useless indeed
 
@HalisYılboğa 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.
 
@Darkyen - I assumed that Adobe reader and iTunes was so obvious that you where looking for something else ?
There's even a "for dummies guide" -> dummies.com/how-to/content/…
 
for some reason they dont work ..
i dont have itunes :P
and apple is amazingly stupid... well i will just email them all to me and download them 3:)
 
While Tim Berners-Lee gently weeps.
 

« first day (1006 days earlier)      last day (3943 days later) »