« first day (1522 days earlier)      last day (3419 days later) » 

12:00 PM
This is why Indian names are awesome !! @AwalGarg @darkyen00 :P
 
Gayview is the GREATEST name I've ever heard.
 
Are those real names ?
 
They look made up
 
@jAndy those names are hardly indian, pretty sure they are madeup
 
haha :-P
 
12:02 PM
Whatever, I'm naming my firstborn Gayview.
 
Awaii sounds very... you know...
 
I dunno, it's hilarious anyways
 
@KendallFrey -_-
 
@KendallFrey What does it sound very ? Am I the only one not to know ?
 
@phenomnomnominal We have a celebrity in Israel named Guy Pines
 
12:02 PM
@dystroy Hawaii?
 
...pronounced 'pee-nes', by any chance?
 
@TomW Of course.
 
I understand why he is famous.
 
0
Q: New privilege: "Star everywhere"

Second RikudoI would like to propose a new reputation privilege: "Star Everywhere". The details can still be discussed, but I'm thinking about something like this: Users cannot star messages in all chat rooms by default. Users gain the ability to star messages in a room by being active (as in, speaking) in ...

 
@AwalGarg Yeah
But I am a crab. And I have a crab hat.
Your badge is invalid!
 
12:06 PM
@phenomnomnominal And of course, what everyone else says as "guy" for you becomes "gay"
yay accents
 
Everything for me becomes gay.
 
fold
 
such gay
 
8============>
 
much flamboyant
 
12:07 PM
very butt stuff
 
wOw
ow
Oh, god, KSP is in Beta. giggles uncontrollably
 
Is there any diference from the alpha?
 
More features, like usual
gizmos, upgradable buildings, Mk3 spaceplanes, Fine Print contracts
Kerbal XP
and probably more
 
Hmm... I might even pick it up during christmas sales
 
\yay/ spec pass
 
12:11 PM
Unless, of course, it's a 12d prize. Then I'll totally win that instead
 
oh no failed agian
 
@argentum47 You are bad, and you should feel bad!
 
@rlemon 12d suggestion: Kerbal Space Programme
 
Anyone got any ideas on how to prevent endless cycles when using the observer pattern? (e.g. action A1 triggers event E1, a listener of E1 runs action A2 which triggers event E2, a listener on E2 runs action A1)
 
@GorgiKosev Implement a timeout.
 
12:15 PM
@GorgiKosev I have pretty much the same issue, in a different context :(
 
@Kippie :'(
 
@SecondRikudo yep, done that. now if only there was a way to inspect the resulting tree of promises
:D
 
@GorgiKosev Bluebird with long stack traces allows that.
 
I luv stack traces
 
I'm lighting the @BenjaminGruenbaum signal. Please standby.
 
12:17 PM
@SecondRikudo sure, but I get the stack trace of the initiating event: e.g. emited.timeout(T) will cancel emited but will know nothing about the dependent promises
this is the library I'm working on, btw: github.com/doxout/promise-observer
let me just commit what I have
 
@GorgiKosev If you reject the promise, you get a nice stack trace of all the previous events.
 
@GorgiKosev you can tag visited nodes.
@SecondRikudo you really don't have to explain to him how Bluebird works :P
 
pushed
@BenjaminGruenbaum what do you mean? I was thinking and decided that cycles are actually okay in many circumstances. Provided that they're not endless, that is :D
 
@GorgiKosev what's wrong with cycles?
 
of course I can't tell if its endless or not, so I just want to give a nice stack trace if the operation took way too long
 
12:21 PM
Oh, you want to have a max depth to a listener cycle?
That makes sense, just have a counter in 3-4 bits in the emitter and use that to count the depth then set the default max depth as 16. Kind of like a StackOverflowException or something.
Producing a rejection or something similar.
 
well, thats not precisely it...
but also, its a bit complicated to track the emit depth :)
take an observable that emits events when blog posts are created, for example. a plugin that sends emails to subscribers of certain authors attaches to that event. another plugin lets you publish posts via email :D
and someone just registered with the publishing email and subscribed to himself :D
the interaction can be complex and happen across promises
ok, that particular one can't even be detected
 
@GorgiKosev Isn't that just a UI problem?
 
Just do whatever event emitters do + waiting for promises in return values + catch safety. I'd use that.
 
