Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 27 2018 01:23
    @MylesBorins banned @fjeddy
  • Feb 24 2016 08:26
    @rvagg banned @jonathanenbe
Neil Duffy
@skiv71
does ejs have a channel?
Olonilua Olalekan
@lecxis

How savvy are you on the latest dev tools and technologies? All developers who complete the survey and register enter a raffle to win $16,000 worth of prizes. Get your community involved too - promote the survey and you may win in addition $1,000 in cash!

https://developereconomics.net/?member_id=pdSrFATx&lang=en

Strictly for developers or those learning any programming language

Make your voice heard and earn cool cash and swags as a developer.

mrhasifi
@mrhasifi
Hellooo
DJ Tinkers
@TinkersDj_twitter

QUICK OPENSOURCE PROJECT

JavaScript Builtin Methods Sandboxing

https://github.com/Neur0plasticity/sandbox-js

Message me if interested

Currently that repo is just a concept and needs some community spark.

Jordan Harband
@ljharb
@tinkersdj_twitter are you familiar with SES, which already does this (in a more reliable fashion than your project)? https://github.com/Agoric/SES
DJ Tinkers
@TinkersDj_twitter

@ljharb

Awesomeeee

DJ Tinkers
@TinkersDj_twitter
Could NPM possibly create an approved bundle including software such as SES? Or are we all waiting for stable DENO?
Jordan Harband
@ljharb
lol nobody's waiting for deno, it lacks all the things that make node great
not sure what you mean by "approved bundle" tho
you can just run all your tests in an SES realm, and you'll pretty quickly figure out if one of your deps is modifying globals
no need for any official certification or anything
DJ Tinkers
@TinkersDj_twitter
What about mutative offensive algorithms?
DJ Tinkers
@TinkersDj_twitter

Just wondering.

Think JavaScripts biggest vulnerability is more opensource than remote execution.
Mutating algorithms are painful to mitigate. Run one sourcecode one time on development computer, disappears later.

The JIT Compiler has weakness of it's own I found from playing around.
Some which can be invisible to stack traces. So I ask,
what are the defenses against mutating/shape-shifting/self-modifying algorithms?

Jordan Harband
@ljharb
why would that need defending
either a system is vulnerable or it's not
DJ Tinkers
@TinkersDj_twitter
LOL
Jordan Harband
@ljharb
the goal of SES is to be 100% safe
and the nature of JS is that no changing "algorithm" changes the security landscape
DJ Tinkers
@TinkersDj_twitter

Oaklanders might believe those brain washing statements.

And sure, on paper there goal is to be 100% safe but it'll turn into a tangle mess missing the wide open cracks.

For shit sakes, javascript use to accidently create globals for years.

Jordan Harband
@ljharb
"oaklanders"?
javascript never accidentally did anything. users accidentally did, and still do.
that's what a linter is for.
SerhiiBulakh
@SerhiiBulakh
Hello guys! Could you help me please I make test with jest and I have problem. I have three class which use one class for get data. I mock classes but only one class successful
DJ Tinkers
@TinkersDj_twitter
@SerhiiBulakh
open an issue on there git
Arnaud De Backer
@deviarchscs
Hello everybody, I would like to present an open source project on which I'm working on:
https://github.com/postput/postput
It is a simple webserver (written in nodejs) that can serve any kind of files, wherever they are. It abstracts the complexity of storage providers to help you upload, download and operate on your files.
If you're interrested, don't hesitate to give me feedbacks
DJ Tinkers
@TinkersDj_twitter

@deviarchscs

So automatically sent to a storage provider without filling in the links?

Ayush Mahajan
@ay2306
How can I do this
  1. I have installed a global package aegir
  2. I cloned forked repo of aegir and made changes to the code
  3. Use this changed package globally instead of one downloaded using npm
