« first day (2552 days earlier)      last day (2379 days later) » 

12:00 AM
it's been mostly Ok on windows for me.
not perfect. npm issues, but pretty ok.
 
bye see you tomorrow
 
with two separate non-trivial projects
ohh shit, it's that star trek episode where beverly crusher has sex with ghosts in a re-creation of scotland on another planet all episide.
 
well, I should probably turn on hyper-v first
 
@Zirak that fretzealot thing is cool! $200 though
 
@phenomnomnominal It's a hefty sum indeed
oh, I asked them about custom input, and it'll be supported
 
12:04 AM
be keen to try one
 
!!should phenomnomnominal get the fretzealot?
 
@Zirak I expect so
 
nothing you can do about it now, sorry
 
huh, apparently I only got windows 10 home, so docker won't work
oh well
 
wtf?
it'll work with vbox..
 
12:05 AM
yeah, but that's very slow
 
goddammit windows I told you not to restart
 
oh? vbox shouldn't be slow
 
perf aside, I already have vmware
so if docker needs vbox, that kind of defeats the point
 
well, i think docker-machine can use vmware.
 
Going on a plane again
back in 2 days, hopefully :D
Fucking transatlantic
 
12:07 AM
hm, I guess I just grabbed the docker for windows one
 
I mean docker-toolbox. I can't keep the names straight
 
@BenjaminGruenbaum gl, hope the dinner is good
 
@BenjaminGruenbaum Whatever it takes to join the mile high club :P
 
There is a link on the docker for windows that says like "need vbox?" use that. I think that's docker-toolbox and it'll let you use any supported vm.
 
yeah
 
12:07 AM
though.. I hope vmware is one of those.. I know esxi is
 
@ssube no dinner, Ukranian air
Shittiest air carrier ever
 
s/dinner/invasion/
 
some russian takes your seat.
docs.docker.com/machine/drivers I don't see a vmware workstation driver, just fusion and vSphere..
 
there might be an unofficial one, but otherwise it's just open tickets
I might repurpose a slice of the storage box downstairs to use
 
ohh there is unofficial, linked on that page
shame about you being cheap, the hyper-v solution is do-nothing simple.
 
12:12 AM
@ssube never fly UIA
10 hour flight, no TVs, no electric outlets
 
weeeee
 
@BenjaminGruenbaum my few transatlantic flights have all been British Airways
 
what is the whole idea of people saying "if you want to use this program, you must download the source code and compile the binaries yourself" ?
 
@Luggage I know, I thought I had pro, but apparently not.
 
maybe they can't be bothered to offer binaries for your system.
 
12:14 AM
isnt it much better to just create the binaries and ship them as well?
 
@Wietlol welcome to the real world
 
but I dont understand
 
depends. what system? what software?
 
dynamic linking is a bitch
 
windows as system
software... quite a lot recently
 
12:15 AM
You either go through the package manager or bring your dependencies with you, which is a shame, since you probably have them installed anyway and oh look the glibc version isn't exactly the same hey everything's on fire
 
in this case, its google's protobuf
 
@ssube British are always a pleasure, good airline
 
I used to use it once in a while
but new computer means new installations
i dont recall protobuf installation to be a bitch
 
Yeah, I agree, it's ridiculous - the problem isn't binaries it's toolchains
You wouldn't mind if you had to compile but compiling always worked all the time and was quick
But that's not always the case
 
Dynamic linking and dependencies
It's a hard problem
That's why a good and tested repository is an invaluable great
 
12:19 AM
Yeah, but Google tend to make things hard in their tools
 
i dont really mind if I have to run some bash script that will compile the binaries on the spot
 
"sophisticated"
 
but now, I also have to install cmake
 
ah, cmake and variants...
 
previous time, it was a linker that I had to get
what is it next time?
 
12:20 AM
I used to judge that as well but then I had to make a cross-platform binary
 
linux os vm?
 
If you're feeling lazy someone probably compiled it on something resembling your system, shouldn't take too long to find it
 
@Zirak making a difference between windows, mac os, linux for example shouldnt be a big problem
 
I know, right? It really shouldn't be
But it is
 
i accept that you cannot make a cross platform tool all the time
but the binaries shouldnt be different for windows 8 compared to windows 10
 
12:22 AM
ttyl
 
iirc
 
just choose a heavy abstraction layer.
 
Maintaining up-to-date builds on all your supported platforms is hard, to say the least
It may sound bizarre coming from the scripting world, but look at the chasm the node community has fallen into: grunt, browserify, rollup, webpack, ...
 
12:24 AM
And that's within the same ecosystem, none of them deal with things like "oh fuck, on Windows when I spawn subcommands the escaping character is vastly different"
Or "hey what's the visual studio equivalent of -wall?"
 
great
 
