If you get the above warning just run
sudo apt-get install gtk2-engines-pixbuf
cheers
Thursday, February 23, 2012
Friday, February 3, 2012
How to open Java .class files in a human-readable way?
Hi,
I came across a java applet on a webpage and I wanted to know how it worked. These .class files are not human readable if you open them in a text editor like notepad.
Hope this helps!
I came across a java applet on a webpage and I wanted to know how it worked. These .class files are not human readable if you open them in a text editor like notepad.
- When you view the source of the webpage (IE just right click on the page and there is "View source" option) you can find what .class is running, which is the underlying program for the applet.
- After that you can use something like JD-GUI, a java decompiler, to view the code
Hope this helps!
Monday, October 17, 2011
How to tie a tie in 10 seconds
I found this post really interesting and wanted to share with you all. Hope this would help you guys!
Wednesday, September 14, 2011
volatile keyword in C++
I came across the keyword volatile for the first time.
It is used to prevent the compiler from modifying a segment of code for optimization. Variables defined with volatile keyword can be used for:
If, however, the variable foo can change outside the code, we do not want the compiler to modify it. So, we use the volatile keyword as follows:
It is used to prevent the compiler from modifying a segment of code for optimization. Variables defined with volatile keyword can be used for:
- accessing memory mapped devices
- signal handlers etc.
static int foo; void bar(void) { foo = 0; while (foo != 255) ; }
This code will be optimized to:
void bar_optimized(void) { foo = 0; while (true) ; }by an optimizing compiler.
If, however, the variable foo can change outside the code, we do not want the compiler to modify it. So, we use the volatile keyword as follows:
static volatile int foo; void bar (void) { foo = 0; while (foo != 255) ; }
Tuesday, September 13, 2011
SVN Checkout
SVN stands for subversion.It is a version control software that allows users to download latest version of a particular branch without having to wait until it is properly packaged and delivered.
Here is how you can checkout from svn.
Here is how you can checkout from svn.
svn checkout <here you enter the web page address>
Thursday, September 1, 2011
How to change font size in LaTex equations
Credit should go to original contributor. I am just sharing here.
\documentclass{article} \usepackage{amsmath}
\begin{document}
\begin{eqnarray} 2x+3 \end{eqnarray}
\makeatletter
\def\@eqnnum{{\normalsize \normalcolor (\theequation)}}
\makeatother
{ \small \begin{eqnarray} 2x+3 \end{eqnarray} }
\end{document}

to make sure the size of the equation numbers are not changed we have included a redefinition of the eqnnum command.
\makeatletter \def\@eqnnum{{\normalsize \normalcolor (\theequation)}}
\makeatother
available sizes:
\documentclass{article} \usepackage{amsmath}
\begin{document}
\begin{eqnarray} 2x+3 \end{eqnarray}
\makeatletter
\def\@eqnnum{{\normalsize \normalcolor (\theequation)}}
\makeatother
{ \small \begin{eqnarray} 2x+3 \end{eqnarray} }
\end{document}
to make sure the size of the equation numbers are not changed we have included a redefinition of the eqnnum command.
\makeatletter \def\@eqnnum{{\normalsize \normalcolor (\theequation)}}
\makeatother
available sizes:
- \tiny
- \scriptsize
- \footnotesize
- \small
- \normalsize (default)
- \large
- \Large (capital "L")
- \LARGE (all caps)
- \huge
- \Huge (capital "H")
Wednesday, August 31, 2011
TeXniCenter 0 ERRORS, 0 WARNINGS, 0 BAD BOX, 0 PAGES.
This happens if the MikTex has missing packages. To resolve this, go to
for e.g. MikTex2.9 -> maintainance (admin) - > Settings (admin) -> General and choose
either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".
cheers!
for e.g. MikTex2.9 -> maintainance (admin) - > Settings (admin) -> General and choose
either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".
cheers!
Subscribe to:
Posts (Atom)