I code Cakephp with Netbeans in Mac Os. My syntaxs in .ctp file doesn't highlighted(colored). I found the answer but only for Windows :( . How can I do for Mac? Tks!
Firstly you'll want to install the CakePHP plugin for Netbeans.
http://plugins.netbeans.org/plugin/44579/php-cakephp-framework
Then you're done.
Windows: Tools -> Options -> Miscellaneous -> Files -> File Extensions -> New -> Type 'ctp' -> OK
MacOS: Netbeans -> Preferences -> Miscellaneous -> Files -> File Extensions -> New -> Type 'ctp' -> OK
Hope this helps!
Go to Tools > Options > Miscellaneous > Files
Select File Extension = 'ctp' - (create one from the new button if the extension doesn't exist in the drop down list already)
Select Associated File Type (MIME) = PHP files
Hope that it will work for you.
Related
I am new to godot engine and have started working on a project(i am using gdscript)...
When I run the project as test it works fine(like in the godot engine), but when I export it, it shows the godot logo and then crashes...
This is my godot file system
godot file system
This is the message i am getting in the debug console
error message in debug menu
platform/windows/os_windows.cpp:2905 - Condition "ret == 0" is true. Returned: ERR_CANT_FORK
Please help I have worked hard on this project and if I cant export all that is for nothing
I'm going to transcribe the error image you linked for you:
platform/windows/os_windows_cpp:2905 - Condition "ret == 0" is true. Returned: ERR_CANT_FORK
editor/editor_export.h:251 - Resources Modification: Could not start rcedit executable. Configure rcedit path in the Editor Settings (Export -> Windows -> Rcedit)
Emphasis:
Configure rcedit path in the Editor Settings (Export -> Windows -> Rcedit)
ERR_CANT_FORK means it could not fork start a new process. Which process?
Could not start rcedit executable
If we search Rcedit on Godot's official documentation the following article shows up: Changing application icon for Windows. It says:
Before selecting it in the export options, you will need to install an extra tool called rcedit. You can download it here.
After downloading, you need to tell Godot the path to the rcedit executable on your computer. Go to Editor → Editor Settings → Export → Windows. Click on the folder icon for the rcedit entry. Navigate to and select the rcedit executable.
To reiterate: Configure Rcedit.
I am using Windows 10 64-bit machine with Visual Studio Professional 2013 and I want to install SystemC. I downloaded SystemC 2.3.1 and I tried following the "Installation notes" provided but they're slightly outdated.
For one, it says "for VS 2005 and higher on Windows 7 machines" but I am using Windows 10, nevertheless I still tried to follow it. Second, the inclusion of src and lib files cannot be followed as stated there since this method was changed in VS2013. There seems to be no global setting anymore via Tools->Options->Projects->VCC++ directions tab.
Now, I was able to successfully buiold the SystemC.sln solution. However, when I tried to build an example project I got the following error:
LINK : fatal error LNK1104: cannot open file
'C:\Users\Andrew\Downloads\systemc-2.3.1a\systemc-2.3.1a\msvc80\SystemC\Debug.obj'
Even though I think I've correctly specified the src and lib directories in the project properties.
Can anyone explain how to build SystemC with VS2013 on Windows 10 x64?
Update: if you use CMake with Visual Studio, check Setting up a SystemC project with CMake: undefined reference to `sc_core
Currently I have no MSVC2013 installed, so here are steps for MSVC2017 that worked for me.
Download latest SystemC from http://accellera.org/downloads/standards/systemc
Open systemc-2.3.1a\msvc80\SystemC\SystemC.sln in Visual Studio
Visual Studio will offer to update solution, click ok. You can ignore report with warnings.
In VS menu bar set configuration to “Debug“ “Win32”. (In my case was already selected by default)
Build solution (F7)
In console, you may find messages like:
Unknown compiler version - please run the configure tests and report the results
You can ignore them. Solution should build without errors:
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
As a result you will have SystemC.lib in systemc-2.3.1a\msvc80\SystemC\Debug
Now you can create some test SystemC project.
File->New -> Project -> Win32 Console application
Right click on project in solution explorer -> Properties
In Configuration Properties -> C/C++ -> General-> Additional include directories
Add path to: \systemc-2.3.1a\src
In Configuration Properties -> C/C++ -> Code generation -> Runtime Library
Select: Multi-threaded Debug (/MTd)
In Configuration Properties -> C/C++ -> Language -> Enable Run-Time Type Information
Select: Yes (/GR)
In Configuration Properties -> C/C++ -> Command Line -> Additional options
Type: /vmg
In Configuration Properties -> Linker -> General -> Additional Library Directories
Add path to: systemc-2.3.1a\msvc80\SystemC\Debug
In Configuration Properties -> Linker -> Input -> Additional dependencies
Add: SystemC.lib
Now it's time to type some code. For example this "Hello world":
#include "stdafx.h"
struct test_module : sc_module {
SC_HAS_PROCESS(test_module);
test_module(::sc_core::sc_module_name) {
SC_THREAD(test_thread);
}
sc_signal<std::string> message{ "message" };
void test_thread() {
message.write("Hello world!");
wait(1, SC_NS);
cout << message.read() << endl;
sc_stop();
}
};
int sc_main(int argc, char** argv)
{
test_module tmod{ "tmod" };
sc_start();
return 0;
}
In stdafx.h add:
#include <systemc.h>
Build project, it will fail with:
\systemc-2.3.1a\src\systemc.h(120): error C2039: 'gets': is not a member of 'std'
gets was removed from std namespace in latest MSVCs, but it is not really required.
So just open systemc.h and comment out Line 120:
// using std::gets;
In case you got error about sprintf
Add _CRT_SECURE_NO_WARNINGS to list of preprocessor definitions
Build again. Run without debugging (Ctrl+F5). You should see the following introduction test on your console:
SystemC 2.3.1-Accellera --- Feb 1 2017 14:43:06
Copyright (c) 1996-2014 by all Contributors,
ALL RIGHTS RESERVED
Hello world!
Info: /OSCI/SystemC: Simulation stopped by user.
Press any key to continue . . .
Hope that helps
Visual Studio 2015
Tool for Apache Cordova Project. Created using:-
cordova create hello com.somedomain.blah HelloWorld
cordova platform add windows
config.xml
Common: Start Page: http://www.bbc.co.uk/
Common: Domain Access: *
When run, either on a device (Windows 10 Mobile) or emulator, the project does not load the start page. No error output is given, it just doesn't do anything.
It works when loading index.html from the www folder.
What am I missing?
The sequence I used to create the project is:-
File > New Project
JavaScript -> Apache Cordova Apps -> Blank App (Apache Cordova)
Edit config.xml
Common -> Start Page: http://www.bbc.co.uk/
Common -> Domain Access: *
Platforms -> Cordova CLI: 5.4.1
Windows -> Windows target version: 10
Debug -> Windows Phone (Universal) -> Device (or Mobile Emulator 10)
After building and launching it does not load the specified start page, instead just showing a square and X splash screen.
Project Files: https://dl.dropboxusercontent.com/u/43876768/BlankCordovaApp1.zip
Attempting to install my custom printer driver that I'm working on (a Unidrv minidriver-based one) fails with this error (Windows 8.1 Pro x64):
The LetterMaster.gpd file can be found here: https://github.com/TazeTSchnitzel/LetterMaster-Unidrv/blob/f9bcd4756bd095629d6a49115af17ce3bb16169c/LetterMaster.gpd (though I doubt it is the problem)
The INF file is known to be fine.
By "install" I mean going to Add printer -> blah -> Have Disk -> choosing the INF file -> clicking Next -> filling in the name of the printer -> Next. It'll then show UAC prompt, seem to go alright for a bit, but then the error above shows up.
EDIT: After using gpdcheck I was able to fix some syntactic errors in the LetterMaster.gpd file which I didn't know existed. Now I have a new error:
The LetterMaster.gpd content is now this: https://github.com/TazeTSchnitzel/LetterMaster-Unidrv/blob/10c4eed1c0b1592dbdd00466bc7a31a259223dbe/LetterMaster.gpd
I can 100% reproduce this - if I clone a repository, drag and drop a couple of files into the cloned directory then add them to the Xcode project, then Xcode will correctly put an A status flag next to them.
But then if I select the new files and do Source Control/Commit Selected Files I get this error:
"The operation couldn't be completed. (com.apple.dt.IDESourceControlErroDomain error -70).
Has anybody else seen this or know what the problem is?
please check your svn authentication has been done properly.
you can check setting in xcode > preferences > accounts > repositories there is not retry authentication warning in particular repository in which you are trying to commit
I've seen this issue too. No idea what is causing the problem.
If you perform SourceControl->UpdateSelectedFiles the issue goes away.
check your setting to xcode > preferences > accounts > repogitories
this works for me! xcode -> preferences -> accounts -> remove gitAccount