« first day (1283 days earlier)      last day (3671 days later) » 

6:01 PM
I made another loading animation
 
I'm going to have to use one of those for something
Also, hello 17!
It's been a few days :-)
 
o/
 
\o
North Carolina was friggin' sweet
 
hello can anybody help me with this question stackoverflow.com/questions/23086994/…
 
@stable_stack 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.
 
6:12 PM
@Abida it's closed.
 
how can i reopen it?
 
You can't. Ask a better question.
 
@Abida make a new one with some sense in it
 
ok
 
> If this question can be reworded to fit the rules in the help center, please edit the question or leave a comment.
 
6:16 PM
@VictorGirotto 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.
 
Y'know, by reading the message on your question
 
0
Q: third level menu to be opened on click of the second level menu

AbidaI have created a multilevel dropdown menu as follows <div id="menu_holder"> <div id="menu"> <ul> <li id="Drop1">YOUR BUSINESS <ul id="submenu_buisness"> <li> 1-5 users ...

 
@Abida Really, though... IDs are supposed to be unique. If you have non-unique IDs, you're gonna have a bad time.
... soooo, you just asked the exact same question...
If you ask the same question twice, you're gonna have a bad time
 
actually the previous question was closed
 
"Halp, I can't be bothered how to learn correctly!"
@Abida You're correct! Also, you're fairly stupid for thinking repeating the same thing will result in a different outcome.
 
6:20 PM
but i edited the question
 
You really didn't.
It's the same question.
 
Poor poor child: Mom? Why are you spanking Mussolini with an eggplant?
 
ok sorry ... but is it possible to open the second level submenu
i need it ...
 
Yes. Use non-unique IDs
Or classes
Probably classes
 
but i will have to rewrite the css
for eachhh
 
6:22 PM
y'know... ids are meant to be ids..unique
 
Then you did it wrong in the first place
 
Welcome to CSS
 
@Abida welcome to web developement
 
ok if i change the id to class , what will be the next step
 
@Lugia101101 I didn't get it
 
6:23 PM
Didn't get?
 
@Abida Winning?
 
!!s/inn/hin/
 
@SomeKittensUx2666 @Abida Whining? (source)
 
Indeed.
 
More likely
 
6:25 PM
iplease its urgent ... is it then ossible
is it possible
 
@Abida Is this for work?
 
yes it is ...
 
@Wils 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.
 
@Abida Yes. It is possible. Change your IDs, come back, and ask a specific question, and we might just help you.
 
@Abida where do you work?
 
6:26 PM
ok then thats the only option then
 
<aside>Hmmm... grunt: command not found</aside>
Ahh, forgot to install grunt-cli
 
Broad questions that are closed: '[Closed]'
Broad questions that are not closed: 'Close plz'
 
@Abida Where do you work?
 
Menus and co.
 
6:29 PM
^ is that code fine to find the set which sums up closest to 0 in the given array ?
been ages since i did any c in c
 
'Any c in c'?
So you did c in javascript?
 
!!inur c
 
@RyanKinal yo dawg i herd u lik c so i put sum c in ur c so u can c while u c
 
....
Predictable.
 
Awww, forgot the tell
@Lugia101101 :-P
 
6:31 PM
@Lugia101101 asm.js
 
hello if i change the id of the third level menu to class, what will be the next step ?
 
@Abida what's the company you work for?
 
please can anyone help
 
@Abida (1) Change your code (2) Run your code (3) Debug your code (4) Goto 1
 
@Abida Will you answer my question about where you work?
 
6:34 PM
asm.js eh?
Why asm?
 
@Lugia101101 Things get a bit ridiculous with it, but yes
 
@ScottLeadley 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.
 
!!wiki ASM
!!undo
:See the terminology section below for information regarding inconsistent use of the terms assembly and assembler. An assembly language is a low-level programming language for a computer, or other programmable device, in which there is a very strong (generally one-to-one) correspondence between the language and the architecture's machine code instructions. Each assembly language is specific to a particular computer architecture, in contrast to most high-level programming languages, which are generally portable across multiple architectures, but require interpreting or compiling. Assem...
 
