UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0 when deploying to Heroku

That entire traceback is inside these parentheses: () is not available for this stack. That is the message shown when you request a Python runtime that isn’t available. In this case, it looks like your runtime.txt can’t even be read due to an unexpected encoding. Delete it, then create a new file containing something like … 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

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/

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

Bootstrap grid with fixed wrapper – Prevent columns from stacking up

The sm,md,lg,etc.. cols wrap/stack responsively. Use the non-stacking col-xs-* class… <div class=”container”> <div class=”row”> <div class=”col-xs-4″>.col-4</div> <div class=”col-xs-4″>.col-4</div> <div class=”col-xs-4″>.col-4</div> </div> </div> Demo: http://bootply.com/80085 EDIT: Bootstrap 4, the xs no longer needs to be specified.. <div class=”container-fluid”> <div class=”row”> <div class=”col-4″>.col-4</div> <div class=”col-4″>.col-4</div> <div class=”col-4″>.col-4</div> </div> </div>

allowDefinition=’MachineToApplication’ error when publishing from VS2010 (but only after a previous build)

i had the same problem with my MVC apps. it was frustrating because i still wanted my views to be checked, so i didn’t want to turn off MvcBuildViews luckily i came across a post which gave me the answer. keep the MvcBuildViews as true, then you can add the following line underneath in your … Read more

How do you include additional files using VS2010 web deployment packages?

Great question. I just posted a very detailed blog entry about this at Web Deployment Tool (MSDeploy) : Build Package including extra files or excluding specific files. Here is the synopsis. After including files, I show how to exclude files as well. Including Extra Files Including extra files into the package is a bit harder … Read more

How can I update the parent’s state in React?

For child-parent communication you should pass a function setting the state from parent to child, like this class Parent extends React.Component { constructor(props) { super(props) this.handler = this.handler.bind(this) } handler() { this.setState({ someVar: ‘some value’ }) } render() { return <Child handler = {this.handler} /> } } class Child extends React.Component { render() { return … Read more