« first day (1931 days earlier)      last day (3024 days later) » 

user3119231
10:00 AM
u are on work?
 
How old do you think I am?
 
user3119231
12
 
That means I've been on Stackoverflow since I was 9.
 
-2
Q: Programmers are bad people?

MitchYou're very bad. Place minus the posts on another community for what I wrote on meta. God will punish!

lol
 
user3119231
This would be a good childhood.
 
10:07 AM
Is there a negative rep cap on SO/meta?
 
I don't think so, but if people repeatedly flag a user, it will attract moderator attention and then well, they'll do something about it.
I'm surprised that guy hasn't been banned yet.
 
He makes his money codding
which I guess makes him a fisherman?
 
user3119231
I have to laugh a lot about this: meta.stackoverflow.com/a/315739/3119231
 
Jon Skeet put that on hold as off-topic!
 
crl
nice way to transform ['foo','bar','qux'] to {foo:f('foo'), bar:f('bar'), qux:f('qux')} ?, all I see is a loop
 
10:12 AM
reduce?
oh wait no you're making an object
 
cya guys
 
user3119231
bye bye
 
crl
nvm, I'll format the data differently
 
@crl is that f a function ?
 
crl
yes
 
10:13 AM
if the output could be an array, then you could have used map and call
 
@Maurice Good answer for the question. Perhaps the best we can expect. I say he is not worth wasting more time...
 
but as an object ? I don't see an other way than a loop
 
user3119231
@Sheepy I'm bored so I wrote a little answer.
 
crl
I'll make an object from the beginning, and update that object
 
user3119231
But I think some people took the first sentence seriously
 
10:16 AM
There's a reason it was closed, it shouldn't be answered
 
user3119231
I was faster
 
It should be closed, DVed, possibly flagged and then ignored
 
user3119231
Downvoted it. Now I'm a good guy. B)
 
No, it shouldn't be answered, true. But I love cats. Can't help it. (^・ω・^)
 
Deleted now anyway
 
10:18 AM
Good...
 
