Tony S.

2 Followers
14 Blog Followers
Following:
Following Blogs: 0

Latest Activity

The Maximum Entropy Method for Reconstructing Density Distriubtions

Tony S. posted an article on - Jun 23, 2011, 9:35 pm
A summary of using the maximum entropy principle from information theory to reconstruct a PDF (or other distributions) given a finite number of moments. This is quite useful especially when using the method of moments in population balances or related stochastic transport processes. The document als...
Comment - Like

Quadrature Methods for Numerical Integration

Tony S. posted an article on - Apr 11, 2011, 6:27 pm
A review of Gaussian quadrature for numerical integration. Discusses Lagrange's interpolation and the theory of orthogonal polynomials. Download PDF.
Comment - Like

Endnote Auto-formatting parentheses

Tony S. posted an article on - Apr 2, 2011, 2:27 am
I do not use EndNote. And most likely never will. But here's an annoyance that you may have encountered  while working on your word documents. Sometimes, in your word document, if you write certain acronyms between parentheses, EndNote may think that this is a reference. To prevent this from ...
Comment - Like

LaTeX Footnote not at Bottom of Page

Tony S. posted an article on - Feb 18, 2011, 12:18 am
Try using this package: \usepackage[bottom]{footmisc}
Comment - Like

The Mathematics of f/stop Aperture Numbers

Tony S. posted an article on - Oct 4, 2010, 12:04 pm
A sequence is a set of numbers that can be constructed using a formula known as a recurrence relation.  The most obvious of these is the set of natural numbers (integers). How? Start with any integer (positive or negative). To get the next integer, simply add 1! Some sequences are very obvio...
Comment - Like

How to Enable PHP Inside HTML Pages

Tony S. posted an article on - Aug 18, 2010, 10:18 am
php code can be embedded within html pages within the tags: However, and depending on the server that you are using, this must be enabled. On apache2, you can edit the .htaccess file to include: AddType application/x-httpd-php .htm .html I added this line to the .htaccess on my website...
Comment - Like

Picasa Installation Error on Ubuntu

Tony S. posted an article on - Aug 16, 2010, 10:16 am
So Picasa has failed to install on my Ubuntu box. The caveat is that it also prevented me to install any other packages and gave the following error whenever i tried to install something: ubuntu previous installation hasn't been completedI suspected it was Picasa, but to verify, I opened up a termin...
Comment - Like

How to Change Computer Name or Hostname in Linux

Tony S. posted an article on - Aug 13, 2010, 10:13 am
The hostname is stored in the file /etc/hostnameYou can edit that with your favorite editor. I use emacs: sudo emacs /etc/hostnameYou will also need to match that in /etc/hosts
Comment - Like

How to Start emacs Inside a Terminal

Tony S. posted an article on - Aug 12, 2010, 10:12 am
use: emacs -nw
Comment - Like

Extract Multipart rar Files in Linux

Tony S. posted an article on - Aug 11, 2010, 10:11 am
Open up a terminal and browse to the directory where the multipart rar files are and type unrar x thefile.part1.rar
Comment - Like

How to Kill a Process in Linux

Tony S. posted an article on - Aug 10, 2010, 10:10 am
First, identify the PID for the process that refuses to end. Open up a terminal and type topTo close top, type Ctrl + cnow you're back in terminal. To kill the process, type kill -9 PID Hope that works!
Comment - Like

Avoid Computer Injury - Repetitive Strain Injury (RSI) Software

Tony S. posted an article on - Jul 31, 2010, 9:31 am
I've recently succumbed to the unforgiving punishment of continued computer use. I purchased my first computer in 1995. It had an Intel Pentium 133 MHz processor. I don't recall the memory size. It had a 4GB hard disk drive (called Quantum BigFoot). And so began my computing journey. I was inseparab...
Comment - Like

emacs, vim, svn, doxygen, and friends - Stocking your Unix Toolbox

