FeedCity logo

FeedCity

Websites and blogs of people that attended a Homebrew Website Club Düsseldorf.

A public list by dan.

lennybacon.com Valid

Make a WebApplication project automatically publish on build

If you want to publish a Web Application project you can call MsBuild with parameters. Having a publish happen on each and every build - there is work to do. Visual Studio project files are MsBuild files since Version 2005. There is a way to force MsBuild and Visual Studio behave as requested. The project file needs to be edited slightly: <PropertyGroup> <PublishDestination>..\..\..\out\YourPublishDirectory</PublishDestination> </PropertyGroup> <Target Name="PublishToFileSystem" DependsOnTargets="PipelinePreDeployCopyAllFilesToOneFolder" AfterTargets="Build"> <MakeDir Condition="!Exists($(PublishDestination))" Directories="$(PublishDestination)" /> <ItemGroup> <PublishFiles Include="$(_PackageTempDir)\**\*.

lennybacon.com Valid

One time zone to rule them all

I just read an article published by YellerApp called “The Worst Server Setup Mistake You Can Make”. I’m running my boxes in UTC and wrote about issues in the past (here and there).

lennybacon.com Valid

Debugging Arquillian Tests in IntelliJ

Clone the tutorial repository from: https://github.com/arquillian/arquillian-examples In IntelliJ click File | Open and select the sub director named arquillian-tutorial. After the dependencies are resolve the project structure is shown. Now I can set a breakpoint in a test, right click the test file and click Debug ‘GreeterTest’: The stacktrace shows I’m debugging the test using the Arquillian stack. The test was executed in the embedded version of Wildfly as the console window reveals:

Mark Asbach - All Articles
• Mark

Carbon footprint and veganism

A while ago, a friend posted a video from Spiegel Online, in which the author claims that 18% of global greenhouse gas emissions were due to meat production, which would be more than the amount produced by transportation. He literally claims that "someone who eats less meat ...

Mark Asbach - All Articles
• Mark

Fixing a fridge WITHOUT using an Arduino :-)

If your fridge breaks, chances are that you don't have an Arduino, a Dallas temperature sensor, and relays lying around. At least I didn't when mine broke and unfortunately, it was a very hot summer day when it did. So, here's the most simple fix: Use a timer switch. Many pe...

Mark Asbach - All Articles
• Mark

Fixing a fridge using an Arduino microcontroller

Our fridge broke during the summer of 2015, more or less on the hottest day. It had only been five years old and we had bought it to be eco-friendly but affordable, so it has an A+ rating (in 2010's standards, more on this below). It turns out that a typical cause for this ...

Mark Asbach - All Articles
• Mark

Brexit

Should a personal blog start with politics? Maybe :-) The last year has been very turbulent regarding international politics. Be it Middle East wars, US elections, or the demise of democracy in Poland - it's been bad news all around, most of which was unexpected, at least to...

Mark Asbach - All Articles
• Mark

New Year resolutions

It might look like a New Year resolution, that I finally started this blog. However, it's merely a coincidence: over Christmas, I've found time to get some projects done (like fixing the fridge using an Arduino - more on that later), which now makes this blog the next entry on my to do list.

So, Happy New Year, little blog, let's get started :-)

lennybacon.com Valid

JavaScript, Date and ISO 8601 part3

As there seems some confusion and issues with JavaScript dates (here and here) I wanted to have a look at google Chrome and its ES6 capabilities. So I opened the javascript-harmony setting, enabled it and restarted chrome. I opened up the developer tools and hacked some ES6: Running it on Chrome 55.0.2883.87 m: Meh! The web is broken and nobody cares… So far, so good, so what?

lennybacon.com Valid

JavaScript, Date and ISO 8601 part2

I had a JavaScript date issue some time ago. Today I looked at the sources of ChakraCore and dug to the point of interest. // Compute the time value timeValue = TvFromDate(year, month, day, timePortionMilliseconds - utcOffsetMilliseconds); if (isLocalTime) { // Compatibility note: // In ES5, it was unspecified how to handle date strings without the trailing time zone offset "Z|(+|-)HH:mm". // In ES5.1, an absent time zone offset defaulted to "Z", which contradicted ISO8601:2004(E).

lennybacon.com Valid

JSON View replacement

JSON View has a security issue due to an XSS vulnerability. JSON Formatter (Chome Store) is an alternative. As I like dark themes I updated the Stylish definition: HTH, Daniel

lennybacon.com Valid

Allow your account to sudo

I have the installed the bash of the Linux sub system on my Windows 10 now for quite some time. Today the prompt informed me about available updates for packages. I tried to sudo to run the apt command but failed. {account} is not in the sudoers file. This incident will be reported. So I had a look at the /etc/sudoers file: ... # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL .

lennybacon.com Valid

If time is an issue, the lack of reading might be the root cause

Look at the following code: var x = new Date('2016-01-29T14:00:00'); console.log(x.getTime()); Running it in different browsers is surprising 1454076000000 // Chrome | FF | Opera 1454072400000 // IE | Edge MDN says: The getTime() method returns the numeric value corresponding to the time for the specified date according to universal time. I repeat according to universal time! ECMA Script Spec says: Time is measured in ECMAScript in milliseconds since 01 January, 1970 UTC

lennybacon.com Valid

The only thing you can trust is your trace output!

The Visual Studio Team is in the process of switching the debugging engine (at least since VS 2013). Today I experienced a really scary behavior. Here is a screenshot of the legacy engine and the new one – both failing to show me that the List contains 75 items, but in different ways. Lesson learned: The only thing you can trust is your trace output!