« first day (3786 days earlier)      last day (1145 days later) » 

12:16 AM
see the problem with the dev environment is that it's not a production environment
so the things that change from dev to production can cause issues even when everything works in the dev environment
and the only way to test that is with a third staging environment
but i am too lazy to create a staging environment
so i just test on production
thank you coming to my ted talk
 
 
6 hours later…
6:32 AM
HI I am kinda confused with file system api. May be I am not yet expereinced enough to go through the docs all alone.
As I said yesterday, what is the specific use of file system API in my purpose? Are there any special pros in using it for reading the files?
I went through a Youtube video and it was about features in PWA and I think it was also about file system API if I am correct.
web.dev/file-system-access/#status is this also saying about file system API?
Here's what I am trying to do after yesterdays discussion, gonna get the folder uploaded by user and loop through them to duplicate the files in indexed db while scanning the text and storing the text in indexdb too. then search it from text input
Have I understood what you have said ? or as usual messed it up?
 
 
6 hours later…
12:47 PM
@RifkyNiyas I think in your case, youre trying to use indexed DB, but you want to use files, so youre getting information about the file system API
so you might want to lookup more about the IndexedDB
The File system API is a non-standard part of the permissions API that allows sites to read, edit, save or delete files in the user's hard drive
While IndexedDB is a form of in-browser database storage that can be used on a per-website basis
Its similar to Cookies and LocalStorage, but its a database, not a key/value system
 
1:01 PM
@JBis that sentence ...*that is with a third staging environment* confused me a bit, like you have three staging environments 😁
this is not hard to tackle down if you use docker
the container image is just a copy of prod with a separate command to load in a new (dev) build
 
1:17 PM
@makadev I think so. I think that I managed to render the components in such a way that it recreated a function that took care of the render of a component. I think also that the <Route component=... comes into play in some way, because if I just skipped the route it didn't rerender. I'm not a 100% certain, but managed to solve it with useCallback
Thanks for support :)
 
If I am trying to make a reactive page header, how can I wrap the conditional if statement. If url = x display xheader else if url = y display y header
 
|| mdn Array
 
1:42 PM
So create an array of urls
if currUrl = url[1]...
 
errrm... I just used JamesBot to dig up a mdn docs on arrays
it is not related to your question
 
@KarelG haven't had too much experience with docker
 
but that would work
But at the same time, im not sure it would
What if I were to go to a different page but still on the same site? The url would be different so I need to figure out how to control that
 
2:04 PM
CV-pls: Too Broad
Mate, you need to compartmentalize the problem
Figure out how to render different headers, figure out the criteria when to render said headers, figure out how to determine which criteria are met, then stick'm together
 
2:19 PM
ok new idea
Quick survey: How many of you use the same browser on all your (personal) devices including mobile and desktop?
 
can't say I do
Personal device I use chrome (of course), my phone I have chrome installed but I got so used to Safari I don't even touch chrome
 
Hmm
 
Do you?
 
My idea is basically replicating SSH authentication on the web. Eliminate the need of passwords completely. Browser conducts authentication with the click of a button or automatically. There's no risk of anything being exposed.
Social engineering will also be basically impossible because there no password
And the user would have no idea how to find their private key.
Security in ignorance!
The only big issue is transferring keys from browser to browser. This is relatively simple if users have a browser account.
 
Isn't this basically taken care of by logging into chrome, for example?
Doesn't that synchronize sessions?
 
2:34 PM
Theoretically yes. But you need need a standardized cross browser approach. Ideally without requiring a third party server to conduct the transfer.
I don't like the idea of sending my private key to google and then google transferring it to my devices.
Over HTTPS it should be fine, but would be better if that didn't happen
 
Will that trickle down to the relavant site pages on that site, or only pertain to that sole url?
 
2:53 PM
after i have migrated from ionic 3 to ionic 4 , any of my .scss file is not working
 
3:19 PM
if(currUrl == url[0]){
     (post nothing)
}
else if(currUrl == url[1]){
    <link href="url1"></link>
}
 
@bigchungus Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
 
3:30 PM
I certainly wouldn't be using an if/else chain to check an array...
Also, what language are you even using?
 
JS
Why not?
 
What's the point of using an array if you're gonna be writing it all out any way?
 
3:49 PM
Is it possible to filter down a nodelist to a node?
 
It still works thats why
 
Oh and good morning everybody
 
Trying to figure out a "better" solution
 
@JustinHarris yes
 
filtering a nodelist is still a nodelist
but you can certainly pick a node from it
 
3:49 PM
Oh using item(index)
 
@bigchungus "it works" is the reason some people are still stuck using windows XP
 
gotcha okay
thanks for the help
 
1.) I doubt anyone is still using windows XP.
2.) It works.
 
/facedesk
 
Just because it may not be the "ideal" way that someone else would go about it doesn't mean that the functionality is faulty or not there
Just my 2 cents
 
