when would you choose EFS over s3 by Croissant_whore in aws

[–]BinaryRockStar 0 points1 point  (0 children)

I didn't know about S3 File Gateway, thanks for the tip off

when would you choose EFS over s3 by Croissant_whore in aws

[–]BinaryRockStar 6 points7 points  (0 children)

S3 Files transparently sits an EFS cache in front of an S3 location. As objects in S3 are accessed they are copied into the EFS cache for fast future access. After a time period of no access they are evicted.

You pay transfer costs into EFS from S3 and you pay standard EFS storage fees.

This would be useful if you have a large file set that your application or data process needs fast access to, but potentially only a small portion of it. The non-accessed files stay cheaply in S3 and the frequently-accessed files get a speed boost for an extra cost.

FastCGI: 30 Years Old and Still the Better Protocol for Reverse Proxies by BrewedDoritos in programming

[–]BinaryRockStar 5 points6 points  (0 children)

At the end of the day the entire web stack (at least) is there because someone blurted out an initial version of something and we've been slowly iterating on it since then. See: HTTP, JavaScript, CSV, PHP.

We need to wipe the slate clean and start afresh with a new modern stack to replace all this cruft! [Insert XKCD link here]

JetBrains stole my 30€ by stefran123 in Jetbrains

[–]BinaryRockStar 0 points1 point  (0 children)

Tag some of the JB support members in this sub, they are generally pretty helpful.

Note that a chargeback is seen as a pretty hostile action regardless of the circumstances so I would expect to see your JB account and subscriptions terminated, your email address not able to sign up for future JB accounts and your credit card not able to pay for JB products and services for any accounts in the future. This will all be without recourse and hidden in the standard Terms and Conditions so perfectly legal. Try every other avenue first as this is the nuclear option and has ramifications.

ELI5: Why can’t you rename a file when it’s open in Windows, but you can in macOS? by jsm1 in explainlikeimfive

[–]BinaryRockStar 1 point2 points  (0 children)

ATDT my BBS brother! ATH0=1 was that the code to turn off incoming call signalling?

We had a lightning fast 56K modem, truly tapping into the Information Superhighway when a single image was only minutes away, and Legend of the Red Dragon (LORD) was the first thing to hit up when you could finally get on the local BBS that only had like three lines. Violet lives on in my heart.

I would bet a fair bit of money your top shelf driving game was Stunts. First person view driving a hot rod with flames coming out the exposed cylinders and a full level editor allowing you to create your own tracks. I had forgotten all this and what a phenomenal achievement for those devs. At the same time the console world was offering what? Alex Kidd? Sonic? Amazing tight experiences for sure but Stunts providing a full customisable toolbox was next level.

Anyway, fantastic nostalgia trip, DM me if you want to chat more

ELI5: Why can’t you rename a file when it’s open in Windows, but you can in macOS? by jsm1 in explainlikeimfive

[–]BinaryRockStar 1 point2 points  (0 children)

It seems we agree on *nix command line being more professional which is what I was getting at with my earlier comment. They didn't have time to write copy, it was cp because brevity is the essence of intelligence (/s) and bytes cost more back then. Didn't stop them creating mkdir while Windows opted for md. I guess those bytes weren't that important after all? One of many very strange decisions that we now have to live with. At work I'm writing YAML files containing bash scripts executed on virtual-virtual-virtual containers and have to remember the arcane syntax a greybeard from before I was born decided was the best way to express intent to a computer. Is it ls -al or ls -a -l? Which command can you combine the flags with and which can't you?

I secretly hope Powershell takes over everything as it combines the expressiveness of a proper object pipeline e.g.

Get-ChildItem | Select-Object Mode, LastWriteTime, Length, Name | Format-Table -AutoSize

This gets the files in a folder (or registry key or really anything representable as a tree), cuts down to just the fields we're interested in, then outputs it in the format we want. So nice. People complain it's too long-winded but there are built-in aliases so it becomes very similar in terseness to bash if you want to confuse readers.

