Programming, computers, etc. [Serious]
- lunar_furor
- ASDF Prophet

- Posts: 4346
- Joined: Wed May 14, 2008 3:34 pm
- Location: Most likely at work
Re: Programming, computers, etc. [Serious]
So I got all the things working and I'm posting the game in the games section! It's beta so... yay, also it's a class project from like 2 years ago so it's still WIP with some updates inbound over the next whenever.

- atomtengeralattjaro
- Site Admin

- Posts: 35622
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Contact:
Re: Programming, computers, etc. [Serious]
My day in a nutshell:
fracking quaternions, how do they work?
fracking quaternions, how do they work?

- soloman
- ASDF-Ville Chief

- Posts: 1217
- Joined: Wed Nov 14, 2007 8:08 pm
- Location: The Great White North, USA
- Contact:
Re: Programming, computers, etc. [Serious]
guys make an android app for asdf forums.
Re: Programming, computers, etc. [Serious]
Would be hard and tiresome to do though. There's no official API as far as I'm aware, which means you need to install a plugin, which only philtom can do.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
- atomtengeralattjaro
- Site Admin

- Posts: 35622
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Contact:
Re: Programming, computers, etc. [Serious]
There is also a mobile "style" for the forum that the admin can install, as far as I understand it also requires some kind of a plugin to make the server automatically redirect you to the mobile page.

Re: Programming, computers, etc. [Serious]
And philtom doesn't really answer our (my?) mails 
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
- soloman
- ASDF-Ville Chief

- Posts: 1217
- Joined: Wed Nov 14, 2007 8:08 pm
- Location: The Great White North, USA
- Contact:
Re: Programming, computers, etc. [Serious]
funny. we should track him down.
- Anonymously Famous
- JKL; Assassin

- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
An admin may be able to have a style selected based on the browser or OS as conveyed by the request sent by the browser. That shouldn't be too hard, at least in theory.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
Sounds reasonable to me, but y'know, I'm not an Admin
The
- Anonymously Famous
- JKL; Assassin

- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
I just looked it up. philtom is the only administrator. The other green named people are global moderators. I'm guessing they don't have access to the administration page.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- atomtengeralattjaro
- Site Admin

- Posts: 35622
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Contact:
Re: Programming, computers, etc. [Serious]
We do have access, but only to some of it. Can't change styles and stuff like that.Anonymously Famous wrote:I just looked it up. philtom is the only administrator. The other green named people are global moderators. I'm guessing they don't have access to the administration page.

- Anonymously Famous
- JKL; Assassin

- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
Thanks for the clarification.atomtengeralattjaro wrote:We do have access, but only to some of it. Can't change styles and stuff like that.Anonymously Famous wrote:I just looked it up. philtom is the only administrator. The other green named people are global moderators. I'm guessing they don't have access to the administration page.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
- atomtengeralattjaro
- Site Admin

