Tuesday, October 27, 2009

Baloney Detection Kit


Cite as:
Saad, T. "Baloney Detection Kit." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/10/baloney-detection-kit.html


Stumble Upon Toolbar

Friday, October 23, 2009

Lagrangian Optimization of Wall Injected Flows

I am pleased to share some of the results of my research over the past few years. These just appeared as a review article in the Proceedings of the Royal Society A and you can download it from here (and the cool thing about the Royal Society – besides its very professional reviewers – review articles are free access to everyone!)

http://dx.doi.org/10.1098/rspa.2009.0326

I hope that you will enjoy reading this manuscript as it includes many classical ideas with a novel twist as well as some original derivations and solutions for flows at large Reynolds numbers.

The heart of this research resides in the fact that we were able to capture solutions that range from purely irrotational to highly rotational fields using a single formulation. These have different energy signatures and morph according to the energy level they are at. The second law of thermodynamics is then used to identify which of those solutions is the most likely to occur in practice based on the entropy maximization principle. Finally, Kelvin’s minimum energy theorem is extended to open regions thus granting it applicability to a wider class of problems. It is used here to prove that the solution with minimum kinetic energy corresponds indeed to the irrotational motion.

Working on this article is one of the main reasons that I have not been posting recently,

Cheers!


Cite as:
Saad, T. "Lagrangian Optimization of Wall Injected Flows." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/10/lagrangian-optimization-of-wall.html


Stumble Upon Toolbar

Friday, August 28, 2009

How to add space after \hline in LaTeX tables

Try the following:

\hline \\[-1.0em]
Voila!

Of course, you can change the numbers and units inside the brackets.


Cite as:
Saad, T. "How to add space after \hline in LaTeX tables." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/08/how-to-add-space-after-hline-in-latex.html


Stumble Upon Toolbar

Thursday, August 27, 2009

How to highlight text in LaTeX

Add the following to your preamble:

\usepackage{color}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
To highlight text in the body of your document, use
\hilight{this is some highlighted text}
Voila!

Of course, you can change the color from yellow to any of the supported colors. For a list of those, check: http://en.wikibooks.org/wiki/LaTeX/Colors


Cite as:
Saad, T. "How to highlight text in LaTeX." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/08/how-to-highlight-text-in-latex.html


Stumble Upon Toolbar

Thursday, June 25, 2009

OriginLab Settings for High Quality Graphs

This is a well overdue post. I know that some readers have been waiting for this. I apologize for the delay. I hope you'll find this talk useful.





Cite as:
Saad, T. "OriginLab Settings for High Quality Graphs." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/06/originlab-settings-for-high-quality.html


Stumble Upon Toolbar

Wednesday, June 24, 2009

Flashget Script Error/Flashget Recommends bar

In Flashget, go to:

View/Recommendation

and uncheck it.

Obviously, the ads displayed by flashget are generating an internet explorer script error. I never liked that recommend bar anyway.


Cite as:
Saad, T. "Flashget Script Error/Flashget Recommends bar." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/06/flashget-script-errorflashget.html


Stumble Upon Toolbar

Thursday, June 4, 2009

hyperref and pdfdraftcopy

There seems to be a problem when these two packages are used together. Try adding the following to your preamble – it worked well on my end

\makeatletter
    \def\@DRAFTdimen{% copied from pdfdraftcopy.sty 
    \setlength\LLY{\paperheight} 
    \addtolength\LLY{-\textheight} 
    \addtolength\LLY{-\headheight} 
    \addtolength\LLY{-\headsep} 
    \addtolength\LLY{-1in} 
    \addtolength\LLY{-3pt} 
    \setlength\LLX{1in} 
    \ifodd\value{page}% was \thepage 
    \addtolength\LLX{\oddsidemargin}\else 
    \addtolength\LLX{\evensidemargin}\fi 
    \setlength\URX{\textwidth} 
    \setlength\URY{\textheight}
}
\makeatother

Voila!


Cite as:
Saad, T. "hyperref and pdfdraftcopy." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/06/hyperref-and-pdfdraftcopy.html


Stumble Upon Toolbar

Wednesday, June 3, 2009

Make Nomenclature in WinEdt

First, you need to download this file

http://www.winedt.org/Macros/LaTeX/MakeNomencl.php

Save it in the “Exec/MiKTeX” folder under your WinEdt path, e.g.

C:\Program Files\Winedt Team\WinEdt\Exec\MiKTeX

in WinEdt, do the following

    1. Right click on the Menu bar
    2. Select “Menu Steup”
    3. Double click on any of the menus where you would like your make nomenclature command to go (Accessories would be a good candidate)
    4. On your upper left, choose Insert->Macro
    5. Name the new command (Make Nomenclature)
    6. Under Macro, type the following: Exe('%b\Exec\MiKTeX\MakeNomencl.edt');

Voila!


Cite as:
Saad, T. "Make Nomenclature in WinEdt." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/06/make-nomenclature-in-winedt.html


Stumble Upon Toolbar

Friday, May 29, 2009

7zip Batch Zip

First, make sure that the 7zip directory is in your path. Usually, it is located at

C:\Program Files\7-Zip

Next, write the following in batch file

Zip all files in a directory

for /f %%A in ('dir /b') do 7z a -tbzip2 "%%A.bz2" "%%A"

Zip files with a specific extension in a directory (download batch file)

for /f %%A in ('dir /b *.txt *.dat') do 7z a -tbzip2 "%%A.bz2" "%%A"

Save and run in the directory where you want to zip the files.

Here, I am compressing using bzip2 (notice the switch: –tbzip2). You can change that to

-tzip for zip

-tgz for gz

-t7z for 7z

some more examples here.


Cite as:
Saad, T. "7zip Batch Zip." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/05/7zip-batch-zip.html


Stumble Upon Toolbar

Restart Windows in Remote Desktop

press:

Alt + F4

Voila!


Cite as:
Saad, T. "Restart Windows in Remote Desktop." Weblog entry from Please Make A Note. http://pleasemakeanote.blogspot.com/2009/05/restart-windows-in-remote-desktop.html


Stumble Upon Toolbar