Thursday, September 24, 2009

Algorithms: Forest Service Equations for Down Logs/Snags in Summary Program



Where NTPA = Number of logs per Acre



Where

DL = Diameter Large End (DBHI*0.1)
DS = DL - [(0.125 inches per foot)*(L feet)]
L = Log Length for down logs (PRHT)
#logs/acre = (NTPA*0.01)


Log Wieght/acre (in Tons)



Where Adj Dens is adjusted density faCtor for species
DENSITY = New Object() {30, 30, 0, 0, 28, 25, 0, 0, 0, 0, 28, 28, 25, 27, 28, 0, 0, 0, 28, 0, 28, 28, 28, 28, 28, 28, 28, 30, 29, 29, 27, 27, 25, 28, 27, 0, 27, 0, 27, 0, 28, 29, 0, 0, 30, 28, 29, 29, 0, 0, 25, 25, 25, 25, 0, 0, 30, 30, 30, 0, 29, 29, 29, 29, 29, 29, 0, 28, 0, 33, 28, 42, 26, 28, 24, 33, 42, 24, 35, 35, 35, 35, 35, 35, 35, 35, 35, 30, 30, 0, 0, 28, 25, 0, 0, 0, 0, 28, 28, 25, 27, 28, 0, 28, 28, 28, 0, 28, 28, 28, 28, 28, 28, 28, 30, 29, 29, 27, 27, 25, 28, 27, 0, 27, 27, 27, 0, 28, 29, 0, 0, 30, 28, 29, 29, 0, 0, 25, 25, 25, 25, 0, 0, 30, 30, 30, 0, 29, 29, 29, 29, 29, 29, 0, 28, 0, 33, 28, 42, 26, 28, 24, 33, 42, 24, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 24, 40, 35, 28, 35, 40, 40, 35, 40, 35, 0}

Decay Factor is decay class factor for log
Decay Class Decay factor
1 1.00
2 0.85
3 0.70
4 0.55
5 0.44


Volume per Acre in Cubic Feet (Down logs and snags only)



Where
DL = Diameter Large End (DBHI*0.1)
DL = [DBHI*0.1 + (0.125 inches/ft)*4.5ft] for snags
DS = DL - [(0.125 inches per foot)*(L feet)]
L = Log Length or height for down snags (PRHT)
NT/A = #logs/acre = (NTPA*0.01)
Reblog this post [with Zemanta]

Tuesday, September 22, 2009

!Quick Screen Capture (v3.0)


I found the following tool for doing screen capture outside of web browser. IT works well!

!Quick Screen Capture (v3.0)

PyDev - the Python IDE to Use

CPythonImage via Wikipedia

If you have been following this blog, you know that I have been evaluating which Integrated Development Environment (IDE) for Python is best for me. My co-worker found PyDev which runs in the Eclipse environment. Upon trying it out and both of us evaluating, PyDev is going to be what we are going to use to convert an AML project to Python. We chose this IDE for the following reasons:

1. IDE is based on Java - this means that Eclipse run on almost any platform: Windows - Mac - Linux - Unix
2. Free - Costs nothing to install or use
3. Python works in Eclipse and IronPython (a .Net Framework platform) and Jython (a Completely Java platform).
4. Can be pointed to any version of Platform that we need including Python 2.5 used by ArcGIS.
5. Good textual editor
6. Excellent debugging tools
7. Not too difficult to install.

I just learned how to install it today in Windows. It must be installed and then configured correctly.
0. Get the Python libraries and interpreter from
1. Make sure you have the latest JVM (Java Virtual Machine) installed on your computer. If you don't have it, get it free from http://www.java.com/en/download/index.jsp
2. Download Eclipse by downloading eclipse-jee-galileo-win32.zip
3. Unzip it into any folder on your c:\ drive that you want.
4. Download PyDev from http://sourceforge.net/projects/pydev/files/pydev/Pydev%201.5.0/org.python.pydev.feature-1.5.0.1251989166.zip/download
5. org.python.pydev.feature-1.5.0.1251989166.zip is a zip file that contains all you need to complete the installation. You just unzip the files in the Features folder and put them in the Features folder installed by the Eclipse zip file and you do the same with the files in the plugins folder.
6. Start Eclipse by double clicking on Eclipse.exe Choose the location for your worksapce

Image Hosting

7. Start at the top menu and select Windows - > Preferences

Image Hosting

8. Hit the "New"button and select the python executable for the version you want to use. For me I picked the 2.5 version of python and select all the libraries. Then hit "Apply" then "OK"

Image Hosting

9. Select File -> New -> PyDev Project. Enter the required information. Make sure that the "Grammar Version" matches the Interpreter you chose for the project. It is 2.5 In my Case.

10 Add source code to Project. If you are writing a new module, right-click on project name and choose New. Select the type of file you want to add and to what folder.

Image Hosting

11. Alternatively, you can import a file into the project from omne folder to another folder. Right-click on project name and choose Import.

Image Hosting

12. Now that your project has code to run, Right click on project name -> Properties and select Run/Debug settings on the left.

