« first day (4057 days earlier)      last day (885 days later) » 

user17382064
12:46 AM
What does this mean?

"The getWrapper function is creating a wrapper variable, but nothing is being done with it. That wrapper needs to be returned at the end of the function."

function getWrapper(cover) {
    const parent = cover.parentElement;
    const wrapper = parent.querySelector(".wrap");
  }
 
user17382064
 
user17382064
What am I supposed to do?
 
user17382064
I'm confused.
 
user17382064
Referring to this error: Cannot read properties of undefined (reading ‘classList’)
 
user17382064
1:05 AM
vlaz
 
user17382064
1:43 AM
I did it:   function getWrapper(cover) {
    const parent = cover.parentElement;
    const wrapper = parent.querySelector(".wrap");
    return wrapper
  }
 
6:31 AM
Guys, are these two the same?
el.css('display', 'inline').fadeToggle(speed, function() {
and
el.css('display', 'inline');
el.fadeToggle(speed, function() {
 
@MartinAJ Yes.
 
ok thanks
 
 
2 hours later…
8:30 AM
@AbdulShaikh Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@AbdulShaikh Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
1 message moved to Trash can
 
Hi guys.
i am unable to append the api response using jQuery. here is the jsfiddle link.

jsfiddle.net/abdulshaikh2022/6zocw8kg/6
 
 
2 hours later…
10:33 AM
What does this syntax mean:
createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, options?: {
    headers: {
        [name: string]: string;
    };
}): Promise<{
    response: http.IncomingMessage;
    body: V1ReplicationController;
}>;
 
@HenriqueMilli Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
 
it is a method, but it doesn't do anything!?

It defines some parameter types but then what?
I found this in the kubernetes js client github.com/kubernetes-client/javascript
I can call that method and i does what it is supposed to do but... how??
Ok it's a d.ts file so it documnets types... but I still don't get where's the code doing the magic behind the scenes
 
10:59 AM
Ok maybe I can reformulate a better question now... How do you map that d.ts to the compiled js code?
In the source I found a reference in the relative dot ts file... But in the dist we've this working and callable method, which is only a type definition, but can't figure out how it's mapped to the compile code, and I supposed it has to be since it actually does stuff when you call it... does this sound more like a reasonable question now?
 
 
5 hours later…
4:11 PM
This is weird.

> dt = new Date()
> dt.getMilliseconds() == 914
true
 
@MisterGeeky Seems correct, if you managed to hit the correct millisecond. Only 1:1000 chance for that.
 
> dt.getMilliseconds()
914
> dt.getMilliseconds()
914
> dt.getMilliseconds()
914
> dt.getMilliseconds()
914
 
dt is already created. The time won't change.
 
Ah
I feel so stupid now.
I was wondering why the date didn't change, and didn't think the variable only stores it once. lol
I'm having another issue.
I put Date() in filename and fs.rename can't move my file.
The issue resolved when I either MD5 hashed the entire string or changed it to Date.now()
I think it's because : and + aren't allowed in filenames on Windows.
But it worked for someone on Kali Linux.
how does the camera app on my phone save image filenames? YYYYMMDD-<increment>
 
Yes, Linux has less restrictions on names. You can use new Date().toISOString().replaceAll(/[:.]/g, "_")
 
4:23 PM
wow, sorcery. Thanks.
 
@MisterGeeky Checks for collisions, and just does count++ until it doesn't find collisions.
||> new Date().toISOString().replaceAll(/[:.]/g, "_")
 
@VLAZ 'TypeError: (intermediate value).toISOString(...).replaceAll is not a function' Logged: [ ] Took: 1ms
 
Ah, James doesn't have replaceAll
Meh, not needed anyway
||> new Date().toISOString().replace(/[:.]/g, "_")
 
@VLAZ '2021-11-24T16_24_13_931Z' Logged: [ ] Took: 0ms
 
Not sure why I used it the first time.
||> new Date().toISOString().replace(/[-:.]/g, "_")
 
4:24 PM
@VLAZ '2021_11_24T16_24_56_691Z' Logged: [ ] Took: 0ms
 
if you want to make it more unified, so all will be with lower underscores
 
ok, added that, but what's with the Z at the end.
 
Z means the time is in the UTC timezone (+00:00 or "Zulu" for some reason). You can remove it if you want with .slice(0, -1)
 
It now returns filenames like a_2021_11_24T16_28_32_649Z_61877110660948430.txt
Zulu, that's funny. I wonder why they chose that.
 
that's where time started
 
4:36 PM
I just noticed. What's the 24T16 part, why is T there.
oh, T for Time, maybe.
I updated the line to var dt = new Date().toISOString().replace(/[-:.T]/g, "_").slice(0, -1); and now, I get names like a_2021_11_24_16_41_00_722_23348949545429676.txt
That's got to be unique, right. Never going to face the file already exists in path or anything like that, right.
@KevinB It's because of the military alphabet, that whole foxtrot delta thing they use to spell out words and give signals. It could have been Zero or Zebra but their terms changed.
 
 
1 hour later…
5:55 PM
anyone familiar with stenographs
 
@Lime Only the short writing thing. If this is something JS/programming related, I've no clue.
 
Ok well is there a stenograph that is symbol based?
 
Yes? That's how stenography works - writing shorter by using more expressive symbols.
At least, I thought that's how it works. If you're asking this question, that probably means there are other alternatives.
 
Now it’s pheonetic not symbol based
 
6:36 PM
||> "test".repalceAll("t", "g")
 
@JBis 'TypeError: "test".repalceAll is not a function' Logged: [ ] Took: 0ms
 
:O
 
?
!!> "test".asdflhea("t","g")
 
hey guys what all are websites providing vscode in browser?
 
@KevinB 'TypeError: "test".asdflhea is not a function' Logged: [ ] Took: 0ms
 
6:42 PM
sorry, i'm not google
 
to me?
I actually have some follow questions...
 
yes
 
@JBis Probably James is running on Node <15
 
I can't spell and that
ill update him later
 
7:49 PM
I updated him and now he broke :(
 
Oh no, James!
 
javascript in a nutshell
 
> node-gyp -v v5.1.1
Why is that version being used :(
 
ew
i hate dealing with node-gyp
 
8:04 PM
as does everyone who's every used it
never, ever, works right
 
last time i had to use it, it was with a project using a very old version of loopback
and... i couldn't update, so i had to meddle with it until i got a valid combination of node.js to node-gyp that loopback used that would compile
that also supported the spread operator, because loopback didn't lock it's dependencies
that application was built before node moved to the current versioning schema
 
8:23 PM
||> "test".replaceAll("t", "g")
 
@JBis 'gesg' Logged: [ ] Took: 0ms
 
:D
 
 
1 hour later…
9:48 PM
Yay, James!
 
!!james
 
Invalid command! Did you mean: aps, joke, bees? Try help for a list of available commands..‍.‍
 
 
1 hour later…
11:15 PM
posted on November 24, 2021 by Daniel Gagnon

The Beta channel is being updated to 97.0.4692.27 (Platform version: 14324.19.0) for most Chrome OS devices. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels Find out how. You can submit feedback using ‘Report an issue...’ in the Chrome menu (3 vertical dots in the upper right corner of the brow

 

« first day (4057 days earlier)      last day (885 days later) »