News for hackers. Stuff that matters.

cyberdelica

Re:Getting Started with NMAP on Monday December 19, 2022 @06:23PM (#34059299)
> Stuff like this is why I can't take people who argue against systemd because of the Unix philosophy seriously.

Nmap doesn’t adhere to the Unix Philosophy, and is bloated as fuck.

Not sure why you wanted to insert your political rhetoric - but consider it a fail?!...

When I was a child, I read a good book, called “(An Usborne Introduction) Electronics”. Might be worth having a read.
Just logged in, to add another recommendation for this book.

There are errors, but they’re not that hard to spot, if one’s paying attention, when reading.

Definitely read this, before the Art Of Electronics, if you’re just starting out!

> See, the remain side is interested. That's why they ask: "can you give examples of ridiculous laws". And the leave side... cites laws that cut the use of hazardous materials in electronics. Perhaps you want to return to asbestos, too?

Nice try - but I gave three examples of ridiculous regulations/legislation/law - not one.

Your cherry picking, and attempted distortion of my example(s), only demonstrates my previous statement.

The quantities of lead, in solder, is not hazardous to workers assembling boards. With the current state of electronics recycling, there is no danger of the “lead” being leeched into the ecosystem.

The higher temperatures required to solder, non leaded varieties, are also antithetical to the so called “energy conservation” rhetoric, favoured by the EU borg.

You provide no response to the ridiculous vacuum cleaner wattage limitations? Lower wattage cleaners, with less “suck”, take longer to clean the same surface area. Not only a waste of human effort, but electricity, too.

Also, no response(s) to my EU/IFRA perfumery example?!

These were just examples that came to mind, immediately. I’m sure if I could be arsed, I could completely eviscerate the comments from you, and others here - but I already know, that you’re not interested, and it’ll simply result in more “drive by quips”, and probably admin warnings, from your ilk.

That’s how Hacker News works. Flagging, downvotes, drive by ad hominem attacks, from pseudo intellectuals...

Where’s that picture of a teste in an egg cup, when you need it?!

There are many good reasons for leaving the EU. The fact is, the remain side are not remotely interested in knowing the whys, and wherefores, of the leave side. It’s plainly evident, from the disingenuous line(s) of “questioning”.
> Can you give an example of a ridiculous law?

You only asked for one, but there’s multitudes, for those who seek in good faith!

ROHS restrictions on leaded solder; vacuum cleaner wattage limitations; and EU/IFRA restrictions on perfumery ingredients (oakmoss, et al.), resulting in perfumiers declaring the art of perfumery “dead”, in the EU - are just a few that spring to mind, immediately.

Re:Argbash: Bash argument parsing code generator on Wednesday March 23, 2022 @01:58PM (#30781336)
> Thank you, I was trying not to feed the trolls. ;-)

Who’s the troll? Your comment is probably out of line with site guidelines mate. Please report yourself to the admins, for attitude realignment.

Re:Argbash: Bash argument parsing code generator on Wednesday March 23, 2022 @01:56PM (#30781308)
> Definitely not confusing!

Heh, well... I never said it wasn’t confusing. I agree with you on the above.

If the Unix Philosophy was being properly followed, with your ls example, as a case in point, I would use:

    ls | tac | column
Now, that’s not even considering the ridiculousness of the naming of the “tac” command, which would ideally be renamed “rev” - with rev ideally being expanded, to to ALL reversals, not just character based, per line.

The sort of nonsense above, is why I started writing my own core utils and OS from scratch - which I suppose is a sort of suckless meme, by now.

POSIX, is both a blessing, and a curse.

Re:Argbash: Bash argument parsing code generator on Tuesday March 22, 2022 @03:37PM (#30770477)
Sorry, I completely disagree with practically everything you wrote above.

There’s nothing complicated, oblique, or arcane, about short options - if one is versed in Unix.

Usually, the sentiment you’ve expressed, comes from the mouthes of developers, more comfortable with Windows, and/or Python - regurgitating cargo cult lore, parrot fashion - sometimes followed with another regurgitated quip, about moving to a “proper” language, if said script, exceeds n lines. A similar phenomenon, can be seen with the Zawinski quote, regarding regex - usually parroted by people who have not learnt regex.

If one wants to leave supplementary information, regarding the invocation of anything within a shell script, there is already the facility to do such - comments - which take the same form, as comments within the Python language.

Your assertion that Bash is a dead language, is absurd. Particularly when juxtaposed with your assertion concerning Z Shell, immediately thereafter - which is practically identical to Bash, in syntax, aside from a few differences.

Command options, short or long, are not even shell specific. They’re a Unix convention. Why should the writer of a shell script, be at all concerned, with anyone who hasn’t grasped the fundamental basics of working with the platform, for which the script is intended to operate?!

Personally, I’m of the opinion that long options, are GNU bloat.

As for the linked Github repo - getopts - it’s builtin.

Re:Building a personal website in 2021 on Sunday May 16, 2021 @08:17PM (#27178636)
You need to shovel in "unit testing" somehow.
Re:Building a personal website in 2021 on Sunday May 16, 2021 @08:11PM (#27178585)
> The following does definitely look very good to me [...]

Here's another vote for looking totally borked. I don't know if it's because I've disabled javascript, or something else - but, no.

Re:Systemd: The Good Parts on Sunday May 16, 2021 @05:49PM (#27177329)
> No, you just categorically don't understand.

Of course I understand, as do the rest of the people not employed by red hat upvoting me.

Time and time again, I've seen systemd advocates making slippery, disingenuous, and outright false arguments. When they're called out on it, the goalposts magically move, a rotation of usernames appear to downvote and brigade which can be ascertained through downvote timing correlation. When they can't win an argument through facts, then they make bogus arguments that one doesn't get it, or some such nonsense - or claim they're a red hat conspiracy monger.

Seeing it over and and over again is lame, and played out.

Now, why don't you answer the question - if udev was subsumed by "libsystemd" as is claimed due to "code duplication" - then why did they not just include "libudev" as a dependency for "libsystemd"?

Of course, the question will never be answered, as it'll reveal the truth.

Re:Systemd: The Good Parts on Sunday May 16, 2021 @05:11PM (#27177042)
> Because that would not reduce code duplication.

I don't want to call you out for making a disingenuous argument, but it was either subsumed by systemd for code duplication reasons, or it wasn't?!

Duplicate code, could be refactored out to a shared library, that could then be incorporated in both udev, and systemd. That would mean, anyone looking to incorporate udev into a system, could do so without depending on libsystemd.

Instead, it would seem udev code, has been subsumed by libsystemd (in your own words) - which would appear to the sceptical eye, as a power play on the part of red hat - to force other distributions into using libsystemd, which would logically end with them also using systemd itself.

> I don't know if you have ever worked on any of the low-level Linux libraries written in C [...]

Yes, I have.

Re:Systemd: The Good Parts on Sunday May 16, 2021 @04:43PM (#27176861)
Why not just include libudev, in systemd instead?
Re:Systemd: The Good Parts on Sunday May 16, 2021 @04:37PM (#27176818)
> Not sure why you're saying that -- moving it to a library is basically what happened. The libudev code got moved to libsystemd, and now libudev is a wrapper around that.

Oh, so now one has to include "libsystemd" if one wants to use "udev" - is that what you're writing? Hence the original comment:

> By devouring the udev project, the systemd maintainers have guaranteed that dealing with USB devices on non-systemd systems was going to be a giant pain.

Re:Systemd: The Good Parts on Sunday May 16, 2021 @04:21PM (#27176691)
That's what code libraries were intended for.
Re:Pinebook Pro Review on Sunday May 16, 2021 @02:53PM (#27176032)
> edit: or is credit card at odds with your wish not to be tracked, too?

I think it's plainly evident from my prevous comment what I consider to be tracking - providing paypal with government identity documents, for it to do what it wishes with. I don't think the snarky shitcoin comment is necessary, but rather shitcoins than paypal, yes.

Do you think potential Pinebook Pro customers should have to spend an accumulated four hours of their time, telephoning some call centre in the Phillipines, just to buy a laptop?

Re:Pinebook Pro Review on Sunday May 16, 2021 @02:48PM (#27176002)
No, credit card is fine. I did raise an issue via Twitter, at the launch of the Pinebook Pro, but no response.
Re:Ask HN: What IRC client do you use? on Sunday May 16, 2021 @02:46PM (#27175989)
I go through several "suckless" type IRC clients - currently my own patched version of: https://c9x.me/irc/ - which is nice and simple.
Re:Forth: Stack-Manipulation Operators on Sunday May 16, 2021 @12:53PM (#27174991)
You're right. The linked page, is just Chapter 2 of Starting Forth.
Re:Pinebook Pro Review on Sunday May 16, 2021 @12:24PM (#27174731)
I was unable to buy one, due to the organisations insistence on using paypal as a payment processor - and having been "banned" from using paypal, for refusing to send "identity documents".

Unless that situation has changed, it seems at odds with the open source, do not track me, ethos.

Re:FlatCAM: Free and Open-Source PCB Cam on Wednesday May 12, 2021 @07:42AM (#27129152)
> [...] unless you still do everything with through-hole components, you have to plate the holes which takes you several days of futzing with nasty chemicals anyway.

There are copper press rivets you can buy at most PCB supply houses. No need for plating, although you do need the die set and press (although a drill press can be used). Furthermore, one can just do it the old fashioned way, with a soldered wire through connection. That's how I've done it for years.

It goes to show, how few people are able to think for themselves.

The question originally asked, is "how to match HTML tags". Not how to parse. Not how to scrape. Simply "match". To which I would say, regex is perfectly suited to the task.

Furthermore - if one simply needs to scrape content, regex is again, perfectly suited. Scraping, is not parsing - and has no real need for a full blown DOM parsing library.

Cargo cult parrots like to say - if the HTML content changes, then one's regex will fail. Well, so will one's DOM parser.

> Your recollection seems at odds with reality.

Their recollection matches my recollection of events.

> There has been a Senate inquiry with conclusions at odd with your recollections.

The results of that inquiry weren't released until 2020.

> The Mueller report came to conclusions at odd with your recollections.

That report wasn't released until 2019.

That means there were at least three years of unverified allegations, swarming around - espcially prevalent on social media - sans ban hammers, censorship, etc., etc.

Re:Facebook Incubated the Insurrection on Thursday January 14, 2021 @07:47PM (#25785393)
> I life in a first world country. With reasonable people, and proper gun control laws.

So do I (although I might disagree to some extent on the reasonable people), yet I've experienced multiple direct threats against my life. This is in England, where it's supposed to be all tea and biscuits.

I once looked into purchasing pure ethanol, for the production of a topical liniment for martial artists. The duty to be paid per litre is eye wateringly high, to the point that it constitutes almost the vast majority of the cost. I came away wondering how manufacturers make any money. I guess, by volume.
This will only create a black market of booze. Brewing, and distilling alcohol, is a fairly easy endeavour. Policies like you've suggested, are why illicit moonshine and poitin exist.
Re:Signal AppImage for Linux on Thursday January 14, 2021 @04:58PM (#25783248)
I'm not interested in donations, but I might have a go at this in a few months, if I get the time - as I'm a regular user of Signal, but I refuse to use Electron apps. Can't promise anything though.
Yes, I also agree, and would argue that it applies more to "the cloud" groupthink, than it does to the election riot, or Parler. After all, the Trump/Parler supporters, can hardly be claimed as self selecting balkanisation, when they've been made into pariahs, and deplatformed every which way from Sunday.

The "cloud" has always had a funny smell to me, even when it first started to become popular. All tech companies should attempt to be in charge of their own destiny, by creating their own infrastructure, where at all possible.

We've no idea what he was suggesting, as he hasn't bothered responding. Instead, a rotating succession of accounts, trying to insinuate/project my intentions.

The idea that there are impartial or neutral news sources in 2021, is a bit of a laugh, to be honest. The best thing one could do, is read both sides of an argument, and come to one's own conclusions - based on the balance of probabilities.

Older »