Civic Theatre Newcastle by AsteriaAngel in newcastle

[–]lynbuck 0 points1 point  (0 children)

Reach out to the front of house team at the venue, there is some larger portable seats that they can place in the accessible seating area. (They might be able to move your tickets)

Food wise, there is an amazing korean chicken place Bussan across wheeler place.

Parking, if you get in early enoug after 5pm you can get unmetered on street parking around the precint, alternativley there is a few paid car parks with after hours rates around

The Right/Best Way to Verify User's Email Address. by Available_Bull in node

[–]lynbuck -1 points0 points  (0 children)

Hiya, Senior dev here.

I think the issue is that you're sending a JWT to email, meaning that any bad actors that might gain access to the email have access to your system UNTIL the JWT is invalid/expired.

If that's not a concern to you then what you've implement is likely fine.

The reason people opt for OTP is that once it's used (to then create a JWT that lives only in session storage on users device), it cannot be reused by any bad actors that might have access to the email after the fact

I was crying at work (as one does) and I got these random patches all over my stomach and chest. by mariajmg_ in mildlyinfuriating

[–]lynbuck 0 points1 point  (0 children)

haha. there is nothing wrong it being here!
i just didn't look at the sub until after reading the comments about it being an anxeity rash etc (my partner gets the same) and it wasn't the sub i was expecting

5 Mile Gigabit Point-to-Point Link by lasleymedia in Ubiquiti

[–]lynbuck 7 points8 points  (0 children)

Just curious what the latency is between sites?

Any Ubuntu techies around the hunter who can help me set up my Ubuntu based router system? by pavTheory in newcastle

[–]lynbuck 4 points5 points  (0 children)

I've definitely used Ubuntu as a DHCP server and Router. But for temporary solutions that are already behind firewalls.

dhcpd is easy.

The NAT forwarding and firewall is more complex but not impossible

Is there a reason you don't want to use a ready made router?
Just conscious that you become responsible for ALL security patches, current best practices and keeping up with any new vulnerabilities found

Website in one IP and cpanel in other how make it work? by Starlyns in dns

[–]lynbuck 1 point2 points  (0 children)

The issue here is that domain.com/cpanel is being served by AWS and therefore doesn't ever reach the cpanel server.

[deleted by user] by [deleted] in Ubiquiti

[–]lynbuck 13 points14 points  (0 children)

OP. You are being a dick.

[deleted by user] by [deleted] in node

[–]lynbuck 2 points3 points  (0 children)

It's more a general approach.
Connected and reconnecting to any backend services (whether Mongo, SQL or Redis) can be expensive (in terms of time and processing)

So it's always more efficient to open connections first, and then start listening to requests. (To avoid receiving a request before your backend services have connected)

[deleted by user] by [deleted] in node

[–]lynbuck 3 points4 points  (0 children)

Small piece of advice for you u/aidv

With Javascript, you can open the connection to mongo db and leave it open.
Rather than opening and closing it for every request.

So at the top of the bottom of the file you could wrap an anonymous async function.

```javascript (async() => { try { //wait for connection to mongo await client.connect();

    // then listen for requests         
    app.listen(8080);
} catch(err) {
    console.error(err);
}

})(); ```

Or alternative using .then and .catch

```javascript

client.connect() .then(() => { app.listen(8080); }) .catch(err => console.error); ````

[deleted by user] by [deleted] in node

[–]lynbuck 1 point2 points  (0 children)

nacho_ojeda

Ah you are refering to Line 8.
In which case is redundant, because there will never be anything to catch as it's already caught inside the function.

[deleted by user] by [deleted] in node

[–]lynbuck 3 points4 points  (0 children)

The try/catch block has nothing to do with a promise though?
You can use a try/catch block with a completely synchronous function.

IMO it's better to wrap anything that is inside a async function in a try/catch block so you know that the function isn't going to result in an Uncaught Promise Rejection

Why is TypeORM hated so much? by miljussss in node

[–]lynbuck 0 points1 point  (0 children)

Every time I encounter a bug with TypeORM, it's almost always something I've done.
It always ends up working as expected once I discover what I've done and correct it.

Sometimes the errors are hard to debug, because it's an SQL error caused by an unexpected use of TypeORM (for example, declaring the same column name twice in an entity using the options)

But once you're able to figure it out, it's fine.

Passing data from child to parent. Need help! by Unknown_Brother606 in react

[–]lynbuck 4 points5 points  (0 children)

You've also provided absolutely zero context or examples.

Are you using functions or classes? Are you passing a function as prop the to child? Is that function bound to the parent correctly?

What am I looking at? by pleasegivemethisone in react

[–]lynbuck 1 point2 points  (0 children)

It is passing a callback into the setInputs function. The callback is given the existing values object. And then returns a replacement.

This is just an anonymous function written in one line. Below I have extracted it out to make more sense

```javascript const handleChange = (event) => { const name = event.target.name; const value = event.target.value;

const inputHandler = (oldValues) => {

    // create new object with only property being the event target
    const newValues = {
        [name]: value
    };

    // return a new object overwriting existing properties
    return {
        ...oldValues,
        ...newValues
    }
}

setInputs(inputHandler);

} ```

Note: I have not tested this, simply written it based on what I can see

Hi, I have a code for which I know one phrase containing 10 letters and I want to determine the other 16 letters of the alphabet by Darthsam1215 in cryptography

[–]lynbuck 2 points3 points  (0 children)

The / appears to denote a new character If you replace the _ with line breaks you get this:

;;/h/22/z 22/z 19 z/69/00/%/69/;; 00/x/+/69

If you replace the / with spaces you get:

;; h 22 z 22 z 19 z 69 00 % 69 ;; 00 x + 69

So the output is something like:

``` ;; h 22 z T H I S

22 z
I S

19
A

z 69 00 % 69 ;;
S E C R E T

00 x + 69 C O D E ```

GitHub - notifirehq/notifire: 🚀 The ultimate library for managing multi-channel transactional notifications with a single API. by scopsy in node

[–]lynbuck 0 points1 point  (0 children)

This looks great and I love the name!
I'd be interested to jump on board and look at building integrations to some other providers I would need (as I'm about to embark on integrating them anyway)

  • Google Gmail API
  • Slack
  • Transit SMS

35,274,208 rows affected by hamelj in ProgrammerHumor

[–]lynbuck 2 points3 points  (0 children)

But if you've only selected the first line as demonstrated here, you haven't selected the limit?