« first day (927 days earlier)      last day (4022 days later) » 

12:00 AM
Your mother was a hamster and your father smelled of elderberries!
 
m59
Hey, @Zirak, just wondering, was the reasoning behind logging the error rather than sending it back via ajax that it may reveal something undesirable, and if so, what?
 
perl chatroom is a ghost town
 
@m59 (1)Logging is always good in case something fucks up in communication; (2)The client-side shouldn't care about the specifics of the server-side
@Johann Well maybe you shouldn't have invited all these ghosts
Am I the only one who actually thinks here!?
 
hmm
yep
 
You never gave me a Christmas gift
And your name's not Pom-Tom!
 
12:03 AM
wat
 
@Zirak You're just bored, aren't you?
 
I'm racking my brain trying to find something, man...
 
how about perl
your long lost relative apparently
 
@Johann You're obsessive
@Zirak You're crazy
@AmaanCheval You're talking to yourself
 
Thanks Pom-Tom, but that's enough carrot juice
 
12:04 AM
we're all crazy here
 
I think I like crazy Zirak more
CrazyZirak++
 
jsfiddle.net/gfZ5C/164 @AmaanCheval hey buuuuudy, am I doing the onblur event wrong?
 
What do you expect it to do?
 
Hide the circle when the mouse leaves the canvas
 
12:06 AM
so its just solid black
 
!!/google onblur
 
@XCritics Look at some demos and see what focus and blur mean
Have your mouse hover over something is not the same has having the element be in focus
 
Focus is like clicking a text box isnt it?
blur is when your cursor leaves it
I thought
 
...
 
12:10 AM
@XCritics Right. But do you have something like the cursor for the canvas?
> In contrast to MSIE--in which almost all kinds of elements receive the blur event--almost all kinds of elements on Gecko browsers do NOT work with this event
You probably want the onmouseout event
 
I didn't even know that was a thing
 
New! !!/adventure5 !!!!
Type !!/adventure5 !!
 
I meant onmouseout, sorry
 
@Johann !!/adventure5
 
12:12 AM
...165?
 
@lawm yay
 
Someone's hardworking
Supposedly
 
!!/adventure5
 
@Johann Welcome to !!/adventure5. Please type !!/pythonis4noobs to continue.
 
12:13 AM
Shit, it's early and late
 
!!/pythonis4noobs
 
@Johann You are working as a UNIX SYSTEMS MANAGER DISTRIBUTOR SCRIPTOR NETWORKOR at a local fava bean supply company. Suddenly, your handy commodore breaks down on you and experience major disappointment. Do you: a) !!/purchase another machine or b) !!/weep until someone nearby feels sympathy for you?
 
@Zirak Yep, I can see the sun rising
 
!!/learnperl
 
nope
 
12:13 AM
@Johann Command learnperl does not exist.
 
!!/learnperl = "yay"
 
@Johann Command learnperl does not exist.
@Kasper Welcome to the JavaScript chat! Please review the [room pseudo-rules](http://rlemon.github.com/so-chat-javascript-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.
 
Hint: try purcjase
 
!!/purcjase
 
!!/purchase
 
12:14 AM
@Johann Command purcjase does not exist. Did you mean: purchase
@lawm You run to the local radioshack because of their tendency to not look you in the eye when purchasing your product. This makes your purchasing experience more comfortable. However, this time, a new employee works there and they DO look you in the eyes. Do you: a) !!/scream in social agony or b) !!/swipe your credit card and walk out of the store awkwardly?
 
hellooo?
 
!!/screaminsocialagony
 
@Johann Command screaminsocialagony does not exist.
 
no its the first word
only
 
!!/screams
 
12:15 AM
@Johann Command screams does not exist. Did you mean: scream
 
scream
 
you forgot the shabang!!
 
Okay, time to sleep
 
!!/scream
 
