« first day (2698 days earlier)      last day (2475 days later) » 

08:02
XY alert
class PleaseUseGraphQLInstead {
     static timeout = 40; // ms
     constructor() {
          this.reset();
     }

     async reInventTheWheel(dataRequest){
         if (this.timeout) {
             this.timeout.abort();
         }
         this.dataRequests.push(dataRequest); // assume its unique
         this.timeout = schedule(this.fire, PleaseUseGraphQLInstead.timeout);
         return this.deferred;
     }

      fire () {
          const wahtever = {}; // Create it somehow
          this.timeout = null;
// goes working
and yes js knowhow people
this won't account for if I fire another while one is in flight
a good solution would create a new one as soon as one fires
and keep track of queues
To be honest @Hybridwebdev this is exactly why service worker, graphql and other solutions were created for
there is no silver bullet solution for this
even in this case your application will become sttuery if you make say 300 calls
and you render all 300 at once and all 300 are data heavy
08:20
I think if you're making 300 event calls per second, you're not doing something properly in your program
300 somethings per second is a loop, not an freakin' event
mornings
that said, events should be handled using queues generally
@SaitamaSama o/
> luck to be a moderator
Is that guy retarded?
Moderator is a shit job
08:24
there's a guy in my office who looks exactly like Brent Spiner from star trek
everytime I see him I think that
did you tell him?
no, because I don't nose into other people's business. The fact that he's a superior has nothing to do with it (ok a little)
@OliverSalzburg Well, yes.
you could write him star trek quotes from his character and leave the notes on his desk without letting him know who it was, before he gets in the office
I've come to the conclusion he is.
08:26
do you have cameras?
"I have your cat, spot! Come and get him, Data! Muahahaha!"
yeah, not creepy at all
@Cerbrus what
@Neil could be quite fun. Do it once, see if he reacts by smiling
@MadaraUchiha Yea. His ideas are getting more... "Silly" with every meta post he makes
08:28
nah, I don't even really know the guy. He stops by our department to talk to one guy in particular
@KamilSolecki you can't leave a link without explaining why you'd want to click it first
See also my flag on it... He's getting rather annoying.
I guess he figures that's the only way he can be moderator
FYI, moderators can't give out question bans
it's law #law
08:29
They're completely automatic.
Aw
Complete ban then? :D
tell him he's been promoted to moderator for his contributions to the community
the b-b-b-banhammer
and maybe find a way to give him a blue name in chat. This way he'll see that there are no extra controls and will be so wtfed and will start respecting you more
No
That implies he can make that kind of connections
Looking at that meta, he just doesn't "get" it. None of it.
08:32
People like that should not get attention, let alone responsibility
@OliverSalzburg I never said he should get any responsibility
@towc I wasn't replying directly to your suggestion. It was more of a general remark regarding the situation
A blue name / diamond already has some responsibility, even if it's only cosmetic.
lol cerbrus
08:34
I am on meta right now and noticed something at a a question. Then came to here to see that the same person has asked that question
@KamilSolecki old:
7 mins ago, by Kamil Solecki
https://www.nature.com/articles/d41586-018-02773-w
Uh it told me it didn't send
@KamilSolecki I even replied to it :P
6 mins ago, by towc
@KamilSolecki you can't leave a link without explaining why you'd want to click it first
weird
@KarelG Adding was really important
cannot rollback it :|
08:37
I could... Not sure if that's really warranted. Technically, it is the correct tag
oh lol. the other tag is wrong
@TimPost: [stackoverflow-for-teams] seems to be the wrong tag here. Did you create that one on purpose? — Cerbrus 12 secs ago
[really-really-obscure-tag-for-situations-entirely-unnecessary-for-tags]
@dievardump Not sure if he replied, but github.com/a1studmuffin/SpaceshipGenerator
08:50
Hello
can anybody please help me with my question?
0
Q: Intercepting function calls in javascript

BathoomanI appreciate if anyone can tell me how to intercept a function call in javascript. I know it is possible with making use of proxies. for example I used the code below to intercept calling document.createElement but now I want to intercept toDataURL(). in order to call toDataURL you need to creat...

@KamilSolecki it's pouring snow here
> I know it is possible with making use of proxies.
well ?
check the docs and implement it
@KarelG It looks confusing to me as I am not a javascript developer and I'm doing it for a project
I am currently writing an rss feed implementation that uses java beans. It is confusing as hell for me due of poor documentation. But I have to do this for a project. Will you develop it for me?
@Bathooman Intercepting and overriding standard functions is a terrible idea.
08:55
@towc really? We just got out of the cold snap
its +4 here
@KarelG I did not ask for preaching dude. If you don't want to answer it is ok.
it's been snowing for the past few days
but today it's particularly snowing
@MadaraUchiha That's true but It is for a special purpose project.
@Bathooman Everybody thinks their case is special. And they're all wrong.
3
@MadaraUchiha It is a security project, not a functional one
08:57
@Bathooman So?
@MadaraUchiha My goal is just to find out if a native function is called. that's it!
@MadaraUchiha I mean, codewarrior intercepts some standard functions
@Bathooman Why?
@MadaraUchiha to find out which native functions are being called by the webpage,
@Bathooman Why? For what purpose? Why do you care?
09:02
@MadaraUchiha As I said, I am working on a security project, I want to identify scripts in a page which are trying to fingerprint the user. why do you care why i care? :D
@Bathooman read about the XY problem
@Carpetsmoker Considering the OP's history of not giving the common courtesy of taking SO seriously, sue me. Just don't randomly select the OP as a jury member. — Cerbrus 2 mins ago
Hehe, maybe I should stop biting a little...
@Bathooman it so happens that Madara knows his shit more than the average person knows his shit, so he might suggest a better solution :P
> I want to identify scripts in a page which are trying to fingerprint the user.
I guess you need to do some research on that because the javascript part is a small parameter in the fingerprinting process
Just wanting you to spare some work time
Thank You everyone for your constructive solutions!
09:11
@Cerbrus its ok when you are a wolf I think
idgaf if a company fingerprints my browser
@KamilSolecki Yea, it's just nature :D
So uh, we have a sales report that we need to convert to a PDF. It's 80k pages of HTML and crashes in every browser when trying to save as PDF, anyone got any ideas?
how about downloading it through LocalStorage?
@BenFortune Sounds like someone fucked up
09:14
I don't get why people don't want to eject from create-react-app
Processing 80k pages of anything sounds like a challenge :D
the configs will be unmainained, but it's a product that works and won't rely on evolving third-party code
Print 80k individual PDFs, then join them with pdftools
use a server which has like a lot of memory (like a TB or two)?
@BenFortune does it have to be a single pdf?
09:16
@towc yeah
80k pages pdf?
Is there even a reader that can handle that?
headless browser?
@towc create-react-app is meh, personal boilerplates will always beat it
@Cerbrus Adobe doesn't complain
@KamilSolecki find me a decent one
09:17
@BenFortune Well that's a first :D
so I can just do npm i -g that-thing, then run it, and forget about it
@towc make one yourself, like everyone
most existing readers of pdf can handle 80k page documents without problem (by simply not reading all of it)
@KamilSolecki I've spent too many hours on it
my advice is to not try to make your own :P
09:18
it's so not straight forward anymore
@BenFortune Adobe is a company
@towc Meh
@OliverSalzburg You know what I mean
Took me about 3 hours + fumbling around
Today I'm able to set it up in less than 20 minutes
it really shouldn't be that hard :/
09:19
And get it to my liking
@BenFortune Actually, no :P They have Acrobat and Reader
@towc You wanna make technical choices?
oh, sure, if you have some experience
You need to set up the wiring
or I can give you mine, but its TS + mobx + react + webpack (/w hot reload) + fun loaders @towc
09:19
@Neil most existing readers cannot handle 80k page documents without any problem.
@JerryChin 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.
Although I think its worth setting up your own boilerplate
because you will learn and understand a lot
@MadaraUchiha my current setup is ejecting as soon as I use create-react-app, and then modifying the configs and structure and all
it's the fastest I can something decent from
@OliverSalzburg They both work, stop being anal :(
but apparently hugely bad practice, and I don't get why
09:20
@towc Make a bootstrap you like once and fork from it whenever you start a new project
this is all so I can practice react btw, to have something to show to a company I'll apply for, which has its own react setup
and I'm so full of things to do right now :/ Really don't want to spend more time setting up new configs/boilerplates
what I think is more important is understanding why my current one is considered bad practice
@BenFortune So you can view an 80k page PDF in Acrobat just fine, but you can't create it in there?
if I'm ok with the reason, I can continute with it
I have a lexical problem: what's the term to describe the duration of service, the time you are permitted to use a type of service?
09:23
but if it's something the company won't like, I'll need to invest more time into it
@towc can you show it
here or fb, however u like
@BenFortune 80k is a lot
a better advise is to set a maximum
I'm a Chinese, I want to name my variables as clear as possible.
09:23
yeah, specially compared to 800k
@towc wtf is that
like getting records of 2016-2017 (2 years span only)
who are you and what have you done with towc
I wrote to the guy in person before:
> not sure why github says there are merging conflicts
I agree the PR looks like a mess. On the other hand, I'm not sure how I would have done it otherwise, while keeping CI, so maybe that's something you can help me out with
@towc ANSWER
@KarelG nope, you don't have to load it all.
09:24
@towc I 100% agree with the dude
BUT
I thought towc moving from vue to react was not possible even in parallel universes, like if it was a multiverse constant
I would abstrain from ANY kind of boilerplate / stack generators
you do not generate a fucking 80 000 page pdf. It will only annoy the person that wants to use it to get only records from eg 2017
@rlemon yeah they nerfed her, and the ultimate just sucks
lel
sejuani op
09:28
kek, agree
@KarelG it's not our fault, hmrc want it in this format
@Neoares I still love vue and heavily prefer it. There's just this company I want to work with, so I can be with friends
just don't be too towc and they'll hire you
you're a smart boi
but actually something happened between us recently, I'm not sure I want to go there anymore
what?
09:29
he toucha your spaghet?
@Neoares don't encourage me to talk about my social life :P
I never minded
I bet it's in the room rules somewhere
I don't think so
@rlemon get on it
09:31
he gets on everything
I don't know, we were talking about a job
I don't think it can get too much personal
except
3 mins ago, by Kamil Solecki
he toucha your spaghet?
Hey everybody.
I'm learning Vue and I'm kinda stuck on a little point.
I need to override a method in child component from its parent (and only for this specific parent)
What is the best way for doing this ?
Shall I use $emit, $on ?
Shall I try something like Vuex ?
Is there something way simpler I'm missing ?
perfect timing
I'd like to help you, but I've never used Vue
@Baldráni do callback props not work for you in this case?
Excellent question
The thing is since the child component is used every where (its a modal) its a bit ugly to do a callback for just one parent :/
@BenFortune the problem is not the format, but the size ... Even standard pdf files are not at that number of pages.
What you can do is to generate an interlinked pdf collection
but best to use a framework for that. Gotcha ask to the dev team how they did that with our help pages
09:39
is someone actually willing to read the PDF once they read it has 80k pages?
Settlements: Page 1/80,000
it consist of four pdf files, "index", "part 1", "part 2" and "part 3". if you download them all, you could click on any links. adobe reader will open the other file if the link goes to there
@HéctorÁlvarez of course not
@KarelG They want it in one file
But tell that to the client
It's just a record of our sales each month
09:40
over how many years ?
Pro tip, use SSRS
> each month
80k pages, that's a lot of sales..
or if you are some sort of taliban troglodyte, crystal reports hiss
if that's one page to a sale, that's 80 thousand sales.. what do you sell? bic pens?
09:41
@Neil flowers
I will probably be your customer shortly then
my wife's birthday is coming up
80k pages for one month sales???
ONE MONTH ?
It was valentines day last month don't forget
09:42
I don't think we think about what he thinks
I'm literally laughing my ass of right now
We do 2k sales a day on average
shieeet
thats a lot of shipping
one record of sale = 1 page of invoice + 1page customer reference ?
@OliverSalzburg I have a cordova iOS plugin now, but it keeps resetting the SDK version to 8.0 when it installs the pods and my pod requires iOS 9
Halp
09:43
I do 30 - 40 packages a day
2K seems totally abstract
I am curious how many data you are collecting for one sale record
@BenjaminGruenbaum I have no idea what a pod is
I can't figure out how to set the min iOS version required, I already have ` <preference name="deployment-target" value="9" />` in my app's config.xml
That was from valentines day
@OliverSalzburg a native dependency
09:46
@BenFortune :O
@BenjaminGruenbaum I have no idea where we're setting that up. I only remember some option in the GUI back when I had to do it :P
A quick look into our sources didn't reveal anything
Okay @towc a friend helped me, the solution was to do <childComp @method="overrideMethod">
I love vue :)
then you have a friend here
@OliverSalzburg there's a GUI?
oh oliver, did you have heard about a possible hack via AD ?
getting access via a non domain pc
09:53
@BenjaminGruenbaum Well, XCode
@KarelG Doesn't ring a bell
You don't need a domain-joined computer for AD access anyway though
he got admin access via local signup. Our sys engineer started to check devices with local sign accounts :P He is now setting up a LASP
I mean LAPS
Oh fuck that
someone's going to the CERN hackathon?
@Neoares no
HI guyes
guys
i have somehitng to ask
i am developing with react redux now
but when fetching the data via ajax the screen becomes blank any idea ?
10:08
~_~
@FarisRayhan did you check the console?
Yes already. The console says. Can not render empty element of null..
When i remove the code. I got the view otherwise it keep blanks
o/
Some suggestion urge me to use lodash. So i should do checking inside first after that rendering
10:11
so you have a something.empty in your code
and something is null
oh wait it's a render error
if you want to render nothing, you need to return null
yes at the end of the function i return null. I return my view only if i got the data. But apparently that line of code did not get executed so i always get blank. Any idea ?
at this point I'd say
!!tell FarisRayhan examplepls
@FarisRayhan Could you please give us an example on jsbin.com or jsfiddle.net, with the minimal amount of code necessary to reproduce the problem?
this one is better
10:31
What the actual fuck. That "Why stack overflow can't select a moderator randomly?" meta crap was re-opened
huh? o.O
OP cast the binding close-vote, but also a re-open...
> I am 100% sure. I can't win any moderator election until my whole life.But if stack overflow choose at least one moderator randomly for a year, then some users (as me) may get a chance/luck to be a moderator.
> Post Reopened by Carpetsmoker, peterh, Ramesh Rajendran, duplode, Donald Duck
what the fuck
> Donald Duck
> Actually moderators can get salary from SO?
so he didn't know if they get payed, still wanted to choose them randomely
"Hi, random user, we chose you to get some income"
10:37
And now he's pretending the fact that it got re-opened means it's not off-topic
@Cerbrus drop it.
seriously
I'd rather see him dropped :D
that's so poetic
omg he has 15k rep
yes, and his meta track record is quite....
10:47
@Cerbrus oh this is glorious
grabs popcorn
Maybe he's a masochist...
dear god
he wants the bling
how many Overwatch skins were you paid by SO for your moderator duties? @MadaraUchiha
be honest
I pay him
@KamilSolecki don't get more ep
you're just fine right now
10:53
I know
Im trying to
let me go see what I can downvote real quick
Its pretty satisfactory
anyone up for some quick Overwatch in an hour or two?
what's so good about this game?
played one round on a friends account once. I sucked, but I really didn't enjoy it
@GNi33 It's so much better than PHP
10:57
@GNi33 once you get the hang of it, it's really fun
@Neil PHP is like Dark Souls. Only masochists play it.
(and also pretty toxic in competitive :P)
I like playing Dark Souls, so am I a masochist as well?
@SaitamaSama maybe in 7 hours :P
@SaitamaSama Obviously
Today is months' worst day
paperwork day
10:59
@Cerbrus bleh :P
anyone can halp me with an SQL issue?
SQL chat is ded
I've already printed 300 sheets of stupid documents just because the Accountant wants stuff on paper

« first day (2698 days earlier)      last day (2475 days later) »