« first day (3924 days earlier)      last day (1246 days later) » 

01:30
this is prettah cool tailscale.com
 
1 hour later…
user13780186
02:46
Hello devs, can geoloc. get the zipcode based on the long and lat?
no
use an api
user13780186
I used the algolia some countries doesn't have zip code/postal code
user13780186
@JBis ok thanks
user13780186
04:21
is there a way to get the missing zip code/postal code? like there's a other package
07:09
Hi guys, on this url: tickets.fk-austria.at/shop?shopid=4&wes=9845ecec4 how I can achieve it wit Javascript, that I click automatically on sector 102 in the SVG and then on the pop up on "Plätze wählen" which brings me to the next site?
And how do I get directly to this URL? (or whatever it is) after clicking on 102 and "Plätze wählen?"
 
1 hour later…
user13780186
08:35
How to fix the how to fix Access-Control-Allow-Origin in angular using fetch?

What I did is like this fetch(`dct.dhl.com/data/postLoc?cntryCd=KH`).then(res => console.log(res))
08:57
@BeginnerCoder use google's API
@BeginnerCoder explore the Fetch documentation on MDN, more especially the "headers" part
@BartekBanachewicz what did you dug up? 😂
posted on July 14, 2021 by Michaël Zasso

Notable Changes Experimental Web Streams API Node.js now exposes an experimental implementation of the Web Streams API. While it is experimental, the API is not exposed on the global object and is only accessible using the new stream/web core module: import { ReadableStream, WritableStream } from 'stream/web'; // Or from 'node:stream/web' Importing the mod

09:43
i still don't get it why are factory functions needed
@RanaShaharyar Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
What is better guys?
saving jwt token in localStorage or cookies
10:00
@RanaShaharyar "factories" is a design pattern, depending on the source, you can find examples when it's appropriate to use. The biggest challenge of a documented design pattern is to use it appropriately
Consult "Design Patterns" book from "Gang of Four" or use ... wiki/articles somewhere on the web
@LiXiuYing what is your answer? I will "evaluate" it :P
I see people saving on localStorage but i'm unsure.
10:19
@KarelG ok
@LiXiuYing they are doing it wrong :)
it's damn insecure as well lol
oh is it
what should i do
use Http Only cookie. that's the first step and covers the majority of the attack vectors
i was following a tutorial .
then additional step; anti-CSRF -> use XSRF-TOKEN or something to mark the requests.
10:21
everything is hard, I think i am not suitable for web development.
tbh all back-end endpoints must have a token-based csrf policy in effect for non-GET requests.
@LiXiuYing are you learning programming at your own? or just to explore it while you have another profession?
it is feasible to learn programming by online tutorials, but they don't cover many cases. I advise to enroll in IT based courses (either at university or as "adult school" in the evenings)
yes i'm learning at my own.
at least to get job at first place then i'm thinking to look other fields.
@KarelG I'm cs student, but web dev courses are boring, professors just teach us about calculating ages, and things, not real world.
I was following this
He saved jwt token in localstorage.
11:04
he's not the first one and won't be the last one 🙂
@LiXiuYing he's doing that to allow you to get your grasp on the js language. Simple things are pretty explanative
going immediately in difficult things does not work for many people. The learning curve becomes suddenly too steep as you have experienced
If i change to save it in cookies instead of localStorage, will it be fine?
see my previous comment (look up) :P
will it be ok for now if i do this with it, building a web app
showing in resume and things
@KarelG,

Based on your exprience,
Which one you think is easiest/best framework for making backend and frontend web app
11:16
currently, for front-end Vue.js is place to be IMO. Please note that it is a personal recommendation. This does not mean that React or Angular is garbage. Although I am not so lenient towards Angular. I would advise to not use that heh. A best answer for you is that you comprehend what each framework does. With this information, you can decide at your own which one is more suitable for a project. I always look at the goal, what I could use to reach it. I don't start by preference.
for back-end, there are many platforms you can use. It also depends of the project. Node.js is more lenient for socket based communication whereas Jakarta EE or ASP.NET might be useful for high data volumes and allows more people to step into the project.
One thing you should not do is to work with ColdFusion 😁 @KevinB
@KarelG "[...] which one is more suitable for a project.".. but how? My main problem with new frameworks is that most of the time both documentation and "userbase" (more the SaaS provider) says that "everything is possible" and "easy" and "secure"
at most 3 weeks in the project you notice that was... a lie
ha, that is what "marketing" means.
you can only know a framework if you have started a mini project with that. I have a small project and written a solution for that in multiple frameworks. It helps me to figure out its capability, to compare each other and other things. It is time consuming yes. Although an investment for the future.
Research is a thing you know. When there is a big project for my team, I start with its analysis and based on the requirements, I extract some general purpose features. then I let some people work a solution on that on framework X. Then we evaluate these.
Although not all companies are lenient towards that. Managers wants to see results, they don't care about these first steps
11:33
Protoyping a small project is a good idea, thought my company is much to small to do multiple prototypes and evaluate them.
I tend to stick to whatever worked last (postgres db, laravel backend, react frontend, react-native mobile), if it's not a requirement from the very beginning like Java Spring MVC or "something with python".
 
