« first day (3943 days earlier)      last day (988 days later) » 

6:15 AM
I'm constantly juggling with the idea of full ajax/json data validation on the front end after calls to the backend. Versus just considering the data to be "non broken" and just using it and letting weird things happen.
On one hand validation helps me give correct user errors like "server is having a weird day...." On the other: it is -especially on older mobile phone- taking a good chunk of processing time and makes responses way less smooth.
 
 
1 hour later…
7:52 AM
Also anyone knows what happened to: npmjs.com/package/jest-express
it's still in the search of npm but I cannot click on the package
 
 
6 hours later…
1:35 PM
routes/index.ts:

import { Router } from "express"
const router: Router = Router()
export default router
routes/userRoutes.ts:
import router from './index';
import { addUser } from "../controllers/user/userController"
router.post("/user", addUser)
do I need to do anything more in userRoutes.ts? There I import router from routes/index.ts and add new routes with controller to it...

in my server.ts isn't it enough just to import the router from index.ts and use it?
 
1:51 PM
o/
 
2:26 PM
!!necro or sorc
 
sorc
 
Always sorc
 
garlic!
 
i went necro anyway
 
2:51 PM
Frozen orb >>>> skeletons
 
3:40 PM
wat is necro?=!
I did dis:
import { addUser, login } from "../controllers/user/userController"
import { Request, Response, Router } from 'express';

module.exports = function(router:Router){
    router.post("/user", addUser)
    router.get("/user/login", login)
}
index.ts:
import { Router } from "express"
const router: Router = Router()

require('./userRoutes')(router);
 
o/
 
@Lewis 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.
 
3:57 PM
@Suisse necro = necromancer; sorc = sorceress;
I assume Kevin is picking what to play in Diablo 2
If it's not Diablo 2, then sorc might be "sorcerer"
 
eso
 
Ah, OK then. Go kill...dunno what's a common enemy in ESO. Nords or whatever.
 
so in this case necro... is a class that has skills that revolve around the undead. summon skeletons, or undead colossus's, bone-related skills, etc
 
You did describe the D2 necro, you know.
 
yup
 
4:00 PM
Also, I think you described pretty much all necromancer classes.
 
but it's... playstyle is nothing like d2 necro
d3 necro is probably a bit closer
but the reliance on corpses is pretty small in eso
 
Didn't like the D3 necro. Dunno, just not my playstyle.
 
me either
in fact no skill that does damage requires a corpse, but some are enhanced by it
 
I'm not much into online games. ESO looks fun but...I feel it's a bit time sink.
I play a bit of Path of Exile from time to time with a friend. Or Warframe. But I avoid MMOs.
 
it's as much of a time sink as you make it
none of the "daily" or "weekly" content really matters in the grand scheme of things, unlike in wow where dailies actually unlock major power boosts
but... if you had to do everything... that's certainly a major time sink, considering all dailies ever put into the game remain "relevant" until you have all the cosmetic rewards for each
;)
 
4:08 PM
Meh, you can't tempt me. I'll go play some Deus Ex: Mankind Divided
Just started it over the weekend.
 
4:26 PM
Hello, I need some help with setting PK as uuid in Sails 1.x, have been trying for 3 days now but no success.
 
 
1 hour later…
5:30 PM
Got my fifth Silver badge finally
 
"Zero score accepted answers: more than 5 and 20% of total." hey, it's something! Congrats!
 
unsung hero?
 
Pretty much
 
i got that badge somehow
way back in 2011
that's how
lol
 
6:07 PM
@KevinB Tenacious. It's the silver version.
 
ah
same diff
i earned both within my first 2 months of answering
 
i feel like shitty questions get much more attention than good questions
 
easy questions get much more attention than good questions
simply because more people can answer them
 
@JBis They have the advantage of numbers
 
fair, just annoying
 
6:12 PM
Understandable.
 
!!stat 16579850
 
Username: google
ID: 16374345
Reputation: 13
Reputation Change Month: 12
Last Accessed: Mon Aug 02 2021 13:37:45 GMT-0400 (Eastern Daylight Time)
 
Almost as if most questions that's unique enough not to be a duplicate and researched enough, is too niche for anyone to answer
or maybe i'm just salty about my most recent question not getting any attention
 
why not both
questions are either duplicates, or not debugged/broken down enough
 
6:17 PM
so is there a such thing as a new good question on SO anymore? and if so, do they ever get answered?
 
By some definitions of good
stackoverflow.com/questions/66748337/… for example, several people have expressed that it is a good question
it is in fact just another awaiting a callback question
 
@KevinB the answer is even worse
I don't know the Stripe API but my guess is stripe.checkout.sessions.listLineItems returns a promise if there is no callback
And regardless it doesn't explain the issue
 
most of the answers that earned me the unsung hero were "Try this" answers
i'm not sure what the best way to purposely pursue that badge would be today
maybe pick a tag and just answer every question
dozens a day
for months
quantity > quality
 
