Sandbox by henderso
A blog about my ongoing discovery of computer science and engineering
Sunday, September 21, 2014
Sunday, May 19, 2013
A Gist Search Workaround
OK I'm loving gist, but tis annoying that their own search engine won't let a user search among their own gists.
For example, if I want to search my own gists for a VBA script that helps find the last used row of a spreadsheet, I have to go through gust by gist.
Luckily, google indexes my gists...so I can do this:
For example, if I want to search my own gists for a VBA script that helps find the last used row of a spreadsheet, I have to go through gust by gist.
Luckily, google indexes my gists...so I can do this:
VBA last row site:https://gist.github.com/stevehenderson
Code Snippet Resources
Here is a nice run down of code snippets from Cameron at SmashingMagazine:
http://www.smashingmagazine.com/2009/07/21/45-excellent-code-snippet-resources-and-repositories/
http://www.smashingmagazine.com/2009/07/21/45-excellent-code-snippet-resources-and-repositories/
Saturday, May 18, 2013
Pages Gadget added but not visible
I tried to add the pages gadget, but it wasn't visible.
Here's the fix:
On the blogger control panel, click the Pages button on the left, then look for the Show Page As option..change it to something other than Do Not Show:
Thanks to:
http://www.youtube.com/watch?v=dgBez2wKVTU
Here's the fix:
On the blogger control panel, click the Pages button on the left, then look for the Show Page As option..change it to something other than Do Not Show:
Thanks to:
http://www.youtube.com/watch?v=dgBez2wKVTU
Wednesday, May 18, 2011
Compiling OpenSees on Ubuntu 10.04 LTS
So, I developed some major issues with my Vista x64 image. Ordered a Win 7 DVD plus a solid state drive and will rebuild it this weekend.
In the meantime, I decided to play with my backup Ubuntu Wubi image. Its Ubunutu 10.04.
There is an alternative motive here, as I might develop an OpenSeesVM that I can bundle and deploy as a tool for others.
Here are the rough steps I followed.
Note: This installs the OpenSees executable at /home/user/bin. This is clearly not the best place, but I'll change it later. At least it works!
Install some tools:
Yes, some of this is overkill but all of this had to be installed before it would compile and link.
Download the stable release OpenSees2.2.2.tar.gz from the OpenSees website.
Unzip it and move it to some location under your home dir:
Download my Makefile.def. I posted my Makefile for Ubuntu 10.04 here.
Extract the file so that Makefile.def is in the /home/user/OpenSees dir
Change the permissions on it:
Note: I made the following major changes to the file (with the help of plenty of others):
- Add the AMD directory (Read more here)
- Fixed up the general home and build paths
You need to create a lib and bin directory in the home folder specified in Makefile.def. In my example, this is the user home. If these directories don't exist, the linker will spaz when you run Make.
Now run the build using make:
There are a few bugs that might arise in some source files (tkMain.cpp). If this happens, edit the files and comment out the offending lines.
Here's a list:
In the meantime, I decided to play with my backup Ubuntu Wubi image. Its Ubunutu 10.04.
There is an alternative motive here, as I might develop an OpenSeesVM that I can bundle and deploy as a tool for others.
Here are the rough steps I followed.
Note: This installs the OpenSees executable at /home/user/bin. This is clearly not the best place, but I'll change it later. At least it works!
Install some tools:
sudo apt-get install build-essential
sudo apt-get install tcl8.3 tcl8.3-dev
sudo apt-get install vim
sudo apt-get install gfortran
sudo apt-get install tcl8.4-dev
sudo apt-get install libpng12-dev
sudo apt-get install tcl8.5-dev
sudo apt-get install tk-dev
sudo apt-get install libglpng
sudo apt-get install freeglut3-dev
Yes, some of this is overkill but all of this had to be installed before it would compile and link.
Download the stable release OpenSees2.2.2.tar.gz from the OpenSees website.
Unzip it and move it to some location under your home dir:
gunzip OpenSees2.2.2.tar.gz
ls
tar -xvf OpenSees2.2.2.tar
ls
mv OpenSees ~/OpenSees
cd /home/henderso/OpenSees/
ls
cat README
Download my Makefile.def. I posted my Makefile for Ubuntu 10.04 here.
Extract the file so that Makefile.def is in the /home/user/OpenSees dir
Change the permissions on it:
chmod 775 Makefile.def
Note: I made the following major changes to the file (with the help of plenty of others):
- Add the AMD directory (Read more here)
- Fixed up the general home and build paths
You need to create a lib and bin directory in the home folder specified in Makefile.def. In my example, this is the user home. If these directories don't exist, the linker will spaz when you run Make.
mkdir ~/bin
mkdir ~/lib
Now run the build using make:
cd ~/OpenSees (or where ever you put it)
make
There are a few bugs that might arise in some source files (tkMain.cpp). If this happens, edit the files and comment out the offending lines.
Here's a list:
- Comment out Line 112 in SRC/tcl/tkMain.cpp
Tuesday, May 10, 2011
CalculiX
This looks promising...
http://www.dhondt.de/
Windows binaries:
http://www.bconverged.com/download.php
http://www.dhondt.de/
Windows binaries:
http://www.bconverged.com/download.php
Subscribe to:
Posts (Atom)