Thursday, October 29, 2015

Blogger Auto Read more with thumbnail

Link. Edit your blogger template HTML. Add the following code below the </head> tag. <!-- Auto read more script Start --> <script type='text/javascript'> var thumbnail_mode = "yes"; //yes -with thumbnail, no -no thumbnail summary_noimg = 430; //summary length when no image summary_img = 340; //summary length when with image img_thumb_height = 200; img_thumb_width = 200; </script> <script type='text/javascript'> //<![CDATA[ function...
Read more ...

Wednesday, October 28, 2015

Using SyntaxHighlighter in Blogger

SyntaxHighlighter Copy the following code <!-- Syntax Highlighter Additions START --> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shCore.css' rel='stylesheet' type='text/css'/> <link href='http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css' rel='stylesheet' type='text/css'/> <script src='http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js' type='text/javascript'/> ...
Read more ...

“Search This Blog” is not Working on Blogger

Link. Solution: Go to your layout page and remove the current (Search This Blog) gadget. Add an Html/Javascript gadget to your page. Paste the following into the gadget content and give a title (e.g. Search This Blog). Make sure you are substituting in your own blogname into the url. <form action="http://yourblogname.blogspot.com/search" name="input" method="get"> <input value=" " name="q" size="20" type="text"/> <input...
Read more ...

Monday, October 26, 2015

Continuous figure/table numbering in LaTeX

Link. In the standard document classes report and book, figure and table counters are reset after every chapter. On the other hand, article does not reset these counters when a new section is started. The chngcntr package provides the \counterwithin and \counterwithout commands to redefine a counter, by adding or removing a dependency. Through these commands, the behavior of the figure and table counters can be changed. Continuous...
Read more ...

Thursday, October 22, 2015

Disable the Dock icon for any Application (MAC OS X)

Link. There are many applications on your Mac that don't need a Dock icon. Having a Dock icon for applications that are accessed through a menu bar item or constantly run in the background would just waste space and clutter up your Dock. Many applications like this automatically hide their Dock icon (Google Notifier, Quicksilver) however some don't (Launchbar, HardwareGrowler). Luckily, if it is a cocoa application, you can...
Read more ...

Thursday, October 8, 2015

gsl-config not found ERROR when install R package

Download gsl latest version from here. ./configure make sudo make install Now you can install the R package without erro...
Read more ...

Monday, September 28, 2015

How to make Windows 10 File Explorer open “This PC” by default?

Link. Open Explorer and go to View -> Options -> General Change Open File Explorer to This PC ...
Read more ...

Sunday, September 27, 2015

Quickly Show/Hide Hidden Files on Mac OS X

Link. // Show hidden files defaults write com.apple.finder AppleShowAllFiles YES Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch. // Hide hidden files defaults write com.apple.finder AppleShowAllFiles NO Again, hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaun...
Read more ...

Thursday, September 17, 2015

Disable internal laptop display when external display is attached

Link. Before Lion it was possible to run an external display off a laptop and have the internal display disabled, even if you opened the lid. This can be useful for a myriad of reason including energy saving and better wifi reception. With Lion the internal display will always turn on when the lid is opened, even if there is already an external display connected. A solution was posted on the Apple support forums by user...
Read more ...

Monday, May 18, 2015

Strikethrough package in Latex

\documentclass[a4paper]{article} % package for strike through \usepackage{ulem} \usepackage{xcolor} \definecolor{darkgreen}{rgb}{0,0.4,0} \begin{document} ... \textcolor{red}{\sout{something has to be struck out}} \textcolor{blue}{something has been added} \textcolor{darkgreen}{something has been updated} ... \end{document...
Read more ...

Monday, May 4, 2015

Convert MATLAB history.m to History.xml

Link. fid = fopen('history.m'); % Create the document node and the root element, 'history' docNode = com.mathworks.xml.XMLUtils.createDocument('history'); % Get the history node history = docNode.getDocumentElement; % Read the first line of the old history.m file line = fgetl(fid); % Loop through every line of the old history.m file while there are lines while ischar(line) % Add a command element for each command command =...
Read more ...

Wednesday, April 15, 2015

Additional references in BibTeX

Link. There are two solutions possible: 1. Patch the \AtEndEnvironment{thebibliography} as follows: \AtEndEnvironment{thebibliography}{ % all your extra bibitems go here \bibitem{extra1}A. Uthor, Some Extra Paper, vol 123, p.2--3 } Do not forget to put \usepackage{etoolbox} somewhere in the preamble. MWE: \documentclass{article} \usepackage{etoolbox} \begin{document} \AtEndEnvironment{thebibliography}{ % all your extra...
Read more ...

Thursday, February 5, 2015

Textmate: Display the full file path in title bar

Link. Create a file named '.tm_properties' in you home directory. Add the following sentence in the '.tm_properties' file. windowTitle = "$TM_DISPLAYNAME – $TM_DIRECTOR...
Read more ...

Wednesday, January 14, 2015

Overlay Line Plot on Bar Graph Using Different Y-Axes and change the properties of Bar and Line

For Overlay Line Plot on Bar Graph Using Different Y-Axes. See here. days = 0:5:35; conc = [515,420,370,250,135,120,60,20]; temp = [29,23,27,25,20,23,23,27]; [AX,hBar,hLine] = plotyy(days,temp,days,conc,'bar','plot'); %u can switch order of 'bar' and 'plot'. %Change the Axis properties set(AX(1),'ycolor','r') set(AX(2),'ycolor','b') %Change Line properties set(hLine, 'color', r) %Change Bar properties set(hBar, 'facecolor',...
Read more ...