I have a graphics engine in development, and I can't test it because there's no example on how to display an SDL_Surface on a window in SDL2, and there's no older SDL libraries to D.
I can use examples from C++ too, but even with a lot of searching on he internet I only could find tutorials for SDL 1.2.
SDL_RenderPresent replaced SDL_Flip in SDL 2.
See the SDL 1.2 to 2.0 Migration Guide for more information.
Related
I installed and used a UML plugin found here: UML Plugin for Netbeans 7.0?
Afterword, all of my .java code associated with the UML became black and white and un-editable. Although, I can write extra text it cannot be deleted. Running my project results in "Cannot execute - java executable not found".
I deleted the UML files associated with my projects and the code hasn't returned to normal.
Thanks.
Here is a picture:
This actually occurred to all java files.
Unlike Eclipse, different versions of NetBeans are so different that plugins made for younger versions (6) DO NOT work on later versions (8) by default. You can upgrade only subversions steps (digits after dot) without changing plugins. So you have used two pieces of SW that need not be compatible at all. You used a workaround to make to work the installation. And you can get absolutely any consequences, don't be surprised.
The history of the problem: there is no free UML plugin supporting NetBeans NOW. There was one, of Visual Paradigm, for versions to 6. But it's later variants are not free anymore and they are differently organized. If you want to use the modern version of the plugin, prepare to pay. It is very probable, that the free plugin doesn't work on NetBeans 8 by purpose.
You can try a new different plugin http://plugins.netbeans.org/plugin/49069/plantuml#v2590 of another author. It seems more simple, but at least it won't destroy your IDE. And now you have to save the project, reinstall NetBEans and import the project again.
These languages are supported by MonoDevelop, and there is a way to change the coding style for C#, but how can I do the same for C and C++?
I contacted a MonoDevelop devoloper, who indicated that this functionality does not exist in MonoDevelop.
I'm trying to create a fullscreen window using opencv 2.3 but it doesn't work (But I remember, that it should). The code is very simple.
cvNamedWindow("Name", CV_WINDOW_FULLSCREEN );
I also tried to set window property
cvSetWindowProperty("General Optica" , CV_WND_PROP_AUTOSIZE , CV_WINDOW_FULLSCREEN);
but there is no effect, I get a window but not fullscren.
OS - Windows 7 , 64 bit
OpenCV 2.3
C++
Thanks in advance!
First of all, there is a bug in OpenCV 2.x which breaks fullscreen mode on Windows.
Unfortunately there are no prebuilt version of OpenCV having this bug fixed. To get a binaries with bug fixed you can get the latest OpenCV trunk and build the library yourself. If you don't want to upgrade to the trunk then you can apply changes from revision 6706 to your version of codes (but building from sources is the only option).
Please also note that OpenCV supports fullscreen mode only for Win2k or newer.
And finally you should modify your code as shown below:
cvNamedWindow("Name", CV_WINDOW_NORMAL);
cvSetWindowProperty("Name", CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);
cvShowImage("Name", your_image);
It seems to me the UML module of NetBeans is a bit too much hidden. In NetBeans 6.5 it was very easy to create an UML diagram. No plugin installation necessary or sth. like.
Read my post where I found a zip file to install the UML module.
And now, after this procedure, I got the UML module back, but it seems to me that I cannot create class diagram with it. Do you know how I can do this with NetBeans 6.8?
Update1: There seems to be no support
Update2: Nevertheless somebody seems to got it working.
Converted to answer: The UML plugin is no longer supported in new versions of NetBeans as stated in the wiki http://wiki.netbeans.org/UML. Not sure why, but that seems to be the case, does not answer your question, but it does put it in context. I could be just slowly breaking which is why both you and the blogger you linked to can't gets things to work.
Visual Paradigm has released a community edition for UML 7.2 which is free for non-commercial use.
You can find it at http://www.visual-paradigm.com/download/vpuml.jsp?edition=ce. You have to register for an activation key though!
cant add comment :-( but just want to confirm what DCraft said:
the community edition of Visual Paradigm does not support forward or reverse engineering.
seems the only solution is to use an older version of netbeans
With the current 7.2 Netbeans release the capability for UML Sequence and class diagram creation exists with the Visual Paradigm UML tool (version 10). You can get the trial version for 30 days that will do the reverse engineering from the code. Here is a link to the instructions. http://www.visual-paradigm.com/support/documents/vpumluserguide/2381/2384/66565_reverseengin.html ( The community version has this feature but it is disabled).
If you go here and download the UML module cluster you can simply copy it into the NetBeans install directory and then NetBeans will have UML functionality again!
If you don't feel like looking through the page of module clusters the direct download link is here.
I am using a SDE-NB visual paradigm
I have NB 6.9.1. I've installed the UML plugin but it fails to make reverse engineering (create UML class diagram from existing source).
I didn't want to downgrade to 6.7, so I installed ArgoUML tool.
In order to generate class diagram from existing source you need to follow next steps:
1. File->Import Sources
2. Change the Files of Types to "All Files"
3. Select the directory (where the *.java files are stored) or packages
4. A small dialog window pop up -> select OK
5. On the left hand side, you will see UntitledModel. Click on the _classes and they should occur in right in the diagram as little boxes.
6. To show the attributes/methods, point a class (in the diagram), right click the mouse, select Show->"Show All Compartment"
I'm working on a website that requires a flash mp3 player. I have absolutely no idea the procedures from messing with flash/actionscript/flex etc., however I need to edit the flash very slightly (I need to add two lines of code). There are a multitude of tutorials out there for setting up a flash (or flex or whatever) development environment but, as my needs are so simple, I'd like to go a little more light-weight than that (also, many seem outdated). I guess what I'm saying is I'm looking for a simple way to recompile some existing actionscript (command line is a plus!). Does anyone have a trick up their sleeve to accomplish this?
Download the free/opensource Flex 3 SDK. This includes an ActionScript3 compiler. Run the compiler like this:
mxmlc MyAs3File.as
There's MTASC for ActionScript 2.
You can compile it online here: http://wonderfl.kayac.com/. No mess that way.
I also wanted to say that swftools has exactly what you need. There is a swfc compiler which will compile as2 files. I would really recommend updating the source though. AS3 is much faster than AS2 and there are a lot of tools out there for example mxmlc and fcsh included in the open source Flex sdk. If you are looking for a full blown IDE there is a linux version of Flash Builder that was released as an open source port ... there are a couple other ones out there as well.
General Linux
On linux you can get the source from swftools.org.
Debian / Ubuntu
On debian / ubuntu you can run
apt-get install swftools
Mac OS X
Not exactly 'linux' but on mac OS X if you have homebrew installed you can do:
brew install swftools
Great, but how do I compile the code?
One this is installed you should have a new utility that you can use to do:
as3compile MyAs3File.as
Gotchas
Please note this is not a 1:1 replacement for Adobe's compiler - there are some things that it does not support ( see documentation, FAQ, changelog at swftools.org ) but it worked well for compiling my simple actionscript.