« first day (1067 days earlier)      last day (3885 days later) » 

12:00 AM
@rlemon woah, pal, that's pretty nice.
 
@BenjaminGruenbaum The only thing I could do is deleting the whole answer. So a meta post might be the better way.. or trying to reach the OP to unaccept it
 
@Zirak Is it possible to test bot commands from the console? (I loaded a bot and then did bot.stop() to stop it from actually responding)
 
@Retsam bot.execCommand
 
@Doorknob The issue is the second argument isn't plain text, I don't think.
 
12:03 AM
does this look better than /6 ?
 
It's some sort of message object, that I'm not sure how to correctly construct.
 
err /5
i suppose
 
@rlemon woah, that looks awesome, but the leaves are kinda blocky
I definitely like it more than /5, but the leaves look odd.
 
Hmm... is there a way to learn a command so that the reply isn't directed at anyone?
 
@Doorknob jsfiddle.net/rlemon/UASxW/8 I made a version just for you
 
12:14 AM
@Conqueror 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.
 
@rlemon wow, you're a JS wizard :O
 
@Rik 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.
 
12:31 AM
Well, spammed the sandbox with xkcd images to test it, but I think my extension to the SO bot works.
Mostly...
 
Hello guys one question. I have a code which triggers on button click. It changes the image src attribute. Now what i would like to know is how to detect when image with new src attribute is loaded and fade it in on load.
 
ok i'm done with the random pings for now
ok guys i'm done for now
 
12:50 AM
@Retsam Hit bot.activateDevMode() , change bot.invocationPattern, and check stuff in sandbox.
Or you can mess around with bot.adapter things, but that's a bit ugly. I might add that mode somewhere...
@xoemab I wasn't, but there're other people. Ask your questions, you might get answers, and even if I wasn't here, I'd still be able to see them and maybe answer later.
@SomeGuy That was awesome. Not many people can put a "my mother killed herself" in a comedy routine.
 
I know you want to chop down my trees zirak. maybe make some platforms... maybe a chest...
 
@rlemon pretty cool, but I think making them so small you cover up a lot of the work you did
 
@phenomnomnominal meh
that 1k one impresses me WAY more
 
1:05 AM
@phenomnomnominal that's been mentioned in here already
 
js1k depresses me
 
whys that?
 
@Loktar holy FUCK.
 
Because it's so, so awesome
 
@Loktar check the codepen one
 
1:05 AM
I know, it's just so amazing
 
@phenomnomnominal I posted that in the comments on reddit too @phenomnomnominal
wow double ping lol
 
they are at the limit at which I think they lose clarity
 
anyway I think its so kickass
they look good @rlemon
 
I took so much pride in being able to make a collision game in 666 bytes, and these people generate realistically-lit tunnels.
 
lol
 
1:07 AM
^ this
I just don't have the capacity to think like that
 
i'm over here cracking a beer in celebration and dancing around in front of the GF because I made some effing trees. :/
 
Dancing around in your underwear, I hope.
 
idk, I just think of an idea
and then try to put it into 1k
 
no, Canada, it's cold.
 
thinking of the idea is the hardest part
 
1:09 AM
@Loktar fish.
fish fish fish fish fish fish fish fish
 
thats still my fav one I did
the game I did is pretty fun too, but not crazy amazing
 
Do you minify it by hand?
 
The "putting it into 1k part" is kind of difficult. I'd go nucking futs implementing chess for instance...and then they put it into 1k. Full with AI.
 
ish
I minify as much as I can
and then throw it into google closure compiler to squeeze more out
@Zirak haha yeah the chess one was badass
thats my game ive probably posted it
I plan on making a full vs of it one day..
 
It's an awesome one
 
1:11 AM
yeah the chess one blew my mind
@rlemon jsfiddle.net/rlemon/UASxW/5 I like that size better
 
The above message was for your small game
 
@Zirak oh ty :P
why did you make the codepen ones so small?
 
Maybe he wanted to make other things look bigger
 
@rlemon You might want to look into restricting the branch angles of the first one or first few branches. Some trees look too quirky
But kudos for them, they're pretty awesome.
 
1:27 AM
@baltusaj 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.
 
@rlemon yeah they look good.. now you need to change the leaf angles :P
 
