« first day (962 days earlier)      last day (3987 days later) » 

1:00 PM
damn they sell (bb/pellet) guns
 
can you ship them?
 
I don't see why not
 
@HiteshJain 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.
 
it is right or wrong $('#scanfieldId').on('input', function(evt){...some code...});
in that particular code i want the current event object to get the keycode
 
@HiteshJain have you tried it?
 
1:05 PM
Not sure if input is a valid event
 
yaa
event is not valid for this
 
@HiteshJain so what is your real question? when you tried it did it work?
what are your concerns?
 
i want to call some code on the update of value of textbox
 
ok. and what have you tried?
@phenomnomnominal dx.com/p/…
must buy
 
Is this a readable pattern?:
(function recurse(next){
  if(!done){
    ajax(...).then(recurse)
  }else{
    next()
  }
)(function(){
  ...
}))
 
1:09 PM
ok
 
strange, but readable.
 
thanks
 
would be more readable if you were not passing in an anon func
 
@JanDvorak not really, I find it readable but the average programmer probably wouldn't
 
Is it better than stuffing the next body directly within the else branch?
 
1:10 PM
but I suppose that was teh point.
 
@JanDvorak what are you trying to do?
 
Load x pages of content, then manipulate the content (run some statistics)
 
@JanDvorak I'd probably use async
 
also, @BenjaminGruenbaum I don't like this philosophy. We dumb down our code 'readability' too much it seems. Don't cater to the novice, cater to the experienced. They are the people who should be maintaining code written by experienced developers.
 
@rlemon Of course, I fully agree with that. What I said is that the average experienced programmer wouldn't find it readable. Most JS developers, even with years of experience aren't used to that style of code
 
1:12 PM
key word, should
 
Is there a CDN for that? I'll take a look
 
I disagree. I think an experienced js developer would get that in a snap. but we both just agreed we both understood it, so at this point we're assuming how dumb/or how not dumb people can be.
 
function loadPage(pageNum){
   // do some loading
}
var actions = [];
for(var i=0;i<10;i++){
   actions.push(loadPage.bind(null,i));
}
async.parallel(actions,function(allResults){
   //stuff here
});
@rlemon Your job isn't mostly JS. In practice, most programmers are bad, especially in JS.
Most programmers don't go on sites like SO, read coding blogs or code in their spare time for fun.
 
I want the loading to be sequential.
 
so cater to the retard who is in over their head? I still don't agree we should be bending over backwards or even caring to support these individuals (unless that is, they are willing to correct their mistakes)
 
1:14 PM
@JanDvorak async.series then
 
interesting. programmer is to developer as bass player is to bassist?
 
@rlemon no, but you need to cater the guy who read 'the good parts' but comes from a Java background and still has a hard time understanding all of JS's awesomeness. These sort of people are usually the maintainers, not the awesome ballers.
 
There aren't many people who get to do JS as their main job
 
I don't remember the last time a C developer thought "Hrm, I'll make this less complicated for the guy who has to support this in 10 years but comes from a C# background"
 
1:16 PM
@phenomnomnominal I think there are, but I agree that there are also a lot who don't.
 
@BenjaminGruenbaum for my case, async.whilst looks good
 
@JanDvorak cool :)
 
> I don't remember the last time a C developer thought.
 
@JanDvorak you should check its source code, it does something similar to the pattern you described iirc.
 
@Loktar please tell me you are buying that tank!
I want it to chase around my cats but no water anywhere near by so it would be a waste
 
1:17 PM
where is it?
 
ugh, I pinged you
 
@rlemon Really? I've done some loops in the air to make my C# code look readable to people who are not absolute C# ballers.
 
check y opings!
 
ah got it
 
I'd like a one-argument version of async.doWhilst. Is there one?
 
1:17 PM
lol thats pretty cool
 
@BenjaminGruenbaum then you are few and far between.
most people just say "Well, if they don't know the language what the fuck are they doing supporting it"
 
too bad stuff from deal extreme takes like 8 months to get to you
id probably forget I ordered it by the time i got it
 
@JanDvorak what would test be?
 
@Loktar then it's like Christmas presents in july!
 
haha yeah
 
1:18 PM
i'm on like day 20 something
 
I love DX so much random stuff
nice!
 
playing with that dude with the moustache
 
Winter is coming
 
@BenjaminGruenbaum the return value of the callback
 
winter starts around day 20
 
1:19 PM
HOLY FUCK AT GAME OF THRONES. (speaking of winter)
 
@JanDvorak Just shim one
 
and it sucks
@phenomnomnominal haha I know right?!
My wife and I were still talking about it yesterday
like WTFFF
 
@Loktar DX?
 
