MacBook, defective by design banner

title:
Put the knife down and take a green herb, dude.


descrip:

One feller's views on the state of everyday computer science & its application (and now, OTHER STUFF) who isn't rich enough to shell out for www.myfreakinfirst-andlast-name.com

Using 89% of the same design the blog had in 2001.

FOR ENTERTAINMENT PURPOSES ONLY!!!
Back-up your data and, when you bike, always wear white.

As an Amazon Associate, I earn from qualifying purchases. Affiliate links in green.

x

MarkUpDown is the best Markdown editor for professionals on Windows 10.

It includes two-pane live preview, in-app uploads to imgur for image hosting, and MultiMarkdown table support.

Features you won't find anywhere else include...

You've wasted more than $15 of your time looking for a great Markdown editor.

Stop looking. MarkUpDown is the app you're looking for.

Learn more or head over to the 'Store now!

Thursday, January 31, 2013

Tip: How do I Shut Down a Virtual Machine? - Windows Virtual PC - Site Home - TechNet Blogs:
Figure 3:๏ฟฝ Shutting down the VM
Use Windows Virtual PC functionality
1. On the VM Windowsโ€™s toolbar, click Tools menu item, and click Settings in the drop down menu.

The option to shut down was gone after an update, and following the above instructions (changing the "Close" option at the bottom of the settings window to "ask each time") fixed it -- for now, at least.

posted by ruffin at 1/31/2013 09:57:00 AM
Monday, January 28, 2013

Ran through a "You do not have permission to view this directory or page because of the access control list" error when drumming up a simplest-case javascript app on my local box in c:\inetput\wwwroot\testFolder. It was a permissions issue, but I couldn't figure out how to add the danged IIS_IUSRS into the Security Group or user names box.