Guysssss, i can't link sql to mysql using linked server in sql management studio. it doesnt have the data source for the mysql.
 
Or "I wonder if clang and gcc have different behaviour when you pass the arguments in a different order"
 
i download it
and read the readme
readme says that I have to download protoc-version.zip from github.com/google/protobuf/releases
it appears 3.4.0 has the pre-built binaries
and 3.4.1 doesnt
 
12:26 AM
@Luggage That sounds great until on one fringe debian distro the openssl version is a tiny bit different than what the equivalent glibc version is
 
Florian can handle himself.
 
Creating non-trivial makefiles which actually work is a daunting task in itself: If you want it to run out-of-the-box you have to assume a very bare environment, since someone is bound to run you in some weird docker instance
 
You sound bitter.
 
Let's not talk about x86 vs x64 releases, especially when you have inline assembly
And I don't drink alcohol so how am I supposed to forget any of this!?
 
do you have a belt?
 
12:30 AM
Just some jumper cables
// pop quiz time! which lines are a syntax error:
var foo = {
  get
  bar() {},

  async
  quz() {}
};
aw, you guys are no fun
 
i cheated
weird that you can split one but not the other
 
@Zirak i havent dealt with js in quite a while
I see one big syntax error
:D
both "get func() {}" and "async func() {}" are things I never heard about
also, i would write it like this:
{
    bar: function() {}
}
iDunno how old my js skills are :D
 
12:52 AM
morn
 
David, can you show me how I can put preload image within DOM

I want the code to go specifically inside of this part of the code

onclick="
var button = document.getElementById('playButton2');
var player = document.getElementById('player2');

First, is this possible?
https://jsfiddle.net/2jc4pjx9/1/
Yes, or No?
Can anyone say whether or not that is possible to do?
I've been told that it is possible, but I can't find a code that would go directly within DOM.
 
anyone knows a different naming for "Optional" ?
I know C# uses a Nullable (even though its use is slightly different)
and haskell (iirc) has Maybe
 
The only codes I have been able find are ones that go outside the framework of the entire code.
 
but Nullable is not really a good name for my implementation
and Maybe is just meh
 
And with this line of code I have been told that buttons don't use src.

var button = document.getElementById('playButton2').src = 'https://via.placeholder.com/266x266 ';
Would anyone in here have any clue on how to do what I'm talking about, and if so, can you point me in the right direction to something you know will work within the DOM parameters. That's all I'm asking for. All help would be greatly appreciated. I've been trying to do this for hours and still can't get it.
 
1:13 AM
goddamnit
 
1:55 AM
@Zirak quiz() {}
probably has to do with weird behavior of the keyword async
which can be used as an identifier
spec says there can't be a line break after async if you're defining an async function
probably has to do with ASI
get can also be used as an identifier
mm, fuck this
 
@Wietlol What is your implementation?
 
its for serialized data
you can specify models and generate source code for them
but, for the sake of forward compatibility, I want to be able to load the data and set newer properties to "invalid"
providing an "hasX()" method that returns if it has a valid value
one way would be to use null as invalid value
in js, I could use undefined
but that is only in js
so, I need some sort of wrapper
so, the wrapper should be a pair of a boolean (hasValue) and a T (value)
(T is generic... yea, I am always talking in hard typed concepts)
currently, I am using NullAllowingOptional<T>
(self made)
 
2:39 AM
Space X sends a rocket up into space. Lands back on its feet back on earth 7minutes later. I can't even run an npm install in that time.
 
lol
 
3:39 AM
🚽
 
4:07 AM
@KevinB Hello.
 
lol
 
ohhi
my interwebs are finally fixed!
it's been shitty since july
 
suhweet
sup fellow kids
How do I disable prefer-template for eslint? just trying some demo code
 
@KevinB Can you tell me if something is possible or not cause I think I've hit a dead end road.
 
/*eslint prefer-template: "off"*/
maybe
chances are it's possible, in one way or another, given an unlimited budget/time
 
4:14 AM
ok, i was trying /* eslint-disable prefer-template */
 
Are you able to put preload image within DOM?

I want the code to go specifically inside of this part of the code

onclick="
var button = document.getElementById('playButton2');
var player = document.getElementById('player2');

Is this even possible at all?

I don't want to keep at this if it's not possible.
 
you can certainly preload images, that's easy, but i don't understand what within DOM means.
DOM is an api that is available to javascript
 
Module build failed: Error: /opt/app/.eslintrc.js:
Configuration for rule "prefer-template" is invalid:
Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed 'false').
aha
 
hey, look at that
 
not sure why that's not in the doc
 
4:17 AM
the error message tells you what's wrong
:p
 
I had to restart docker to get it to show up
 
Using something like this? var button = document.getElementById('playButton2').src = 'via.placeholder.com/266x266 ';
 
