Monday, March 2, 2020

ZSH Installation using Cygwin

1. setup-x86_64.exe -q -P lynx,wget,tar,git,vim
   setup-x86.exe -q -P lynx,wget,tar,git,vim
2. lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
   install apt-cyg /bin
3. wget -P /bin/ rawgit.com/transcode-open/apt-cyg/master/apt-cyg
   chmod +x /bin/apt-cyg
4. apt-cyg install zsh
5. git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
   git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
   git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
   https://github.com/agkozak/zhooks
   colorize, lf file manager, fzf

Thursday, July 28, 2016

AltTab Alternative

AltTabAlternative is a small application created in AutoHotkey an alternative for windows native Alt+Tab switcher.
Please take a look at AltTabAlternative

Screenshots

1. Initial display of Alt+Tab Window


2. After key press 'l'


3. After key press 'o'


4. After key press 'k'


Settings Dialog: configuration/setting INI file & UI.



  • Now user can configure font style of SearchString, ListView and its color.
  • Prompts for confirmation before terminating all processes.
  • Window Transparency.
  • Window Width & Window Height Maximum percentage wrt screen resolution.

PS: Please try and feel free to relay your comments, suggestions or corrections.

Thursday, December 10, 2015

Shortcut to open Environment Variables

(1) Create a shortcut EnvVars with target: "%windir%\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables".

(2) Place this shortcut in folder that is available in system path.

(3) Run EnvVars from Run Command.


Tuesday, April 21, 2015

Ultimate replacement for Windows Explorer

I have been using xplorer2 for the past 3 years and it is awesome. 
  1. Quick folder access using many ways (bookmarks, folder tabs, mini scrap, recent folders list and also many shortcuts). 
  2. Instant preview, very easy to view and edit instantly. 
  3. Find, Rename of files and directories. 
  4. Find text in files. 
  5. Advance search for files and directories. 
  6. Copy file(s) and folder(s) paths easily. 
  7. Customize keyboard shortcuts. 
  8. Color coding files according to their type or attributes. This is very powerful. 
  9. Individual folder settings (per-folder settings). 
  10. We can run DOS commands easily within xplorer2.

Monday, July 28, 2014

Change Window TitleBar Text Color in Windows 8


First download the following:
  1. Download UltraUXThemePatcher
  2. Download Windows 8 default theme - White TitleBar Text v1.1, DownloadZIP
To install:
  1. Install UltraUXThemePatcher
  2. Reboot
  3. Extract the White TitleBar Text v1.1 theme folder into C:\Windows\Resources\Themes
  4. Right click on desktop and choose personalize
  5. Pick the Default Style theme under Installed Themes and change the color and wallpaper as you like.


Disable UAC in Windows 8

Run the following command in Windows PowerShell
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value "0"

OR

Change the following registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System, Set 0 for EnableLUA Value Name

Sunday, March 18, 2012

Wednesday, February 1, 2012

Tabbed Browsing in Windows Explorer

QTTabBar is Windows Explorer add-on that allows you to navigate files and folders in a tabbed browser.....
http://qttabbar.wikidot.com/ or http://qttabbar.sourceforge.net/
(I have just tested on Windows 7, it works fine.)

Saturday, December 17, 2011

EBook Library Manager


Calibre is an ebook library manager. It can view, convert and catalog ebooks in most of the major ebook formats. It can also talk to many ebook reader devices. It can go out to the Internet and fetch metadata for your books. It can download newspapers and convert them into ebooks for convenient reading. It is cross platform, running on Linux, Windows and OS X.

Wednesday, November 16, 2011

Online Programming Contests & Math Problems