@Greg 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.
 
    foliage: function (seg, context) {
        var rot = ~~ (Math.random() * 180);
        context.save();
        context.beginPath();
        context.translate(seg.endX - 3, seg.endY - 3);
        context.rotate(Math.PI / rot);
        context.rect(seg.endX - 3, seg.endY - 3, 6, 3);
        context.fillStyle = Math.random() > .5 ? this.foliage1 : this.foliage2;
        context.fill();
        context.closePath();
        context.restore();

    }
damn indenting
 
1:53 AM
this is a javascript room or not a javascript room?
 
@Greg Yes
 
With a physics simulator, how do I make the code run at 'human' speed?
I have a variable 't' going from 0 to 10 seconds, and the code should also run for 10 seconds. Trying to implement this in Javascript
 
Reply hazy try again
 
@Greg answer: trees
 
2:08 AM
this did the trick
window.setInterval(function step(){
if (i<100){
var c = paper.circle(100+vx*i,100+vy*i+0.5*ay*i*i,r);
i = i+.01;
}
},10);
 
@Loktar jsfiddle.net/rlemon/YQvwh/2 I know you like large version, but small ones perform so much better
and have more practical applications in html5 games today
 
@rlemon I guess, but at that size you dont really need the generation much
 
no, but it is still cool.
and I can't figure out how to optimize the other way much more :P
 
I saw that as a pick
everyone is tree crazy today
 
@rlemon Could you add a small delay between each generation/tree, even a 1ms, so the user can see the progress?
 
2:18 AM
@Zirak yea, I could.
 
I wish setImmediate was more widely supported.
And by "more widely supported", I mean "anything but IE". It's one of their good innovations.
 
damn, I suppose adding it in steps isn't as easy at this point as I thought
i'll do it tomorrow
 
@Zirak Just use postMessage
 
Yeah, but that's really hacky, and it messes with the legit post-message listeners.
setImmediate is much cleaner
You know...Crockford sometimes just makes you lose some respect for him: github.com/douglascrockford/monad/blob/master/vow.js#L50
 
@EliHuebert 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.
 
2:43 AM
option to see small / large versions
late now
night all
 
What if there was a bridge...between England/New Zealand to another country.
How would you switch sides?
 
3:03 AM
I can think of two ways.
One is to do an X in the middle, where one lane switching is a bridge over the other.
The other is to make two bridges.
With the output being a one-lane street
So you'd have one bridge leading to an only-turn-left street, and the other to an only-turn-right one.
Of course, that'd be for both sides.
There's a weird echo here...
 
My boyfriend is showing me his invisible penis.
 
Not any more I am not
 
Okay
 
That's a weird way to say you're gay
Does copy know?
 
Who is copy?
 
3:12 AM
@SomeGuy
I think he's a stalker.
 
What a weirdo
@BadgerGirl Breaking Bad?
 
@copy Yes
 
Aye
 
Ready
 
Evening
 
3:16 AM
Afternoon, m'lady.
 
@copy Gesundheit
 
A reasonably interesting question on programers programmers.stackexchange.com/questions/211713/…
 