I already do that, I just want to add a little something to help a user that ends up writing an endless loop
 
12:29 PM
emitter.on("foo", function(e){
    return Promise.delay(1000); // waits for promise
});
emitter.on("bar", function(){
     throw new Error("boo");
});
emitter.catch(function(){
    // boo hooo
});
 
@phenomnomnominal what do you mean?
 
I'd love to be able to return emitter and get a rejected promise or something like that.
 
Why would you let someone subscribe to themself?
 
@phenomnomnominal they'd do it with malicious intent :D
 
A -> B -> C -> D -> A
 
12:31 PM
it was just an example of the observer pattern resulting with an endless cycle
 
@GorgiKosev Yep, so just make sure that they can't.
 
other less insidious examples may arrise
 
Seems like an easier problem to solve.
Yeah fair enough
 
in a more complex system, its hard to track which events may result with an endless loop
@BenjaminGruenbaum it works a little differently, but thats the gist of it. the publisher gets notified if any of the susbcribers failed :)
I'm trying to use this pattern to decouple plugin code from our main codebase
provide extension hooks into the system :)
 
Oh dear god
 
12:36 PM
indeed
 
1:03 PM
sigh
I suck at debugging in a browser.
 
Mornin JavaScripters
 
marneeng
 
Morning LemonScripter
 
added page titles, fixed the doctype,
now you can all stop bitching
 
lol.
 
1:06 PM
and for those who don't like the lights code. at least I don't write it by hand.
<div id="lights">
    <% for( var i = 0; i < 20; i++ ) { %>
    <div class="led"></div>
    <% } %>
</div>
 
That's some fine snow you've got there... source?
as in, where's the repo?
It's way better than the snow I created for work
 
@rlemon 'noon
 
snow is by @Loktar (see the footer)
it's on his codepen somewhere
 
oh, cool
 
my snow is janky
his is nice and smooth
so I used his
!!afk coffee
 
1:08 PM
Mine is smooth, just not as "complete" as his
 
His has kinks too
 
Here's my Canadian snow effect: background-color: #fff;
6
 
lol
 
@KendallFrey o kendall
u so punny
@NickDugger If your snowflakes were actual snowflakes that would be totally perfect
Someone should make a high realism snow effect where it fills up the page like a container until it becomes unusable.
 
1:14 PM
I tried with snowflakes, but the designer didn't like it
 
@NickDugger What a dik.
 