1 hour later…
12:52
o/
 
2 hours later…
15:12
@ShawnEary 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.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@ShawnEary Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
1 message moved to Trash can
Thats the most James has said in the past 3 days in two messages :D
Oops...
Just when you pasted code, remember to key Ctrl+K after so it formats
So James doesn't get on you
!!mdn beer
15:24
I have a trivial mjs file in that is shared between a Node.js backend and Next.js frontend. Backend loads the mjs file without issue, but frontend app barfs with this error:
Module not found: Can't resolve 'fs'
Path from backend is "../modules/helper.mjs". Path from frontend is "../../modules/helper.mjs"
Trivial helper.mjs file follows:
// nodejs.dev/learn/reading-files-with-nodejs
// developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/…
import { readFileSync } from 'fs';
function getConfig() {
  const data = readFileSync('../etc/config.json');
  const theJSON = JSON.parse(data);
  return theJSON;
}
export { getConfig };
I noticed something about how I should be calling my getConfig function inside a getStaticProps func on the Next.js side, but so far, that hasn't worked out for me and I still get that "Can't resolve 'fs'" error:
https://flaviocopes.com/nextjs-module-not-found/
Not sure why Node.js can load the 'fs' NPM module from inside my helper.mjs and Next.js won't do that for me.

Best!
fs shouldn't be on the client
2
if that json doesn't change, mightaswell just require it directly rather than reading it synchronously, no?
You can't recover fiddles can you
I just accidentally deleted one that I should not have deleted...
 
1 hour later…
16:51
posted on July 14, 2021 by Srinivas Sista

 The Beta channel has been updated to 92.0.4515.101 for Windows, linux and Mac. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Srinivas Sista

17:39
Does anybody using pyjwt for django backend rest, how you are handling it ,such as email verification ?
BRAVE BROWSER
Now support

IPFS

,
Have bat token to ads, but not like you, It is opensource.
function promoFade() {
  $('#promo').delay(10000).fadeOut(150).delay(10000).fadeIn(150).delay(10000).fadeOut(150).delay(7000).fadeIn(150);
};
setInterval("promoFade()", 0);
@KevinB I hate this
0
Q: How to reload image every x seconds using JQuery?

robert0Right now I have this code: JQuery: <script> function promoFade() { $('#promo').delay(10000).fadeOut(150).delay(10000).fadeIn(150).delay(10000).fadeOut(150).delay(7000).fadeIn(150); }; setInterval("promoFade()", 0); </script> HTML: <script src="https://ajax.googleapis.com/ajax...

 
2 hours later…
19:35
I am searching through hidden data to display items that have a value
$('#dpicker').val()
If the value I am searching for is lets say for example 07/07/2021 (that is a Wednesday), it will get appended to a span like so:
if (searchData.includes(api.search())) {
            $('#under_txt').html("Day Of: " + moment($('#dpicker').val()).format("MMM Do YYYY"));
                return true;
            }
Instead of having the span show that Wednesday date, how can I have it show the Monday date corresponding with that date. All items that will show from the search will have the dates 07/05/2021 - 07/09/2021
So ideally it would show 07/05/2021 if any date other than Monday in that week was used for the search
facepalm I forgot .startOf('week') will reveal Sunday... Fixed with
$('#under_txt').html("Week Of: " + moment($('#dpicker').val())startOf('isoWeek').format("MMM Do YYYY"));
 
3 hours later…
22:57
posted on July 14, 2021 by Krishna Govind

Hi everyone! We've just released Chrome Beta 92 (92.0.4515.101) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome


« first day (3924 days earlier)      last day (1246 days later) »