Monday, November 10th, 2008 | Author: tjgillies

A Pythagorean triplet is a set of three natural numbers, a b c, for which,

a2 + b2 = c2

For example, 32 + 42 = 9 + 16 = 25 = 52.

There exists exactly one Pythagorean triplet for which a + b + c = 1000.
Find the product abc.


Source code in my favorite programming language: Ruby

@a =3
@b = 4
def square_em()

@asq = (@a ** 2)
@bsq = (@b **2 )
@csq = @asq + @bsq

end
def c_is_int()

square_em()

@c = Math.sqrt(@csq)
unless (@c-@c.to_i == 0)
then p “C not an Integer! Iterating A & B”
@a += 1
@b += 2
square_em()
c_is_int()
end

end
sum =0

while ( @a < @b && sum < 1000) do

c_is_int()
sum = @a+@b+@c
prod = @a*@b*@c
p “A:#{@a} B:#{@b} C:#{@c}”
p “Sum of a + b + c: #{sum}”
p “Prod of a * b *c #{prod}”
p “”
#test code
#exit;

@a += 1
@b+= 1
@asq = (@a ** 2)
@bsq = (@b **2 )
@csq = @asq + @bsq

end

Share/Save/Bookmark

Saturday, November 01st, 2008 | Author: tjgillies

Here is an automagically generated listed of all the “Christian” blogs I read. It gets auto updated.

http://www.google.com/reader/shared/user/07287562217677416283/label/christian

Share/Save/Bookmark

Wednesday, October 29th, 2008 | Author: tjgillies


Kitagawa from Tyler Gillies on Vimeo.

Share/Save/Bookmark

Tuesday, October 28th, 2008 | Author: tjgillies

just upgraded the blog to wordpress 2.6.3 using wordpress automatic updater plugin. I have to say it worked flawlessly I am very impressed.

Share/Save/Bookmark

Tuesday, October 28th, 2008 | Author: tjgillies

Another lunch at home in the “office”. Here’s another one of my famous video posts.

Share/Save/Bookmark

Tuesday, October 28th, 2008 | Author: tjgillies

Share/Save/Bookmark

Sunday, October 26th, 2008 | Author: tjgillies

Share/Save/Bookmark

Sunday, October 26th, 2008 | Author: tjgillies

I am a night owl in recovery. Its almost Sunday morning and i need to wake up in about five and a half hours.

Share/Save/Bookmark

Saturday, October 25th, 2008 | Author: tjgillies

I removed the “feature” that posted a daily digest of your twitter posts to your blog. I think it just added to the clutter and don’t think it will be missed.

–edit– deleted old twitter tools digests off my blog

Share/Save/Bookmark

Tuesday, October 21st, 2008 | Author: tjgillies

Ok so here we go!

Map picture

This is an older picture before the church was built

microsoft virtual earth database looks to be a little out of date.

Fellowship (my social networking platform)

So far this software handles pretty much (while im writing this) It even imported my blog theme and gives me a pretty decent preview window realtime.

Share/Save/Bookmark