Thursday, November 15, 2018

(Not Only) Work Utilities Unleashed

For my work i use several tools that make life much easier.
I have gathered the most useful ones in one place.
  • Everything for fast instant search files by name on drive.
  • SpaceSniffer tool visualizes your disk space.
  • Clipboard managers in windows can improve user experience a lot. They allow to save many items into clipboard. I like CLCL because it fast and easy to use but it doesn't support unicode. If you need unicode i suggest ClipX.
  • Nice tool ServiWin for services managing (bulk start/stop/change start type).
  • FreeMind - to keep your knowledge structured and clean there is a great tool
  • Notepad++ with TextFX plugin
  • Tools from sysinternals. They have windows share at \\live.sysinternals.com\tools or http://live.sysinternals.com/
  • NirSoft tools - system tools like watch opened file handles or ports, similar to sysinternals
  • Synergy - must have for people with many PCs at a workplace.
  • TrueCrypt - can create encrypted drives.

For people who work with Visual Studio:

  • ReSharper
  • Productivity Tools from Microsoft Gallery (built-in to VS2012 and higher)
  • IndentGuides

Video players:

VLC - media player. Also sometimes i capture desktop videos with it.
mplayer - an ascetic interface is compensated by the amount of supported formats. It can play almost anything. Also it is very low-maintenance.
MPV - super lightweight player. Sometimes this is the only option to view 4K videos.

Other great tools:

Tor - allows you surf anonymously. Though don't use unsecured pages via Tor because some smartypants could listen the traffic on the end node.
Tixati - after uTorrent went bananas, this alternative is the best and has portable version and cross-platform.
SumatraPDF - a great alternative to Adobe PDF Reader. Also it can open Djvu, PS and some other formats. No installation needed.
Synergy - tool for sharing keyboard and mouse between different PCs with different OSs.
lockhunter - sometimes we get message that file is accesed by another process. This tool will help in such situation.
passpack - online and desktop password manager. Fast and simple.
NoReplyAll - is and add-in for Outlook that allows to prohibit ReplyAll in emails. It is very useful when your colleagues are not that intelligent to avoid replying to the whole office.
Tomighty - is a tool for Pomodoro technique. It's ticking like a kitchen timer. UI is very neat.
7zip archiver - supports a lot of formats.
Desktop clock with skins.(Free desktop clock 2.2)
A Scheme implementation. Pretty neat and works well.
Virtual box - nice vm tool.
XBMC player - with a plugin it allows to have multiple audio devices. Very handy when you want attach digital and analog headphones at once.
WinDjView - djview viewer for Win.
WinMerge - compare tool.
Gizmo Central - includes Gizmo drive. Allows to mount iso images.
http://regexhero.net/ - online RegEx editor.
ConEmu is a Windows console emulator with tabs, which represents multiple consoles as one customizable GUI window with various features.
For sniffing the traffic use WireShark or Fiddler.
UniExtract - this great tool is able to unpack nsis packages.


Though the interface of many of those programs is quite ascetic they do their job fantastically.

Also i would recommend Scott Hansellman's blog. It has almost all utilities i ever found useful but not all of them. That's why this post is here ;)

View SDF (SQL Compact Edition databases)

In VS

