Wednesday, 24 July 2019

Slack Dark Theme in Windows 10

I found where the ssb-interop file is. Here are the steps:
  • Make sure Slack is not running/in the background. Navigate to C:\Users\USERNAME\AppData\Local\slack\app-4.0.0\resources
  • Open app.asar as an archive via 7-zip. 7-zip cannot do this normally you will need an extension. I used Asar7z plugin. Download the plugin as zip and extract it in your 7-Zip installation directory under the "Formats" folder.
  • Now you will be able to open the app.asar file using 7-Zip.
  • In the archive, navigate to the /dist/ folder
  • Search for ssb-interop.bundle.js and open it
  • Append the usual CSS style you use. I personally add this:
    document.addEventListener('DOMContentLoaded', function() { $.ajax({ url: '', success: function(css) { $("<style></style>").appendTo('head').html(css); } }); });
  • Save the file. 7-Zip will prompt you if you want to update the archive, say yes of course
  • Close 7-Zip. Now reopen Slack and enjoy the dark mode.

Thursday, 21 September 2017

Fix missing MSVCR120.dll error

This error is shown while installing a game or an application in windows. If this file MSVCR120 is missing the executable will show this error message and won't allow you to proceed with the installation.

This DLL file is required by the executable you are trying to run. This file belongs to Microsoft Visual C++ Redistributable Packages for Visual Studio 2013. This package will be missing in your computer. So, you need to download this package and install it.

Now you can run this package and install the executable you were trying to install.

Saturday, 7 May 2016

How to enable debug in java application?

To enable debugging in java applications add the jvm arguments,

For Java versions < 5.0 use the following Xdebug and Xrunjdwp args,



 The above options will work in version greater than JDK 5.0 but not recommended and will not be faster since it will run in interpreted mode instead of JIT, which will be slower.

For latest version you can use the following and the above jvm arguments to enable debugging,

    it is better to use the -agentlib:jdwp single option


Friday, 6 May 2016

Ant script to run maven clean and maven install commands

Following is an useful ant script to run the frequent maven commands using the m2 plugin in eclipse,

  <target name="maven clean">
      <artifact:mvn mavenHome="${maven.home}" fork="true">
          <arg value="clean" />

  <target name="maven install">
      <artifact:mvn mavenHome="${maven.home}" fork="true">
          <arg value="install" />

  <target name="maven clean-install">
      <artifact:mvn mavenHome="${maven.home}" fork="true">
          <arg value="clean" />
          <arg value="install" />

This will be useful for projects using maven and ant as build tools.

Saturday, 20 February 2016

Print all the request parameters map in java

This piece of utility code would print all the key-value pairs in the request object.

 Map<String, String[]> params = request.getParameterMap();

 Iterator<String> i = params.keySet().iterator();

 while ( i.hasNext() ){

 String key = (String);

 String value = ((String[]) params.get( key ))[ 0 ];

 System.out.println("Requst Params Key: ["+key+"] - Val: ["+value+"]");


Here in the above code "request" is an object of "HttpServletRequest".

Wednesday, 10 February 2016

Thursday, 20 August 2015

How to add an existing project to GitHub Repository?

Follow these 10 simple steps to upload your local project to a GitHub repository.

1.  Download, Install and Configure Git hub for windows/Mac OS by visiting You can download Windows or Mac version based on your Operating System.
2.  After installing Git, Open Git power shell from Start -> Type "git shell" without quotes and open the "Git Shell" command line program.
3.  Now navigate to your project root folder using the command line too,
cd F:/My_Project

4.  Now issue the following command
$ git init

5.  This command would show you "Initialized empty Git repository in your project root folder"
   eg: Initialized empty Git repository in F:/My_Project
   And you could see a .git folder created under My_Project folder
6.  Add all your files to the repo using the following command,
$ git add *
7.  To check files to be committed,
$ git status

8.  Now commit all the code using the command,
$ git commit -m 'First Committ'
   You'll see something like this,
[master (root-commit) 8201309] First commit
   20 files changed, 439 insertions(+)
   create mode 100644 .classpath
   create mode 100644 .project
9.  Now navigate to Github and create a new repository with any unique name you want to. I am going to give it MyProject here and it will create a github repository with url
     - Now once the MyProject repository is create we need to push our local My_Project content to it. So enter the following two command,
$ git remote add origin

$ git push -u origin master
10.   Once you issue the above command, you'll see something like this,
Counting objects: 45, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (30/30), done.
Writing objects: 100% (45/45), 8.48 KiB | 0 bytes/s, done.
Total 45 (delta 0), reused 0 (delta 0)
             * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

Now visit the to see your project files pushed to the GitHub.