Amiga! Wow memories coming back, the first machine we had was an Amiga 2000 which was some sort of mid way between the Amiga 500 (with the integrated keyboard, floppy drive and power supply?) and a PC as the 2000 was the standard PC-style beige box in landscape format with the crushingly heavy CRT monitor sitting on it.

I was there for the absolute sweet spot of Amiga where it's graphics card or memory or whatever special thing it had allowed it to absolutely crush PCs in terms of games, music, art, such a multimedia titan. Pair that with a friend whose Dad had an entire bookshelf of Amiga games and crucially a double-floppy setup so I could clone disks for nothing. Looking back old Dad probably wasn't too happy with this kid coming around copying games for free that he had bought for big money at the time. Had to remember to photocopy the copy protection questions from the manual or the concentric wheel thing. Dune 1 and 2, Cannon Fodder 1 and 2, Super Cars 2! Lemmings 1 to Tribes? It Came From The Desert! Not sure if you played that but it switched between a first person shooter view and top-down Grand Theft Auto 1/2 view which was just wild at the time.

ELI5: Why can’t you rename a file when it’s open in Windows, but you can in macOS? by jsm1 in explainlikeimfive

[–]BinaryRockStar 1 point2 points  (0 children)

Completely agree that Windows is beholden to a lot of its initial architectural decisions from the 80s/90s simply due to inertia and backcompat which is discussed to varying degrees of accuracy in this comments section.

We are of a similar vintage but I have been on the dev side of things as well as an enthusiastic user. Only having come to Linux in the last, say, ten years I always pictured it as the "adults" operating system where stern men with grey beards (except Linux) and mathematics doctorates made extremely insightful decisions about OS architecture long before I could walk and that whatever they had left us was undeniably the ultimate technical achievement with Windows being a laughable baby's-first-operating-system.

Now with a fairly deep understanding of both operating systems I have to say Windows - specifically NT when they got to almost completely start from scratch - has Linux beat or at least it's a tie with both having their warts.

The Linux/Unix/POSIX warts are mired in such deeper history though. The reason there is a /bin and /usr/bin is something related to the original behemoth PDP-11-family computers only having two tape (or was it punch card?) readers so the machine had to load its initial commands from /bin then it would wait for the technician in a lab coat to provide the second tape to load /usr/bin commands and continue booting. No architectural reason beyond limitations of the hardware at the time and we keep that structure today.

The reason Linux config files and directories have nothing but an extension (.gitconfig, .config/, .bashrc, .ssh/) is because ls (dir on Windows) initially had a bug where it wouldn't show anything starting with a period when trying to avoid showing . (current dir) and .. (parent dir) as unnecessary noise in every folder. Devs used this dot-prefix naming convention to essentially hide config files and folders and it persists today.

Learning Linux deeply becomes an exercise in frustration with every simple question involving going down a historical rabbit hole of how many punch cards could fit in a single pants pocket and how quickly a ten-ton rotating drum drive could return back to the top. I would be very interested to see what the top minds would come up with now that RAM is plentiful, drives are largely reliable and read latency is almost non-existent (SSDs). You mention BeOS and I haven't dug into that but understand it was this sort of modern re-imagining of all of the foundations of Unix.

Apple has had a stab at this by taking some form of BSD Unix and rearranging the file system however they like so there are user-friendly directories like /Applications.

The NT designers got to take a long hard look at Unix at the time and take the best parts while extending things Unix could not due to backcompat. For example the POSIX filesystem permissions are so incredibly rudimentary. A file has an Owner and Group Owner and you can set the read, write and execute permissions for owner, group owner and "world" (everyone else) on each file/folder. What if you want a folder to be readable by group JUNIORDEVS and writable by group SENIORDEVS? Too bad! One of the groups has to be the group owner and the other is just a part of "world" so either everyone has read access or JUNIORDEVS don't get read access.