Arnaud De Backer
@deviarchscs
@TinkersDj_twitter You still have to configure the storage obviously (ex: give the key + keyId + bucket name if you're using an S3 bucket ) but after the configuration done, you can simply upload your files using normal formdata upload and apply resizing, formating, blur etc... on your images.
romie
@theromie
How to properly set Async await on pool query?
routes.route("/get").get(async (rq, rs) => {
  const { pageNo, itemsPerPage } = rq.query;
  let totalRegcords = [];
  let pagination = [];
  //Get Total Claim records
  totalRegcords = await db.query(QUERY.ADMINCLAIM.count, (err, res) => {
    if (err) return err;
    return res.rows;
  });

  //Get Claim Paginate records
  pagination = await db.queryPaginated(
    QUERY.ADMINCLAIM.get,
    [],
    pageNo,
    itemsPerPage,
    (err, res) => {
      console.log(res.rows);
      if (err) return err;
      return res.rows;
    }
  );
  console.log(pagination);
  rs.status(STATUS.OK).json({
    totalRegcords: totalRegcords,
    pagination: pagination
  });
});
console.log(pagination); shows first then this console.log(res.rows);
Peter Delvaux
@pjetr
you should rewrite your query to return a Promise, or something like this:
let pagination = await new Promise((resolve, reject) => {
  db.queryPaginated(
    QUERY.ADMINCLAIM.get,
    [],
    pageNo,
    itemsPerPage,
    (err, res) => {
      if (err) reject(err);

      resolve(res.rows);
    }
  );
});
@theromie
Dhaval Parmar
@TechGeekD
@ay2306 have you tried this ?
npm install github:[GITHUB_USERNAME]/[GITHUB_REPO]#[BRANCH_NAME]
romie
@theromie
What will be query for pagination with total count in postgres ?
Peter Delvaux
@pjetr
about 30
Sandeep Gupta
@iamsandeepgupta
Hi, I have registered as Paytm merchant and have integrated the Paytm wallet in my node app and its working fine. I have tested initiate transaction API which is working fine as per it. Redirection and everything are working fine. Now I want to implement wallet transfer API in my node application so that I can make a transfer from a merchant to other users by their mobile number but in docs of Paytm, it was mentioned to have Subwalletguid in payload while calling API. I tried but I am not able to get the Subwalletguid anywhere on my dashboard. Link of the docs:- https://developer.paytm.com/docs/wallet-transfer-api/
I am stuck from last week on this.
Olonilua Olalekan
@lecxis

How savvy are you on the latest dev tools and technologies? All developers who complete the survey and register enter a raffle to win $16,000 worth of prizes. Get your community involved too - promote the survey and you may win in addition $1,000 in cash!

https://developereconomics.net/?member_id=pdSrFATx&lang=en

Strictly for developers or those learning any programming language

Make your voice heard and earn cool cash and swags as a developer.

Uzlopak
@Uzlopak
Hi, is there a recommended tsconfig for node 12?
Wilx1
@Wilx1
Hello, Good day all. Please I'm following up on Colt's yelpcamp tutorial, but I ran into this error: TypeError: Cannot read property 'push' of undefined. Please, any attempt to help me rectify it would be greatly appreciated. Thanks in anticipation.
Jason Luboff
@JLuboff
@Wilx1 You're trying to use push() on undefined which...you can't do. You can only use .push() on an array
Pedro Moura
@pouta
Hey! I need help with debugging a local dependency
This means I can't debug easily because all code in /dist is minified
when I add it as local dependency in package.json the main project uses the /dist folder
sakthivel
@Sakthi-Gnanam
Hey! I need help regarding thread local like implementation in node js with the help of async hooks. Am a newbie here, I looked around and found async hooks impacts performance in a negative, also they are experimental API. Any idea, how did the developers maintain the context before async hooks?
prudhvivijaykumar
@prudhvivijaykumar
Hello All, While login I have generated JWT Token without expiration time. So while re-login with the same credentials then I want to destroy the previous token. Any solution.?
Ashwin Kain
@Ashwin-Kapes
I'm trying to create a context inside axios response but it's not working. I'm using dialogflow-fulfillment library. Here's my code:
dialogflow/dialogflow-fulfillment-nodejs#280
function AuthToken(agent) {     
      axios.post(URL HERE, PAYLOAD HERE)
            .then(function(response) {
               agent.context.set({
                    "name": 'token',
                    "lifespan": 5,
                    "parameters": { "access_token": response.data.access_token }
                });
                return console.log(response);
            })
            .catch(function(error) {                
                return console.log(error);
            });

 agent.add(`Hello`);
    }
Ben Halverson
@benhalverson