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!

Monday, October 31, 2011

Visual Studio supports sending your code to an external tool, and one of those can be VIm. So hello, F1 to VIm.

Integrate gvim with Visual Studio - Vim Tips Wiki:

Vim as an External ToolEdit
If you like Vim and use MS Visual Studio .NET for debugging and want a lightweight way to open the file you're currently debugging in VS in Vim, you can add Vim as an external tool. This will let you use a single keystroke to open the current VS file in vim with the cursor at the same line and even at the same column.

The Tool: In Visual Studio, Tools > External Tools > Add:

Title: &Vim
Command: C:\Vim\vim73\gvim.exe
Arguments: --servername VimualStudio --remote-silent +"call cursor($(CurLine),$(CurCol))" $(ItemFileName)$(ItemExt)
Initial directory: $(ItemDir)
If you have other settings you'd like to apply (like normal zz to centre the cursor or updating path for :find, then you can put them in ~/.vim/visualstudioinvoke.vim and add +"runtime visualstudioinvoke.vim" before $(ItemFileName).

The Shortcut: In Visual Studio, Tools -> Options -> [Environment ->] Keyboard:



Command: [Tools.]ExternalCommand1 (it's easiest if you move your Vim external tool to be the first, otherwise use the correct index).
Shortcut key: [image and bracketed jive mine -mfn]

Labels: ,


posted by ruffin at 10/31/2011 10:58:00 AM
Wednesday, October 26, 2011

Quick refresh. From php/mySQL to ASP.NET again takes a quick head rethread.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

string strReturn = "";

if (!IsPostBack)
{
strReturn += "Not a post back<br>\n";
}
else
{
strReturn += "Post back<br>\n";
}

strReturn += Request.QueryString.Count + " :: " + Request.Form.Count + "<br>";


if (null == Request.Form["spam"]) {
strReturn += "nullige<br>\n";
}
else
{
strReturn += "<h2>" + Request.Form["spam"] + "</h2>\n";
}

foreach (string strKey in Request.Form.Keys)
{
strReturn += strKey + " :: " + Request.Form[strKey] + "<br>\n";
}

foreach (string strKey in Request.QueryString.Keys)
{
strReturn += strKey + " || " + Request.QueryString[strKey] + "<br>\n";
}


Response.Write(strReturn);
}
}
}



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
Inherits="WebApplication2._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<input runat="server" type="text" name="nameIsWorthlessOnServer" id="spam" value="pow" /><br />
<input type="submit" runat="server" />
</div>
</form>
</body>
</html>

Labels: , ,


posted by ruffin at 10/26/2011 09:53:00 AM
Saturday, October 22, 2011

I keep looking for good, clear programmer fonts to make my screen "bigger" on my laptop. Recently took an on-site contract where the monitors are 1280x1024 (iirc, and [sic] while we're at it). That stinks. I'm bringing in an old CRT for now, as apparently items not bolted down sometimes walk over the weekend, but I again wanted a tiny font.

I usually use ProFontWindows or, about as good and even smaller, Proggy Tiny, but these are still at least 7px wide. You'd think 180 chars would be enough, but with VS' solution explorer taking up so more, etc etc...

So are there any good 5 and 6 pixel wide monospace programming fonts? Not really. There's really only one source, and that's here (EDIT: Looks like that's gone; URL now to archive.org version). From the site...

These are fixed-width fonts converted to TTF and FON format from the original X11 sources. You will recognize them as the default xterm fonts; they are widely used. They are especially useful for console apps. We programmers can't live without them!


I've tried them out. The 5px wide version is tough on the eyes. I could feel the strain. The 6px is almost good enough, but eventually I went back to Proggy. Not sure if I could stand to keep using 6px wide or not. There are a number of heights to choose from.

But do check out the "g" on 5x7, just for kicks. Poor little tail. I'm not sure there's another, better way to make it work, though.

5x7

I mean, it's legible, but I don't want to stare at it, you know?

Labels:


posted by ruffin at 10/22/2011 04:07:00 PM
Thursday, October 13, 2011

Not a good month.

I'll try not to say, "Goodbye, World," as if I was the first person to think of it.

posted by ruffin at 10/13/2011 04:34:00 PM
Wednesday, October 12, 2011

Re-enabling Key Repeat in OSX Lion | Belchak.com:

I have recently upgraded to OSX Lion, and I have to say that I love everything about it. Except for one thing. In many apps, the key repeat has been disabled in favor of the new press-and-hold popup for getting alternative characters.

Run the following in your Terminal.app:

defaults write -g ApplePressAndHoldEnabled -bool false



Seems like there's got to be a better way in the System Prefs, but thank heavens. I can use VIm again, specifically IdeaVIM in PhpStorm.

posted by ruffin at 10/12/2011 11:37:00 PM

<< 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.