« first day (2132 days earlier)      last day (2815 days later) » 

12:00 AM
The only truth is that the princess is in another castle.
 
there's actually three absolute truths: en.wikipedia.org/wiki/…
 
@StephanMuller That's assuming that the logic we humans use is not flawed.
 
fair enough
 
It's not. I checked.
5
 
well, doesn't quantum mechanics break all of those rules?
 
12:04 AM
No, he checked
 
hard to argue against
 
@Luggage [citation needed]
[okay, now I'm really off to bed, good night.]
 
10 mins ago, by Luggage
It's not. I checked.
 
!!> NaN === NaN
 
@phenomnomnominal false
 
12:16 AM
shot JS, breaking fundamental logic
 
12:57 AM
chrome is broken youtube videos no longer go fullscreen
 
restart pc
 
your joking did that fix it for you @littlepootis
 
What's the difference between restart and reboot
 
1:12 AM
good morning everyone
in Hong Kong :)
 
good morning
your name triggered me
go to this room and post "morningonengingongingegnging"
 
1:45 AM
@littlepootis how did you know that would fix it?
 
@phenomnomnominal also, every other programming language does this.
 
Question: How to trigger specific element with the same function?
When I click specific element, it triggers the other one.
 
Well, I'm not sure if every language, but Python, Ruby, Java, C++, C, Haskell, C#, Perl, PHP and others do
@Zange-chan what's "triggering an element"?
 
.focus
Applied on different element.
 
@BenjaminGruenbaum oh rly :P
 
1:50 AM
@BenjaminGruenbaum basically, every language that implements IEEE floating-point numbers
 
When I focus on that element "textbox", it affects the other one.
 
aka "double"s
@Zange-chan you mean events? You want to check out stopPropagation, google it
 
Still the same.
 
@BenjaminGruenbaum or singles, or quads...
 
1:52 AM
@BenjaminGruenbaum how is Chicago? Murdered anyone yet?
 
Pretty nice actually, safe, big, I haven't been in a city with so many scrapers in ~3-4 years.
Most European cities have stricter city design laws that forbid buildings over a certain height. Chicago has a lot of sky scrapers - it's not as huge as New York but it's pretty huge.
Also, everyone is too nice
 
So jelly, heaps of my favourite bands are from there, always wanted to go
 
I saw "The Book Of Mormon" on Sunday, going to a Jazz thing tomorrow probably.
 
Based on my question: http://stackoverflow.com/q/38840909/6395838
I want to use the same function on different elements.
 
2:02 AM
I'm trying to think how comfortable I am with an example that says "I love lolis" on stackoverflow...
Also, using jQuery's animate is always going to be laggy and slow
Especially jQuery < 3
Use CSS animation, and just add the classes with jQuery
 
Ben <3's jQuery
 
-100 internet rep points for you
 
Are you a lolicon? :v
Anyway, how do I effect the function on the specific element?
 
@Zange-chan definitely not a lolicon, and in fact I think sexual themes - even those that are not of such a erm... problematic nature are not appropriate in a StackOverflow question.
Also, I'm still not sure what you mean by "effect the function on a specific element"
I've read your question on the main site and I still don't understand what you're asking - maybe try phrasing it differently?
 
2:07 AM
@BenjaminGruenbaum I mean, I add a .focus function, which is not there, which animates by adding padding, just like on the sample .gif.
 
You will never get good performance with your current approach
 
When I focus on the other contenteditable, it affects the other one.
 
Because you're animating with JavaScript which animates on the CPU and the frames don't sync since jQuery 2 animates with setTimeout.
 
Yup, its just a test. I just want answers for now. :v
 
jQuery 3 does a slightly better job using requestAnimationFrame, but CSS animations are both easier and much faster.
contenteditable is a really really quirky API with a ton of cross browser differences, I warmly recommend you look for a solid wrapper.
 
2:08 AM
ditto on jQuery 3
 
What I'm doing now is testing, still a draft. Improvements will come next. :v
 
I'm not criticizing you, I'm giving you advice
 
I know. And thanks for the knowledge. I'm just a bit new in jQuery. :v
 
