bitten by system case sensitivity twice today

Today i was bitten by system case insensitivity twice: Maven test does not pick up Spring boot test profile properties git commit does not get the file name change. Spring boot profile based config In spring boot, we can have different resource files(.properties or .yml ) to hold properties. More over, we could have profile specific ones,…

windows powershell vs cmd

CMD vs Powershell Questions: Does powershell support all commands as cmd.exe does? How do I quickly start PowerShell? (something like Windows-Key + R -> cmd) Is there any case where I would favor cmd over powershell? Anwser Yes, you can mostly use all the external commands that you would use in cmd much the same…

set up mongo db in windows and osx

OSX 1. download mongo and unzip to some folder, rename folder to mongodb. i put it under ~/Documents/develop/mongodb 2. create  folder “data” under “mongodb”.  create folder “db” under “data” create folder “logs” under “mongodb”. create file “mongodb.log” 3. create file mongodb.conf under ~/Documents/develop/mongodb/bin with content: dbpath = ~/Documents/develop/mongodb/data/db directoryperdb = true logpath = ~/Documents/develop/mongodb/logs/mongodb.log logappend = true rest…

copy file through ssh

I use winscp or secure shell client.   sftp is (and works) similar to ftp scp is a neat little program: copy from a remote machine to my machine: scp user@192.168.1.100:/home/remote_user/Desktop/file.txt /home/me/Desktop/file.txt copy from my machine to a remote machine: scp /home/me/Desktop/file.txt user@192.168.1.100:/home/remote_user/Desktop/file.txt copy all file*.txt from a remote machine to my machine (file01.txt, file02.txt,…

JAVA_HOME in windows 7

Windows: The SetX command would do so: setx /M JAVA_HOME “C:\Program Files (x86)\Java\jdk1.6.0_17” /m means machine level. To check the settings, use “set” command for all the variables. Use “echo %JAVA_HOME%” to check it specifically. To append to the PATH: setx path “%PATH%;c:\home” /m Here is a good site for windows commands    Unix In Unix, go…

useful Windows Run commands

System Configuration Utility  —————–  msconfig Microsoft Powerpoint (if installed) —————–  powerpnt Microsoft Word (if installed) —————– winword Microsoft Paint —————– mspaint Add Hardware Wizard —————– hdwwiz.cpl Add/Remove Programs —————– appwiz.cpl Control Panel —————– control Calculator —————– calc

add tomcat to auto start in centos VPS

This article assumes that you have already installed the Apache Tomcat Server on your Linux Centos machine. If you need help with your with Apache Tomcat Setup then please click on the Link below.   Step 1: Create a file named tomcat6 in your /etc/init.d directory $ cd /etc/init.d $ gedit tomcat6  If this file…