@lawm You Scream for 8 seconds then stop and throw down the product and run out of the store. You run to your friends house where you can be SURE that you receive no eye contact while making your purchase. However, you find a box on the sidewalk that is the perfect product for your needs but it suspiciously smells like sulfur. Do you: a) !!/walkon or b) !!/bringthebox home?
 
12:16 AM
a
 
@Johann I told you its the first word!!
fine ill do it
 
How do I write code here ?
 
I am just derping
 
!!/walkon
 
@lawm You continue walking to your friends house and make your purchase without eye contact. Do you: a) !!/run back to work or b) !!/dash back to work?
 
12:17 AM
@Kasper ctrlk
 
aah thanks !
 
@Johann !!
Which one?
 
hello is this code
wat
code
oh derp
 
@AmaanCheval gn
 
THIS IS CODE YEAH! TYPE !!/run or !!/dash TO MAKE THE NEXT DECISION JOHANN
 
12:19 AM
I've a question, i've written some javascript in geogebra, this is part of the code:

        if (obj != "finished") {
         var cmd = "finished = ("+obj+"== target3)";
         ggbApplet.debug(cmd);
         ggbApplet.setErrorDialogsActive(false);
         ggbApplet.evalCommand(cmd);
         finished = ggbApplet.getValueString("finished");
         if (finished.indexOf("true") > -1) {
           ggbApplet.setVisible("step3",true);
         }
        }
If I replace it for this code, it doesn't work anymore.

function checkpoint(target,step){
if (obj != "finished") {
var cmd = "finished = ("+obj+"== "+target+")";
ggbApplet.debug(cmd);
ggbApplet.setErrorDialogsActive(false);
ggbApplet.evalCommand(cmd);
finished = ggbApplet.getValueString("finished");
if (finished.indexOf("true") > -1) {
ggbApplet.setVisible(step,true);
}
}
}

checkpoint(target3,step3);
 
make a fiddle
and for the love of science format your code
 
ya I told him ctrl-k
Fine I'll do the next decision @Johann.
!!/dash
 
@lawm You are stopped in your tracks by the IADOS as they stand for the InstitutionOfAntiDashingOnSidewalk. You are held hostage in antarctica until meeting a penguin friend. At that point you are mentally instable and so follow that penguin friend into the encampment of doom. Game over.
 
...
 
oh man!
 
12:21 AM
@Kasper ugh formatting 0_0
 
sorry guys
 
I need to display an image if the user inputs an invalid email. I suppose there's a better way to do this than to echo an image. codepad.org/Z9R4G4sP
 
Working code:
if (obj != "finished") {
 var cmd = "finished = ("+obj+"== target3)";
 ggbApplet.debug(cmd);
 ggbApplet.setErrorDialogsActive(false);
 ggbApplet.evalCommand(cmd);
 finished = ggbApplet.getValueString("finished");
 if (finished.indexOf("true") > -1) {
   ggbApplet.setVisible("step3",true);
 }
}
Failing code:
function checkpoint(target,step){
if (obj != "finished") {
 var cmd = "finished = ("+obj+"== "+target+")";
 ggbApplet.debug(cmd);
 ggbApplet.setErrorDialogsActive(false);
 ggbApplet.evalCommand(cmd);
 finished = ggbApplet.getValueString("finished");
 if (finished.indexOf("true") > -1) {
   ggbApplet.setVisible(step,true);
 }
}
}

checkpoint(target3,step3);
 
@XCritics onmouseout did it, right?
Wasn't sure what exactly you wanted
 
@Sebastian Y U USE IMAGE AND Y U PHP IN JAVASCRIPT ROOM????
 
12:22 AM
@lawm y u caps
 
@Johann because its mimicking a meme
 
I need to use an icon and text.
 
@AmaanCheval jsfiddle.net/gfZ5C/166 yeah worked fine thanks
 
(need a restart, 2 mins)
 
12:28 AM
Maybe its better to use javascript to validate input. Im fairly new so im wondering whats the best alternative for this.
 
(back)
 
never just use js for validation
 