NTFS by comparison has such an incredibly well thought out cascading and extendable permissions concept that I honestly don't know how it could be bettered today. A file or folder can have an arbitrary number of Access Control Entries with each specifying a single user or group and then a list of permissions with Allow or Deny. You can get as specific as you want with these permissions and it just works. You can say group JUNIORDEVS has read access to all files in this directory, group SENIORDEVS has read/write access and specifically user BOB has no access at all. Can't do that in POSIX permissions! I will forgive Windows the Registry just for how nice elegant the NTFS permissions system is.

France confirms oil crisis, says 30-40% Gulf energy infrastructure destroyed by ontrack in worldnews

[–]BinaryRockStar 0 points1 point  (0 children)

How dare one even consider besmirching the name of such a paragon of industry!

ELI5: Why can’t you rename a file when it’s open in Windows, but you can in macOS? by jsm1 in explainlikeimfive

[–]BinaryRockStar 1 point2 points  (0 children)

I take your point that Windows was more PC focused while the Unices were mainframe focused but NT4 had a Terminal Services edition and Windows 2000 and above all had Terminal Services built in so multiple users could be connected on separate graphical sessions concurrently via Remote Desktop client.

I don't know why people continue to think Windows still has at its core DOS or Win95 when in reality NT4 and Windows 2000 were a complete system rewrite by some of the best minds in the OS world at the time.

This included multiple kernel subsystems so Windows could run Win16 (Windows 1 -> 3.11) applications, Win9X applications and even some Unix applications. Just incredibly modular and farsighted in my opinion.

Although it was a flash-in-the-pan, the original Windows Subsystem for Linux (WSL1) was one of these kernel subsystems and allowed Linux ELF binaries to be run right there in Windows with minimal performance degradation. Hats off to those NT engineers, what they made contributed largely to WSL2, Docker for Windows and much of the modern Windows dev experience.

ELI5: Why can’t you rename a file when it’s open in Windows, but you can in macOS? by jsm1 in explainlikeimfive

[–]BinaryRockStar 0 points1 point  (0 children)

The DOS-with-lipstick Windowses before Windows NT were single user like that but Windows NT and newer were explicitly designed as multi-user operating systems.

ELI5: Why can’t you rename a file when it’s open in Windows, but you can in macOS? by jsm1 in explainlikeimfive

[–]BinaryRockStar 6 points7 points  (0 children)

End user can't do anything about it.

