Unable to run processing pde file in Sublime Text - processing

I am trying to run an example file from the Hype framework in Sublime Text and when I hit Ctrl + B I get "Could not create the output folder".
Any thoughts?
Link to example code:
http://www.hypeframework.org/examples/HOscillator/example_001/index.html

Try checking your build system under Tools > Build System > Processing.

Make sure you have put the .pde file in a folder that matches it's name..
ex. myGame.pde must be in a folder called, myGame.

Related

Why is the folder created on the command line not visible by other programs?

I created a folder on my Desktop within the command line on Windows, by using the command mkdir. I also added some files in there by using the command type nul >> fileName.
The folder is there, but two blue arrays appear on its top.
I want to open it on my IDE now.
I'm using PHP Storm, and I'm trying to open a file inside the folder, but when I do
file > open file or project > Desktop
the folder is not visible.
For it was on read-only mode, I have also tried to change such a setting, but nothing changed, I don't know whether or not this is relevant as regards to the issue explained above.
Why a folder created within the command line is not visible by some other program, and how can I solve and avoid the issue in the future?

use external editor in Octave on OSX

I want to use Sublime Text as my default editor for Octave, but cant get it to work.
The location of my Sublime Text app is in the /Applications/ folder as usually.
For example putting EDITOR (“/Applications/SublimeText.app”) results in the following error:
parse error near line 1 of file /Users/czapla/.octaverc
syntax error
>>> EDITOR (“/Applications/SublimeText.app”)
^
error: source: error sourcing file '/Users/czapla/.octaverc'`
FYI: Yes SublimeText, this is name of the application, no spaces in between, I changed it to avoid having to escape spaces - I wasnt sure how that would be handled by Octave.
Any ideas?
Thanks!
You don't mention what different things you tried to place in your .octaverc file. The following should work EDITOR ("path_to_your_sublime_aplication"). It doesn't need to be the full path, whatever works to call it from the command line should suffice. For example, EDITOR ("gedit") works fine on my system.
Also, it is important to set this before calling any function that makes use of it. The variable is persistent during an Octave session after being accessed the first time (and defaults to emacs).
I am using Sublime Text 3 on OS X
Octave programs are running perfectly. So you can try the below mentioned steps
Open Sublime
Goto Tools --> Build System --> New Build System...
Paste this code
{
"cmd": ["/usr/local/octave/3.8.0/bin/octave-3.8.0", "$file"],
"selector": "source.m"
}
Save it as Octave.sublime-build
Now use Octave as your build system
Use ⌘ + B to run your code.
Enjoy!

debugging with visual studio using redirected standard input

I am debugging c++ console application with Visual studio. I exhausted of inserting the same input every time I debug this program. I would like to use the same input more times.
I do this without debugging in command line with command: Program.exe < 1.in
Is it possible to use debugging with standard input redirected from file???
I already tried looking in to procejt properties. I tried setting Command to $(TargetPath) < 1.in instead of $(TargetPath).
I also tried setting Command Arguments to < 1.in. Niether of these method worked.
I am using Visual Studio 2012. But this is probably same in all versions of studio.
This is a supported debugging scenario. You do have to make sure that the debugger can find the file. Leave the Command setting at $(TargetPath). A possible value for the Command Arguments setting is:
< "$(ProjectDir)test.txt"
if the input file "test.txt" is located in the project directory. Or type the full path of the file to be sure. The MSDN article that describes this feature is available here.
I just create a file called stdin.txt in the project
1) set the Build Action to Content
2) Copy to Ouput Directory: Copy if newer
Then when you build stdin.txt is copied to the same folder as the executable.
Then in project properties debug|command line arguements enter the following
< stdin.txt
There is no need to use a path macro
If you don't want to mess with the the path you can add a new file with a right click on the source files folder in the solution explorer and then paste to it the content from the wanted file. And then change the command argument to the new file name.

.trace file xcode instruments

I am unable to open the .trace file which is the output of a test script run in Xcode-instruments.
When I try to open it, it says Unable to open the file.
Please suggest if there is a way to open it
From Finder, get context menu on file, select "Show Package Contents". From a command-line shell, just navigate to the file as if it were a directory.
In my case I found that there is a second .trace folder inside the top-level .trace folder, and they share the same name. If you drag the second one out, then Instruments will have no problem opening the second one.
I tested this with Xcode4.6 (Instruments 4.5).

Only Name File with Extension in Windows

I am trying to create a file in Windows XP that is only the extension (".classpath" and ".project"). While my Linux box handles this appropriately, Windows gives me the error, "You must type a file name."
Any suggestions how to do this? I am attempting to setup an Eclipse project where I can bring in the classpath and project files from someone else's setup and I keep getting the above error.
Just name your file with additional dot at the end: ".ext."
explorer will remove additional dot and you'll get .ext file.
use the commandline to do this, windows explorer doesn’t allow renamed files to start with a period. first create the file/directory with a dummy name x.ext, then fire up cmd.exe and rename it:
ren x.ext .ext
this way you can also create directories which names start with a period (like .git or .meta)
From the command line:
echo some text > .classpath
Windows seems not to be in control of how Save dialogs handle forbidden characters
Quoting the filename should do the job.
I have no Windows machine to try it out but I was able to save a ".htaccess" file in Notepad this way.

Resources