@rlemon ok
@rlemon Is it okay to echo the image and text ? Like this echo "<img src=\"/images/error.png\" title=\"Error\" alt=\"Error\" />";
 
idk, do w/e you want
 
@Sebastian why not just learn Node.js :)?
 
12:37 AM
@rlemon Alright well thanks anyway
 
@rlemon we playing on your server or mine
ok i thinbk im going into withdrawal
 
-9
A: Getting closure-compiler and Node.js to play nice

RaynosOption 4: Don't use closure compiler. People in the node community don't tend to use it. You don't need to minify node.js source code, that's silly. There's simply no good use for minification. As for the performance benefits of closure, I personally doubt it actually makes your programs fast...

haters gonna hate :(
 
What are Preparation A through Preparation G?
 
@SOChatBot ..
 
1:00 AM
Hi
 
@MikeBoutin hi
 
how are you ^^
 
general question - Does anyone here know perl?
good
 
can anyone tell me how to use properly "new CustomEvent" and call it correctly
 
@Raynos I like how you've got positive rep from that
 
1:17 AM
Wat perl is
 
I will, in fact, claim that the difference between a bad programmer and a good one is whether he considers his code or his data structures more important. Bad programmers worry about the code. Good programmers worry about data structures and their relationships. — Linus Torvalds
 
2:10 AM
@AmaanCheval I hate you.
2 hours...no use now.
I hope dream-you dies
 
@Zirak you are still not asleep?
 
No I'm fast asleep, as you can see by my lack of being here
 
They have nyquil bed time stuff now
 
2:31 AM
damn, Java max sucks at reporting file IO error
 
!!/s max sucks at reporting file IO error/sucks/
 
@XCritics Command s does not exist. Did you mean: bs, a
 
It does not really mention if the IO error is related to file permission or something else
 
@rlemon I totally expected to read 'the game' at some point (I already lost it there) but to my surprise, it never happened. I don't get the mindfuck ? whats at the upper right :D :D ?
I even turned my macbook in every angle to check other upper rights.. well .. if thats the joke... buuh mighty fun :p
 
hahahaha
 
2:46 AM
The object-oriented model makes it easy to build up programs by accretion. What this often means, in practice, is that it provides a structured way to write spaghetti code. [Paul Graham]
 
@zirak god I envy you so much I wish I could just sit down and write anything I wanted
Instead of being a help vampire
 
I'm not some sort of god. That's high-school level physics with elementary canvas. And yeah, I've worked with js for several years now.
 
How many years if you could ball park
 
Several
 
2:58 AM
I've only been doing it since I showed up in this chat (a month or so?)
I love the writing style of it and the data structures
So I will continue
@zirak I'm going to bed gl on sleeping
 
Gave up on that. Doing crappy simulations now.
Enjoy
 
I'll sleep extra hard, just for you!
Make a fiddle of the game where you hold space to fly over things and let it go to drop down, with randomly loaded obstacles to fly over and it's all about going they farthest and if you hit something you die (I think it was called ribbon) then ping me so I can learn from it :-) and on that note I sleep
 
nah, I'm gonna make balls bounce
 
expertsexchange is better than StackOverflow
 
@SOChatBot NO
 
3:22 AM
@zirak then pastebin them all and ping me them so I can learn from it thanks seriously gone now
 
0
Q: Roll your own widget factory

Joel CornettSo for practice with Javascript, I wrote this lightweight widget factory which is similar in functionality (okay, that's a bit of a stretch) to jQuery's UI Widget factory. I was hoping I could get some pointers as far as idiom usage and also if there are any glaring problems with the below code. ...

 
4:39 AM
hllo
 
@XCritics Not very well done: tinker.io/991c7/1
Mostly ad-hoc physics I vaguely remember and don't have the enthusiasm right now to look up
 
@Joe 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.
 
@Loktar Critique on the above? Or rather, reference to something better?
 
@SomeKittens we might aswell finish filur :-> it'd be helpful for both dormless and tapeer
 
Perl is written in base64
 
5:01 AM
Hey Esailija
 
hi
 
5:28 AM
Hi all :)
 
hi, welcome
 
@Darkyen Why don't I have a purple nail polish?
 
Cause you have a red one
 
You're right.
 
lol
 
5:37 AM
Actually, I have like 25 colors. But no purple. :(
 
?
I thought this page was about Javascript :P
 
NOW IT'S ABOUT GIRLS.
 
Interesting, that we discuss about NailPolish ;)
 
@Darkyen How many colors do you have?
 
5:41 AM
0 i am a boy
 
hahaha!
 
@BadgerGirl ResponseHeader(303, @KirstyHarris)
 
@Darkyen I don't care how many she has. I want to know how many you and the other guys have.
 
most probably 0
 
I'll get you one on your birthday.
But you have to get me a purple one.
 
5:47 AM
Get me a geek shirt, i will get u a purple one .. deal ?
 
No. I'll go to sleep now. Bye.
 
lmao... okay GNight
#you kinda need it
 
When there is no type hierarchy you don’t have to manage the type hierarchy. — Rob Pike
 
@Darkyen : You need something too :P
 
@SunnyRGupta i just need nappa
once i find him i will blow up this planet :D
 
5:58 AM
Lol... get some sleep;
 
6:11 AM
Nah dude
i am fine
!!/hang e
 
  +---+
  |   |
  |
  |
  |
__+__
e
-e----
 
!!/hang a
 
@Darkyen tell
+---+
| |
|
|
|
__+__
a, e
-ea---
 
awesome :D
!!/hang r
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, e, r
-ea---
 
6:12 AM
!!/hang b
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, b, e, r
-ea---
 
:[ me loseee
!!/hang s
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, b, e, r, s
-ea---
 
!!/hang i
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, b, e, i, r, s
-ea---
 
6:13 AM
!!/hang t
 
@Darkyen Y U NO MAEK SENSE!? Could not understand hang t (perhaps you meant to execute a command? If so, prepend the command name with a /)
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
a, b, e, i, r, s, t
-ea---
 
!!/hang f
 
@Darkyen You people suck. The phrase was weapon
 
:[ yeah i need sleep
!!should i sleep or work
 
@Darkyen You should sleep
4
Q: Is moving common js code to functions prevented by reliance on the closure?

MarkThis might be a stupid question, but I can't seem to leverage google because of all the "Closure 101" links... In summary, given duplicate code that relies on the closure context, is there a way to de-dup the code into a function call while still having the new function rely only on the closure ...

 
PGB
6:35 AM
hello, can anyone tell me how to create rectangle in html5 and javascript with line and also applying eventlistener on the shape like roatating it with drag.
 
@PGB why was this flagged for moderator attention?
@PGB simple rule of the internet: if you dont want your stuff on the internet, dont post it on the internet. It's not moderator duty to clean up any "sensitive" project information you reveal here in the first place. Dont frigging post it if it's so sensitive.
 
@Gordon what was ?
 
@Darkyen nothing. just people mod flagging for no reason.
 
i feel ur pain :-(
 
anyways, laters …
 
6:51 AM
see ya
 
What's the difference between EcmaScript and CoffeeScript ?
 
@SOChatBot the same difference between food and shit :D
 
7:09 AM
 
7:33 AM
@Darkyen What you're saying implies that CoffeeScript is digested EcmaScript.
 
7:45 AM
@OctavianDamiean Nope. Poop isn't the digested part, it's the part that isn't good for the body so it's thrown out
 
7:55 AM
@FlorianMargaine It was the food after it went though a full digestion cycle.
 
no
most of the food is used by your organs
only the trash is pushed back
i.e., poop.
 
Yea but that trash didn't spawn in your intestine, it got there by eating food ...
Of course it is the part which is waste but it still was part of the food you ate.
 

« first day (927 days earlier)      last day (4022 days later) »