@techie_28 I learned Java from official tutorial, which is pretty comprehensive and up to date. Check out The Really Big Index. Concurrency is here‌​.
 
So how can I execute the function on the specific element?
 
2:19 AM
@William experience
 
Solve it.
 
2:37 AM
@littlepootis lucky guess then ehh?
 
@William nah, it happens to me at least once every week.
Occupies viewport and pootises.
 
Never happens to me. But then I use Firefox...
 
I'd use Firefox if it supports touch scrolling on Linux
 
3:00 AM
<<< recently migrated to Win 10 (from 7/8)
 
Uh.. you're working on a large-scale node-based project (monolithic), can you share the dependencies and devDependencies parts of your package.json?
It's for um.. research.
Frontend peeps can, too.
 
Just once. Just once. I want to see a TV commercial for a Truck where the announcer has a high pitch voice.
Effective Advertising: My sister just bought a Dodge Truck. When I stepped inside, my voice dropped an entire octave.
 
0
Q: How do I load my scripts into webpack

BatmanI've used webpack to bundle my npm dependencies in the past, like jquery, lodash, etc. I'm having trouble figuring out how to bundle dependencies AND my own scripts? Loader.js: require('expose?$!expose?jQuery!jquery'); require('lodash'); require('react'); require('slider-component.js'); // f...

 
3:24 AM
@FlorianMargaine Nice, thanks!
 
4:02 AM
 
Guys, I am working on a autocomplete functionality. The problem that I am facing right now is that when I go over the autocomplete options using the keyboard arrow keys, the scrolling is very weird.
Halp!
I want the focussing not to affect the scrolling, but the focussed element needs to be in the viewport.
 
@SterlingArcher That's really good for a wild pokemon. All of my wild ones are closer to 60%
 
 
2 hours later…
user3119231
6:25 AM
good morning, knights of the holy grail
 
Ekn
servants, rather.. or masters
 
6:54 AM
@cswl hi!
 
@Victor Y
 
Diff views are a pain in the ass to read. So, feature request to (at very least) remove that ugly strike from them.
 
you mean eyes?
 
user3119231
ass = eyes
 
more like eyes on the.. nevermind
 
7:17 AM
@RahulDesai Set overflow: auto on your <ol>
Also, don't give your <ol> an ID, what if I need more than one autocomplete fields on the page?
(You, a component library, should not be adding any internal IDs to the DOM)
 
Hiya
 
user3119231
?
 
Hi everyone, is there anyone who can clear my point on polymer?
 
7:36 AM
i believe i can
 
wonderfull, Can please anyone tell me if we have two polymer components on same page, is there any possiblity of conflicting between their js files?
or they are isolated just like CSS files
 
depends on how you write it
usually we write Polymer({ options and things here})
this way you cannot have any conflicts
 
it means we can make JS files private?
 
but if you put things in the global scope, it might cause conflicts
nothing is private in browser javascript
you can wrap things in closures, this way it will not leak to global or have conflict with other files
 
but if i am using third party js libs?
 
7:40 AM
simply wrap your whole js polymer script with:
<script>!function() { /* code here */}</script>
or
<script>(function() { /* code here */})()</script>
the should not leak, unless the library is badly written
 
1 message moved to Trash can
@AhmadBamieh Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@CapricaSix wow lol.. crtl+k doesnt work here
 
1 message moved to Trash can
@AhmadBamieh Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
`<script> `
`var IMGLOBAL = 'a'; // this is global (on the window object) `
`Polymer({is="my-element" ....}) //all inside is private `
`</script>`
 
7:45 AM
Anyone knows about licensing here
Apache Version 2.0 to be specific
 
Thanks, only one point making me confused, if i build some component with third party js lib, will it broke if it is placed on a page having different version of that lib?
 
@Mathematics What's your exact question ?
 
@muneebShabbir read about semver or semantic versioning. if the library follows semver, and the version is not major, it should not break, if it was a major version difference then it probably wont work
 
@DenysSéguret I made tons of modifications to this library
 
7:47 AM
I think Apachce V2, wants me to comment every single line I added or modified
which going to be a pain...
 
@AhmadBamieh many Thanks
 
welcome
 