- Posts: 35622
- Joined: Wed May 23, 2007 3:43 pm
- Location: green
- Contact:
Re: Programming, computers, etc. [Serious]
On the topic of programming:
I never really needed the Fibonacci sequence, the only times I saw code that calculates it was in the context of explaining recursion and other meta coding stuff like that, so I never really thought about how to actually calculate a fibonacci number in a way that makes sense.
Then I saw this funny post on imgur about different coding styles: http://imgur.com/gallery/XOA5O
And my first thought was yeah, sure, I'd just writeand be done with it, but that's actually a horrible way to do it.
I wonder what's the best way?
This seems to work perfectly and very fast:
(In .NET you need an assembly reference to the System.Numerics library for this to work, otherwise you can't use the BigInteger.)
I compared the results to what Wolfram Alpha gave me and it checks out. Got the 100000th fibonacci number in a little over 600 milliseconds for me (that's a 20899 digit number).
I never really needed the Fibonacci sequence, the only times I saw code that calculates it was in the context of explaining recursion and other meta coding stuff like that, so I never really thought about how to actually calculate a fibonacci number in a way that makes sense.
Then I saw this funny post on imgur about different coding styles: http://imgur.com/gallery/XOA5O
And my first thought was yeah, sure, I'd just write
Code: Select all
return x < 3 ? 1 : fibonacci(x - 1) + fibonacci(x - 2);I wonder what's the best way?
This seems to work perfectly and very fast:
Code: Select all
public static BigInteger Fibo(int x)
{
BigInteger a = 1, b = 0, c = 0;
for (int i = 1; i <= x; i++)
{
c = a + b;
a = b;
b = c;
}
return c;
}
I compared the results to what Wolfram Alpha gave me and it checks out. Got the 100000th fibonacci number in a little over 600 milliseconds for me (that's a 20899 digit number).

- Anonymously Famous
- JKL; Assassin

- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
I've normally seen it as an example of recursion. In Python, it's sometimes used as an example of a generator.atomtengeralattjaro wrote:On the topic of programming:
I never really needed the Fibonacci sequence, the only times I saw code that calculates it was in the context of explaining recursion and other meta coding stuff like that, so I never really thought about how to actually calculate a fibonacci number in a way that makes sense.
Then I saw this funny post on imgur about different coding styles: http://imgur.com/gallery/XOA5O
And my first thought was yeah, sure, I'd just writeand be done with it, but that's actually a horrible way to do it.Code: Select all
return x < 3 ? 1 : fibonacci(x - 1) + fibonacci(x - 2);
I wonder what's the best way?
This seems to work perfectly and very fast:(In .NET you need an assembly reference to the System.Numerics library for this to work, otherwise you can't use the BigInteger.)Code: Select all
public static BigInteger Fibo(int x) { BigInteger a = 1, b = 0, c = 0; for (int i = 1; i <= x; i++) { c = a + b; a = b; b = c; } return c; }
I compared the results to what Wolfram Alpha gave me and it checks out. Got the 100000th fibonacci number in a little over 600 milliseconds for me (that's a 20899 digit number).
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Re: Programming, computers, etc. [Serious]
Seems like a pretty good way of actually doing it. I can't really think of why you would want to in a real environment though.atomtengeralattjaro wrote:On the topic of programming:
I never really needed the Fibonacci sequence, the only times I saw code that calculates it was in the context of explaining recursion and other meta coding stuff like that, so I never really thought about how to actually calculate a fibonacci number in a way that makes sense.
Then I saw this funny post on imgur about different coding styles: http://imgur.com/gallery/XOA5O
And my first thought was yeah, sure, I'd just writeand be done with it, but that's actually a horrible way to do it.Code: Select all
return x < 3 ? 1 : fibonacci(x - 1) + fibonacci(x - 2);
I wonder what's the best way?
This seems to work perfectly and very fast:(In .NET you need an assembly reference to the System.Numerics library for this to work, otherwise you can't use the BigInteger.)Code: Select all
public static BigInteger Fibo(int x) { BigInteger a = 1, b = 0, c = 0; for (int i = 1; i <= x; i++) { c = a + b; a = b; b = c; } return c; }
I compared the results to what Wolfram Alpha gave me and it checks out. Got the 100000th fibonacci number in a little over 600 milliseconds for me (that's a 20899 digit number).
I know I could probably Google™ this, but can you give an (the?) example?Anonymously Famous wrote:I've normally seen it as an example of recursion. In Python, it's sometimes used as an example of a generator.
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.
- Anonymously Famous
- JKL; Assassin

- Posts: 11413
- Joined: Thu Mar 03, 2011 6:52 pm
- Location: Area ???, under Bermuda Triangle
Re: Programming, computers, etc. [Serious]
No I hadn't, because I had a busy weekend.
Here's a site that has one:
https://technobeans.wordpress.com/2012/ ... in-python/
I might change it some, but that's about it.
Generators create a list-like sequence dynamically. If it has an end condition, you can even create a list (array) by calling the list function on it.
Here's a site that has one:
https://technobeans.wordpress.com/2012/ ... in-python/
I might change it some, but that's about it.
Generators create a list-like sequence dynamically. If it has an end condition, you can even create a list (array) by calling the list function on it.
BOTTOM TEXT
Proud poster of the 300kth post in GeneralThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
