Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Sunday, June 09, 2024

Select URLs in PuTTY

It annoyed me for ages that you cannot just double-click on an URL in Putty to open that URL in your browser. Even selecting an URL for copy/paste is cumbersome.

Yesterday I found the next best thing: Select URLs in PuTTY

In essence you tell putty which characters form "words" and which are stop-characters. More here.

So on the "Window > Selection > Copy" tab, if you add :?= and some other URL characters to class 2, can at least can double click on an URL to select the full URL.


Don't forget to save those settings to your configuration(s).


Saturday, May 09, 2020

Windows 10 Folder Shortcuts

I have to admit, I did not know about that:

The shell: command can be used to open a special folder directly from the Start, Search menu or from the Run dialog. For example, the command shell:sendto opens the SendTo folder (%userprofile%\sendto) of your user profile. To launch the Documents folder of your user profile, you’d type shell:Personal. Below is a complete shell: commands listing for Windows 10/8/7/XP/Vista. The entire listing is stored in the following registry key in Windows Vista and higher:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\FolderDescriptions
So e.g. Windows-R and "shell:startup" opens the startup folder.
I used to play around with "%appdata%" etc etc where I knew there was an environment variable for it, but the shell: shortcut enables a lot more.

Found - amongst others - here 
and of course on superuser.com

Sunday, September 13, 2015

How to hide a userid from Windows login screen

With DB2 on my home PC[1] I have a service account for the DB2 instance, makes life a lot easier than trying to map it to you actual user(s).

However, regular Windows (Home) setup has 2 defaults that are annoying:
a. password and account expiry for this user.
b. the userid appears on the Windows login/lock screen, although nobody is supposed to sign in with it.

Create a maintenance free user
The first issue I fixed a couple of month ago, because that was really annoying. Because DB2 just would not start. And the first two times this happened I had to work through db2diag.log to find out what happened.
So, make sure the account actually never expires (that's separate from the password). With admin privileges run
  net user db2admin [2]
to check if the user account expires.
If it does, then run a
  net user db2admin /expires:never
to fix this.

The password expiration is trickier, since it cannot be done with the net user command.
To make the password everlasting, run
  WMIC USERACCOUNT WHERE "Name='db2admin'" SET PasswordExpires=FALSE

I found this thanks to the folks at StackExchange.

Hide the service account from the login screen
I wanted to do this on Windows 7 already, but never found the time or cared enough. Now with the move to Window 10 I thought of it again and fixed it.
So this can be done with group policies and stuff, but not on a standalone Windows Home edition.

Registry and Microsoft Technet to the rescue:

Create an entry under
  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList and list the db2admin user with a dword (32) of 0 to hide it. Remove the entry or set it to 1 to show the user again.

VoilĂ .

--
[1] Ha, now that I no longer work for Oracle, I can again freely admit it... Not that I really held back on this in the past 5 years.
[2] replace db2admin with the userid you need this for

Saturday, September 12, 2015

Windows 10 installed

While I finally made it to a Mac (MacBook Air 13) at work, I gave in and let Microsoft install Windows 10 over my Windows 7 on my home PC.

It went surprisingly smooth and without any problems.
Except that my Tomcat did successfully start under Window 10, because for some weird reasons Redmond decided to install and activate the Internet Information Services (which I previously did not have), and those blocked port 80 of course.
Simple de-install of those features, reboot and everything was running fine again. All apps and services I had running (or those I could think of within 30minutes) are running fine again.
Amazingly even my DB2 instance did not create any problems at all.

Now I only have to get used to the new UI, but even that seems easier than I thought.... well, as long as I have the keyboard.

Sunday, October 20, 2013

Screenshots with Dropbox

A couple of weeks ago, Dropbox (my favourite cloud storage or rather information sharing tool) started to support putting Screenshots directly to your Dropbox folder (for Windows and Mac).

Make sure you have Verison 2.4 (or later) installed (get it here), then open preferences and enable Share screenshots using Dropbox on the Import pane.

From then on, when you press the Print Screen button, Dropbox will save the screenshot to a (new) folder in your Dropbox named Screenshots.

Alternativeley when you hit Ctrl Print Screen it will save the screenshot and copy a public web link (URL) pointing to the screenshot to your clipboard. You can immediately paste this into the browser, or an email, or skype, or whatever you want to use to share this screenshot with friends or coworkers.

You will then see a notification on your Dropbox taskbar icon, once the screenshot is saved (and ready for sharing).

By the way,  those screenshots where taken with Dropbox (as descripbed above) and then edited with Gimp.

Tuesday, November 22, 2011

Moving

No worries,  this is only about my home PC.

I finally moved off my 8.5 year old 1.2GHz [1] single core 1GB RAM Windows XP machine to 4core Windows 7.

Well it first had Vista on it, and hardly anything worked (try DB2 for a start), then I decided to go Windows 7 before I do most of the migration, so I won't have to re-do everything again.

I have to say, Win7 is really a nice product... especially compared to Vista, but after only a week, I started to prefer it over XP as well. And compatibility is great, all of those nice little tools I had on XP work fine here as well.

And finally I got some RAM and clock cycles to work with... Android development (esp the emulator) is a lot easier now... :)