weird to me that other SE sites work really well when SO doesn't
 
6:32 PM
I haven't participated in other stacks enough to really know of any that work
other than SO and MSE
 
I was on AskDifferent for a while (top 1% of users) and never had nearly as many issues with question quality
 
though i'm not sure i'd consider MSE "functional"
it's mostly just BS posts and everyone upvoting each other
 
People asked shitty questions but they were taken care of quickly and wasn't overwhelming. And most questions even niche got good answers.
 
unless it's a company post or a disgruntled user, then it's downvotes
 
hmm, i just realized something...
iMessage is supposed to be e2ee. But if you send a url, a preview is generated, but that preview is fetched by Apple, not by the user. So Apple is reading (or being sent) every URL sent over iMessage.
 
6:40 PM
@KevinB Just answer questions of new users.
@JBis SO gets 5.7k questions a day on average. That's a lot of crap. Tons of dupes and tons of rep fodder. People get to answer "how do I iterate through array and do X" all day every day.
The second stack with most Qs per day is Mathematics and they get 331.
It's probably easier to curate.
 
nvm about imessage thing mysk.blog/2020/10/25/link-previews
 
@JBis Can be a good self-answer if you say "Cannot be done for this and that reason. See this article for more" or similar.
 
hi, i have a icon service which is meant to not fetch for the icon if its already existing, its like a small caching service to reduce the load on my server where i use lot of icons. I made it as a singleton so that the same service with the same store is called everywhere but im having difficulty waiting globally for the function
, because when lets say i have 3 components (a-b-c) a calls, sees the icon doesnt exist, makes the fetch, component b makes the call instead of waiting for component a function to finish executes it and redoes everything jsfiddle.net/nwpaxsc0 and so does c
 
Can be done for other services, but iMessage retrieves it sender side, which is still problematic
Hmm, that gives me another idea....
I wonder if Apple simply whitelists YouTube URLs.
 
 
1 hour later…
8:13 PM
Interesting API that sends documentation for everything in all API responses
 
posted on August 02, 2021 by Srinivas Sista

The Stable channel has been updated to 92.0.4515.131 for Windows, Mac and Linux which will roll out over the coming days/weeks 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 a

 
Same site uses a HTML4/HTML1.0 doctype with react
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Also uses jquery
 
this site uses jquery
1.12.4
released in 2016
 
jquery + react is weird to me
 
8:31 PM
@JBis Hey man I was able to solve the problem I was having last time(going from a query filter tree to a filter expression string) by defining a recursive function and solving each sub filter expression separately. Now I have to do the reverse(go from a filter expression to a query filter tree).

The problem I'm having is how can I parse the filter expression?
 
if the expression is not in a standard format (like json) then it's gonna be a fun project. You'll have to write your own parser and depending on the complexity you may need to basically create your own language.
Can you give an example of an expression to gauge complexity?
 
the expression consist of only functions with 0 to N arguments, variables and literals.
so for example the expression A(B(C, D, E), F(G), I()) has A as a function with three arguments, B as a function with three arguments, C, D and E are leaf nodes that are either variables and literals and so on and so forth.
 
what's an example of a real query?
A(B(C, D, E), F(G), I()) should be fairly easy to parse.
but the only benefit of using this intermediary format is that it is human readable/writable. Are humans going to be directly interacting with raw text queries instead of using the UI you created?
 
The raw text is just a visual indicator(as of now) of the last valid filter that the user has created.
 
how do you mean? why do you need to use this format instead of json?
 
8:42 PM
Simply because the raw text is more readable and human friendly to the user.
For example, here is one filter expression that I created.

`and(if(occurrence date, rand(), uuid()), year(2009))`
 
@LuisAverhoff not sure what you're doing but you can look into existing filtering libraries. At work we use OData which is a Microsoft thing. Allows you to very easily supply parameters to endpoints. e.g., /people/?$filter="name eq 'Bob' and age gt 20"
(not URL encoded here for easier readability)
OData then takes that and constructs a filter over your People collection
 
 
1 hour later…
9:51 PM
 
 
2 hours later…
11:26 PM
question
does visual studio have something where web debugging is convenient instead of running debug and having to 'right-click' on the browser to 'inspect' the code and click on 'console' to see
 
11:44 PM
posted on August 02, 2021 by Krishna Govind

Hi, everyone! We've just released Chrome 92 (92.0.4515.131) for Android: it'll become available on Google Play over the next few weeks. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

posted on August 02, 2021 by Marina Kazatcker

  The Stable channel is being updated to 92.0.4515.130 (Platform version: 13982.69.0) for most Chrome OS devices. Systems will be receiving updates over the next several days. This build contains a number of features, bug fixes and security updates, please find release notes here. If you find new issues, please let us know by visiting our forum or filing a bug. Int

 

« first day (3943 days earlier)      last day (988 days later) »