« first day (850 days earlier)      last day (4097 days later) » 

6:00 PM
It's NOT up to some stupid website if i should be able to save my login or not!
 
@xtal because I don't want it to be written in JavaScript
 
Yeah, I get you, but people are more flexible than code.
 
[].forEach.call(document.querySelectorAll('[autocomplete]'), function(frm) { frm.autocomplete = 'on'; });
 
div:
  li(value={{item.value}}, class=trout):
    span(value={{item.value}})
 
I'd work on the semantics first anyway, and then work back to a sensible syntax.
 
6:02 PM
Is codepen.io back to the old design?
 
There was a new design?
 
^^
 
yeah and the pen were not "first viewed content" anymore
 
That wasn't just a dream?
 
I love this guy
seriously
 
6:04 PM
That's pretty sexy.
 
he is really good
Every time he renders something I'm like "fu genius"
 
the more I read it the more I dislike coffeescript (just saying)
 
Well me it's the other way
 
CoffeeScript means fewer keystrokes. Big deal. It's an obfuscation. There are no classes. That's the problem with it.
 
Nobody cares for classes
 
6:11 PM
Communists don't care for classes.
 
:-)
 
Oh, actually they do... sorry.
 
@Oleg nice one
 
Nor students.
 
So students = communists ?
 
6:12 PM
sounds about right.
or is it that communist students grow up to teach classes?
 
@copy randomly jumps in taking comment out of context and furiously disputes point
 
Not sure about students, but Lenin would be happy to learn JavaScript because of its classless nature.
 
Good job kid, now go back working on your religious propaganda wobsite
 
Really Eclipse? Really? I have a private static final string and it complains that I didn't add a setter and getter method.
 
@ThomasShields jumps in, pivots, and dismounts, with a perfect irony score.
 
6:14 PM
Srsly ...
 
@xtal ha.
@copy rofl.
It's funny because my website/blog is rather religious in nature. Wouldn't call it propaganda, though.
 
@OctavianDamiean Common! What if I still need to change it? Wouldn't a getter / setter be useful?
 
@Loktar Have you played Fable III?
 
Eclipse just wants to make the life of some 3rd party dev easier, who will, 3 years down the road, depend on your program and the ability to change that string!
 
@ThomasShields There's a fine line between propaganda and preaching. And that line is called opinion.
 
6:15 PM
@IvoWetzel It sure would. I'm probably out of my mind, don't know what I was thinking. Of course it would be useful to have a setter for a final variable.
 
@twiz you're wrong. fact.
 
@OctavianDamiean The setter could throw an exception!
 
@IvoWetzel Because it's fun. :D
 
@IvoWetzel lol
 
@ThomasShields ummm.... ok..... good point...??
 
6:16 PM
@OctavianDamiean The "FinalException"
 
@twiz (I was trying to be ironic)
 
@ThomasShields oh... yea, that whole sarcasm thing tends to break on the internet. haha
 
@twiz though if there is absolute, factual truth, then opinion wouldn't be the distinctive; fact would.
 
I still think there should be a <sarcasm> tag in HTML...
 
6:17 PM
@IvoWetzel WOLLT IHR DIE FINALE EXCEPTION!?
 
anyway, don't mean to get philosophical. insert laugh at @IvoWetzel's latest comment and the room conversation in general
 
@twiz No fun.
 
@ThomasShields right, but if a religion was a known fact, it wouldn't be a religion.
 
@twiz unless the fact were contended, but still true.
 
@ThomasShields But then you wouldn't know that it were true, hence religion.
 
6:19 PM
@xtal so the only way you can know anything to be true is if everybody agrees?
but yeah i get your point
 
It depends if the doubt cast is reasonable or not.
 
I can't stand blogs with programming articles with lots of code but without code formatting.
 
conclusion: there are lots of religions because they're all think they've got the truth; many are therefore wrong; all could conceivably be wrong; but one or a few could be right.
 
They could be right, but have no supporting evidence.
 
Java is downright ridiculous ... how is one supposed to be productive? It's just beyond me. I can't remember how to send a simple HTTP request without having to look at the API reference or some sort of examples ...
 
6:23 PM
Thousands of years and no evidence? Sounds fishy to me.
 
@xtal some have evidence. Anyways. I'll be back. Discrete Math class for me.
 
It is just impossible to remember all the crap you have to do.
 
@ThomasShields Ooh, fun, I'm taking that too
 
we are all as dumb as we think eachother to be .
^ truth
 
Discrete Math is the math that isn't really math right?
and is more like another way of saying algorithms?
 
