All Questions

107
votes
9answers
75895 views

How can I use/create dynamic template to compile dynamic Component with Angular 2.0?

I want to dynamically create template. This should be used to build a ComponentType at Runtime and place (even replace) it somewhere inside of the hosting Component. Until RC4 I was using ComponentR...
123
votes
5answers
145119 views

Compiling dynamic HTML strings from database

The Situation Nested within our Angular app is a directive called Page, backed by a controller, which contains a div with an ng-bind-html-unsafe attribute. This is assigned to a $scope var called 'pa...
1291
votes
4answers
117109 views

Why does changing 0.1f to 0 slow down performance by 10x?

Why does this bit of code, const float x[16] = { 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6}; const float z...
195
votes
9answers
83695 views

Why do you have to link the math library in C?

If I include <stdlib.h> or <stdio.h> in a C program I don't have to link these when compiling but I do have to link to <math.h>, using -lm with gcc, for example: gcc test.c -o test ...
272
votes
4answers
87404 views

Less Aggressive Compilation with CSS3 calc

The Less compilers that I'm using (OrangeBits and dotless 1.3.0.5) are aggressively translating body { width: calc(100% - 250px - 1.5em); } into body { width: calc(-151.5%); } Which is obviousl...
98
votes
7answers
204151 views

Compiling a java program into an executable

Possible Duplicate: How do I create an .exe for a Java program? I've just made a simple program with eclipse and I want to compile it into an executable, but simply can't seem to find out h...
32
votes
2answers
22657 views

How do you dynamically compile and load external java classes?

(This question is similar to many questions I have seen but most are not specific enough for what I am doing) Background: The purpose of my program is to make it easy for people who use my program t...
211
votes
17answers
94834 views

Displaying the build date

I currently have an app displaying the build number in its title window. That's well and good except it means nothing to most of the users, who want to know if they have the latest build - they tend ...
92
votes
9answers
192007 views

Using G++ to compile multiple .cpp and .h files

I've just inherited some C++ code which was written poorly with one cpp file which contained the main and a bunch of other functions. There are also .h files which contain classes and their function d...
24
votes
5answers
25951 views

Compile code using JavaFX 2.0 (using command line)

I wonder how to compile code using JavaFX, from a Windows shell. I have this code in fxservidor.java: public class Fxservidor extends Application { /** * @param args the command line argum...

Previous Next