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'>
//<
Link.
Open Explorer and go to View -> Options -> General Change Open File Explorer to This PC
...
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...
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...
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...
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 =...
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...
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...
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',...
Subscribe to:
Posts (Atom)