« first day (1202 days earlier)      last day (3971 days later) » 

00:00
I never remember about getClientRects
Thanks but it still does not draw right
why not?
line from one box to another
yes in chrome, now I see, yet in ff it fails
in IE 9 also fail :)
but in chrome it works great
works for me in FF
00:07
ie9 doesn't support canvas
so yea. no luck there
no surprise there either
yes
it works
hrm, actually maybe ie9 does support it
for some reason it fails if firebug is opened
this is great thanks
np
read the docs on getClientRects
the link is in the comments
00:09
I will :)
because I still have no idea why I have to minus 10 more for the y value
no clue
What's wrong with this svg?
<svg class="triangle" style="left: 178px;">
         <polygon points="0,0 18,0 9,10"></polygon>
</svg>
<path inside <polygon ?
@monners erm...you left <polygon> unclosed?
^ that's what I meant
00:13
Updated
What's wrong with that svg?
(fun fact, the first one actually worked!)
Nothing, it works fine
Yeah, it's fine.
I can't find a decent resource on making SVGs inline. Most sources either go over how to import SVG images, and/or they include some ancient w3schools xhtml definition (marked as required)
!!make cool (hopefully) canvas thing or make shitty online php webstorage for the bot memory
@rlemon make shitty online php webstorage for the bot memory
00:17
@monners How's inline SVG different from SVG code in a file? Except for possible browsers' quirks.
@Zirak since you are here you wanna jump on TS and talk about how this will work?
basically how I see it is two ways... bake it into the bots load script.. or make it two bookmarklets.
@rlemon NO BAD RLEMON
NOOOOOOODE
lol
but php is so easy
srsly?
Node isn't hard!
00:25
but I am learning node - know php
if I wanna bang out a script in an hour - php is easier for me right now
Where's the milk?
in the damn fridge! stop asking!
@Miszy maybe our workflow is just different from yours then.
ohh you are not Caprica...
my bad
00:28
:(
@BadgerGirl I drank it all. I went milk drinking tonight.
@BenjaminGruenbaum I'll tell your wife.
@BadgerGirl you do that
@Miszy Effort
@BenjaminGruenbaum Maybe. I still think mongoDB is pretty damn good solution which obviously has some flaws.
00:29
:suddenly @BenjaminGruenbaum's house phone rings:
@monners Just paste your <svg> inside html and you're done. More or less.
@Miszy Exactly, with the above code I'm done!
@rlemon Haha
@Miszy Also, no extra requests need to be made
> Hello? Yes this is Mrs. Gruenbaum... ohh he did did he? and who the fuck are you? ohh that is so nice! well thank you! click Hunnie you need to stop visiting that site!
3
00:30
@monners So what kind of problem you got?
@Miszy I don't. It's fixed.
@Miszy I think Mongo does not understand the fundamental problems in writing software beyond the prototype phase very well. I've seen this happen time after time when startups switch from Mongo to a DB that makes sense. Also, I don't get what you said about schema at all since most people code first anyway when prototyping.
When you code-first your schema always stays in sync..
@BenjaminGruenbaum You don't have any schema per se in mongo so you have to code first. But you can change your ideas and concepts in the application - so code changes are required and data might need to be stored differently.
@BenjaminGruenbaum I'm totally cool with not using mongoDB if only I could find a reason not to and a decent alternative :P
@Miszy right, but when you code-first you don't have that issue anyway. Also, you have to think about how you store your data, even if requirements change. MongoDB makes it very hard to work on actual projects because you model your data after your application.
"you model your data after your application." - I believe that's exactly the way it should be.
00:34
@Miszy what if I have two applications that need access to the same data?
What if they do it at the same time? That sounds reasonable right?
Also, no transactions means any non-atomic operation is susceptible to failure. Every time I need to do anything that involves more than one document - I have to roll my own cleanup logic if something goes wrong in between.
Single mongoDB operations are ACID so that's not a problem.
@CodePen so browsing the front page today.. http://codepen.io/malikba/pen/zjkpq wait! that looks familiar... http://codepen.io/HugoGiraudel/pen/gpcwa
@BenjaminGruenbaum That's true.
oh lol you're still on that
@Miszy I think you're mixing ACID and atomic here. MongoDB is in no way acid.
@BartekBanachewicz I'm just back from beer :D
00:36
I've managed to rip open my server and change all the components
I now have 16x more ram
I think of it as extremely dangerous but I have never encountered any problem related to that.
I gave up on code - turned to beer & stargate
@Miszy we considered it, we even ruled out Node as a platform because it has bad tooling for other DBs.
So what's your choice?
I've used MongoDB several times, I just don't like it very much. It's extremely naive. I'm not convinced they understand the problem they're solving. When you compare that to a decent database like PostgreSQL or Oracle you can really see what's well thought out and what's a student's summer project that people started taking seriously.
00:39
(*I meant atomic, not ACID, of course)
m59
m59
Anyone use knockout? I need to speed code a sample
m59
m59
I have an event function bound and I don't know how to update props from it
like $scope.apply() I'm trying to speed read the docs and not seeing it
this.theProp('the value')
@BenjaminGruenbaum I think of Oracle DB as a solution for really big data. Not my usecase.
m59
m59
shouldn't that update the model? @BenjaminGruenbaum
00:40
@Miszy it really depends on what I'm building. Almost always SQL databases offer the better alternative for startups. Of course I use NoSQL for appropriate pieces of the software like Redis and Couch but they don't replace the SQL database - they're used for different things. Raven is somethind I'd use instead of an SQL database but I never built anything big with it.
@m59 there is no $apply in Knockout because you're using observables, whenever you do this.theProp('the value') on a ko.observable (or observableArray or computed) it'll update and take care of it.
m59
m59
@BenjaminGruenbaum I thought so, bu no go :(
bill: ko.observable(),
percentage: ko.observable(15),
tip: ko.observable(0),
calculateTip: function() {
  var percent = parseFloat(this.percentage());
  var bill = parseFloat(this.bill());
  var tip = (percent / 100) * bill;
  this.tip(tip);
}
the other bindings are set in the function property when I type in the input
@m59 jsfiddle.net , short isolated example.
@m59 are you sure the function is being called and the this value is correct when it is called?
m59
m59
yep
just no model update. I'll have to look at it later, only have 3 minutes until company comes over heh
@BartekBanachewicz 16X more? How much did you start with???
Not because of SQL, SQL has many issues :) It's about a well engineered and thought out datastore. MongoDB is just not very good at that. I can see why someone would like it in prototyping but we can not afford anything that naive or incomplete in production.
m59
m59
00:43
I might know the problem :)
@BenjaminGruenbaum Better alternatives for startups? How come? noSQL DBs are just easier by rule. No schema, no constraints.
m59
m59
bad binding
@BenjaminGruenbaum hahahahaha dang I'm a mess
So uptight about this interview. I bound it as a value not text
@m59 welcome to the 10K club! here is your annoying flag blue circle crap.... enjoy.. deleted questions are fun!
m59
m59
=D
10k today, job tomorrow :)
That would be nice.
@Miszy I don't have anything against NoSQL, I just dislike MongoDB in particular , I think it does a poor job at what it does. SQL is pretty trivial though, then again it depends on your workflow. In C# you have language facilities that help you with a lot of things you'd normally do yourself.
00:45
enjoy the hidden content
@rlemon :(
get u sum rep son
@m59 Woah! Congrats!
@rlemon If only all questions were not about the same things, mostly related to jQuery :D
> A train is heading west at 50 miles per hour. (velocity and speed) in MATLAB [closed]
i'll give you a sample :P
00:48
@BenjaminGruenbaum I think I just disregard the problems you find in mongoDB because I have never experienced them by myself. But I think it'd be good if I dug more into the problem now and do some research about what you said.
another goodie
@monners 256MB
AUGH ALL CODE STUFF MAKE NOW $(REQUIRE('FIXTHINGS').ASYNC).SUUUUUBLIME;;;;
m59
m59
@rlemon lolzlzzzzing my head off right now
00:50
@rlemon <lol>
yea deleted questions can be fun
m59
m59
SO, aka jQuery debug site
@Miszy I'm sorry if I came off as condescending there - I did not approach it from a debate perspective which probably made me sound like a dick.
i have mongo running on windows already
time to put it on overmind too
I really value your opinions @BenjaminGruenbaum because it seems you're a very experienced professional. The former opinions about mongoDB didn't sound like that. :)
But thank you for putting me on the right track now.
00:55
The overmind?!
my server is called overmind
BROOOOOOOOOOOOOOOOOO
@SomeKittensUx2666 BROOOOOOOOOOOOOOOOOOO (source)
00:57
!!s/OO/OOP/
@SomeKittensUx2666 @SomeKittensUx2666 BROOPOOOOOOOOOOOOOOOOO (source) (source)
!!s/OO/OOP/g
@Miszy @SomeKittensUx2666 @SomeKittensUx2666 BROOPPOOPOOPOOPOOPOOPOOPOOPOOPO (source) (source) (source)
00:59
Yooooo
^ did that. lol.
@rlemon forgot I had a touchscreen for a second there.
ended up right-clicking
@Loktar I TRY TO FIST BUMP YOU AND YOU JOIN DAYZ?!?!?
:sobs:
@Loktar of course
01:01
@Miszy well received
@SomeKittensUx2666 bump ohh shit!
haha
bump
nice
we are all bros now!
bros.forEach('fist');
^ that just seems so wrong
01:06
Hey, can any of you guys recommend a good technical JS test?
w3schools. The only. The best.
@phenomnomnominal sure, we're just after hiring two new developers. We got some.
@Miszy Rumors are that @Neal has a certificate.
Hack the Gibson
@BenjaminGruenbaum how'd you manage that? :P We're struggling.
@BenjaminGruenbaum I was wondering about getting one. When I was 11 or something. For realz.
01:08
okay
GHC 7.6.1 up
with Haste 0.2.10
I could probably install node someday
@phenomnomnominal first round is a technical but practical test - it tests a very basic html/css/javascript workflow - you fetch data from the server (we threw in JSONP as a trick), manipulate it (sorting etc), then template it (css/html) and present it in an acceptable way. It tests 'building something from scratch in a short time frame'.
@BenjaminGruenbaum that's what I've been doing for the past month
@phenomnomnominal the second round is actual coding, we told interviewees to implement an event emitter (like .on and .trigger) and a router (like Angular's or Backbone's but basic) - and some general CSish questions. We also look at open source contributions, blog and even SO - but that's not a part of the interview questions.
Yeah that's helpful, thanks!
01:11
These are the actual questions - knock yourself out :)
@BenjaminGruenbaum magic! Thanks so much
Sure thing bro.
@BartekBanachewicz just remember, it's time constrained :)
right, right
I'd like to develop a backend app now
!!should I use Node, Flask, Kepler or something completely different
@BartekBanachewicz something completely different
@phenomnomnominal Also, I have samples of how room regulars like @ThiefMaster , @qwertynl and @Loktar did if you wanna see them in these tests. When they interview they write code on an actual computer with an editor of their choosing and they have internet where they can ask questions.
01:14
@CapricaSix that's interesting. What would you suggest?
Or use google and stuff. That's perfectly ok.
:P mines so messy though!
@BartekBanachewicz Arc
@SomeKittensUx2666 I can't even google that
01:15
@BenjaminGruenbaum, yeah that's how we'd be doing it.
Those examples would be awesome too!
@BenjaminGruenbaum Mind if I use those to train the guys at our bootcamp?
@SomeKittensUx2666 I am not very fond of Lisps
@SomeKittensUx2666 knock yourself out :)
@BenjaminGruenbaum Thanks!
@Miszy repost
@Zirak Quite possibly - sounds like it was doing your room an important service. Shog9 brought up this extra caveat: "Perhaps the only extra limit needed here is one similar to our rule of thumb for sockpuppets: a chat-bot shouldn't allow you to do anything you couldn't do by yourself, with your own account." If other people are doing what the chatbot would do anyway (or even manually commanding the chatbot to do it anyway) then you're fine by that caveat too. — Jonathan Hobbs 1 hour ago
@phenomnomnominal there you go docs.google.com/document/d/…
We passed anyone who did it under 3 hours at that stage. The second stage was more restrictive.
@BenjaminGruenbaum boom, thanks so much!
Sure thing. Glad to be useful.
woah you gave them 3 hours?
01:22
@BenjaminGruenbaum It says You may use libraries and frameworks as you wish but you will be asked to justify introducing external code but what did it mean in practice? Did you have many solutions based on some kind of frameworks?
shit man I didnt realize it took me an hour
@Miszy oh yeah, we had people using all sorts of frameworks - Shmiddty and Loktar used Angular for example, in actual interviews we got some Angular and some Knockout answers. Lots of people used jQuery and so on. We just asked people to justify it. I don't care if they use a framework or library as long as they can justify it.
For example ThiefMaster said "I used jQuery because for rapid prototyping it's the easiest solution and can be replaced by something more lightweight later." which is exactly the sort of thing we wanted to hear in an interview.
@BenjaminGruenbaum Cool :)
It's - I know it has a cost, I used it because it let me do X, and I know it can be later be removed if needed.
nice - codepen picked a copy of an old pick. (not sure how they missed it, thing was popular as hell for them) so I tweeted them.. no longer a pick :P and they tweeted back "got it, thanks!"
01:34
@BenjaminGruenbaum No API key?
@SomeKittensUx2666 not production. Not our up to date data.
For staging, tests and interviews :D
does any know a good way to stress test nodejs apps?
@BenjaminGruenbaum sounds about right.
@Dave Tell 'em the professor moved finals up a week.
otherwise, same way you stress test any site.
well i want to see how many clients i can serve before the server collapses i don't know how i test for that
Try out Apache Benchmark
01:41
cat strolls in.. sits down. gets pets for a few minutes... farts... fuck you
ಠ_ಠ
<|>
/ω\
@BenjaminGruenbaum @Neal is weird. Why would someone ever get a w3schools cert? they mean nada
because he is Neal :P
(you did this to yourself)
@rlemon Yea I know ;-)
it is cool you are cool about it :) no hard feelings
@rlemon @Neal never read the context. I am glad I did :-D
01:45
just tell me the nl stands for Newfoundland... please?
@rlemon NL are my initials.
SHHHHHH
@rlemon :-P
(I have you on g+)
I know that already
@rlemon Ha I know Senor Lemon
01:47
@rlemon ummmmm
(he said it, not me)
I think Tennant has a thing for you
@rlemon bink
blunk
Haha my little brother calls fist-bumps a "bink"
01:49
pmub werbeh
@rlemon haha no. not that :-P
tmux is officially awesome
@BartekBanachewicz I hope ur using a great tmux config :-)
@qwertynl hm, no, I've just launched it for the first time
01:52
@BartekBanachewicz So you do not know yet it's true awesomeness
!!tell Bartek google best tmux config
 