6:26 PM
@rlemon s'that right?
 
@rlemon I think it would be better just say: We are all dumb.
 
Intentionally Unobtrusive Math didn't sound right. Discrete rolls off the tongue better.
 
Linux Tip of the Day: Turn off your computer to wake you up in 7 hours with Deep Purple - Lazy: rtcwake -m mem -s 25200; firefox https://www.youtube.com/watch?v=oIwcUcZWJbI
 
@xtal haha nice
 
6:27 PM
@copy :D
 
fu mister tickles is totally fucking real.
 
"A little box to type your opinions in", seems as though this place got a little less serious...
 
I'm convinced that if Roger Hargreaves ever took acid, he would have invented Zirak.
 
Guys I just heard something crazy.

Apparently.... get this... there are people out in the world....

without the internet?! mind===blown I know. but it's true!
 
Chrome dev tools allow to get an element by id by simply typing the element's id in the console? o_o
 
6:33 PM
I was on dial-up for a while. I was half a person. :'-(
 
I remember the days before the internet. "Dial Up" meant to call someone on the tele.
 
@Oleg That's an old HTML feature where id's are exported to global scope
Also works in Firefox if you don't give a valid doctype
 
@copy holy... I never knew that.
 
hmmm... just realized that I'm not sure if I remember the days before the internet...
 
