Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 10-02-2014, 11:39 AM   #61
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by HarryT View Post
... except that you don't test for Windows versions like that. You do it by calling the "GetVersion" or "GetVersionEx" Windows APIs, and they return Windows versions as a "major" and "minor" version number, not a string. There's no possible way to confuse Windows 95 with Windows 9. Windows 95 returns a version of "4.0", Windows 98 is "4.1".
Clearly some people don't do the right thing...
eschwartz is offline   Reply With Quote
Old 10-02-2014, 11:48 AM   #62
MikeB1972
Gnu
MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.MikeB1972 ought to be getting tired of karma fortunes by now.
 
Posts: 1,222
Karma: 15625359
Join Date: Jul 2009
Location: UK
Device: BeBook,JetBook Lite,PRS-300-350-505-650,+ran out of space to type
Quote:
Originally Posted by HarryT View Post
... except that you don't test for Windows versions like that. You do it by calling the "GetVersion" or "GetVersionEx" Windows APIs, and they return Windows versions as a "major" and "minor" version number, not a string. There's no possible way to confuse Windows 95 with Windows 9. Windows 95 returns a version of "4.0", Windows 98 is "4.1".
In windows programming, yes, I'd agree.

But there are issues in some languages.
e.g java has a popular function
System.getProperty("os.name")
that does return Windows 95 etc as a string
MikeB1972 is offline   Reply With Quote
Old 10-02-2014, 12:47 PM   #63
DMcCunney
New York Editor
DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.
 
DMcCunney's Avatar
 
Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
Quote:
Originally Posted by MikeB1972 View Post
In windows programming, yes, I'd agree.

But there are issues in some languages.
e.g java has a popular function
System.getProperty("os.name")
that does return Windows 95 etc as a string
Sure, but it will be an unambiguous string. You won't be able to confuse Windows versions unless your routine to parse the returned value is brain-dead and not looking at the whole string. That's your error, not an OS issue.
______
Dennis

Last edited by DMcCunney; 10-02-2014 at 01:46 PM.
DMcCunney is offline   Reply With Quote
Old 10-02-2014, 01:31 PM   #64
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DMcCunney View Post
Sure, but it will be an unambiguous string You won't be able to confuse Windows versions unless your routine to parse the returned value is brain-dead and not looking at the whole string. That's your error, not an OS issue.
______
Dennis
Yep, basically:

"Some people do stupid things to check the version, so we are going to skip a version number to cater to them" rather than, say, allowing the developers of a brain-dead program to fix the issue.

I'm not sure I buy this explanation, although I have heard it explained as a way to ensure backwards compatibility.

Last edited by eschwartz; 10-02-2014 at 01:34 PM.
eschwartz is offline   Reply With Quote
Old 10-02-2014, 01:56 PM   #65
DMcCunney
New York Editor
DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.
 
DMcCunney's Avatar
 
Posts: 6,384
Karma: 16540415
Join Date: Aug 2007
Device: PalmTX, Pocket eDGe, Alcatel Fierce 4, RCA Viking Pro 10, Nexus 7
Quote:
Originally Posted by eschwartz View Post
Yep, basically:

"Some people do stupid things to check the version, so we are going to skip a version number to cater to them" rather than, say, allowing the developers of a brain-dead program to fix the issue.

I'm not sure I buy this explanation, although I have heard it explained as a way to ensure backwards compatibility.
I don't buy it. Since there are clearly defined Windows APIs for doing things like checking what Windows version the user has that won't be subject to the sort of confusion mentioned, it's reasonable to assume developers will use them.

And what's in it for MS to handle edge-cases where where developers are ignorant and don't use them? That's the dev's problem, and they need to learn better or find something else to do with their time that doesn't involve writing bad code.
______
Dennis
DMcCunney is offline   Reply With Quote
Old 10-02-2014, 02:32 PM   #66
fjtorres
Grand Sorcerer
fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.
 
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
Quote:
Originally Posted by HarryT View Post
... except that you don't test for Windows versions like that. You do it by calling the "GetVersion" or "GetVersionEx" Windows APIs, and they return Windows versions as a "major" and "minor" version number, not a string. There's no possible way to confuse Windows 95 with Windows 9. Windows 95 returns a version of "4.0", Windows 98 is "4.1".
You may not, but the report clearly states that such code can be found in use.
fjtorres is offline   Reply With Quote
Old 10-02-2014, 02:38 PM   #67
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by DMcCunney View Post
And what's in it for MS to handle edge-cases where where developers are ignorant and don't use them? That's the dev's problem, and they need to learn better or find something else to do with their time that doesn't involve writing bad code.
______
Dennis
Kind of what I was thinking.

