dys ๐Ÿ™
dys ๐Ÿ™
KPCKevin Powell - Community
Created by vince on 2/18/2025 in #os-and-tools
Advice on setting up a monorepo
In the root package.json:
"workspaces": {
"packages": ["apps/*"]
},
"scripts": {
"bot:start": "pnpm --filter=bot run dev",
"server:start": "pnpm --filter=server run dev",
"web:start": "pnpm --filter=web run dev",
โ‹ฎ
}
"workspaces": {
"packages": ["apps/*"]
},
"scripts": {
"bot:start": "pnpm --filter=bot run dev",
"server:start": "pnpm --filter=server run dev",
"web:start": "pnpm --filter=web run dev",
โ‹ฎ
}
Where bot in --filter=bot is the name from the package.json in the bot/ directory.
2 replies
KPCKevin Powell - Community
Created by Harry05 on 2/17/2025 in #ui-ux
Start make web App from 0%
I dunno. ยฟA flow chart, maybe? Boxes for each screen with arrows for the options they have at that point? There are several online flowchart editors.
2 replies
KPCKevin Powell - Community
Created by CarlosDEV๐Ÿค–๐Ÿง™โ™‚๐ŸคŸ on 2/9/2025 in #ui-ux
Create a website for a poem/book
Back in undergrad, circa the year 2000, I was in a class that did a close reading of T. S. Eliot's The Four Quartets going over it two or three lines at a time over the course of three days. So, you can see what I thought the state of the art in XHTML was 25 years ago. ๐Ÿ˜ธ (The pages used to have background images, but they're been lost to the winds of time.) At this time, I was also experimenting with a file system structuring concept. The file's name is only the type of the content, "xhtml", for instance. There are then many possible directory paths that hold and contextualize that file. One of the side effects is you don't know what the parent directory is going to be, so there's no parent links, only forward links through a special directory .../ which represents the "relative root" of that instance. The relative root is accomplished by linking .../ to ../.../ in every directory except the root of the site where .../ links to ./. If you notice the address as you browse, it just keeps getting longer & longer. :confused:
6 replies
KPCKevin Powell - Community
Created by Axim on 2/8/2025 in #front-end
Add several animations
Put a comma before your concatenation:
el.style.animation += ", rotate_element .25s ease-out"
el.style.animation += ", rotate_element .25s ease-out"
3 replies
KPCKevin Powell - Community
Created by markeya on 2/3/2025 in #os-and-tools
General question about profiles on Github
It's a very useful to create an organization you are a part of and administer. I've got @dysbulic & The Department of Happiness. Orgs are really useful for collaborations. Also, in this day & age, I'd also create a Discord server & link that in the personalization of your organization.
37 replies
KPCKevin Powell - Community
Created by Arctomachine on 2/2/2025 in #front-end
Resize block after text wrap
You could put a <div> in the middle with a flex-grow to fill the space and a border-bottom of dotted?
20 replies
KPCKevin Powell - Community
Created by vince on 2/1/2025 in #front-end
TypeScript type error
I'd agree. The only time I'll use ! is when a check that verifies the presence has been run, but TypeScript isn't smart enough to recognize it has happened. You have values nullishly coalescing to the empty string which you then pass to .includes(). That effectively disables the filter. Is that what you want? You need to handle null values in mutateReaction because it's entirely possible one will be passed in from getMessageReaction. I'm not sure I understand your question.
12 replies
KPCKevin Powell - Community
Created by snxxwyy on 1/16/2025 in #os-and-tools
vim | extra files
Those are backups of the previous version in case you accidentally lose something. How you turn them off, I dunno.
11 replies
KPCKevin Powell - Community
Created by ZNP on 1/15/2025 in #back-end
How do I make a download system for simple exe files
It's also a characteristic of many worms & viruses which automatically attempt to infect other machines in the same network. Many exploits have a side effect of shutting down the program you're attacking because you corrupt its memory space or something like that. It means that the attacker has to transmit all the code necessary to complete the attack in one go, because the service won't be around anymore after the attack. (Until someone one notices it has died and reenables it.)
49 replies
KPCKevin Powell - Community
Created by ZNP on 1/15/2025 in #back-end
How do I make a download system for simple exe files
There are some "single" files that are a little blob of shell script prepended to an archive of source files. The sh script uncompresses it's own tailend after a user has agreed to a license or some other pre-install procedure.
49 replies
KPCKevin Powell - Community
Created by ZNP on 1/15/2025 in #back-end
How do I make a download system for simple exe files
ยฟAs opposed to an executable? The browser is likely to flag any of these formats as unsafe and require an override to download. Really, your best bet would be to offer the software through some organization (like Steam or the Google Play Store) that vets software to try and help people avoid maliciousness. It'd definitely make people feel safer.
49 replies
KPCKevin Powell - Community
Created by aco on 1/15/2025 in #front-end
How do you recreate the holographic card effect from Pokรฉmon TCG Pocket?
You might check this out.
5 replies
KPCKevin Powell - Community
Created by ZNP on 1/15/2025 in #back-end
How do I make a download system for simple exe files
Anchor (a) tags have a download attribute.
49 replies
KPCKevin Powell - Community
Created by ๐š†๐š˜๐š•๐š๐š’๐šŽ๐Ÿ”ฅ๐šŽ๐š•๐š’๐š๐šŽ on 1/13/2025 in #os-and-tools
Wsl distro Installation issue:
As you're beginning to program, I recommend knowing the code . command typed in the terminal. I use it pretty much every day. This will open the directory you're currently in in VS code. (In *nix, . means โ€œthe current directoryโ€ & .. means โ€œthe parent directoryโ€.)
59 replies
KPCKevin Powell - Community
Created by Doksuri on 1/13/2025 in #front-end
local css variable ?
It's funny that you edited the text saying that your previous text was a typo. ๐Ÿ˜ธ
30 replies
KPCKevin Powell - Community
Created by Doksuri on 1/13/2025 in #front-end
local css variable ?
Are you responding to me? I set the color on .c4 in the stylesheet.
30 replies
KPCKevin Powell - Community
Created by Doksuri on 1/13/2025 in #front-end
local css variable ?
Yes, it is setting a value for the variable on the element. You can do the same thing in the stylesheet.
30 replies
KPCKevin Powell - Community
Created by Doksuri on 1/13/2025 in #front-end
local css variable ?
30 replies
KPCKevin Powell - Community
Created by ๐š†๐š˜๐š•๐š๐š’๐šŽ๐Ÿ”ฅ๐šŽ๐š•๐š’๐š๐šŽ on 1/11/2025 in #os-and-tools
What operating system should I be using? How should I set up the root directory?
I seconded the Hypervisor setup change with some diagnostic commands in that thread. I seem to remember having to tweak something in my BIOS to enable virtualization when setting up VM software in the past, but I didn't see any reference to that in the Windows docs.
58 replies
KPCKevin Powell - Community
Created by ๐š†๐š˜๐š•๐š๐š’๐šŽ๐Ÿ”ฅ๐šŽ๐š•๐š’๐š๐šŽ on 1/13/2025 in #os-and-tools
Wsl distro Installation issue:
I'll second this. Not having hypervisor running can cause lots of weird errors. From the FAQ:
Run โ€œbcdedit /enum | findstr -i hypervisorlaunchtypeโ€ in an elevated PowerShell & if you see hypervisorlaunchtype Off, run โ€œbcdedit /set hypervisorlaunchtype Autoโ€ & then โ€œRestart-Computerโ€ (also in PowerShell).
59 replies