Tony S. posted an article on - Jul 30, 2010, 9:30 am
Charles Reid, a doctoral candidate at the University of Utah and a very good colleague of mine, has kindly agreed to post some lectures from his summer "Scientific Computing Workshop" on PMAN. Charles is not only knowledgeable in all Unix related stuff (Unix, Linux, OSX), but also a very rigorous re...
Comment - Like

LaTeX Symbols - Detexify

Tony S. posted an article on - Jul 29, 2010, 9:29 am
say you're looking for some weird LaTeX symbol but you don't want to go through an exhausting list of possible candidates. You just want to draw that symbol and have someone tell you what the syntax for that is. Well, Detexify does this exact thing!!! Go ahead and try it (and train it, and by al...
Comment - Like

How to Add a Contact Me Page to your Blog or Website

Tony S. posted an article on - Jul 28, 2010, 9:28 am
Turns out to be quite simple using Google docs! Here are the steps: Go to Google docs Create a new form Customize the form to your liking by filling it with required info (Name, email, website, message...) To add new items use the "Add item" button on the upper left. Use this to a...
Comment - Like

How to Place Two Figures Side by Side in Latex Multicolumn Class

Tony S. posted an article on - Jul 27, 2010, 9:27 am
If you are using a multicolumn LaTeX class template, then placing two figures side by side so that they spawn the entire width of the page is done by simply using the {figure*} environment \begin{figure*}     \subfigure{...}     \subfigure{...} \end{figure*}Voila! You m...
Comment - Like

Inexact Differentials

Tony S. posted an article on - Jul 26, 2010, 9:26 am
In a previous post, I discussed the proper techniques to integrate an exact total differential. The major point to be drawn from exact differentials is that their parent function is independent of the path of integration. For example, the work done by gravity is independent of the path taken. It onl...
Comment - Like

Fallacies in Scientific Research: Appeal to Popularity

Tony S. posted an article on - Jul 24, 2010, 9:24 am
This is my second post on logical fallacies in scientific research. Today's subject discusses how the "Appeal to Popularity" fallacy can hinder the research environment. This one in particular is a bit tricky because, at the face of it, an individual may use it as evidence. Definition: Appeal ...
Comment - Like

Numeric Limits in C++

Tony S. posted an article on - Jul 23, 2010, 9:23 am
You can use the "limits" class template to obtain machine specific numeric limits. Here's a sample code: #include #include using namespace std; int main() {     //print maximum of various types     cout ::max() ::max() ::max() ::max() ::max() ::min() ::min...
Comment - Like

Remote Desktop Through a Router

Tony S. posted an article on - Jul 22, 2010, 9:22 am
If you're trying to remote desktop to a computer connected to a wireless router, you'll most likely need to "forward" certain ports to allow this connection to go through. For windows, and if you haven't changed that setting, the default port if 3389. So here's how you can do it in general: Go to yo...
Comment - Like

How to Get CPU Info on Linux

Tony S. posted an article on - Jul 21, 2010, 9:21 am
Try: cat /proc/cpuinfo There's a lot more to this. You can learn about the /proc directory from this post: http://www.linux.com/archive/articles/126718
Comment - Like

2D Arrays in C++ using New

Tony S. posted an article on - Jul 20, 2010, 9:20 am
In a previous post I discussed how to create 2D arrays in C. Here's the version for C++. Pointers can be easily used to create a 2D array in C++ using the operator "new" . The idea is to first create a one dimensional array of pointers, and then, for each array entry, create another one dimensional...
Comment - Like

How to Organize you Digital Photos

Tony S. posted an article on - Jul 19, 2010, 10:16 am
With the advent of digital photography and the widespread use of digital cameras, it has become very exciting and easy to take photos... that is, lots of photos! Soon enough, your hard disk will be spawned with JPEGs. Whether you are scanning your old prints or importing photos from your digital cam...
Comment - Like

How to Organize your Digital Photos

Tony S. posted an article on - Jul 19, 2010, 9:17 am
With the advent of digital photography and the widespread use of digital cameras, it has become very exciting and easy to take photos... that is, lots of photos! Soon enough, your hard disk will be spawned with JPEGs. Whether you are scanning your old prints or importing photos from your digital cam...
Comment - Like

Fallacies in Scientific Research: Appeal to Common Practice

Tony S. posted an article on - Jul 17, 2010, 9:16 am
In this series of articles, I will discuss some of the most annoying logical fallacies that research scientists fall a victim to. I will start with a very common fallacy known as Appeal to Common Practice. As the name designates, this logical fallacy stands in its own right as an insult to logic and...
Comment - Like

Compiling Hypre on Mac OSX

Tony S. posted an article on - Jul 16, 2010, 9:15 am
Hypre is a library for solving large, sparse linear systems of equations on massively parallel computers. You can download it from here. Here's my configuration on Mac OSX ./configure --prefix=/Users/USERNAME/pkg/hypre-2.6.0b-install\ --with-MPI-include=/Users/USERNAME/pkg/o...
Comment - Like

Parallel Heat Equation

Tony S. posted an article on - Jul 15, 2010, 9:14 am
I apologize for this delay. I've attached the parallel heat equation solver to this post. You can download the code from here http://www.tsaad.net/code/parallel-heat-eq.7zor, separately http://www.tsaad.net/code/parallel-heat-eq/heat.cpp http://www.tsaad.net/code/parallel-heat-eq/heat.hPlease note, ...
Comment - Like

Compiling OpenMPI on MacOSX

Tony S. posted an article on - Jul 14, 2010, 9:13 am
First, you will need a proper gfortran installed on your system. This version (gfortran 4.2.3)worked for me. After installing that download and extract OpenMPI. Here's the config line that I used ./configure --prefix=/Users/USERNAME/pkg/openmpi-1.4.2-install\ F77=gfortran CFLAGS=-m64 C...
Comment - Like

Total Number of Posts and Comments - Blogger Gadget

Tony S. posted an article on - Jul 13, 2010, 9:12 am
You can add the total number of posts and comments as a blogger gadget. In your design page, add an HTML/Java Script gadget, and put in the following code:   function numberOfPosts(json) { document.write('Total Posts: ' + json.feed.openSearch$totalResults.$t + ' '); } functi...
Comment - Like

LaTeX Thesis and Dissertation Template

Tony S. posted an article on - Jul 12, 2010, 9:11 am
Here's the LaTeX class template that I developed for my dissertation. It is hosted at the University of Tennessee. You can download it from here: http://web.utk.edu/~thesis/files/ut-thesis-template.zipThe class has some really neat features. It can automatically generate the approval pages for up to...
Comment - Like

How to Force Google Chrome to Download PDF Files

Tony S. posted an article on - Jul 11, 2010, 1:38 pm
Try this:Go to "Options" (click the wrench button on upper right)Go to: Under the Hood -> Content Settings -> Plug-insClick on "Disable Individual Plug-ins...Locate the Adobe Acrobat plugin (or any other PDF viewer) and click "Disable"Voila!
Comment - Like

How Euler Derived the Momentum Equations

Tony S. posted an article on - Jul 10, 2010, 12:31 pm
In this post, I will present Euler's derivation of the momentum balance equations for a fluid flow. Please note that I will use modern notation with a few modifications to the original derivation to clarify certain issues. Nonetheless, the core of Euler's derivation is maintained. Considerin...
Comment - Like

Italics in Math Equations

Tony S. posted an article on - Jul 9, 2010, 1:09 pm
I've seen plenty of papers in the literature with equations that are practically unreadable. My main issue is that these manuscripts fail to follow a very simple guide in mathematical notation:If the term in question is a variable, then it should be italicized. All other terms should NOT be ital...
Comment - Like

LaTeX Letter Template

Tony S. posted an article on - Jul 7, 2010, 8:48 pm
Here's a LaTeX letter template for two print formats. Use the first to print on paper WITHOUT a letter head and the second on paper WITH a letter head.LaTeX letter template for paper without letter headVoila!
Comment - Like

How to Post LaTeX Equations in Blogger

Tony S. posted an article on - Jul 6, 2010, 1:23 pm
I've gone through several approaches to post math equations on blogger (check my previous posts here, and here). I found that the most effective and stable method is the one based on the CodeCogs server. Here's how it works:Go to the codecogs online LaTeX editorType in your equations LaTeXCo...
Comment - Like

Transparency, Opacity, or Alpha settings for CSS Backgrounds

Tony S. posted an article on - Jul 5, 2010, 10:07 pm
Try:background:rgba(r,g,b,alpha-value)Voila! For example, on this blog, I use rgba(255,255,255,0.8) for the background wrapper.
Comment - Like

Mathtype and Office 2010

Tony S. posted an article on - Jul 5, 2010, 1:52 pm
Move the following files...\MathType Install Dir\MathPage\MathPage.wll...\MathType Install Dir\Office Support\MathType Commands 6 For Word.dotm...\MathType Install Dir\Office Support\WordCmds.dotTo...\Office Install Dir\Office14\STARTUP Voila!
Comment - Like

9. Derivation of the Continuity Equation in Spherical Coordinates

Tony S. posted an article on - Jul 5, 2010, 12:27 am
We start by selecting a spherical control volume dV. As shown in the figure below, this is given bywhere r, θ, and φ stand for the radius, polar, and azimuthal angles, respectively. The azimuthal angle is also referred to as the zenith or colatitude angle. The differential mass is We will repres...
Comment - Like

Some Words to Avoid in Scientific Papers and Manuscripts

Tony S. posted an article on - Jul 4, 2010, 7:42 pm
Avoid using emotional and vague words. Avoid unnecessary fillers. Be precise, specific, and objective. Define all your words and use quantitative numbers as much as possible. Here's a list: plenty, very much, a lot, short (define what short is!), long (define that as well!), really, heavy, light...
Comment - Like

My Journey into Open Source and Cross Platform Independence

Tony S. posted an article on - Jul 4, 2010, 11:47 am
When you advance in your career as a scientist, the choices that you make to accomplish certain research tasks become of crucial importance. If you spend a year collecting data and analyzing in Excel for instance, creating all sorts of plots and customizations, it will be very hard to make the switc...
Comment - Like

Integrating Exact Differentials

Tony S. posted an article on - Jul 3, 2010, 6:12 pm
Often times I am faced with the integration of a system of differential equations of the formThis system describes the behaviour of the primitive function "p". In fact, these equations stem from the total differential of pTwo cases arise in this situation. If "dp" is an exact differential, then the ...
Comment - Like

How to Wrap Text in CSS

Tony S. posted an article on - Jul 3, 2010, 2:12 pm
Try this in your class definition word-wrap:break-word; Voila!
Comment - Like

How to Activate \subsubsubsection in LaTeX

Tony S. posted an article on - Jun 22, 2010, 12:49 pm
The equivalent to \subsubsubsection is \paragraph. To have that numbered simply use:\setcounter{secnumdepth}{5}then:\section{} % level 1\subsection{} % level 2\subsubsection{} % level 3\paragraph{} % level 4 - equivalent to subsubsubsection\subparagraph{} % level 5Voil...
Comment - Like

Deleting duplicate BibTeX entries from Mendeley

Tony S. posted an article on - Jun 17, 2010, 7:28 pm
I've recently moved to using Mendeley as my main reference management tool. It has some pretty neat features except for a few that keep bugging me. One of those is that Mendeley seems to maintain record of deleted entries in its database and those end up in its BibTeX export. Worst of all is tha...
Comment - Like

Maximize Chrome in Mac OSX

Tony S. posted an article on - May 3, 2010, 12:06 pm
Try: Shift + maximize button (green button)Voila!
Comment - Like

Tony S.'s Blogs:

Tony S.'s Followers

Tony S. is Following

Invite Your Friends

Invite your contacts to blogged from:
gmail yahoo