Re: Alice in Pythonland
By sheer coincidence that, in dog language, means "Raymond Luxury-Yacht".......
9435 publicly visible posts • joined 5 Oct 2007
The common way to do it is to use integers, with the decimal implied by the currency (0, 2, or 3 [2]).
In most[1] jurisdictions you must round to currency units for storage, so no 6 d.p. shit. Conversions are run to more places in variables and then rounded post conversion for further use or storage[3]. Calculating all the line level components of a charge to higher precision levels and then rounding to currency units after summation is not permitted in places where tax must be calculated and shown at line level (like the EU).
[1] Maybe all, unless anyone knows better.
[2] Three? Yes. Halfpennies. Egypt, for one, still has three.
[3] Highlight of my life in this area was the original Euro startup and the ERM. Currency conversions bertween currencies in the ERM had to be "triangulated" through the Euro. So instead of X to Y, you had to convert X to Euro, round to two decimals, convert the result to Y and finally round to the decimals of Y. The level of conversion precision was also mandated and there was often a small but demonstrable difference between correct triangulation and fudging it by working out the direct conversion rate. The evil-minded little sods threatened to come down like a ton of bricks on anyone caught fudging it too.....
Fairly recently we had a story about miscreants sticking their own QR codes over the real ones on advertising hoardings, to send mug punters to their bent site.
I opined at the time that, as you have no idea where a QR code goes or what it does until your device interprets it, if you have your device configured to action such without first showing what it's about to do and asking for confirmation you are low-hanging fruit and bloody asking for it.
I thought that was bleedin' obvious, but it appears that either it isn't or Google are too stupid to spot it.
I quite like it, but not for the reasons those who use it think. Let's just look at what Heinlein has to say about it:
....and it means as little to us (because of our Earthling assumptions) as color means to a blind man.
Or, in other words, a human using it is the exact equivalent of a five year old saying "fuck". They think it sounds big and clever, but actually have no comprehension of the real meaning.
Their costs are approx $10,000 per lb with a full capsule.
I think you'll find that all those figures are rather lower for the return trip only. The vehicle comes back anyway, anything in it is effectively hitching a ride.
The cost of sending up another one has to be borne anyway, assuming it cannot be fixed in situ, so whether that's a new one or an old one reconditioned is immaterial.
Thus, as the suit costs 12 million, if there's a chance it can be fixed bringing it down is a no-brainer.
Well we all saw what happens when you make it obvious as MS did in IE10, by asking up front on first use what you'd like it set to.
The ad men responded with; "We'll ignore DNT information from IE10.".
Now it seems that they've decided that merely forcing browser makers to bury it in the config where it can't be found by grunt users and having it defaulted to an ad-friendly "off" isn't good enough and they want it watered down even further.
There is a certain amount of irony in the fact that the group trying to scotch it apparently have MS as a member. The same MS pushing it hardest, even to the extent of running an ad campaign[1] based on its provision. I guess those "Chinese walls" are really doing their stuff, to the extent that the left hand knoweth not what the right hand doeth.
[1] More irony.
The GPL is the best choice for users, bar none.
Personally I prefer licenses out of the "here, do what you like" stable. I think that the idea of adding reams of carefully worded clauses to a license in the name of "freedom" has a lot in common with fighting for peace or fucking for virginity.
Yes, because selecting options and checkboxes in a GUI and reviewing the changes therein before submission is daft.
The correct approach is to type in a 200-odd character string, of which only part is visible on screen at any one time. Said string to be littered with switches and arguments, any mistake in which can result in something nasty happening.
"Quicker and easier" usually goes hand in hand with "more prone to cockups".
Back in the DOS / early Win days, the advent of the Novell ODI stack was a revelation. The moduler setup meant you could poke various bits of it into high memory until you achieved a very optimal memory configuration.
The architecture of it, with the Link Support Layer sitting on the card driver and arbitrating the different network stacks (including the Novell client) above, meant it had another trick up its sleeve. One of my mates worked at the time in a mixed ICL / UNIX / whatever environment and one evening down the pub, was regaling me with how of the five(!) different network clients they needed to use, any four could be made to play together with varying levels of stability, but not all five. Part of the problem was that the network cards they were using were a tad esoteric.
A couple of days later, I handed him a floppy containing the Novell card drivers for his kit and a copy of the LSL.
"But....but....we don't use Novell?"
"Yes, but every other bugger does. Just install that and tell everything else it's on a Novell network."
Worked a treat.
More importantly, I'm sure that the water companies would spot the additional power consumption at the pumps they use to produce that water pressure and hike their prices accordingly.
The end effect would be that you'd be buying a very small amount of your electricity from them, via several hideously inefficient conversions.
.... and have FAT repair/recovery software that crashes if there are actual real faults in the disc structure....
If you do ever run into a recentish Win box that has its OS partition configured as FAT rather than NTFS, could you do me a favour? Find whoever built it it and tell them they're a fucking idiot.
Thanks.
And the GooCrufting of Android continues.
Recently the Gmail widget gained a thoroughly useless "categories" feature. Ho hum, fiddle around in the settings, find checked categories, uncheck, everything back to normal.
Unfortunately the thoroughly evil types at Google appear to have decided that they know better than me, so today they are back. They can still be unchecked, but that action isn't saved. Thank you Google, you look more like Microsoft every day from where I'm sitting.
If I was anal-retentive enough to want all my incoming mail pre-filed for me, I'm perfectly capable of adding my own folders and creating rules to do it. The fact that I haven't done this is, unsurprisingly, because I don't fucking want it like that....
Given that the current situation is that the vast majority of the internet is ad-funded, exactly what is "Plan B"?
You'll need to have one, unless your sole aim is to tear it all down and leave it in bits on the floor.
Anyone got any constructive ideas, or is "Ads is business, business is bad, ugh, hit with rock" the sum total of the argument on the other side of the fence here?
Let's have a look at why people use Chrome:
"Well its safe innit? Evverywun on teh internets sez use Chrome not IE cos Chrome's rilly safe and cant be pwned. Must be rite cos it sez so on teh internets.".
They then ignore the warnings because they're sure that Chrome will prevent anything nasty happening anyway.
It does not matter what you use. The largest security loophole on any combination of machine and software is the idiot sat in the chair using it. Telling people that such and such software is somehow inherently safer is counterproductive and just leads them into a false sense of security.
Reading this lot sheds a lot of light on why any article with a "social networking" slant always comes in for a right shoeing in the comments.
Ho hum, I don't "get it" either. I reckon the whole thing revolves around "feeling connected" to other people and I, for one, don't.
Hmm, I run into the "ethernet only" issue all too often. The other take on that is "ethernet only and your laptop has its ethernet port on the wrong side for this stupidly short cable to reach to".
Answer? Ebay. 10 quid(!) [1] got me a memory-stick-sized(!!) fully-featured wifi router(!!!) from Hong Kong. Plug hotel's ethernet cable in one end and USB power in the other. Presto, my very own wireless network in my room.
I've given up on in-room hotel wifi, when it is provided, as this provides instant access without fannying around configuring an additional wireless network on all my devices.
[1] Anyone care to explain why a complete WiFi router in a small placcy case costs around half what a bit of flash memory in a similar placcy case does?
Local here too.
They said that getting the anaesthetic would be the worst part of the whole process. One small jab later and I was smirking at that being the worst on offer. What they failed to mention was that its not the jab itself, but the sensation of having one's nuts crushed in a bench vice as the stuff takes effect for the next 20 or so seconds that's the nasty bit.
Subsequently feeling the actual op and requiring that top-up was fairly trivial by comparison....
I described the effects as exactly like being kicked in the bollocks by a horse, only without feeling the kick.
Also, here's a tip: If you need to travel to have your knackers snipped, do not take your sports car to your local station. You will regret it deeply on your return, when trying to get into the bloody thing with the anaesthetic now worn off.
....its availability depends on whether the OEM has shipped the new code through carriers to end users.
And this is where the whole Android model dies like the dog it is. Chances of this critical fix making it as an official release to any device that went into production more than 12 or so months ago? I'll have a fiver on "bugger all" please.
Easy.
"I reached into my jacket pocket to retrieve my mobile telephone and as I removed it from said pocket, the infernal device slipped from the grasp of my fingers and full upon the floor at my feet. Whilst I retrieved the device in question, I subsequently determined that its untimely descent onto an unyielding surface had rendered it entirely inoperable."
See? Well over the minimum and I didn't have to mention the weather at all......
I seriously doubt that.
Building a railgun equipped humungo-battleship is all well and good, but has a slight snag. One good shot from someone else's railgun and that's a lot of investment down the tubes. Armour has a way to go here.
I'd have though that small, fast and cheap ships with railguns would be the way to go. All the railgun punch, none of the irrelevant armour, speed makes them more difficult to hit at long ranges and the low cost/simplicity makes them simple and quick to replace.
You have to remember why Dreadnoughts went the way of the Dodo in the first place. It was nothing to do with any limitations in the armament, it was because all it took to ruin one's day was a dive bomber in the wrong place at the wrong time.
...use named styles...
Oh heck. I'd love to have that written on a club for occasional clueage use. You can add Page Breaks to that too.
There's nothing worse than modifying someone else's document, inserting something and having the whole lot turn to catshit, 'cos they've formatted the entire fucking thing with spaces, carriage returns and "Normal + (long list of extras)".
Given how long its been since typewriters were common in offices, I am continually mystified as to why most people treat a word processor as if it were one. Where the hell did they pick up the habit?
That's not Access' fault.
People have been doing that since user applications became capable of doing useful stuff on desktops. One place I worked had umpty-something hundred linked spreadsheets in Lotus 123 v3 doing all the financial reporting and budget modelling.
I'm not sure "debunked" is right there.
As both could be fooled, even though the cheap PC reader proved "harder" I reckon a fingerprint reader is less secure than a password. Both are vulnerable once the miscreant has the thing, but your fingerprints are more likely to be available to some scrote without your knowledge. Also if you suspect someone else may have 'em, changing your fingerprints is tricky.
A service which doesn't transmit significantly through the walls of a house is a significant benefit to your neighbours.
Unfortunately, a service which doesn't transmit significantly through the interior walls and floors of your own house is pretty much bloody useless to you.
My router does 2.4 and 5 simultaneously. 5 works well enough in the same room, but gets flattened for speed everywhere else in the house by 2.4, despite very heavy congestion in that band. What would be nice is if the ruddy clients had the sense to prefer 5 when the signal strength was ok, but unfortunately everything I've tried seems to lock on to 2.4 by preference if the SSIDs are the same, even when right next to the damned thing.