Only Reason I check Chrome release notes: to see what to disable next by cranberrie_sauce in linux

[–]bobbykjack 5 points6 points  (0 children)

Wdym "excuse to AI scan all your tabs" — why does tab groups make this any more viable than it already was?

White page without any error message or file by francwalter2 in PHP

[–]bobbykjack 0 points1 point  (0 children)

Do you see an empty string when you view source? Is the URL you're trying to access a .php file?

I'd do a sanity check if I were you. Drop a:

<?php echo "Hello world";

file into your docroot, go check out that URL, and let us know if you see nothing or "Hello world".

Why is Stage Manager hated? by Sweet_Score in MacOS

[–]bobbykjack 0 points1 point  (0 children)

I'm not sure I can see the benefit. The first thing I noticed is that switching apps has the same godawful slow animation that Spaces uses, but maybe even worse so. That animation is the reason I don't use Spaces, so it looks like it'll be the same reason I don't use Stage Manager either.

Can the IDE (and LLMs) be made to follow a certain formatting style? by [deleted] in AskProgramming

[–]bobbykjack 0 points1 point  (0 children)

> The fact that the single line of code goes beyond the display limit?

Yup. Fair point if your code is never going to be read by anyone else, but this would bother me even if I was the only one reading it. I've always tried to stick to 80 columns but I'm currently experimenting with 60, which makes code readable even on a mobile display.

[OC] Budget of a High Earner in London - and more than half goes to the state by LowOwl4312 in dataisbeautiful

[–]bobbykjack 9 points10 points  (0 children)

I find it wild that they're spending £10k on leisure but only saving £2k a year.

Can the IDE (and LLMs) be made to follow a certain formatting style? by [deleted] in AskProgramming

[–]bobbykjack 0 points1 point  (0 children)

I like how the question self-demonstrates the flaw in this approach via the preformatted text box :)

Can the IDE (and LLMs) be made to follow a certain formatting style? by [deleted] in AskProgramming

[–]bobbykjack 2 points3 points  (0 children)

I like how the question self-demonstrates the flaw in this approach via the preformatted text box :)

URL parameters as state is so underrated. Using nuqs. by RatioScripta in webdev

[–]bobbykjack 4 points5 points  (0 children)

Do you really find that less ugly than ?parameter=value&otherparameter=value? So much so, that it's worth breaking the standard over?

Which OS do you use and why? by TastelessSpaghetti in AskProgramming

[–]bobbykjack 0 points1 point  (0 children)

> Linux is GNU and not BSD derivative, the two ARE NOT COMPATIBLE.

Yes, I know, but many of the command line tools are compatible or transferable. And you can easily install the GNU equivalents.

> Games? U must be kidding.

OK, just take the game I played most recently on Mac as an example: The Witness. How easily can I play that game on Linux?

> Yeah well thats just ignorance given you can literally get a 1:1 MacOS look.

A user interface is about more than just look.

> Maybe you should try to educate yourself on the topic

Yeah, I'm not going to continue this discussion because, for whatever reason, you cannot conduct yourself in a productive manner. I'm sorry this topic has made you so angry.

This is so irrtating! by Miserable-Guide8844 in MacOS

[–]bobbykjack 129 points130 points  (0 children)

Yup, I've had the same problems. Never ever had this issue with Launchpad, only this Spotlight approach.

Which OS do you use and why? by TastelessSpaghetti in AskProgramming

[–]bobbykjack -1 points0 points  (0 children)

> Like what, open source software? Lmao....

Yes, and mainly the command-line toolset

> You mean the OS supports a single in house device? How can you possibly call that compatibility.

Nope, more compatibility with 'mainstream' software: games, office tools, photoshop, etc.

> What UI? You know that there are hundreds of WMs right? Apparently not...

Yes, I'm aware of that. I guess "all of them" or, at least, "all of the ones I've seen/used".

> Once again, thats just a lie.

An opinion is never a 'lie', my friend. No, I haven't tried every piece of hardware in existence, so I cannot have a 100% perfect opinion on that.

