« first day (1121 days earlier)      last day (3810 days later) » 

8:01 PM
youtube.com/watch?v=3ZzoB6xBWOI that man got some balls
 
@AbhishekHingnikar I don't want to be the glass pane
 
@JanDvorak lol
at that range a lucky shot would have rendered him fatal
 
@AbhishekHingnikar in which case they can retry with a new boss
 
lol
@Loktar ^ your expert advice on that video
 
@SomeGuy I don't play the clarinet, but I occasionally play the saxophone. I want to take lessons to brush up, once I have the time / money.
 
8:25 PM
Free node.js hosting? Anyone know of any companies that do this?
 
@NoahHuppert nodejitsu, azure, etc
 
nodejitsu only 30 days
 
heroku?
(Honestly, I don't really mind paying 5$ a month - it's not that much money)
 
Well I have a php mysql server but I want to keep that. So if I could just forward a subdomain to an obscure site that would be nice
 
@BenjaminGruenbaum random question, but is English your native language?
 
8:30 PM
@mikedidthis No, it is not. I lived a year in Baltimore when I was 12 if that's an excuse.
(I don't think I have good English though)
 
@BenjaminGruenbaum Ahh ok. Well you do. You are very good at putting a point across, without being forceful.
 
Thanks. I'm pretty suresome none natives here have much better English than me.
 
I just finished reading this: i.stack.imgur.com/elJPV.jpg for context.
 
Yeah
@mikedidthis Huh?
When did that happen?
Oh yeah, I remember that. When did Florian share this here :O?
 
@BenjaminGruenbaum I asked about riot.js, he tried to show me a link on fb. I don't have fb, so he screen grabbed the conversation.
 
8:35 PM
Ah, I never figured out people from this chat read this :S It's the Israeli JS group. I ended up having a discussion about riot with another guy (Gil) for an hour over the phone. I think I convinced him too.
(For the protocol, when I say in one of our conversations - Resig has said that to me again after he said that to the room, following a "There's a quote of you I like", and we have talked several times so I was not being an a-hole there :P)
 
It just showed up on my feed :p it's an open group so when you comment it shows up on my feed
 
Nah, I didn't think you were being an asshole at all. It was a well put argument. You gave advice, but also suggested he try it.
@JanDvorak thanks :/
 
Thanks, I'm glad you liked it. Those are real people I can't afford being an asshole to them :P
@mikedidthis Generally, I try not to rule out frameworks or technologies - that got me nothing positive in the past.
Not trying a library because someone told you not to is silly. I even tried dart :P
 
@BenjaminGruenbaum Correct. But this is the internet. Most people have an opinion and like to force it (myself included sometimes) so it was refreshing to see.
 
@BenjaminGruenbaum What's wrong with Dart?
 
8:40 PM
@JanDvorak Have you tried it?
 
no
thus my question
 
If you just want ammunition to flame fans with you're not getting any. Try it, seriously, it's not hard to get and try.
It's worth a shot.
 
ok :-/
 
I felt like it slowed me down, a lot. Like switching from a dynamic language to a static language. It has lot of interesting cool stuff but it also lacks. I'm less rapid with it.
 
8:42 PM
and no, I don't like flame wars
 
yeah me neither. Preference is not the same as better.
 
somehow I think optional static typing has its merits
A good programmer considers his data more important than his algorithms. I like to have a place where to write the data structure.
 
@JanDvorak I completely disagree with that PoV, and the arguments people raise for it. Then again - I only read Torvalds defend it, haven't really went deep.
If people really care about their typing they should use Haskell. Other languages just lie in their typing :P
I love interfaces, they're the one feature I like about TypeScript
 
0
Q: Bouncing off a circular Boundary with multiple balls?

AnarkieI am making a game like this : Yellow Smiley has to escape from red smileys, when yellow smiley hits the boundary game is over, when red smileys hit the boundary they should bounce back with the same angle they came, like shown below: Every 10 seconds a new red smiley comes in the big circl...

 
ok, it's not as much strong typing I want as it's a place where I can officially define my types. I love ducktyping when writing algorithms, but I'd like to be able to have (not neccessarily use) explicit types.
 
8:47 PM
I think the point is to discourage complicated code because the dev is only capable of using [] and {}
 
@Esailija Point of what?
 
nothing to do with typing
 
@AbhishekHingnikar holy crap man..
 
@JanDvorak Yeah, that's useful.
 
it's better to have right data structure than doing it with arrays
 
8:49 PM
@Esailija JS Arrays aren't arrays, they're lists, stacks and queues and using them for any of those data types is legit IMO. JS Objects are just objects, they're useful for describing types. TBH I'd love to have map and set literals like in Python - it's super useful there.
 
I still like anonymous types as well
 
^ I love them, they make me go so fast
If you need bigger data types you need to implement them anyway - there is no way to make an object literal or an array to represent a heap, or a red-black tree.
 
@Loktar yeah thats exactly what i said
when the guy actually shot 3 rounds in quick burst
 
(and please don't be pedant and tell me you can, I know you can, just not directly)
 
i thought the third one broke through almost
it'd be funny though if it did hahaha yeah i am an evil
 
8:52 PM
I'd love to have more canonical JS collection classes. Map and Set are a nice start. I'd love to have more things as the base class library.
 
@AbhishekHingnikar not really. Yeah, you are evil.
 
:D
@JanDvorak you know my biggest inspiration these days ?
 
yes it is good if you recgonize a data structure and implement it -- but the point was that you don't recognize and instead create hack work-around code with arrays
 
@BenjaminGruenbaum what about existing libraries?
 
good example is sorted set implemented as array that is manually checked for uniqueness and sorted
 
8:53 PM
DEAAAAAAAAAD POOL babeh
 
I have a really unpopular opinion where I think the browser should precache (and possibly pre-compile and optimize) popular libraries from CDNs, so popular libraries come for free and developers are more willing to use them since they don't have a time cost.
 
@BenjaminGruenbaum its a quite popular opinion good sir
 
For example, there is no reason for jQuery being loaded from the CDN and then being susceptible to hard refreshes etc if 20% of the sites I use use it.
 
i guess some part of jQuery 3 will be written with asm.js (for optimal performance)
 
@BenjaminGruenbaum "favoritism"
 
8:54 PM
Underscore, Q (or Bluebird, don't kill me :P), etc.
 
Q is amazing !
 
no it isn't :d
 
Q's error handling is from stone age
 
yeah :-( you dream breaker
meany
 
8:55 PM
@Esailija A sorted set seems like an abomination to me in the first place, most use cases I've seen for a sorted set were people not knowing how to use better data structures. It's surprising how everyone knows sets and binary trees but not heaps. They're as simple.
@AbhishekHingnikar You know @Esailija wrote a Q clone that gives real stack traces and is faster right?
 
sorted set is most popular redis data structure by far...
 
@BenjaminGruenbaum i respect you but man you can't remove deadpool
 
I mean you might as well use memcached otherwise
 
he'd come out of comic world and kill you
@BenjaminGruenbaum thats why i was picking on him :3
 
8:56 PM
@Esailija Oh, in databases it makes much more sense than in most algorithms I see them used. I'm not saying it's not useful, I'm saying it's more abused than used correctly from my experience.
 
// if i make no sense just ignore i am not making sense to me either
 
I'd love for algorithms to figure out the better data structures on their own though. Sadly that's many years ahead of us.
(I'd also like ORMs to optimize queries on the fly :/)
 
Just got free tickets to this: venturebeat.com/events/devbeat2013
 
@SomeKittens Awesome!
Sounds great
 
Looks like there'll be some cool node talks
as well as opportunities to brush up on my high-level PHP
 
9:04 PM
Yeah :)
 
@SomeKittens you get to see DHH. Jealous.
 
I kinda like this kinda minimalistic design :$
but damn i can't keep it like that :-(
 
9:43 PM
Anybody have much experience trying to write HTML5 games using cordova? I think I'm expecting way too much of Android's web view canvas implementation.
Well not anymore I'm not. Now I'm expecting it make me sad and regret having wasted time trying to mix HTML/CSS for UI and canvas for animation and stuff.
 
@ErikReppen Currently writing <canvas> game if that helps
 
In a browser or for mobile?
@SomeKittens Everything's great in a desktop browser.
 
@SomeKittens wow, quite some celebrities there
 
ah, only desktop
@FlorianMargaine I'm excited.
 
'meh I just have more to learn. Didn't even try implementing a main-loop for animation since it's just turn-based.
Cordova's not bad for basic web apps using HTML though. Just have to keep everything real clean.
 
9:50 PM
@ErikReppen if you're doing mobile dev, take a look at this: youtube.com/watch?v=x6qe_kVaBpg (starting 11:45)
 
Anyone know how to deal with a node.js terminal that isn't "responding". When you type something it will show up but it will not run and the typical username@nodejs: doesn't show up either. Ideas?
 
Guys, I need help making a SQL query that displays the time since the last answer... For example," the last answer was 24 minutes ago". The current output for 'lastreply' column is "2013-11-07 17:51:50".. Someone knows any tutorial to do this?
 
@NoahHuppert the Node REPL?
 
@FlorianMargaine Yay!
 
9:53 PM
@ErikReppen Yeah. The extension is quite awesome.
 
@FlorianMargaine Thank for pointing it out. That looks really handy.
 
@NoahHuppert This happens whenever you start it?
 
@SomeKittens Using Cloud9 and the built in console is doing this. If I open up another console it works fine. But since its the main one in a nice position I would like to get it working again. Built in console: i.imgur.com/Jgsqj0I.png
 
@MarcinGawel 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.
 
ah, I'd file a bug with them
 
10:00 PM
Looks neat ?
 
Nice
 
ps how do i force disable chrome from autofilling :-(
 
@AbhishekHingnikar Wrench icon --> Options --> Personal Stuff --> Autofill --> uncheck "Enable Autofill to fill out web forms in a single click" Credit: Google
 
610
Q: How do you disable browser Autocomplete on web form field / input tag?

Brett VeenstraHow do you disable Autocomplete in the major browsers for a specific input (or form field)?

 
mhm i gotta type it every form eement :-(
oh wait i can do it on form element and it remembers awesome !
@SomeKittens i love you !
 
10:02 PM
Two lines: $('input').attr('autocomplete', 'off'); technicalDebt++
 
By that logic, everyone here has a hidden passion for PHP
3
 
Also, I don't know if GIMP got better or if I just got better at figuring out how to use it but I don't miss photoshop at all.
 
@FlavienBert 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.
 
10:21 PM
Is it safe to split this on the 4th space and use the string before? Sat Nov 09 2013 22:21:01 GMT+0000 (GMT) so i get Sat Nov 09 2013?
 
why don't you create a Date object and use that instead?
 
@FlorianMargaine Yeah, it is a date object
 
@SomeKittens nope
 
new Date().toString().split(' ').slice(0, 4).join(' ')
 
@connor.js then use getYear etc
 
10:24 PM
you can actually do form(autocomplete='off') // jade its perfectly valid in html :P the autocomplete affects all children
 
& is what I'm doing
@FlorianMargaine I'm wondering if it's safe to do so, it's simpler
 
it's not safe
 
10:39 PM
to go alone
 
I don't think .toString is really nailed down in the specs for most objects.
 
11:20 PM
@ErikReppen Nailed down in the spec, or works consistently across all big implementations?
 
@Benjamin Nailed down in the spec. If I remember correctly I don't think it's hyper-explicit about what you're supposed to do with toString for every object. Or at least it wasn't at one point.
 
> Date.prototype.toString - This function returns a String value. The contents of the String are implementation-dependent
 
11:37 PM
:I
 
@BenjaminGruenbaum fixed your analysts issue?
 
@FlorianMargaine No, I had other things to do :P
@Esailija ?
 
completely implementation dependent .p
so it can return the string "fuck you"
:p
 
Nononon!
It can't return fuck you, that would be impolite.
It'd have to be "Fuck you kind sir" to be a valid date string :P
It's intended to be convenient
 
11:54 PM
0
Q: JavaScript & PHP Conflict After URL Change Caused By Pagination

CraigI have a script that I use to find the user's screen resolution. After getting that resolution, I then send it to PHP. In PHP I then determine how to layout the page using the resolution. Here is the JavaScript used to get the resolution which is the 1st thing in the <body> tag. <? if(...

 

« first day (1121 days earlier)      last day (3810 days later) »