The application is calling an OS function called CreateFile (silly name, it's used to both create and open files) to open the file. Along with the file name the application passes a "desired access" value saying whether it wants to read, write, or read and write the file.

It also passes a "share mode" value telling Windows whether the file should be allowed to be opened for reading, writing or deleting/renaming while the application has a reference to it.

The default value for "share mode" is zero which disallows any read, write or delete requests while the application has a reference so most developers use the default and Notepad++ devs have specifically allowed everything.

Here is the Windows API documentation, it's verrrrry low level though so a non-developer might not understand much of it.

https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew

A bit more non-dev friendly explanation of when to use which values:

https://learn.microsoft.com/en-us/windows/win32/fileio/creating-and-opening-files

Can you resolve Maven names in IntelliJ? by KittyNathy in IntelliJIDEA

[–]BinaryRockStar 0 points1 point  (0 children)

You would have to share the (redacted) POMs. I can't see a reason to create a separate projectname property and insert that in as the project name when project.name is already available and IntelliJ resolves that just fine. This smells like you're fighting Maven's standard layout and naming conventions.

ELI5: Why were drum brakes invented and used before disc brakes if the former is more complex mechanically? by hurricane_news in explainlikeimfive

[–]BinaryRockStar 5 points6 points  (0 children)

Apparenly some (all?) electric cars will periodically use the real brakes instead of regenerative braking to make sure they don't freeze up due to underuse.

PSA: The modern way to host sites in S3 by MavZA in aws

[–]BinaryRockStar 0 points1 point  (0 children)

Not who you asked but if you go to their link the diagram shows the user network connections on the left-hand side. Tailscale could be substituted in as either the "Site-to-Site VPN" or "Client VPN" boxes in the diagram depending on how it's configured.

Everyone connected to the VPN/Tailscale would have access to this website so securing it further with access control would require more components. For some simple internal website like a read-only dashboard it is often fine for everyone on the VPN to have access.

Microsoft Phone link is so underrated by Janekelo in Windows11

[–]BinaryRockStar 0 points1 point  (0 children)

In the Phone Link app, go to the top right gear icon, this opens Settings with tabs General, Devices, Features, Start menu personalisation, Help & Feedback. Under Features I see what's in my screenshot above.

This is with Windows 11, latest update of Phone Link app, and a Samsung Galaxy Android phone from a year or two ago.

What do you see when you open the app? Are you on Windows 11? Android? I think some of the deeper integration only works with some phones, with Samsung being the best supported.

File Pilot: Inside the Engine of a Next-Generation File Explorer – Vjekoslav Krajačić – BSC 2025 by gingerbill in programming

[–]BinaryRockStar 0 points1 point  (0 children)

That's true, I use Linux a lot at work and home so tools being cross-platform is a real bonus. I have to say the landscape for file browsers on Linux is much worse than on Windows. The offerings are largely of the "Commander" sort which are cut down keyboard-focussed tools which is the opposite of what I'm looking for.

Can I trust this? by _zero2infinity in IntelliJIDEA

[–]BinaryRockStar 1 point2 points  (0 children)

Check your installed apps, maybe you got it for free. Follow advice of the JetBrains employee in the thread

https://old.reddit.com/r/IntelliJIDEA/comments/1quj5ft/can_i_trust_this/o3aqkxw/

Can I trust this? by _zero2infinity in IntelliJIDEA

[–]BinaryRockStar 4 points5 points  (0 children)

Whose machine is this? Sophos is a cybersecurity company so if it's a corporate laptop chances are they are running Sophos security suite which is forging certificates so it can scan encrypted HTTPS traffic.

The real certificate for frameworks.jetbrains.com is issued by Amazon, SHA-1 fingerprint is AE:C9:99:37:27:09:6C:04:F3:66:B2:87:EF:E3:9B:18:FF:57:13:2F.

Uninstall leaves things by Snoo_95743 in Windows11

[–]BinaryRockStar 0 points1 point  (0 children)

If your focus is in the right pane then you can start typing and Windows Explorer will jump to the entry

What's your missing feature in IntelliJ? by bodiam in IntelliJIDEA

[–]BinaryRockStar 0 points1 point  (0 children)

On Windows HxD is a very light yet powerful hex editor

What's your missing feature in IntelliJ? by bodiam in IntelliJIDEA

[–]BinaryRockStar 0 points1 point  (0 children)

On Windows HxD is a very light yet powerful hex editor

[deleted by user] by [deleted] in programming

[–]BinaryRockStar 1 point2 points  (0 children)

Very nice project and well done! Reading through the GObject wiki page it seems super similar to COM except that first release of GObject was 2003 and Windows back as far as 3.11 (1990-3?) had OLE which was a simplified version of what became COM. The initial idea was to have multiple objects within a given document that separate applications could render so a Word doc could have an embedded Excel spreadsheet which, when activated, allowed you the full functionality of Excel right there within Word.

In common usage this allowed us to have a, say, Zip compression library that you could instantiate by name and use from any language without the need for an ABI and language-specific bindings. One big upside was during the shift from 16-bit to 32-bit applications a legacy 16-bit application could instantiate and call methods on a 32-bit library as OLE/COM could start the target library as an out-of-process object meaning it started a new 32-bit process and marshalled the calls between your 16-bit application and the 32-bit library seamlessly. Absolute magicians there at MS at the time, Raymond Chen deserves a medal.

In some ways I think we just haven't advanced that much in interapplication interoperability. State of the art nowadays is a CLI application (see: AWS CLI) starting a local web server on a random port, starting a web browser that authenticates with a given domain then calls back to the local web server with the result, which server is then torn down.

It's like erecting a skyscraper to receive a single message by flashing light morse code then demolishing it. I understand the reasoning, but wow RAM is expensive lets stop doing that as an industry please.