* Posts by Gerhard Mack

453 posts • joined 4 Apr 2007

Page:

Compromise reached as Linux kernel community protests about treating compiler warnings as errors

Gerhard Mack

Re: To look at it another way

GCC won't know that. Copying a partial string is a common way people mess up and end up with a string minus the end of string NULL byte and end up with string parsing functions processing unintended parts of memory. That is why the warning.

Gerhard Mack

Re: To look at it another way

See now you've changed your error message. The previous message you added was almost exactly the one gcc gives when you cast between incompatible types.

At any rate, with that new message, I do hope you were manually adding the null at the end of the string after you copied it.

Gerhard Mack

Re: Not so simple

"So, I don't have -Werror, but I do have -Wall. And note that, annoyingly, -Wall with gcc does not enable *all* warnings. I haven't looked at them for a while, but mine are currently:"

I think the idea is that GCC doesn't break things with changes to the warnings. I have a script that gets the GCC version and enables all warnings for that version, passing that variable back to make.

I really wish GCC would have a -Warnings=GCC_version or something so I can just tell it to enable everything.

Gerhard Mack

Re: To look at it another way

I would be interested to see the code you used for your copy because usually that warning indicates you are casting something to an incompatible data type and GCC thinks information is being lost in the conversion. Nothing to do with how much of the string you care copying. You only think the warning is stupid because you misunderstand the nature of the warning.

Gerhard Mack

I don't blame him

Years ago I made this exact commit to one of my projects along with a set of annotations for all of the functions that used format strings. The other programmer threw a hissyfit and turned it all off again complaining about the fact that he didn't have time for all of that. A couple weeks later we try it on some nice new 64 bit servers and his code couldn't even last 30 seconds without a crash.

Years later, he quit/got fired (depending on which side you ask) and I got stuck maintaining his code. I ignored the large bug list while enabling a set of warnings/ fixing them, in a loop for a few weeks. When the code was retested, 95% of the bugs were gone. His logic was fine and he could have saved himself years of effort had he fixed the warnings in the first place.

Patch now? Why enterprise exploits are still partying like it's 1999

Gerhard Mack

Re: Big problem...

This is why IT needs to segregate devices they don't control from the rest of the network. Devices like that are why we have VLANs and firewalls.

Terraria dev cancels Stadia port after Google disabled his email account for three weeks

Gerhard Mack

Re: Stadia really seems to be in trouble

At least I got a free Chromecast out of it

Gerhard Mack

Re: Stadia really seems to be in trouble

The best part is that Google just had a massive campaign where they were sending people free Stadia hardware (chromecast + controller) So long as you opened a Stadia account.

Must 'completely free' mean 'hard to install'? Newbie gripe sparks some soul-searching among Debian community

Gerhard Mack

Re: I fail to see how systemd could be harder in your case

Here is a simple unit file I used to re enable rc.local on my PC.

The only other thing you could need is a "Requires=" under "[unit]" to load it after some needed dependency.

[Unit]

Description=/etc/rc.local

ConditionPathExists=/etc/rc.local

[Service]

Type=forking

ExecStart=/etc/rc.local

[Install]

WantedBy=multi-user.target

Gerhard Mack

Re: GNU's not Unix

Check out SMF on Solaris.

Gerhard Mack

Re: even then you could have disabled IPv6.

That's the odd thing for me, I have installed pretty much every version of Debian released in the past 18 years and I've never had it fail to ask me to setup a network interface with IPv4. Mind you, if you assign both IPv4 and IPV6 addresses it will prefer IPv6.

Gerhard Mack

Re: RE: doing things behind the curtain

I'm trying to remember the last time I've needed the command line to finish a Debian install. I can usually get networking with Wifi up and running without trouble.

Gerhard Mack

Re: "Hair Shirt"

That could only happen if something on your local network were handing out IPv6 address that don't route anywhere and even then you could have disabled IPv6.

Gerhard Mack

Re: GNU's not Unix

Didn't Solaris move to something similar to Systemd? I Seem to recall the Systemd folks using the Solaris boot system as a justification of their own at one point.

Gerhard Mack

Re: Systemd is not obscure or a blob

I fail to see how systemd could be harder in your case. The most familiar implementation would be to load a shell script from a minimal unit file that only specifies the dependencies and startup script. For me it has been the opposite, I have server and home network configs that I can get working more easily than before. Getting filesystems on FiberChannel or ISCSI is much easier now. Even in my home setup, I can have certain software not load until he CIFS mounts are in place with just a short unit file.

Six months after Oracle trumpeted Zoom as a cloud customer, AWS says it is Zoom’s ‘preferred’ cloud

Gerhard Mack

Re: Oracle cloud claims are questionable

We use it at work judging buy the regular "scheduled maintenance" messages, I'm not sure Oracle gets the whole "cloud" thing.