4 hours later…
05:33
@Good Morning Folks
Good morning
TIME IS AN ILLUSION
05:50
why this downvote? ughh stackoverflow.com/a/21448805/586051
It doesn't actually answer OP's question (which is a really bad one)
My bad. I misread the question.
> If it doesn't work then it may be becouse of browser compatibility.
@RahulDesai I have no idea what the question is asking
@JanDvorak I think the OP is asking to open the content in the current window in a new window.
06:01
@RahulDesai oof. I don't even think it's possible to do perfectly.
What is wrong with this fiddle? jsfiddle.net/yg7mu I want it to alert true if only letters are put in, otherwise false
@RahulDesai either use the regex literal syntax, or the constructor. Not both.
@JanDvorak gotcha!
@JanDvorak I am converting the same code to vanilla Javascript. What am I doing wrong here? jsfiddle.net/yg7mu/3
06:19
@RahulDesai e is undefined
best use addEventListener
^ "I've restarted and the problem is gone"
@JanDvorak works now! thanks man
@JanDvorak I found this answer better than mine stackoverflow.com/a/21449186/586051 :)
@RahulDesai doesn't work in old browsers
@JanDvorak yeah, right
Hi All myself iOS developer, but we required java script most of the time . but i don't have any idea about it. if i see JS code. it appears like twinkling stars. Any one here Suggest me how to KICK start it....
commented it
06:28
@Immi I've heard good about Crockford's The Good Parts
the tutorial on jQuery.com is mostly focused on jQuery, but it has a javascript 101 as well
and it's pretty good
stay away from w3schools.
sure thanks.... finally ?
use the dev console. CTRL+SHIFT+K
don't be afraid to experiment there.
worst case: you'll need to reload the page.
06:34
jsfiddle.net is a nice tool, too
Hi All please check it.. is is k to KICK start
@JanDvorak
@Immi let me review the latter
sure
Javascript is a very addictive language.
bookmarked the former
@RahulDesai have you tried Ruby?
06:41
@JanDvorak No, but I have heard good things about it :)
I audited a few classes of it while at school.
I remember someone saying "Ruby makes me smile".
@Immi ew. It's a paid course.
let me know
@JanDvorak
There are plenty of free resources
suggest
sin #2 of codeschool: calls jQuery a framework
sin #3: singing
thumbs up for syntax highlighting
sin #4: uses == instead ===
sin #5: their code challenges are mostly focused on mathematical puzzloids rather than javascript
06:58
yup
sin #4a: the code challenge requires ==. It doesn't let you use ===
@JanDvorak Great buddy
sin #5: My favorite things reference
sin #6: who the hell uses \t?
@JanDvorak I thing u r moving out of topic now
I'm reviewing the codeschool tutorial
07:06
Hmmm depends of user...
each and everyone have their own perception
u'have different and i too have diff
thumbs up for outtakes
don't be optimistic buddy
it's currently at +2/-6, so...
> The right string, but the goal is use to concatenation.
aargh
(typo, btw
sin #7: "eight 5 six two 3 "+"7" doesn't count as enough concatenation
sin #8: forces us to do calculations by head while looking at a javascript console
thumbs up for "slightly stupid, but technically legal"
by the way: sin #9: speaker calls the javascript interpreter "console".
07:21
Good Keep it UP
+1 for great explanation
@JanDvorak i hope u will be nice guy
explains things very technically and politely
07:56
@BartekBanachewicz Flask!
finished a private conversation; back to reviewing codeschool.
my new thing to help JS organization on document websites: github.com/Ralt/docm
08:14
@FlorianMargaine Nice :]
Now I get what you were talking about :D
But I don't find separation of modules inside a single file very useful :P Still prefer file per module pattern.
you can do as you please
you can have one file per module if that's what you want
I didn't do it in the example for the sake of simplicity, but well...
Hmm, I see.
as long as the before/list/after are included in that order, and the after is loaded after your modules, it's all right
08:21
sin #10: challenge 2.13 is trivia, not a programming challenge
sin #11: challenge 2.14 promotes bad practice by requiring a single-line input of an expression that is way too long to fit in a single line and shouldn't even be a single expression.
Also, Harry Potter reference. Also, missing space around an ellipsis.
Anyone know how to add blueimp jquery-file-upload to an existing form for wordpress?
@Designer17 I think so. It's a matter of registering the script and executing it, right?
sin #12: elaborates in great lengths how to write a file path.
sin #13: The example of syntax error when semicolons are omitted is not a syntax error. The newlines are not treated as ordinary whitespace, much less erased altogether. "Pretty much" doesn't cut it. Also, semicolons are introduced after the multiline editor has already been used.
thumbs up for console.log
08:48
what would be the alternative?
the old sin of outputting debug messages via alert?
w3schools uses document.write
old sin/best friend if you're debugging on old phones
@Miszy I've got that part ... what I need to know is how to change the UploadHandler.php file to upload to wp media library. etc.
@phenomnomnominal old phones support alert?
@JanDvorak there's an annoying middle ground, where they're still 'smart phones', but you can't connect them to a remote debugger. Namely Windows Phone 7.5+
08:57
Not even the jsfiddle's remote console works?
conclusion: if this was a free tutorial, I'd say "still better than w3schools", but now I'm saying "don't pay for that. Use a different tutorial."
^ that's exactly what I think of every tutorial in Codeschool
hm... the jquery tutorial says the server sends every resource that the browser will need, all as a response to the first request. This might be cool (but caching), but doesn't actually happen.
@JanDvorak so in ur point of view, which is the best tutorial free or paid. (we want to know)
@Immi I like learn.jquery.com
the javascript part is pretty big by itself
sin: mixes jQuery and $ in a single example, giving rise to the seeming that $(document).ready is not available.
thumbs up for linking the jQuery docs.
thumbs for realtime jslint
sin: calls # "pound"
sin: implicitly suggests to not use a CDN. Also, why place it at the end of body?
09:47
I'm using Jasmine for unit testing AngularJS. Is there any way to inject constants into tests?
@JanDvorak Science

« first day (1202 days earlier)      last day (3971 days later) »