@Mathematics I don't think so. You just have to include something at the top of every document, like "Warning: This isn't the original file which can be found at ... but a version Mathematics changed for his own goals"
It must be very visible and at the top
But seriously, changing a standard lib is almost always a bad idea, not for licensing reason (Apache 2 is so lax you're basically free) but for maintenance
 
@DenysSéguret in sense of licensing ? :S
I had no choice
 
And what will you do when the base library changes and you'll need to update ?
 
7:52 AM
nope, it was copied for once
I added some stuff on top of it, but it's too messy to keep track of changes
with some modifications
 
morning all
 
Sometimes questions are so frequent and basic that it's hard to close as duplicate. Every time it's answered by bad coders in a bad way :\
This is a frequent question but it's hard to find a correct QA for closing among the thousands of similar ones having so bad answers... — Denys Séguret 32 secs ago
 
I have a react component, where I execute a dispatch. Can I somehow call another function in that component when I dispatch it directly in the component declaration like this?
<CreateRequest
	handleVacationRequest={(description, request) => dispatch(addVacation(request = {
		von: this.state.requestDateFrom,
		bis: this.state.requestDateTo,
		totalDays: this.state.requestWorkingDays,
		beschreibung: description,
		username: localStorage.getItem('username')}, userID, userRole, departmentID))}
</CreateRequest>
after the dispatch is done, i would like to call another function in that container component
 
@elsololobo this is not syntactically correct
 
why?
don´t get any errors
 
8:04 AM
because it is <CreateRequest ... </CreateRequest> notice the absence of the first >
but however, why do you need a component for that?
 
ah that, yeah i have excluded the irrelavant code and did that mistake
it actually looks like u said
 
@SomeGuy did you read it?
 
@elsololobo can't you just use a function for that?
 
@Mathematics And that's bad because libraries are also maintained to fix bugs and improve performance. You can't enjoy the bug fixes for free if you modified the library. It won't matter much for small typos, but it's often a big change when you realise you need the fix (e.g. compatibility with new browsers)
 
@Victor hm, the problem for not using function was that I don´t have access to the var userRole, departmentID outside the render() of that component
 
8:08 AM
@elsololobo can you write a pen on codepen or create a gist or something with as much as you can of your corde? I can't get the idea from that snippet only.
 
@Victor i try, but there are so much server request in the background, would probably cost me my whole day to do that ;)
 
wtf is kotlin
 
@elsololobo not interested in the server-side things
 
> Have you noticed?
Semicolons are optional
 
@Victor just not executable component code is ok?
 
8:14 AM
 
@elsololobo I want to see the code of the CreateRequest component
 
@Cerbrus that's not possible
 
@Victor child component (pastebin.com/H8yUNx84) Container (pastebin.com/cLexLmua)
 
Is it a good idea to write all my component unit tests in Angular 2 in typescript (same as the components) and then import them with my default module loader in the same fashion? Or is it better to use ES6/ES5?
 
8:19 AM
@elsololobo hint: you should use MuiThemeProvider on an App component (or something like that), that wraps all your components
 
@Victor ok will do
 
@SvetanDimoff I am not experienced in Angular, but keeping the number of language low is usually a good thing.
 
@elsololobo so what's the problem in calling a function in the container?
first of all what function ?
 
@Victor and to my initial problem? What I´m trying to do is actually pretty simple. I just want to clear the values of both txtfields, but to do that i need to access the state of the container.
@Victor e.g. createRequest()
@Victor because the container get´s the state from the child component calendar. But if i just bind a function on the <CreateRequest /> thing, I don´t can access the props that are passed to the container component
sounds wired :)
maybe an architecture problem
 
8:29 AM
@elsololobo 100% ;)
 
shit ^^
 
so you want to clear the text fields in the CreateRequest component when the user submits it, right?
 
oh, I got it wrong at first, ok, wait a little. that's not such a big problem
however, you should still rethink your application
 
i really should ^^
while writing this, i recognized how bad it is^^
 
8:35 AM
look at the differences. I mentioned it there as well, I have no experience with Redux, but I gave you an idea of how I would handle it in a plain react app
 
@Sheepy This library was abandon 5 years ago and there is no hope for it being improved
 
