I want SPSS to open a specific syntax-file when starting up. I have managed to open a blank syntax-file when starting up, by going to Edit -> Options and clicking on "Open syntax window at startup" in the General settings. However I'd like to start a specific syntax-file containing code I usually need.
Whether Mac or Windows, open a command (terminal on Mac) window. At the prompt, go the directory where you have installed SPSS (assuming it isn't on your PATH) and invoke the SPSS executable with the added command line argument of the file name. For example, on Windows:
C:\>CD \<path to SPSS>
stats C:\MyPath\MyFile.sps
on Mac:
cd /Applications/mypath/SPSSStatistics.app/Contents/MacOS
./stats /MyPath/MyFile.sps
You can do this with a syntax, SAV, or SPV file.
Related
I installed LUA by following this guide: http://lua-users.org/wiki/BuildingLuaInWindowsForNewbies
I put LUA in Program Files(x86)>lua>5.3.5
If i open up a terminal and type 'lua' it works.
If i create a file called hello.lua with print("Hello, World!") in it, how do i run this file so it comes up in the output window of VSCode?
If i try 'start without debugging' nothing happens'. If i Terminal>Run active file/selected text, the VS terminal window says
'print("hello, world!")
Unable to initialize device PRN'
I've obviously missed something simple but i just don't see a way to run this file to the output window, and an hour hunting through the docs and i'm none the wiser. My only other experience is with VS Community where it's just CTRL+Shift+B to complile and ALt+A to run.
Anyone help?
Thanks.
The Code Runner extension supports Lua, so you can press Ctrl-Alt-N to run the current script file. If it complains about not being able to find the executable, add this to your user settings:
"code-runner.executorMap": {
"lua": "C:\\Program Files (x86)\\lua\\5.3.5\\bin\\lua.exe"
}
Install the extension "Code Runner" in VS Code;
Click the gear icon and open the "Extension Settings";
Search for "Code-runner: Executor Map";
Go into setting.json to update the directory of the installed lua.exe.
"code-runner.executorMap": {
"lua": "\"C:\\Program Files\\Lua\\lua.exe\"",
}
Do not forget to add \" before and end of the directory.
Anyone knows how to open the Erlang shell from windows command line?
In official tutorial recommended to write "werl" to the command prompt but this command doesn't work.
P.S. I have installed erlang to my PC.
You have 2 simple ways to start an erlang shell on windows.
1) you can open a terminal directly into the folder that contains werl.exe you want. Use Shift + right click and choose "open terminal here". Then type "werl.exe"
2) you can go into that folder using "cd path", then type "werl.exe"
Also if you use werl.exe, a new window will open. If you want to stay with your windows terminal you should use erl.exe
werl uses the wxwidget library. Everything is installed automatically if you use the windows binary file.
If you have installed from source, then wxwidget must be installed separately.
It is possible to start the erlang shell in a dos window: start a command window with cmd, and start the erlang shell from this window using erl.
I guess that you already checked that werl exe is in the search path.
I need to convert my iOS project to 64-bit friendly (to get rid of compiler warnings, as in this question. The solution apparently is to run ConvertCocoa64.
I've managed to locate ConvertCocoa64 (which is no longer included in /Developer/Extras/64BitConversion/ConvertCocoa64) as the Apple docs suggest, but here (search for Auxiliary Tools)
So I've download the script. But my question is, how do I run this on my project? Please assume a total newbie level of knowledge here when it comes to the terminal and running scripts. Do I drop the script inside my project folder and just double click it? Or do I access it from the terminal? The docs say run this command:
/Developer/Extras/64BitConversion/ConvertCocoa64 `find . -name '*.[hm]' | xargs`
But since that folder doesn't exist, where do I run it?. I tried dropping the script in the Developer folder, but when I type ConvertCocoa64 it says command not found.
Find where the command is located now. You'll want to run it in the terminal using the full path to the command, as in your example, just with the real path.
A good way to get the full path is to locate the command in the Finder and drag it to an open terminal window - this also "escapes" any spaces in the path for you. The easiest way to hit all your files as arguments to the command is to cd (change directory) to your project first (in the terminal).
This should get you set up to follow the directions you have.
If I'm not mistaking, to run script, you should place dot . before command. Doesn't really matters, where script is situated as long, as it doesn't rely on it heavily
> cd ~/path/to/script/dir/
> ./ConvertCocoa64 ...
I use scite text editor to run my code. f5 has been working fine and I've been autorunning program after program in the side window, but suddenly... it stopped working.
The Tools > Go menu item effect is configured with the command.* settings in the SciTE properties file. Refer to the documentation for the details (search for command.go in the page).
The Go menu is configured separately for each file pattern. Default configuration is in the <lang>.properties file in the SciTE install directory. For example, Python configuration in python.properties looks like this:
command.go.*.py=pythonw -u "$(FileNameExt)"
command.go.subsystem.*.py=1
command.go.*.pyw=pythonw -u "$(FileNameExt)"
This can be overridden in either of these files:
SciTEUser.properties — user properties, resides in the user home directory (user profile directory on Windows)
SciTE.properties — local properties, resides in the same directory as the opened file
You should check what is the configuration for the file pattern in question, and find out if the specified command is actually available on your system.
So I installed Ruby On Rails using the Windows Installer.
Now the startup guides says I have to start up an Terminal and run the Rails command to make a project. I don't have a terminal, so how do I execute a Rails command and make a project??
The CMD command line in Windows does not recognize "rails"
I don't think it is an PATH problem, because when I'm in the "Bin" directory, there is "rails.bat" and "rails" with no extension. If I run Rails.bat I get "The filename, directory name, or volume label syntax is incorrect."
I get that message with whatever Argument I pass to it.
It seems to be a bug in the rails.bat file because of double-quotes, like:
#"ruby.exe"" "%~dpn0" %*
Remove the double quotes:
http://sepitfalls.blogspot.com/2008/12/updateing-rubygems-broke-gem-command.html
To get a terminal
Start > Run... or Windows key + R
Type "cmd" and hit enter.
To add a folder to the command line's path
On Windows XP (Vista is similar)
Start > Control Panel > System
Click the "Advanced" tab
Click "Environmental Variables"
Under "System Variables" double click on Path and edit accordingly.
You will need to open a new command line in order to get the updated path to take affect. With XP, I've had to reboot to force it to take affect but it shouldn't be necessary.
The Path variable is a semi-colon seperated list of folders in which the Command Line or "terminal" looks for commands.
You'll probably have to find the rails command yourself. I would try looking for a rails.bat or rails.cmd file.
I think they mean the command window. Try running it from a command line.
I dont know where the Windows Ruby on Rails intaller places its files, but the ultimately solution is that you need to make sure that the "rails" command is is your PATH - which you can view/modify by right-clicking My Computer, selecting Properties, going to the Advanced tab and then clicking on "Environment Variables" and then scrolling down until you see "PATH" and adjusting it accordingly. You probably need to find the directory where the "rails" command lives and append to the end of the existing PATH entry, inserting a ";" before you enter the new path to append it to the existing PATH.
So find where "rails" is and add its directory to your PATH.
You probably have to change your PATH in Windows to point to wherever the rails executable has been installed.
The PATH environment variable is used to determine where Windows looks for stuff; when you type, for instance, 'calc' Windows will hunt through its PATH and eventually find and run C:\Windows\calc.exe. In your case, the PATH doesn't include the directory you need, so Windows isn't searching in that directory for rails.exe when you type "rails."
To fix this, right click on "My Computer" -> "Properties" -> "Advanced" -> "Environment Variables" and then modify the PATH one to include the directory your rails.exe is in.
I recommend using cygwin for Rails development on windows - far too much of the community is using *nix. If you install the development tools package you'll automatically have svn, git and other doo-dads that you'll eventually need relating to various rails plugin installation. If you want to deploy using capistrano the installation is identical to all the instructions you find. Plus other tips and tricks people will reference will work exactly the same for you as it does for them, whereas some things are different for native windows and all the accessory tools have to be installed separately.