There is a small hitch. I have some committed changes. five that belongs to app/ folder and other 4 in spec/ . now I don't want the spec/ changes. So I create a new branch from my current branch and I do a git checkout HEAD^ spec . and wth I have all the changes of the spec/ directory
:( why
 
@NickDugger you've somehow misunderstood perspective?
 
@argentum47 You mean all those changes are in one commit, or separate commits?
 
the larger ones should actually fall faster than the smaller. assume they are all the same size and we're just adding depth
 
1:16 PM
Yeah, I know, the bigger ones should be falling faster
 
One single commit
 
I was in a rush, and nobody else noticed lol
 
lol
 
That;s why I have to seperate out the two.
 
@argentum47 git doesn't have the concept of separate files. A commit contains of a single patch, not separate patches for each file
 
1:17 PM
I successfully did the same when I tried to do the same with the app/ directory changes
 
The only way to do this is manually
 
manually by?
 
http://codepen.io/rlemon/pen/hsjdf
http://codepen.io/rlemon/pen/DoEHk
http://codepen.io/rlemon/pen/qhHIn
@NickDugger a few snow pens i've made
 
@argentum47 Probably applying the patch to your working directory, then undoing the changes you don't want
 
everyone's snow is better than mine :(
 
1:19 PM
like having a conflict ?
 
@rlemon The third one is a gorgeous effect
 
ty
 
I need to think of something to push to github today to keep up my day streak
 
Custom palettes for github.com/kendfrey/Tui
I realize you won't do it, but hey
 
touch tmp
git add tmp
git commit -am 'adding temp tmp file'
git push origin master
rm -rf tmp
git add *
git commit -am 'removing temp tmp file'
git push origin master
@NickDugger
 
1:24 PM
I don't want to be a cheatsydoodle
 
cheating would be calling it a tmp file and never deleting it
 
I could work on a personal project at work... but that would be a nono
I could just edit a file in the project...
 
@rlemon I like the way flakes go away from the cursor in the second one
now... will I add snow on miaou ?
 
@dystroy Would look great with the otter theme :D
 
@dystroy loktars is better for the movement
it needs some fixing (timers)
but it's much better than mine
use it :P
 
1:33 PM
where is loktar's one ?
 
@HumanBeing stop spamming stars
 
That seems to be a theme today
 
why don't they goto the sandbox?
 
And they seem to never speak. Exploit?
 
there, now my day streak is 5 days
I'm a pro githubber
 
1:37 PM
no, you're Nick Dugger. I can see how they can be confusing ;)
 
Well This is what I did, In the end. but I don't understand the third line.

I was in changes_in_controller (this had all the changes, the 5 files in app/ and 4 in spec/)

I did a
git checkout -b controller_refactor
git checkout HEAD^ spec
git commit --amend -a
git push -f origin controller_refactor
and I had the changes in app/ in my local and remote controller_changes branch
 
@SecondRikudo ping
 
pong
 
Wikipedia: “Argentina determines whether to observe daylight saving time on a year-by-year basis.” Developers: “What.”
2
 
@KendallFrey seriously?
 
1:48 PM
“Hi Mr. Obama, Sorry for the direct approach, but I think you’d be an excellent fit for an exciting opportunity I have, Joe Recruiter”
3
 
Developers of the World should unite and swear to only implement UTC from now on
 
derp... I was so concerned with git not adding an important, but empty directory, when all along, I wrote a check that creates the directory but just forgot about it
 
@FlorianMargaine It's true
 
@SomeGuy ........
What.
 
@SomeGuy what the actual fuck
 
1:58 PM
is Argentina high?
> Argentina is located at a longitude that would naturally put it in the UTC−4 or UTC−5 time zone, but it actually uses the UTC−3 time zone. Argentina determines whether to observe daylight saving time on a year-by-year basis, and individual provinces may opt out of the federal decision
 
well they still insist they own the Falklands, so...
 
@TomW trolol
 
Out of curiosity, does anybody know why arity became obsolete in favor of length?
 
> ...and individual provinces may opt out of the federal decision
NOPE!
not even once
 
@AaditMShah in which context?
for function objects?
 
2:01 PM
Yes. For function objects.
 
I guess because it makes sense
 
maybe we should stake a claim to Patagonia on the grounds that there's a Welsh colony there.
See how they like that
 
length on a function is not really related to list of arguments
 
Keeping arity separate from length would make for easier duck typing.
 
c ya all.
 
2:03 PM
I guess they just wanted length for everything: arrays, functions and arguments.
 
Oh hi @AaditMShah
 
Hey @BenjaminGruenbaum!
How are you?
 
Doing good, starting to work on a numpy port in JS.
 
@FlorianMargaine In my opinion, length makes sense for array-like objects. However, functions are not array-like.
@BenjaminGruenbaum Kudos. I never liked Python anyway.
 
@AaditMShah I agree
 
2:05 PM
heh
 
I am currently not working on any personal project. Haven't committed to GitHub in months.
 
<ignorant>Why shouldn't a function's length be, for example, the number of statements it contains? Why is the 'length' the 'length' of its argument list? That's bad domain modelling</ignorant>
 
@AaditMShah good, I could use your help :D
 
Cool. I was getting bored with Christmas vacation anyway. What have you got in mind @BenjaminGruenbaum?
 
2:07 PM
You're already on christmas vacation? Lucky.
 
Whoa, you have a timeline and everything. Sounds like fun.
 
@Zirak ^^^
 
@BenjaminGruenbaum That looks really cool, good luck
 
@rlemon Merry Christmas to you too. =)
@BenjaminGruenbaum I would love to contribute to numjs, seeing that I have nothing to do for quite a while. Let me know what to do.
 
@NickDugger I'm mentally on Vacation.
does that count?
 
2:12 PM
I am too, which sucks, since I only have 2 months left in this project
 
@AaditMShah The problem is we're still surveying
 
BTW, I have never written a unit test in my life. Never really worked on a large-scale project before. This would be good experience.
 
@NickDugger well we realistically take holidays starting friday
 
@BenjaminGruenbaum Okay. Let me know if I can help.
 
