Welcome to the Lounge

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

I've found that using KeyTweak is a tremendous help when I get a laptop that has a keyboard layout that has just a few keys positioned where I don't want them.

Theoretically, you could use it to rearrange the entirety of your laptop's keyboard's keys (changing it to DVORAK or AZERTY, et cetera); keep in mind, though, that any external keyboards you use will also have their layouts modified.

It took a quick look at that page, it says it's using a registry feature to adjust the layout. That limits its usefulness because AFAIK nothing at that level can treat one keyboard differently from a second, which means that if you remap your laptop keyboard to un it, any external keyboards will end up with an ed layout instead.

That became a major issue for me a month or two back when work bought me a fruitbook and installed bootcamp on it for me to do my normal work. That stuck me with a laptop keyboard which had all the windows control keys in a different order than my external one; making it next to unusable.

Hunting around for fixes I first found and quickly discovered that registry based tools were useless for my needs. I then discovered that autohotkey could do things on a per-keyboard basis. However users on the AHK forum itself recommended against doing so (very brittle implementation it seems) and instead pointed me toward the Interception driver/api package and a CLI remapping tool written by someone who needed it for gaming purposes. That's worked reasonably well since I got it setup (the initial install has all the user friendliness of a homebrew foss project ) and figured out how to adjust the mapping files it generated manually (it records keydown+keyup on a keydown and nothing on keyup, which broke anything that needed a key held down; fortunately splitting it up wasn't that hard to do).

The only limitations are that it can't successfully remap the fruitbooks fn key (I assume the touchbar support needs a special non-standard driver in the loop); and that the tool runs as a console window instead of in the tray or completely headless.

I've considered writing my own app around the api, but as always procrastination is the greatest nation and nothing has happened yet.

Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt

I refuse to use a laptop keyboard at all. Being flat in physical orientation I find them impossible to work with.

I even went so far as to purchase an external keyboard that broke down into 3 pieces, so they would fit into my computer bag. The two main pieces were half of a standard keyboard, right and left. The third was a number pad.

I used it until I wore it out. I now use a standard USB keyboard.

I must admit I am a "Hunt and Pecker". The major regret I have is that I never learned to touch-type.

Software might rust, but programmers don't, I am happy to say.
They do fade away into forgotten languages, frameworks and tools however.

Here's one way to better appreciate the keyboard you're using -- try using one of those roll-up silicone keyboards. They've got sort of a "mushy" feel to the keys Keyboard (sometimes described as being marshmallows or Jell-O), combined with the "grippy" feel of the silicone on the fingertips makes it a not-so-pleasant experience. Next level of torture would be an 1970s/1980s era "Chiclet" keyboard found on some 8-bit micros... or worse -- keyboard from a Sinclair ZX-80 and ZX-81 (hrm... imagine the level of torture you could inflict if it also replicates the experience of the wobbly 16K memory expansion).

AGGGH! NOOOOOOO!
Add sugar by all means - I do, even with GOOD coffee to moderate the bitterness - but not milk. The fat and lactic acid destroys quite a lot of the more subtle flavours.
Try an experiment: make a cup of decent coffee, and split it between two cups. And milk to one then taste them both - the milky one will be sweeter, but a lot less complex (taste the black one first, or you'll have to wait for the fats from the milk to dissipate from your tongue before you taste it properly).

AGGGH! NOOOOOOO!
Add sugar by all means - I do, even with GOOD coffee to moderate the bitterness - but not milk. The fat and lactic acid destroys quite a lot of the more subtle flavours.
Try an experiment: make a cup of decent coffee, and split it between two cups. And milk to one then taste them both - the milky one will be sweeter, but a lot less complex (taste the black one first, or you'll have to wait for the fats from the milk to dissipate from your tongue before you taste it properly).

"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."- Mr.Prakash One Fine Saturday. 24/04/2004

You faarrrkkkking calling me a Cane Toad? Only them no tastebuds Queenslanders drink that shite.

Coopers, preferrably the Sparkling Ale or Stout and the only good thing to come out of Queensland, Bundy Rum.

Michael Martin
Australia

"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."- Mr.Prakash One Fine Saturday. 24/04/2004

I've got a ways to go before it's complete. The codebase is part of a Parser Construction Kit ("Puck") that lets you combine different grammars with different parse engines and will include an LL(1) parser and hopefully a LALR(1) parser.

Everything is run and generated from a common core, and grammar system, or exported to other formats for other parser generators. Or imported from other formats. Or imported and then re-exported (transformed)

It's pretty awesome. It won't do all grammar formats without manual modification to them at first (primarily with the lexers) but i'm working on that.

When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

It's official - I've restarted drinking after an eight year hiatus (before which I was downing 3 triple espressos a day). Decided to put my toes back in the water with a half cup a day habit. The rush is delightful, and I hope to be able to extend my workday a bit more. Right now I quit around 3:00am, so God knows how out of sync I'm going to get. But I have a feeling I'm gonna love it.