Jump to content

Wikipedia:Reference desk/Archives/Computing/2018 December 14

From Wikipedia, the free encyclopedia
Computing desk
< December 13 << Nov | December | Jan >> Current desk >
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.


December 14

[edit]

Run Windows 10 with only cmd; cpu, ram, vram, all dedicated to cmd

[edit]

Is there any way for me to run cmd without any other system process taking up cpu or ram? And using drive C, not drive X. I'm trying to run a program that will use a lot of resources. I'm not that experienced with Windows, so it'd be great if I know how. Thanks! Slapblackjack (talk) 00:46, 14 December 2018 (UTC)[reply]

Do you expect anything to display on the screen, or the keyboard to be able to interrupt? I am pretty sure you will not be able to run anything under Windows 10, without giving Windows some RAM to use. Graeme Bartlett (talk) 06:35, 14 December 2018 (UTC)[reply]
The "DOS" procedures in cmd mode are emulated by Windows. There is no underlying DOS (since Millennium Edition). I suppose you could avoid Windows and just boot an old DOS system if one is available. Try here? A compromise might be running in "Safe Mode" where only some of the Windows system is loaded. Instructions here for HP computers. Dbfirs 07:38, 14 December 2018 (UTC)[reply]
You may install windows server core which does what you want. Regards, Comte0 (talk) 23:47, 16 December 2018 (UTC)[reply]

R help

[edit]

Hello, I am currently trying to add some data points to a graph I created in the CHNOSZ package of R. This is for a master's thesis project. I have an excel file I am trying to reference here which contains the data points I need to add to my graph (it is a csv file). I have not yet been able to add the data points to the graph. I want to know how to do this.

Whenever I try to reference the data table, I get a message that says: "cannot open file 'DATASHEET.csv': No such file or directory". What does this error mean? This file is clearly in the data folder for the package CHNOSZ. Also, why does it say "invalid type" for variable O2?

Here is what I tried to do to add the points to the excel file:


> a=read.csv2("DATASHEET.csv")
Error in file(file, "rt") : cannot open the connection
In addition: Warning messages:
1: unable to open printer 
2: opening device failed 
3: In file(file, "rt") :
  cannot open file 'DATASHEET.csv': No such file or directory

> plot(a$O2~a$Ph)
Error in (function (formula, data = NULL, subset = NULL, na.action = na.fail,  : 
  invalid type (NULL) for variable 'a$O2'

Below is the code used to create the graph in the first place (with no points added). the graph is supposed to be like a pourbaix diagram:

basis(c("HAsO4", "H+", "O2", "H2O"))
species(c("H2AsO4-", "H2AsO3-", "AsH3", "HAsO4-2", "H3AsO4", "AsO4-3"))
a <- affinity(pH=c(0,14), "O2"=c(-100,-0,400), T=20)
diagram(a, fill="heat")
title(main=paste("Aqueous arsenic species, T= 20C, P=Psat/n"))

Thanks for helping me with this problem. — Preceding unsigned comment added by 63.153.96.222 (talk) 04:40, 14 December 2018 (UTC)[reply]

Is your working directory the same as the CHNOSZ data folder the CSV file is in (use getwd to check)? You can either change the working directory to the data folder using setwd, or if you are reading or writing other files, maybe just call an explicit file path:
a=read.csv2("data/DATASHEET.csv")
The reason you get the invalid type error is because R failed to read the file, the a variable is a NULL type so the plot function won't work until it is populated with the CSV data table. --Canley (talk) 23:21, 14 December 2018 (UTC)[reply]