Linus Torvalds pines for header file fix but releases Linux 5.8 anyway

Gerhard Mack

What is wrong with Makefiles?

I don't understand what is so wrong with Makefiles? They are great when you want to build on a machine that isn't yours. For example, I code on my PC, but test on a sever (or other people compile onsite) Makefiles are great for dependency checking.

For example, My Makefiles let the user know each step of the process with short descriptive messages, combine the source from the src folder and the includes from that folder (and sub folders) it also only re compiles only the needed source files if I make a header change.

Admittedly there is some dark magic in the regex to make some of that happen but once written, it's done. I generally just reuse the Makefile with minor modifications on new projects.

Linus Torvalds banishes masters, slaves and blacklists from the Linux kernel, starting now

Gerhard Mack

Re: Lovely.

Denylist would be better

Linus Torvalds drops Intel and adopts 32-core AMD Ryzen Threadripper on personal PC

Gerhard Mack

Re: AMD Dreams

"The big gain in the move to x86_64 was the ability to directly address more than 4G of RAM."

A larger gain was in having more registers. A lot of time gets lost to swapping memory into registers and back again and X86_32 was notoriously short on registers.

Apple drops a bomb on long-life HTTPS certificates: Safari to snub new security certs valid for more than 13 months

Gerhard Mack

Re: I understand

You don't even need to flip it. Just provide public access to .well-known and restrict access for the actual website.

BSOD Burgerwatch latest: Do you want fries with that plaintext password?

Gerhard Mack

Re: Surprised they don't use *NIX

"I did ask about window managers, Gnome and the like rather than Linux itself. How do they take touch-screen inputs and translate them into HID inputs like key presses and mouse movements, click and drag etc.? Are they functional with touch out-of-the-box or does it require tweaks and configuration of the installation?"

Years ago I worked on POS systems and it was a huge pain. Every POS had to be calibrated and the Linux commands to get that working were annoying (it didn't help that the POS manufacturer couldn't even be bothered to orient the touchscreens the same way each time) so it was with much nervousness that I got a touchscreen laptop 2 years ago.

I hunted and hunted for documentation and couldn't find it, so I tried catting the input device and touched the screen to see what would happen. The mouse jumped to my finger position. It seems every Linux distro for the past few years just enables touch by default.

Gerhard Mack

Re: Surprised they don't use *NIX

"They are very insecure for the simple reason that nobody ever bothered securing them. Unless you consider a simple key lock on a street box that is accessible by anybody to be secure."

Indeed, and quite often all lights in a given region will have the same key. I had a friend in high school who found one of the keys in a "hidden" box and started handing out copies to all of his friends.

Whoa, whoa... Tesla slams brakes on allegations of 'unintended acceleration' bug: 'Completely false and was brought by a short-seller'

Gerhard Mack

Re: Sure, deny it and point to the evidence that supports your position...

"The thing is, Musk wails about "short sellers" all the frigging time. Anytime Tesla gets any kind of not-totally-rave press, it's malicious lies planted by short sellers. It's getting old."

To be fair, they tend not to let up for even a moment. Every possible bit of bad news and Tesla is doomed. Last year we had someone cry about a "demand cliff" in California, they turned out to be very wrong. Now this year the exact same person is claiming there is a demand cliff in California and he made sure he got quoted by all of the media. Never mind that Tesla is back ordered 5 weeks and prioritized deliveries to make sure customers in the Netherlands didn't lose out on rebates before they expired. Some of the other hit pieces from Dec/Jan: "excluding the Netherlands, Tesla sales are down."

So now we have a guy, who trolled the NHTSA database for things to complain about. Most of these were already investigated.. One of the highlighted complaints is something the car can't physically do for regulatory and safety reasons. Another case is where the data recovered from the car showed no break press and 45 degrees on the accelerator when the "unexpected acceleration" happened. And of course, he goes out and contacts the media and of course, he just happens to have a short position in Tesla. Why exactly should we take him at his word?

Somewhere short selling became a game to drive the stock down and it's not just Tesla that has suffered from this.

Gerhard Mack

Re: Sure, deny it and point to the evidence that supports your position...

The flaw in your reasoning, is that this petition was filed by Brian Sparks who has self identified as having a short position in Tesla. He claims to have heard about the problem but doesn't seem to own a Tesla himself. The petition covers 2013 - 2019 (6 years) and complains about 127 issues. That's 21 complaints a year, hardly a widespread problem even if all of the complaints turn out to be true.

To top it off, one of the complaints involves the Tesla not allowing the driver to override the steering wheel, which is something that the steering assist is designed to not be strong enough to do.

In my view, this short seller is being squeezed by the latest short burn and is trying to recover his losses.

It's a no to ZFS in the Linux kernel from me, says Torvalds, points finger of blame at Oracle licensing

Gerhard Mack