TopCoder        : http://www.topcoder.com/tc
Codeforces      : http://codeforces.com/
ProjectEuler    : http://projecteuler.net/
SPOJ            : http://www.spoj.pl/
Codechef        : http://www.codechef.com/
Mathalon        : http://mathalon.in/
UVAOnlineJudge  : http://uva.onlinejudge.org/
uvatoolkit      : http://www.uvatoolkit.com/
GoogleCodeJam   : http://code.google.com/codejam/
TECHGIG         : http://www.techgig.com/
GILD            : http://www.gild.com/
CoderCharts     : http://codercharts.com/

Friday, November 11, 2011

Online IDE & Debugging tool

http://ideone.com/

It's an online compiler and debugging tool which allows to compile and run code online in more than 40 programming languages.

Tuesday, October 11, 2011

Sample CodeSnippet for C++ in VisualStudio

To enable code snippets in VisualStudio 2005, you need to install Microsoft Visual Studio 2005 IDE Enhancements

You can write your code snippets however you want, see the below example for 'for' code snippet:
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>for</Title>
            <Shortcut>for</Shortcut>
            <Description>Code snippet for 'for' loop</Description>
            <Author>Microsoft Corporation</Author>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
                <SnippetType>SurroundsWith</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID>index</ID>
                    <Default>i</Default>
                    <ToolTip>Index</ToolTip>
                </Literal>
                <Literal>
                    <ID>max</ID>
                    <Default>length</Default>
                    <ToolTip>Max length</ToolTip>
                </Literal>
            </Declarations>
            <Code Language="cpp"><![CDATA[for (int $index$ = 0; $index$ < $max$; ++$index$) {
            $selected$ $end$
      }]]>
            </Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>

Microsoft Visual Studio 2005 IDE Enhancements

 
Overview
Visual Studio 2005 IDE Enhancements are a set of Visual Studio extensions that are designed to make you more productive. These enhancements are directly integrated into the Visual Studio IDE. This set of enhancements includes Source Code Outliner, Visual C++ Code Snippets, Indexed Find, Super Diff and Event Toaster tools. All these tools except the IDE Event Toaster can be invoked from Visual Studio’s View.OtherWindows menu group. The Event Toaster tool can be configured from the Tools Options dialog under the PowerToys node. The Visual C++ Code Snippets can be invoked on any C++ source file. Previously, these enhancements were only available via the Visual Studio 2005 SDK. This installation does not require Visual Studio 2005 SDK.
Source Code Outliner : The Source Outliner tool is a Visual Studio extension that provides a tree view of your source code's types and members and lets you quickly navigate to them inside the editor.
Visual C++ Code Snippets:The Visual C++ Code Snippets tool lets you insert snippets in your code by using a pop-up menu that contains programming keywords. VB.NET and C# languages have this functionality in Visual Studio 2005.
Indexed Find : The Indexed Find tool is a Visual Studio extension that uses the Microsoft Indexing Service to provide improved Search capabilities to the integrated development environment (IDE). It sends the results of a search to the Output Window.
Super Diff Utility: The Super Diff Find tool is a Visual Studio extension that compares text files. It uses color coding and graphics to show the difference between the files in deleted text (red), changed text (blue), inserted text (green).
Event Toaster Utility: The Event Toaster tool is a Visual Studio extension that notifies users about specific events within the Visual Studio IDE.

Visual Studio Color Scheme

You can find so many color schemes here.

Cyclomatic Complexity

Checkout here:
http://en.wikipedia.org/wiki/Cyclomatic_complexity
http://hissa.nist.gov/HHRFdata/Artifacts/ITLdoc/235/chapter2.htm
http://www.rkcole.com/articles/other/CodeMetrics-CCN.html

  1. add 1 for each if statement
  2. add 1 for each for statement
  3. add 1 for each while loop
  4. add 1 for each do-while loop
  5. add 1 for each && (an implied if statement)
  6. add 1 for each || (an implied if statement)
  7. add 1 for each ? (an implied if statement)
  8. add 1 for each . (an implied if statement)
  9. add 1 for each case statement
  10. add 1 for each default statement
  11. add 1 for each catch statement
  12. add 1 for each finaly statement
  13. add 1 for each continue statement