@Mathematics Then you should fork it and commit your updates! OpenSource spirit! :D
 
@Victor ah perfect. I guess that help´s me. Thank you!
 
@Sheepy Would love it, but my changes completely changed some of the functionality
 
@elsololobo have you checked it?
 
8:37 AM
@Victor i currently do
 
I guess you should dispatch something to the state manager, instead of directly setting the state as I did there
 
hm, the problem is that the txtfield´s value is a propof the Container component, it seems that i can´t override the vaules with setState here this way. I guess i really need to rewrite/ rethink the app at this point
 
@elsololobo mm yeah...
but wait
if it's a property of the container then, instead of doing it inside the CreateRequest component, why not do it in the Container? at the submit callback of CreateRequest
so it would be something like
 
<CreateRequest onSubmit={() => {
    this.setState({
        textField1: '',
    };
    otherCallback()
}} />
 
8:41 AM
@Victor Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@CapricaSix shut up
 
with otherCallback() you mean that?
<CreateRequest
	handleVacationRequest={(description, request) => dispatch(addVacation(request = {
		von: this.state.requestDateFrom,
		bis: this.state.requestDateTo,
		totalDays: this.state.requestWorkingDays,
		beschreibung: description,
		username: localStorage.getItem('username')}, userID, userRole, departmentID))}
</CreateRequest>
 
other callback is the dispatch(...) call
 
sorry, but could you probably wirte your pseudcode into the code above, i don´t get it syntactical correct
 
ok
 
8:47 AM
but wait... I thought i can´t use .setState within render()?
 
@elsololobo you're not using it inside render
 
or is this another case because it is within that component
 
you're using it in an event's callback, in this case, the submit event
 
basically that function is not called at render, it is called when that event happens
 
8:48 AM
alright
 
but what is addVacation(request = { /*...*/ })?
 
the action
for the reducer
it is a redux thing
;)
 
ok...
 
<CreateRequest handleVacationRequest={(description, request) => {
    dispatch(addVacation(request = {
      von: this.state.requestDateFrom,
      bis: this.state.requestDateTo,
      totalDays: this.state.requestWorkingDays,
      beschreibung: description,
      username: localStorage.getItem('username')
    }, userID, userRole, departmentID));
    this.setState({
      yourTextField: '',
      anotherTextField: '',
      // etc
    })
}} />
@elsololobo I think that's it
 
8:51 AM
yeah
seems to work
thanks buddy
 
@elsololobo np
 
user3119231
 
user3119231
ok.
 
@Gouverneur tipical
guys, I need some advice. I am writing an API for my application that handles file uploads. how it should work. A use uploads a file, that file is given a random unique token, indexed in the database along with the file owner, mime type and upload type. Then, when a user requests /api/media/<token>, the database will be interogated and the file will be served, with a content type as the one found in the db
I cannot use the express.static because that does not allow me to handle user permissions, mime type etc. I decided I would go about reimplementing SendStream, but I wonder if there is another easier way
 
@MadaraUchiha wtf. I thought they fixed something in exactly that part of their IDEs months ago. What exactly was that fix if that is still possible?
 
9:07 AM
"The only prerequisite for the (remote code execution) attack was to have the victim visit an attacker-controlled webpage while the IDE was open." wow.
 
Oh, it's the disclosure of the original bug!
 
someone, please?
 
Yeah. It teach you how to hack JetBrains IDE.
 
0
Q: I modified a apache V2 JS file, what should I do now?

MathematicsI made significant changes to this library, https://odatasamples.codeplex.com/SourceControl/latest#Tools/ODataQueryBuilder/Scripts/odata-query-builder.js It has apache V2 license and I made tons of changes + addition to it, would it be ENOUGH to add following to file below Copyright, // "Wa...

@DenysSéguret I find this which is really confusing
 
Read the license itself
 
9:14 AM
I did, it is so confusing :(
@DenysSéguret In license it isn't explicit as it is in that whitesource... reference
 
@room-owners how to add rss feed of to my chatroom?
I added this - http://stackoverflow.com/questions/tagged/backbone.js which doesn't work
 
@BadgerCat Thanks :)
 
@Victor Optimally, you wouldn't serve static files through express at all
 
