I posted a question about this to stackoverflow, no answer so far, could you take a look please?As it seems to me, rendering of react components is a complex task for a server, I think it's maybe hundred or thousand times more server work than a regular API, which validates params, makes query and responds with json.So is it a good idea to do SSR only for bots, based on user-agent header? How would you resolve it?
Submitted October 01, 2020 at 06:30AM by romeeres
Wednesday, 30 September 2020
Websockets behind apache reverse proxy
Hello! Is it possible to set up websockets behind a reverse proxy on a shared server without sudo access? Upon researching, all I'm finding out is that I need to configure apache itself (with ProxyPass). Is there no other way to do it?
Submitted October 01, 2020 at 06:51AM by berensteinbeers007
Submitted October 01, 2020 at 06:51AM by berensteinbeers007
little humor
https://i.redd.it/unq3vln40fq51.jpg
Submitted October 01, 2020 at 05:57AM by prnysarkar
Submitted October 01, 2020 at 05:57AM by prnysarkar
"Professional" API structure
/r/learnjavascript/comments/j30iij/professional_api_structure/
Submitted October 01, 2020 at 03:59AM by ThunderBow98
Submitted October 01, 2020 at 03:59AM by ThunderBow98
Wondering if anyone here has the answer to this
https://stackoverflow.com/questions/64147795/passport-signup-just-spins-constantlyHaving some issues and not sure where I went wrong
Submitted October 01, 2020 at 03:20AM by ShadyDaDev
Submitted October 01, 2020 at 03:20AM by ShadyDaDev
eBay API Help
Is there a reason why my app would be returning a 401 Unauthorized response if the access_token is what I have on my. developer console on Ebay?const getToken = async () => { const token = await ebayAuthToken.getApplicationToken(prod); return token && JSON.parse(token) } const getEbayData = async () => { try { const token = await getToken(); console.log(token, 'TGOKEY') const res = await axios.get('https://api.ebay.com/buy/browse/v1/item_summary/search', { headers: { 'Authorization': `Bearer ${token && token.access_token}` }, params: { category_ids: 108765, q: 'Beatles', limit: 10 } }); console.log(res, 'RESPONSE'); } catch (err) { console.log(err) } } getEbayData()
Submitted October 01, 2020 at 12:40AM by NoCall2
Submitted October 01, 2020 at 12:40AM by NoCall2
How do you build a YouTube backend?
https://github.com/manikandanraji/youtubeclone-backend/blob/13c5bfec2d4f045e94a20d18831d07a1f0538d54/src/controllers/video.jsWas looking at the repository and the guy is just serving a video as if it were a picture, but that's not really what you're supposed to do when making a video streaming application. I am not talking about live streaming like Twitch, but a video streaming service like Netflix or YouTube where video is broken into little chunks before being served.
Submitted October 01, 2020 at 12:07AM by jadesalad
Submitted October 01, 2020 at 12:07AM by jadesalad
Does NPM rollback dependency installations if one fails?
Sometimes when I npm install multiple packages and one fails, it seems an earlier one doesn't make it onto the package.json list either. Is that standard behavior or am I misinterpreting what is going on?
Submitted September 30, 2020 at 11:12PM by embar5
Submitted September 30, 2020 at 11:12PM by embar5
What are the best tutorials for senior developers?
What are the best tutorials for senior developers? Instead of teaching you the basics, I want a course that teaches you how to do horizontal or vertical scaling on a node.js application or build one from the scratch and vertically or horizontally scaling it, or something along that line.
Submitted September 30, 2020 at 11:14PM by jadesalad
Submitted September 30, 2020 at 11:14PM by jadesalad
COM Objects with Nodejs/Electron
Anyone know how to get COM Objects using ProgID on Nodejs and invoking a method on it.This is my complete StackOverflow post: https://stackoverflow.com/questions/64145815/working-with-windows-com-objects-with-nodejs-electronI am creating a desktop app in Electron and need to communicate with COM Objects by fetching them from their ProgID
Submitted September 30, 2020 at 10:23PM by Mark_Tesla
Submitted September 30, 2020 at 10:23PM by Mark_Tesla
Rate my Backend API seed/boilerplate (TypeORM, Koa, GraphQL, JWT)
Hi guys,I've made an API seed from which I want to start every hobby project for myself.I would really like your advice on the setup in general, middleware that I forgot or should add, ...At this moment only basic CRUD of a simple TODO is present. But it should be the same logic for every other entity.I'm handling authentication with JWT tokens and would especially like your advice on a good way to determine whether or not a user can access the app (CRUD of todo).I could write a function that extracts and decodes the JWT token from the "Authentication" header and apply it on the level of the resolvers. But then I should implement it everywhere manually. Or I could do something like this ?I would like the latter but than I should add something like koa-jwt. But I would rather write my own middleware. Tried that already, but didn't work out. So tips are welcome on that as well.Also advice or tips on docker are welcome, because it is dockerized.You can find the code here.Thanks in advance,Bert
Submitted September 30, 2020 at 07:12PM by bertv96
Submitted September 30, 2020 at 07:12PM by bertv96
The Most Popular Programming Languages - 1965/2020
https://youtu.be/UNSoPa-XQN0
Submitted September 30, 2020 at 05:26PM by accappatoiviola
Submitted September 30, 2020 at 05:26PM by accappatoiviola
Why does this request return error 422?
I'm trying to run a request function to log into a website, in order to get the correct headers for the log in request I think i need to send a request to this uri: https://api.endclothing.com/tracker/rest/v1/gb/eventWhen i run this function i get a 422 error, I will put the Network request headers below:async function endTest() { const userPass = { username: "mygmail@gmail.com", password: "myPass" }; const createSession = async () => { console.log("create session"); const resp = await axiosInstance.post('https://api.endclothing.com/tracker/rest/v1/gb/event', { "application": "web", "currency": "GBP", "email": "mygmail@gmail.com", "email_hash_id": "email_f******************************a", "first_name": "jon", "language": "en", "last_name": "Doe", "origin": "account", "region": "GB", "shipping_country": "United Kingdom", "store_id": 1, "url": "https://www.endclothing.com/gb/" },{headers:{ 'accept': '*/*', 'accept-encoding': 'gzip, deflate, br', 'accept-language': 'en-GB,en-US;q=0.9,en;q=0.8', 'content-type': 'application/json', 'origin': 'https://www.endclothing.com', 'referer': 'https://www.endclothing.com/', 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'same-site', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36' }} ); const statusCode = resp.status; const cookieFirst = resp.headers["set-cookie"]; console.log(cookieFirst , statusCode); // axiosInstance.defaults.headers.Cookie = cookieFirst; // console.log('here'); } createSession(); Headers I send in the browser::authority: api.endclothing.com:method: POST:path: /tracker/rest/v1/gb/event:scheme: httpsaccept: */*accept-encoding: gzip, deflate, braccept-language: en-GB,en-US;q=0.9,en;q=0.8content-length: 346content-type: application/jsonorigin: https://www.endclothing.comreferer: https://www.endclothing.com/sec-fetch-dest: emptysec-fetch-mode: corssec-fetch-site: same-siteuser-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36Data i send in the browser: {"event_name":"log_in","data":{"application":"web","currency":"GBP","email":"mygmail@gmail.com","email_hash_id":"email_f******************************a","first_name":"jon","language":"en","last_name":"doe","region":"GB","shipping_country":"United Kingdom","store_id":1,"url":"https://www.endclothing.com/gb/","origin":"account"}}Any idea's on how i can fix this?
Submitted September 30, 2020 at 03:56PM by Winner-Popular
Submitted September 30, 2020 at 03:56PM by Winner-Popular
Advice needed for Cs graduate
Hello guys, I’m going to graduate in cs next April and I want to dig into Node.js. I have some basic JavaScript knowledge and strong background in python/ django and programming concepts.Could you recommend me good books, resources that let me hit the ground running with JavaScript and node.js?Many thanks for adviceI started book “JavaScript Everywhere “ but it goes really into graphql. Should I stick with it or find something else?
Submitted September 30, 2020 at 04:02PM by FitDaqm
Submitted September 30, 2020 at 04:02PM by FitDaqm
Using Node but confused how JavaScript working under the hood? Check out this video and learn core concepts of JavaScript by visualizing them :)
https://www.youtube.com/watch?v=6-r27DeEgVc
Submitted September 30, 2020 at 03:53PM by beingonearth
Submitted September 30, 2020 at 03:53PM by beingonearth
Node for real time application
Hi everyone, I wanted to build a real time app like a stock exchange where the prices will change almost every second. Is Node (for serverside) a good idea in this use case, what do you guys think?
Submitted September 30, 2020 at 01:46PM by flashdoc_78
Submitted September 30, 2020 at 01:46PM by flashdoc_78
Exploring Node.js Async Hooks
https://blog.appsignal.com/2020/09/30/exploring-nodejs-async-hooks.html
Submitted September 30, 2020 at 01:32PM by mmaksimovic
Submitted September 30, 2020 at 01:32PM by mmaksimovic
Uploading Files using Multer on Server
https://medium.com/@pprathameshmore/uploading-files-using-multer-on-server-in-nodejs-and-expressjs-5f4e621ccc67
Submitted September 30, 2020 at 09:34AM by Drink_Otherwise
Submitted September 30, 2020 at 09:34AM by Drink_Otherwise
Please advice on the best architectural solution
Hi guys , I was working on an e-commerce app and faced a situation. If anybody has a suggestion , it would be quite helpful I was trying to implement a payment reciept , delivered after buy order is placed , that can be shared to social media like watsapp. It is currently a custom html file link to a file that is generated and stored in S3 bucket with public access. But it feels like a bad workaround. What I have in hand is a Magento response containing details of order. How would I build a receipt system that can deliver a receipt and can be used for retrieval at a later point of time as well. Pls advice
Submitted September 30, 2020 at 09:58AM by MardGreer93
Submitted September 30, 2020 at 09:58AM by MardGreer93
Before retrieving authorized resource, how do I validate that my Access token / jwt token is valid in the correct and that I should proceed in Oauth2 flow?
Before retrieving authorized resource, how do I validate that my Access token / jwt token is valid in the correct and that I should proceed in oauth2 flow?Let’s say my backend api is going to retrieve some animal data to the front end, I have set up a middleware that check if you are authorized before it call on _next() which do the actual request, if not authorized then it will return 401.What I’m wondering about is that I have a express server that has a validate endpoint. This endpoint is sending the jwt / access token to the authentication server, which either returns a decoded jwt / access token or 401 / exception if access token was not valid.Do backend actually need to do something more of the validatation of this token? Or is it enough that my express server send the token to with server and retrieve the decoded access token? What is the minimum requirement on both express server validate or middleware handling in the backend?
Submitted September 30, 2020 at 09:02AM by exilen
Submitted September 30, 2020 at 09:02AM by exilen
Don’t dynamically import code in a directory
https://medium.com/@fawcilize/dont-dynamically-import-code-in-a-directory-838cedf9534a?source=friends_link&sk=cfb17484d7a18bd969f079a8c94c430b
Submitted September 30, 2020 at 08:20AM by kiarash-irandoust
Submitted September 30, 2020 at 08:20AM by kiarash-irandoust
Tuesday, 29 September 2020
How to handle sending multiple mysql queries from an endpoint and avoid crashing my node app?
I have intermediate experience with Node. So I am trying to display query results on one of my webpages, and there are 8 queries total fetching results from 4 different tables. I am currently sending 8 queries simultaneously, and I think it might be causing a performance issue.When I try to add an additional query along with the 8 already there, my node app crashes. I get the error "Server is down due to capacity problems". If I stick with 8 queries, the node app works fine.I believe sending multiple SQL queries simultaneously might be the issue. I need to add more queries to this endpoint for my next feature, and currently, I am not able to do so.This is my code below. The variable images_sql is 8 queries concatenated into 1.con.query(images_sql, [well_id, well_id, well_id, well_id, well_id, well_id, well_id, well_id], function(err, results, fields) {if (err) {throw err;} else {single_well_obj = {well: results};res.render('images', single_well_obj);}});Should I be using async/await or Promises to solve this? Or is there way to fix this?
Submitted September 30, 2020 at 06:40AM by yungspartan0082
Submitted September 30, 2020 at 06:40AM by yungspartan0082
Is it possible to send request headers that are generated upon request in a http request?
I'm trying to log in to a website using Node.JS requests (I'm using Axios to do this) and I recieve error code 416 when I try to send a POST request to the API, it knows I'm a bot and blocks me from logging in.However, I am able to send the request when I include these headers "exj5wzxnuf-a": "RbupF1JTWdsUNt03FvNScODb3Vl_ZSzaiJNyGwZu2bXiXp-IshPd5uoY8Z7WOzDwjw8qmiMjqdsG4Kn7h3WvZK04aYVKSLNOw5jVNlxHSdA5yMMRlSdhu_WfedQAuO2dxFL8CKMgR4MfZLaKQSwDuf2s_HLsN9qrkJMJPE3yAHCgJRcP6MuhgvHSpCoT1bW9wOmC1xAJFiW0O_iIO8RlJLElAfnopHBLVN4LxenPYRQ767FvzAygORJSQi-we43bz-wdLT8rxtngMmhawxDG4MN3a3flJyTBzhoChQJ4bg8f7IUELNEY-zjuhyImWmtGb080P1foY707Su87CWaHTxarOb8g22BVlKv35fOsycSLMHt6C4msCw-RFem7ZboZ5AsfM_OrOaf_LlgiwqLG7I-mZNt_19RGTxoVnJU5p_MSDpu-tchmm-Dl2uzzvX7mKA30bCRQqDvwHZtxLed1rqQaqNE5PII5ma23zPhYNfILA1HHoVkeenZGgG7Py0IQJotJqRDidncR6Rm6lRL0VETgthfxyiFHFIdN62LTp-XWjgyyl6xfBh16Wh88TB8oW2jBhIGg3Aa-dbpRXSGXxbWUUWwS-tF63X2laAzekoF57xheQUId7NCuacxH9ZpI76gb0_L5ZOZ9ZwslhkjvjqmppI5akllrb6bpK69N3kXiYyGbI5fvfPnEvgKIweqmtBmPr1psgLBGWkGZ_yjU15jUxjJowd581jJo0u_qscrwNOTQ2ctNDg0eUTzDKO5gYYrwby1M1XJeD9SHNVmKSw3qzfrZvOpcPfztGEcgc4z3zHAbNIPOGFVe7-i4z_jiHV9pJ9Vo6x33NuuLrwo8-P8GuFWP1ht6ETyR0HOuWK2wp7ERRcS5qXk_vEJQi9Cbh1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XTPnoHzZduPJBclwTvE4cxxE5Kqmool5wjf_zBFI3Cev4", "exj5wzxnuf-b": "-hhwftc", "exj5wzxnuf-c": "AICj79B0AQAAWwRaKEQdWHuxBVwHSLBkxxkPerOXzasSuiqSKg-Kv7HnWVca", "exj5wzxnuf-d": "AAaihIjBDKGNgVGASZAQhISy1WIPir-x51lXGgAAAAB7Gu1BAIJ87WUFq_YBxIBaDNFjRjQ", "exj5wzxnuf-f": "A9OF-dB0AQAA92ZJMpyMR1wdPsOqMVFXJOhOz7CFTSckr6fvTlxsC6STL7XVAVAHP6-ucrtWwH8AAEB3AAAAAA==", "exj5wzxnuf-z": "q", "x-dtpc": "5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30", "cookie": "mage-translation-file-version=%7B%7D; mage-translation-storage=%7B%7D; rxVisitor=1597657065467ULBBB9OKTTK11DMJHLGQAHTC70GL9DT7; _gcl_au=1.1.1712652071.1597657068; _fbp=fb.1.1597657070278.1086752850; __zlcmid=zjjMlQ9MPWHQkX; 4tagIi0FLf=AP1wXgZ0AQAAazAOkRBOE7hEmjNUJzygwFBQmsv9G9r9atg4koEnOduuzUXn|1|1|33745b0093f9669915ad744980d4dd0c4f77e98a; end_country=GB; _ALGOLIA=anonymous-347911f1-236e-4554-9eff-9725843d3453; __vero_visit=true; reese84=3:L6gP9QDAiqDxs8T9l0THvQ==:0QeNJqtsdNOlvDGAppOROyrcBTh7gyxuIMB9mP4xxYa0l5gvSkFjI69hBKxT/6hqMIFFT794ZoA7FGihZGUPt4u0oiZ/nrShRd4aFrd2VJPQ6uejs8+wQxpbPd5aYprXe0OxJDVDvQ96tkieO6bgjKbgZk7brwY8ZxHF8ZgtrVRHk2NBc3OWKpHtKafHjusGA7og/CVihKao418SpD5uSKE04XZ7EgUrs/U5QM3n0Stt/0AQRrMUMx/z7TEfd3x3zF4dswBN5bpj7JU2WxS+ahOFrwsjiZTWv0/p7t38jl5kwg3nRXWYaIO8k3TOXm0R4txAvNHwrF1mlCncfN10wCSFCyIj8FDsbSs5berYp8wqOHZRlttYmdqrhbDEFcGNX6syLf7dWeaVUnJuSs+HU9M3xtT+6aKHPAy3SN+e+uI=:5FK10KxOm8aJvLFsDkbGiAyDN1/J9THMop+1V2c38AU=; _gid=GA1.2.2080495832.1600924772; mage-messages=%5B%5D; mage-cache-storage=%7B%7D; mage-cache-storage-section-invalidation=%7B%7D; recently_viewed_product=%7B%7D; recently_viewed_product_previous=%7B%7D; recently_compared_product=%7B%7D; recently_compared_product_previous=%7B%7D; product_data_storage=%7B%7D; AKA_A2=A; veroEndId=d41d8cd98f00b204e9800998ecf8427e; _aw_m_17184=17184_1601098103_2ded449124063933dfdef4995dab2658; _aw_m_17185=17185_1597658957_d8294fda2cde00c7341d8965ef3d5012; _uetsid=31997748eceae2e7518e7e895e5e3ab7; _uetvid=6cb2354bb46fc9e1b29b76e112355950; dtLatC=1; private_content_version=03b7ef01180c09942d139a623e0d834e; PHPSESSID=a6d8b35ef5802fa201a0216719f4db69; guest_token_GB=UbZpjPX7YXPiAXjohkjGreB1iik3mOIG; _ga=GA1.1.214888085.1597657068; _ga_BZDVJYZJVX=GS1.1.1601233158.33.1.1601233859.0; __vero_user=email_d41d8cd98f00b204e9800998ecf8427e; form_key=yexFnSBVKKFUbKAF; mage-cache-sessid=true; section_data_ids=%7B%22customer%22%3A1601233862%2C%22compare-products%22%3A1601233862%2C%22magepal-gtm-jsdatalayer%22%3A1601233862%2C%22react-eventnotification%22%3A1601233862%2C%22last-ordered-items%22%3A1601233862%2C%22exponea-customer-data%22%3A1601233862%2C%22cart%22%3A1601233862%2C%22directory-data%22%3A1601233862%2C%22wishlist%22%3A1601233862%2C%22instant-purchase%22%3A1601233862%2C%22multiplewishlist%22%3A1601233862%2C%22persistent%22%3A1601233862%2C%22recently_viewed_product%22%3A1601233862%2C%22recently_compared_product%22%3A1601233862%2C%22product_data_storage%22%3A1601233862%2C%22paypal-billing-agreement%22%3A1601233862%2C%22checkout-fields%22%3A1601233862%2C%22collection-point-result%22%3A1601233862%2C%22messages%22%3A1601233862%7D; dtSa=true%7CU%7C-1%7CPage%3A%20%7C-%7C1601233860918%7C433859096_941%7Chttps%3A%2F%2Fwww.endclothing.com%2Fgb%2Fcustomer%2Faccount%2FlogoutSuccess%2F%7C%7C1601233860943%7C%7C; __veroc4=%5B%7B%22command%22%3A%5B%22events_track%22%2C%22log_out%22%2C%7B%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%2C%7B%22time%22%3A1601233859848%2C%22order%22%3A1%7D%5D%2C%22job_id%22%3A%221601233859847_8545%22%7D%2C%7B%22command%22%3A%5B%22users_track%22%2C%7B%22id%22%3A%22email_d41d8cd98f00b204e9800998ecf8427e%22%2C%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%5D%2C%22job_id%22%3A%221601233859854_9918%22%7D%5D; dtCookie=v_4_srv_5_sn_DB0A3193A3CB1BEBBBFBAD07FFB206BA_app-3A6abe796a369c80f6_1_app-3A063974da2eae43d3_1_ol_0_perc_100000_mul_1; dtPC=5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30; rxvt=1601235689673|1601233014205" The only issue with this is that these headers are only generated within the response when I send the login request, is there any way that I'd be able to dynamically generate these headers myself just before I execute the POST request with Axios?Here's the working Axios request which returns a status code of 200:const usrPass = { username: "mygmail@gmail.com", password: "password" }; axios.post('https://www.endclothing.com/gb/customer/ajax/login', usrPass, {headers: { "accept": "application/json, text/plain, */*", "accept-language": "en-GB,en-US;q=0.9,en;q=0.8", "content-type": "application/json", "exj5wzxnuf-a": "RbupF1JTWdsUNt03FvNScODb3Vl_ZSzaiJNyGwZu2bXiXp-IshPd5uoY8Z7WOzDwjw8qmiMjqdsG4Kn7h3WvZK04aYVKSLNOw5jVNlxHSdA5yMMRlSdhu_WfedQAuO2dxFL8CKMgR4MfZLaKQSwDuf2s_HLsN9qrkJMJPE3yAHCgJRcP6MuhgvHSpCoT1bW9wOmC1xAJFiW0O_iIO8RlJLElAfnopHBLVN4LxenPYRQ767FvzAygORJSQi-we43bz-wdLT8rxtngMmhawxDG4MN3a3flJyTBzhoChQJ4bg8f7IUELNEY-zjuhyImWmtGb080P1foY707Su87CWaHTxarOb8g22BVlKv35fOsycSLMHt6C4msCw-RFem7ZboZ5AsfM_OrOaf_LlgiwqLG7I-mZNt_19RGTxoVnJU5p_MSDpu-tchmm-Dl2uzzvX7mKA30bCRQqDvwHZtxLed1rqQaqNE5PII5ma23zPhYNfILA1HHoVkeenZGgG7Py0IQJotJqRDidncR6Rm6lRL0VETgthfxyiFHFIdN62LTp-XWjgyyl6xfBh16Wh88TB8oW2jBhIGg3Aa-dbpRXSGXxbWUUWwS-tF63X2laAzekoF57xheQUId7NCuacxH9ZpI76gb0_L5ZOZ9ZwslhkjvjqmppI5akllrb6bpK69N3kXiYyGbI5fvfPnEvgKIweqmtBmPr1psgLBGWkGZ_yjU15jUxjJowd581jJo0u_qscrwNOTQ2ctNDg0eUTzDKO5gYYrwby1M1XJeD9SHNVmKSw3qzfrZvOpcPfztGEcgc4z3zHAbNIPOGFVe7-i4z_jiHV9pJ9Vo6x33NuuLrwo8-P8GuFWP1ht6ETyR0HOuWK2wp7ERRcS5qXk_vEJQi9Cbh1eNerBfZgnU4_lNe3ZTbkv3Uibn0h-XhNC_zAtkU5OmXi6roENE0DBEAgOreR_P5PM-FtSvTj6axR6jdKcb0MmnBlrrdKpQxQHl2N_sjUOkBGGMniAmkq-nqzVs_oseI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SKg-Kv7HnWVca", "exj5wzxnuf-d": "AAaihIjBDKGNgVGASZAQhISy1WIPir-x51lXGgAAAAB7Gu1BAIJ87WUFq_YBxIBaDNFjRjQ", "exj5wzxnuf-f": "A9OF-dB0AQAA92ZJMpyMR1wdPsOqMVFXJOhOz7CFTSckr6fvTlxsC6STL7XVAVAHP6-ucrtWwH8AAEB3AAAAAA==", "exj5wzxnuf-z": "q", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-dtpc": "5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30", "x-requested-with": "XMLHttpRequest", "cookie": "mage-translation-file-version=%7B%7D; mage-translation-storage=%7B%7D; rxVisitor=1597657065467ULBBB9OKTTK11DMJHLGQAHTC70GL9DT7; _gcl_au=1.1.1712652071.1597657068; _fbp=fb.1.1597657070278.1086752850; __zlcmid=zjjMlQ9MPWHQkX; 4tagIi0FLf=AP1wXgZ0AQAAazAOkRBOE7hEmjNUJzygwFBQmsv9G9r9atg4koEnOduuzUXn|1|1|33745b0093f9669915ad744980d4dd0c4f77e98a; end_country=GB; _ALGOLIA=anonymous-347911f1-236e-4554-9eff-9725843d3453; __vero_visit=true; reese84=3:L6gP9QDAiqDxs8T9l0THvQ==:0QeNJqtsdNOlvDGAppOROyrcBTh7gyxuIMB9mP4xxYa0l5gvSkFjI69hBKxT/6hqMIFFT794ZoA7FGihZGUPt4u0oiZ/nrShRd4aFrd2VJPQ6uejs8+wQxpbPd5aYprXe0OxJDVDvQ96tkieO6bgjKbgZk7brwY8ZxHF8ZgtrVRHk2NBc3OWKpHtKafHjusGA7og/CVihKao418SpD5uSKE04XZ7EgUrs/U5QM3n0Stt/0AQRrMUMx/z7TEfd3x3zF4dswBN5bpj7JU2WxS+ahOFrwsjiZTWv0/p7t38jl5kwg3nRXWYaIO8k3TOXm0R4txAvNHwrF1mlCncfN10wCSFCyIj8FDsbSs5berYp8wqOHZRlttYmdqrhbDEFcGNX6syLf7dWeaVUnJuSs+HU9M3xtT+6aKHPAy3SN+e+uI=:5FK10KxOm8aJvLFsDkbGiAyDN1/J9THMop+1V2c38AU=; _gid=GA1.2.2080495832.1600924772; mage-messages=%5B%5D; mage-cache-storage=%7B%7D; mage-cache-storage-section-invalidation=%7B%7D; recently_viewed_product=%7B%7D; recently_viewed_product_previous=%7B%7D; recently_compared_product=%7B%7D; recently_compared_product_previous=%7B%7D; product_data_storage=%7B%7D; AKA_A2=A; veroEndId=d41d8cd98f00b204e9800998ecf8427e; _aw_m_17184=17184_1601098103_2ded449124063933dfdef4995dab2658; _aw_m_17185=17185_1597658957_d8294fda2cde00c7341d8965ef3d5012; _uetsid=31997748eceae2e7518e7e895e5e3ab7; _uetvid=6cb2354bb46fc9e1b29b76e112355950; dtLatC=1; private_content_version=03b7ef01180c09942d139a623e0d834e; PHPSESSID=a6d8b35ef5802fa201a0216719f4db69; guest_token_GB=UbZpjPX7YXPiAXjohkjGreB1iik3mOIG; _ga=GA1.1.214888085.1597657068; _ga_BZDVJYZJVX=GS1.1.1601233158.33.1.1601233859.0; __vero_user=email_d41d8cd98f00b204e9800998ecf8427e; form_key=yexFnSBVKKFUbKAF; mage-cache-sessid=true; section_data_ids=%7B%22customer%22%3A1601233862%2C%22compare-products%22%3A1601233862%2C%22magepal-gtm-jsdatalayer%22%3A1601233862%2C%22react-eventnotification%22%3A1601233862%2C%22last-ordered-items%22%3A1601233862%2C%22exponea-customer-data%22%3A1601233862%2C%22cart%22%3A1601233862%2C%22directory-data%22%3A1601233862%2C%22wishlist%22%3A1601233862%2C%22instant-purchase%22%3A1601233862%2C%22multiplewishlist%22%3A1601233862%2C%22persistent%22%3A1601233862%2C%22recently_viewed_product%22%3A1601233862%2C%22recently_compared_product%22%3A1601233862%2C%22product_data_storage%22%3A1601233862%2C%22paypal-billing-agreement%22%3A1601233862%2C%22checkout-fields%22%3A1601233862%2C%22collection-point-result%22%3A1601233862%2C%22messages%22%3A1601233862%7D; dtSa=true%7CU%7C-1%7CPage%3A%20%7C-%7C1601233860918%7C433859096_941%7Chttps%3A%2F%2Fwww.endclothing.com%2Fgb%2Fcustomer%2Faccount%2FlogoutSuccess%2F%7C%7C1601233860943%7C%7C; __veroc4=%5B%7B%22command%22%3A%5B%22events_track%22%2C%22log_out%22%2C%7B%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%2C%7B%22time%22%3A1601233859848%2C%22order%22%3A1%7D%5D%2C%22job_id%22%3A%221601233859847_8545%22%7D%2C%7B%22command%22%3A%5B%22users_track%22%2C%7B%22id%22%3A%22email_d41d8cd98f00b204e9800998ecf8427e%22%2C%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%5D%2C%22job_id%22%3A%221601233859854_9918%22%7D%5D; dtCookie=v_4_srv_5_sn_DB0A3193A3CB1BEBBBFBAD07FFB206BA_app-3A6abe796a369c80f6_1_app-3A063974da2eae43d3_1_ol_0_perc_100000_mul_1; dtPC=5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30; rxvt=1601235689673|1601233014205" }}) *The cookies will be old so if you wish to generate new headers in order to test then this is the home page urihttps://www.endclothing.com/gb/In order to view the network request you have to log in via the button on the top right of the home page
Submitted September 30, 2020 at 06:24AM by Winner-Popular
Submitted September 30, 2020 at 06:24AM by Winner-Popular
What node modules would be useful to me?
I want to create a chat, that has a frontend and a backend, both of which are made using JavaScript. The frontend is going to consist of bulma, for styling and pug as a tempting engine. For the backend I'm think socket.io,amd database(prob mongobd). What other modules would be useful to me?I don't care about size, or popularity
Submitted September 30, 2020 at 03:02AM by Golden_req
Submitted September 30, 2020 at 03:02AM by Golden_req
Can I use same secret key for JWT on a node.js server as my Django Rest?
Basically I am adding an app to my infrastructure that is going to be run on a node.js server. My authentication and core application on a REST Api made with django. I use JWT. I am just wondering if I have the same secret key on my node server, will the user be recognized as the same? How does this work? Really want to make sure my users sessions are persistent .
Submitted September 30, 2020 at 01:00AM by dilldawg10
Submitted September 30, 2020 at 01:00AM by dilldawg10
Best NPM Package for counting page / post views and displaying to user in realtime?
I'm looking for an npm package or a way to count post views in realtime i.e. each time a page is refreshed by the user it increases the views counter. I am currently building an app using Apollo-Client, GraphQL-Yoga, NextJS, Prisma.Thanks in advance for your help!
Submitted September 29, 2020 at 01:55PM by leafyshark
Submitted September 29, 2020 at 01:55PM by leafyshark
Websocket Server in Node.js - Mastering JS
https://masteringjs.io/tutorials/node/websocket-server
Submitted September 29, 2020 at 02:48PM by code_barbarian
Submitted September 29, 2020 at 02:48PM by code_barbarian
Async Await JavaScript Tutorial – How to Wait for a Function to Finish in JS
https://www.freecodecamp.org/news/async-await-javascript-tutorial/
Submitted September 29, 2020 at 02:21PM by CodePerfect
Submitted September 29, 2020 at 02:21PM by CodePerfect
Fully Typed Twitter API Client for Node
https://github.com/Silind/twitter-api-client
Submitted September 29, 2020 at 02:03PM by wobsoriano
Submitted September 29, 2020 at 02:03PM by wobsoriano
Async Await JavaScript Tutorial – How to Wait for a Function to Finish in JS
https://www.freecodecamp.org/news/async-await-javascript-tutorial/
Submitted September 29, 2020 at 02:21PM by CodePerfect
Submitted September 29, 2020 at 02:21PM by CodePerfect
Is there a way to use Google App Engine for free with starting the time on the $300 credit?
I'm doing this tutorial:https://www.youtube.com/watch?v=ENrzD9HAZK4&ab_channel=Fireship@15:00 it has you load the app to the cloud. I wanted to do that just to get thru the setup process and to finish the tutorial. However, it seems to start a 90 day timer for $300 that will expire after 90 days.I want to save the $300 for some other time, not to waste it on some simple tutorial app that won't do anything.From what I gather, a number of cloud platforms do this, but I want to do it for free and not start any timers.Is there any simple test could setup I can use for free?
Submitted September 29, 2020 at 12:06PM by KarlJay001
Submitted September 29, 2020 at 12:06PM by KarlJay001
The Best Python Blogs
https://learn.draft.dev/technical-blogs/python
Submitted September 29, 2020 at 12:11PM by humpier
Submitted September 29, 2020 at 12:11PM by humpier
Stack Overflow Usage Metrics: Analyze your copy/paste activities!
/r/Angular2/comments/j1wccb/stack_overflow_usage_metrics_analyze_your/
Submitted September 29, 2020 at 11:03AM by luckysevenrox
Submitted September 29, 2020 at 11:03AM by luckysevenrox
NodeJS Certification
Did anybody give the NodeJs certification exam? What is it like?
Submitted September 29, 2020 at 11:23AM by castasint
Submitted September 29, 2020 at 11:23AM by castasint
New Prisma database adapter for KeystoneJS 🎉
https://www.keystonejs.com/blog/prisma-adapter
Submitted September 29, 2020 at 10:33AM by nikolasburk
Submitted September 29, 2020 at 10:33AM by nikolasburk
What is the best way of using stored session and jwt on express server, but also token / session for .NET core, just like react web?
What is the best way of using stored session and jwt on express server, but also token / session for .NET core, just like react web?Right now I can re-use the session when I do a request direct from web to express server, but lets say if I do a request to API which is .net core server and this .net core server wants to authorize and validate token with express, it can't seem to retrieve the session id that the express server generated.Does anyone know a solution for this?
Submitted September 29, 2020 at 10:43AM by exilen
Submitted September 29, 2020 at 10:43AM by exilen
Why should I use refresh and access tokens instead of one single access token?
I understand the importance of refresh & access tokens for API that would be consumed by your customers from the app that they develop (this way it really is safer), but I don't understand why to use it for frontend apps (like react/react native), there's no major advantages of doing it and if anything you put the user at greater security risk...I mean when you use one single access token you can just put it in an httpOnly cookie and it would be much more secured then providing a refresh and access tokens in the response of your login request and then manipulating them with JS to put them in the cookies / local storage, because this way an attacker can steal them with XSS etc.. and would just be able to steal the refresh token as well and generate new access tokens and make the whole refresh & access tokens system just insecure compared to one single access token stored in an httpOnly cookies...
Submitted September 29, 2020 at 09:11AM by s_trader
Submitted September 29, 2020 at 09:11AM by s_trader
Is it ok to do stuff in between queries in a transaction in Sequelize
I need to select a user record and then update the fields based on the values, in a transaction. Based on my understanding of transaction it should be fine. But I wanted to verify that it is safe to make the update query based on the record selected.Also what will happen if I forget to mention the transaction in the middle query in a transaction with 3 queries? Will it cause a deadlock or something?
Submitted September 29, 2020 at 09:17AM by AdwaithHSivam
Submitted September 29, 2020 at 09:17AM by AdwaithHSivam
Deployment of Node.js application in CentOS 7
https://thestack.net/2020/05/How_to_deploy_a_sample_nodejs_app_on_a_centos_7
Submitted September 29, 2020 at 07:55AM by unclebob_rises
Submitted September 29, 2020 at 07:55AM by unclebob_rises
Coordinate Daily Remote Standups in Slack With Autocode and Node.js
https://autocode.com/app/slack/slack-standup-bot/
Submitted September 29, 2020 at 08:05AM by J-Kob
Submitted September 29, 2020 at 08:05AM by J-Kob
Error handling in ejs
I've been using ejs as my templating engine for a project and I need a solution to catch rendering errors(that generally return the stack trace) while doing res.render. Apart from this I enclosed database calls in a try catch and I'm using async await. Any suggestions at all would be most welcome thankyou! Would be nice even if y'all can share any repos regarding ejs best practices
Submitted September 29, 2020 at 07:24AM by thatpunywolfie
Submitted September 29, 2020 at 07:24AM by thatpunywolfie
Monday, 28 September 2020
Initialize using constructor or lifecycle hook
We use Nest.js as our server framework.As part of the constructor for a module, I set up an event listener. Just a real quick two-liner synchronous process. My co-worker said that I should use the onModuleInit lifecycle hook. But I couldn't find any good evidence either way. It seemed that onModuleInit is mainly useful for async operations whereas small sync setup can happen inside the constructor. What's your opinion?
Submitted September 29, 2020 at 07:06AM by the_bronze_burger
Submitted September 29, 2020 at 07:06AM by the_bronze_burger
Is it okay to keep the server's and client's dependencies together in one package.json?
I want to make a Nuxt app with a backend in Express. I want to keep the front and backend separate with separate dependencies, because there will obviously be some packages that are only used on one end (ex: sequelize). I tried to find ways to achieve this, but it seems that the main solution is to use serverMiddleware from Nuxt, which will have the express-server.js with the same dependencies as Nuxt.Basically, what I want is Nuxt and Express separate, but hosted on the same server (this way I won't need CORS), but I was having trouble finding out how to do this. Most tutorials say that the server and client will share the same package.json, but I don't think this is the best method
Submitted September 29, 2020 at 06:14AM by pyboy10000
Submitted September 29, 2020 at 06:14AM by pyboy10000
Error: Handlebars "main" Layout Not Found in Heroku
I'm trying to upload an app to Heroku which contains the handlebars module, and works completely fine on my local server. However, whenever I try to load it on Heroku, I get the following message in logs:"Error: ENOENT: no such file or directory, open '/app/views/layouts/main.handlebars"My file structure is as follows (For some reason reddit keeps removing my indentations below, so I specified in parentheses the folder to which each file belongs) :|---src|-------- app.js(inside of src)|-views|------- layouts (folder inside of views)|--------------- main.handlebars (inside of layouts folder)|---------home.handlebarss (inside of views folder and parallel/sibling with layouts folder)app.set("views", path.join(__dirname,"../","views"));app.engine('handlebars', exphbs({ defaultLayout:"main",layoutsDir:path.join(__dirname,"../views/layouts/")}))app.set('view engine', 'handlebars');app.get('', (req,res) => { res.render('home', {biggerObject})});I will greatly appreciate any help with this. Thanks in advance!
Submitted September 29, 2020 at 03:54AM by epistemicmind
Submitted September 29, 2020 at 03:54AM by epistemicmind
Is there a good node tutorial that shows you how to setup a really good testing setup?
Is there a good node tutorial that shows you how to setup a really good testing setup? I am working on a repository, but there are no unit testing or any setup whatsoever for tests, so I wanted to know if there was a tutorial that showed you how to setup a full suite of tests on a repository.
Submitted September 29, 2020 at 03:01AM by jadesalad
Submitted September 29, 2020 at 03:01AM by jadesalad
What's the project tutorial with the most well-engineered and scalable code?
What's the project tutorial with the most engineered and scalable code? There are a lots of tutorials, but I want the one with the most well-engineered and scalable code, because I want to write good code.
Submitted September 29, 2020 at 03:06AM by jadesalad
Submitted September 29, 2020 at 03:06AM by jadesalad
need help w installing node
pretty much new to this. i have a 4 GB ram windows 8 laptop. which node should i install and 32 or 64 bit and msi or zip
Submitted September 29, 2020 at 01:18AM by playboicairoo
Submitted September 29, 2020 at 01:18AM by playboicairoo
noob alert
https://www.reddit.com/gallery/j1m6q2
Submitted September 28, 2020 at 11:11PM by Hot-Shelter-4017
Submitted September 28, 2020 at 11:11PM by Hot-Shelter-4017
What is the best way to prevent cheating in node game?
I'm new to server side programming and I'm trying to figure out the best way to prevent cheating without overloading the server. I am creating a simple game similar to Worlds Hardest Game, basically there is a player and ai enemies and the player has to get to the goal while avoiding enemies. Right now I calculate the player and ai enemy positions on the server then send them to the client 60 times per second. Every time the user presses or releases a button it send the input to the server. Is there a more efficient way to do this? If I calculate the player and enemy positions on the client then I believe the user would be able to manipulate the player or enemy positions in the console to cheat and set an unrealistic high score. What is the best way to prevent cheating in the console without slowing down the server?
Submitted September 28, 2020 at 09:21PM by KushMuffin
Submitted September 28, 2020 at 09:21PM by KushMuffin
I created a dependency that turns objects into Mongoose Schemas.
Hi guys, this is my first post on Reddit, maybe I'm breaking a rule about disclosing new dependencies to developers, but I don't think so.I invite you guys to know a dependency that I just launched on GitHub and NPM. It is a dependency that transforms objects from JS (including JSON, if you prefer) to the format accepted by mongoose.Schema.One of the applications of this dependency is if you want to do a small or medium size project where you want to use the same database model as another application with a public API, then you can use this dependency with some other request like axios and automatically make the casting between the object that you passed to a mongoose.Schema format.You can see a practical application of this in my project's README.md, here is the link: GitHub projectIf you want to make a contribution to the project, feel welcome! It may take me a while to read the issues and pull requests, but if you need to talk to me directly, my twitter is @krteazy.That was my post. If I said something wrong, pardon me. English is not my first language.
Submitted September 28, 2020 at 08:41PM by rmkblnd
Submitted September 28, 2020 at 08:41PM by rmkblnd
Tech stack to quickly bootstrap a prototype.
I need to decide on what tech stack to use to quickly build a prototype for a friend, even though it is for a friend, I still want to deliver the highest quality software in the shortest amount of time I guess like every development project).I have spent some time researching and came up with the following options to use as starter applications:Meteor.jsVulcan.jsA full stack Vue app I have builtA full stack Next.js app that I have builtWhy I am slightly opposed to option 3 and 4 is that it was both apps I built as hobby projects and ifmy friend likes the prototype I would have to spend loads of time getting them production ready.Any other boilerplates or starter projects would be greatly appreciated.Thanks a lot!
Submitted September 28, 2020 at 09:02PM by Siegggo
Submitted September 28, 2020 at 09:02PM by Siegggo
I am a Backend Engineer and getting fired soon
Hey guys, I am being laid off after an engineer from Facebook(founder's friend) reviewed my code and claimed it's horrible. I thought it was decent and didn't see much wrong with it. Care to review my code guys so i can learn and improve. Also it will give me better idea about where did i commit the mistakes? And appreciate your reviews guys and tips on how can i improve.Here's the link to the code https://github.com/ajayt365/microservices-demo
Submitted September 28, 2020 at 07:48PM by thewolfandtiger
Submitted September 28, 2020 at 07:48PM by thewolfandtiger
Here's Actually Why Deno Flopped (blog post)
https://medium.com/@spencerpauly/heres-actually-why-deno-flopped-ec115caa2b6d
Submitted September 28, 2020 at 02:42PM by Other-Faithlessness4
Submitted September 28, 2020 at 02:42PM by Other-Faithlessness4
How to get the value of a child in a nested each in handlebars?
https://stackoverflow.com/questions/64091353/how-to-get-the-value-of-a-child-in-a-nested-each-in-handlebars
Submitted September 28, 2020 at 12:35PM by KF3_F
Submitted September 28, 2020 at 12:35PM by KF3_F
node-postgres-extras: PostgreSQL database performance insights. Locks, index usage, cache hit ratio and more
https://github.com/pawurb/node-postgres-extras
Submitted September 28, 2020 at 12:09PM by pawurb
Submitted September 28, 2020 at 12:09PM by pawurb
Eonil - I Created a small wrapper for one liner servers with express and socketio
Hey! this is my first published package so far, (I've used it a lot in personal project hell(which I never finish) that I had to publish it) you can also contribute that would be amazingCheck it outEonil
Submitted September 28, 2020 at 09:30AM by LatinReve
Submitted September 28, 2020 at 09:30AM by LatinReve
Sunday, 27 September 2020
A list of popular web frameworks for Node.js with automatic statistics (stars, open issues, etc) refresh
https://github.com/webdevium/node-framework-stars
Submitted September 27, 2020 at 10:42PM by v1rtl
Submitted September 27, 2020 at 10:42PM by v1rtl
PHP vs Node.js
Hello! I've done a lot of googling to try to figure out which is better for me to learn, PHP or node.js. I used to script in PHP for 5 years, but that was a decade ago and I'm looking at getting back into web design and eventually get hired as a web developer. I know that node.js and PHP are used for different things so there is no single answer to which is better, but as a new / returning web developer, what would you guys recommend me to learn first? Learn the newest syntax and changes to PHP or learn node? I am currently 2/3 of the way through the Web Developer Bootcamp on udemy.com by Colt Steele, and he teaches HTML, CSS, Javascript, and then goes right into node.js. He said that it's so that new students don't get confused by changing language and learning a new syntax for backend, but also said that the web is moving towards node.js. So far node seems great and I really like the NPM's ease of use and express and ejs are super handy, I just wonder whether its really the best backend language for me to learn first if my end goal is to get hired as a web developer.TL;DRFor a (basically) new web developer looking to learn a language to get hired at a web dev company, would you recommend they learn node.js first, or PHP first and then node.js down the road?Thanks in advance!
Submitted September 27, 2020 at 09:07PM by QC_Failed
Submitted September 27, 2020 at 09:07PM by QC_Failed
async keyword works in stand-alone function, but not inside class
I have some code in a file that is not a class, and I have a function that is working. The function begins like async function parse(config, callback) { However, if I move it inside a class, on the word "async", I get Unexpected token. A constructor, method, accessor, or property was expected.Any obvious reason why this would be?
Submitted September 27, 2020 at 08:41PM by chozang
Submitted September 27, 2020 at 08:41PM by chozang
Converting a fetch POST request to an axios request
I have a fetch request that was copied from the network tab in order to login to an account, when i send the fetch request as it was copied from the browser it works & returns a status code of 200.However, when I change it so that it can be sent as an axios request I get error code 416 (which the website returns if you are suspected to be a bot), I don't know why it isn't working properly.PS:I was also told that curl is a great way to make requests so I've read the docs for it and understand how to write a request with it using GitBash, is it even possible to use curl with axios or in node js?fetch("https://www.endclothing.com/gb/customer/ajax/login", { "headers": { "accept": "application/json, text/plain, */*", "accept-language": "en-GB,en-US;q=0.9,en;q=0.8", "content-type": "application/json", "exj5wzxnuf-a": "RbupF1JTWdsUNt03FvNScODb3Vl_ZSzaiJNyGwZu2bXiXp-IshPd5uoY8Z7WOzDwjw8qmiMjqdsG4Kn7h3WvZK04aYVKSLNOw5jVNlxHSdA5yMMRlSdhu_WfedQAuO2dxFL8CKMgR4MfZLaKQSwDuf2s_HLsN9qrkJMJPE3yAHCgJRcP6MuhgvHSpCoT1bW9wOmC1xAJFiW0O_iIO8RlJLElAfnopHBLVN4LxenPYRQ767FvzAygORJSQi-we43bz-wdLT8rxtngMmhawxDG4MN3a3flJyTBzhoChQJ4bg8f7I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NVrV_scgta11ld7Z91bfLNOT4Dm4klrxapHm-XPYAfzaIxHdrPXf_zHeyxonLlJkxu2GEMmfIUQxVxguaY2r9RJWJSLuEDjxzHW78Un49i4NInGCOyyQLsBzxSd3goiKPql9RTlUkRDdxn1Ryh_uv1DvVPQcwoKt19JZ3K_BI5s8YC9YeODA1M62TUdi3NcVd7TBZ85sUKk-CS-im2-hIWqyBdRi-gD2lYM4m5VhkIL2_Ohl43YG4s0Dkwam4aYWsQ7NR-hnHXTvqeQbwJEkwMrBJBb-hkiahHTS5VOfR8WzwGcI--qp_R-XUo98-Ur_6JqiNSReaY-6lNr53hMxT06kr_Kgf2mDdLJQ0VOaFKhp1ijForq6xqg_H2ebk3lPoOUVYtJn1b-IKmtK-ZBCSmt-6fpJR7oXtaNVa1qGQPGC1ogXSCBJ650tOcZyuqxcvLZFBg37Xn_e7S_JIsTCckywI2Fs9Ak9Jkd1BqvD2OuSNe8nIO4chuz2-RftENxMeLDLLK70sBYlX4OtUp1y-ILJVTJUG9scfJFByqRPy-jdB2Gr5Hubhgrc65iYyfR5EHuXTPnoHzZduPJBclwTvE4cxxE5Kqmool5wjf_zBFI3Cev4", "exj5wzxnuf-b": "-hhwftc", "exj5wzxnuf-c": "AICj79B0AQAAWwRaKEQdWHuxBVwHSLBkxxkPerOXzasSuiqSKg-Kv7HnWVca", "exj5wzxnuf-d": "AAaihIjBDKGNgVGASZAQhISy1WIPir-x51lXGgAAAAB7Gu1BAIJ87WUFq_YBxIBaDNFjRjQ", "exj5wzxnuf-f": "A9OF-dB0AQAA92ZJMpyMR1wdPsOqMVFXJOhOz7CFTSckr6fvTlxsC6STL7XVAVAHP6-ucrtWwH8AAEB3AAAAAA==", "exj5wzxnuf-z": "q", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-dtpc": "5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30", "x-requested-with": "XMLHttpRequest", "cookie": "mage-translation-file-version=%7B%7D; mage-translation-storage=%7B%7D; rxVisitor=1597657065467ULBBB9OKTTK11DMJHLGQAHTC70GL9DT7; _gcl_au=1.1.1712652071.1597657068; _fbp=fb.1.1597657070278.1086752850; __zlcmid=zjjMlQ9MPWHQkX; 4tagIi0FLf=AP1wXgZ0AQAAazAOkRBOE7hEmjNUJzygwFBQmsv9G9r9atg4koEnOduuzUXn|1|1|33745b0093f9669915ad744980d4dd0c4f77e98a; end_country=GB; _ALGOLIA=anonymous-347911f1-236e-4554-9eff-9725843d3453; __vero_visit=true; reese84=3:L6gP9QDAiqDxs8T9l0THvQ==:0QeNJqtsdNOlvDGAppOROyrcBTh7gyxuIMB9mP4xxYa0l5gvSkFjI69hBKxT/6hqMIFFT794ZoA7FGihZGUPt4u0oiZ/nrShRd4aFrd2VJPQ6uejs8+wQxpbPd5aYprXe0OxJDVDvQ96tkieO6bgjKbgZk7brwY8ZxHF8ZgtrVRHk2NBc3OWKpHtKafHjusGA7og/CVihKao418SpD5uSKE04XZ7EgUrs/U5QM3n0Stt/0AQRrMUMx/z7TEfd3x3zF4dswBN5bpj7JU2WxS+ahOFrwsjiZTWv0/p7t38jl5kwg3nRXWYaIO8k3TOXm0R4txAvNHwrF1mlCncfN10wCSFCyIj8FDsbSs5berYp8wqOHZRlttYmdqrhbDEFcGNX6syLf7dWeaVUnJuSs+HU9M3xtT+6aKHPAy3SN+e+uI=:5FK10KxOm8aJvLFsDkbGiAyDN1/J9THMop+1V2c38AU=; _gid=GA1.2.2080495832.1600924772; mage-messages=%5B%5D; mage-cache-storage=%7B%7D; mage-cache-storage-section-invalidation=%7B%7D; recently_viewed_product=%7B%7D; recently_viewed_product_previous=%7B%7D; recently_compared_product=%7B%7D; recently_compared_product_previous=%7B%7D; product_data_storage=%7B%7D; AKA_A2=A; veroEndId=d41d8cd98f00b204e9800998ecf8427e; _aw_m_17184=17184_1601098103_2ded449124063933dfdef4995dab2658; _aw_m_17185=17185_1597658957_d8294fda2cde00c7341d8965ef3d5012; _uetsid=31997748eceae2e7518e7e895e5e3ab7; _uetvid=6cb2354bb46fc9e1b29b76e112355950; dtLatC=1; private_content_version=03b7ef01180c09942d139a623e0d834e; PHPSESSID=a6d8b35ef5802fa201a0216719f4db69; guest_token_GB=UbZpjPX7YXPiAXjohkjGreB1iik3mOIG; _ga=GA1.1.214888085.1597657068; _ga_BZDVJYZJVX=GS1.1.1601233158.33.1.1601233859.0; __vero_user=email_d41d8cd98f00b204e9800998ecf8427e; form_key=yexFnSBVKKFUbKAF; mage-cache-sessid=true; section_data_ids=%7B%22customer%22%3A1601233862%2C%22compare-products%22%3A1601233862%2C%22magepal-gtm-jsdatalayer%22%3A1601233862%2C%22react-eventnotification%22%3A1601233862%2C%22last-ordered-items%22%3A1601233862%2C%22exponea-customer-data%22%3A1601233862%2C%22cart%22%3A1601233862%2C%22directory-data%22%3A1601233862%2C%22wishlist%22%3A1601233862%2C%22instant-purchase%22%3A1601233862%2C%22multiplewishlist%22%3A1601233862%2C%22persistent%22%3A1601233862%2C%22recently_viewed_product%22%3A1601233862%2C%22recently_compared_product%22%3A1601233862%2C%22product_data_storage%22%3A1601233862%2C%22paypal-billing-agreement%22%3A1601233862%2C%22checkout-fields%22%3A1601233862%2C%22collection-point-result%22%3A1601233862%2C%22messages%22%3A1601233862%7D; dtSa=true%7CU%7C-1%7CPage%3A%20%7C-%7C1601233860918%7C433859096_941%7Chttps%3A%2F%2Fwww.endclothing.com%2Fgb%2Fcustomer%2Faccount%2FlogoutSuccess%2F%7C%7C1601233860943%7C%7C; __veroc4=%5B%7B%22command%22%3A%5B%22events_track%22%2C%22log_out%22%2C%7B%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%2C%7B%22time%22%3A1601233859848%2C%22order%22%3A1%7D%5D%2C%22job_id%22%3A%221601233859847_8545%22%7D%2C%7B%22command%22%3A%5B%22users_track%22%2C%7B%22id%22%3A%22email_d41d8cd98f00b204e9800998ecf8427e%22%2C%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%5D%2C%22job_id%22%3A%221601233859854_9918%22%7D%5D; dtCookie=v_4_srv_5_sn_DB0A3193A3CB1BEBBBFBAD07FFB206BA_app-3A6abe796a369c80f6_1_app-3A063974da2eae43d3_1_ol_0_perc_100000_mul_1; dtPC=5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30; rxvt=1601235689673|1601233014205" }, "referrer": "https://www.endclothing.com/gb/", "referrerPolicy": "no-referrer-when-downgrade", "body": "{\"username\":\"myEmail@gmail.com\",\"password\":\"MyPassword\"}", "method": "POST", "mode": "cors" }); //axios axios.post("https://www.endclothing.com/gb/customer/ajax/login", { "username":"myEmail@gmail.com", "password":"MyPassword" }, { "headers": { "accept": "application/json, text/plain, */*", "accept-language": "en-GB,en-US;q=0.9,en;q=0.8", "content-type": "application/json", "exj5wzxnuf-a": "RbupF1JTWdsUNt03FvNScODb3Vl_ZSzaiJNyGwZu2bXiXp-IshPd5uoY8Z7WOzDwjw8qmiMjqdsG4Kn7h3WvZK04aYVKSLNOw5jVNlxHSdA5yMMRlSdhu_WfedQAuO2dxFL8CKMgR4MfZLaKQSwDuf2s_HLsN9qrkJMJPE3yAHCgJRcP6MuhgvHSpCoT1bW9wOmC1xAJFiW0O_iIO8RlJLElAfnopHBLVN4LxenPYRQ767FvzAygORJSQi-we43bz-wdLT8rxtngMmhawxDG4MN3a3flJyTBzhoChQJ4bg8f7IUELNEY-zjuhyImWmtGb080P1foY707Su87CWaHTxarO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PYAfzaIxHdrPXf_zHeyxonLlJkxu2GEMmfIUQxVxguaY2r9RJWJSLuEDjxzHW78Un49i4NInGCOyyQLsBzxSd3goiKPql9RTlUkRDdxn1Ryh_uv1DvVPQcwoKt19JZ3K_BI5s8YC9YeODA1M62TUdi3NcVd7TBZ85sUKk-CS-im2-hIWqyBdRi-gD2lYM4m5VhkIL2_Ohl43YG4s0Dkwam4aYWsQ7NR-hnHXTvqeQbwJEkwMrBJBb-hkiahHTS5VOfR8WzwGcI--qp_R-XUo98-Ur_6JqiNSReaY-6lNr53hMxT06kr_Kgf2mDdLJQ0VOaFKhp1ijForq6xqg_H2ebk3lPoOUVYtJn1b-IKmtK-ZBCSmt-6fpJR7oXtaNVa1qGQPGC1ogXSCBJ650tOcZyuqxcvLZFBg37Xn_e7S_JIsTCckywI2Fs9Ak9Jkd1BqvD2OuSNe8nIO4chuz2-RftENxMeLDLLK70sBYlX4OtUp1y-ILJVTJUG9scfJFByqRPy-jdB2Gr5Hubhgrc65iYyfR5EHuXTPnoHzZduPJBclwTvE4cxxE5Kqmool5wjf_zBFI3Cev4", "exj5wzxnuf-b": "-hhwftc", "exj5wzxnuf-c": "AICj79B0AQAAWwRaKEQdWHuxBVwHSLBkxxkPerOXzasSuiqSKg-Kv7HnWVca", "exj5wzxnuf-d": "AAaihIjBDKGNgVGASZAQhISy1WIPir-x51lXGgAAAAB7Gu1BAIJ87WUFq_YBxIBaDNFjRjQ", "exj5wzxnuf-f": "A9OF-dB0AQAA92ZJMpyMR1wdPsOqMVFXJOhOz7CFTSckr6fvTlxsC6STL7XVAVAHP6-ucrtWwH8AAEB3AAAAAA==", "exj5wzxnuf-z": "q", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-dtpc": "5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30", "x-requested-with": "XMLHttpRequest", "cookie": "mage-translation-file-version=%7B%7D; mage-translation-storage=%7B%7D; rxVisitor=1597657065467ULBBB9OKTTK11DMJHLGQAHTC70GL9DT7; _gcl_au=1.1.1712652071.1597657068; _fbp=fb.1.1597657070278.1086752850; __zlcmid=zjjMlQ9MPWHQkX; 4tagIi0FLf=AP1wXgZ0AQAAazAOkRBOE7hEmjNUJzygwFBQmsv9G9r9atg4koEnOduuzUXn|1|1|33745b0093f9669915ad744980d4dd0c4f77e98a; end_country=GB; _ALGOLIA=anonymous-347911f1-236e-4554-9eff-9725843d3453; __vero_visit=true; reese84=3:L6gP9QDAiqDxs8T9l0THvQ==:0QeNJqtsdNOlvDGAppOROyrcBTh7gyxuIMB9mP4xxYa0l5gvSkFjI69hBKxT/6hqMIFFT794ZoA7FGihZGUPt4u0oiZ/nrShRd4aFrd2VJPQ6uejs8+wQxpbPd5aYprXe0OxJDVDvQ96tkieO6bgjKbgZk7brwY8ZxHF8ZgtrVRHk2NBc3OWKpHtKafHjusGA7og/CVihKao418SpD5uSKE04XZ7EgUrs/U5QM3n0Stt/0AQRrMUMx/z7TEfd3x3zF4dswBN5bpj7JU2WxS+ahOFrwsjiZTWv0/p7t38jl5kwg3nRXWYaIO8k3TOXm0R4txAvNHwrF1mlCncfN10wCSFCyIj8FDsbSs5berYp8wqOHZRlttYmdqrhbDEFcGNX6syLf7dWeaVUnJuSs+HU9M3xtT+6aKHPAy3SN+e+uI=:5FK10KxOm8aJvLFsDkbGiAyDN1/J9THMop+1V2c38AU=; _gid=GA1.2.2080495832.1600924772; mage-messages=%5B%5D; mage-cache-storage=%7B%7D; mage-cache-storage-section-invalidation=%7B%7D; recently_viewed_product=%7B%7D; recently_viewed_product_previous=%7B%7D; recently_compared_product=%7B%7D; recently_compared_product_previous=%7B%7D; product_data_storage=%7B%7D; AKA_A2=A; veroEndId=d41d8cd98f00b204e9800998ecf8427e; _aw_m_17184=17184_1601098103_2ded449124063933dfdef4995dab2658; _aw_m_17185=17185_1597658957_d8294fda2cde00c7341d8965ef3d5012; _uetsid=31997748eceae2e7518e7e895e5e3ab7; _uetvid=6cb2354bb46fc9e1b29b76e112355950; dtLatC=1; private_content_version=03b7ef01180c09942d139a623e0d834e; PHPSESSID=a6d8b35ef5802fa201a0216719f4db69; guest_token_GB=UbZpjPX7YXPiAXjohkjGreB1iik3mOIG; _ga=GA1.1.214888085.1597657068; _ga_BZDVJYZJVX=GS1.1.1601233158.33.1.1601233859.0; __vero_user=email_d41d8cd98f00b204e9800998ecf8427e; form_key=yexFnSBVKKFUbKAF; mage-cache-sessid=true; section_data_ids=%7B%22customer%22%3A1601233862%2C%22compare-products%22%3A1601233862%2C%22magepal-gtm-jsdatalayer%22%3A1601233862%2C%22react-eventnotification%22%3A1601233862%2C%22last-ordered-items%22%3A1601233862%2C%22exponea-customer-data%22%3A1601233862%2C%22cart%22%3A1601233862%2C%22directory-data%22%3A1601233862%2C%22wishlist%22%3A1601233862%2C%22instant-purchase%22%3A1601233862%2C%22multiplewishlist%22%3A1601233862%2C%22persistent%22%3A1601233862%2C%22recently_viewed_product%22%3A1601233862%2C%22recently_compared_product%22%3A1601233862%2C%22product_data_storage%22%3A1601233862%2C%22paypal-billing-agreement%22%3A1601233862%2C%22checkout-fields%22%3A1601233862%2C%22collection-point-result%22%3A1601233862%2C%22messages%22%3A1601233862%7D; dtSa=true%7CU%7C-1%7CPage%3A%20%7C-%7C1601233860918%7C433859096_941%7Chttps%3A%2F%2Fwww.endclothing.com%2Fgb%2Fcustomer%2Faccount%2FlogoutSuccess%2F%7C%7C1601233860943%7C%7C; __veroc4=%5B%7B%22command%22%3A%5B%22events_track%22%2C%22log_out%22%2C%7B%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%2C%7B%22time%22%3A1601233859848%2C%22order%22%3A1%7D%5D%2C%22job_id%22%3A%221601233859847_8545%22%7D%2C%7B%22command%22%3A%5B%22users_track%22%2C%7B%22id%22%3A%22email_d41d8cd98f00b204e9800998ecf8427e%22%2C%22userAgent%22%3A%22Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20Win64%3B%20x64)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F85.0.4183.121%20Safari%2F537.36%22%2C%22platform%22%3A%22Win32%22%2C%22language%22%3A%22en-GB%22%7D%5D%2C%22job_id%22%3A%221601233859854_9918%22%7D%5D; dtCookie=v_4_srv_5_sn_DB0A3193A3CB1BEBBBFBAD07FFB206BA_app-3A6abe796a369c80f6_1_app-3A063974da2eae43d3_1_ol_0_perc_100000_mul_1; dtPC=5$433847657_315h37vABKRGHMAMGCFOEADRPWCOMRCUCRNPNMK-0e30; rxvt=1601235689673|1601233014205" }, all help appreciated, thanks :)
Submitted September 27, 2020 at 08:47PM by Winner-Popular
Submitted September 27, 2020 at 08:47PM by Winner-Popular
I curated all the remote job openings from Hacker News who is hiring - September
Here I would like to share all the remote jobs that I've curated from Hacker News Who is hiring thread. All these are 100% remote jobs not just allowed to work from home during COVID-19. These are 100% remote jobs and will continue to follow that after the covid.https://remoteleaf.com/whoishiring.Note: Select "javascript" in the skills filter to view all the javascript jobs✅ 100% remote full-time jobs.✅ Each and every job is manually curated and verified. Spent more than 12 hours for this.
Submitted September 27, 2020 at 07:13PM by abinaya_304
Submitted September 27, 2020 at 07:13PM by abinaya_304
List of remote jobs that I've curated from Hacker News who is hiring - September
Here I would like to share all the remote jobs that I've curated from Hacker News Who is hiring thread. All these are 100% remote jobs not just allowed to work from home during COVID-19. These are 100% remote jobs and will continue to follow that after the covid.https://remoteleaf.com/whoishiring.✅ 100% remote full-time jobs.✅ Each and every job is manually curated and verified. Spent more than 12 hours for this.
Submitted September 27, 2020 at 05:06PM by abinaya_304
Submitted September 27, 2020 at 05:06PM by abinaya_304
Here's a gist: write to file using webpack
Suppose you want to upload multiple versions of your software to a static file server for beta releases. It would be useful to have one file named 'latest' to always know the name of the latest available download, easily retrieved by `curl /download/latest`.Here's a small gist that'll let you create that file as part of the webpack build process<br>
<br>
Submitted September 27, 2020 at 04:05PM by tjgrinn
Problem with res.send(), need help!
I am a complete newbie in nodejs. Here is the following code I have written:let express = require("express")let app = express();const MongoClient = require("mongodb").MongoClient;const url = 'mongodb://127.0.0.1:27017';const dbName = 'HospitalManagement';app.get('/hello',(req,res) => {// res.writeHead(200,{'Content-Type':'text/html'});console.log(req.query.hosp_name);// res.send("hello");let str;MongoClient.connect(url,{useUnifiedTopology:true,useNewUrlParser:true},(error,client) =>{if(error)return error;let db = client.db(dbName);db.collection('Hospital_Info').find().toArray((err,items) =>{if(err){return err; }else{str = JSON.stringify(items);console.log(str); } }); });res.send(str);res.end(); });app.listen(8000,() =>{console.log("Server listening on PORT 8000");});The line res.send(str) doesnt print anything in the browser. But if I uncomment res.send("hello"), it prints it. So I assume there is something wrong with the MongoClient function. Can anyone help me?
Submitted September 27, 2020 at 04:22PM by Vamsi_0
Submitted September 27, 2020 at 04:22PM by Vamsi_0
Looking for tips on "open-sourcifying" my side project
The repo is here: https://github.com/ShaneC0/recallAPI,The project is the backend for the project management app I'm working on. I'm looking for any tips on making development more streamlined and gaining community/contributors.Any advice is welcome, thanks.
Submitted September 27, 2020 at 03:45PM by helix404
Submitted September 27, 2020 at 03:45PM by helix404
[HELP] Use promises to read file and then asynchronously send head requests
Hi, I am learning node and I am really frustrated at this point with promises and just asynchronous programming. I have no idea what I am doing. I am going back and forth on multiple things and I'm just lost. I would appreciate it if someone can point me in the right direction.I want to read a file full of URLs (using fs.readFile promise version - not callback). I want use a regex to match all URLs and then store them as a string to a variable called URL list (or maybe even make it an array and push to it. whatever is more efficient). Then I want to asynchronously send requests to all those URLs in urlList which must happen after the readFile is done? I get an error in await read file line saying.await is only valid in async functionI would really appreciate your help!My code so far:let urlList; try { const data = await fs.readFile(argv.file);const dataString = data.toString(); urlList = dataString.match(/(http|https)(://)([\w+-&@`~#$%*.=/?:]+)/gi); console.log(urlList); } catch (err) { console.err(err); }urlList.forEach(async (url) => { try { const urlTest = await fetch(url, { method: "head" }); if (urlTest.status == 200) { console.log( chalk.green.bold(`[GOOD] Status: [${urlTest.status}] ${url}`) ); } else if (urlTest.status == 400 || urlTest.status == 404) { console.log(chalk.red.bold(`[BAD] Status: [${urlTest.status}] ${url}`)); } else { console.log( chalk.grey.bold(`[UNKNOWN] Status: [${urlTest.status}] ${url}`) ); } } catch (error) { console.log(chalk.grey.bold(`[UNKNOWN] Status: [UNKNOWN] ${url}`)); } });
Submitted September 27, 2020 at 02:39PM by fothingers
Submitted September 27, 2020 at 02:39PM by fothingers
Creating Node Addons with C++ and Bazel
https://www.syntaxsuccess.com/viewarticle/creating-node-addons-with-c-plus-plus-and-bazel
Submitted September 27, 2020 at 02:44PM by funJS
Submitted September 27, 2020 at 02:44PM by funJS
MySQL claims to have updated the table, despite not having done it.
Environment : AWS Lambda + RDS MySQLI'm struggling with this issue I'm facing. Basically I'm trying to update my table using a query on MySQL. However, despite the results indicating that one row changed (as expected), sometimes the table actually never does proceed with the update. It works like half the time.The code is here and if someone could take a look and check where I could've f-ed up, I'd buy them a box of donuts.
Submitted September 27, 2020 at 01:29PM by TheMemeExpertExpert
Submitted September 27, 2020 at 01:29PM by TheMemeExpertExpert
[Academic] Open Source Development Survey (Software Developers using GitHub)
/r/SampleSize/comments/iybrqr/academic_open_source_development_survey_software/
Submitted September 27, 2020 at 12:32PM by idan_huji
Submitted September 27, 2020 at 12:32PM by idan_huji
What's the advantages of using refresh-access tokens instead of single access token?
So up until now I've been generating JWT with the userId and storing it in a cookie with 2 months life time, and now I've heard and seen more and more companies and APIs using refresh-access tokens instead of one single token, usually the refresh token expires after a really long time (6 months to few years) and sometimes it never expires (unless the user "logout everywhere" or resets the password etc..), and the access token expires after like 15 - 25 minutes and you of course can generate new one using the refresh token...My questions are:Why use access-refresh over single access token?, if someone manages to steal the access token they're probably capable of stealing the refresh token as well (with XSS, or un-secure cookies etc...)And I'm aware that some companies even put some user data on the access token (which is expires and gets deleted from the cookies after 15-25 minutes) like email, username, name etc.. which then on the backend that JWT payload will allow the backend to not make a call to the DB to fetch that data or verify the existence of the user (like you would when putting only the userId in the payload)Thanks in advance :)
Submitted September 27, 2020 at 12:55PM by s_trader
Submitted September 27, 2020 at 12:55PM by s_trader
memoized-node-fetch: A wrapper around node-fetch (or any other fetch-like function) that returns a single promise until it resolves.
https://github.com/chrispanag/memoized-node-fetch
Submitted September 27, 2020 at 11:24AM by chrispanag
Submitted September 27, 2020 at 11:24AM by chrispanag
I created a Twitter API Client for Node.js
https://github.com/Silind/twitter-api-client
Submitted September 27, 2020 at 09:30AM by Simon_LH
Submitted September 27, 2020 at 09:30AM by Simon_LH
Accept cryptocurrency payments with Coinbase Commerce
If you are planning to connect cryptocurrency payments and are not yet familiar with Coinbase Commerce, it is worth spending 5 minutes of your time. I’ll talk about connecting, configuring and sharing ready-made open source solutions for Nodejs.Coinbase Commerce is a crypto-payments service without fees, passports, great API with your personal account.Medium.com | Xabr.com
Submitted September 27, 2020 at 09:23AM by nikitamarcius
Submitted September 27, 2020 at 09:23AM by nikitamarcius
Handle datesin JavaScript in JavaScript
Handle dates in JavaScriptDoes anyone have a good helper function to handle dates in JavaScript?For example if the date is 2020-09-27 and you want to add 7 days to the date it updates correctly. Should be 2020-09-04 after adding 7 days .Thank you for the help
Submitted September 27, 2020 at 08:49AM by legia94m
Submitted September 27, 2020 at 08:49AM by legia94m
Saturday, 26 September 2020
Any cloud storage alternative to aws s3?
So, I tried using S3 but got my credit card rejected. Any alternative with a free trial that doesn't require a credit card?
Submitted September 27, 2020 at 05:00AM by AfootDesert41
Submitted September 27, 2020 at 05:00AM by AfootDesert41
An App to Make Environment variables available for every deployment.
Hello everyone,I made a little project that helps store environment variables in the cloud and makes it available to be pulled via a secured link to any instance of deployment. It works well for local testing as well as cloud deployments. You can have an unlimited amount of environment that contains unlimited amount of variables (Key and Value pair).What are your thoughts on this? I made a simple CLI interface for it and can be found here. You can use the CLI to create a user, login, create an environment etc. The CLI is it's website and can do everything...Is this even a good idea? Also, I'd love you to check it out and give feedback. There are bugs lurking...Thanks.
Submitted September 27, 2020 at 04:21AM by Ta1w0
Submitted September 27, 2020 at 04:21AM by Ta1w0
Does node.js have any weakness given that you can use Worker threads for computation?
Does node.js have any weakness given that you can use Worker threads for computation? Is it still much slower than Go or Scala even when using Worker threads for computation? How so? And what are the pros and cons of using Node.js compared to others when taking into account Worker threads?
Submitted September 27, 2020 at 03:43AM by jadesalad
Submitted September 27, 2020 at 03:43AM by jadesalad
Making concurrent API calls in node.
Hey guys. I'm new to node and I'm having trouble with it.I have an array of numbers like [1,2,3,1,2,3] and I want to make simultaneous post requests to an api using this data. For example, [1,2,3] and then [1,2,3].I also want 1 to be completely processed before 2, 2 to be processed before 3, so on and so forth. And the first batch to be processed before the second one.How do I go about that? I found Async utility module and I'm trying to use that, but I'm encountering a few problems.I'm getting the error: Error [ERR_HTTP_HEADERS_SENT] Cannot set headers after they are sent to the client.They aren't being processed in order obviously. I don't know how to fix this.Anyways, here's my code. Sorry if this seems a little confusing. I'm a beginner.const axios = require("axios"); const numbers = require("../model/data"); // [1,2,3,4,5,6,7,8,9,10] const async = require("async"); exports.callAPI = (req, res, next) => { var queue = async.queue(function (number, callback) { axios .post("http://www.api.com/", { number: `${number}`, webhookURL: "http://localhost:8000/", }) .then(function (response) { res.send(response.data); }) .catch(function (err) { console.log("Err after api call", err); }); callback(); }, 3); // assign a callback queue.drain(function () { console.log("Finished api calls"); }); // assign an error callback queue.error(function (err, call) { console.error("Found an error"); }); // add some items to the queue numbers.forEach((number) => { queue.push(number, function (err) { if (err) { console.log(err); } }); }); };
Submitted September 27, 2020 at 01:06AM by CodeLiftRepeat
Submitted September 27, 2020 at 01:06AM by CodeLiftRepeat
Server spec question DigitalOcean
Hi Everyone,Had a quick question that I was looking to get some help with. I have an application that is fairly basic that pulls data from an API, no additonal routes from a node perspective, just a single app.jsI have been using pm2 on a digitalocean droplet with 2vcp, however I was thinking, would it be better, from a performance perspective to setup multiple droplets with 1 cpu and have the load balancer sit in front of it?I also have questions about the 'basic' vs 'dedicated' cpu. I understand the shared is not guaranteed, however if say I was to have 3 or 4 droplets running with a LB in front, would this give me the performance / HA?Load on the servers will vary, sometimes its low but could see spikes of traffic that may go up to say 20, 30k users a day. This is just one part of the application, where we have additional socket.io servers, Redis, Mongo as well so this portion facilitates the PWAP portion.
Submitted September 26, 2020 at 11:13PM by Shoemugscale
Submitted September 26, 2020 at 11:13PM by Shoemugscale
[HELP] Count URLs and track execution time in node.js CLI app
Hi! I have a node.js CLI program that takes a file, looks for URLs and then makes a head request to see the response status. The input is a file with URLs. One line can have more than 1 URL.The main functionality works but I want to be able to keep track of how long it takes to complete everything (starting from readStream data event to end) as well as count total URLs assessed (starting from readStream data event to end). I don't know how to go about keeping track of time or total URLs. I tried using a normal counter and console.time but they just print at the beginning. (I think because of Node.js' non-blocking loop? minimal understanding of how that works).How can I achieve that without changing the whole code? I would appreciate your help.My code: (this is runnable. Just npm install axios. You can use a sample.txt file with 1-2 URLs as input and change argv.file to your filepath).// Create read stream object to read the file in chunks. const readStream = fs.createReadStream(argv.file); let urlList; readStream.on("data", (chunk) => { // Get all the URL links from the file. urlList = chunk .toString() .match(/(http|https)(:\/\/)([\w+\-&@`~#$%^*.=/?:]+)/gi); }); readStream.on("end", () => { // Check each link's status asynchronously urlList.forEach(async (url) => { try { const urlResponse = await axios.head(url); if (urlResponse.status == 200) { console.log( chalk.green.bold(`[SUCCESS] Status: [${urlResponse.status}] ${url}`) ); } else if (urlResponse.status == 400 || urlResponse.status == 404) { console.log( chalk.red.bold(`[FAIL] Status: [${urlResponse.status}] ${url}`) ); } else { console.log( chalk.grey.bold(`[UNKNOWN] Status: [${urlResponse.status}] ${url}`) ); } } catch (error) { console.error(chalk.grey.bold(`[UNKNOWN] Status: [UNKNOWN] ${url}`)); } }); }); readStream.on("error", (e) => { console.error(e); });
Submitted September 26, 2020 at 10:52PM by fothingers
Submitted September 26, 2020 at 10:52PM by fothingers
Where should I start learning Node?
I want to learn node, but I would just like a good spot to start, like some tutorial. I will check freecodecaml first, then probably try some projects like simple games.
Submitted September 26, 2020 at 10:57PM by logix999
Submitted September 26, 2020 at 10:57PM by logix999
How can I safely sign-in into a SAML 2.0 SSO (Single Sign-On) webpage with NodeJS?
Hi.I am trying to build an API for an online student website. This student website first requires a student to sign-in through a SAML 2.0 SSO webpage. It has a JSESSIONID created when you first go to the page.I have already implemented it with them manually giving their credentials to the API and the NodeJS server uses fetch to make a POST request to the server to log in. However, I feel that storing the student credential in plain-text in a JS variable is not very secure.I was wondering how I am can let others use my API and securely log in to the system (using NodeJS as the server) without them giving their student credentials to the API. I am not too sure how SAML 2.0 works nor SSO (though I've read some information about them) so I am fairly new to this.
Submitted September 26, 2020 at 09:49PM by Strikerzzs
Submitted September 26, 2020 at 09:49PM by Strikerzzs
Any good repos with Sequalize, Promises, JWT APIs?
Hello I'm looking for some APIs with the above backend stack for making my learning better
Submitted September 26, 2020 at 09:16PM by MariosFFX
Submitted September 26, 2020 at 09:16PM by MariosFFX
Can you help me determine the best serverless solution for me?
TL;DR I’ve got a code that streams 5gb files from google drive to you depending on the range requested by the browser. I use google cloud run but it always says response is too large. I’m thus, looking for another sever less solution that’s allow me to run my code and receive my large responses all the same.I know putting the TLDR before the post would discourage you from reading but please do.I’m a node hobbyist, it’s just a private down time project I’m working on. I’ve built an app that allows me to stream videos from my google drive account to my browser using nodeJs. It’s sort of like a Netflix.Here’s the thing I wanna, split my code into 3 pieces. For right now everything runs on a VPS but I wanna take that down and be more efficient. Here’s what I need.1) all my information are stored in a database that’s like 600kb but would most definitely grow. Not what I need your help with but if you’ve got suggestions for free online sql databases I can keep my database on that would be great2) again not what I need your help for. The logic of the site you know loading the homepage, images, suggestions all that jazz. I’m thinking on hosting this on cloud run - google but if you’ve got a better idea that would be great. Here you can log in to have the site tailored to you.3) the streaming part streams a whole large 5-10gb file to you but only the range specified by the browser. Right now when I try to stream, cloud run says response is too large so I need help with some sort of sever less cheap solution I can use to stream my videos even if the responses would be large any ideas
Submitted September 26, 2020 at 08:35PM by Themotionalman
Submitted September 26, 2020 at 08:35PM by Themotionalman
Job scheduler with UI?
Hey guys. I'm building a personal site and want a job scheduler running inside my kubernetes cluster. At work we use Airflow, but it's pretty involved to get up and running. Any simple job schedulers you guys recommend that has a nice UI?
Submitted September 26, 2020 at 07:05PM by FloppyDiskMuffin
Submitted September 26, 2020 at 07:05PM by FloppyDiskMuffin
Build your Typescript Node.js projects using blazing fast esbuild
https://github.com/a7ul/esbuild-node-tsc
Submitted September 26, 2020 at 07:24PM by atulanand94
Submitted September 26, 2020 at 07:24PM by atulanand94
How to make a PUT request to specific field of database to send an array of strings?
Hello,I want to send an array contening all the allergies a specific user has to field 'allergies' of user database. The idea is make a PUT method during register to update the data that user has introduced before. Someone knows how to achieve this?
Submitted September 26, 2020 at 05:33PM by utopia90
Submitted September 26, 2020 at 05:33PM by utopia90
Mocha Testing
How can I run the “test” script in the package.json file for tests done with Mocha compiled with Babel?
Submitted September 26, 2020 at 04:32PM by inezabonte
Submitted September 26, 2020 at 04:32PM by inezabonte
How to delete files uploaded with multer once they are stored in the cloud?
I upload files to an Express server with multer. They are parsed and stored to Cloudinary. So far so good. However, all the files are stored in an upload folder on my server, and take a lot of space while I don't need them. How to remove these files once an upload to cloudinary is completed?Here is a screenshot of the upload folder:upload folder created/updated by MulterHere is the code:const express = require("express"); const router = express.Router(); const cloudinary = require("cloudinary").v2; const multer = require("multer"); const fs = require("fs"); // multer config const dest = "uploads/"; const limits = { fileSize: 1000 * 1000 * 4 }; // limit to 4mb const upload = multer({ dest, limits }); // upload image router.post("/upload-images", upload.array("image"), (req, res) => { const { images } = req.files; const { userId } = req.body; try { if (images) { images.forEach(file => { cloudinary.uploader.upload( file.path, { resource_type: "image", public_id: `myapp/users/${userId}/${file.originalname}` }, (err, res) => { if (err) { return fs.unlinkSync(file.path); } fs.unlinkSync(file.path); return res.secure_url } ); }); } } catch (err) { return res.json(err); } }); Thanks!
Submitted September 26, 2020 at 04:09PM by MonsieurLeland
Submitted September 26, 2020 at 04:09PM by MonsieurLeland
Recommended a template engine.
I'm looking for a easy to learn and powerful engine. Basically good overall engine.View Poll
Submitted September 26, 2020 at 03:42PM by roadsideRomeo-69
Submitted September 26, 2020 at 03:42PM by roadsideRomeo-69
Why you should not compare .NET Core with NodeJs
https://link.medium.com/VD59caZY59
Submitted September 26, 2020 at 03:01PM by HumzaDeKhan
Submitted September 26, 2020 at 03:01PM by HumzaDeKhan
Any powerful use of NodeJS?
NodeJS is always advertised to me as lightweight and the usual NodeJS apps I see are lightweight applications.Are there any powerful web apps that use NodeJS? I always read that large companies use NodeJS such as Netflix, PayPal, or LinkedIn, but I fail to realize or see how they exactly use NodeJS in their web apps.Also share your NodeJS projects you're working on here!
Submitted September 26, 2020 at 10:10AM by friedrich___
Submitted September 26, 2020 at 10:10AM by friedrich___
Validation and sanitization help
I have been learning node/express for the past few weeks. So pretty much a novice. I did the express tutorial from mdn as my first project. I ran into validation and sanitization there. I have understood the gist of it and some better practices from research and some folks at r/webdev helped a lot with it.I have a few more questions that I thought would be appropriate to ask here -So a better convention is to validate input and sanitize output is what I got. So is there a package for that? I am using ejs. Does ejs do it automatically with <%= %>? Can't use express-validator I suppose because it works on the request body.Right now I am sanitizing the input before storing to the database. Apostrophe is being replaced by its utf-8 code (expected). But when I retrieve and display it using ejs it just shows the code and not apostrophe.Is dompurify only intended for sanitizing markup or should it be used on user data at the backend?xss-filters is quite old and not used as much as validator. What are the best sanitization packages available?Thanks for reading!
Submitted September 26, 2020 at 07:47AM by reshav_paul
Submitted September 26, 2020 at 07:47AM by reshav_paul
Friday, 25 September 2020
What is the best node online course?
I know python and use to program in abap/4,html and javascript 20 years ago.. what is the best nodejs online course? ( after learning basics would like add node to my stack to dive into blockchain and defi )
Submitted September 26, 2020 at 07:12AM by bodytexture
Submitted September 26, 2020 at 07:12AM by bodytexture
New web app I just launched! Give me feedback!
Hi everyone! Just launched a site I've been coding for the past few months. It's a site that will aggregate real estate auctions by counties in the US. Currently, these auctions are on old, antiquated government web sites. I learned a lot on this project including deep google maps integration, passwordless authentication, data scraping, etc.Let me know what you think! Thanks!https://countytaxsales.com/https://preview.redd.it/0aa97arvpfp51.png?width=1717&format=png&auto=webp&s=6b10415f0d831eabac6cda953b3a99ef03510102
Submitted September 26, 2020 at 07:17AM by liejian
Submitted September 26, 2020 at 07:17AM by liejian
Creating single app or distributing it into microservices on same server?
I have a backend which 1st processes the payment and then process the info to database then process data to another 3rd part API.is it going to be good idea to split this app into micro services and run as docker containers with minimal image size and communicate using GRPC or just go with monolithic.What I'm thinking is, since currently it's a single app then memory usage when ideal is also less. So if use docker along with 3-4 containers and a postgress, is it going to be too much for a 1GB-1Core server?
Submitted September 26, 2020 at 05:14AM by pverma8172
Submitted September 26, 2020 at 05:14AM by pverma8172
How do you deal with error messages where EVERYTHING is in the node_modules? how the hell am I supposed to debug that?
I've had this happen before, it's pretty common actually. Mostly when I download a new project or some sample code or something, and If I can't figure it out with a quick Google search then I usually just give up because errors like that are fucking bull shit and the code is rarely worth it.This time I managed to get lucky. I had a graphQL / Prisma project, and I tried to start up the server and got some completely worthless error"Syntax error cannot parse unexpected character "." followed by 100% of the stack trace being in the node_modulesThe actual error was that I had forgotten to run the migrations to actually setup the database. But I found that out by luck/chance, with no help from the stack trace.So.... do you just manage? or is there some better way to debug this type of situation?
Submitted September 26, 2020 at 03:30AM by fastpenguin91
Submitted September 26, 2020 at 03:30AM by fastpenguin91
Can you make node.js faster than Golang in raw computation or just as fast?
Can you make node.js faster than Golang in raw computation or just as fast? If so, how?
Submitted September 26, 2020 at 02:52AM by jadesalad
Submitted September 26, 2020 at 02:52AM by jadesalad
Another free open-source project just for the community. Based on Vue Frontend Ecosystem and Node/MongoDB/Express Backend - with Analytics Tracking and other sample pages. PRs are very welcome
https://github.com/lexxyungcarter/vue-node-express-mongodb
Submitted September 26, 2020 at 01:15AM by lexxyungcarter
Submitted September 26, 2020 at 01:15AM by lexxyungcarter
Downloading from PHP vs Nodejs
I tried a test to download a set of files from a website using PHP (on right) and nodejs (on left). See question on stackoverflow here https://stackoverflow.com/questions/63497728/inconsistency-downloading-multiple-files-with-nodejs-but-not-with-phpI am not sure if it's the right place to ask for this but, can anyone point me to what may be the cause of this behavior?I was considering to learn C++ and make a custom module for downloading file for use with node, but am not sure if that will solve the problem.
Submitted September 25, 2020 at 11:50PM by jjoey87
Submitted September 25, 2020 at 11:50PM by jjoey87
Beginners guide to integrate Node with Redis
https://www.youtube.com/watch?v=pOteAtls_oQ
Submitted September 25, 2020 at 10:27PM by dothash
Submitted September 25, 2020 at 10:27PM by dothash
How are some ways/tools/libraries you guys use in order to scale up your server without using a cloud solution? Horizontal or Vertical?
Hey guys,just got into a backend position, whereas before I was mainly front end. Some questions I want to be able to answer immediately on my first days are1) how would you perform checks against high volume peak hours and also be able to programmatically deal with the requests in a timely manner?2) what libararies/tools should we use in order to create infrastructure for good monitoring of our APIs, potential microservices, and our main servers?3) what measures would you take against bottlenecks, generally?Thanks you backend gurus. =]
Submitted September 25, 2020 at 07:29PM by ibeeliot
Submitted September 25, 2020 at 07:29PM by ibeeliot
Any modern tutorials/books about RESTFUL APIs?
HelloI have already learned some basics about building Restful APIS in NodeJS with:ExpressMongooseJWTBodyParserCORS0Auth TokensTesting with PostmanSplitting my code in routes, models, controllersPromisesAnd I have learned the above from some Courses & Tutorials here and there and there's a bunch of things I don't know yet and I'm looking to learn the best practicesFor example:What are the best practices for splitting your code?Should I use module.exports or export default .. etcShould I use MongoDB or SQL?Is there any way to automate my testing when I create a new API?What should I watch out for perfomance?and there are many other examples I could give..I have already created some Restful CRUD APIs but when I browse the Internet and git clone some projects I am overwhelmed to be honest.I prefer reading some open source projects but I don't mind reading a book, course, tutorial.I just want to learn the most modern methods
Submitted September 25, 2020 at 05:14PM by MariosFFX
Submitted September 25, 2020 at 05:14PM by MariosFFX
Why does setTimeout block promises inside child process?
I'd love to get an answer for this stackoverflow question:https://stackoverflow.com/questions/64066072/settimeout-blocks-promise-inside-a-child-process
Submitted September 25, 2020 at 03:41PM by alexkubica
Submitted September 25, 2020 at 03:41PM by alexkubica
Implement tensorflow keras API in 30 minutes
Just published 2.0 for my old and deprecated project https://github.com/yorkie/tensorflow-nodejs, but I decided to restart it with boa, the Python interop library for Node.js.The reason that I dropped out of this project a few years ago is that the Python ecosystem for tensorflow is too mature and re-implement it is too hard, so just developing this library by bridging the TensorFlow C API is also hard to put forward.I created [pipcook/boa](https://github.com/alibaba/pipcook/blob/master/docs/manual/intro-to-boa.md) in few months ago, which lets you call Python functions in Node.js runtime, now I just decided to rewrite the tensorflow2 in boa.With bao, a basic keras migration/implementation for JavaScript only takes 30 minutes to me, it's really easy, and could be maintained forward to support Node.js developers to use Tensorflow's mature and latest APIs.And I just write an example to train mnist dataset:```js const tf = require('tensorflow2');// load mnist dataset. const dataset = tf.keras.dataset.mnist(); // { // train: { x: [Getter], y: [Getter] }, // test: { x: [Getter], y: [Getter] } // }// create model. const model = tf.keras.models.Sequential([ tf.keras.layers.Flatten({ input_shape: [28, 28] }), tf.keras.layers.Dense(128, { activation: 'relu' }), tf.keras.layers.Dropout(0.2), tf.keras.layers.Dense(10) ]); model.summary();// compile the model. const loss_fn = tf.keras.losses.SparseCategoricalCrossentropy({ from_logits: true }); model.compile({ optimizer: 'adam', loss: loss_fn, metrics: [ 'accuracy' ], });// train the model. model.fit(dataset.train.x, dataset.train.y, { epochs: 5 });// save the model model.save('your-model.h5'); ```That's it.If you wanna contribute more Tensorflow APIs, just take a look at this link: https://github.com/yorkie/tensorflow-nodejs/blob/master/lib/keras.js, is that really simple? Just use boa to call tensorflow python's specific apis and convert some arguments from Python to JavaScript!
Submitted September 25, 2020 at 04:01PM by yorkiefixer
Submitted September 25, 2020 at 04:01PM by yorkiefixer
Starting problems connecting NodeJS and R using r-script
/r/Rlanguage/comments/izk77q/starting_problems_connecting_nodejs_and_r_using/
Submitted September 25, 2020 at 03:17PM by Akashic101
Submitted September 25, 2020 at 03:17PM by Akashic101
FREE Udemy Top-rated Course: Microservices with Serverless Framework, Node.js and AWS
Hey there!TLDR: Click here to claim the course for freehttps://preview.redd.it/563u0ltpxap51.png?width=480&format=png&auto=webp&s=3a3cce77fbfde6088d6ec37f5fec55b594baf0ecMy name is Ariel and I am that strange dude who gives out free coupons to his bestselling courses on Udemy every once in a while. Why? Because A) it doesn't hurt my sales, B) your feedback has made me a better instructor.I just released my new course on Udemy. In this course, I teach how to develop scalable, highly-available serverless microservices using Serverless Framework and Node.js, and the AWS platform.The course covers:The development of three microservicesServerless best practices,using services such as DynamoDB (persistence), Amazon SQS (message queue), Amazon SES (mail service) and Amazon S3 (cloud object storage).Authorization and authentication in a microservices setupI even provide a front-end application which is cool if you want to show-off your work.Serverless Framework demand and popularity is rising IMMENSELY over the past two years. From 100k downloads per week, to 500k downloads per week.https://preview.redd.it/mklk3swrxap51.png?width=1335&format=png&auto=webp&s=6571dddb358b165f2c2aee8423213ab4aff4e2c3I would like to offer the course FOR FREE to the r/node community. You guys have shown incredible support for my previous bestselling course (NestJS Zero to Hero, 75k students, 4.7-star rating).Pay attention: This free coupon will expire in 3 days. Feel free to share it with colleagues and/or students. After claiming the course, it's yours forever.Click here to claim the course using the couponBy the way, there is a bunch of free lectures in the course's landing page if you'd like to get the feeling of how I teach and what subjects are covered.Thanks so much for your support. I am looking forward to releasing more content. If you have any questions about the course, the technology etc please shoot them here and I'll be happy to respond
Submitted September 25, 2020 at 03:13PM by WeinAriel
Submitted September 25, 2020 at 03:13PM by WeinAriel
Subscribe to:
Posts (Atom)