---
[1] or so, I don't even care enough to check this

Tuesday, July 14, 2009

XP/centrino crashes under Vbox 3.02

Just installed the newly released VirtualBox 3.02 today, and my (guest) XP started to crash after I de-installed the "old" (2.2.x) guest additions and installed the 3.02 additions.
Turned out that this is a known windows virtualization problem on Centrinos [1] like documented here.

So I rebooted (for the umpteenth time), F8-ed and selected the last known working settings, regedited the

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Intelppm

to the value 4.

Rebooted, and voila... works again.


---
[1] yes, this was on my beloved laptop.

Saturday, February 07, 2009

VirtualBox networking on Windows

I guess this was the third time I fell into this trap, so I document it here (mainly for myself):

As long as you have any kind of LAN type interface/adapter active under Windows VirtualBox will try to use this[1] to do its networking (NAT in my case). This is true for LAN/Ethernet as well as WLAN/Wifi.
This also happens quietly, so you don't get an error message (from VBox), just the errors from the guest OS, usually DNS errors, because thats likely the first thing to fail.

In my case I frequently run on 3G/HSPDA only, but still have an active (yet disconnected) LAN and WiFi interface. In order for VirtualBox to work properly, those two have to be disabled.

Annoying...
Hope I remember it next time.

-----
[1] or so it seems.

Sunday, August 10, 2008

Windows file type registration for OOo 3.0 Beta for Windows

Just installed the latest OpenOffice.org 3.0 build over the previous one, and all the Windows Explorer integration was lost.
I googled around a bit, and found this on GullFOSS:

"If you test the OpenOffice.org 3.0 Beta on the Windows platform, you might be wondered about the missing system integration. Well, we decided to avoid the system integration in the Windows registry, because it conflicts with an existing system integration of an OOo 2.x, that you are probably using for your daily work. But if you know, what you do, you can of course get the complete system integration for your Beta tests. You only have to set the global property WRITE_REGISTRY, that is used as condition in the Windows Installer database. So please use

setup.exe WRITE_REGISTRY=1

or if you prefer the direct call with Windows Installer service:

msiexec.exe /i WRITE_REGISTRY=1"


I reinstalled with setup.exe WRITE_REGISTRY=1 as stated above and it worked like a charme.

Wednesday, September 12, 2007

Hell just froze over

Microsoft Windows and Sun x64 Servers and Workstations:
"Sun and Microsoft Expand Strategic Alliance Sun and Microsoft have announced an expanded relationship including Sun becoming a Windows Server OEM. Sun will soon resell Windows Server 2003 with select x64 systems."

Tuesday, August 21, 2007

Spolsky says no to Vista

Right from the office of Excel and Microsoft defender #1 Even the Office 2007 box has a learning curve - Joel on Software:
"I've been using Vista on my home laptop since it shipped, and can say with some conviction that nobody should be using it as their primary operating system -- it simply has no redeeming merits to overcome the compatibility headaches it causes. Whenever anyone asks, my advice is to stay with Windows XP (and to purchase new systems with XP preinstalled)."

Saturday, August 18, 2007

Path Copy

Thanks to Gernot for suggesting this great tool the other day.
Ninotech Path Copy
What it does is soo simple but it really helps. I've just been using it for a couple of days and can hardly imagine myself living without it.
Well, no, not that bad, I do still have a life (he said while posting to his tech-blog on a weekend ... nudge, nudge). Yes I do.