This started well (though I'd flubbed my way through most of that already right-clicking around), but I couldn't get the "Add >>> Select Users, Computers, Service Accounts, or Groups" to give up the IIS_USRS user.

Turns out to have been a simple problem.  The "Select Users..." box was defaulting to a network location in "From this location".  Once I clicked the "Locations" button and changed that to "[MyBoxName]", I finally found the fugitive.

Unfortunately, that's still not making the file visible.  /sigh  All I can figure is that I've screwed up includes somehow.  I've got c:\inetpub\wwwroot\testFolder, and in there is a file (index.html) that includes a javascript file in c:\inetpub\wwwroot\includes.

After playing around in inetmgr for a while, I gave up and tried moving the file into the c:\inetpub\wwwroot\testFolder hierarchy, which works.

Huh?

Labels:


posted by ruffin at 1/28/2013 10:40:00 AM
Thursday, January 24, 2013

Using JSONs Special Properties of $ref and $id | Jaress Loo:

I had never seen this $ref and $id tags before, so I didnโ€™t know how to use them or what to make of it. It turns out that in order to condense the JSON object into a smaller object, it avoids rewriting an object twice if it doesnโ€™t have to. In order to accomplish this, the JSON.NET serializer will serialize these special JSON properties of $id and $ref. Every object being serialized will get an $id. If that same exact object is used again somewhere in the same JSON object, it will use a $ref property to tell you that the particular object youโ€™re looking at has already been serialized. It then gives you the $id to lookup as the value of the $ref property so that you know where to find the object being referred to.

Phew. Wondered what $id was for in Json.NET. You can blast that shorthand if you want.

And wow, does this speed up getting info from a database to json. Between the Entity Framework objects and Json.NET, about all you need a programmer for is constructing the LINQ where clause.

Labels: , ,


posted by ruffin at 1/24/2013 08:02:00 PM
Tuesday, January 22, 2013

When you use gq to clean up your code in VIm, that is a pun on GQ (Gentleman's Quarterly), right?  Right?!

It's been my mnemonic for years, and I can't imagine that was a coincidence.  Though maybe it is?

Labels:


posted by ruffin at 1/22/2013 02:37:00 PM
Monday, January 14, 2013

jslint4java - A Java wrapper around Douglas Crockford's jslint tool. - Google Project Hosting:

This is a java wrapper around the fabulous tool by Douglas Crockford, jslint. It provides a simple interface for detecting potential problems in JavaScript code.

Labels: , ,


posted by ruffin at 1/14/2013 10:02:00 AM

Create a custom jQuery plug-in:
... sometimes it's necessary to extend the core functions with custom code that helps you be more productive. In this article, learn how to create a custom reusable plug-in using the jQuery library.

Labels: , , ,


posted by ruffin at 1/14/2013 10:02:00 AM
Monday, January 07, 2013

How to determine the latest changeset in your workspace - Buck Hodges - Site Home - MSDN Blogs:

tf history . /r /noprompt /stopafter:1 /version:W

Here's what that command means.๏ฟฝ The ". /r" part says to look at the current directory recursively, which is why you must run it from the root (top directory) of your workspace.๏ฟฝ Here I've specified "/noprompt" so that I don't get dialog, but that's optional.๏ฟฝ The "/stopafter:1" option tells tf to print only one changeset.

There's got to be a way to do that in Visual Studio (via the UI), but until I stumble over that...

Labels: ,


posted by ruffin at 1/07/2013 02:20:00 PM

sublimetext - Sublime Text 2 - Link with Editor / Show file in sidebar - Stack Overflow:

Just right-click in the file's view and press "Reveal in Sidebar."

You'd think if I'd already voted it up that I might remember the answer.

Labels: ,


posted by ruffin at 1/07/2013 02:17:00 PM
Sunday, January 06, 2013

encoding - How to convert a string from utf8 to ASCII (single byte) in c#? - Stack Overflow:
ASCIIEncoding ascii = new ASCIIEncoding(); 
byte[] byteArray = Encoding.UTF8.GetBytes(sOriginal); 
byte[] asciiArray = Encoding.Convert(Encoding.UTF8, Encoding.ASCII, byteArray); 
string finalString = ascii.GetString(asciiArray);

Apparently still has trouble with emdashes and "fancy" colons and quotes, etc.

Labels: ,


posted by ruffin at 1/06/2013 06:16:00 PM
Friday, January 04, 2013

JavaScript Madness: Keyboard Events:

This document summarizes the results of some browser tests done while attempting to implement key stroke handling code in JavaScript. It documents inconsistancies in the way different browsers implement keyboard events.

Probably blogged this before.

Labels: ,


posted by ruffin at 1/04/2013 09:03:00 AM
Thursday, January 03, 2013

Javascript .NET - Documentation:

This section provides documentation to get quickly started to embed and run Javascript .NET in your application.

The project you were looking for is  Javascript.NET, which is/uses (?) Noesis.Javascript, which embeds the "Google V8" javascript engine.  Enjoy, profit, whatever.

Found that by chasing down how the JSLint plugin for Visual Studio worked.

Labels: , , ,


posted by ruffin at 1/03/2013 09:51:00 AM
Wednesday, January 02, 2013

If Hemingway wrote JavaScript | $$$ fat:

Thatโ€™s all. Hope you enjoyed it. Itโ€™s mostly nonsense.

No, no it's not.  Brilliant.  Go read it now.

Labels: , ,


posted by ruffin at 1/02/2013 11:28:00 AM

Fixing the JavaScript typeof operator | JavaScript, JavaScriptโ€ฆ:

Object.prototype.toString.call(new Date); //"[object Date]"

 Clever, if nothing else.

Labels: ,


posted by ruffin at 1/02/2013 10:35:00 AM

Online JavaScript beautifier:

Beautify, unpack or deobfuscate JavaScript and HTML, make JSON/JSONP readable, etc.
All of the source code is completely free and open, available on the github under MIT licence,
and we have a command-line version and a python library as well.

Labels: ,


posted by ruffin at 1/02/2013 09:51:00 AM
Tuesday, January 01, 2013

iOS 6's 'Do Not Disturb' Not Shutting Off Automatically on New Year's Day - Mac Rumors:

It's this scheduling feature that appears to be misbehaving on New Year's Day. MacRumors reader Spacesamurai posted about his experience:

I am in Japan so it is 2013, and I am finding that my iOS devices (iPhone 4 and iPad 2) are showing "Do Not Disturb" even though it is outside of the time I set for them. Not sure if this is related to the new year. Reloading the devices does not help and the software is up-to-date.

Spacesamurai's experience has been echoed by others, but not everyone.

Apple has had other bugs in the past related to New Year's day. In years past, Apple has had issues with alarms not going off into the new year. Fortunately, the "Do Not Disturb" feature does not disable alarms set with Apple's built-in Clock app.

I thought I'd remembered at least one more New Year's Apple Fail.  Once is forgivable, but then you institute appropriate unit tests.  Apple simply isn't a great software company.  Neat feel, rough edges.  I don't think iOS' Maps surprised anyone who has been watching.

Labels:


posted by ruffin at 1/01/2013 11:36:00 AM

<< Older | Newer >>


Support freedom
All posts can be accessed here:


Just the last year o' posts:

URLs I want to remember:
* Atari 2600 programming on your Mac
* joel on software (tip pt)
* Professional links: resume, github, paltry StackOverflow * Regular Expression Introduction (copy)
* The hex editor whose name I forget
* JSONLint to pretty-ify JSON
* Using CommonDialog in VB 6 * Free zip utils
* git repo mapped drive setup * Regex Tester
* Read the bits about the zone * Find column in sql server db by name
* Giant ASCII Textifier in Stick Figures (in Ivrit) * Quick intro to Javascript
* Don't [over-]sweat "micro-optimization" * Parsing str's in VB6
* .ToString("yyyy-MM-dd HH:mm:ss.fff", CultureInfo.InvariantCulture); (src) * Break on a Lenovo T430: Fn+Alt+B
email if ya gotta, RSS if ya wanna RSS, (?_?), ยข, & ? if you're keypadless


Powered by Blogger etree.org Curmudgeon Gamer badge
The postings on this site are [usually] my own and do not necessarily reflect the views of any employer, past or present, or other entity.