Computing desk | ||
---|---|---|
< December 13 | << Nov | December | Jan >> | December 15 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
At work yesterday I sorted a very long Excel sheet of book titles from numerous languages, and as expected, all the Chinese characters showed up together at the end. As far as I could tell without examining it closely, titles with similar characters were adjacent to each other; in particular, I marked duplicates (Conditional Formatting), and they always appeared next to each other, even though they'd not been adjacent before the sort.
How do Excel and other major English-language-developed programs sort Chinese characters? Is it typical to represent them with ASCII characters (e.g. sorting them by their binary representation), or do some such programs have a sense of stroke order? I'm talking about general-use programs, rather than software that is primarily linguistic. Nyttend ( talk) 13:29, 14 December 2017 (UTC)
If a computer program is confronted with an unknown variable, couldn't it just wait-and-see instead of raising an error?
For example, a=b+b followed by b=8 would raise a NameError in Python. But b=8 followed by a=b+b is OK. Couldn't Python just remember that the value of a is 2b and wait until it is needed as a numerical value and, if it does not get the value, then raise the error?-- Hofhof ( talk) 18:15, 14 December 2017 (UTC)
a = b + b
in Python (and its equivalent in other procedural languages) means 'calculate the current value of b + b
and assign that to the variable a
, not 'define a
to be the whatever the value of b + b
is when a
is referenced. By that logic, the statements b = 8
, a = b + b
, b = 16
, print (a)
might be expected to output the value 32.
AndrewWTaylor (
talk) 18:25, 14 December 2017 (UTC)b = 8
, a = b + b
, b = 16
would be wrong because b is declared twice, but a = b + b
, b = 16
is okay and sets a to 32.
Dmcq (
talk) 23:22, 14 December 2017 (UTC)b = 7
(and implicitly then setting a to 14 instead) would rain fiery death down upon the metropolis.
Andy Dingley (
talk) 23:47, 14 December 2017 (UTC)
//Define formulas P=I*V; R=V/I; //Fill the knowns AskAndFill("Do you know Voltage",V) //etc for Power,Resistance, Current If R.HasValue Print("Resistance (Ohms) is " + R)
Joepnl ( talk) 00:03, 15 December 2017 (UTC)
On my home PC, I'm running Windows 10 (professionally re-installed a week ago after an unrepairable startup error appeared). When I want to open a PDF document already downloaded, this currently defaults to using Microsoft Edge, with various alternatives also offered.
I would prefer not to use a browser program or this, but instead to use LibreOffice 5.4, which I have on the computer and which can open PDFs in its Draw application, but this is not one of the options offered.
While I can open LibreOffice Draw and then search for and open a given PDF document, I cannot figure out how to make it my .pdf default such that I can first go to the document and then open it with LibreOffice 5.4 as the default or even an alternative option.
If I go to Windows 10's
then .pdf is already set to Microsoft Edge with no way I can see to change that to anything else.
Suggestions? (Please keep things as untechnical as possible!) {The poster formerly known as 87.81.230.195} 90.220.212.173 ( talk) 21:00, 14 December 2017 (UTC)
HTH -- TrogWoolley ( talk) 10:53, 15 December 2017 (UTC)
I have had Adobe Reader as my default PDF reader for nearly a year now, and before that on a different installation for I think the same amount of time or more. (Also most of my other defaults are not Microsoft's choices.) From my experience on Windows 10 Pro, which seems to be supported by (nonRS) refs [2] [3], if you set a default program yourself it stays. The only time it tends to change is possibly for major upgrades (e.g. Creator's update etc) and when something messes with the default programs.
Windows 10 doesn't like other stuff messing with the defaults, and if it detects this it will reset to the original defaults (recommended programs). If you keep installing junky programs that don't understand this or your installed programs are junky and still don't understand this and you give them admin access, then you will have problems. If not, you should not have to fool around with the registry. In other words, the solution recommended above should work fine for any program which has registered itself as being able to open PDFs, provided you aren't installing or running junky programs, with the slightly possibility of needing to fix it every half year or so at worse after major upgrades. (IIRC this only happened once or twice due to new programs or some other reason.
Now if your program has not registered itself as supporting PDFs it's a little more complicated mostly since Microsoft are trying to push you to store apps, although you still shouldn't need to fool around with the registry. One simplish solution is to right click on the file and look for the 'open with' option. Mouse over and in the submenu there should be an option to 'Choose another app'. As an alternative, if you select a PDF file and then go to the home tab, there should be an arrow next to the Open option, and you can also click on 'Choose another app' here too.
Either way, you should now get the list of apps registered as opening that file type. Scroll down to the bottom and there is a 'More apps' option. Clicking on that will show other apps, I think any that are set as defaults for any file or something. Maybe whatever you want to use will show up here. If not, scroll down to the bottom and there is a 'Look for another app on this PC' option. You will then need to browse to the program that you want to use to open PDFs. (With modern programs, this can sometimes be a little complicate if they have multiple executables, and you're not sure which is the right one.)
Computing desk | ||
---|---|---|
< December 13 | << Nov | December | Jan >> | December 15 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
At work yesterday I sorted a very long Excel sheet of book titles from numerous languages, and as expected, all the Chinese characters showed up together at the end. As far as I could tell without examining it closely, titles with similar characters were adjacent to each other; in particular, I marked duplicates (Conditional Formatting), and they always appeared next to each other, even though they'd not been adjacent before the sort.
How do Excel and other major English-language-developed programs sort Chinese characters? Is it typical to represent them with ASCII characters (e.g. sorting them by their binary representation), or do some such programs have a sense of stroke order? I'm talking about general-use programs, rather than software that is primarily linguistic. Nyttend ( talk) 13:29, 14 December 2017 (UTC)
If a computer program is confronted with an unknown variable, couldn't it just wait-and-see instead of raising an error?
For example, a=b+b followed by b=8 would raise a NameError in Python. But b=8 followed by a=b+b is OK. Couldn't Python just remember that the value of a is 2b and wait until it is needed as a numerical value and, if it does not get the value, then raise the error?-- Hofhof ( talk) 18:15, 14 December 2017 (UTC)
a = b + b
in Python (and its equivalent in other procedural languages) means 'calculate the current value of b + b
and assign that to the variable a
, not 'define a
to be the whatever the value of b + b
is when a
is referenced. By that logic, the statements b = 8
, a = b + b
, b = 16
, print (a)
might be expected to output the value 32.
AndrewWTaylor (
talk) 18:25, 14 December 2017 (UTC)b = 8
, a = b + b
, b = 16
would be wrong because b is declared twice, but a = b + b
, b = 16
is okay and sets a to 32.
Dmcq (
talk) 23:22, 14 December 2017 (UTC)b = 7
(and implicitly then setting a to 14 instead) would rain fiery death down upon the metropolis.
Andy Dingley (
talk) 23:47, 14 December 2017 (UTC)
//Define formulas P=I*V; R=V/I; //Fill the knowns AskAndFill("Do you know Voltage",V) //etc for Power,Resistance, Current If R.HasValue Print("Resistance (Ohms) is " + R)
Joepnl ( talk) 00:03, 15 December 2017 (UTC)
On my home PC, I'm running Windows 10 (professionally re-installed a week ago after an unrepairable startup error appeared). When I want to open a PDF document already downloaded, this currently defaults to using Microsoft Edge, with various alternatives also offered.
I would prefer not to use a browser program or this, but instead to use LibreOffice 5.4, which I have on the computer and which can open PDFs in its Draw application, but this is not one of the options offered.
While I can open LibreOffice Draw and then search for and open a given PDF document, I cannot figure out how to make it my .pdf default such that I can first go to the document and then open it with LibreOffice 5.4 as the default or even an alternative option.
If I go to Windows 10's
then .pdf is already set to Microsoft Edge with no way I can see to change that to anything else.
Suggestions? (Please keep things as untechnical as possible!) {The poster formerly known as 87.81.230.195} 90.220.212.173 ( talk) 21:00, 14 December 2017 (UTC)
HTH -- TrogWoolley ( talk) 10:53, 15 December 2017 (UTC)
I have had Adobe Reader as my default PDF reader for nearly a year now, and before that on a different installation for I think the same amount of time or more. (Also most of my other defaults are not Microsoft's choices.) From my experience on Windows 10 Pro, which seems to be supported by (nonRS) refs [2] [3], if you set a default program yourself it stays. The only time it tends to change is possibly for major upgrades (e.g. Creator's update etc) and when something messes with the default programs.
Windows 10 doesn't like other stuff messing with the defaults, and if it detects this it will reset to the original defaults (recommended programs). If you keep installing junky programs that don't understand this or your installed programs are junky and still don't understand this and you give them admin access, then you will have problems. If not, you should not have to fool around with the registry. In other words, the solution recommended above should work fine for any program which has registered itself as being able to open PDFs, provided you aren't installing or running junky programs, with the slightly possibility of needing to fix it every half year or so at worse after major upgrades. (IIRC this only happened once or twice due to new programs or some other reason.
Now if your program has not registered itself as supporting PDFs it's a little more complicated mostly since Microsoft are trying to push you to store apps, although you still shouldn't need to fool around with the registry. One simplish solution is to right click on the file and look for the 'open with' option. Mouse over and in the submenu there should be an option to 'Choose another app'. As an alternative, if you select a PDF file and then go to the home tab, there should be an arrow next to the Open option, and you can also click on 'Choose another app' here too.
Either way, you should now get the list of apps registered as opening that file type. Scroll down to the bottom and there is a 'More apps' option. Clicking on that will show other apps, I think any that are set as defaults for any file or something. Maybe whatever you want to use will show up here. If not, scroll down to the bottom and there is a 'Look for another app on this PC' option. You will then need to browse to the program that you want to use to open PDFs. (With modern programs, this can sometimes be a little complicate if they have multiple executables, and you're not sure which is the right one.)