Backwards compatibility should mean that well-written code does not break simply because of updates to the APIs. Not bending over backwards to account for rough equivalents to the Y2K bug.
eschwartz is offline   Reply With Quote
Old 10-02-2014, 03:30 PM   #68
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,544
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by eschwartz View Post
Kind of what I was thinking.

Backwards compatibility should mean that well-written code does not break simply because of updates to the APIs. Not bending over backwards to account for rough equivalents to the Y2K bug.
Precisely. The Windows 95 version of my astronomy software (highly complex architecturally, multi-threaded, etc) runs absolutely fine nearly 20 years later on Windows 8.1. Why? Because I wrote it properly and followed all the rules.
HarryT is offline   Reply With Quote
Old 10-02-2014, 03:43 PM   #69
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by HarryT View Post
Precisely. The Windows 95 version of my astronomy software (highly complex architecturally, multi-threaded, etc) runs absolutely fine nearly 20 years later on Windows 8.1. Why? Because I wrote it properly and followed all the rules.
I agree, I am just saying, "don't" is not the same as "shouldn't".

Quote:
Originally Posted by HarryT View Post
... except that you don't test for Windows versions like that. You do it by calling the "GetVersion" or "GetVersionEx" Windows APIs, and they return Windows versions as a "major" and "minor" version number, not a string. There's no possible way to confuse Windows 95 with Windows 9. Windows 95 returns a version of "4.0", Windows 98 is "4.1".
eschwartz is offline   Reply With Quote
Old 10-11-2014, 09:39 AM   #70
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
Quote:
Originally Posted by eschwartz View Post
Name me the unix-based terminal that doesn't do that, bundled or not...
(I use mintty with cygwin. Also did this for years. )
Now if only they would make some useful functionality available via the command-line, so I don't have to install cygwin in order to copy files around.
Bonus points for tab-completion.
Default terminal in Slacko doesn't.
Glorfindel is offline   Reply With Quote
Old 10-11-2014, 09:46 AM   #71
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
I have installed the Technical Preview, works like a charm runs faster than lubuntu on my box. Specs are 1GB RAM, 3GHZ P4 cpu. 500MB RAM usage with a few programs up, most used so far was 700MB.
Glorfindel is offline   Reply With Quote
Old 10-11-2014, 10:24 AM   #72
Jack Torrance
“Here’s Johnny
Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.Jack Torrance ought to be getting tired of karma fortunes by now.
 
Jack Torrance's Avatar
 
Posts: 186
Karma: 3863056
Join Date: Mar 2014
Location: Overlook Hotel Colorado
Device: Kindle DXG - 9.7 iPad - iPhone 12PM - Macbook Pro
im in the works of doing a fresh install of my home machine and decided for kicks to load the Tech preview on another drive and set them up the same way.

Admittitly my tine spent with 8/8.1 was pretty short but I found it to be off putting. The lack of the start menu while probably something to work around and get used to was very annoying especially with 20+ years of muscle memory built in. While change is nice at times you want to see a functional reason for it as well and as far as I've read that was elusive.

This new version feels more like a progression and seemed to be able to do what I wanted without having to relearn everything. So far so good.
Jack Torrance is offline   Reply With Quote
Old 10-11-2014, 10:36 AM   #73
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
Yeah, I thought that the Start Menu combined 7 with 8 very well.
Glorfindel is offline   Reply With Quote
Old 10-11-2014, 11:00 AM   #74
fjtorres
Grand Sorcerer
fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.fjtorres ought to be getting tired of karma fortunes by now.
 
Posts: 11,732
Karma: 128354696
Join Date: May 2009
Location: 26 kly from Sgr A*
Device: T100TA,PW2,PRS-T1,KT,FireHD 8.9,K2, PB360,BeBook One,Axim51v,TC1000
Quote:
Originally Posted by Glorfindel View Post
I have installed the Technical Preview, works like a charm runs faster than lubuntu on my box. Specs are 1GB RAM, 3GHZ P4 cpu. 500MB RAM usage with a few programs up, most used so far was 700MB.
Good to hear.
Among other things, it bodes well for the cheapy WinTabs.
Full Calibre on a reader-sized tablet should be fun.
fjtorres is offline   Reply With Quote
Old 10-11-2014, 08:29 PM   #75
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 4,762
Karma: 11557898
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
Especially with calibre for ARM devices seeming to be never coming.
Glorfindel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Regex "FN LN" to "LN, FN" & reverse? unboggling Library Management 19 11-20-2013 06:44 AM
Nokia launches 10.1" Lumia 2520 Windows RT tablet, and two 6" Windows Phone 8 devices Jessica Lares News 11 10-26-2013 01:42 AM
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 03:14 PM


All times are GMT -4. The time now is 03:44 PM.


MobileRead.com is a privately owned, operated and funded community.