The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,861 other subscribers

Archive for 2013

Only on iOS 7 or higher: 12 Days of Gifts on the App Store on iTunes #Apple #Fail

Posted by jpluimers on 2013/12/26

Where last year it would still work on iOS 5 and 6, this year Apple has upped the requirements to iOS 7 leaving many users in the dark: iOS 7 only works on very recent iOS devices.

Too bad:

Incompatible with my 4th Gen IPOD Touch

by Valorian Nova

I spent quite awhile trying to figure out why this won\’t install on my Ipod and when I finally look it up it\’s because my IPOD is capped at IOS 6.1.5 and this needs IOS 7. Really puts a damper on this app for me.

via 12 Days of Gifts on the App Store on iTunes.

Posted in iOS, iPad, iPhone, iPod touch, Power User | Leave a Comment »

Read-Eval-Print-Loop with a twist: repl.it

Posted by jpluimers on 2013/12/26

Just found out about the repl.it site that allows you to do a Read-Eval-Print-Loop with 15 different languages running from within your browser.

Really: from within your browser. Your browser becomes a console “IDE” by first translating the language to JavaScript then executing it on the browser.

They have all their code in a Git repository, with at the root implementations of those languages.

There are only a few pages on the site to complement the “IDE”:

According to their @replit twitter feed they have been around since about September 2011, but there are still regular updates.

–jeroen

Posted in Development, JavaScript/ECMAScript, Scripting, Software Development | Leave a Comment »

Need to check out “Smartvideo for Youtube”.

Posted by jpluimers on 2013/12/26

In the comments of https://plus.google.com/114082637963876028667/posts/6rbYsMCDQtX

I recommend “Smartvideo for Youtube”. It’s a free app for your browser which forces Youtube to load the whole video as soon as you click on it. No more waiting. :)

–jeroen

Posted in Uncategorized | Leave a Comment »

.NET/C#: System.Environment.GetLogicalDrives Method is identical to System.IO.Directory.GetLogicalDrives

Posted by jpluimers on 2013/12/26

My mental association with getting LogicalDrives was always the System.IO namespace, so I’ve always used Directory.GetLogicalDrives Method (System.IO) .

Recently I bumped into Environment.GetLogicalDrives Method (System), and discovered it has been available for the same time: since .NET 1.x.

I was not so much amazed that these methods return exactly the same data, but that they have identical code. Not just a single call to some common code: their code is the same, line by line. In .NET 4, they have the code below. Read the rest of this entry »

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »

WordPress.com’s present: “Press Now” button inserts a backslash (\) before every quote! @wordpressdotcom

Posted by jpluimers on 2013/12/25

WordPress.com had a nice end-of-year present too: inserting a backslash (\) before every single (‘) or double (“) quote on various sites:

It\’s not your fault. Code rots. We don\’t hold entropy against you, but we expect you to give a damn. This story is about code that brings new meaning to the word \’legacy\’. The accidental discovery of this body of code provoked a moral crisis. I wanted to pretend I hadn\’t seen it, yet I couldn\’t justify tiptoeing quietly away. This talk examines the dilemmas we face when balancing our choices today with their cost tomorrow. It\’s not your fault. Even so, it is your responsibility.

Clearly they haven’t watched this video:

Since WordPress.com don’t seem to bother reacting on their payed customer support forum within reasonable amounts for a long while, I’ll be publicly posting about their issues from now on.

Merry X-mas!

–jeroen

via: ▶ Baruco 2013: Here Be Dragons, by Katrina Owen – YouTube.

Posted in Power User, SocialMedia, WordPress | Tagged: | Leave a Comment »

.net – xcopy ASP.NET / WinForms deployment: find common location to access relative files to it (via: Stack Overflow)

Posted by jpluimers on 2013/12/25

StackOverflow user Joe (sorry, no last name) helped me big time by answering my question on Business logic shared by ASP.NET / WinForms: find the location of the assembly to access relative files to it.

Before showing the code at the bottom of this blog post, let me explain the question in more detail:

Basically I was in the midst of refactoring some ‘inherited’ business logic code that – before refactoring – for the ASP.NET side needs to be initialized with an absolute path, but on the WinForms / WPF side only with a relative path to a GetExecutingAssembly directory.

To ease xcopy deployment, I wanted all configuration settings to be relative. But I hadn’t found a common means for these platforms to obtain a directory usable as a root for accessing relative files.

That way I could put identical settings in both the Web.config and App.config, heck even generate them based on a common fragment, whithout having to hard-code absolute path names.

I knew about Assembly.GetExecutingAssembly, but in ASP.NET that location is not where the web site is (both IIS and the WebDevelopment server make use of temporary locations to store the assemblies).

ASP.NET does have Server.MapPath and HostingEnvironment.MapPath, but I didn’t want to make the business logic depend on ASP.NET.

Joe came up with this solution, which works dandy: Read the rest of this entry »

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, ASP.NET, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, F#, Prism, Software Development, VB.NET, VB.NET 10.0, VB.NET 11.0, VB.NET 7.0, VB.NET 7.1, VB.NET 8.0, VB.NET 9.0, Web Development | Leave a Comment »

Meeting Ticker: the estimated cost of a meeting in real time.

Posted by jpluimers on 2013/12/24

Fun: Meeting Ticker.

Posted in LifeHacker, Power User | Leave a Comment »

iTerm2 – Mac OS Terminal Replacement

Posted by jpluimers on 2013/12/24

In my research list: iTerm2 – Mac OS Terminal Replacement.

–jeroen

Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User | Leave a Comment »

X-mas present: Beyond Compare v4 beta for Mac OS X, Windows and Linux

Posted by jpluimers on 2013/12/24

I’ve been wanting this a very long time, so I’m going to install it Right Now ™ (:

Right before X-Mas, Scooter Software did the ANN: Beyond Compare 4.0 beta available on Windows, Linux, and OS X:

Posted: Dec 23, 2013 4:17 PM

Beyond Compare 4.0 beta is now available for testing on Windows, Linux, and OS X.

http://www.scootersoftware.com/beta

This version adds a number of new features: Read the rest of this entry »

Posted in *nix, Apple, Beyond Compare, Delphi, Development, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, Software Development, Source Code Management, SuSE Linux, Windows | Leave a Comment »

Top 10: Windows Firewall Netsh Commands (via: Windows Server content from Windows IT Pro)

Posted by jpluimers on 2013/12/24

For my own reference, especially since setting the network profile in Windows 8 from the UI got much more difficult.

It is doable though, but not in logic places; I like the secpol.msc way most: windows 8 – How do I set my wireless network to be private instead of public? – Super User.
Same for renaming the network, which also has a secpol.msc way that is easy:

  1. Press Win+R, then type secpol.msc
  2. Click on “Network List Manager Policies”
  3. Double-click on your network
  4. Optionally give your network another name
  5. Click on “Tab Network Location”
  6. Set “Location Type” to “Private”

Go back to Network and Sharing Center to check the result.

To start the Network and Sharing Center:

control.exe /name Microsoft.NetworkAndSharingCenter

Top 10: Windows Firewall Netsh Commands | Windows Server content from Windows IT Pro.

including:

  • Checking if the current profile is set to private/public/domain:

netsh advfirewall show currentprofile

Posted in Network-and-equipment, Power User, Windows, Windows 7, Windows 8 | Leave a Comment »