Image Hosting

13. Select the new button and select "Python Run" and then name your configuration whatever you want. On the main tab, browse for the name of the project to run asnd the name of main module

Image Hosting

14. On the Arguments tab is where you enter your input arguments of the scripts and for the interpreter

Image Hosting

In this example I'm testing a script that take a string of temperatures converts them from Fahrenheit to Celsius and then Celsius to Fahrenheit

15 Hit the apply button
16. The select Run -> Run to run the script!

Image Hosting

Reblog this post [with Zemanta]

Monday, September 21, 2009

IronPython


IronPython is an implementation of Python that allows programmers to code Python in Microsoft Visual Studio. Here are links to how to get started:

IronPython
Python + .Net = IronPython
IronPython in Action
Converting C# and VB.NET Code to IronPython
A bit more on IronPython

Saturday, September 19, 2009

Python Tutorial

CPythonImage via Wikipedia

I've been learning Python and here is what I have learned so far:

1. Python is a scripted language

2. In Python, indentation matters because it's how logic blocks are grouped together

3. Python is not strongly typed like C++, C#, and Java

4. Python has the following data types - dynamic

a. Lists - dynamic array can be appended, sorted, and all kinds of goodies; defined by []

b. Tuples - array that can't be changed

c. Dictionaries - ie {'key': 'value', 'a' : 'b'}, d['k'] = 'v‘

d. integer

e. float

f. string

g. Special statements
i pass,del, raise, assert, exec
ii global
iii break
iv continue
v try
5. For loops
for item in sequence:
Statements

else:
statements


– Example:

for item in (1,3,5,7,9,15,2003):
print item

for item in xrange (1, 50):
sum += item


6. While loops
While ... [else]
while a == b:
work ()

else:
finalize ()


7. If statements
If ... [elif ... else]
if a == c:
print “a equals c”

else:
print “a and c are different”


8. Functions and Procedures
def name(arg1, arg2, ...):
"""documentation""" # optional doc string
statements

return # from procedure
return expression # from function

9. Exception
def foo(x):
return 1/x

def bar(x):
try:
print foo(x)
except ZeroDivisionError, message:
print "Can’t divide by zero:", message

bar(0)

10 File Input/output

