Add a custom javascript library in Netbeans 7.3.1 - netbeans-7

I have a custom javascript library that I want to use in Netbeans, I created an HTML5 Javascript project, I can add a jQuery, ExtJS in the properties of my project but there is no way of adding a custom Javascript lib.
Any help is much apreciated.

Just include the library manually to the html
(And copy your lib into the path ofc)
Edit (to low reputation):
http://forums.netbeans.org/topic20226.html even though it is for NB 6.8 it says that they are dropping the support for adding custom-libs due to the fact that it is so easy just to copy the lib manually. I would guess that this might still be valid reason for the NB-team.

Related

What is the use of gulp-sourcemaps?

I'm learning angular2 and I have seen the gulp-sourcemaps plugin used in the angular2-quickstart project. My question is general, why we use the gulp-sourcemaps? In what circumstances I should use this plugin?
It automatically creates source maps from your code. A source map is used to tell you which file and line in your original code a part of minified code comes from. So sourcemaps can be very helpful when debugging minified Angular apps in the browser.

Why do I need a .swc file when compiling against an Adobe Native Extension?

I'm new to Adobe AIR development and have been developing a Native Extension.
Apparently, I need to include with the .ane file, a .swc file that is needed to build against the .ane. Why is this? Why can't the developer just build against the .ane? What is missing in the .ane that the .swc provides?
I'm trying to write internal documentation about the project and have gotten stuck on this question.
The SWC is totally unnecessary in most development situations.
There are two situations where the SWC may be required:
If you are using an older development environment, where ANE's weren't supported you may be required to use a SWC to successfully build your code and then package with adt from the command line
If you are trying to use an ANE in a library, you'll need to build the library against the SWC and then package your application with the library and the ANE
A decent ANE developer will actually include a SWC packaged inside the ANE. The default library should be included in every ANE to handle the situations where the platform isn't supported (returning isSupported false etc). So when distributing ANE's you don't need to include a SWC, as it can be obtained via the following:
unzip the ANE
browse to META-INF/ANE/default
use the SWC located in that directory
You do not necessarily have to use an SWC in combination with an ANE. The ANE does already work standalone. I have used a few ANEs (like Native Dialog, Vibration, AdMob) without the SWC. However, I cannot answer why most of the time an SWC exists.
When you developing your ANE - you must provide AS3 API wrapping classes that your AS3 editor will read and use it for code hints + compiler will know what to do when you compile your app.
ANE contain swc inside so you don't neet to provide eexternal swc. Just use 1 ANE. Buy SWC is required to ANE developing. Not for end user. But I know in some cases old software don't know how to parse ane correctly and you need to provide also swc.
But I don't use swc + ane. Just one ANE.

objective-c static library intellij appcode

New to objective-c. Finally found a tutorial that describes how to create and use a static library in x-code. I'm surprised that building and using libraries is such an arduous process. Is there a more efficient way to create and use static libraries?
I installed JetBrain app-code. But I can't follow the same steps since I can't figure out how to create a workspace in app-code.
Could someone please lists the steps for creating and using a static library in app-code?
Also, how can I change my build path in app-code? I tried to change the path in project properties...there is a text-box but its value keeps reverting back to the default?
I think I'm missing something, because the jet-brain products I've worked with (resharper for C#, and intell-j for Java) are very high quality.
Thanks in advance.
at this moment, AppCode doesn't have full project configuration facilities: you cannot create targets in it. This functionality will be added in the future versions.
Meanwhile, you can use Xcode to setup you project and then switch back to AppCode.
As for the build path reverting to the default, could you please file a bug report in the tracker?

Xcode: how to build a static library project correctly?

This question will be easy for Xcode pros but for a MonoTouch developer it seems to be impossible to resolve. :-)
I'm using Xcode 4.5 and I want to target iOS 5.1 and above and iOS Simulator 5.1 and above.
I have a a library project here and it is coming with a prebuilt binary named "DemoLib" (no extension and it is 11MB in size). The library is a fat lib for Simulator and iOS 5.1+.
I can use that library without any problem.
However if I try to build the library myself, I end up with a "DemoLib.a" file (notice the extension and the size of 30MB). How can I get the same build result? What is a .a file compared to the file without extension?
I tried to build the project "for running", and "for archiving" in Xcode. Both results in the same 30MB .a file.
I was expecting some dropdown in Xcode where one could select "DEBUG" or "RELEASE" build and the latter one would create the smaller lib.
Of course I could never tell without seeing the framework's project file. Having said that, there is an excellent guide to creating and compiling iOS frameworks here: https://github.com/jverkoey/iOS-Framework
Using the above guide, you should be able to recreate your framework's project from scratch, add the files you have to it, and properly compile it.
Hope this helps! :)
Did it come with a Makefile? Create a new target, set the build settings of the target to what's in the Makefile, then set your project to depend on that new target.
A file with the .a is a static library, which means it depends on nothing external and all the code it needs is compiled inside it. I think no extension generally implies dynamic library, which means it'll depend on some dependencies being present on your system to link against. Maybe that's why the .a is so much bigger. I think Xcode will build static by default because iOS does not allow the use of dynamic libraries.
The dropdown for what to build is in your scheme. Command+shift+< to view your scheme. Within the scheme you can edit which environment each method of building will use.

where can I get a XD version dojo source

WHere can I get a XD version of dojo source like the one hosted on google? What I want to do is to host dojo source from my local CDN, and my custom dojo module in my web application. Is this a good practice? or I might as well just include the dojo source in my web app, and run the custom build?
Thanks,
You can build an xd version of dojo from the source code
Here are instructions on how to do it:
http://dojotoolkit.org/reference-guide/1.7/quickstart/custom-builds.html
See the section on "doing xdomain builds"
In our organization (a large one), we do have a CDN version of dojo deployed on internal CDN mainly since some of our webapps are not allowed to access extranet (firewall issues).
For performance, though, a custom build gives biggest boost since it is customized to the modules you need/use - once the custom build is done, you only need to ship a single compressed js output file and a small number of supporting files
When doing your custom build, you can use the xdDojoPath and loader=xdomain if you wish to use cross domain dojo to load your optimized js - see http://osdir.com/ml/cometd-users/2011-08/msg00050.html for some notes on this
Also see related SO question: Dojo on a CDN vs own install
The good news is that with Dojo 1.7+ and the new loader, you don't have to do anything special for a cross domain build (good answer above from #Vijay Agrawal, but I think that reference guide link may need some updating for 1.7) Just write your code to the new AMD format, use asynch:true, run the build tools to create layers, and deploy them on any server. AMD makes use of callbacks and many of the tricks the old Dojo xd builder used to employ, but in a much simpler way.
To support older code, there is a legacy cross domain mode mentioned in the loader docs.