Archive for the ‘Miscellaneous’ Category

Overload capslock keyboard key in windows

January 24th, 2017

We all have this centrally keyboard key that is seldom used. I am thinking of caps lock.

I wanted to use it as an alternative key, not as ctrl or anything; but as something totally different that does not invade existing short cuts.

Rewiring the capslock is harder than it looks at first glance.
I didn’t find a Good solution but at least one that works; for now.

Autohotkey

Autohotkey aka AHK is for writing macros for keyboard, mouse(?) and joystick. The language is awful but don’t let that scare you away.

I have mapped CapsLock to be used with j, k, l and ; to navigate.
Capslock by itself is Esc.

Source code

Regular header stuff in the file:

1
2
3
4
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

Make Capslock not work as capslock but also make it work as Esc:
(I believe some magic is involved.)

1
2
3
SetCapsLockState AlwaysOff
!CapsLock::CapsLock
CapsLock::Send {Esc}

Map the personal stuff. In my case navigation:

1
2
3
4
CapsLock & j::Send {Left}
CapsLock & k::Send {Right}
CapsLock & `;::Send {Down}
CapsLock & l::Send {Up}

Unfortunately I don’t remember the sources I puzzled together my solution form.

Quit skype with alt-F4 (Autohotkey needed)

October 20th, 2016

Due to overzealous user interface design Skype does not close with alt-F4 but instead minimises. That is not considered good behaviour.

I have found no setting in Skype to restore it normal Windows behaviour.

So I found and copied a Authotkey script that restores makes alt-F4 properly close Skype.

1
2
3
4
5
6
#IfWinActive ahk_exe Skype.exe ahk_class tSkMainForm
!f4::
WinClose
ExitApp
Return
#IfWinActive

Kudos to original article https://autohotkey.com/board/topic/126066-script-to-run-skype-with-real-alt-f4/

Keyboards, keyboards, keyboards

March 24th, 2015

I develop programs. I touch type. I use a keyboard extensively.

I don’t take light on keyboards and don’t understand other keyboard jockeys that just use whatever comes with the machine.

I’d love to make my own keyboard.

Here is a the Geekhack forum for DIY and buy.

Software:

I have made my own 1337 keyboard layout that mixes the layout of Us-En (good for programming languages), Swedish (my language of birth) and Azerty (switched numbers/characters in top row).

Hardware:

But until then I keep track of existing. Both ergonomic for extensive use and portable for mobile use.

Atreus. DIY or order. Ergonomic. Open source. Looks wireless. Looks awesome for typing and hacking. Me want.

Ergodox. Does still not exist. It’s a hacker project so it will probably be F/OSS.

Keyboardio home page. is open source and ergonomic. A bit ugly but triggers my want-hormones. It also has a wooden surface and and an Arduino to run it all. Kickstarted.

Ultimate hacking keyboard. Split. Crowdsourced.

Waytools Textblade. For mobile use. Blue tooth. Qwerty layout but not totally touch type. From about 100€. Might work.
Id love to get my hands on one to test and review.

 

Get more windows themes online

October 6th, 2014

To spice up the windows desktop background Microsoft has provided an easy way to import new pictures that can be changed every 30 minutes or so. Either search (write) Get more themes online on the start menu or go here in your web browser.

Search words: windows multiple monitor screen saver

tags: , | categories: Miscellaneous | no comments »

What the Hyper-V menus mean

September 15th, 2014

The Microsoft Hyper-V user interface is quite good but the menus are not self explaining when it comes to branching and making snapshots.

Thankfully someone has written down an explanation here. All gratitude should go to the original author.

If the original article goes missing I have copied a web archive here.

Forefront threat management gateway 2010 – the page cannot be displayed

June 10th, 2014

Error code: 500 Internal server error. The system cannot find the file specified. (2)

This error might be because of your OWA password is about to expire and there is a fault somewhere in the Exchange/OWA installation.

Screen dump of TMG reporting 500 dues to password is about to expire.

Threat management gateway 2010 with 500 error due to password is about to expire.

The remedy is to change your password which you can do at the OWA login page. There is a check box “I want to chang emy password after logging on” to use.

OWA login page

OWA login page

tags: , | categories: Miscellaneous | no comments »

Why using the disc icon as saving icon is considered good

June 10th, 2014

Regardless whether skeumorphism is good or not; a diskette icon for saving is passé.
But there is no better.

We could use a mobile phone as icon for saving as we use a mobile phone for that. And anything else.
We could have a mobile phone as icon for everything. It would be easier to remember just one icon. It would save band width as it could be cached. Support calls would be easier as we could just answer “press the button with the mobile phone icon”.

 

Diskette icon with CC0 license

Diskette icon, CC0 license (http://creativecommons.org/publicdomain/zero/1.0/deed.en) (fromhttp://pixabay.com/en/floppy-disk-symbol-signs-symbols-24172/)

Indoor gardening and composting

June 6th, 2014

Aquaponics

The art of gardening without soil. Makes my geek heart vibrate.

Here is an example of how to create a solution with Ikea stuff. There are both more complex and simpler ways to accomplish this.

Bokashi

Instead of simple composting; first ferment and get some juice out – then compost.

With a bucket under the kitchen sink one can play with the food that wasn’t eaten. Here is a Swedish site for the stuff.

“Windows update” on windows 8

November 26th, 2012

The as-far-as-I-have-discovered fastest way to get to “Windows update” in Win8 is command/windows button -> type “update” (or possibly “upd”) -> down arrow (to get to Settings) -> return -> return.
( Then tab&enter to see more info about what is about to get installed, esc to close the dialogue, tab to set focus on the Ok button and then return to shoot. )

PC settings (in Norwegian bokmål)

I have been playing with language settings – hence What PC settings looks like in Norwegian (bokmål).

[ Lots of GUI stuff is new in Windows 8 and not all for the good; getting rid of Search programs and files is not one of the wise choices. ]

tags: | categories: Miscellaneous | no comments »

192 EULAs I have agreed upon during a year and a half adds up a quarter of the words of Encyclopædia Britannica

February 12th, 2012

The computer I am writing on right now has been in my custody for about a year and a half  During this time I have collected every EULA I needed to agree upon.  It adds up to 192 EULAs.  Many are most certainly similar, like GPL, and others are probably variants of themselves.

I stored the agreements in RTF format except for Flash that is in PDF and a IE9 update that it seems I had to track down on the web and download the HTML page with PNGs and all.  It all ends up at slightly more than 62 megs.

Now these 62 megs of data stored mostly in RTF aren’t 62 millions of readable characters so I took a 72k rtf document and saved as text.  66k.  That is roughly 10% overhead.  So I guess out of 62 megs I have about 57 megs of characters.

192 files.  57 million characters.  With about 5 letters in an english word this would be slightly more than 11 million words.  I a page has 250 words this would be 45500 pages.  By comparision the whole Harry Potters series is about 3400 pages.  Encyclopædia Britannica is 40 million words.

To be honest: one can’t compare word count between a book and an EULA since the former is written in English while the latter in Legalece.