@Abida Seriously, though. We're not going to tell you step-by-step exactly what to do. That's your job. If you have specific questions, and are willing to help us help you, then we'll be available as a resource.
If you expect us to do your job for you, we won't be very happy about it.
 
You use us, we punch you in the throat. <3
 
6:36 PM
..unless we're getting paid for it.
 
If we're getting paid for it they won't be very happy.
 
If we're getting paid for it, you're probably losing money (because we ain't cheap).
(In general)
 
1. Because they're not getting paid and 2. because it would turn into a giant shit-fight on who can do it fastest, most effectively and sexiest.
Is it bad to have 320 console errors?
 
@Lugia101101 Nah. Pretty standard practice, really.
320 is about the right about
 
Alright, that's good.
 
6:40 PM
@Lugia101101 ... don't tell him THAT PART
 
For a second there I thought something was wrong.
 
Is it bad to rewrite a small part of a library to make it easier to (unit) test?
 
If the library is made of PHP and porn then have fun.
 
@RyanKinal I did just that, felt good about it
 
user3071008
porn hypertext processor?
 
6:43 PM
@Mosho Fair enough.
 
although I do sometime wonder what constitutes a "unit"
 
@Lugia101101 On a related note... browsing tumblr in public is probably not a good idea.
 
The new language: HPML HyperPorn Markup lLanguage.
My friend went on Tumblr.
 
Ugh, my stomach feels terrible
And keeps making silly noises
 
One wrong click and you're being lectured on the police about why it's wrong to look at porn in public.
Stab it.
You don't need one.
 
6:44 PM
Who was it that asked about my system76 laptop? @Jhawins?
 
user1596138
@Zirak Yes
 
user1596138
A few times
 
@RUJordan I get that when I play with my belly button too much
 
If so, I don't know if I warned you, but they seem to have a thing where Fn+1 forces the fan to go full thrust.
 
user1596138
lol is that bad?
 
6:45 PM
Fun?
 
When you do it by accident, it can scare you quite a bit.
 
Haha.
 
user1596138
Ah.
 
And it survives restarts. So if your fan is going rotation happy, try that
 
You hear a bang, scream and police sirens in the distance... Fn+1
 
6:46 PM
Laptop ready for takeoff, sir
 
Fire main thrusters.
 
user1596138
Hahaha. Sounds like a great feature
 
@Zirak <3
 
Fn+2 shoots fire through the vents
 
@Mosho lol
 
6:47 PM
XD
 
I never dared hit Fn+3
 
Try Fn+0
 
user1596138
No don't
 
:hides:
 
@Zirak fn+7 launches the Avengers Initiative.
 
user1596138
6:47 PM
Try F / 0
 
Fn+8 shows videos of your Mom spanking Mussonlini with an eggplant.
 
user1596138
Annnndddddd back to work
 
You can't just keep posting the same question because the old one was closed. you have to at least attempt to make it better. — rlemon 1 min ago
close it plox
 
Oh, we didn't close that one?
My bad, I guess.
 
Oops.
 
6:50 PM
no you did close it
he c&p'd it again
 
A third one?
wtf.
 
ohh
idk about third
second at least
 
We knew about the second one
And berated him
 
hello everyone! I'm translating a Javascript program into a Java program and I don't know what the ^ operator does... someone here knows that? I did have done a fast search on Google about Javascript operators but I didn't find the ^
 
And refused to do his work for him
 
6:51 PM
he's asking in the HTML room right now
I also told him I refused
in HTML / CSS / WebDesign, 5 mins ago, by rlemon
"I don't want too" isn't a valid technical argument
 
Haha, the ^ operator scared me.
 
@genesisxyz That's a foolish thing to do anyway
 
then there is this.
 
1 ^ 1 = 0
 
6:51 PM
9
Q: What does the ^ (caret) operator do?

TorresI found a web page for calculating the BMI (body mass index), which should be calculated as Weight/Height * Height. The result on the web page is obviously wrong, so I looked at the code and found the ^ (caret) operator. I supose they wanted to calculate the square of the height but this is not h...

 
@rlemon but mom, I don't want to!
 
@genesisxyz how are you translating a client side script into java?
 
oh... It's called 'caret' in english XD thanks!
 
hrm...I should write a language called MDN for "Mass Destruction Notation"
 
@SomeKittensUx2666 how "well" do you know the SSH protocol
and openSSH in general
 
6:53 PM
@rlemon That excuse works with anyone but the cops.
 
It'll basically outline nuclear weapons and phase guns and what have you.
 
@Zirak sudo rm -rf / MDN ina nutshell
 
That only destroys a single computer
 
Okay, I'm writing a test suite for a set of objects that access an API. Do you think it's useful/reasonable to add a config file/setting/flag/something to force the test suite to use real HTTP requests instead of the mock ones I've been using?
 
mdn addEventListener (enter)
WTF!?
 
6:53 PM
@rlemon barely.
 
@Lugia101101 if an employee gave me that excuse I would tell them, "Fine, you don't have to do it. but I no longer have to give you a pay cheque. Leave your keycard on the way out please"
 
Hehe, advantages to unemployment.
 
@Zirak it's call network recursion, durrrr
^ I made that up I don't know if that's real LOL
 
wat
 
@Lugia101101 that "excuse" is likely a contributing factor to being unemployed ;)
 
