« first day (2719 days earlier)      last day (2454 days later) » 

00:03
every time I eat lasagna
I get really inspired
and want to write a poem about lasagna
clam down garfield
lasagna is like ogres
it has layers
so do you big dog
first episode of SV delivers
user2620028
00:57
@ssube squirrels taste really good, what are you talking about
user2620028
oh wait what city squirrels, is there truly a difference lol
01:13
@rlemon nah. Tried it, the middle part can never get really strong. this one is much better.
... yes, I'm fun at parties ;)
@FélixGagnon-Grenier idk, I've got two going right now (holly likes a different toothpaste)
seems to be working fine for me
but noted :P
:) alternatively, how did you print the middle part? My first 50% infill tests broke almost instantly. at 100% it did not break but warped under pressure. maybe I'm not usnig it correctly...
.2mm layer, 100% infill
supports where needed
01:31
@Mosho lol
I did
me too
the fucking "italians aren't real white people" line
silicon valley
the picture of the inductees was it for me I think
01:58
> Upon opening the code I discovered the entire program was a carefully constructed slide show with hundreds of jpgs in a jQuery carousel and some magic click areas coded in to jump the user between slides. Other than this code to jump to specific slides, there was no code at all. Even the text on screen was in the images.
lmfao
> I should note that their git repo consisted of about a hundred folders whose names were dates, and one folder named “current.” That was actually my first warning of just what I was getting in to.
that's exponentially worse than the implementation
02:13
A simple question about react router: The Route component provides three ways to handle a route. How should I decide on whether to use the component prop or the render prop?
Summon the ninjas.
02:37
good evening folks!
good morning
I think we should make it a standard to append GMT values on salutations lol
so, you guys remember the guy I was making a website to (and foolishly didn't ask anything in advance and didn't hear from him in a month when all required to end the website was his texts)?
he came to talk to me about finishing the website, after I adapted the layout to a ficticious company for my portfolio
02:58
so, I made explicit my conditions, that I should be paid since I delivered the layout, and that I could use my adapted layout in the portfolio (which prevents me having to wait until he decides to deliver his part to publish anything)
well, like most people that are wrong, he thought he was right
whatever, I'm just glad this *** novel is over, I'll use my ficticious company website on the portfolio and move ahead
03:18
morning room
morning
morning!
@William Horrifying
Oh wow lol, they couldn't even be bothered to build a real app
04:06
I got a design dilemma, rewriting an AngularJS web app to vanilla JS. A lot of the Angular code uses $scope to access values and functions. That wouldn't be hard to replicate with a scope regular object, but the question is, should I?
The context is that of a trading card game in the browser, the section I'm currently working on is this controller for a player/chat lobby: github.com/Cardshifter/HTML-Client/blob/master/src/lobby/…
Right now I'm using localStorage mostly, to store values, and I just declare functions within the scope they are used, which works OK so far but I foresee so much more complicated logic coming up soon and that may get clunky?
$scope is a "regular" object
and I don't see what localStorage has to do with it
Perhaps, localStorage has nothing to do with it, indeed
Humor this beginner here, I'm a SQL guy so this JS stuff is all new to me :)
ask something specific
I'm not going to remark on turning an angular project to vanilla js as a whole
That's fine. Take this function for instance
It refers to $scope.user_chat_message and $scope.sending
They're both just values in this case. So I could just as easily keep them as variables or attributes of an object in my lobby controller code, but would I gain anything from instead keeping them in a global scope object?
Assuming that those values are used, and only used, in the lobby section
depends on what you want to do with them
04:16
Well, $scope.user_chat_message gets sent to a game server over WebSocket, and will get appended to a list of chat messages that users will see
I'm not sure what the other one is for yet
there's no way for me to help without getting into the code
and I'm not going to do that
OK fine, thanks for trying
I suppose I'll just try it with scope and see if it helps, since I don't have much written yet it will be easy to change it if I don't like it
 
