Advanced tasks using Web.Config transformation

As a matter of fact you can do this, but it is not as easy as you might think. You can create your own config transformation. I have just written a very detailed blog post at http://sedodream.com/2010/09/09/ExtendingXMLWebconfigConfigTransformation.aspx regarding this. But here are the hightlights: Create Class Library project Reference Web.Publishing.Tasks.dll (under %Program Files (x86)%MSBuild\Microsoft\VisualStudio\v10.0\Web folder) … Read more

Docker : How To Dockerize And Deploy multiple instances of a LAMP Application

I recently went through analysis on Docker for this type of setup. I know there are some who view Docker as a sort of MicroVM, but my take is the Docker philosophy leans more toward single process per container. This tracks well with the Single Responsibility principle in programming. The more a Docker container does, … Read more

How to edit code in a Docker container in development?

I found the best way to edit code in development is install everything as usual (including cloning your app’s repository), but move all the code in the container to say /srv/myapp.deploy.dev. Then start the container with a rw volume for /srv/myapp, and a init.d script that cleans that volume and copies the new contents inside … Read more

What alternatives are there to ClickOnce? [closed]

Squirrel: It’s like ClickOnce, but it works. Squirrel is both a set of tools and a library, to completely manage both installation and updating your desktop Windows application, written in either C# or any other language (that is, Squirrel can manage native C++ applications). Squirrel uses NuGet packages to create installation and update packages, which … Read more

How To Compile An Electron Application To A .exe [duplicate]

You need to use Electron Packager. Install it using: # for use in npm scripts npm install electron-packager –save-dev # for use from cli npm install electron-packager -g And package or deploy using: electron-packager <sourcedir> <appname> –platform=win32 –arch=x86_64 If you would like to keep it with the Electron Installation, see Application Distribution. Update : Above … Read more

MSBuild target package not found

I just got this working without installing VS2010 by following these steps on the build server: If .NET Framework 4 isn’t installed, install it Install the Web Deployment tool from http://www.iis.net/download/webdeploy From the C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0 folder on your dev machine copy the “Web” and “Web Applications” folders to the equivalent directory on your build server. … Read more

Curl retry mechanism

The following statement will retry 5 times or a maximum of 40 seconds with a connection timeout of 5 seconds, and no exponential backoff policy curl –connect-timeout 5 \ –max-time 10 \ –retry 5 \ –retry-delay 0 \ –retry-max-time 40 \ ‘http://your_url’ –max-time 10 (how long each retry will wait) –retry 5 (it will retry … Read more

jQuery – Sticky header that shrinks when scrolling down

This should be what you are looking for using jQuery. $(function(){ $(‘#header_nav’).data(‘size’,’big’); }); $(window).scroll(function(){ if($(document).scrollTop() > 0) { if($(‘#header_nav’).data(‘size’) == ‘big’) { $(‘#header_nav’).data(‘size’,’small’); $(‘#header_nav’).stop().animate({ height:’40px’ },600); } } else { if($(‘#header_nav’).data(‘size’) == ‘small’) { $(‘#header_nav’).data(‘size’,’big’); $(‘#header_nav’).stop().animate({ height:’100px’ },600); } } }); Demonstration: http://jsfiddle.net/jezzipin/JJ8Jc/

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