6:54 PM
@RUJordan it is a code that I downloaded from GitHub... is really well done and I want to understand how it works... is really bad performance wise on HTML/JS, I want a Java version because I want to move it around systems
 
is there a way to manipulate pixels' alpha value directly using paths?
canvas
 
No, I became unemployed after I began a company-wide tradition.
 
^ No Pants Friday?
 
Me and a few others would remotely shut down each others computer when we were bored.
A few mistyped IPs and oops.
Fired.
 
@genesisxyz link?
 
6:55 PM
lol
 
@Lugia101101 your office had terrible security
 
Yea, no shit.
 
@Lugia101101 You weren't smart.
 
We can't remote access anything without explicit access in the firewall
 
No I wasn't.
 
6:56 PM
And even then we need a VPN
 
aaaand Sublime is hanging.
 
When I got bored, I had random computers eject their CD slot
Funnest shit ever
 
Heheh.
Anyway, now I'm unemployed.
I tend to omit that from any resume though.
 
@SomeKittensUx2666 cut it down! Cut the rope!
 
People don't often list unemployment as a position
 
6:58 PM
True.
 
@RUJordan big regex replace.
 
Unless you're working at Centrelink.
 
Oh so I'm NOT supposed to post my extensive drug history on my resume?
 
Can't tell if it's dead or working
 
(that was a joke, google, get over it)
 
6:59 PM
here's my resume: Human (1994-present)
 
Hired.
You're a youngin though
 
@RalphWiggum Prove it!
 
I'm a 1991 baby
 
@Zirak I don't think I can over the internet
 
6:59 PM
Mine is: May be human (sometime - another time)
 
My suspicion is half Zerg
 
Hmm, I see your point.
 
!!more coffee or even more coffeeeeee
 
@SomeKittensUx2666 more coffee
 
Really? I was just saying stupid shit
 
7:01 PM
@Zirak when there were "easy" trojan programs to do that I installed one on my moms computer and was ejecting her CD tray
she was flipping out thinking her PC was possesed
I gave myself away with laughter from the other room
 
hahaha
 
Wow.
 
lmao
 
@HOKBONG 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 once gave my mom to look at one of those gifs of a field or living room that turns into zalgo or whatever
she didn't even flinch :(
 
7:04 PM
> Oh, yeah, I sent him a virus over AIM
 
@SomeKittensUx2666 Good idea
 
