« first day (910 days earlier)      last day (4263 days later) » 

17:03
830
A: What is the best comment in source code you have ever encountered?

Rohit// somedev1 - 6/7/02 Adding temporary tracking of Login screen // somedev2 - 5/22/07 Temporary my ass

Are Chrome's dev tools pure JavaScript, without any special privileges?
user1125394
V8 engine?
@ŠimeVidas If I recall correctly, they used to be
@ŠimeVidas I think not. It's hard to access some function's local variables from pure javascript
No, I don't think breakpoints and all of that was pure JS
The Elements tab and the console
17:12
@JanDvorak Ah, ok. I'm watching Breakpoint Episode 8. Apparently there is a "force garbage collection" button in the dev tools, so I was wondering if that functionality is available via a public API.
It's not. You can't even count the keys in a weak map
the garbage collector is supposed to be absolutely invisible to javascript
@ŠimeVidas read the source nazi :D
except it sometimes prevents OOM errors
@Darkyen I'll rather chat with people :)
then its hard to find . though i really dont think they did them pure js
why ? cause it'd be waste of resources and damn too hard to manage
17:18
hello everybody
I (…) am rarely happier than when spending an entire day programming my computer to perform automatically a task that would otherwise take me a good ten seconds to do by hand. Douglas Adams, Last Chance to See
17:40
Hello everyone. Can anyone help me with this?
http://stackoverflow.com/questions/15979823/update-stock-price-using-ajax
So its taken me over a day to figure out how to make libsfml work on windows ... with the command line .
pretty damn sad
18:03
random video of the day!
@Loktar what the actual fuck dude ...
18:16
!!/convert 10usd to €
@Zirak 7.6458EUR
0
Q: Javascript on an IT industry website

JohnI am a non-programmer and seek your advice. A friend provides IT staffing help to IT companies and is redoing his own website. The firm he hired is doing the home page in javascript. Will most IT managers and programmers see this as a negative to using such an IT staffing agency? Or is javascript...

0
Q: Is it reasonable to use Javascript MVC Frameworks for closed source paid web applications?

Robert Niestroji am wondering if it is reasonable to write closed source, paid web apps in Javascript (JS MVC Frameworks like AngularJS, Backbone, Knockout, ...)? I'm concerned beacuse in this type of frameworks you use typically a REST backend for CRUD operations nad the majority of businness and application l...

@JanDvorak Added money conversion case insensitivity
Damn the Euro is weak ...
@Feeds Why do you always bring retarded questions?
18:23
@OctavianDamiean You mean the $
Don't like Java :)
That doesn't make it less interesting. The BNF-esque notation is of enough interest
Oh, you have all the JavaScript BNF in "The Good Parts" iirc
Where in the nursery rhyme does it say Humpty Dumpty is an egg?
I just find it funny that the brand new careers site for canada's spy agency has a 5 year old version of jquery on it.
man, that was back when they used eval in the lib!
@Loktar you there?
18:42
@rlemon That site (starlogs) is mainly just transform: rotateX(70deg) translateY(-20%);
how would you slowly show some text on a canvas? I don't really see how to tackle this problem
What do you mean?
Scroll the text?
the idea I had was to transform a text into an array representing it in a canvas (pixel-wise), but I don't see how to transform the text into pixel
@AmaanCheval no
wait, let me find an example
So from 0 opacity to 1?
no
one letter after the other
but at the letter level
18:44
Ah
You want to fillText and then get the pixels?
not sure I'm saying it right...
So it looks like it's being typed?
You're complicating it
18:44
@BenjaminGruenbaum that's a way I could think of yeah
Do it like you would with a DOM element, but just draw the text and clear it
@FlorianMargaine call getImageData ?
You don't need to do that!
Even though that would be how if you wanted to
you mean write it then clear it? then rewrite and clear a little less?
@BenjaminGruenbaum what do you mean?
@FlorianMargaine You have the original complete text, right?
18:46
yeah, whatever the text is
I can make an image if necessary
I'll try to just make a demo to show you
oh
oh damn, it's deprecated
how can I get the pixel data? i.e. rgb etc
I could use imageData and examine this image to know whether it's a black pixel or not
and act accordingly...
hm, sounds hard to guess which pixel I should display next though
What's the problem with just drawing "H", clearing it, then drawing "He", clearing it, then drawing, "Hel" and so on?
m59
m59
If anyone is familiar with twitter-bootstrap, I could use some help. I can't figure out why I'm getting scrollbars when sizing the window down (thin). The "row" divs are keeping a width of 940px, so that's obviously the problem, but I don't know anything about how bootstrap works. I have added the meta tag and included bootstrap.less and less.js
@FlorianMargaine You know about fillText, right?
18:49
@AmaanCheval because I want to draw H little by little
Then you should put a rectangle over it
That's simple too
m59
m59
It definitely isn't a problem with my markup. I even took the responsive markup right from the bootstrap demo and it had the same probem on my site...
Unless you have a dynamic background
18:50
yeah but it won't look like I write H little by little, just that I unveil H little by little
is "little by little" a real english expression?
By "write" you mean you want to show the movement too? Like it's written by hand?
@FlorianMargaine Yeah
yeah, like it's written by hand
I want to show it as if the letter H was written by hand
Now that's a tough one
18:52
which is why I wanted to store the pixels and find some kind of path to unveil this path
I know it's a tough one, I wouldn't ask otherwise :P
Wasn't there a stroke method?
You could do it svg-style
what do you mean?
2 ways I can think of. Write an algorithm that only writes a letter, and figures out by the pixels what the smartest approach would be; or store the waypoints of drawing each letter, which would be hectic and less satisfying to make :P
The latter ^
Yeah, you'd have to use strokes either way
18:54
svg has this via path IIRC, so using Illustrator (or any other svg editor) you can find these points less tediously
I could get the waypoints from analyzing an image though
@Zirak yeah I see what you mean now
You could
meh, I'd like @Loktar or @SimonSarris opinion on this
whats up
read up ^ :P
@SimonSarris is that your new dog btw on fb?
18:59
you want to write a full normal H little by little
like from left to right or up to down?
He wants to show text on canvas like it's been drawn by hand
Yes but I don't get her until June!
but drawn by hand and "revealed" left to right are very different things!

« first day (910 days earlier)      last day (4263 days later) »