Oh, I know what you can do if you'd like to practice writing unit tests!
 
2:17 PM
get numpy tests and rewrite them in js?
 
Yes, exactly.
I made a tests folder.
If anyone feels like porting some numpy tests (and some common sense ones for sanity) to numjs that'd be awesome of you.
 
there isn't that many of them :/
 
@BenjaminGruenbaum I was reading the [coding rules for numjs](https://github.com/benjamingr/numjs/blob/master/CONTRIBUTING.md), and I agree with all of them except this one:

> Do not namespace your code.

Aren't namespaces one honking great idea?
 
@AaditMShah for example, testing the basic API - that numjs zeros work and so on. Note that indexer access will likely not work so you'd have to numjsArray.get(5) instead of numjsArray[5] because of the fact JS has no indexers.
@AaditMShah nodejs has modules, the point of not namespacing is so people won't do myStuff.myFoo.myFunction. NodeJS has a module system which you can use instead.
 
Oh, alright. Makes sense.
 
2:19 PM
Put separate parts of code in separate modules, if you want myStuff.myFoo instead you'd require("myStuff/myFoo")
Writing tests could be an awesome start, if you feel like writing a few I'd appreciate it, especially since I'll get what people anticipate the API will be like.
 
Cool, I'll fork the repo and write some tests.
 
(given numpy)
 
Do I need to learn Mocha?
 
@AaditMShah yes, it's pretty simple though.
describe("The part I'm testing", function(){
     it("does whatever I expect", function(){
         // if this throws the test fails, use `assert`
     });
})
2
 
hey guys!
 
2:24 PM
Hey!
 
hey guy
smell my flower
 
pull my finger
 
anyone having a hint for me? I've got an array of about 1800 google markers and I'd need to calculate the distance to a given coordinate of each one from them
any efficient way to do that?
 
in a loop
/worstjokevertold
 
BRB. Got to go eat dinner.
 
2:27 PM
basically I'd just need to see if there are less than 3 or so in a given radius around that coordinate
 
If you're just checking the distances, not displaying them anywhere, don't bother taking the square root
 
well, you could always break the loop after you've found three
 
That'll save a lot of time
 
so I guess sorting them would make sense
@NickDugger yeah, that's a given
 
you know what I hate about jQuery? I can't break in a $.each... those bastards.
 
2:29 PM
@GNi33 I'd first calculate the X/Y of the outer square of the maximum distance and filter out anything outside of that square. This is pretty fast, then you just have a few remaining that you need to calculate the distances and order them to take the 3 nearest.
 
that's not a bad idea
what I basically would need to do is expand the radius until it fits 3 markers, while having a minimum radius when there are already enough markers in
 
Oh, good times: Web application can't perform certain actions because C: has 0 bytes left thanks to a faulty windows update
 
Why is this question so much downvoted ?
-6
Q: CSS special atribute parametr - [type="checkbox" i]

AntiCZHas anyone idea what is "i" in atribute selector? It can be see in Google Chrome as user agent stylesheet.

 
Probably the bad english
 
2:42 PM
The question could be better written, yes, and I would have added a shiny picture with a red circle, but it's not stupid
 
Bad english scares people away
 
@dystroy edited
 
That's a lot better
 
Image not found
 
2:52 PM
user image
4
 
@BenjaminGruenbaum oh god
 
user image
2
i like this one
 
@Meredith Ar grim
Lol
@rlemon I think I'm still recovering from this phase of my internet self.
I can't stop arguing with people on youtube ..
Which is generally a reaaally bad idea lol
 
Don't stop
 
2:58 PM
HAMMERTIME!
 
Youtube comment arguments are the greatest
 
STAHP
 
HAMMAHTIME!
 
I love discussions on YT
especially about veganism and stuff, its so awesome
its life!
 
Lol
 
2:59 PM
There are no discussions on YT.
 
That is not the right name for what happens.
 
 
So... what are these hats, and where are they? I still don't see them.
 
I like the arguments on "shitty music" videos
 
2:59 PM
The last one was about why it's inappropriate to say "Boys don't cry. Let's teach them not to make girls cry." in an advert about feminism.
Cos "Boys don't cry." is inherently sexist ..
 

« first day (1522 days earlier)      last day (3419 days later) »