ASP.NET Bundling – Bundle not updating after included file has changed (returns 304 not modified)

I just had the exact same problem. I have a folder with 2 CSS files: ~/Content/main.css ~/Content/main.min.css (pre-existing from my previous manual minification process) My bundling code is this: bundles.Add(new StyleBundle(“~/css/main”).Include(“~/content/main.css”)); No matter how much I changed my main.css the output was the same url with the same contents: <link href=”https://stackoverflow.com/css/main?v=6Xf_QaUMSlzHbXralZP7Msq1EiLTd7g1vId6Vcy8NJM1″ rel=”stylesheet”/> The only way … Read more

Android: How to pass Parcelable object to intent and use getParcelable method of bundle?

Intent provides bunch of overloading putExtra() methods. Suppose you have a class Foo implements Parcelable properly, to put it into Intent in an Activity: Intent intent = new Intent(getBaseContext(), NextActivity.class); Foo foo = new Foo(); intent.putExtra(“foo “, foo); startActivity(intent); To get it from intent in another activity: Foo foo = getIntent().getExtras().getParcelable(“foo”);

Symfony2 – creating own vendor bundle – project and git strategy

Create a new empty symfony project php composer.phar create-project symfony/framework-standard-edition demo/ 2.4.1 cd demo Generate a new bundle (for example src/Company/DemoBundle) php app/console generate:bundle cd src/Company/DemoBundle/ Init your github repository in src/Company/DemoBundle git init touch README.md git add . git commit -m “initial commit” git remote add origin https://github.com/YourAccount/DemoBundle.git git push -u origin master Add … Read more

Can someone explain Webpack’s CommonsChunkPlugin

This is how the CommonsChunkPlugin works. A common chunk “receives” the modules shared by several entry chunks. A good example of a complex configuration can be found in the Webpack repository. The CommonsChunkPlugin is run during the optimization phase of Webpack, which means that it operates in memory, just before the chunks are sealed and … Read more

Advantages of using Bundle instead of direct Intent putExtra() in Android

It makes little (if any difference). The code using an additional bundle is slightly heavier (it won’t make any difference in any practical application) and slightly easier to manage, being more general. If one day you decide that – before sending information inside an intent – you want to serialize the data to database – … Read more

How can I specify an explicit ScriptBundle include order?

You could write a custom bundle orderer (IBundleOrderer) that will ensure bundles are included in the order you register them: public class AsIsBundleOrderer : IBundleOrderer { public virtual IEnumerable<FileInfo> OrderFiles(BundleContext context, IEnumerable<FileInfo> files) { return files; } } and then: public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { var bundle = new Bundle(“~/bundles/scripts/canvas”); … Read more