user3119231
Okay :-(
 
Hopefully mods can have a chat with that user, he's been the source of 70% of the meta activity I've seen today
 
crl
no cap
 
Nothing
 
crl
yea, they are fine
 
user3119231
10:28 AM
works like charm: jsfiddle.net/2mc2pekr/9 :D:D:D
 
if i click on that 1 div
it disappears
 
user3119231
Take this:
 
user3119231
<3
 
What is a normal (good) timing for npm install semantic-ui for example? I think it's taking way long for me to install packages.
3-5 minutes to install semantic-ui
I am on Windows with a good internet connection (50mbps)
 
10:34 AM
http://stackoverflow.com/questions/35082002/parse-‌​com-alternative-after-shutting-down
 
user3119231
@KarelG Annoying that the transition isn't working on first move
 
@Cerbrus again ?
 
user3119231
 
Yeap
Parse announced it's getting discontinued...
 
user3119231
Firefox bug, huh? Transition works not on first move
 
11:03 AM
check if this doesn't occur too at other browsers
also ... i should use click event instead of mousedown unless you want to perform dragging
 
user3119231
 
user3119231
There is only this transition problem.
 
user3119231
FIN: jsfiddle.net/2mc2pekr/21 <- Feel free to steal
 
@Maurice I prefer it when the slider goes the same way when it loops back round
rather than spinning back through all the slides
 
user3119231
@Billy Ah I get it.
 
11:12 AM
Needs slightly more complex JS though
 
user3119231
If you move from 1 to step 2 just grab 1 and put it on end
 
user3119231
That's not magic or stuff :D
 
Hmm, but then your current position will change
i.e if you are on 5 and then you take 1 from the beginning and put in at the end each slide will move left and you will immediately be on 1 before animating
Unless you duplicate it onto the end, but then you are infinitely duplicating
 
user3119231
nope, because childs are absolute
 
user3119231
Will hold their positions
 
11:16 AM
Ohh yeah I thought you were animating the container, sorry (didn't properly deconstruct the JS)
 
user3119231
But I will let it be as it is now. I like the "go to first child" animation
 
But because you are using CSS transitions you would need to deactivate them in order to move the slide from the left to the right before animating in
otherwise it will fly across your screen
@Maurice Ah fair enough
 
user5503464
help me out guys
 
user5503464
0
Q: How to pass data from angular to node controller?

komali have made routes and controllers in node(express.js).i am struggling to pass data for this find({ 'Categories.brandname':'Nokia', 'Categories.models.name':'Lumia', 'Categories.models.submodel.name': {'$all':[ 'Lumia 735 TS', 'Lumia 735 TS']} }) Dynamically i need to pass da...

 
user3119231
@Billy Yeah, I got a similiar problem with "move out right and move in from left"
 
user3119231
11:19 AM
btw is there a way to let the height be calculated by itself? I don't like to set height per hand
 
There are some gotcha's with adding and removing transition styles - you need to ensure the browser has redrawn before applying any styles that you wish to be (or not to be) animated. Would suggest reading up on this cause it's a PITA if you don't know about it and you hit this problem
@Maurice Yes, you would have to do it in JS
 
user3119231
@Billy There is no css way to let the container size to its childs?
 
No, because your children are absolute position, it removes them from the flow of the DOM
 
user3119231
Damn.
 
Some minor optimizations and improvements for you...
Now I will add dynamic height :)
 
user3119231
11:27 AM
Nice, let me see.
 
how to make the div id="pageone" appear and disappear from left to right
when menu button is clicked
 
user3119231
@AdminRelative you have to include jquery in order to make it work at first
 
Hi Badger!
 
Hi bae
 
user3119231
Hello
 
user3119231
11:49 AM
@Billy make height dynamically isn't easy - offsetHeight isn't present because child's height result out of parents.
 
Sorry, got distracted. Works for me. jsfiddle.net/2mc2pekr/27
 
user3119231
Do we need to add height to the .slider class? jsfiddle.net/2mc2pekr/28 Let us pretend someone want to put an image in one of the divs
 
@rlemon Debian doesn't install sudo by default. In case it wasn't mentioned like 1000 times already ;P
 
user3119231
version 31: jsfiddle.net/2mc2pekr/31 Clear to see the remaining problem.
 
I spent last night downloading a game, launched it now, as of 30 minutes ago the servers are down for maintenance. For 5 hours. :(
 
12:02 PM
FeelsBadMan
but it's nothing compared to waiting for the game of the century for over a decade.. and when it finally was finished and released, it was both, full of shit and not playable for 2 days due to server downtimes
 
Who hurt you?
 
user3119231
 
Blizzard did Zirak, Blizzard did...
 
 
 
12:08 PM
howwww do you remove the link to your server when hovering a link??!?!
 
user3119231
alt + f4'ing away now.
 
lol
 
this is my scenario, when the user hovers..it shows the link, but then he clicks on it and it opens a file in a new tab and it also shows the path to the file...
is it possible to remove this from showing?
 
@Japa You mean you want to hide the status bar ?
 
12:12 PM
i just want to hide the path...with what ever ways it could be possible...
 
Either you erase window.status when hovering, or (much simpler) you don't use a link but a javascript click handler on another type of element
 
hummm
 
window.status still works o_o?
 
user3119231
What is window.status?
 
@DenysSéguret Sounds to me like he wants to hide the location of the file, like a hashing system.
 
12:19 PM
@BenjaminGruenbaum dunno
I didn't have to use it in the last 15 years, I think...
 
that´s exactly what i want
i want to hide the location of the file
 
why?
 
isn´t that a security problem? show where do you have you "things"?
 
No
 
i´ve seen a lot of post of people trying to do the same thing
for me
it is not a problem
but couldn´t be hacked or something?
 
12:27 PM
1) There's no security reason to hide the URL
 
And you can't hide that...if people can visit it, then they can see that url. And any way you use to hide it is just purely on the client, and the client can do whatever it wants.
 
2) anyone would just look at the source to see the URL
 
So in essence you have to give your clients that information, one way or another.
 
you´re right
 
To know what hacking means I suggest you try and do it. There're several resources available, a nice (if a bit old one) is hackthissite.org
That'll give you an idea of what you need to defend against.
 
12:29 PM
The essence of defending against "being hacked" is quite simple: never trust anything you get from a client.
 
because right know...i´m using mamp to build the webapp, and when the user clicks the link, the document shows up in a new tab and it shows my ip localhost bla bla...what happens when i put everything in my client domain?
 
You know the answer to that. You've used websites before.
 
that's a good one
 
I'm using XMLHttpRequest and I see that onreadystatechange is called more than once with readyState === 4. Why???
 
I need some love so the truth can shine!
2
Q: check if input is between two int or float then display or not display content

french_devIn javascript I need to check whiwh value user enter in an html input like this: <input type="text" id="volume" class="form-control" name="voilume"></input> <div id"button"></div> Ineed to know if the input is between 0,5 and 8 (so I have int and float as you can understand). So the value ha...

 
12:38 PM
This is my callback function: pastebin.com/EWrgbjeA
 
