Author Topic: The computing stuff rant thread  (Read 411426 times)

Gattopardo

  • Lord of the sith
  • Overseaing the building of the death star
Re: The computing stuff rant thread
« Reply #1425 on: 05 June, 2017, 06:38:46 pm »
After several times of being unplugged and or dropped and thrown.  Now it no longer works.  All that happens is the flashing amber light.

TheLurker

  • Goes well with magnolia.
Re: The computing stuff rant thread
« Reply #1426 on: 05 June, 2017, 06:51:34 pm »
After several times of being unplugged and or dropped and thrown.  Now it no longer works.  All that happens is the flashing amber light.
For most computer hardware I'd say that's probably for the best. :)
Τα πιο όμορφα ταξίδια γίνονται με τις δικές μας δυνάμεις - Φίλοι του Ποδήλατου

Chris S

Re: The computing stuff rant thread
« Reply #1427 on: 06 June, 2017, 04:33:43 pm »
Timezones.

Arrrrghhhhhh!!!  >:(

Kim

  • Timelord
    • Fediverse
Re: The computing stuff rant thread
« Reply #1428 on: 06 June, 2017, 05:06:35 pm »
Timezones.

Arrrrghhhhhh!!!  >:(

I feel your pain.  Anyone who hasn't can play along at home by watching this:

<a href="http://www.youtube.com/v/-5wpm-gesOY&rel=1" target="_blank">http://www.youtube.com/v/-5wpm-gesOY&rel=1</a>
https://youtu.be/-5wpm-gesOY

Cudzoziemiec

  • Ride adventurously and stop for a brew.
Re: The computing stuff rant thread
« Reply #1429 on: 06 June, 2017, 05:36:22 pm »
I didn't know about the West Bank. But all of it's known to someone and there must be some people who know it all. It kind of shows to my mind that time, or rather the numbering and labelling of time, is like language. There are multiple ways of identifying a particular time, but whatever you call it, it's the same time. Or rather, for some purposes it's the same time, for some it's not. Because of seasons and stuff.

Anyway, why would you want to know how many seconds ago a historical event happened?
Riding a concrete path through the nebulous and chaotic future.

Kim

  • Timelord
    • Fediverse
Re: The computing stuff rant thread
« Reply #1430 on: 06 June, 2017, 06:01:26 pm »
Anyway, why would you want to know how many seconds ago a historical event happened?

Starter for ten:  Sorting a list.

Cudzoziemiec

  • Ride adventurously and stop for a brew.
Re: The computing stuff rant thread
« Reply #1431 on: 06 June, 2017, 06:15:49 pm »
If the events in the list are affected by the adoption of the Gregorian calendar, as he mentioned, then it's rather unlikely they could be dated to the second.
Riding a concrete path through the nebulous and chaotic future.

Re: The computing stuff rant thread
« Reply #1432 on: 06 June, 2017, 06:19:37 pm »
Of course, all of that works perfectly if, and unfortunately, that is a big "if", everyone else sticks to the rules.

I had written some code to work out if text message A was sent before or after text message B. Now text messages are timestamped according to the local time, plus a marker to say how many quarter hours that time is before or after GMT. Even sticking to UK based idiots, when the clocks changed to summer time, some of the computers involved in timestamping the text messages had their clocks moved forward without being told that they were no longer on GMT. The result was that text messages sent though that box were timestamped effectively 1 hour in the future, so in order to send a text from another box that was seen as later, we had to wait an hour.

Of course it was a waste of time contacting the owners of said box. As far as they were concerned, texts were sent and that was all that mattered.

The coding was tedious as well. The offset from GMT could take a text over midnight, either way, and therefore over a month end either way, and a year end either way. The variable month length had to be allowed for. A lot of coding went into working all that out, even with leap years being ignored. It was all in assembly code on a PIC.
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

Chris S

Re: The computing stuff rant thread
« Reply #1433 on: 06 June, 2017, 06:22:05 pm »
To be fair, on this occasion - I was merely trying to resolve a cron string in UTC that had been defined on a browser in a local timezone. Turned out it wasn't that hard, but ANY interaction with timezones as a developer, involves at least two hours of  single stepping code, and muttering "What the actual FUCK?! I did NOT tell you to do that!".

Managed to wrestle the beast into submission eventually. Well, until the first defect report, anyway.

Re: The computing stuff rant thread
« Reply #1434 on: 06 June, 2017, 06:24:30 pm »
Further time-related computing rant.

gmmktime is supposed to produce a Unix timestamp from a GMT time and date. Only it works from local time and converts back to GMT. I found that gmmktime was an hour out for a couple of hours after the clocks changed.
Quote from: Kim
Paging Diver300.  Diver300 to the GSM Trimphone, please...

Kim

  • Timelord
    • Fediverse
Re: The computing stuff rant thread
« Reply #1435 on: 06 June, 2017, 06:58:44 pm »
If the events in the list are affected by the adoption of the Gregorian calendar, as he mentioned, then it's rather unlikely they could be dated to the second.

You'd be surprised how often that sort of thing crops up in astronomy, where they like to express things in heliocentric Julian time in order to - I kid you not - make the maths easier.

(Astronomers, in particular, shouldn't be allowed to write date conversion code.  The results can be a shining example of how you can write Fortran in any language.)

Re: The computing stuff rant thread
« Reply #1436 on: 06 June, 2017, 07:14:45 pm »
I did work with someone who wanted to represent time as a real, so a quarter past eight would be 8.15 (yet, .15 not .25). He 'only' wanted to do this to see if a given time was earlier or later than another. The rest of the team eventually persuaded him not to do it, but I'm sure he didn't really believe why.
"No matter how slow you go, you're still lapping everybody on the couch."

Kim

  • Timelord
    • Fediverse
Re: The computing stuff rant thread
« Reply #1437 on: 06 June, 2017, 07:17:12 pm »
I expect he thought decimal time would be silly...

Re: The computing stuff rant thread
« Reply #1438 on: 06 June, 2017, 07:38:23 pm »
gmmktime is supposed to produce a Unix timestamp from a GMT time and date. Only it works from local time and converts back to GMT. I found that gmmktime was an hour out for a couple of hours after the clocks changed.

Without an indication of the timezone there's an hour when the clocks go back where a specific time could be either before the clocks changed or after the clocks changed, e.g.

Sunday, 29 October 2017, 01:00:00
Sunday, 29 October 2017, 01:00:01
...
Sunday, 29 October 2017, 01:59:58
Sunday, 29 October 2017, 01:59:59
Sunday, 29 October 2017, 01:00:00
Sunday, 29 October 2017, 01:00:01
...
Sunday, 29 October 2017, 01:59:58
Sunday, 29 October 2017, 01:59:59
Sunday, 29 October 2017, 02:00:00

With a time of "Sunday, 29 October 2017, 01:00:00" there's no way to know whether it is the first one or the second one.
"Yes please" said Squirrel "biscuits are our favourite things."

Mr Larrington

  • A bit ov a lyv wyr by slof standirds
  • Custard Wallah
    • Mr Larrington's Automatic Diary
Re: The computing stuff rant thread
« Reply #1439 on: 07 June, 2017, 04:51:44 am »
I once had a request from a luser asking for a particular job to be run five working days before month end.  Month end being something of a movable feast, not least because of, well, movable feasts.  So after a lot of head-scratching and consulting the Internets an' t'ing I produced some SCIENCE that could work out when five working days before month end actually was, and understood leap years, and was even Y3K compliant.  Then the luser decided he didn't need it after all.

So I killed him, and then had an ice cream.
External Transparent Wall Inspection Operative & Mayor of Mortagne-au-Perche
Satisfying the Bloodlust of the Masses in Peacetime

Re: The computing stuff rant thread
« Reply #1440 on: 07 June, 2017, 08:35:38 am »
When I was a Senior IBM BOFH, we used to have to shut down the <bigcorp> IBM mainframes for two hours when the clocks when forward/back. It was the only way to avoid completely screwing multiple databases and ending up with a BA-level fuckup.
Since a complete reboot took multiple hours of work, this was no small enterprise.

Amazingly, there was not a reboot book. It was all in the operator's heads. Which jobs to bring up and which order. FFS. Sometimes someone would forget to start something at the right time and there would be much stress as it would be restarted.
<i>Marmite slave</i>

T42

  • Apprentice geezer
Re: The computing stuff rant thread
« Reply #1441 on: 07 June, 2017, 09:20:00 am »
Fuckwad RSI/URSSAF (extortion branch of social security) obliges Mrs. T to do her 2016 revenue declaration on line, deadline 9th June. Except that it's not on the usual server I use for everything else, and when I set her up an account on the one they impose it takes me through the usual sort of rigmarole and then tells me I'll receive a one-time connection code by mail within the next two weeks. Then I receive an email confirmation email, and when I click the link I find out their server has gone down in the meantime. Fuckwads.
I've dusted off all those old bottles and set them up straight

Gattopardo

  • Lord of the sith
  • Overseaing the building of the death star
Re: The computing stuff rant thread
« Reply #1442 on: 08 June, 2017, 06:26:52 pm »
After several times of being unplugged and or dropped and thrown.  Now it no longer works.  All that happens is the flashing amber light.
For most computer hardware I'd say that's probably for the best. :)

Some peoplehave temper tantrums and take it out on the hard ware.

ian

Re: The computing stuff rant thread
« Reply #1443 on: 09 June, 2017, 04:07:45 pm »
ADP Freedom. I'm sure I've done this before but it's travelling back to the Internet c1998. I just want a fucking payslip. I mean, really, in 2017 it only supports Inter-fucking-net Explorer. The helpful advice is 'to install IE'.

On a fucking Mac. Morons. Why not provide a fucking Win 3.1 executable why you are it? I hope everyone responsible endures an utterly terrible freak high pressure hot raspberry jam anal sphincter-related incident.

Mr Larrington

  • A bit ov a lyv wyr by slof standirds
  • Custard Wallah
    • Mr Larrington's Automatic Diary
Re: The computing stuff rant thread
« Reply #1444 on: 09 June, 2017, 05:43:32 pm »
Nice one, SCS Software, for slipping in that change without, y'know, actually telling anyone or anything, thereby causing a gazillion errors in my nice clean log file.  Now more than ever I need a PC scripting language that can do simple reading, writing and jibbling with text files while more nearly resembling English than line noise.  Any recommendations?
External Transparent Wall Inspection Operative & Mayor of Mortagne-au-Perche
Satisfying the Bloodlust of the Masses in Peacetime

ian

Re: The computing stuff rant thread
« Reply #1445 on: 09 June, 2017, 05:54:23 pm »
Ha, made my wife do it on her PC. She said several of the bad words and as she's from Essex, well, they're not the sort of words that would ever grace the lips of a more refined lady. And you try telling her that. Pulling a white stiletto heel out of your forehead hurts.

Amazon Music ate my Taylor Swift playlist. Bah! That was carefully curated and took me an entire 5 minutes to recreate thus delaying our special Friday music hour.

Gattopardo

  • Lord of the sith
  • Overseaing the building of the death star
Re: The computing stuff rant thread
« Reply #1446 on: 14 June, 2017, 02:11:36 pm »
Ah power jacks...what would cause a power jack to overheat?

So along with flat cmos batteries I am now resoldering power jacks to two different computers.  Tempted to desolder the connectors from old laptops...but that maybe a problem.  Why do I get myself in to these situations?

Re: The computing stuff rant thread
« Reply #1447 on: 14 June, 2017, 02:23:16 pm »
CustomXMLParts (In word accessed by VBA).  Plenty of examples in MS online documentation.  But non of them work.........


Helpfully, if you set a default namespace Word will quite happily add prefixes to *some* of your tags but demand that you prefix all tags with the prefix before you can access them.



Clever enough to know I'm not clever enough.

Biggsy

  • A bodge too far
  • Twit @iceblinker
    • My stuff on eBay
Re: The computing stuff rant thread
« Reply #1448 on: 14 June, 2017, 03:54:17 pm »
Ah power jacks...what would cause a power jack to overheat?

Excessive charging current or the jack not being rated for the power.  Both seem unlikely to me.  A short circuit could cause meltdown, but the power supply should trip before that.

The failed laptop power sockets I've seen, I've just put down to mechanical weakness or abuse, although I have noticed power plugs being rather warm in use.
●●●  My eBay items  ●●●  Twitter  ●●●

Kim

  • Timelord
    • Fediverse
Re: The computing stuff rant thread
« Reply #1449 on: 14 June, 2017, 06:09:05 pm »
Ah power jacks...what would cause a power jack to overheat?

Excessive charging current or the jack not being rated for the power.  Both seem unlikely to me.  A short circuit could cause meltdown, but the power supply should trip before that.

Crappy contact somewhere increasing the resistance and therefore power dissipated as heat.  May be the contacts themselves, the solder joints the the board or a fraying wire.  I'm guessing the solder joints.