dealextreme
 
1:19 PM
How can they just do that???
 
@Loktar so what you are saying is: collect as many effing flowers as I can now?
 
@rlemon yeah
 
Actually, refactoring to the two-function version would help. Thanks! :-)
 
if you are surviving off plants for food you need to switch to meat
 
@Zirak if I were a wallet fan I would totes go for that
 
1:20 PM
all the normal plants will be gone
 
@Loktar rabbits atm .
 
get as many carrots as you can
I had like 6 upgraded farms.. but they dont produce food in the winter
it was a tough winter
 
I've got like 20 ish carrots and 4 upgraded farms
 
I didnt survive it :(
I got to like day 29, Im not sure if winter is only 30 days or not
 
fucking spider killed me and so I already used my altar
 
1:21 PM
shitty
 
@rlemon It's just missing a coin slot
 
you can make a thing to res you
just gotta find clippings :
 
yea I saw that
took me like 7 days to find buffaloo
 
but the only way I know of getting them when your not the main guy is to get your insanity low, and kill a rabbit
 
took another few days just to find my first spiders
 
1:22 PM
yeah I hate when that happens
and beefalo are hard as hell to kill lol
 
I have so much of the map discovered.
 
also have you been digging up graves? You get diamonds
 
holy crap, flashCanvas actually works
 
yea, found a fucking ghost.
 
1:23 PM
Thanks for that, report writer. I didn't know what a sine wave looks like, til just now.
@BenjaminGruenbaum, your bounty isn't getting much attention!
 
@Loktar right now I need to work on getting spider webs
 
@phenomnomnominal I know, and I don't know what to do about it
 
I wish you could play as a 'team'
 
I've been pondering, and I just can't think of any other suggestions?
 
rlemon and loktar in Don't Starve!
 
1:25 PM
@phenomnomnominal That sine looks hand drawn.
 
@KendallFrey, I fucking know right? These are meant to be honours students.
 
@BenjaminGruenbaum Your earlier bounty got me 70 rep. I'm thinking of just updating Esailija's answer with the current code (minus bot) and accepting that.
 
I get that they have a lot of work to do, but man, put a bit of effort in?
 
@phenomnomnominal What about the reverse saw?
 
dx.com/p/… I have always wanted a horse mask
:/
 
1:27 PM
omg omg omg do they also have a lime costume?
 
@Zirak The point of this bounty was also to get a reference from some external source
 
@Loktar just tested my application, flashCanvas works perfectly for my use-case
 
@Zirak Less important than the square
 
pretty fast too, I didn't expect this to go so smooth
 
Oooh new game! What is everyones favourite function?!
dirac delta ftw
 
1:28 PM
conjunction junction.
!!/youtube conjunction junction
 
@phenomnomnominal $ :P
 
@phenomnomnominal Programming-esque function, or math/physics/stuff functions included?
I'll answer both with the Y-Combinator
That thing's just fucking beautiful
 
@Zirak, yeah free for all!
 
1 message moved to Trash can
 
1:32 PM
hrm. I should become a professional tattoo maker and tattoo the y-combinator on my back.
 
That was offensive to afternoons
 
@TheSnooker Morning degenerates to what? Evening?
 
Or you know. Go to a tattoo artist?
 
There's an obvious flaw in the plan...I can't reach my back.
 
@TheSnooker , *
Makes sense, you're 92.
 
1:33 PM
Need to make an extendible arm.
 
@Zirak You suck. Inspector gadget can.
 
2
A: WebKit browsers slow to update canvas

Simon SarrisWow. This gets weird. This has nothing to do with canvas. It has to do with your BinaryTime class. There's some difference in the functioning of the Date objects between at least Chrome and Firefox. The beginning and end are 1370318400000 and 1370404800000 in FireFox. Every time. Presumably thi...

shit like this is why I don't sleep :(
 
Maybe if I eat Mister Fantastic...
 
ridiculous differences between FF and Chrome Date objects
 
@SimonSarris nice
 
1:35 PM
@O0oO0oOO0ooO, that is so extremely frustrating.
 
@GNi33 nice
thats surprising!
 
@phenomnomnominal sorry, I haven't slept for a while now
 
@phenomnomnominal let's start counting the number of times he does that gist.github.com/Ralt/5705968
 
1 message moved to Trash can
 
so I cannot make logical decisions
 
1:37 PM
this will make him somehow bannable.
 
Guys, can I ask you a question?
 
Only if you promise not to delete it.
 
yeah, sure I pinky swear it
 
test
 
I have a dress code @ work that does not include fedora's
 
1:38 PM
It's not okay for Uncle Ned to touch you there.
 
according to my boss
I think that is very wrong
 
@Loktar yeah, I was pretty surpised too actually, and the rendering itself looks pretty fine. But as said, the whole thing is nothing too fancy
 
@phenomnomnominal vine.co/v/b3XZMHmxzxh
 
Saw it, so good haha
 
so basically
 
1:39 PM
@GNi33 can I seeee
 
I like the fridge magnet
 
you see this one vine.co/v/bEVQmInUHhF
 
is O0oO0oOO0ooO okok?
 
@Zirak need some help !
 
and I need to send this byte array to my recipent
 
1:40 PM
1 message moved to Trash can
@SimonSarris, nope, TemporaryNickName
apparently it was temporary so he could come up with that gem...
 
but the problem is this crap language does not have a method to let me send bytes, but it can only send strings
 
@SimonSarris sorry, not right now, NDA and stuff, but the page should launch in about 1.5 months or so
 
okok ≈ awkawk? like a baby seal?
 
@GNi33 kk
 
but really, the canvas - part is absolutely basic stuff
nothing fancy for anyone to look at :D
 
1:41 PM
@Loktar, wow, suddenly a lot less attractive.
 
how would format unsigned byte into string so clients who are expecting 8 bit unsigned bytes (0 ~ 255) to understand my data?
 
haha
 
@l2aelba And I'm the only one who can help you?
Ask your question, if anyone's interested, they'll help.
 
@Zirak Why my jquery script is so slow :(
 
1:44 PM
@Zirak I will give you an example
 
otherwise, I need to configure compiler again and let it send integers (binary) =/
 
If you get a chance to go see Frank Turner live, do it.
 
damn, I guess there's no answer
for this
 
@Zirak jsfiddle.net/l2aelba/LHMV8 I will only add some class to some element , why my code is so slow ...
 
@l2aelba, does it take like maybe, 10 seconds to run?
 
1:46 PM
@phenomnomnominal yes :( why
 
@l2aelba because you use jquery maybe?
 
10 is too slow
 
@l2aelba what do you think setTimeout does?
 
Your puny attempt to troll is puny
 
lol
 
1:47 PM
@phenomnomnominal thankssss you saved my life
 
That makes me very sad.
 
why not setTimeout(function() {}, ~-1);
 
Both that JavaScript makes you want to end your own life, and that I prevented that from happening.
 
posted on June 04, 2013

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); try { var pageTracker = _gat._getTracker("UA-3727700-1"); pageTracker._trackPageview(); } catch(err) {} Kelly and I were interviewed and arted recently. That's the high

 
i have tried both of these.
<script type="text/javascript" src="./jquery10.min.js"></script>
<script type="text/javascript" src="jquery10.min.js"></script>
jquery is in the same folder but still firebug keeps saying $ is not defined
 
1:53 PM
Damn... You can't put any kind of link in a SO answer ?
I can't put this one :
 
@blackbee you mean jquery-1.0.min.js ?
 
So! JS has been missing this since like forever.. one of those php gems we all love so much.
function die() {
    console.log([].slice.call(arguments, 0));
    throw "I iz dead Jim :/";
}
 
yes i changed the name to jquery10.min for a change
 
it's so cool - now I can php all up in my js.
 
I just figured out today
in Java7 you can now
try {
 ...
} catch( IOException | SQLException ex ) {
  logger.log(ex);
  throw ex;
}
pretty sick ye?
 
1:56 PM
@dystroy seriously? You want to put an archive.org link?
 
why are you talking about java?
 
@BenjaminGruenbaum Why not ?
 
do we look like we give a shit about java?
 
Because it is a cool feature
 
so tell the java peeps
 
1:56 PM
@O0oO0oOO0ooO You know, in JS you can do it too, forever.
 
@O0oO0oOO0ooO You could have done that for some time now
 
thanks for telling mr o's and 0's
 
@O0oO0oOO0ooO FF java even has conditional catches, they're pretty worthless though
 
@rlemon this is about link inclusion, I'm looking for js/html/markdown solution
 
@O0oO0oOO0ooO Java's exception system is completely retarded anyway, why the heck did anyone there think checked exceptions were a good idea?
 
1:57 PM
@dystroy [desc "title"](url) not working?
 
@dystroy It's an already dead link?
 
@dystroy Try wrapping it as an explicit link, i.e. [text](link)
 
@Zirak Tried that
 
[text "title"][1]


[1] "http://web.archive.org/web/*/http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html"
something like this?
 
@rlemon Doesn't work, because markdown seem to be confused with the http:// thing. But I'll try escaping it...
 
1:59 PM
 
"*/" is escaping it
hahahaha
 

« first day (962 days earlier)      last day (3987 days later) »