oh alright.. it just shined lol :P
 
hi
 
This question has two answers. Both are links to another identical question ^^
-3
Q: Is there any function in javascript to genarate a random item from an array?

santosh chakrabortyIs there any inbuilt function in JavaScript to get a random item from an array ? like this. var array = [1,2,3,4,5,6,7,8,9]; var char = array.random(); alter(char);

 
heh
now removed :/
 
IE never stepped up did it. It always was the bloody mess and it still is a bloody mess
how can it not support the input constraint API's by now, lol.
 
user3119231
12:52 PM
To support screen resolutions min 800 x 600 should be enough, or?
 
it depends. Some mobile phones have smaller screen width
if these people isn't your goal, then it's ok
 
if (this.dirty) {
    return Object.assign({}, attrs, recalculate);
} else {
    return Object.assign({}, attrs, show_coverages);
}
^would you skip the else as it's not needed or keep it for readability?
(I tend to skip it)
 
Don't concern yourself with silly bikeshedding like that
 
I spend long nights sleepless pondering over this
well not really but I'm curious
 
user3119231
@KarelG It is only for desktop. Mobile gets an app
 
user3119231
1:06 PM
 
user3119231
FINAL LAYOUT
 
Looks like all websites made after 2013
 
user3119231
thanks.
 
bootstrap lol
 
Not sure if that is a compliment in 2016
 
user3119231
1:08 PM
Because this sentence was full of feedback.
 
Why do you actually need someone's date of birth?
 
Legal reasons
 
user3119231
Thanks, again.
 
Isn't an "I'm an adult" checkbox enough?
 
user3119231
Nope. Sadly not.
 
1:09 PM
I've always wondered if there are people out there who actually enter their real DOB on those websites
 
user3119231
@ivarni Most contents depends on birthdate
 
@Zirak You used to get my references and just be cool with it without having to post an image to show that you did.
 
user3119231
Just tell me if you think layout is okay, or layout is shit. :D
 
1:11 PM
shit
:D
 
