Have Grunt generate index.html for different setups

I recently discovered these Grunt v0.4.0 compatible tasks: grunt-preprocess Grunt task around preprocess npm module. grunt-env Grunt task to automate environment configuration for future tasks. Below are snippets from my Gruntfile.js. ENV setup: env : { options : { /* Shared Options Hash */ //globalOption : ‘foo’ }, dev: { NODE_ENV : ‘DEVELOPMENT’ }, prod … Read more

External VS2013 build error “error MSB4019: The imported project was not found”

I had the same issue and find an easier solution It is due to Vs2012 adding the following to the csproj file: <PropertyGroup> <VisualStudioVersion Condition=”‘$(VisualStudioVersion)’ == ””>10.0</VisualStudioVersion> <VSToolsPath Condition=”‘$(VSToolsPath)’ == ””>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> </PropertyGroup> You can safely remove that part and your solution will build. As Sielu pointed out you have to ensure that the .proj file … Read more

Gradle buildscript dependencies

The repositories in the buildscript block are used to fetch the dependencies of your buildscript dependencies. These are the dependencies that are put on the classpath of your build and that you can refer to from your build file. For instance extra plugins that exist on the internet. The repositories on the root level are … Read more

Docker and securing passwords

Definitely it is a concern. Dockerfiles are commonly checked in to repositories and shared with other people. An alternative is to provide any credentials (usernames, passwords, tokens, anything sensitive) as environment variables at runtime. This is possible via the -e argument (for individual vars on the CLI) or –env-file argument (for multiple variables in a … Read more

Error:Execution failed for task ‘:app:compileDebugKotlin’. > Compilation error. See log for more details

I got such error after a simple try of code refactoring. It has happened nor after some library was connected neither any changes in gradle. It looked like something in my code was wrong but the compiler could not found the issue. That’s why I double checked all changes that I did and found that … Read more

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