Friday, November 6, 2015

How to kill a windows services that hangs on "starting" or "stopping"

To kill a Windows process that hasn't started correctly you need to use the terminal.

1) Get the name of the service from the services window (run "services.msc", select your service and then with a right click get the services name)

2) In a command prompt enter:

sc queryex <servicename>

where <servicename> is what you got at step 1)

3)  Get the <PID> from the output of  step 2) and use it in the command:



taskkill /f /pid <PID>


Source:
http://www.examiner.com/list/how-to-kill-a-windows-service-that-s-stuck-on-stopping-or-starting

Sunday, August 30, 2015

How to sort files and folder by date in total commander... in five clicks!

TotalCommander is a great tool but by default it does not sort folders by date, it sorts them by name no matter when they were created. This is pretty annoying.  However the solution is just five-clicks away :)

The first two clicks: Select Configuration -> Options...

Choose Display (the third click), and then select (fourth click) Like Files (also by time) in the Sorting directories section.

Last click for OK. :)

Enjoy!




Sunday, August 16, 2015

GCC 4.8 on CentOS

I finally found a simple way to install gcc/g++ 4.8 (required to use c++11 syntax) on my CentOS 6 distribution!

Here is the link:

http://braaten-family.org/ed/blog/2014-05-28-devtools-for-centos/

NOTE:

I suggest you to update your .bashrc file with the following line

source /opt/rh/devtoolset-2/enable


Otherwise you cannot run the newest version of the gcc/g++!


NOTE
Adding only this line to .bashrc: 

scl enable devtoolset-2 bash 

causes a fork-bomb!!!!


REFERENCES:
http://unix.stackexchange.com
http://braaten-family.org/ed/blog/2014-05-28-devtools-for-centos/ 

Sunday, June 28, 2015

eatsyscall.asm could not read symbols: File in wrong format

If you are reading Assembly Language Step-by-Step: Programming with Linux (3rd edition) by Jeff Dantemann and you came to the first program eatsyscall.asm you'll probably get this error when you link the file with the command:

ld -o eatsyscall eatsyscall.o

eatsyscall.o: could not read symbols: File in wrong format

the solution is to add another parameter to the ld command:

ld -o eatsysdemo eatsyscall.o -m elf_i386


The problem is that you are running a Linux system where both 32bit and 64bit libraries are present and ld will complain if you link libraries of different types.
Enjoy the reading.

Monday, June 8, 2015

Where to download Oracle Client "FULL" (Not the instant version)

To  download the Full Oracle Client, not the Instant version, you need to go the download page for the Oracle Database and then select the "View All" option next to the Oracle Database for your Operating System.
For Oracle 12c this is the url
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index-092322.html