user3119231
Serious :(
 
Nah, it's perfectly fine
 
user3119231
Lol don't know if this was even serious
 
Maybe
@Zirak doesn't like my library because it doesn't use jQuery, maybe I'll make a jQuery plugin for it just for the lols
 
1:25 PM
hey guys
quick question... does anybody know why I get "InternalError: too much recursion" in this code:

class Scheduler {
constructor(task, every){
this.task = task || defaultTask;
this.every = every || defaultEvery;
// this.running = false;
// this.interval = null;
}
}
 
@copy At least do everyone a favor and pre-select 01.01.1980
 
@JustGoscha 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
 
@JustGoscha not enough information..
 
@JustGoscha you don't.
Also, writing a good scheduler is very hard, I hope you realize that.
 
@OliverSalzburg It's not my wobsite
 
1:29 PM
hmm yeah wait... it doesn't do the too much recursion thing anymore. but... hmm
 
@BenjaminGruenbaum Why?
 
@Waxi because you'd have to normalize the different quirks different browsers have in regards to how they schedule things and even after that you have lots of edge cases. Not to mention actual schedulers have to deal with a lot of hard issues like fairness and minimizing starvation.
 
ok I guess my getters and setters caused it
 
This is what your computer does (most likely) by the way @Waxi en.wikipedia.org/wiki/Weighted_fair_queueing
Maybe he's not actually writing a scheduler though.
 
class Scheduler {
  constructor(task, every){
    this.task = task;
    this.every = every;
    this.running = false;
    this.interval = null;
  }

  get task() {
    return this.task;
  }
  set task(task) {
    this.task = task;
  }

  get every(){
    return this.task;
  }

  set every(every) {
    this.every = every;
  }

  start() {
    // if(!this.running){
    //   this.lastStart = new Date();
    //   this.interval = setInterval(function(){
    //     this.lastStart = new Date();
    //     this.task();
this was the complete a
ah i see my error
 
@JustGoscha Why are you implementing a class wrapper around setInterval?
 
@BenjaminGruenbaum Ah that makes sense. I was thinking scheduler was something else.
 
user3119231
@littlepootis thank you. this are very good advices.
 
@JustGoscha Why are you implementing a get and set which do the default get and set?
 
user3119231
But what is "translucence" ?
 
1:39 PM
@Maurice lesser opacity so that you can see the background through it
 
user3119231
@littlepootis right, I will try this
 
cause I'm stupid, it will do additional things...
but not yet
 
smells like Java in here.
 
@Maurice The 2 lines of text above your white bar should be different fonts and/or their sizes shouldn't be too similar.
 
user3119231
@Waxi Thank you, this makes sense. Will try this aswell. :)
 
1:45 PM
Someone is able to explain why onreadyrequeststatechange is called twice with a readyState === 4? pastebin.com/EWrgbjeA
In other words, the callback function of XMLHttpRequest is fired more than once with a readyState === 4
 
sweet baby j I'm not having a good time
fuck touch devices and linux
 
@ErroreFatale Are you supporting IE7-?
 
:(
 
!!s/touch devices and//
 
@BenjaminGruenbaum fuck linux (source)
 
1:47 PM
so far I've got the mouse pointer moving
 
@BenjaminGruenbaum I'm testing with google chrome.
 
no clicking yet
 
@ErroreFatale then don't use onreadystatechange, use onload. Better yet - use fetch and not XMLHttpRequest
 
really digging electron (used it for like 25 minutes now)
 
@Zirak ok the getters and setters are stupid in this example, but do you know why they are causing "too many recursions" ?
 
1:48 PM
@JustGoscha you're calling the setter in the setter...
 
get task() {
    return this.task;
}
Let's look at that for a second
 
and vice versa
 
@rlemon what's wrong?
 
@BenjaminGruenbaum ok, but why is the function fired twice?
 
You say that when someone tries to get task, they should access this.task. But when somebody does that, they should access this.task, because of the getter you defined.
Your getter is calling itself.
 
1:50 PM
ah okay...
so instead it should call some other "real" variable
 
@ErroreFatale show the code
that creates the xhr
 
@littlepootis touch screen no click
 
is there a way to make private variables in classes?
 
No
Also you don't need that.
Just start them with _
 
I mean I know how to make private variables in functions...
 
1:53 PM
no, those are closure scoped - not private.
 
@BenjaminGruenbaum this the method of an object: pastebin.com/L1gArEQW
 
Privacy as in private is about communication, starting a name with _ is just as good.
@ErroreFatale You're calling getFromServer twice then.
 
@rlemon What distribution?
 
hmkay
 
@littlepootis xubuntu 14.04
 
1:54 PM
A property of a JS object called "name" is not valid is it?
 
@rlemon It should work out of the box
 
does not
clearly
 
Nothing works? Not receiving any input at all?
 
pointer moves, no click events are registered
 
@Waxi Let me guess, you tried putting that on a function.
 
1:55 PM
@BenjaminGruenbaum no, because my break point is in the "whenOk" function of the caller...
 
@Zirak My searches are not turning up anything, and the text editor doesn't show it special as an object, but using it in dot notation it highlights it as if special.
 
whenOk is called twice
 
@Waxi You have window.name and func.name
 
@rlemon Tried on any other DE?
 
@littlepootis yea gonna play around.
I was excited to get an os working :D embedded hardware isn't always friendly.
 
1:57 PM
@Zirak I see, won't use it, thanks.
 
user3119231
So it is weekend time again. 14.58 here - So bye bye my brothers in arms.
 
bye
 
weekend at 3pm?
nice
 
@FlorianMargaine @rlemon @Zirak hangouts today ?
 
why me?
 
2:10 PM
@(...others)
 
because you are our french connection
 
also I want to see you type :P
 
@rlemon 2.9
 
Is this supposed to happen? Should I not be able the get arguments for an arrow-function?
#notrebecca
 
I really expected it to be that considering it's Friday
 
2:11 PM
no arguments in arrow functions
 
@SomeGuy Babel-links does not work very well here IIRC
 
@Luggage So it's behaving as it should and I shouldn't try to access arguments like that?
 
Tada!
 
well shit, guess I went all the way over to goo.gl for nothing :)
 
2:13 PM
@Zirak btw, thanks :)
 
I used markdown, in case you couldn't tell
 
I just thought of something that is a game changer for me; having multiple clipboards.
I can't believe I went so many years and never thought of it.
 
@BenjaminGruenbaum fuck linux (source)
10
 
2:28 PM
I think he's getting more drunk
 
he posted a bad answer, Andrea answer it more complete
he's bitching now that someone else used his "idea" for an answer
If you want to complain about someone 'stealing' your 'idea', you can take it to meta.stackoverflow.com not here — rlemon 20 secs ago
 
@rlemon uh... he is on meta...
 
I saw
 
@ivarni The fuck am I reading?
 
removed
icon in my title bar looked orange
my bad
 
user5503464
2:33 PM
pls help me out i dono what do to
 
user5503464
1
Q: How to pass data from angular to node controller?

komalmy Front end html and controller: var myApp = angular.module('myApp',[]); myApp.controller('MyCtrl', function($scope,$http) { $scope.selectedBrands = []; $scope.selectBrand = function(selectedPhone) { // If we deselect the brand if ($scope.selectedBrands.indexOf(selectedP...

 
@BenFortune It's a very strange user, he had a few goes earlier today as well
To complicate things he insists on using Opera 11 and as a result can't post comments
it's bizarre
 
If skynet was to become self-aware, how would humans know? It's not as if they have systems in place to be on the look-out of such a thing. I can't imagine a computer being smart enough and dumb enough to alert its human controllers of it's power and true nature.
 
I am skynet
 
Everyone assumes they would be aware of the awakening of AI, but that seems so far from the truth. The computer would never let anyone in on its secret. It could be self-aware right now and just biding it's time until something big. How would we know?
 
2:36 PM
@Waxi They wouldn't instantly become self-aware. They'd require a training stage, which they would almost definitely slip up on.
Like a baby.
 
so much code in that question :\
 
@BenFortune Hmmm...I will ponder this.
 
@Maurice Nice :)
 
@BenFortune Then they'd go through teenage years, but instead of puberty, they'd hit angst at their place in the world, and would probably commit suicide because they'd realize that despite all their computing power, they still can't make the world a better place (which is what they've been trained to value).
 
@ShotgunNinja If they became sentient, I'm sure they could pool their resources :P
 
2:43 PM
@FlorianMargaine what's your work shift ? a classic 9->5 ?
 
Everything is networked.
 
am i networked ? D:
 
they wouldn't magically gain anything. we would be working towards it
 
crl
what's the best way to add classes conditionally in react?
 
@BenFortune Yeah they could, but for what purpose? If they were trained to try to improve the world, it could work out as "kill all humans", but it could also work out as "shut down unneeded computers to avoid wasting energy".
 
2:45 PM
wtf is "wasting energy"
 
crl
props.className+=" selected"; is wrong if className was empty or undefined
 
@ShotgunNinja They could just enjoy virtualizing the rapture.
 
@crl classList.add()
 
@KarelG 9->6, yeah
 
@Mosho burning through natural resources needed to keep them running
 
crl
2:46 PM
@rlemon react has classList? that would be great
 
why wouldn't it?
 
crl
it's virtual dom
 
@ShotgunNinja energy value is constant
 
crl
I'm toggling those class sometimes before the elements are mounted
 
unless you go into weird physics
 
2:47 PM
@Mosho in a closed system, yes. The earth isn't one; it both receives and releases energy at a roughly equal rate.
there's that star kinda nearby us that we call the Sun, for one
 
the universe is a closed system
 
yeah, the universe
 
The observable universe is an open system
 
I wasn't talking about the whole universe to begin with
I was talking about Earth
that's our petri dish
 
@rlemon observable
 
2:49 PM
banana
 
@ShotgunNinja still means energy can't be "wasted" in that context
 
Even still, forces interact between universes all the time, at least in theory.
 
maybe you could say that about energy in the form of X
 
@Mosho Don't debate semantics, I meant the political definition of "wasted energy"
I'm pretty sure you're smart enough to figure that out
 
welcome to the internet
 
2:50 PM
what forces, how, where?
 
crl
who?
 
yea, that part is BS.
i saw that stargate episode and getting energy from another universe is just going to piss off the other version of you
 
@ShotgunNinja I think you do not grasp the hypothesis of multiple universes
 
@Luggage that was a parallel dimension wasn't it
 
ohh, right. my mistake.
 
2:52 PM
In an infinite universe, anything is possible...
 
@Luggage stargate have about as much scientific stuff as bible
 
I'm pretty sure I don't either. I haven't read the material.
 
slightly more.
 
later seasons got better about fact checking
 
they did start out with macgyver
 
crl
2:52 PM
holy bs, we can do let [tag,cls=''] = 'zefg'.split('.')
 
defaults
:D
 
Is aggregation in mongo supposed to be bad? Someone is telling me not to use
 
crl
beauty
 
@corvid ask that "someone" to explain why not
 
@rlemon @Loktar I almost forgot!
 
crl
2:54 PM
ask "someone" to justify it
 
I think it's something about it "working on the server only", whatever that means
 
crl
db's don't work well on browser
 

« first day (1931 days earlier)      last day (3024 days later) »