« first day (1859 days earlier)      last day (3106 days later) » 

12:00 AM
I remember burning CDs
 
the only game I need right now is hangman :P
 
in fact, i remember booting linux off floppy. used two floppies. one fo the kernel, one for initrd
 
@KendallFrey I remember copying floppies
DONT COPY DAT FLOPPY
@towc not even trying to be devils advocate but I've had fewer issues with NPM on Windows than Ubuntu
to each their own though
Windows character limit + NPM is dumb however
 
My experience with floppies has always been with mountable files
 
but it seems like that has been fixed with the new release of NPM
 
12:07 AM
@Loktar ok. I've actually barely ever used npm anyway, so I don't really have a point
windows is stupid anyway, ok? XD
 
lol well you getting more experience with different OS's is good regardless
 
the really stupid thing with npm and OSs is that people never deal with paths correctly.
I mean, "never" is a strong word. But people fuck it up all the time.
 
bah, still no decorators in babel 6?
 
So we need a new package manager, a better package manager, with more meatballs and custard
 
 
12:16 AM
@Loktar dat sound of ejecting a floppy. 'skjj pssht'
 
I also love the sound of them being read
 
@KarelG that could be an early sign of ED
I would get checked if I were you
 
I love the sound of money, screw floppy disks
 
exceeds
 
ED ? Is that Explosive Diarrhea ?
 
12:18 AM
!!urban ED
 