@copy be online. :(
 
6:34 PM
because it's ugly and prone to convolution
@twiz it was a lot brighter... I remember this thing called "grass".. birds are fucking terrifying in real life.
4
 
Wait, but does it mean that if I have an element with id="jQuery" then ...
 
Birds shudder
 
I once went about a month without using the internet... I think that's the longest period of time since I got the internet...
 
I hate those stupid ones that fly right at you
 
@AmaanCheval Birds are okay. Wasps aren't!
 
6:39 PM
Wasps aren't common here. I've seen just one in my lifetime
Flying cockroaches. Those fuckers
 
@Oleg You pretty much know where you stand with a wasp though. Birds plot.
 
@AmaanCheval hahaha I don't think I don't think I've ever been stung by a wasp, but I do see them a lot
bees in general suck
 
Oh, bees are annoying. An entire honeycomb fell right next to me once
 
@twiz they suck juicy flower juices
 
(It was my fault :P)
 
6:41 PM
@Oleg juicy flowers are the best
 
Somehow, I managed to get away, though. Not a single bee stung me
 
love me a big glass of flower juice
 
@AmaanCheval Well there you go. Birds would have pecked the flesh of your bones until you stopped twitching.
 
@xtal Jesus... I want one of these birds you speak of. Screw getting an attack dog...
 
6:43 PM
@twiz Why do you think they don't make honeycomb? They don't have the temperament.
 
gosh... compiling something which fails due to an old version of GCC :(
now I'm compiling a new version of GCC...
for over an hour already
 
When I was in highschool, a friend of mine had a canary. We were sitting at the dining room table playing cards, and suddenly he looked over at the canary's cage and his eyes went wide.
Below the cage, there was a pool of blood.
 
Good luck that doesn't fail because of an old version of GCC.
 
haha
 
Not a scratch on the bird, not a scratch on the dog.
 
6:44 PM
@RyanKinal Whoa.
That's creepy.
 
No idea where this blood came from.
 
@AmaanCheval no
 
Thus, I will never, ever, ever own a bird.
 
First period?
 
@RyanKinal hahaha shit... you should write a horror movie. And base it on your life.
 
6:45 PM
@Loktar Ah. It just went on sale. 75% off now
 
If this was the bird's blood, the bird would have been bone dry
 
Obviously the bird and the dog had sacrificed a cat.
 
It was literally a pool of blood.
 
yeah I have it @AmaanCheval just never played it
like about 60% of my steam games :P
 
Well, maybe a puddle of blood
 
6:46 PM
Haha, I know
 
anyone using nodejitsu?
 
I don't think I'm going to get it. Haven't played the earlier ones, and it doesn't look all that great to me
 
@dievardump I do
 
Feedback? the drone thing?
 
yeah retroships runs on it
 
6:47 PM
it's like allowing more power if there is more users?
 
depends on what you pay for
 
@RyanKinal maybe the bird was shitting blood...
 
Im doing the $3/month one
so itll die if too many people go to it I assume
 
2 mins ago, by Ryan Kinal
If this was the bird's blood, the bird would have been bone dry
 
the 11/month
 
6:47 PM
@RyanKinal I didn't say it was shitting its own blood.
 
O_O
 
@twiz Hahahahahaha
 
@dievardump it was/is really easy to work with though
and really cheap
 
yeah I can see that
I'm still thinking of doing the bomberman-like game
but with a "game platform" concept
 
Game platform?
 
6:49 PM
And was wondering if I should try nodejitsu
yeah weird to explain
and time to go back to work
 
@dievardump I would
 
Ok. I need to stop discussing shit and blood and birds, and go be productive.
 
low cost to at least play/test
 
$3/month looks pretty good
 
Id start with the $3/month and then upgrade it if need be
 
6:50 PM
the 11/month look good also
I just want to understand how "drones" work
 
Ron
how can I move element to end but keep the variable updated without traversing again?
pbLIs.eq(0).appendTo(pbUL);
pbLIs = $('li'); << not good...
 
I read that. It's useless
It does not say "how" an application get 2 drones instead of one
"if needed" ?
and what power has a drone
 
yeah its pretty vague
 
Yeah, not very specific
 
6:51 PM
debit? user number? resource used?
 
@dievardump I'd say maybe you should just look at reviews of the service. It doesn't necessarily matter how they scale with the "drones", as long as it works. Right?
 
it matters. because it can become expansive
like... if 15users will make you use a second drone for an application
maybe it's better to go to the concurent
 
oohhh I see
 
and pay 4dollars but for 100 users
(it's an example)
so it's really vague, the drone thing
 
Well I suppose it might be difficult to give specifics in terms of users since each application would have different processing requirements
It is kind of shitty that they don't explain it better though
 
6:58 PM
If all native functions have a "prototype" property, why doesn't Object.prototype.hasOwnProperty.prototype exist?
 
Object.hasOwnProperty.prototype, no?
 
@dievardump Nope
hasOwnProperty is a method of Object.prototype
 
Because they're not constructors
 
it would result of an endless prototype?
Oh I thought it would be a bad answer to say that
 
@Zirak Ifaik, the language does not make the distinction between a function and a constructor function
Any native function can be used as a constructor (I think)
 
7:01 PM
User-defined functions act both as regular functions and as constructors. Native functions don't have to.
!!> new Object.keys
 
@Zirak "TypeError: function keys() { [native code] } is not a constructor"
 
!!> 1+2
 
@Å imeVidas 3
 
Nice :)
 
!!> Object.trout = function() {}; new Object.trout
 
7:02 PM
@dievardump {}
 
@Zirak I see. All functions that are created by program execution get a "prototype" property. Built-in functions, on the other hand, may or may not have a "prototype" property
 
Yep
 
!!> Math.prototype
 
@RyanKinal "undefined"
 
Math isn't a function...?
 
7:05 PM
I was just wondering :-)
The capitalization feels like it should be a constructor.
 
@RyanKinal Also JSON, pain object.
 
hi, I'm trying to implement a textbox watermark like SO search, I found some scripts, but those remove the watermark when it's clicked not when typed, can someone please direct me to a tutorial or script, thanx
 
Math was a stupid thing in Java...it's a shame it was copied.
@grasshopper html5 defines a placeholder attribute, very google-able.
 
Do you know of any built-in constructor that is not global?
 
omg livereload...
 
7:07 PM
@grasshopper well for HTML5 you can just use the placeholder attribute.
 
@Zirak yeah i saw that but it doesnt work for all browsers
 
@Å imeVidas In case you were wondering where it's in the spec: es5.github.com/#x11.2.2
Step 4
 
!!/tell grasshopper google "placeholder shim"
 
@grasshopper Then you'll have to deal with really sub-par things. Anyway, if you want to clear on keypress and not on click, then it's simply a matter of changing the event you're listening to.
 
7:10 PM
@Zirak Pih... I switched to the official one (ecma-international.org/ecma-262/5.1) long ago :p
 
@SOChatBot thanks
 
The bot knows all...
 
!!/urban Pih
 
@Zirak pih Exclamation of (not)realizing of your own stupidity and immature behavior typical for citizens (peasants) of Probistip ("City" in Republic of Macedonia).
 
@Zirak ok, I dont know JS, but i can see the onfocus event listener with what will I replace it?
 
7:11 PM
erm, ok. And that version is convenient, so I use that.
 
@Zirak haha wtf...
 
@grasshopper keypress or keyup or keydown (hit anything with key in it, really)
 
@zirak k thanks
 
Enjoy
 
@Zirak In English it's not "pih" I guess :)
 
7:17 PM
wow...mlabel's man page is simply...wrong
 
@Zirak I have no idea how to translate "pih" (I use it in Croatian), but it conveys "I'll have you know"
 
!!/google mlabel
 
@dystroy Y U NO MAEK SENSE!? Could not understand google mlabel
@dystroy Y U NO MAEK SENSE!? Could not understand `.google mlabel`
@dystroy [RenameUSBDrive - Community Ubuntu Documentation](https://help.ubuntu.com/community/RenameUSBDrive) ; [mlabel\(1\): make MSDOS volume label - Linux man page](http://linux.die.net/man/1/mlabel) ; [mlabel: renaming USB stick appends - Launchpad Bugs](https://bugs.launchpad.net/bugs/887446)
 
I have a fat32 thumb drive I want to relabel
 
7:21 PM
Haha
 
Hi, i'm experimenting something with jQuery (and i'm not very good at it...) was wondering if someone would explain me, or show me a simpler way to do it, (mine is ugly and don't work that well)

http://pastebin.com/3kJAbvju
 
hey all
whast up
 
@JonathanLaf What's exactly your question ?
 
var localVariablesAreYourFriend = jQuery("li.js_datepicker tr td:first-child input");
...
 
@JonathanLaf Also use Jsfiddle. its awesome
 
7:22 PM
A fiddle (jsbin.com, jsfiddle.net) is more helpful as we may test it.
 
@rlemon you got a point !
 
@JonathanLaf if you can cache a common context. use this as well.
var context = $('li.js_datepicker'),
      foo = $('.foo', context); // etc
 
the problem is that I can't use fiddle has I don't have the clone code, i'm making a wordpress template for a form that I have not made my self
 
yea you don't need a fiddle for this
as you said it's kinda working
cleaning it up should be a priority first
 
can someone explain to me the concept of pointer deterioration
?
 
7:24 PM
awesome
 
i'll clean it first, then retest and resend here if needed !
 
first cartoon face I've seen it do well on
 
YEAH like a Sir ;)
 
yes, very very good one
 
like... perfect.
 
7:25 PM
Some other people just make internal server errors...
 
lol
you're not passing in the data right
 
lol
:)
 