@OliverSalzburg but then I wouldn't be able to query the database
 
9:29 AM
I assume you're not saving the file contents in the DB, so you have a file on disc in a separate storage area. Let nginx serve the contents of that storage area and just HTTP redirect to there when needed
Oh, you do query the database, then you res.redirect('http://static.nginx/token')
nginx should be able to automatically deduce the mime type from the file
What we do is to pull the actual mime type from the files magic bytes on upload, then get the default file extension for that mime type and make sure that is the file extension on the file
 
@OliverSalzburg say I'm user Victor, I create a file and set the privacy to 'only me', you, user oliver want to access that file, and I need to give you 404, so you don't even know the file exists. If I do it through nginx, a path to that file already exists, and nothing would prevent you from seeing that file
 
@Victor Well, you can still send the 404 in your express application instead of the 302 to nginx
 
yeah, but if you go directly to http://static.nginx/token, you will see it
 
If you're concerned that there is basically a publicly accessible file on your nginx, don't be. Just use a long hash as the base file name
 
@Mathematics Read the paragraph for point 1 again. You only need to mark the modified files (assuming you don't release your changes in another license).
 
9:34 AM
Or set a cookie that contains an authorization for a specific token, then check that cookie in nginx
But that's too much overhead IMHO, using long hashes to hide content is pretty common these days
 
@MadaraUchiha wat, that's mad
 
@Sheepy that is right, thank you
 
hallo
 
@towc o hai c:
 
> Lastly, even though Jetbrains doesn’t have a bug bounty program that I’m aware of, and I definitely wasn’t expecting anything, Jetbrains quite generously awarded a bounty of $50,000 for my report and help reviewing the patch. I’ve asked them to donate the bulk of this to the PyPy project to fund improved Python 3 support, fingers crossed for await/async support in PyPy :).
dafuk
the guy rejected $50k?
 
9:44 AM
@FlorianMargaine a part of me was like.. am i a bad person? because i probably wouldn't have done that
 
I clearly wouldn't have either.
 
Maybe $50k is nothing to him
 