Re: To dual-license, wouldn't they need...

Unless Oracle was assigned the copyrights, that is correct. Relicencing is even less likely for Linux though, since there are far more contributors and some of them are no longer alive.

Y2K quick-fix crick? 1920s come roaring back after mystery blip at UK's vehicle licensing agency

Gerhard Mack

Re: 2038

"The simplest 'fix' for 32-bit is to treat the integer as unsigned (but possibly -1 as special error case)"

No! Negative values are for expressing dates before 1 January 1970. Your "fix" would break a lot of software.

A Notepad nightmare leaves sysadmin with something totally unprintable

Gerhard Mack
Coat

Re: Octal? You lucky bastard!

“Why do programmers always mix up Halloween and Christmas?”

“Because Oct 31 = Dec 25.”

Sorry, had to be done.

Huawei with you! FCC's American Pai proposes rip-and-replace of scary Chinese comms kit

Gerhard Mack

Re: Shop Local

The trouble is that the "compatible U.S. made components" are also made in China but have a much larger markup and cost 3x to 4x what the Chinese brands charge for a similar feature set.

Kiss my ASCII, Microsoft – we've got one million fewer daily active users than you, boasts Slack

Gerhard Mack

A quick viewing tells me that Teams is supported on Windows, Mac, IOS and Android.

Oracle demands $12K from network biz that doesn't use its software

Gerhard Mack

From my reading of the Oracle DB license: if you are virtualizing Oracle DB installs, Virtualbox is pretty much your only option if you want to have your Hyper-threads not count as full cores are far as licensing is concerned.

Mind you I went bare metal to avoid the trouble entirely.

Consumer campaign to keep receiving printed till receipts looks like a good move – on paper

Gerhard Mack

Re: Evil Thermal

"b) The thermal ones fade too quick."

Exactly this. I have thermal receipts I keep in my lockbox for warranty purposes that are unreadable after just a few months.

This major internet routing blunder took A WEEK to fix. Why so long? It was IPv6 – and no one really noticed

Gerhard Mack

Re: What transition?

"Well they **COULD** have dedicated one (1) IPv4 address for use as a flag that a 128 bit address will be found elsewhere in the header. That's probably not the best answer, but it's what pops immediately to mind. Truth is surely that the IPv6 designers thought (incorrectly) that they were dealing with a captive audience that had no choice but to follow the IPv6 game plan."

So adding a branch to the middle of packet hadling code forever. Congrats. Your plan slows down packet processing. A branch may not seem like much, but consider what happens with a device is used for routing and/or exists on a high speed interface. Those branches add up.

The IPv6 designers knew the transition was going to be painful and there was no other way around it (you can even read their logic if you bothered to look) so they went out of their way to make it only needed once. You could try looking it up yourself instead of assuming the worst possible motives for people you haven't met.

Gerhard Mack

Re: What transition?

"My suggestion. IPv6 people should recognize that they screwed up. Cancel the "transition" Come up with something serious and effective to tame IoT problem (which they didn't cause, but truly must not enable). Then design a new protocol compatible with both IPv4 and IPv6. And give a lot of thought to ease of implementation this time."

Please explain how to extend a fixed 32 bit header field without slowing down packet processing or introducing incompatibilities.

Bloody vultures! Cheeky Spanish paraglider firm pinched El Reg's mascot

Gerhard Mack

Cheap web designers

Years ago, the company I worked for at the time got a phone call: "look, we don't mind you ripping off our site design, but could you at least remove our name from the html comments?" Web dev thought no one would ever notice.

If servers go down but no one hears them, did they really fail? Think about it over lunch

Gerhard Mack

Re: "EU" plugs

Luxury! I stayed at a place in Spain 8 years ago that had a two prong euro style plug with two wires going to the exhaust fan kind of poked into the holes.

California's politicians rush to gut internet privacy law with pro-tech giant amendments

Gerhard Mack

Re: It's just more of the usual

Go one step further. Cap the maximum amount. Up here we banned Corporate and Union donations and put a cap on personal donations. The result is that the elections are annoying, but not anywhere near as bad as they used to be.

Bloke thrown in the cooler for eight years after 3D-printing gun to dodge weapon ban

Gerhard Mack

Re: But Background Checks Don't Work!

What crimes should she be charged with?

Oh Snapd! Gimme-root-now security bug lets miscreants sock it to your Ubuntu boxes

Gerhard Mack

Re: snapd and systemd

"I just had the displeasure of making a .service and .timer instead of a nice cron script to run a little python thingy, what a f_ckup the insidious systemd is."

What could you have possibly been doing where the cron script wasn't an option? I still create them all of the time regardless of whether the OS install has systemd or not.

Oregon can't stop people from calling themselves engineers, judge rules in Traffic-Light-Math-Gate

Gerhard Mack

Re: A lot of snobs in here today.