no moustache
ohh well. guess it didn't see the face
 
lol
 
:(
 
7:27 PM
How would you consider "telling" en element it is active:
class='active' or data-active='true' ?
 
@dievardump I recommend class=active.
Data attributes are for when the data is not two-state
 
@JanDvorak need a better argument
 
@Zirak Internal Server error: 500. Too Much awesome. Cannot mustachify awesome mustache. line Zirak, foo.php
@JanDvorak meh - data attributes are for custom attributes.
 
7:30 PM
 
however I agree 'active' is more a UI state and should be handled in css with classes
 
oh crap it actually found the face!
http://mustachify.me/?src=http://th02.deviantart.net/fs70/PRE/i/2012/198/7/4/slender_man_by_cyndicyanide-d57kr6v.jpg
 
Don't tell my wife I mustachified her...
 
@dystroy saved.
next step: find his wife
(looks in bedroom... found her!) <- ohh burn.
 
@dievardump well, you can use data attributes for boolean attributes. I still recommend a class (if only for it to be visible by CSS, as noted by rlemon)
 
7:31 PM
We won't tell Christine
 
if separation of logic and concerns is a must - classes do make more sense.
 
@Cygwinnian Wow
 
HEy anyone know how to activate a datalist on an input using js?
 
@rlemon I agree. but css allow span[data-active]
 
@Zirak Sapristi!
 
7:32 PM
...Les pantalons!
 
data-* I use for storage (vars attached to a HTML Element and not a DOM element)
 
@dystroy haha
 
@JanDvorak Not found.
 
lrn2GET
 
@dystroy but logically - think about it - data-* for shit like custom attribs.. ok.
<li data-active class="foo">...</li> <!-- active is a UI state. as far as most applications go being on the physical page makes it active. Navigation links are not buttons with states. all of this is UI sugars - so really I feel this is best served as a class-->
<li class="foo active">..</li>

<!-- now.. shit like this makes sense -->
<a href="foo.html" title="plain jane title" data-title="Super <strong>fancy title</strong>">Fancy Link</a>
 
7:35 PM
http://jsfiddle.net/NQTUP/

Here is a fiddle, but can't make it run has on the website has I told you I don't have all the code already used to clone. And I can't find how to make work datepicker on jsfiddle...
 
^ meant for dievar not dystroy
 
http://livresenfete.org/programmation/inscrire-une-activite/

here is the real URL for the form (a french site)
you can see where it fails if you try to fill the date
 
jQuery guys... whats valid
$([foo,bar]);
or
$(foo).add(bar);
 
When I last looked at the init function, it merges the array into itself
 
7:40 PM
Like, just valid or if it's equivalent?
 
So they'll be functionally equivalent. But test. The last version I actually looked at was about 1.5
 
The datepicker appear when I click on input but always put the value in the first row of input no matter how many row I have...
 
@rlemon If foo and bar are DOM elements, they are equivalent. Otherwise, not.
if jQuery is given an array, it wraps its contents.
 
jQuery(document).ready(function ($) {
    var first_input = $("li.js_datepicker tr td:first-child input"),
        second_input = $("li.js_datepicker tr td:nth-child(2) input"),
        bod = $('body'),
        col = first_input.add(second_input);
    col.datepicker({
        dateFormat: "yy-mm-dd"
    }).on('focus', function () {
        $(this).datepicker('show');
    });

    bod.on('click', col, function () {
        $(this).datepicker('show');
    });
});
ok, then tickle this
Might not work. I don't often use jQuery
 
the on don't work
 
7:45 PM
however I didn't solve any issues other than code duplication.
the on click I was iffy on
 
yeah, you clarify my code, thank you i'll study how you've done this
 
I'm passing in a jQuery wrapped nodeList / Array or w/e they use
err.. yea
 
You can replace $("a").add($("b")) with $("a, b")
 
yea I see it
@JanDvorak nay good sir - that would require me cache the selectors
I assume he uses first_input and second_input other places.
otherwise, yes you are right.
 
@JanDvorak ?
 
7:48 PM
@rlemon then use add. Passing two jQuery objects in an array to jQuery won't work.
 
@JanDvorak -_-
6 mins ago, by rlemon
jQuery(document).ready(function ($) {
    var first_input = $("li.js_datepicker tr td:first-child input"),
        second_input = $("li.js_datepicker tr td:nth-child(2) input"),
        bod = $('body'),
        col = first_input.add(second_input);
    col.datepicker({
        dateFormat: "yy-mm-dd"
    }).on('focus', function () {
        $(this).datepicker('show');
    });

    bod.on('click', col, function () {
        $(this).datepicker('show');
    });
});
@JonathanLaf hrmm. the bod .on delegation is wrong. wasn't thinking.
bod.on('click', col, function (e) {
    $(e.target).datepicker('show');
});
something like this
hard to test on that page :P
 
var first_input = $("li.js_datepicker tr td:first-child input"),
second_input = $("li.js_datepicker tr td:nth-child(2) input"),
WHAT?
 
@dievardump not my code - large stupid selectors I don't even try to optimize from others..
too many paths to explore
 
ok, still love you «3
 
bod = $(document.body) -- use this to save a few milliseconds and look cool
 
7:50 PM
^ agree fw ms is nice. $(document.getElementById('foo')); // 33% faster than $('#foo');
but then... if this is a concern... why the fuck are you $(doing stupid shit)
 
@JanDvorak I do not know if it's looking cool or not looking ridiculous
 
Yeah, $("body") looks unproffesional :-)
 