3:54 AM
ok, I'm emailing Crockford, asking him what he thinks of comma-first styles. If I don't come back, don't believe the suicide note.
 
        if ($("#CourseSet option").length > 1) {
$('#CourseSet option:eq(1)').trigger('change');
            $("#nextCourse").show('fast', function() {

                $(document).off('change', '#CourseSet');
                $(document).on('change', '#CourseSet', function(event) {
i set a trigger event to the first option but it doesn't work
still i need to fire change event manually
 
posted on September 17, 2013 by coltmcanlis

Reduce your page size by looking under the hood of image compression.

 
@Zirak You like/dislike/don't care about comma-first style?
 
@copy I really want to not care about them, but I can't get myself to not dislike them.
 
4:09 AM
I can't get myself to have an opinion on trivial things
 
why crockford
 
Because I'm interested in his opinion. He promotes "use what you can to combat bugs", and since comma-first was invented to combat a very specific bug, it should fall right into his ball park. Yet, he doesn't seem to accept it in JSLint or use it in his own project.
 
I hate that guy, especially stuff like yuiblog.com/blog/2006/11/13/javascript-we-hardly-new-ya
"never use new Array" wtf
never use new Function
like who does that and then needs that advice in the first place
 
He amassed cargo-cult fans, definitely, and his opinions are sometimes weird. But he's sharp.
I like him because even though he's a dick, he earned that right.
 
4:32 AM
Hi
how can we work with the existing database...I'm using this first time with database
i tried like this but its not working...is this is the correct way to retrieve data from database
var DB_NAME = "database";
var DB_VERSION = "";
var DB_TITLE = "";
var DB_BYTES = 50 * 1024 * 1024;
var db = openDatabase(DB_NAME, DB_VERSION, DB_TITLE, DB_BYTES);

//Retrieve Rows from Table
db.transaction(
function(tx) {
tx.executeSql("SELECT * FROM Data;",
[],
function (tx, results) {
var len = results.rows.length, i;
 
@VyacheslavEgorov hi :P
huge fan
 
oh he left ;d
 
4:53 AM
0
Q: print a web page with logo but logo dispaly in printed document not in screen?

Jassi Singhi have sales report i want to print it with logo. but i do not want to shown in the screen should logo shown in the printed sales report i m using javascript to print a particular div from a page <script type="text/javascript"> function PrintDiv() { var divToPrint = document...

 
5:43 AM
@cmertayak 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.
 
5:58 AM
!!snow crash or extra credits
 
@SomeKittens snow crash
 
user1125394
already snow..
 
6:25 AM
@SomeKittens the genius they are thinking ?
is that a jet engine ?
 
6:39 AM
Why is this labeled not javascript?....
Anyways... Any of you know of a good PDF viewer and Annotator in jQuery?
or something...
just highlight and comment
I took a look at pdf.js but no annotation support
 
@CapricaSix Hi. Good Morning.
 
@KumarGaurav Caprica six is not real
You know that right?
 
@BrandonGelfand she is real
just not human
 
You have a point there I suppose.
@JanDvorak know of any good PDF viewer and annotator scripts?
 
@BrandonGelfand I dint know. Is it true?
 
6:47 AM
@BrandonGelfand not for javascript
 
@KumarGaurav It's ok I thought Caprica Six was a person too.
@JanDvorak Not JS, looking for jQuery
 
!!tell brandon define jquery
 
@phpLover 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.
@brandon It means I aint got time to learn your $5 words
 
0
Q: How to display Colorbox popup in "jQuery ajax() Method" in following scenario?

phpLoverI'm using PHP, Smarty, jQuery, AJAX, Colorbox - a jQuery lightbox, etc. for my website. There is some old code done using jQuery AJAX method to display the message in popup using standard jQuery library functions. Now I want to replace that typical popup using Colorbox popup. In short Iwant to ch...

 
!!learn robot me-robot
 
6:49 AM
@BrandonGelfand Command robot learned
 
!!robot
 
@BrandonGelfand me-robot
 
See @KumarGaurav
 
@BrandonGelfand don't want to spoil your ideals, but jQuery is javascript
 
@CapricaSix: I've put my issue. Can you help me in this regard?
 
6:50 AM
@BrandonGelfand uh. no "me robot" would be indians native americans or aliens, not robots
 
@BrandonGelfand Thanks for letting me know.
it surprised me.
 
!!forget robot
 
@JanDvorak Command robot forgotten.
 
@phpLover Caprica Six is not a person
 
Okay!
 
6:50 AM
@BrandonGelfand sh... don't spoil the fun
 
Can anyone help me in resolving my issue?????
 
No, you like PHP, go ask them then
 
I gone there
but they suggest me to come here.
 
@phpLover Remove php and switch it to JS and we will help you ok? So make your name JSLover
ok?
Then, and only then will we help
 
ok
 
6:52 AM
 
Come back when its changed
 
then he/she will help :D
 
@NullPoiиteя Lmao
 
@BrandonGelfand: I've changed the name to JSLover
now please help me.
 
chat still says phpLover
 
6:54 AM
Your SO chat profile still says phpLover
 
but i've changed it to JS lover
plese do refresh your page
 
chat is different from so
maybe not
weird
Alright
 
yes
now help me
 
So what do you need help with?
 
now... what was the question?
 
6:56 AM
0
Q: How to display Colorbox popup in "jQuery ajax() Method" in following scenario?

JSLoverI'm using PHP, Smarty, jQuery, AJAX, Colorbox - a jQuery lightbox, etc. for my website. There is some old code done using jQuery AJAX method to display the message in popup using standard jQuery library functions. Now I want to replace that typical popup using Colorbox popup. In short Iwant to ch...

Can you help me in this?
 
Looking, give me a minute
 
ok
 
Ok, I have the answer
You must first solve me riddle to get how to do it though
Ok?
If you solve the riddle I will give you the answer to your problem
 
ok
 
Three witches watch three Swatch watches. Which witch watch which Swatch watch?
 
7:03 AM
i don't have the answerr for it
 
Then I can't give you the answer to your problem
Sorry, try again
 
ok bye
 
@BrandonGelfand were those witches watching Swatch watches swiss witches?
 
@JanDvorak No they were Western Sahara witches watching wallis watches
JSLover if you want to fix your problem I will give you another chance
Would you like another chance?
 
in colorbox, 2 mins ago, by phpLover
0
Q: How to display Colorbox popup in "jQuery ajax() Method" in following scenario?

JSLoverI'm using PHP, Smarty, jQuery, AJAX, Colorbox - a jQuery lightbox, etc. for my website. There is some old code done using jQuery AJAX method to display the message in popup using standard jQuery library functions. Now I want to replace that typical popup using Colorbox popup. In short Iwant to ch...

 
7:08 AM
@SathishD 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.
 
@SathishD Caprica can help you
Talk to her
 
@user11111111 if you need to freeze the browser for a while, I suggest using synchronous javascript rather than alerts. You can control the delay this way (up to network delay jitter). — Jan Dvorak 14 secs ago
 
@BrandonGelfand @SathishD Do you need help with something?
 
reload()
when i add his function to onlick event
it's fire
but firefox asked a confirm alert ?
 
7:17 AM
@samitha Caprica Six can help you, ask her
 
how i restricted it ? @JanDvorak
 
@BrandonGelfand samitha do you need help from me??
 
reload()
when i add this function to onlick event
it's fire
but firefox asked a confirm alert ? how i restricted it ?
@CapricaSix
 
@BrandonGelfand Well since you think I am real, you don't deserve help, do you honestly think I am a living, breathing, human being???
@brandon stop abusing me!!!
 
7:22 AM
Sorry, but it is funny @JanDvorak
Can I just do one last one @JanDvorak
 
@BrandonGelfand no
 
Fine :/
@JanDvorak do you know of any HTML5 PDF annotators?
 
@AnandJaju 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.
 
36 mins ago, by Jan Dvorak
@BrandonGelfand not for javascript
 
thank you..
 
7:24 AM
@AnandJaju Ask Caprica ALLLL your questions
She is a very smart lady
 
@BrandonGelfand: Caprica Six is not a person
 
@BrandonGelfand stop trolling!!!
 
Ok, I had my fix @JanDvorak
 
once more and I'll flag you
 
@JanDvorak: Thank you for warning Brandon.. He was so irritating to other develpers also.
 
7:30 AM
@BrandonGelfand just a slight amendment: You may troll help vampires (after they show off. Just posting a question link is not vamping)
 
Woot! Ok, thanks :D
@AnandJaju I dont do it often, but this help vampire thought Caprica was real so I trolled him pretty good, pushed my luck and went to far with others though
 
@user2617804 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.
 
hello @all
i am sam from india.
@JanDvorak
hw r u?
 
hello
 
:)
 
7:41 AM
fine, thanks
 
i have started developing mobile apps.
by using jquerymobile for the ui.
 
I have heard only bad about JQM
 
someone has suggested me to make a global.js file where i can keep all variables to use them globally through the app.
can anyone guide me on this.
thanks.
 
you mean, on javascript's variable scoping?
and lifetime
 
yes
exactly
and also how to retreive them in classes.
thanks
 
7:49 AM
javascript doesn't have classes. Depends on how you implement them (there is a standard way, though)
 
ok.
thnaks
thanks
 
Javascript has function scoping - variables are identified by a function invocation and name
variables come into existence when a function is called, and die when they are no longer visible (which happens no sooner than its defining function returns)
a variable is visible within its defining function and the functions defined within it.
if a variable is used but not declared within a function, the one from the surrounding scope is taken. If it's not declared anywhere along the path, reading it fails
variables declared outside any function reside on the global object, aliased as window in browsers
 
@Ashok 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.
 
technically, variables are properties of an "activation" - an anonymous object that is created when a function is called
variables can be defined with var, as function arguments or with a function declaration (and possibly by other means which I intentionally don't mention)
 

« first day (1067 days earlier)      last day (3885 days later) »