« first day (3947 days earlier)      last day (984 days later) » 

12:15 AM
!!stat
 
Username: Kevin B
ID: 172549
Reputation: 92979
Reputation Change Month: 39
Last Accessed: Thu Aug 05 2021 19:53:27 GMT-0400 (Eastern Daylight Time)
 
hey it still works
 
 
1 hour later…
1:17 AM
good
 
 
6 hours later…
7:20 AM
Good morning
It seems I solved my binding problem after all:
inner component declares both @Input() model and @Output() modelChange, template goes [(ngModel)]="model" and (modelChange)="modelChange.emit($event)".
Now, outer component can bind to [(model)].
 
7:40 AM
!!stat
 
Username: PHPFan
ID: 2008634
Reputation: 696
Reputation Change Month: 0
Last Accessed: Fri Aug 06 2021 03:38:44 GMT-0400 (Eastern Daylight Time)
 
 
2 hours later…
9:58 AM
Sometimes if feels the thought process behind some questions is:
Very often the "destructuring" is a regular object literal...
Calling fn({ foo: bar }) for example
 
10:21 AM
different evaluation context?
 
10:33 AM
You recently showed me I was the opposite - thinking it was an object (cuz js, right?) yet I needed more parentheses.
 
 
2 hours later…
12:22 PM
Good morning
Woke up to 500 rep
 
 
2 hours later…
2:11 PM
@BeerusDev I usually set my alarm to at least 630. I prefer to sleep in.
 
2:28 PM
facepalm
!!stat
 
Username: BeerusDev
ID: 19143995
Reputation: 503
Reputation Change Month: 76
Last Accessed: Fri Aug 06 2021 10:18:43 GMT-0400 (Eastern Daylight Time)
 
Hello
 
o/
 
I land my first system developer this week ,,,using js
just straight from university
 
Congrats
 
2:36 PM
any advise ???
 
Damn I can not get this damn div to hide or display none.
 
set opacity for that div 0.0
 
@DanfordKija w3schools is a terrible resource. We suggest using MDN.
 
it is still taking up the space where I need to .show() a hidden div, can't do that
!!mdn shadow DOM
 
3:23 PM
@DanfordKija oh boy
 
:shrug:
Fixed my new count not appending :D
 
3:40 PM
Love seeing when someone thats a new user literally copies my answer almost verbatum and posts it like an hour after me...
 
report for plagiarism
 
I can't even spell... *verbatim
 
4:02 PM
Why does the review queues randomly pop up red>
 
threshold limit
 
4:21 PM
guys ...
its friday!
happy friday!
const sessionMiddleware = session({ secret: 'keyboard cat', cookie: { maxAge: 60000 }});
// register middleware in Express
app.use(sessionMiddleware);
// register middleware in Socket.IO
io.use((socket, next) => {
  sessionMiddleware(socket.request, {}, next);
  // sessionMiddleware(socket.request, socket.request.res, next); will not work with websocket-only
  // connections, as 'socket.request.res' will be undefined in that case
});
It always say session is 1 .. it doesn't save the session...
    io.on("connection", (socket: Socket) => {
                let session = (socket.request as any).session;
                if(isNaN(session.connections))
                    session.connections = 0;
                session.connections++;
                session.save();
                console.log("SSSESSSION WS",session);
    });
 
@Suisse Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
 
I can't access sessions from express? I wan't to know if the websocket request was from a loggedin user or not.. how do you do that?
 
idk 🙂
 
Happy Friday
Finished up my project. Taking vacation after today. Timing is perfect
 

« first day (3947 days earlier)      last day (984 days later) »