you're all wearing mustaches on my screen. so professionalism is lost.
I laugh at you all!
 
@rlemon still an error with the on, but it's not from your code, only a parameters missing on .datepicker('show')

Uncaught TypeError: Cannot read property 'settings' of undefined
 
@rlemon I am?
 
7:53 PM
yup
hence hard to test.
@dievardump yea - behind the hand.
I ran your other pic through it just to get the mental image
 
var body = $(); body.push (document.body); to look really cool
 
o.O
0
Q: javascript setInterval for while loop

Walter WilsonI've seen a lot of posts about setInterval and SetTimeout, and have tried it in the following context: 1) an array of divs to move 2) an array of div ids, with the new left and top values 3) a button to call a function which will 'move' the divs in 1) using the individual div data in 2). The pr...

 
@FlorianMargaine \me doesn't approve
 
Like I care
hipster
 
guys i know this is going to make everybody mad, but isn't Jquery the same thing as javascript?
 
7:55 PM
You use cs, don't you?
 
@Cygwinnian ignored the troll
 
@Cygwinnian nope. Why are you asking, if you know we'll get mad?
 
lol
i just wanna see someone erupt
 
I know you did that on purpose :p
 
7:57 PM
!!/tell cygwinn google body inflation youtube
 
lol!
 

« first day (850 days earlier)      last day (4097 days later) »