I wish $50k was nothing to me. :(
 
Moi aussi
 
we can ask him to donate it to JS instead, then we can share it
but seriously? Python support?
 
user3119231
9:47 AM
I would probably bury someone in the ground for $50k
 
if it were charities I would kinda be understanding
 
ik ook
 
@Gouverneur I'd do it for a snickers
 
@towc mozilla donated ~$300k to pypy recently
 
everyone look for bugs in jetbrain's stuff, quick!
@FlorianMargaine never turning firefox on again
 
9:48 AM
@towc you've given me an idea
 
@FlorianMargaine what was the bug about btw?
 
make software with holes, sell it on, get a friend to "find" the bugs
 
user3119231
^
 
@towc see pinned messages
 
thanks
 
9:49 AM
@bitten but you'd get more money with the "sell it on"
 
user3119231
or just marry @bitten and let her find the bugs.
 
@Gouverneur i'm not a grill :p
@FlorianMargaine yeah fair enough.. and that step is hard to do successfully anyway ;_:
 
heh, "saynotolinux.com". He deserves nothing
 
user3119231
10:04 AM
@bitten Damn.
 
@Gouverneur oh it's you again.. i didn't recognise you until i had a better look at your profile picture
 
the whole thing is pretty nice tho
 
user3119231
thank you, ladies.
 
ASR
10:20 AM
document.getElementById()=''; is not working in IE8 and chrome
can you please tell me the solution?
 
user3119231
Do a fiddle with your code or never happened -> Actually it's document.getElementById(..).innerHTML = ""
 
that doesn't work in any browser
 
@ASR Why do you want to assign value to a function result? Don't think that'd work in any browser as written.
A quick survey. Who know how to add section title to page header in Microsoft Word? One that "auto update" page by page.
 
user3119231
Isn't this related to header and footer?
 
user3119231
 
user3119231
10:26 AM
You can configure everything by clicking on the arrows.
 
@Gouverneur Kind of. But while you can insert page number, you can't insert section title (not document title).
It's not very obvious, and I just learned today that no one else in the office even know it is possible.
 
user3119231
Should be possible -> click arrow below page number -> page number formatting -> capital number include -> beginning with "title ..."
 
user3119231
The only thing I don't know is how to automatize this. EDIT: I found a way, but it's very long and German
 
No. Not page number. For example page 2 is in chapter "Introduction", page 3 is chapter "Hello World". This is the chapter/section title.
 
user3119231
Maybe this will help: pastebin.com/kjPSjvVj
 
10:33 AM
Yes. That's the correct way. Our admin instead manually created different sections to hard code the headers... and others don't even know how to do that.
 
user3119231
save this manual.
 
10:48 AM
So I found this book cover
wtf?
 
user3119231
At least clean out the white spaces, pootis.
 
@littlepootis windows' manual?
 
user3119231
Here you go, ladies: kindlescout.amazon.com/p/35A6GIM4TB27G (And it's part 3! - Seriously 3 parts?)
 
> When you understand too many things, your brain starts deteriorating.
 
@Gouverneur No, not seriously, probably fake :P
 
11:02 AM
wtf?
 
user3119231
@OliverSalzburg I swear on my console that this isn't a fake.
 
@Gouverneur Then why are there no other hits on Google for the authors name?
 
user3119231
Please, look at the cover. If I were google I would totally nope this book as search entry
 
user3119231
4 days left to nominate this book - this is an event-book.
 
the author Q&A is fucking glorious
I mean
> Letting the drive sustain till the end is hard because a bike is no more than a motor cycle but it can do wonders by flying, swimming and rocketing into space.
 
11:06 AM
Hmm, seems like an awful lot of work to write those chapters for a fake :\
Maybe it's actually genius to make to book go viral
 
anyone has any idea how to use karma with babel & browesify?
 
user3119231
@OliverSalzburg you can nominate him. It's just an event, no official book.
 
user5116395
where can I ask a question about stackoverflow (the site) itself?
 
meta
 
user5116395
 
user5116395
11:15 AM
thanks
 
11:28 AM
Hi everyone :) I was wondering if someone could help me out with an issue im facing and too much of a noob to think how to do it: http://jsfiddle.net/L9ybjLmq/

i have built a dynamic form. if you enter a price first, then type in a QTY you will notice it shows total price and adds the tax up under neath (GST).

Now add another row of form fields (press plus button) and enter a price first then a QTY after. It obviously doesnt add that onto the total taxes below.

i dont know how to get it to add up any newly added field rows and add it into the final totals down the bottom. Is anyone a
 
11:51 AM
@Elgoots The way you use classes is weird
If you're generating a unique one for each element in a row, why not use id?
 
suits my personality :P
i could use an id i guess. no real difference tho is there?
 
That being said, the way you attach the input event handler makes it so that it will only select elements once, that's obviously a core problem here
You want: $(document).on('input', '.input-qty', function(){
But that obviously doesn't work, because you give all elements unique classes...
But it should give you a starting point to work out the rest ;)
 
12:22 PM
0
Q: jQuery , add class to button if all inputs are not empty

virepoIm not the best at javascript, and i'm having trouble making my form disabled unless all my input fields are not empty. And I will add other things, like making sure the email is an email and password is a minimum of 8 etc.. , but for now I just want to get it working if all inputs are not empt...

 
@SterlingArcher imgur.com/gallery/zdhrO
 
what the fuck
 
Can someone look at my stackoverflow question and point me in the right direction please
i think my logic is serious stupid -_-
 
user986408
has anyone experience with docker, ci and deployment?
 
12:51 PM
@rlemon I saw that this morning I laughed
I knew it couldn't be real from the start, but a part of it was like, damn, I hope this isn't real
 
did you see 48 beers and a unicycle?
@SterlingArcher he is giving it up
4 more days and he's done
that part is real
 
Was that the people who wouldn't do the math on 48 beers for price per?
Yeah that's a shame, he's good
 
on reddit:
> Of course you're Canadian you magnificent son of a bitch.
I would be WAY too worried about dropping the beer
 
user3119231
12:54 PM
I would, too.
 
@rlemon did you watch the video I sent this morning? I was cracking up hard
 

« first day (2132 days earlier)      last day (2815 days later) »