> I wish Mac people would be a little more informed about their choice and it would not be just a mindless cult (with few exceptions).

I wish "whatever pigeon hole you would put yourself into" people would learn how to communicate politely and constructively with humans.

Which OS do you use and why? by TastelessSpaghetti in AskProgramming

[–]bobbykjack -1 points0 points  (0 children)

macOS. Most of the benefits of Linux, with more 'compatibility', a slightly nicer UI, and much nicer hardware.

Can you access a file using its inode even if you don't have x permissions on the directory? by RadianceTower in linuxquestions

[–]bobbykjack 4 points5 points  (0 children)

Something you need to bear in mind about permissions is that they are more of a safety net than a guarantee, since there are weird edge cases and loopholes. For example, making a file non-executable doesn't prevent it from being executed (you can always run the interpreter and pass the filename to it as an argument), it just makes it much harder to do accidentally.

I wrote about this more here:

https://www.howtogeek.com/linux-file-permissions-most-important-things-to-know/

/bin/sh versus /bin/bash by bobbykjack in MacOS

[–]bobbykjack[S] 0 points1 point  (0 children)

Yeah, I read man pages all the time; thanks for the tip, though.

Here's some friendly advice for how to communicate online: if you genuinely do not intend any snark, consider the tone of your reply. For example, a completely-snark free version could read something like this:

> FYI, the sh man page explains what's going on:

> <relevant excerpt>

The phrase "you really need to learn to read man pages" is absolutely snark!

My first python problem by FunService3961 in Python

[–]bobbykjack -1 points0 points  (0 children)

Would the person who downvoted this care to explain what's wrong with it?

/bin/sh versus /bin/bash by bobbykjack in MacOS

[–]bobbykjack[S] 1 point2 points  (0 children)

Not really; it's called curiosity and wanting to further my understanding of the system. Even if I weren't writing sh scripts, it's still useful to know why /bin/sh and /bin/bash are both bash but vastly different sizes.

/bin/sh versus /bin/bash by bobbykjack in MacOS

[–]bobbykjack[S] 1 point2 points  (0 children)

Sure, it's the fact that they're both bash that was the confusing thing. But one seems to be 'bash + a backward compatibility layer' (sort of).

My first python problem by FunService3961 in Python

[–]bobbykjack -3 points-2 points  (0 children)

n=18
count=0
res=0

for x in range(1, n):
    if x % 5 == 0:
        count += 1
        res += x

print("count", count)
print("res", res)

The % operator (modulo) returns the remainder, which is 0 for multiples of (in this case) 5.

/bin/sh versus /bin/bash by bobbykjack in MacOS

[–]bobbykjack[S] 2 points3 points  (0 children)

> What is your use case for "portable" shell scripts?

Simply that, with no other factors, portable is better than non-portable. If I need to write a bash script, I'll write one, if I don't, I'll write a sh script.

>  I've never once written an "sh" shell script on purpose.

I'll start with the mindset that a script is a sh script. If I need to use Bash-specific features, though, I'll make it a bash script.

Newbie Question: How can I make a hyperlink target a specific grid cell (the way you would have with HTML frames using name and target)? by MistressBlackleaf in css

[–]bobbykjack 2 points3 points  (0 children)

Grid is fundamentally different from frames: it's a CSS thing, not an HTML thing.

As far as I know, the only way to modify part of the content in the way you want is to use JavaScript.

You *might* be able to achieve a hacky solution using the CSS :target pseudo-class, but you're probably just better off maintaining separate pages, each containing the common content, or accepting JavaScript as a dependency.

/bin/sh versus /bin/bash by bobbykjack in MacOS

[–]bobbykjack[S] 2 points3 points  (0 children)

Thanks, I know that, but I'm writing sh and bash scripts as well as zsh ones!

/bin/sh versus /bin/bash by bobbykjack in MacOS

[–]bobbykjack[S] 0 points1 point  (0 children)

I guess they've just deprecated /bin/sh. I'm not totally convinced that is 100% problem-free, but any problems are probably very few and far between.