Anyway, here's what PathCopy does:
Ninotech Path Copy is a shell extension for Windows 95, 98, NT4, 2000, and XP that enables to copy the path of a file or directory to the Clipboard. You can then paste the path in to your document, e-mail, etc. You copy the path of a file or directory by right-clicking it in the Windows Explorer and choosing Copy Path from the context menu. The context menu then offers nine standard ways of copying the path, in addition to the user defined copying methods that you create yourself:

and you can pick whether you want to shortname or longname of the file, or the full path, or the full network path (UNC), ... Great.

Thanks, Gernot.

Wednesday, August 15, 2007

Windows: add cmd to folder

Yet another windows customization reminder:

Since I frequently have to open a command prompt right from the folder that I'm on in explorer, I'd like to have a context menu entry for folders that does this.


Here's the way to do it:


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt]

@="Command Prompt here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Command Prompt\command]

@="Cmd.exe /k pushd %L"

Other ways to do it and more tipps in that category can be found here.

Monday, August 13, 2007

Customize Placesbar (Folderlist) in Windows File Dialog


And while I'm in the "knowledge preservation" mode - this is some piece of information I was look for years (well, not constantly, but every once in a while). I simply did not google for the right thing.

Task: How do I get any (arbitrary) folder into the short-cut bar in the Open/Save-As Dialog in Windows (XP) ?

Not just History, My Documents, My Computer, ... no one needs those.


Answer: First of all, one has to know (i.e. find out) that this short-cut bar is referred to as "places bar" and those folders listed there would then be places.

This way it is much more effective to google for.


The places bar is defined in the registry under HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ comdlg32\ PlacesBar
and consists of 5 entries (this seems to be fixed in the code, I could not find any reference to changing the number of entries),
called Place0-Place4.


For each place you can (read: have to) define its location in the filesystem or a handle to well known or pre-defined windows places.


You must enter the predefined places as numeric values (DWORD), e.g. My Pictures=39, Desktop=0, etc.
There are places on the web, where those values are listed.
I show an excerpt from here. at the end of this post.




Now I'm pretty sure that - like me - you don't just want to have any of those folders there, but something
else, like "D:\download" or whatever. In that case you make a String (instead of the DWORD) and just enter the name of the folder ("d:\download") as the value.


My placesbar at home looks like this (on my business laptop I have more "personal" places defined than just one) and the
registry (ready to import ;-)) like this:




Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar]

"Place0"="d:\\download"

"Place1"=dword:00000000

"Place2"=dword:00000005

"Place3"=dword:00000011

"Place4"=dword:00000012




There are also tools on the web that help you create the respective registry entries. All you have to do then is, copy/paste those to your computer and import the resulting file into the registry.

There you go, quite easy actually.



Here are some of the folder definitions:






















FolderHexDecimal
Desktop00
My Computer\Control Panel33
My Computer\Printers44
My Documents55
Favorites66
Recent88
My Musicd13
My Videose14
Desktop1016
My Computer1117
Network Neighborhood (My Network Places)1218
All Users\Start Menu1622
All Users\Start Menu\Programs1723
All Users\Startup1824
All Users\Desktop1925
Application Data1a26
USERPROFILE\Local Settings\Application Data\Microsoft\CD Burning3b59

Monday, May 07, 2007

Dell to join alliance that isn't

Dell signs on with Microsoft, Novell:
Dell Inc. has agreed to work with Microsoft Corp. and Novell Inc. under an alliance the rival software makers formed last year to make it easier for the Windows operating system and the increasingly popular Linux system to work together, the companies said Sunday.
As if there was something like a real MS//Novell alliance worth joining.

In other words: Customers are forcing Dell towards Linux, and this is the corporate way to do it.

Tuesday, January 23, 2007

Java on Vista @ .NET Developer's Journal

There's a nice article on how Java runs on Vista at the .NET Developers Journal (of all ;-) ).

Java Software on Vista
— People have been wondering lately: How does Java software work on Windows Vista? The short answer is: Java software works great on Vista. In fact, the entire Sun engineering team working on Java Platform Standard Edition has been tuned into Vista and making Java software work on it since it was named after a breed of cattle.