var img = new Image(); img.src = 'foo.jpg'
 
To go into here ? onclick="
var button = document.getElementById('playButton4');
var player = document.getElementById('player4');
document.querySelector('#playButton4 .initial').style.display='none';
document.querySelector('#playButton4 .pause').style.display='none';
document.querySelector('#playButton4 .play').style.display='none';
player.volume=1.0; if (player.paused) {
 
I think docker only loads /opt/app/.eslintrc.js on start, I guess, not on hotload
 
4:19 AM
ideally somewhere else
like in a script tag
but maybe in there
 
But, could I put it in there if I wanted to?
 
depends on if that would result in any increase whatsoever.
because if you don't preload it until you need it immediately, preloading doesn't solve anything.
you know, the whole "pre" part
 
It solves the flicker, change over effect of the image.
 
but does it, if you wait until a click to do it?
 
You can see in here: jsfiddle.net/h2ukntdL
 
4:21 AM
usually preloading things happens well before the action
but if you're waiting until click to preload, you're not going to get much of an effect
 
When you click on it there's a flicker, change over effect.
 
right
you're not preloading soon enough
(btw, an image sprite would fix your problem)
 
To test it, clear browser histore. That's how I do it.
What's that?
 
if the image you're swapping to is the same image you're initially displaying, it's already loaded
you simply display half the image, then change the position to show the other half
 
So, I would change this to something else? url(\'https://via.placeholder.com/266x266\')';
 
4:25 AM
you would have 1 image
instead of 2
and instead of replacing one image with another, you just change the background position
 
You have to use css for that?
 
wow, svgcoding has been working on that for 24 hours
 
@KevinB I want to try this method.
 
well, loosely yea
you could apply the css styles using js if you must
 
To use this, I would need to convert it to inline javascript, right?
var img = new Image(); img.src = 'foo.jpg'
Buttons don't use src.
 
4:32 AM
well, that doesn't touch the button
it just creates an arbitrary image, and gives it a src attribute
browser will load it
doesn't need to be in the dom
you could even put it into a onmouseenter event
so it loads before the click
 
1 message moved to Trash can
@svgcoding Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Both these methods work.

<script>
  var preloadImg = new Image(266, 266);();
  preloadImg.src = 'http://via.placeholder.com/266x266';
</script>

<img src="https://i.imgur.com/KOlHFBD.png" style="display: none;">
I already know that.
 
yup
why can't you do the same thing in an onmouseenter=""?
doing it on click makes 0 sense
 
What's that, and how does that work?
 
it's just another event
that does what it's called
 
4:35 AM
I put that right inside the onlick?
 
...
 
How would I set that up?
 
4:47 AM
@KevinB good luck :P
 
How would you add another image to this code?

<script>
  var preloadImg = new Image(266, 266);();
  preloadImg.src = 'http://via.placeholder.com/266x266';
</script>

--------------------------------------------------------

My guess was this but that doesn't work.

</script>
  var preloadImg = new Image(266, 266);();
  preloadImg.src = 'http://via.placeholder.com/266x266';
  var preloadImg = new Image(266, 266);();
  preloadImg.src = 'http://via.placeholder.com/266x266';
</script>
or are you not allowed to add 2 images to one script?
I'm learning in here.
 
y not
the second image doesn't make the other not exist, it just dereferences it
the (); is not necessary
 
I just tested it here and it doesn't work. jsfiddle.net/8w30j200
Instructions:
Clear recent history from browser.
Now click on each of these codes
They both flicker, .
Wait
--------------------

1st Image doesn't work
2nd Image it works.


<script>
  var preloadImg = new Image(266, 266);
  preloadImg.src = 'http://via.placeholder.com/266x266';
    var preloadImg = new Image(266, 266);
  preloadImg.src = 'https://i.imgur.com/KOlHFBD.png';
</script>
 
morning
 
5:04 AM
morning!
 
Why would the 2nd image work but not the 1st, that's odd.
Got it!!!
HTTps, I had, http.
Am I allowed to do this, or anything close to it?

<img src="https://i.imgur.com/KOlHFBD.png;https://via.placeholder.com/266x266 " style="display: none;">
 
Ace
hey what's up
 
you should learn how to code and not hack
 
Ace
still working on that problem? @svgcoding
 
it's much easier
 
Ace
5:19 AM
hey guys, which JS lib can i use LINQ like c#?
 
no idea @Ace but you could try poking around stackshare.io/search
 
:39544424 Am I allowed to add 2 images to this code <img src="https://i.imgur.com/KOlHFBD.png" style="display: none;">
 
5:38 AM
why not have two image elements
 
6:21 AM
You mean like this:
<img src="https://i.imgur.com/KOlHFBD.png" style="display: none;">
<img src="https://i.imgur.com/KOlHFBD.png" style="display: none;">
 
yes
 
@hsimah I have a quick question
 
im sure you do
 
:39545270 As an example: cursor: pointer; is in the top part, do I need to put it in the middle part also, or is once sufficient enough?


<button id="playButton4" style="display:block; width: 266px; height: 266px; cursor: pointer;background-image: linear-gradient( to right,#000000 83px,#0059dd 83px, #0059dd 86px, #000000 86px, #000000  174px, #0059dd 174px, #0059dd 177px, #000000 177px ); border: 3px solid #0059dd;"
onclick="
    var button = document.getElementById('playButton4');
    var player = document.getElementById('player4');
 
i dont know
i dont fiddle with cursors in css
i'd suggest you try it and see what happens
 
6:46 AM
anyone know polymer-redux here? How to compose the statePath string when your state is immutable??
 
@svgcoding You've been here for an entire day, have you listened to any advice you were given along the way? (Looking at your fiddle, seems not)
 
7:04 AM
Not the entire day.
i was tweaking some stuff.
@MadaraUchiha I was trying to put preload image inside the onClick, but I don't think that's possible, unless you know how to do it.
 
DO. NOT. PUT. THINGS. INSIDE. OF. ONCLICK
Honestly, this is at least the fourth time I'm telling you this, and I know others have as well
 
My question is on here if you can answer it for me please. jsfiddle.net/4en7cb3k/3
About my question, I've been trying to figure that out.
 
the answers are online, if people give them all to you you will miss out on the most valuable skill in programming - how to find answers yourself
 
How come Box 2 isn't 269x269?
How come it's the same Width/Height as Box 1?
Box 2 is 266 with a 3px border, that translates to 269.
How come it stays at 266?
 
Hi there, is it good/bad practice to call some service stuff in a module constructor (not in component) with angular 4 apps?
 
7:18 AM
There's padding inside a button?
If you had to choose between these, which would you choose and why?

<script>
  var preloadImg = new Image(266, 266);
  preloadImg.src = 'http://via.placeholder.com/266x266';
</script>


<img src="http://via.placeholder.com/266x266" style="display: none;">
 
@Julo0sS mostly a bad practice
what kind of stuff are you calling?
 
@towc any relevant reason?
 
look into ngOnInit
 
well, in my current example, I use this method to call the authenticationService. To check the "current user status" (logged in or not), on app initialization
 
constructors are "only for lightweight computation". Even just hooking onto another service goes against that
 
7:28 AM
to make sure the service observables (corresponding to auth status) have a good init value
 
@Julo0sS yeah, use ngOnInit
 
okay then, but I can use ngOnInit on the module?
 
oh wait sorry you did say not on the component
 
exactly
 
yeah disregard everything I said
I don't really know how constructors are meant to be used on modules, but I'm assuming you've already checked the docs?
 
7:31 AM
seems like constructors are mostly used for DI
 
well, that's mostly its parameters
but the body...
 
what do you mean "the body"?
 
constructor(parameters) { body }
 
any idea why I am not able to execute this in edge
 
I found this about the modules. @towc I can't actually say if it's good or not to call some stuff in the constructor body since I didn't find relevant doc about this on google... All I can say now is that it works pretty fine and helps me to solve my current problem. Just wondering if someone could advice me on this...
 
7:37 AM
go nuts then. Again, I don't know much about it
.
but you can use that particular thing
 
woop woop
 
@BenFortune Noice
 
yee haw
golden boye!
 
@OliverSalzburg 3:18 Up
 
7:53 AM
@svgcoding Is that like a quote from the holiest of books?
 
My question is 3:18 up on here.
:39546566 If you had to choose between these, which would you choose and why?

<script>
  var preloadImg = new Image(266, 266);
  preloadImg.src = 'http://via.placeholder.com/266x266';
</script>


<img src="http://via.placeholder.com/266x266" style="display: none;">
 
What 3:18?
Are you a flat earther or have you never heard of time zones?
 
the time i wrote the question.
timestamp.
am
 
This guy
 
so you just randomly pinged him so he could know about it?
 
7:55 AM
@towc No, we have a long history of random pings and pun answers
The latter of which are mistaken for help I assume
 
8:15 AM
mo-mo-mo-moooorniiing
@Mathematics jaja
 
@OliverSalzburg the "timestamp"
 
8:31 AM
he just wants a Jason file
 
@OliverSalzburg why use zulu tiem when im in poland?!?!?!
 
8:52 AM
wtf, I'm getting a confirmation page on Amazon for putting something into my cart?
That is a) new and b) stupid
 
@OliverSalzburg Haven't they always done that?
 
Idk, but that Sounds stupid indeed
Unless it was an info that you put something there some time ago
Then that is perfectly logical
 

« first day (2552 days earlier)      last day (2379 days later) »