@Mosho [Ed](http://ed.urbanup.com/3897912) Ed is short for Edward Edminton and Edvard.

Eds tend to be very athletic and mature enjoying sports and music and generally being very good at both.

Eds as boyfriends are loving, sweet, great in bed, and not stingy when it comes to presents.

Although eds can be hotheaded, they are also hardworking, loyal and have an amazing sense of humour making them great friends to have.
 
meh
 
Erectile dysfunction (ED) or impotence is sexual dysfunction characterized by the inability to develop or maintain an erection of the penis during sexual activity. A penile erection is the hydraulic effect of blood entering and being retained in sponge-like bodies within the penis. The process is most often initiated as a result of sexual arousal, when signals are transmitted from the brain to nerves in the penis. The most important organic causes are cardiovascular disease and diabetes, neurological problems (for example, trauma from prostatectomy surgery), hormonal insufficiencies (hypogonadism...
I had that bookmarked.
 
Keh, don't worry about that @Mosho ... I can bring it strong and hard. But not for you. You're not attractive and interesting. And a male ofc ...
 
how do you know I'm a male?
 
12:24 AM
how do you know i'm not a refregerator?
 
how do you know I'm?
 
how do you?
 
?
 
 
12:26 AM
Profit!
 
fucking capitalists
 
?
can't with that symptom
 
TIL: @Luggage is refrigerator-kin
 
can you be a kin-kin
 
What are your preferred pronouns?
 
12:30 AM
A luggage can be opened and closed. So a refrigerator too ? Polymorphic
 
I vote we refer to everyone as "it"
 
ah, it is a great idea from it
 
it thanks it
 
Why


@phenomnomnominal no, you can't do that, because that would oppress my need to be special
 
Should i move CRUD logic to services in AngularJS when using $http for simple get, post, put and delete?
What is the best-practice for initializing variables in JavaScript?
 
12:39 AM
@tereško check your privilege
 
i.imgur.com/W8HJ0T3.webm <-- mowing grass with hoverboard wheels. Tss
 
@nick is it cultural appropriation, if you start using phrases from radical feminist an neo-progressives?
I am not sure I understand all of the rules yet
 
stop using big words. no one knows what radish feminists or neo-geo-progressives are.
 
can I set the root for all import in node?
 
it uses node_modules. what do you want it to be?
 
12:46 AM
some random folder
tried settings NODE_PATH but doesn't seem to work
maybe I did it wrong
 
you might be able to add other node_modules paths, but I can't think of a legitmate reason to
 
I don't want to use relative paths
 
I think it'll look for node_modules even in the parnet of your current directory. so, ilek you could have one in your user difectory
 
it's react code that I want to render on the server
 
you kinda need to. reletive paths allow you to have directories instead of a flat list of files
 
12:48 AM
you can have paths within modules
 
also, they tel node if it's a n external module, or a local file
 
but if I want to use a file's 3rd degree cousin
then I'm fucked
 
well, you can do what you want, but if this code will ever see another human they'll hate you tryingt o use a different moudle loading scheme than everyone else
 
it's not different
it's what system uses
on the client
 
then use system on the server. or webpack. it'll let you do that
 
12:50 AM
sounds like trouble
 
That's what I've been trying to say
but if it's actually node code, not client code, then require('someModule') and require('./someModule') are meaningfully different
it sounds liek you want to take away that distinction
 
I just want to server side render my codez
 
Use an editor with filename completion
And type out the whole path
 
I use ST
 
there is a plugin for that
 
12:53 AM
I ended up loading my client webpack bunde on the server to do the server-side rendering
(a really simple react isomorphic app)
 
That's not simple, you should keep it simple
 
talking to me? yea..i was just getting it to work and that worked
you could make an alias in your project's node_modules to another folder.
that'd do it
but if system uses that same node_moduels to resolve it's dependencies, i'm not sure how that'll behave
 
1:23 AM
Hey there!
Does anyone know why a variable get undefined when assigning a value that is in a callback promise?
Here's what i mean:
 
1 message moved to Trash can
@feniixx Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com or pastie.org
 
you want to return the promise from the $http request
 
Because product is undefined
 
            var products;

            $http( {
                method: 'GET',
                url: '/api/v1/purchases/products/list'
            } ).then( function sucess( response ) {

                products = response.data;

            }, function error( response ) {

                console.log( response );

            } );

            console.log(products);
            //undefined, why? because of the asyc func? what would be the right approach?

            return products;
 
The function you pass to .then doesnt get executed until the http request comes back
So products isn't defined
 
1:27 AM
function getProducts () {
    return $http(...)
    .then(function (response) { return response.data; })...;
}

getProducts.then(function (products) { /* do shit */ });
 
Thanks @phenomnomnominal
Ok @CapricaSix
hey @phenomnomnominal if i want to handle error can i do:
getProducts.then(function (products) { /* do shit */ }, function (error) { /* do more shit */ } );
?
 
Random.integer(min, max)(engine)
Why is this api so terrible
 
does $q have .catch? I can never remember
@feniixx you can do the error handling inside the getProducts function
 
haven't used $q yet, i'll check it out later
what you mean by inside getProducts?
 
$http uses $q internally
$q is the default Promise provider within Angular
 
1:37 AM
There's an alternative, easy to use api, but you should use the weird api for purrrrrformance
 
function getProducts () {
    return $http(...)
    .then(function (response) { return response.data; })
    .catch(function () { ... });
}
 
!!youtube stillborn unicorn
 
Charlie Sheen has HIV
 
1:47 AM
yea
surprised he only got it 4 years ago
 
lol
 
I mean not trying to be a dick
but seriously, he claims to have been with over 1k women
the odds are against you
the scary thing is..
how many women has he been with in the 4 years since?
he was with Lindsey Lohan wasn't he?
 
ew
 
So you're saying that your chances of getting HIV from Charlie Sheen is higher than winning the lottery?
 
Yes
 
1:54 AM
hello is it ok to add mouse move ,click,onmouseover events to every elements in a page
?
 
that would probably be really slow
 
Just add them to the body and catch propagation then read event.target
 
@rism if 2 divs are overlapped what happen??can i detect both?
 
m59
Will node support import at some point? I don't even see it on the list.
 
that's because it's not a Node feature. try finding it on V8 somewhere
 
2:00 AM
@FastSnail try it and see for yourself; you'll get hammered on mousemove
you'll need a timeout
 
@rism i'm trying it thanks you so much i will use e.target
 
My desk is too empty. How about this: ebay.com/itm/…
just plug that into my macbook and use it
 
@FastSnail If you want to detect two overlapping div, attach events to the divs or their least common container. If you attach to all elements, by definition <body> overlaps with <html>, at least, and usually with everything else.
 
@Luggage keyboard looks like a mechanical one
idk maybe its not though
looks a lot like the old model m's
 
no idea. i wouldn't reall buy it
well, i wouldn't really expec tto like using it for more than some lulz
 
2:12 AM
Everytime I get close to a switched on CRT - or worse, when they switch on - I get EM attack on my brain.
Doesn't matter if they are behind a wall or shell. Glad that we don't have any of them where I live now. All phased out.
 
2:24 AM
@Sheepy if there is 2 divs in same position with same dimention and different z-index ,when i click on it i want to get id of both element .but only i can get top one id .is there any way without loop through of all elements ?
if there is 2 divs in same position with same dimention and different z-index ,when i click on it i want to get id of both element .but only i can get top one id .is there any way without loop through of all elements ?
 
@FastSnail You may loop only the divs you are intersted, instead of all elements.
 
ahh ok thanks .
 
(But yes, sorry looping is the only mean)
 
2:54 AM
@FastSnail If thats all you're doing why not associate via a data-tag/class/etc?
 
Document.elementFromPoint(x, y) multiple times combined with showing/hiding is the only way I've found in a search.
 
Who wants to judge a design that I'm working on?
 
It's not very far; but what do you think of the logo and the yellow colour? i.imgur.com/AEsbsXM.jpg
 
I like it
 
3:00 AM
It's been a long time since I tried being a designer
 
me too
 
7.5/10
 
not sure you gain anything by the round edges in the logo though
 
@Nick That's neat. Nice one.
 
@phenomnomnominal Yeah, I removed rounded corners in other places; I might ditch that there as well
 
3:00 AM
update your chrome, fuck.
 
@Luggage From what I understand, browser has to loop through its elements to find you that element too. Maybe better just loop the bounds, at least that won't trigger a re-layout (because of hiding/showing).
 
@rism i want to get a element by position .how ever now i got positive ideas .
 
perhaps., especially if you can limit the elements you have ot loop through
 
@phenomnomnominal I'm a few updates behind...
 
ohh, never saw the red hamburger.
only orange.
red means that chrome gained consciousness and turned evil.
 
3:04 AM
@Nick The black logo over yellow background is ok when used as a logo. In the body when used as an icon I prefer to tone it lower - e.g. transparent background and yellow spiral - so as not to distract from main content (article image and text)
 
Well, it won't be that logo that shows up in the body, but yeah, I agree
Given the site name, "Antix" -- do you understand what the logo is?
 
I mean the six yellow circle logos next to article titles. Hmm, let me guess...
 
a
I know what you meant, and I agreed
 
A critic discussion site?
 
Nah, just what the logo is; It's the letter 'a' in the shape of a speech bubble.
I thought it was pretty clever
I used to do a lot of logo design, before I become a developer
 
3:08 AM
Yes the logo is nice. It seems to be the kind that conveys multiple messages.
 
how can i map a html element with a javascript object.
for example i have lot of html elements and each one should map with a js object[o1,o2,o3....].

my current suggestion html elemts have id e1,e2,e3 so i get the id then take number out then access relative object .
 
1111
Q: Iterate over each Entry in a Map

iMackIf I have an object implementing the Map interface in Java and I wish to iterate over every pair contained within it, what is the most efficient way of going through the map? Will the ordering of elements depend on the specific map implementation that I have for the interface?

ILLUMINATI CONFIRMED
 
upvoted
 
you bastard
 
kidding
 
3:09 AM
It was 2008. Map is new to Java at that time. (Ok, perhaps not that new... I think I was using map 6 years before that...)
 
OP has 4.6k rep and it's all from that one question
 
Lol!
I need to find some stupid question to ask! And put a bounty on it.
 
what is drugs?
!!youtube what is drugs
 
There's No Such Thing As A Stupid Question
 
3:12 AM
Aw. 🐑 I am so stupid. 🐑 Am I stupid? 🐑🐑🐑
 
yes
 
/(ㄒoㄒ)/
 
no you are my special sheepy
 
All that wool make you feel hot does it nick?
 
(✿✪‿✪。)ノ It's winter!
 
3:17 AM
psotgres docs need a new stylsheet
 
man I love that video @nick
!!youtube I can break these cuffs
 
3:37 AM
@rism oh yes
dude
 
Why are all these companies calling themselves "disruptive"?
 
because we are tearing shit up
@rism check notifications
 
disruptive = radical enough to transform habit, e.g. iphone, ipad
 
it disrupts existing business models
classic example is Uber
 
its how you get seed capital
 
3:47 AM
I've seen half a dozen job openings on SO careers that are all the same thing
 
do they offer equity
 
"big data" "analytics" "marketing"
 
4:01 AM
I don't know. Uber is not very successful where I live because we already have local taxi apps. Smartphone and pads are more disruptive in my eyes. Last week an old friend visited us from UK and is shocked to find out that his dad no longer have computer or printer.
 
m59
sort of thinking aloud here. I'll either come to a question or answer it in the process.
Cyclejs wants an observable that emits some markup to display
I want to just emit some markup without anything fancy.
Rx.Observables.wut.map(() => <p>Hi.</p>)
I've figured out seemingly more complicated things, like responding to an event or timer and I can start with a value so as to output something before those things happen
but not a way to just put something out without writing code expecting something to happen (some event)
Rx.Observables.of(initialValue).map ?
Is that right? (it works, but I dunno what I'm doing)
 
4:16 AM
@Sheepy In mother Russia, iPhone drop you!
 
4:37 AM
@Abhishrek I am in college
!!token or serialized token?
 
@AwalGarg token
 
Great minds think alike
 
Tolkien
 
m59
@Loktar have you seen Cycle?
I think you'll like it
 
no
ill check it out
 
m59
4:40 AM
unless you don't know RxJS, in which case, you'll like it and also feel bad about yourself.
like I do.
 
I dont know rxjs
I need to work with it
I think somekittens is enjoying it, motivates me to look at it as well
 
m59
I'm finding it very hard to get started, but I hear once you get over the hump, it makes everything way easier
 
5:02 AM
anyone know ocr sample program in java. i am spending 3 days .please help me
 
@rlemon Hahaha that's brilliant
 
@GopiSankar There are a few java ocr library, mostly amateurish afaik, better just call tesseract, which is also cross platform.
 
 
1 hour later…
6:34 AM
0
Q: How to get client's timezone when system date is not set?

shineI have to get exact client time. Now i am using javascript date function for that the problem is when user set wrong date for client machine or not set the time, getting wrong. Is it possible to get exact time from client

 
@shine If the client doesn't want you to use their timezone, don't use it
Just use your current server time
 
@Meredith when i working with client time how i get ?
 
What?
 
@Meredith For example i have a count down timer for particular end date. When user access site from different time zone What happen when we use server time its different from users time zone
 
Then that's their problem for not setting a timezone
 
6:45 AM
@Meredith OK any possible solution for that
 
Have a message telling them to set a timezone or use a reasonable default
Same thing you do when you're missing any parameter
 
ok
 
7:21 AM
hi
I know that in es6 one can destructure like var foo = {a: 1, b: 2}; and then var {a, b} = foo
wait
dang it... here is what I want
in react I have this.props = { collaborators: [], tags: [], foo: {}, bar: {} } .. now I want to pass only collaborators and tags. so I can do like <SomeComponent collaborators={this.props.collaborators} tags={this.props.tags}> or, let props = { collaborators: {this.props}, tags: {this.props} } and then dp <SomeComponent {...props}>
is there some way I can destructure and so like I can pass only collaborators and tags without explicitly specifying them or having a local variable
 
I don't know a syntax that fit your requirement.
 
I have babel
boohoo .. ok fine I will do that direct assignment for now
I wish I could do Object.assign({}, {this.props.collaborators}) and then it would be Object.assign({}, {collaborators: this.props.collaborators}) .. :D
 
7:37 AM
What if you have this.props.collaborators()? (Should we consider the function name?) What if you have this.props[Symbol.collaborators]?
 
ok, one of the challenges expected me to know a lot of technologies I had never heard of like MD4 and associate them with some time-map thingie. "website not updated for 10 years -> might use MD4"
I really need to study the history of programming in relative detail
 
o/
 
\o
 
Is that the precursor of MD5?
 
@Mosho Happy Birthday Dude! Have an awesome year!
20
 
crl
7:53 AM
@shortCircuit good question, I guess you can't, maybe @Mosho knows how
 
crl
I'm doing worse, like <Component parent={this} (but I'm a React noob)
 
@Cerbrus That is not how math works - however it is how basic calculators work ... 1 + 2 * 3 = 9 on a basic calculator, 7 in maths / scientific calculator (even in windows calculator, switch between standard and scientific) — Jaromanda X 1 min ago
Yeap. 1 + 2 * 3 is absolutely 9.
Riiiight
 
@shortCircuit {props.collaborators, props.tags} instead of {...props} ? It's not magic...
It just copies an object's properties over, that's what {...stuff} does.
 
@Cerbrus Wow I never know it behaves differently in standard mode!
 
8:02 AM
It does.
As soon as you press *, 1 + 2 is calculated
So that means you literally can't enter 1 + 2 * 3 into the standard mode calc
 
@BenjaminGruenbaum I meant like if we have var a = 1; and then var b = {a}; then it automatically does {a: 1} something like that
 
The same for the Modern Calculator!
 
crl
@Mosho found where the events for react-dnd are (what I pined you the other day), it's in another project, his author seems really smart, but he likes doing twisty things (not sure I'll go with redux then...)
(or that's me that sucks a bit)
 
I have written a small Drag and Drop functionality which is not as big as this.
 
hi guys
 
If somebody know SomeKittens, thanks him for me
 
wow, cool, boxing gist is cool
 
crl
@shortCircuit Are you using a flux library too?
(I'm doing like you for the moment, react-only)
 
I'm using React without flux or redux architecture because I'm cool that way.
 
crl
you're kidding?
 
8:18 AM
I'm not.
 
crl
ok :)
 
redux , yes, but in this component I am only using it for loginWithFacebook and deleteing, which you can remove the loginWithFacebook and for deletion just delete the image from the array
 
I'm using something like Redux (single source of truth that merely refreshes the UI upon a change) but I'm not using the action/reducer system they envisioned. Instead I use a much simpler version that doesn't need a bunch of reducers spread over reducers and reducers that combine reducers (because what the fuck).
 
haha
 
crl
very interested in what you're using Roel, for my DnD app, I'll need a global refresher, in a cleaner way than just a global var
 
8:20 AM
so, how ugly is that?
I tried to do some designing
(yes, it's a table)
 
It's... functional
Hehe
 
Slap some nice font on it and it'll be fine
 
what's a nice font?
 
Papyrus
 
8:21 AM
Verdana </default>
 
crl
@FlorianMargaine needs more bootstrap
:p
 
ignores @crl
 
Roboto :P
 
yeah... available-in-the-browser fonts
I'm not a fan of web fonts
 
Then you're fucked in regards to nice fonts
 
8:22 AM
monospace?
 
0
A: Suggest a question for the 2016 Stack Overflow Developer Survey

Félix Gagnon-GrenierDo you consume illicit material I think this is a touchy subject. However, since the survey is anonymous I think one can express themselves without fear of recognition. The point here is, what if software on earth is mostly written by high people? I'd really like to know the facts. reword th...

Americans consuming kinder surprise eggs could answer this with a "yes". — Cerbrus 4 mins ago
Hehe
 
crl
@RoelvanUden but your single source of truth has 'side-effects' as Dan Abramov call them
 
@crl I have a single store (just like Redux) and a single UI that registers for state changes on that store (just like Redux). Then the store exposes a 'revisor registration', which registers a name and a state handler, then returns a dispatcher (so (name, handler: (state, revision) => void) => (revision) => void). Then I can just call the dispatcher to propagate a revision into the system. That's it. No reducers, no combining things and having both actions and constants and other crap.
 
crl
but I guess it's ok
 
@Cerbrus You're not supposed to consume the surprise, only the chocolate
 
8:24 AM
why can't this be stable !
 
oh wait, "kinder surprise eggs" vs "kinder egg surprise"
 
@crl It actually doesn't. It's also immutable, because the store creates a clone of the current state before it allows the reviser to mutate the state. So, the reviser is only mutating a new state. This makes it so much simpler to write revisions, too, because you don't need to take care of the entire tree copy etc.
 
crl
@RoelvanUden ok, complex also, but ok :)
ok
 
@ivarni As you noticed, I got that covered :P
 
8:25 AM
@crl It's really not. It's just a single func. You dont need to think of reducers etc.
 
crl
Yea, slowly I guess I'll make something like that
 
how can one view debian packages on a webbrowser? like use a child process in node and do dpkg --get-selections and then stream the results to res.end ?
 
I like require('util').format very much
 
No it just doesn't work....
did you tried it yourself ? I just gave you jsfiddle
 
8:27 AM
@shortCircuit that can work, yes
but that's not what dpsv will do
 
can work ? :S
but how
 
@FlorianMargaine what is dpsv ?
 
crl
can't help with jquery-dnd, sorry, will be too confused when returning to my app
 
debian package sv
how did you do it?
 
no one helps me though...
 
8:29 AM
@shortCircuit github.com/ralt/dpsv
 
crl
@FlorianMargaine but... it's not in lisp? :p
 
no, where I want to host it doesn't support lisp
 
you are using a database to store the distribution information but where do you get the data from the first time.. (sorry for being a noob)
is it like a global debian package source viewer or just user specific
 
ow I see.
noic
 
8:49 AM
what do you call this ?
what do you call this using jQuery UI Draggable to resize 2 divs ?
 
crl
!!urban bs
 
@crl BS bull shit, duh
 
@crl got anything better to do then trolling ?
 
haha
 
wasteman
 
8:53 AM
that should have been like !!tell Math urban bs haha
 
crl
!!track leaving event with checking getBoundingRect of the dropzone or with that shitty counter thing?
 
crl
no Cap :(
 
9:11 AM
Current status: enabling git hook to reject all force pushes because apparently some people just can't help themselves
 
git commit -m "tihihi"; git push -f
 
more like git reset <OLD_COMMIT>; git push -f by the looks of it
possibly some failed attempt at a rebase, we'll never know
whoever did it probably don't realize they did
 
9:27 AM
@ivarni :(
 
I’m seeking help with my app, willing to pay someone for the fix. Here's the pastebin file, it's based on the events and it's all working till the RoundManager panel (on second deposit made it starts to act crazy, calling multiple times, not following the instructions.) pastebin.com/f7gM4qwf
 
morning
 
Hi ! thanks SomeKittens
if you are here
Neoares hi ! how was you machine learning class ?
 

« first day (1859 days earlier)      last day (3106 days later) »