I found VS 2010 to be the most sufficient environment to work with SQL CE databases because it can work with both SQL CE 3.5 and 4.0 unlike VS2012 which can only work with 4.0.
So what we need:
  1. VS 2010 SP1 (SQL CE 4.0 VS tools need SP1).
  2. SQL CE 3.5 (sp2) (you probably already have it with VS2010).
  3. SQL CE 4.0. (sp1)
  4. SQL CE 4.0 Tools for Visual Studio (link found in this article). (looks like it holds exclusive db connection so other programs can't connect to it)
  5. SQL Server Compact Toolbox. (this tool doesn't lock the DB so other programs can connect to it)

Standalone tools

Here I found the tools to view SDFs, nice blog btw: http://sqlcequery.codeplex.com/releases/view/110204
And these 2 can query sdf 3.5 and 4.0  - they do not need anything to be installed but .net 4.
http://fishcodelib.com/Database.htm - this one can access Access DB as well
http://sqlcequery.codeplex.com/releases/view/110204

Advanced Browse CSV

CSV may have multiline entries with carriage returns. Also sometimes we need to JOIN entries from one csv with entries from another. This all can be achieved in LINQPad + CSV data context. Magnificent combination indeed.

The ultimate tool to browse through log files Advanced Log Viewer

Monday, February 6, 2017

Command lines for windows administration

Commands
Purpose Command line Comment
Dialog "Notification Area Icons" explorer shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9} http://www.askvg.com/create-direct-shortcut-for-notification-area-icons-in-windows-vista-and-7/
Stored password dialog rundll32.exe keymgr.dll,KRShowKeyMgr http://www.thewindowsclub.com/rundll32-shortcut-commands-windows
Local users and groups lusrmgr.msc
Group policies gpedit.msc
Enable IIS components DISM /Online /Enable-Feature /All /FeatureName:IIS-WebServer /FeatureName:IIS-WebServerManagementTools /FeatureName:IIS-WebServerRole /FeatureName:IIS-ManagementConsole /FeatureName:IIS-ManagementScriptingTools /FeatureName:IIS-ManagementService /FeatureName:IIS-ApplicationDevelopment /FeatureName:IIS-NetFxExtensibility /FeatureName:IIS-ISAPIExtensions /FeatureName:IIS-ISAPIFilter /FeatureName:IIS-ServerSideIncludes /FeatureName:IIS-CommonHttpFeatures /FeatureName:IIS-DefaultDocument /FeatureName:IIS-DirectoryBrowsing /FeatureName:IIS-HttpErrors /FeatureName:IIS-HttpRedirect /FeatureName:IIS-StaticContent /FeatureName:IIS-HealthAndDiagnostics /FeatureName:IIS-HttpLogging /FeatureName:IIS-LoggingLibraries /FeatureName:IIS-ODBCLogging /FeatureName:IIS-RequestMonitor /FeatureName:IIS-HttpTracing /FeatureName:IIS-Performance /FeatureName:IIS-HttpCompressionDynamic /FeatureName:IIS-HttpCompressionStatic /FeatureName:IIS-Security /FeatureName:IIS-IPSecurity /FeatureName:IIS-BasicAuthentication /FeatureName:IIS-RequestFiltering /FeatureName:IIS-URLAuthorization /FeatureName:IIS-WindowsAuthentication /FeatureName:IIS-ClientCertificateMappingAuthentication /FeatureName:IIS-DigestAuthentication /FeatureName:IIS-IISCertificateMappingAuthentication /FeatureName:IIS-ASP /FeatureName:IIS-ASPNET http://blogs.msdn.com/b/habibh/archive/2009/08/14/how-to-install-iis-7-5-on-windows-7-using-the-command-line.aspx
https://forums.iis.net/t/1176358.aspx
/all let's install all required parent packages
Force GP update gpupdate /force
Chrome with Distill mode (Reader view) "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-bundled-ppapi-flash --enable-dom-distiller
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --enable-dom-distiller --allow-no-sandbox-job --explicitly-allowed-ports=81,82,83
no-sandbox allows running under different account
http://douglastarr.com/how-to-allow-unsafe-ports-in-chrome
Set remote registry value reg add "\\host123\HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Foo Bar\deadbeef\coffee" /t reg_dword /v "Value1" /d 0xff /f
Install/Remove Programs appwiz.cpl
Delete performance counters category [PS] [Diagnostics.PerformanceCounterCategory]::Delete( "FooBar" ) This one deletes FooBar category
Also see: http://www.windowsnetworking.com/kbase/WindowsTips/Windows2003/AdminTips/Admin/LaunchAdminToolsfromtheCommandLine.html

Tuesday, September 23, 2014

WiX RTF issue

I have faced a problem with displaying rtf in WiX UI.
Rob Mansching has a post about the issue on his blog http://blogs.msdn.com/b/robmen/archive/2006/05/30/610950.aspx
Briefly WiX rich text control will not show us clickable hyperlink anyway but we would like to show it as something that reminds hyperlink. So we need to show ordinary underlined blue text.
But there is still question how to remove hyperlink from rtf and make text underlined blue.
So the steps to fix rtf:
1. Open EULA.rtf in WordPad and save it. It will remove some unsupported stuff from it but it will add hyperlinks.
2. Now we have to get rid of hyperlinks. I do that with ordinary text editor. First of all find the place with hyperlink.

3. Remove hyperlink tags.

Here i have to explain what "\cl1\ul WWW.ACME.COM\cl0\ulnone" means.
According to rtf specification \clN applies color to the text, where N is color number from colortable.
In the rtf document you will find the colortable:

So you can see that 1st color is "\red0\green0\blue255" - exactly what we need for hyperlink. If it's not there add it.
\ul applies underline to text and \ulnone finishes underline.
This how it looks like in installer:

Tools for work with installer

Orca is the basic tool for investigating installers. It's a part of Windows SDK so most probably you already have Orca.msi on your PC. It's enough just install it.
InstEd is more advanced tool for modifying installers. We have noticed that Orca can't apply some transforms but InstEd can.
stgextr is a tool that can extract embedded mst files from msi. For a case if the site is in down i put the binary here stgxtr.zip.

Monday, September 9, 2013

Usage Sample Of Network Emulator for Windows Toolkit (NEWT)


Take a look discussion and blog.

When I want to simulate network outage to my other VM I use the following configuration:
2 virtual channels (blocking - VC1 with LINK_1, enabling rest of network - VC2 with LINK_2)

VC1:
 


LINK_1 - 100% loss


VM has 2 ip addresses - ipv4 and ipv6 so i need 2 filters:

FILTER_1:


FILTER_2:


Note: NEWT GUI has bugs with IPv6 addresses - it will show square braces in the beginning and in the end of address. Sometimes you have to remove them manually to save the filter or you may just edit xml file directly.


Second Virtual Channel (VC2) with LINK_2 with no loss:


Pay attention to network masks as they really matter!

the xml config is here.