2 hours later…
05:56
hey @BadgerCat :D
something wrong?
no, but it's copy
hey Copy :D
hey
how's Bratislava?
05:59
cold, turns out
why are you using badger's account?
who would have thought
she stoly my laptop
so I stole her ipad
makes sense
Something about this solution for using srcset with background images seems wrong but I can't put my finger on whether there is something actually wrong with it or if my brain is being weird.
06:17
@Alesana what's wrong about it exactly?
I'm not sure, the more I think about it I can't think what could be. Maybe I'm worried it's not cross-browser
@Alesana selector is not correct
and it only works with browsers that supports such features with the img tag
@KarelG :P Yeah missing the data. That was kind of a red flag to begin with :B
that is 85% of it if the article is correct
Hmmm... I am wondering if it's worth implementing some polyfill
06:24
85% isn't a good rate if cross-browser has some sort of importance
it'd be barely acceptable even if it weren't
aaand that this.img.complete seems no use
he already hooked a load event on it.
Is that not triggered in an event that the src being used changes?
it gives you a boolean AFAIK
Oh wait yeah you're right
> HTMLImageElement.complete Read only
> Returns a Boolean that is true if the browser has finished fetching the image, whether successful or not. It also shows true, if the image has no src value.
06:27
Hmm some red flags :P. I will just put images there and pretend they're background images
you could do the ol' layout absolute trick with left: -9999px
images load, then you can update the css and show them however you want
@BadgerCat in couples, it is more called as "lending"
lol Neil. Load it via javascript
I have left:-9999px and right:-9999px right now :P
what does that do? O_O
with margin:auto;, it centers it
06:30
hah, been a while when I saw that trick
and with min-width:100%;, it kind of acts like background-position:cover;
that is from the IE ages
yes, was that before or after the bronze age?
:)
ah good times
:B I can use left:50%; transform:-50%; but it didn't seem as smooth when I was resizing the window really fast, could have just been in my head though
06:51
hey heyo
dear god what are those css
ohayou
#wife {
   right: 100%;
   margin: 0;
}
that does not work at arabs.
Need some advice
the selector must be .wife
06:58
@MadaraUchiha do tell
Given URLs like example.com/price/FOO and example.com/price/FOO/something
I want to make a function that would replace FOO in both cases to something else
FOO is dynamic of course
I could use a regex, but that wouldn't be fun now, nor later on when maintaining it.
07:19
hey guys
does anyone know about how to trigger click event inside through programmtic
i am struggling to accomplish these more than 2 days
could anyone please help me
Please don't tell me you spent 2 days on that ...
@DIVA literally the first result is a stackoverflow question with an answer to your problem
@KamilSolecki Already i posted a question in stack overflow but no response
yes but did you google
"trigger click javascript"
Here is my question i posted yesterday in stack overflowhttps://stackoverflow.com/questions/49493970/trigger-click-event-in-ifra‌​me-programmatically-using-jquery
07:28
oh, an iframe
is it an external iframe?
or your iframe
@KamilSolecki I googled and i got some ways to achieve i could focus inside iframe if you see my post on the above link you understand
I have tinymce editor with iframe
Take a look on this link stack overflowhttps://stackoverflow.com/questions/49493970/trigger-click-event-in-ifra‌​‌​me-programmatically-using-jquery
posted on March 27, 2018 by Mathias Bynens

Every six weeks, we create a new branch of V8 as part of our release process. Each version is branched from V8’s Git master immediately before a Chrome Beta milestone. Today we’re pleased to announce our newest branch, V8 version 6.6, which is in beta until its release in coordination with Chrome 66 Stable in several weeks. V8 v6.6 is filled with all sorts of developer-facing goodies. This post

