unable to start mongodb local server

Recently I explore mongoDB document database using multinode cluster, somehow, after I turn off the machine, I got the following errors

Address already in use for socket: 0.0.0.0:27017

I found some related articles, this and that, and the following answer by Sacha is work for me,

In this case, type the following command

ps wuax | grep mongo

You should see something that looks like this

User           31936   0.5 0.4 2719784 35624   ?? S     7:34pm   0:09.98 mongod
User           31945   0.0 0.0 2423368   184 s000 R+   8:24pm   0:00.00 grep mongo

Now enter the kill command for the mongod instance (31936 in this case):

kill 31936

Display the word ‘Figure’ in List of Figure Latex

Configuring my thesis document format it’s quite tedious :D, but so interesting.

I also want to know How can i set my listoffigures to display the word ‘Figure’ before the figure number?

What i want is that the List of Figures displays as follows:

Figure 1 : caption………………………….page
Figure 2 : caption………………………….page
Figure 3 : caption………………………….page

Getting the tips from this source, the solution will be

Re: Figures and listoffigures..  Topic is solved

Postby Stefan_K on Mon Jun 30th, 2008

Hi fipoo,

welcome to this forum!
You could use the tocloft package to customize the list of figures, see its documentation. Have a look at the following small example demonstrating it similar to your description:

CODE: SELECT ALL  •  OPEN IN WRITELATEX
\documentclass[a4paper,10pt]{report}
\usepackage{tocloft}
\renewcommand*\cftfigpresnum{Figure~}
\settowidth{\cftfignumwidth}{\cftfigpresnum}
\renewcommand{\cftfigaftersnumb}{\quad--~}
\begin{document}
\listoffigures
\newpage
\begin{figure}
\centering
Test\caption{Test}
\end{figure}
\end{document}

Thank you
Stefan

Changing Figure 1.1 to Figure 1

I would like to change the Figure caption format without including chapter number,

then I found the answer here :

by following this example:

\documentclass{scrbook}
% ———-
% this needs to be in the preamble:
\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{figure}{section}
% ———-
\begin{document}
\listoffigures

\chapter{test}
\begin{figure}
\caption{test}
\end{figure}

\chapter{test}
\begin{figure}
\caption{test}
\end{figure}

\end{document}

or you can see the complete example in writelatex

How to change the name of document elements like “Figure”, “Contents”, “Bibliography” in Latex

I’d like to modify the names used to typeset some of my document elements. For example, the caption of figure floats should change from “Figure” to “Fig.”, and my \tableofcontentssectioning heading shouldn’t read “Contents”, but “Table of Contents”.

I get the step by step from this source :

Tex exchange

For me, since I am using \usepackage[english]{babel} the following is works by adding it before \begin{document}

\addto\captionsenglish{%
  \renewcommand{\figurename}{Fig.}%
  \renewcommand{\contentsname}{Table of Contents}%
}

Change capter font and format Latex

Writing the thesis Latex format somehow we face some unusual format of chapter. Usually the chapter heading is written like this

Chapter 1

Introduction

however, I would like to make it like the following:

1. Introduction

with Introduction font is small caps font,

For making it happen, getting references from this site, we can add the following option to customize it

* adding the package

\usepackage{xcolor}
\usepackage{titlesec}

*add the following lines before \begin{document}

\makeatletter
\renewcommand{\@makechapterhead}[1]{%
\vspace*{50 pt}%
{\setlength{\parindent}{0pt} \raggedright \fontfamily{phv}\selectfont\bfseries\LARGE
\color{blue} {\thechapter.\ #1\par\nobreak\vspace{20 pt}}}}
\makeatother

\titleformat{\section}{\color{blue}\fontfamily{phv}\selectfont\bfseries\Large}{\thesection}{1em}{}
\titleformat{\subsection}
{\color{blue}\fontfamily{phv}\selectfont\bfseries\Large}{\thesubsection}{1em}{}

and yay, it works for my Latex document ^^

the full example is here

more option can be seen here