Christopher Gohlke’s website for Python packages for Windows (he hosts many, but the most popular are probably numpy and scipy) now distributes wheels instead of exe files. This means we need the most recent version of pip and a new procedure to install them. Here’s a procedure I use to simplify installing dependencies.
First, create a new folder to store all of the files in; I put mine in
Then, go to Christopher’s site and download all of the packages you need and put them in the folder you just created.
Now, open any text editor and create a file called
The contents of that file should be a list of all the packages you downloaded; for instance, mine looks like:
Cython scipy numpy tornado matplotlib requests pyparsing lxml Pillow
Then, pop open a command window and change to the directory you created. Finally, run the command
pip install --upgrade -r requirements.txt --no-index -f . --no-deps
This should look up all the wheel files in the current directory while ignoring PyPI.
In Beamer, it is useful to position images absolutely.
There are many ways to do this, but one simple one-liner can be done with
Setting up a development environment for Cantera on Windows 7 can be a little trickier than on Linux. This post contains instructions for how I set up my development environment on Windows 7.
SUNDIALS is a SUite of Nonlinear and DIfferential/ALgebraic equation Solvers. It is useful for many problems, and is needed to perform sensitivity analysis in Cantera. It can be a pain to install on Windows, so here is my procedure for installing on Windows 7 x64.
I was recently appointed to be a member of the EFRC newsletter editorial board. As part of my duties, I wrote an article summarizing some research from Prof. Petra E. de Jongh’s lab at the Utrecht University. The article is available on the EFRC newsletter website, http://www.energyfrontier.us/newsletter/201404/confined-catalysts-last-longer
I want to include the documentation for one of my programming projects
in my thesis. The documentation is generated by Sphinx, which can generate
LaTeX output. I compiled that output to PDF, which is relatively easy to
include in a separate LaTeX file with the
Unfortunately, including a separate PDF file in this manner breaks
all the internal and external clickable links in the included PDF. The
solution is an experimental Java program called
pax. Pax reads
the PDF file before it is included and generates a
.pax file when it includes the PDF and re-generates all of
I had a problem recently that the file icons in Windows Explorer for all the filetypes set to open in Notepad++ were coming up as the blank icon. To fix the issue, I had to reset the icon handler for Notepad++. I’m not sure if this was related to an update for Notepad++, or something I did.
It really bugs me when numbers are typset with two different fonts
on the same line, say in MS Word if you type 0.01 in the text and
then the same in an equation field, they won’t look the same because
they use different fonts. For my dissertation (written in LaTeX), I
wanted to be sure to avoid this pitfall. Unfortunately, it is rather
more complicated than it seems on the face. First, you must use XeLaTeX
(which I am). Second, the packages
fontspec lets you set the main body font, while
lets you control the fonts used in math environments (between $, or in
an equation environment, etc.). However, by default,
typeset all of the numbers in whatever font you choose with that package
so the default must be changed.
While writing my dissertation in LaTeX, I was having a problem that
some sub-equations were not linking to the correct place. The solution
is to load the
mathtools package before the
This question on TeX.SX showed the way, even though I’m not using
I was recently appointed to be a member of the EFRC newsletter editorial board. As part of my duties, I wrote an article summarizing some research from Prof. Rolf Reitz’s lab at the University of Wisconsin. The article is available on the EFRC newsletter website, http://www.energyfrontier.us/newsletter/201401/advantage-renewable-fuels-high-efficiency-engines
Arara is a cross platform build system written in Java. It is intended for use with TeX and various derivatives thereof, but can really be used for any build process. I’m using it to help write my dissertation in XeLaTeX. Installation is a little bit of a pain on Windows, so here are some notes to ease the process.
I’m working on developing for an open source project right now. The source
code is stored in a Subversion repository, but my preferred version
control manager is Git. I use
git-svn to access the repository so that
I can still use Git as my version control.
Update: The following procedure will work on Ubuntu 14.04.1 as well.
This post will explain how to install Numpy and Scipy on Ubuntu 12.04.3 with the most recent Intel compilers as of this writing (2013 SP1 Update 1).
I was recently annoyed by having the wrong icon for certain files that should open with Notepad++.
My lab typically uses the CHEMKIN-Pro software from Reaction Design to perform simulations of our experiments. Unfortunately, CHEMKIN-Pro is closed source and does not include a number of features I have found useful for my research. Thus, my labmate and I have recently endeavored to install a separate software package on our Ubuntu 12.04.3 server to perform these simulations.
On Windows 7, Microsoft Office 2010 and 2013 will take over the file association for text-like files. The Office installer sets the default handler to use Office XML Handler for anything that was associated with Notepad++.
Lately, we’ve had a problem on our computational server in the lab when trying to link custom solvers to the CHEMKIN-Pro libraries. When the compiler runs, it complains about undefined references to a symbol.
Been trying to migrate this site to use Jekyll (http://jekyllrb.com) today and finally got it working with Pygments for code highlighting.
When adding integrals or sums to formulas in Word 2010 or 2007, the command
\int will give the correct symbol, but it will not stretch to fit the argument. To avoid having to go to the toolbar and add the symbol directly, simply type
\int\ofSpacefunctionSpace, where Space indicates a press on the spacebar, and where function indicates the function you wish to show. If you have a more complicated argument (for instance, one involving an operator such as plus or times), use the syntax
(supposedly, I just got an account) (Update: It is excellent, and I highly recommend paying for premium) excellent music streaming service, offers free streaming stations to your mobile device and computer, similar to Pandora. Since they just updated their Android app, I decided I wanted an account, but found that the only way to get one was to connect to Facebook. Since I didn’t want to do that, a bit of googling found this link, which details how to sign up for a German account without connecting to Facebook, then changing your country once you have an account. These instructions worked great, except I had to go to the “Subscriptions” tab of my account to actually change my country, by giving them a credit card or PayPal. Since I intend to get the premium service if I like it, I didn’t mind this, but you can delete the payment information if you so wish after you change your country.
UPDATE (10/10/2013): The newest version of Mendeley (1.10.1) now supports journal abbreviations, so go out there and upgrade!
We’ve all been there - walking back to your table in Starbucks, hot mug of coffee in hand, trying to catch the eye of the cute girl by the window when, whoops! Coffee everywhere! Given the (probably) millions of hipsters afflicted by this scenario on a yearly basis, it seems surprising that very little research has been done into the dynamics of why the coffee ends up on on your skinny jeans instead of staying in the cup where it belongs. Never fear though, because a graduate student from the University of California at Santa Barbara has recently published a study examining the mathematics and fluid dynamics behind the spilled cup of coffee.
A significant determinant of the fuel economy of a vehicle, in particular automobiles, is the gross vehicle mass (GVM). Reducing the GVM can offer substantial improvements in fuel economy, varying (depending on the estimate) between 2-8% improvements in fuel economy for each 10% savings in mass. Manufacturers have many methods to reduce the GVM, including material substitution (plastic for metal) and novel designs. Although these techniques can result in substantial primary mass savings, they actually represent an underestimate of the total possible mass that can be removed. This is because as the automobile is made lighter, structural components can also be made lighter, resulting in secondary mass savings (SMS). So, for instance, a lighter car would require a smaller and lighter transmission, or smaller and lighter brakes. A new paper from Alonso et al. discusses a new method for manufacturers to estimate SMS more accurately.
User Ke Feng has posted a MATLAB script to use the sendmail function within MATLAB to send a text message to US based mobile numbers.
During the late Middle Ages, many of the glaciers in Artic Canada and Iceland experienced abrupt increases in their size, due to substantially cooler summer months. This advance of glaciers has been termed the Little Ice Age (LIA), and the expansion of the glaciers has only been undone in the last decade or two. There are several hypotheses as to the cause of the glacial expansion during the LIA, but until now, no definitive answers have emerged. However, the retreat of these glaciers over the last few decades has allowed scientists to study the plants that were killed by the advance, determine the dates of the expansion of the glaciers, and connect the timing with global events to try to assign a cause to the LIA.
One of the ways in which climate change may be mitigated, and domestic energy security improved, is to create a new biofuel to power our cars and trucks that does not rely on traditional petroleum sources. One such fuel, ethanol, is already widely blended into gasoline in the US; another, biodiesel, is on sale in many fueling stations as a standalone fuel for diesel engines. However, due to concerns over the long-term sustainability of current production processes for biofuels (and for ethanol in particular), researchers are investigating a so called “second-generation” of biofuels. These include fuels that can be made from cellulose (the material that makes up plants’ cell walls, and comprises most of the mass of a plant) as well as fuels made from novel feedstocks, such as algae. My research in particular has focused on one such second-generation biofuel, called biobutanol. Biobutanol has many technical advantages over ethanol, but biobutanol has not been approved by the Environmental Protection Agency (EPA) for use in road vehicles. In a recent review, Slating and Kesan discussed the regulatory hurdles biobutanol must clear to be approved for everyday use.
Today there are many huge websites, including Google and Wikipedia who are blacking out their homepages to oppse two acts before Congress called SOPA and PIPA. Although I will typically have no desire to discuss politics on this forum, I want to make an exception to show my opposition to these bills as well. More formally known as the Stop Online Piracy Act (in the House) and the PROTECT IP Act (in the Senate), the details of them are too gory to go into in what I intend here to be a short post. If you want all the details, go here to Reddit or here to The Verge.
In the race to stop global warming and improve energy security, one of the strongest initiatives politicians can rely on is regulating the energy efficiency of an economic sector, such as manufacturing, energy generation, or transportation. Increasing energy efficiency allows us to “do more with less”, implying that increasing energy efficiency is always a good thing. Not so fast, claim some economics researchers from the UK. In a study published in 2009, they found that if energy efficiency of the Scottish economy were increased, the energy consumption of Scotland would increase as well. The authors attribute this to two effects, called rebound and backfire.
The desire for energy security and (lack of) climate change are driving two avenues of innovation to power the next generation of vehicles. The first avenue is to invent new fuels, such as bio-fuels, that change the supply dynamics of the industry. The second avenue is to invent entirely new engine concepts to improve efficiency. One such concept, using detonations (as opposed to deflagrations) to combust fuel and air mixtures, has been investigated since the 1940’s. Using detonations allows for much higher efficiency engine operation. One of the most common types of detonation engines is the Pulsed Detonation Engine (PDE). Unfortunately, due to many difficulties including the intermittent nature of thrust from such engines, no PDEs have been commercially produced to date (although the concept has flown in an Air Force test plane).