@Mosho next, try 2 girls 1 cup
 
Coffee bros unite?
... doesn't have the same ring to it.
 
The most I did was remote shutdown every computer at costco because the computers password was "costco"
 
@KendallFrey she was actually in that one
 
Cosco netowrking may or may have not received the shutdown message '"costco" is not a good password. Enjoy your reboot'
 
I love logging into routers from my phone at friends' places.
 
ooh, even better:
buttz
 
Uwotm8?
 
7:06 PM
you have a really weak stomach i gues
 
I always wanted a pair of onezies with a buttflap
 
Ugh, 5am already?
 
Hi folks, I'm having a bit of a problem getting npm to use the same directory for multiple projects.. stackoverflow.com/questions/23203405/…
The same node_modules directory, that is.
 
@SomeKittensUx2666 lol
I haz a coffee
Iz not a terribly good coffee. But it will do.
 
The beast has been sated, @RyanKinal?
 
7:09 PM
For now. For now
 
"For Now" The worst sentence follow up ever.
"The STD is gone... for now."
 
"We're done having sex... for now."
"The beer is gone... for now."
"I have bugs in my code... for now."
 
I'm not pregnant.. for now.
3
 
"You are gay.... for now"
 
lol
 
7:11 PM
@RUJordan XD
 
@Lugia101101 Waitaminute
 
!!s/Waitaminute/holdupwaitaminuteletmeputsomejavainit/
 
@RUJordan That didn't make much sense. Use the !!/help command to learn more.
 
Even worse: "I am pregnant... for now"
 
@RUJordan @Lugia101101 holdupwaitaminuteletmeputsomejavainit (source)
 
7:12 PM
@RyanKinal same here
Another fun one is "According to the prophecy..."
According to the prophecy I have closed the ticket
 
"Accoring to the prophecy you are gay"
"Wanna test that?"
 
user1596138
...
 
@Lugia101101 that's some unit testing I don't want to get involved in.
 
Indeed.
 
@Lugia101101 Must be a backend guy
6
 
7:15 PM
Coldfusion can lick my ass... debugging is the worst.
 
No, I'm more a sleepy guy.
 
@SomeGuy nice! well, not... nice, but you get what I mean.
 
@mikedidthis likes what he sees.
 
@RUJordan nice timing
 
Yeah no kidding lol
 
7:19 PM
> In practice most teams have one developer who can not actually program. ( spage.fi/software-fail )
Should I be more comforted by the fact that I'm not alone, or scared by the fact that I'll never get rid of Wheatly?
 
Both?
 
@RUJordan YES BRILLIANT THANK YOU
 
Gotchu brah
 
{day: "made"}
 
7:25 PM
A required field is missing in a config object: Throw an error, or reject the promise?
 
Crap
 
wouldn't throwing an error reject the promise anyway?
 
Ummm... maybe?
 
99% sure that's what happens
kinda the point of promises
 
7:26 PM
Well, the thing is, this is before the promise is ever returned
 
user1596138
Ask @RUJordan. He's either fucking terrible at promises or has a bit of experience with them now.
 
user1596138
:P
 
So, it's either throw an error now, or return an already-rejected promise.
 
Yeah sorry, I'm still too new to promises to know that
All I know is that they eliminate callbacks and asynchronous issues
therefore magic.
 
@RyanKinal Return a rejected promise
 
7:28 PM
Sounds good
lol
 
user1596138
lol I'm being begged to go to an NRA convention
 
user1596138
Or something
 
Sweet?
 
user1596138
2 states away on 6 days notice? A 4 day trip? What could they be doing for 4 days
 
Ummm... shooting stuff?
Or, maybe, forming a well-organized militia?
 
user1596138
7:33 PM
I have doubts on how much actual shooting goes on lol
 
Yeah, me too :-P
Militia-izing, though... :shifty eyes:
 
user1596138
I picture being lectured about guns by a guy playing with military spec guns.
 
That's probably the truth of it
 