btw youtu.be/8FzFMPc7aU4 iz pretty nice :3
Hurray, thanks!
Hi any of you have any idea on how to make a wysiwyg?
@RajeshPaudel Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
I just couldnot find any new resources to tell you actually I am stuck here just found a page that was three days ago it's written by envato but I am sure it might be outdated now So anything might be of great help here
07:59
@RajeshPaudel Are you looking for a WYSIWYG editor for your own project, or are you wanting to make your own WYSIWYG for others to use on their projects?
I am wanting to make my own
That sounds like a really big job. I hope you have a good reason for it.
I am creating a site which need a editor like medium but not exactly it needs a lot of feature. I used a medium-editor and tinymce too
Those editor really doesn't suit my need for the website
I'd look for something open source and try to change it to make it work how you want... writing it from scratch sounds like a lot of work
08:02
To be frank I am having nightmare changing the tinymce code.
@BenFortune It's awesome but I am not using react it's with vue
Start from this. It's tiny, just add features as you need them
@RajeshPaudel Try tinymce for WYSIWIG
Thanks I will. I have already used tinymce
@BenFortune it might solve my problem
Anyone here did iOS development?
nope, but I know some people in C# room did @BenjaminGruenbaum
08:08
Meh
Thanks anyway
I think it was Roel and Avner
08:22
@BenjaminGruenbaum To a degree, as you know :D
Google chrome's audit function is being mean to me
It's telling me to lazy-load images I'm already lazy-loading, and then loading the biggest out of my srcset when testing mobile load speed >.<
08:42
morning
Greetings
hola amigo
> The catch clause of try statements can now be used without a parameter.
What a time to be alive!
Anyone here knows how to configure angular-cli, so it won't build app's script code inside webpackjsonp?
just straight to pure es5
@OliverSalzburg wha ?
is that not a sugar for the generic error?
but even then, there is a design problem if you do not use the error message in the catch clause
better to return with a bool instead
08:55
Yes, it's syntactic sugar for catch( error ) { /* eslint-disable-line no-unused-vars */ }
@Calvin Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
So I like it
thanks
09:00
😟 do you like it ?
😱 NOOOOOOO
what
09:18
Anyone have idea about this question stackoverflow.com/questions/49493970/…
nerf this
anyone come across a good npm module that'll tell you if a string is in rtf format/contains rtf formatting?
yeah i looked at that one, and it massively fails on trying to parse a normal string
catch it
isRTF(string) {
    try {
        module.parse(string);
        return true;
    } catch (e) {
        return false;
    }
}
or even return the parsed string
but then yo should rename the function to something like "parseRTF"
i think the problem i have is, that i'm converting from perl, and the perl library will flag this as RTF: The B\f1\fniloss
and i haven't found a npm library that does similar
user7538827
09:52
Hi guys
Hi guy
@KarelG lmao
user7538827
I wanted to ask you a question, I have to read a line by line query on sql server (my code is in the link below) when running the code I have an exception of this type: UnhandledPromiseRejectionWarning: TypeError: Can not read property 'length' of undefined, this is my code: gist.github.com/riccardopirani/af1a509d1db72e3ebf021cb536f949fd
i found it funny that they shrinked the body when you go in a cannon
even then, it won't seduce me to play that game :D
@riki You're mixing promises with callbacks, don't do that
09:58
I am playing FO4 atm
nice
Im hoping yall dont give me shit about how antiquated this code is and just tell me what type of JS coding is this? (OOP?) I'm wondering so I know what to study to be able to better understand it
wow, such old, much jquery
that's just an object
10:05
just an object with properties
user7538827
@BenFortune you could give me an example of the correct form
user9552093
Hi
@Shadowclaw Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
This is an img displaying script I want to borrow some functionality from to display a div centered in the screen
see it as a public class with public static methods. All are accessible and overwritable
10:06
@KarelG are you doing a Java analogy
Thx @Neoares
C# has same features :D
And Thx @KarelG
are you doing a C# analogy
now I just gotta figure it all out
10:07
proceed
green light
BUT... while were at it, Before I borrow the functionality from this script, Does anyone know how to do the same thing as what happens when you click a thumbnail image here your-adrenaline-fix.com/bob-hannah.html#bob-hannah-images with a couple lines of jQuery? I like how the div centers itself no matter the page scroll
and want to duplicate that img functionality in a div
being centered and all
#dirt-bikes-for-sale-section, #moto-start-bg {
    background-attachment: fixed;
    background-image: url(../image-files/moto-start.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-collapse: separate;
    box-shadow: inset 0 3em 15em #000;
    padding: .5em;
    height: 100%;
}
it's CSS
look at the HTML inspector
I dont mind reverse engineering this script to do what I want as I look at it as a learning experience but if its possible w jQuery Im In as I have other things to do too besides getting locked up in disceting this script
@Neoares Thanks for contributing but you're up the wrong tree. Plz see your-adrenaline-fix.com/bob-hannah.html#bob-hannah-images
and give it an extra second or 2 to load script since most pple dont go immediately to img
then click thumbnail img
@Stuart you can't rely on that
cant rely on what?
10:15
why you just load the script on document load?
speed
rely on the user waiting for 2 seconds before clicking in the image
some of them will click before
no... b/c most dont get to the thumbnails b4 everything is loaded
and im really just wondering if its possible to do what happens with jQuery before I roll up my sleeves for a week of disecting and learning
why not?
if he does it, you can do it
but why jQuery
jQuery > learning
10:21
b/c if I can do the same w 5 lines vs 140+ lines Im IN
If you would learn to type properly, you wouldn't have to mind so much about the amount of lines required
I truly think the best way for me or anyone would be to discect this script and learn all about it. jQuery is just an easy straw I was grasping for
@OliverSalzburg Take your meds and go for a walk
pls stahp
HAMMAHTIME!
10:24
lol
@Stuart I can't. I have responsibilities here
I wanted to star and flag that, so I'll keep it neutral
I DO infact need to learn a LOT of JS basics, even including "this" and many other features
I like "this" feature
Best feature IMHO
10:26
face palm
Ill "Stahp"
rule #1, if you need to learn a LOT of JS basics, don't go with jQuery
or don't overuse it
eh, what
what im going to do is gonna be bad ass
!!mindblown
^ me atm
lol
yall are vicious
oh I lost :(
@OliverSalzburg not sure if serious or sarcastic
@Neoares you up for some overwatch this weekend?
10:34
@Ikari I'll be in Paris this weekend :(
@KarelG I think the safest assumption would be going for "sarcastic"
@KarelG Personally, I declare const $ = this at the start of every function. I just think it's more awesome like that
oh right, eating baguettes and croissants...
ah right, got my answer
with that
btw
told ya
sometimes Oliver needs to increase his sarcasmDelta parameter a little bit to be noticed
germany has a new world record: # kinds of cheeses on one pizza
10:36
@KarelG link link link
pics?
where do I find it?
is there still some left?
I want some :3
10:36
2.6g of every cheese
that's a stupid record
I can easily beat it
btw I'd love to taste that pizza
there are 111 different kinds of cheese on it
add those weights on that lol
> "Crunchy and cheesy – each piece tastes different!"
@Neoares first try to put together ~100 cheeses :P
Why for webpack wraps built js code into own code webpackJsonp([0],{...}?
@KarelG 288.6 g of cheese
@KarelG Awesome shit, right? Everyone in Germany got the day off in celebration
10:38
you all misses a nice bottle of beer !
Add a Leffe to that. Then the meal is a big win
@OliverSalzburg germany arrested our president lul
it is justified ...
@Neoares It wasn't me
@OliverSalzburg you're not germany
do not get me wrong, I dislike the actions from the Spanian government but
10:39
@Neoares wtf?! You take that back!
it is justified cause they got an euro-order
they have an european arrest warrant for puigdemont
I'm not saying it's not justified xD
they got the arrest order, they execute it
see
There's nothing about an arrested president in my news feed
The government is keeping it secret!
10:40
GEMA
Our country had this same situation. But we decided to not export him to Spain.
@KarelG u da best
And they sent all the Russian diplomats on their way
The arrest order got dropped during the procedure tho
^ that
10:41
lol
-5
Q: What percentage of stackoverflow answers are not googled?

Mohammad Rakib AminI realize the major goal of identifying a question as [duplicate] is to avoid recursive scenarios. One question asked several years ago can arise again, and given the same set-up, the answer is less likely to change. Which brings a peculiar scenario: OP posts something resembling a question ...

-15
Q: Are we weird? Spending so much time here

PilotKotI started working with Java more often, so I have questions that I dedicate to the users. After reading through a good amount of instructions, about how to write a proper post, I still got roasted for my posts being bad. I was having a conversation with a colleague, if it is weird or rather inap...

noice
god that post was really weird
7 rep user asking "Are we weird"
I don't have to read that
you are weird
you are weeird
10:51
if you put your cursor like 2px below the underline on hover from the tag-button, it spazzes out. It's glorious
!!> let arr = ['123', '123.0']; arr.map(e => '' + (+e >> 0) === e);
@KarelG [true,false]
yeah :P I found that a couple of days ago and always positioned my cursor that way whenever I thought I won't use the mouse for a while
weird, that never happened while I was using firefox though
10:53
aaah that is better
was trying to find a means to check if all input values are whole numbers
means?
is that like "find a way"?
means not floats
like 12.3 or 123.5 or 2.0 = not ok, but 2 or 3 or 124 is ok
''+(+val >> 0) === val is sufficient
wait 2.0 not ok?
2.0 is a whole number
10:55
no. it is a decimal
no, it's a whole number
* whole integer
in javascript there are no types
ok now ? :D
so there's no concept of "integer or float"
10:55
@Neoares doesnt matter
it matters, because there's literally no difference between 2.0 and 2
much faster than using regex
general concepts of float and int are language agnostic
but readability is 0 ofc
in a typed language, "int a = 2" and "float a = 2" are not the same
10:56
//idgaf by adding a comment above that
so if someone says he wants only integers, its pretty clear what he means
doesnt matter if he codes in python or delphi
or js
@KamilSolecki yes, and we don't have that concept, so 2 and 2.0 are the same :D
Idk what your point is
so I assume he's treating numbers as strings?
no wait, they're not language agnostic
> was trying to find a means to check if all input values are whole numbers
10:59
mathematically speaking, 2.0 is the same as 2, so it's an integer
they are strings remember
1 min ago, by Neoares
so I assume he's treating numbers as strings?
@Neoares but you saw in his example
so that ^^ :D
that they are strings
7 mins ago, by KarelG
!!> let arr = ['123', '123.0']; arr.map(e => '' + (+e >> 0) === e);
10:59
yes but then he said this

« first day (2719 days earlier)      last day (2454 days later) »