xcode change the console output to terminal 9.1 - c++

Hey guys i'm learning about algorithms at the moment and I have written the Lee algorithm.
What I'm trying to do now is highlight the shortest path it finds in red text in the console.
I found this thread which explains what it is I'm trying to do however the option is no longer there in xcode 9.1
The answer: Output bold text to console in C (on Mac - Xcode)
When I go through edit scheme > options > run the tickbox is not there, any ideas?

I had the same problem. Solution:
instead of 'edit scheme' click 'new scheme', give it a name and save
now choose that new scheme you've just created and click 'edit
scheme'
go to the 'Info' tab and in a menu 'Executable' choose
'Other...'
in file window go to search input field and type
'terminal' and click on its icon when you find it. Now you should see 'Terminal.app' in 'Executable' field
go to the 'Arguments' tab, click on + and copy and paste this line there: ${BUILT_PRODUCTS_DIR}/${FULL_PRODUCT_NAME}
click 'close' and run your program with your new scheme selected
Normally Xcode will open terminal for you. If not, you may also turn off any debug related fields in the 'Info' tab. Hope this helps!
Full tutorial here:
https://www.raywenderlich.com/163134/command-line-programs-macos-tutorial-2

when in edit scheme > options > run, by default it would be under info tab. That checkbox will be available under option section

Related

SAS EG -How to keep "Program" window open when error in log

I've just switched to SAS EG from PC-SAS. If I run code from the Program tab, and it creates an error, my view is automatically changed from the Program tab to the Log tab. I'd like to turn this off. Is there an option for this?
Go to menu Tools-> Options -> Results. Under managing results section, uncheck "Display SAS log when errors occur."
As a side note, under Tools->Options->SAS Programs->Editor Options you will find a familiar menu for customizing how the editor looks and works.

Highlighting of a makefile in eclipse

I have two makefiles in Eclipse, one is named all.mak and the second is called Makefile.
My Problem is that Makefile is highlighted correctly when opend with the Makefile-Editor but alle.mak is not.
I know that under Window→Preferences→General→Editors→File Associations one can set the Makefile-Editor to open this file and I did so (but no highlighting for all.mak).
Is there another preference I have to make for correct highlighting of the all.mak-File?
Yes, there is another preference to set. Go to..
Open the preferences view: Window → Preferences
General (in left panel)
Content Types
In the right panel ("Content types"): Text
Makefile
Press the 'Add' button, and enter the same filename as you did in the File Association view.

How to install new features or shortcuts?

At home, I am using ColdFusion Builder 1.0
When I have a file open and press ctl+shift+O, it outputs this
<cfoutput></cfoutput> or writeOutput();
When I have a file open and press ctl+shift+a, it outputs this:
<cfabort> or abort:
When I have a file open and press ctl+shift+d, it outputs this:
<cfdump var=""> or writeDump():
At work, I am using ColdFusion Builder 2.0.1. None of "features" described above work. I want to get them to work. What are the features called? Shortcuts? Do I need to download and install them separately? I have searched everywhere to find out how to make this happen and have had no luck. Please advise.
I believe what you are looking for is referred to as "keys" under the preferences in ColdFusion Builder. Click on the "Window" menu, then click on "Preferences". This opens a new Preferences window. In the left side navigation expand "General" and click on "Keys". On the right side you will see a list of all the predefined keyboard short-cuts (that is my terminology for it).
There is also another "Keys" option in the preferences under "ColdFusion", and then "Profiles". This is a shorter list than the other.
Also on the right side of that preferences window is a filter box. If you type in that box it will search the string for you. So, for example, you can type "cfabort" in that box and it will show you the entry for that: Ctrl+T A.
For what it's worth, your shortcuts did not work for me either in ColdFusion Builder 2. I did some searching and found the following ColdFusion Builder 2 documentation page mentioning that some keyboard shortcuts were changed from ColdFusion Builder 1. Keyboard shortcut enhancements. The shortcuts that you are asking about have been changed. Now they are:
Ctrl+T O for <cfoutput>
Ctrl+T A for <cfabort>
Ctrl+T D for <cfdump>
And if you just type Ctrl+T and then wait a few seconds a menu will be displayed with the available options to pick from.

Does ColdFusion Builder have split screen editing like Homesite+, and how do I turn it on?

Does ColdFusion Builder have split screen editing like Homesite+, and how do I turn it on? How do I activate word wrap?
Thanks much!
In order to see 2 files tiled at the same time within ColdFusion Builder 2, follow the steps below:
Open the file
Right click the tab with the file name
Choose Move Editor
You will see the file outlined in black in the interface, it is now attached to your cursor
Click to the right of the Source tab in the open area
This will allow you to view both files at the same time, one above the other
The file you select will be the active file
You can still use the Source and browser tabs, they will reflect whatever file is the active one
Word Wrap:
Go to Window > Preferences > HTML > Editors. Click the Advanced tab and check Enable word wrap. Restart CF Builder.
If you want to compare 2 files, there is an easier way.
Select both files
Right-click one of them
Select 'Compare With --> Each Other
Eclipse will then show you the 2 files side by side, and highlight any differences.
ColdFusion Builder 2016 (AKA 3.1) offers "split view" for both horizontal (CTRL+_) & vertical (CTRL+{), but the hotkeys don't appear to work at the moment. This can be accessed via the "Window | Editor" menu. You can also search the "Quick Access" search box and type "Split" and then choose the toggle options that appear.
In ColdFusion Builder 2016 the keyboard shortcut is: (CTRL+SHIFT+_) AND (CTRL+SHIFT+{)

XFDF pdf opening in same window in IE

I'm working on a project that collects data from the project then displays it using xfdf to populate a .pdf file. Now when I use Chrome or Firefox it opens in a new tab which is exactly what I want, but some of my clients will be using IE, which opens it in the same window and causes some confusion. What area of the code should I be looking at in order to tackle and solve this problem?
I can show code examples, just let me know what I need to show.
Thanks,
Steve
Edit: When I click 'Print Application' button, it asks me to save or open the file. When they click open, it opens in the same tab, I want it to appear in a new tab.
In my experience, the best way to accomplish this is to alter your template linking to the PDF. For example:
Clicky!
This should work in all browsers.