"Also, train drivers don't do the maintenance on the engines they drive (and probably never have done)."

When trains ran on steam, if they didn't run the boiler properly they could explode and kill people. The Engineer title is a throwback to the days when the day to day running of the train was a lot more complicated.

Error pop-up? Don't worry, let's just get this migration done... BTW it's my day off tomorrow

Gerhard Mack

Re: took the day off

The maintainers for the date function etc hacked in some weird Y2K compliance by allowing the 2 digit field to overflow to 3 digits. It makes for some amusing output, but it mostly worked.

Linux.org domain hacked, plastered with trolling, filth and anti-transgender vandalism

Gerhard Mack

The real lesson is never use NetSol

Seriously, WHY would anyone still have their stuff there? NetSol is notoriously easy to steal domains from and NetSol have argued in court that they have no responsibility for fixing the results of their own mistakes.

Sysadmin’s plan to manage system config changes backfires spectacularly

Gerhard Mack

Re: Automation does have its place

"I currently administer a small compute server used for teaching and research, and I have never been able to replicate these kinds of errors when using "adduser" to create new accounts."

Adduser is designed to be easy to use, on the other hand, useradd has a ton of fun ways to let you screw things up.

Deck the halls with ... oh, no. DXC tells staff they may not have a job in the New Year

Gerhard Mack

I just interviewed there

2 weeks after I interviewed, the first round of layoffs were announced. And now this is the second round of redundancies I've heard from them since then. I don't think I've ever been so happy to not get a call back after an interview.

Smartphone industry is in 'recession'! Could it be possible we have *gasp* reached 'peak tech'?

Gerhard Mack

Re: Market saturated, no new must-have function, and prices are crazy

"How do you continue to use the phone when the battery is gone? Hold the wireless charger to your head?"

In many cases, you have both wired and non wired options so if you still need to use your phone, you can plug it in. In my case however, it's not often I'm charging my phone when using it (once every other month maybe) and most of the wear happens when I plug my phone in at night and unplug in the morning and plug it in at work again and unplug before I go home so I can eliminate the vast majority of the wear and tear by switching to wireless charging.

Gerhard Mack

Re: Market saturated, no new must-have function, and prices are crazy

Don't knock wireless charging. The only reason I'm considering a new phone right now is that the USB port has worn out after several years of constant abuse. Even if I have to be careful about what chargers I get, at least I could have a charger at home and at work with the result being that my next phone lasts several years longer than my current one.

Pirate radio = drug dealing and municipal broadband is anti-competitive censorship

Gerhard Mack

Re: The true face of democracy....

Lobbyists as an idea are good. It can be helpful to be able to hire someone who knows exactly who to talk to to get things done or know how to advocate a position.

The problem in the US is that they are able to provide campaign contributions or arrange payments for giving speeches. Any civilized country would consider that illegal since it's outright bribery.

Gerhard Mack

"Yeah, that's a familiar idea, and I seem to recall it was killed in the USA by the oligopolies more than decade ago."

It was killed because it didn't work well for internet access. I ran into the same issue here in Canada where I got a job implementing ADSL2+ over rented copper. What ended up happening, was that the telco only had to rent us space in the CO and there were no (nor could there be) regulations allowing access to the "remote co" (FFTN). The result was that Bell Canda was more often than no, able to offer double what we could.

I'm 80% sure that's why the telcos up here don't want to offer FFTH, because then they would have to offer the fibre itself up for rental the way they do for copper and suddenly the other ISPs would be able to compete.

Shingled-minded Western Digital insists its latest hard drive sets disk capacity record

Gerhard Mack

"WHY the heck would I get this when Samsung and others are offering 60 Terabyte SSD Drives (YES! SIXTY TERABYTES!) on ultra fast way-beyond-spinning-disk transfer speeds."

For the same reason I prevented my previous employer from storing backups on their brand new FCAL SAN: Cost where it doesn't need to be spent ($30/TB CAD at the time vs $1000/TB) These things are cheap, and throwing a bunch of them in a NAS is still cheap and perfectly good for data that does not need to be accessed often.

Gerhard Mack

Re: Reliability

"'I'd hope that a 15TB archive drive would be at least as fast."

You haven't been paying attention then, SMR drives sacrifice write speed to gain the extra capacity.

Web browsers sharpen knives for TLS 1.0, 1.1, tell protocols to dig their own graves for 2019

Gerhard Mack

Re: Web browsers are not the problem

We kept a VM with an old version of Windows just for internal management stuff. I mean, even some of the most recent (and expensive) purchases (I mean YOU Broadcom) don't handle modern browsers very well. Some of our 2017 purchases still required a working Java plugin with no web start option.

Page:

SUBSCRIBE TO OUR WEEKLY TECH NEWSLETTER

Biting the hand that feeds IT © 1998–2021