f = open(filename[, mode[, buffersize])
mode can be "r", "w", "a" (like C stdio); default "r"
append "b" for text translation mode
append "+" for read/write open
buffersize: 0=unbuffered; 1=line-buffered; buffered

methods:
read([nbytes]), readline(), readlines()
write(string), writelines(list)
seek(pos[, how]), tell()
flush(), close()
fileno()

Some links to examples in Python
Simple Sample Python Code
Python Recipes

Reblog this post [with Zemanta]

Thursday, September 17, 2009

Disassembling The PlayStation 3 Slim With iFixit.com's Kyle Wiens


Ever wanted to know what was under the Chasis for the PS3 Slim. Now we know!




Disassembling The PlayStation 3 Slim With iFixit.com's Kyle Wiens

Shared via AddThis

Reblog this post [with Zemanta]

Python IDEs


I've been looking for a good Integrated Development Environment (IDE) for the Python programming language. Here is what I have found:

Is there a good, free Python IDE for Windows?


PyScripter



IronPython


I'll list my tutorial sources later for Python.

Goodies for Powerpoint


In preparing my powerpoint I'm preparing for next Sunday, I wanted to include a couple of videos and a PDF.

To add YouTube videos to a powerpoint slide the following link is extremely useful.
YouTube Video Wizard (YTV)

How to play media clips in PowerPoint by using Windows Media Player

Insert Real Time Web Sites Into PowerPoint Presentation Slides With LiveWeb

Reblog this post [with Zemanta]

New iPod Touch Nearly 50 Percent Faster Than The Old Model


This article explains why getting an iPod Touch is a good idea. The latest versions are about 50% faster than their predecessors.

New iPod Touch Nearly 50 Percent Faster Than The Old Model

Shared via AddThis

Friday, September 11, 2009

Post Summaries on Blogger With Read More


Here is a great little gadget for Blogger allowing for posts to be summarized on the main page. Why is this worth using? You don't have to change your template in Blogger, just use a tag!

Post Summaries on Blogger With Read More

Wednesday, September 9, 2009

Facebook Features Right From Browser


Here is a toolbar that is intended to give you all your tools in Facebook on your browser toolbar!!!



Source

Saturday, September 5, 2009

Pay Pal Donation Widget- Updated

Well, I managed to add a Donation request for a PS3 on this blog as a test on the information I placed a couple of days ago. Let's see how this goes. Original article can be read here

If you like this blog,help me to buy a PS3!

Wednesday, September 2, 2009

Geek Chart - Your Geek Chart

I found a great tool that generates a pie chart based on your activity over the past 30 days on various websites.




Mmcelhaney's Geek Chart


Geek Chart - Your Geek Chart


Posted using ShareThis

Blogger's Buy me a Beer - Paypal donation

Ever wanted to put a widget on your blog so that people can donate directly into your pay pal account? Here is how you do it. I'm thinking that I will test this one out by making me a "Buy Me a PS3" widget soon for the side bar of this blog. Let's see how this works.

Adding Google sitemap to blogger.com blog account


I just found a great article on how to add a Site Map to
Google for a blog hosted at Blogspot. Read the following link from Wikipedia to understand why you would want do this. And here is a the link for how you would do this: Adding Google sitemap to blogger.com blog account

Thursday, August 27, 2009

Tag Cloud Generator

I've been researching tag generators. I have found several websites where you just have to put your website in it and you will get HTML generating your own tag cloud.

Tag Cloud Generator
Make Cloud
Blogger Feed uRL

Individual post visitor counter with Google Analytics ~ Blogger Tips and Tricks


Although there is not an easy way to get the number of views on individual posts in blogger there is a way to get an idea of how many visits there are per post using Google Analytics! Trust me, I'm going to be using this little hack.


Individual post visitor counter with Google Analytics ~ Blogger Tips and Tricks
Reblog this post [with Zemanta]

Wednesday, August 26, 2009

Blogger Releases the new version of the Label Widget


Blogger has released a new label gadget. Use it either in cloud or list form. source

Tuesday, August 25, 2009

Commenter Widget


Here is a great widget I found from WidgetForFree. It is easily installed in Blogger and list the top commenters out of the last 100 comments. Who has commented the most? This is how you find out.

Further info and Installation

Monday, August 17, 2009

Blogumus - Animated Tag Cloud

A word cloud of the content of the word cloud ...Image via Wikipedia

Use this article to make a tag cloud. Blogumus

See the example in the side bar. It's easy to use but before you do you should make sure that you simplify your labels and make sure they don't have special characters
Reblog this post [with Zemanta]

Thursday, August 13, 2009

How to Change the Favicon in Blogger


I came across this great article on how to change the FavIcon in the addressbars of browser. This is a nice little tactic.

How to Change the Favicon in Blogger


Reblog this post [with Zemanta]

Wednesday, August 12, 2009

The Ironman Widget

Monday, August 10, 2009

Issuu Now With Better API


We have a good news. We can do more with Issuu. Here is an article talking about the new features..


Issuu Now With Better API’s


Posted using ShareThis



Reblog this post [with Zemanta]

Thursday, August 6, 2009

Creating Free Flash Websites


I have heard about a service that allows you to build flash websites and widgets for free. You just go to Wix.com and it allows you to pull almost any popular flash trick you have seen using drag and drop technique. It makes it really simple! Here is an example:



Free website - Wix.com




Reblog this post [with Zemanta]

Wednesday, August 5, 2009

Adding Polls to Web Site/Blog


I have found 2 ways to put polls in your blogger post. Most tools allow you to put polls into the side bar of your site, but if you want to put it in your post you have to go through a little work.

1. Method One -
I like this method just fine. You just use the widget for installing a poll into the blog and then copy and past the HTML for generating into the post that you want.

2. Use a service like PollDaddy. You get a free account, design the poll, and then get the code to make the poll as a flash object. Then you can paste it where you want it. This my preferred method!

Reblog this post [with Zemanta]

Tweetstream


Here is a cool tool that allows users to add near real-time twitter stream to any website or blog. You can get it at TweetSteam.

Tweet-A-File


I've just come across another Twitter tool designed to allow users to share files with one another. This one is pretty cool. Just login using your twitter account, browse for the file on your computer you want to send, and then send it. The homepage is at Tweetafile.

Monday, August 3, 2009

Addendum to Summarizing Blog Posts


As I mentioned in the previous post there is a way to automatically summarize your blog posts with thumbnails. However I found the problem that when you go to the full post, you can't return back to the listing without hitting the "back" button on your browser. So I added a code to add a link to allow the user to return to the main pages. Add the following to the next line after the the steps proscribed.

<p><a href="[URL]">Return to main page</a></p>

Sunday, August 2, 2009

Summarizing Posts on a Landing Page


I have looked at some ways of trying to change my blog to make it more user-friendly. One suggestion made by friend Mariano suggested that I add the function of summarizing my blog posts on the main page and giving the reader the option of reading further. The idea is to make the blogs load faster and make it more easier to use.

Mariano suggested a method where each post is summarized in the HTML using small changes in the blog's template and in the post itself. This method is great because it give you so much control over what the post looks like when the blog loads. The problem is that in order to take advantage all older posts will have to be augmented but every new post will have the structure in place and I am too lazy to add the HTML to the older posts because I have blogs containing more than 500 posts. Here is the code on how to make it happen from Mariano himself and you can visit Mariano's blog, Atheism is Dead, to see it in action.



I have found another alternate method to do something similar. I like this method a little better because it automatically summarizes the posts and puts a thumbnail of the first image in the post in the summary. In order to pull it off, you just need to follow the steps in the following website: Automatic Post Summaries for Blogger with Thumbnails. You have control over how many words are in the summary as well as quite a few other things.

Reblog this post [with Zemanta]