3:51 PM
Bad practices, bad readability, poor maintainability, but it works
Let's just throw all standards out of the window, because it works
And let's ignore advice while you're at it, because it works, right?
 
not to mention the overall time saved in the long run.
 
Effin' hell, why do you even bother asking for help here
 
Maintainability of what I am using it for, only thing that would be changed would be a link or something
So thats not bad
 
Add more links for the hell of it, you know that project will be coming up soon.
then see what problems arise.
 
lmao
 
3:54 PM
I'm not "ignoring" advice I am simply inquiring why it is a "bad solution" to you. You were just throwing that out there with 0 reference until I started to question you
 
it's awful
imagine deciding to type all that out, when you could... just not
i've just grown tired of telling you code is awful
:shrug:
 
This is not the first time
@KevinB + your
 
that was purposely omitted
;)
 
:D
Frankly, if it were up to me we wouldn't be running into these discussions any more
 
Cerbrus, just to clarify you can use filter on a Nodelist and select from the Nodelist a particular node?
 
3:57 PM
Well yes and no
 
Hmmm
Okay, ill look into it further
Thanks
 
A nodelist doesn't have the standard "array" functions
But you can easily convert it into an array
271
Q: Fastest way to convert JavaScript NodeList to Array?

jairajs89Previously answered questions here said that this was the fastest way: //nl is a NodeList var arr = Array.prototype.slice.call(nl); In benchmarking on my browser I have found that it is more than 3 times slower than this: var arr = []; for(var i = 0, n; n = nl[i]; ++i) arr.push(n); They bot...

 
and then use the id for selection
 
Then you can filter or whatever you want
Or just get an entry from the nodelist by index
 
Now you can just call .values or .entries
I hate questions like that one, so much useless info in the name of micro optimizations that don't matter for the kind of people looking for that question
 
4:01 PM
^^ lol
Okay that's all I needed. Thanks for the help once again and sorry big,cere, and kevin for barging in on your conversation. It really is not a problem to take seriously because after all you are still learning but yeah, probably should learn from the people who have learned everything. Take care all of you and have a good weekend.
 
well i just had an hour long discussion with the people over on infosec stackexchange about the feasibility of my idea
they don't think it's feasible
 
@JustinHarris thanks for barging in
 
i disagree
 
Having an actual conversation with an answerable problem was a welcoming change :D
 
lol
 
4:05 PM
You should be the last one to "lol" at that...
 
lol
 
im gonna go write a blog post on it
 
BIGCHUNGUS <3 <3
:D
bb
 
@ROs: Make "fuck the haters" a auto-kick message: Aye or Nay? xD
 
facepalm
 
4:16 PM
1 message moved to Trash can
@Cerbrus on the edge
@JustinHarris please be politer thank you
 
Hey guys, I think I am struggling to go through the docs. feeling like I am really struck in tutorail pugatory. Is this video speaks the same about File system API?
 
Oh I didn't even consider that specific word to be the problem
 
@RifkyNiyas i suggested you read something
 
they have mentioned that file system access API is now available in stable in chrome 86!!!
 
i read through it a bit, looks like a decent API
there are a bunch of restrictions which is understandable
 
4:20 PM
@JBis yah. that seems like the only way out now.
I am asking whether the api you gave and the one on this web.dev/file-system-access are the same?
 
looks like it
 
Woah then if I am correct, the api has been standardized and has become stable with different syntax right?
they do have mentioned this ==> "During the origin trial phase, there was a universal method named Window.chooseFileSystemEntries() that has been replaced with the three specialized methods "
 
ah yess..
 
hmmmm
 
4:44 PM
Well, I think I am having hard time wrapping my head in this one
A help would be much appreciated
 
@RifkyNiyas this is a very specific API. If you have a question you can ask but my guess is no one here knows much about it. Keep reading docs and trying different thngs. MDN has examples.
Test it out
 
@JBis Yap examplesss... I am in search of them actually
It has been mentioned as file system api can be used to Apps with persistent uploader. But no any examples for that
@JBis If you don't mind can you mention the special usecase of this API in my case? Is it used to upload and store the pictures to make a duplicate to store in IndexedDB?
 
neither
it's to access the file system to read the files
 
@JBis Mmmmm. OK
Then whats more special about it than file input tag
And is it similar to file system access API which i mentioned eariler in chrome?
 
 
1 hour later…
6:00 PM
cya all o/
 
6:32 PM
Take care!
 
7:25 PM
!!echo echo
 
echo
 
7:38 PM
Guys, I think I am not at all good with searching through docs. I think I need to refresh some basics
What is mentioned by an "interface" in an API?
 
the surface in which you interact with the object
 
7:59 PM
 
 
3 hours later…
11:04 PM
Anyone know how I can investigate further what the error is when I try running HOST=0.0.0.0 react-scripts start and it just gives an exit code 1
it's a company computer, but it looks like I have the firewall exceptions setup
 
11:40 PM
found it...
let's never talk about that again.
 

« first day (3786 days earlier)      last day (1145 days later) »