What is module option in tsconfig used for?

TLDR; module in tsconfig.json tells the compiler what syntax to use for the modules in the emitted .js files. Frequently used values are “commonjs” (require/module.exports) or “ES2015” (import/export keywords), but there are other module systems. module affects the module syntax of emitted code while target affects the rest. What does Specify module code generation mean? … Read more

Maven skip compile

<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>default-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> <configuration> <skipMain>true</skipMain> <–Skip </configuration> </execution> </executions> </plugin> Set this to ‘true’ to bypass compilation of main sources. Its use is NOT RECOMMENDED, but quite convenient on occasion. User property is: maven.main.skip. mvn package -Dmaven.main.skip

Compile PyPy to Exe

There is no ready-made way or tutorial on how to do create an EXE from a program using the PyPy interpreter, as far as i know. And it’s not exactly trivial to get things going, i am afraid. In principle, there are two ways to consider for using PyPy’s translations to get a EXE file, … Read more

What are the benefits of a directive template function in Angularjs?

The compilation function can be used to change the DOM before the resulting template function is bound to the scope. Consider the following example: <div my-directive></div> You can use the compile function to change the template DOM like this: app.directive(‘myDirective’, function(){ return { // Compile function acts on template DOM // This happens before it … Read more

Is it possible to compile and execute new code at runtime in .NET?

Yes! Using methods found in the Microsoft.CSharp, System.CodeDom.Compiler, and System.Reflection name spaces. Here is a simple console app that compiles a class (“SomeClass”) with one method (“Add42”) and then allows you to invoke that method. This is a bare-bones example that I formatted down to prevent scroll bars from appearing in the code display. It … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)