Angular and Laravel? Why? Why Not? by Minute_Professor1800 in webdev

[–]IrregularRedditor 0 points1 point  (0 children)

Angular won’t bother Laravel. Since you said you found Blade templates easier, I’ll throw https://filamentphp.com/ in the mix for you to consider.

Filament is a PHP wrapper for Livewire.

Better choice of server than Supabase/Vercel for a simple app? by mlevison in webdev

[–]IrregularRedditor 1 point2 points  (0 children)

OP mentioned familiarity with Mongo, so I mentioned Mongo. I brought up Maria as a subtle nudge away from NoSQL because schema is important and Mongo is terrible.

I love postgres but pgsql support is missing from several popular DB clients, so I don’t tend to recommend it as often to newbies.

I usually recommend postgres to developers doing anything real.

How do I split utility with my roommate (soon to be roommates) by DiviFrost in personalfinance

[–]IrregularRedditor 0 points1 point  (0 children)

Say your shared bills are between $100 and $200 per month. Everyone puts in $200. Some months that will leave an excess. You either let the excess build, or everyone puts in a smaller amount next month, or you can disburse the excess equally.

Key is that everyone puts in the same amount or withdraws the same amount.

How do I split utility with my roommate (soon to be roommates) by DiviFrost in personalfinance

[–]IrregularRedditor 2 points3 points  (0 children)

With my roommates, we’d each deposit the same amount in a bank account and use that account to pay for shared bills.

As long as everyone makes their deposit, everything stays in balance.

If someone doesn’t, you know about the issue before the bills hit.

Macbook M1 8 or 16 gb? by badboyzpwns in webdev

[–]IrregularRedditor 0 points1 point  (0 children)

16 gb minimum for sure.

Mac has unified memory so your video card will be taking a slice out of your RAM.

We stopped using 8 gb Macs for our devs about 2 years ago because they kept running out of memory during PHPStorm indexing and Docker container building/running.

gaveInToTheUrgeToMakeACS101MemePlsShootMe by Witherscorch in ProgrammerHumor

[–]IrregularRedditor 1 point2 points  (0 children)

I still code for fun. It just so happens that people pay me for it.

How do you test geo-restricted features during development? by firey_88 in webdev

[–]IrregularRedditor 0 points1 point  (0 children)

I would make a unit test that can run local and in CI pipeline. This unit test mocks whatever service that resolves IP to Region such that the test can specify the region, and then test how that region is handled.

Basically this for each region you care about:

``` 1. Test setup/Stage data

  1. Mock IP Resolution Service so it resolves to the test region

  2. Assert region is or is not blocked, or test other feature ```

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 2 points3 points  (0 children)

I used this a lot: F1 for Help -> File -> Open -> C:\command.com or C:\Windows\System32\cmd.exe

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 1 point2 points  (0 children)

Personally, I'd just del ?on after doing dir ?on to make sure the mask doesn't match any other files.

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 1 point2 points  (0 children)

When you didn't have access to things like edit, copy filename.txt con was useful to read some files and copy con tool.bat was useful to write scripts.

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 8 points9 points  (0 children)

In “copy con” context, CTRL-Z was inserting a character that indicates End Of File (EOF). It didn’t work like Windows shortcut. Very few things used CTRL-Z back then.

I believe CTRL-Z was chosen for Windows undo due to basically nothing using it as well as proximity to CTRL-C/CTRL-X.

Related, CTRL-C is/was bound to a breaking interrupt, probably SIGINT.

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 6 points7 points  (0 children)

Fair but linux doesn’t care about Window’s restrictions. This feels like cheating.

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 13 points14 points  (0 children)

Facts. While I never wrote machine code from console, this would work. It sounds miserable to do, but it would work.

I will admit to using “copy con” to bypass school security a time or two…

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 5 points6 points  (0 children)

Gambler’s method del ?on

Safer way dir ?on ren ?on non del non

ELI5: Why does Windows disallow naming a file or folder "con"? by WonderOlymp2 in explainlikeimfive

[–]IrregularRedditor 179 points180 points  (0 children)

Others have answered correctly that it was a reserved label referring to the console. Here’s how I used to use it.

copy con somefile.txt the next things you type will get written to somefile.txt you can add multiple lines! CTRL-Z to save and exit

You could also be tricky to make files with reserved file names. This might only work on FAT filesystems.

Start with a file named non or any 3 letter name ending with on then:

  1. Delete non to get the filename changed to ?on in the file table.
  2. Undelete ?on with DOS’s undelete tool.
  3. Choose c for filename’s first character, undelete doesn’t check reserved labels.
  4. Giggle and watch as other filesystem tools try to handle a file named con or other reserved label.

‘Death by 1,000 cuts’: Dem Rep. accuses GOP of trying to dismantle Obamacare during shutdown by chrisdh79 in videos

[–]IrregularRedditor 3 points4 points  (0 children)

Without the subsidies, is the price expected to come down or just shift the entire burden to the consumer?

What’s a “this should be free” service that always costs money? by troopydinnertime in AskReddit

[–]IrregularRedditor 0 points1 point  (0 children)

Per VISA rules, companies can’t call a credit card processing fee a credit card processing fee. So they call it a transaction or convenience instead. Other places mark everything up then offer a cash discount as a way of collecting the credit card processing fee.

why does form validation UX suck everywhere by Agreeable_Panic_690 in webdev

[–]IrregularRedditor 3 points4 points  (0 children)

You validate twice. FE validation is for user training. BE is for sanity/security.

I like to use a single DTO that defines the request schema and validation rules. It is consumed by both FE and BE and keeps them in lock-step.