user1596138
Telling me why I can't have them. Because he is fatter than me.
 
That or it's 4 days of awesome shooting tournaments and you're missing out.
 
user1596138
7:34 PM
Yeah there's that possibility...
 
Or a secret gay orgy. So you're looking at a 33.3% of boredom, 33.3% chance of fun... or a 33.3% chance of sodomy.
The choice is yours.
 
user1596138
Hmm.. But there's an Alabama concert and I'm not really feelin it.
 
Ugh. Alabama.
 
I feel like I have too many teeth for Alabama
don't know if they will frown upon that
 
My solution to FizzBuzz:
git clone git@github.com:SomeKittens/FizzBuzz.git && node fizzbuzz.js 100
 
7:41 PM
@rlemon mo teeth mo prollems
 
@SomeKittensUx2666 wanna see mine?
 
@BenjaminGruenbaum I'd love to see how you fit promises into FizzBuzz
 
Close
lemme just write it
 
1
Q: How do I cancel a promise inside the "done" callback?

Ayman SafadiI have the following scenario... $.when( $.getScript('script.js') ).done(function () { if ( scriptIsAlreadyLoaded ) { // I want to cancel this promise. // I no longer want script.js because // it has already been loaded in another // instance. } /...

 
2
Q: How do I cancel a promise inside the "done" callback?

Ayman SafadiI have the following scenario... $.when( $.getScript('script.js') ).done(function () { if ( scriptIsAlreadyLoaded ) { // I want to cancel this promise. // I no longer want script.js because // it has already been loaded in another // instance. } /...

 
7:50 PM
Crap, I'm on node 0.10 :P
 
How do I cancel a promise inside the "done" callback?
 
Dammit Benjamin you commented my answer before I posted it D:
 
@BenjaminGruenbaum what's the problem with 0.10?
 
function *fizz(){
	while(true){
		yield '';
		yield '';
		yield 'Fizz'
	}
}

function *buzz(){
	while(true){
		yield '';
		yield '';
		yield '';
		yield '';
		yield 'Buzz'
	}
}

function fizzBuzz(){
	f = fizz();
	b = buzz();
	for(var i = 0; i < 100; i++){
		console.log((f.next() + b.next()) || i);
	}
}

fizzBuzz();
 
oooh, generators
 
7:52 PM
Cute. You made me lose in Hippolyta, though.
 
@BenjaminGruenbaum any nice tutorial about generators ?
 
@AbhishekHingnikar read that code, that's about what there is to know :P
 
Do you know generators in another language, like Python or C#?
 
What does the asterisk before the function name mean?
function *buzz()?
 
generator [that would be my best bet]
if that was all to know
 
7:54 PM
whoops, my bad. Forgot the .value
 
@Zirak being frank nope.
 
Corrected version:
function *fizz(){
	while(true){
		yield '';
		yield '';
		yield 'Fizz'
	}
}

function *buzz(){
	while(true){
		yield '';
		yield '';
		yield '';
		yield '';
		yield 'Buzz'
	}
}

function fizzBuzz(){
	f = fizz();
	b = buzz();
	for(var i = 1; i <= 100; i++){
		console.log((f.next().value + b.next().value) || i);
	}
}

fizzBuzz();
 
2473
Q: The Python yield keyword explained

Alex. S.What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code (**): def node._get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild if self._ri...

 
@BenjaminGruenbaum My challenge with that repo is to make one commit a day to improve it and see how long I can go
 
7:55 PM
Wow 4000 upvotes
That's crazy
 
It's a good answer
 
Oh wait
so this yield son of a bitch will run in a background thread :O ?
 
The function doesn't return the function but continue running
 
thats great :D
 
It's a "pause" - you return the value, and on the next invocation, you continue from that line
If you want to implement that with threading you can, but it'll be weird.
 
7:58 PM
:->
 
I got it a little cleaner now hmm
 
tbh, I expected a map from you
 

« first day (1283 days earlier)      last day (3671 days later) »