Powerful yet simple to use screenshot software.

Powerful yet simple to use screenshot software.
Till Microsoft releases its new Windows Terminal, there is not much option for a decent command prompt tool in Windows. Forget about having a color theme and or multiple tabs in command windows; you won’t find the essential feature even things like copy/paste. Windows stuck with the same feature sets for command windows which they built more than 20 years back and not much enhancement made to it afterward. There is always a room for basic terminal windows with few more functionalities which match with those pimp terminals in MaxOS or Linux. I believe Cmder fills that room as I find every feature I expect from a terminal window. It has multiple tabs, can split the screen into multiple panels, can run many Unix commands, comes with Git setup, and much more.
Cmder is a self-contained console emulator for Windows without any dependencies. Being a portable application, Cmder offers to run without any need to install on the machine. It is based on ConEmu with the major config overhaul, comes with many color schemes, fantastic clink, and a custom prompt layout. If you are looking for a replacement for existing command windows with features like multiple tabs, custom color scheme, minimize to the system tray, etc. then you will love Cmder. Pick your shell you want to work with like Cmd, PowerShell, Bash, or Mintty, and run it using Cmder emulator as standard terminal experience.
If disk space is not the constraint, make sure you download full version (108 MB) which also has Git for Windows.
Link:
Cmder
I thought spending this weekend to kickstart learning Go. As a committed .NET/C# developer for 15 years, working with the Go syntax is a different kind of experience. I am still trying to well verse myself with Go syntax and development
Once I got the hang of Go basic syntax, I thought why not build a small and useful tool in Go which could resolve a daily annoyance. Folk, this is what I come up with, randr.
randr is a command line tool which recursively searches files content for source string and replaces it with the target string. With that, randr will also recursively rename files or folders name which matches source string to target string. You can also specify a command flag, if you want to rename or replace based on case sensitive or case insensitive search. And that is all!
randr - Help
To illustrate the usage of randr, consider you have a project folder with the following structure:
// Project Folder: c:\Projects\Payroll\
// c:\Projects\Payroll\Models\Worker.cs
public class Worker {}
// c:\Projects\Payroll\Services\WorkerService.cs
public class WorkerService {}
// c:\{rojects\Payroll\Repositories\WorkerRepository.cs
public class WorkerRepository {}
// c:\Projects\Payroll\Helpers\Worker\Extensions.cs
public static class Extensions {}
Let’s refactor above project using randr and change Worker
entities to Employee
. randr
command to refactor will look like following which will replace any files text which contains Worker
to Employee
as well as will rename any file or folder with contains Worker
to Employee
.
randr.exe -find=Worker -replace=Employee -match=true -location=c:\Projects\Payroll\
randr - Example
After running randr successfully, our example project folder will look like following:
// Project Folder: c:\Projects\Payroll\
// c:\Projects\Payroll\Models\Employee.cs
public class Employee {}
// c:\Projects\Payroll\Services\EmployeeService.cs
public class EmployeeService {}
// c:\Projects\Payroll\Repositories\EmployeeRepository.cs
public class EmployeeRepository {}
// c:\Projects\Payroll\Helpers\Employee\Extensions.cs
public static class Extensions {}
Please go over README.md in the project repository for parameter usage details.
Project Repository: randr
randr is currently a bare minimum tool and it does require some more polishing. I hope you will find randr useful.
I am so happy to see my first Chrome extension published on the Chrome Web Store. The whole intension of this releasing the extension was to understand Chrome extension development workflow and extension publishing process. The whole process to upload my extension was simple and straight forward even for beginners like me.
Now about the DIV Glance Chrome extension itself. This extension will give you a visual glance of the DIV tags in the page. Just hover your mouse pointer over the page and extension will highlight DIV under the pointer with the Red background color. The intensity of Red background color signifies the depth of highlighted DIV related with regards to its parent DIV layers. You no more have to dig through Chrome DevTools to inspect DIV layout in the page.
DIV Glance Extension Page: DIV Glance
As I mentioned above, I created this extension just for the sake of learning Chrome extension development. As I saw the practical usage of this extension later, I tried to polish it a bit to make it more presentable. At the core of this extension, it simply injects following CSS style to the page — nothing fancy.
|
|
You don’t need another WCF client to test WCF services if you already have fantastic Postman installed on your machine. But requesting WCF service using Postman needs little more than just providing a Service Url and a Xml body to the SOAP request. One issue developers always stumble upon first time when using Postman to call a Wcf service is this cryptic error message: The message with Action '' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher.
.
Following is an example ActionNotSupported fault response raised by the Wcf Service:
|
|
Inspecting the exception fault string more carefully, you will surely realize that the exception has something to do with Action “. Postman is apparently not sending any Action contract with the SOAP request, and Wcf service is treating it as empty Action. With the empty received Action, service trying to match it with its own Action contract which result as mismatch. And this is what is causing the exception.
To resolve the issue, you need to explicitly provide a SOAPAction to the header with your SOAP request to the service. You can get the SOAPAction of the web method from the WSDL document of your Wcf service. Just navigate to the WSDL Uri, which usually your Wcf service Url appended with “?wsdl”, and look for soap:operation node of the web method you want to call. Copy the value of soapAction attribute which will be something like http://tempuri.org/I<Your Service Name>/<Method Name>
and use this value as SOAPAction of your service call.
Adding SOAPAction header in Postman is simple. You have to goto Headers tab of the Postman for the Wcf service, add a New key, provide Key as “SOAPAction” and the Value whatever you copied in above step.
With the SOAPAction configured for your Wcf service, hit Send button in Postman to make service call and voila! You should receive proper SOAP response from the service. Save the Service request in the Postman so that you don’t have to do the same SOAPAction configuration again for the service.
My automatized workflow to setup Postman to call Wcf service is following:
If you shuffle a lot between Linux/Mac and Windows OS, you surely miss many Linux shell commands in Windows Command Prompt and you definitely wish if you can replicate or have some kind of workaround of those commands in Windows to make life bit easier. One of those commands is navigating back to the previous directory. In Linux, you can just type: cd -
and voila, you go back to your previous directory. No need to check paths of previously entered directories. That’s one handy command. As usually happen with most productive shell commands, there is no equivalent command parameter in DOS.
I was looking for some kind of workaround to achieve same in DOS but when I couldn’t find any solution online so I decided to devise and build my own solution. It started with a very basic DOS batch file which just simulates Linux cd –
command but slowly and gradually it grows over the period of time as I added more and more features.
So how does it work? To implement this solution, you will need two batch files: ccd.bat and dos_init.cmd. ccd.bat will have actual batch commands which take care of redirecting command to appropriate branch and keeping the history of visited directories whereas dos_init.cmd will create DOSKEY aliases for cd command. You should create both files in one of your PATH directories (for example C:\Windows) so that DOS will able to locate these in Command Windows.
|
|
|
|
You always require running dos_init.cmd before using ccd.bat so that assign aliases are available for ccd batch file. To automate that, you can simply add an entry in Windows Registry which will automatically run dos_init.cmd command every time you open Command Windows.
|
|
Following are steps to create above Registry entry. Be careful when editing the registry and make sure you know what you’re doing.
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
And that’s all we need.
Let’s go through the usage of this batch file:
I hope you will find this hack useful. So how you want to further enhance this batch file? Please do share your changes and improvements here so that others can also benefit.