Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Galandros

Pages: 1 2 [3] 4 5 ... 84
31
Huh, there's an easter egg here:
http://lo.st/Qi3mIE
2 in 1: rickrolled and losing the game. :'(

32
Math and Science / Re: Formula for getting prime number?
« on: January 30, 2011, 06:16:25 pm »
There is nothing that says it can or cannot be true.  It would kinda fit into the category of P=NP, though. e.g., you can prove S times T equals a number, but finding S and T from that number would be a lot harder.
Yep, I think from what I read it falls on that category.
But almost everyone that works on the area admits that there is not such formula or even it can not exist.

There is the possibility some undiscovered area of Mathematics bring some solution to the problem of getting the primes sequence without going by number testing. Better keep an open spirit about it until we prove otherwise.

33
Other Calc-Related Projects and Ideas / Re: BACKUP YOUR PROGRESS OFTEN!
« on: January 30, 2011, 06:04:31 pm »
Make your life easier using some backup up or synchronization program.
My pick of choice, on the time of writing this text, is FreeFileSync.


Plus two advanced tips for more experienced computer users:

You can monitor your hard drive state with one of this selection:
http://www.techsupportalert.com/best-free-hd-health-monitoring-and-diagnostic-programs.htm

And also do checksums of your most important files:
http://www.techsupportalert.com/best-free-hash-utility.htm

Hard drives failures can be unpredictable so backing up ought to be done.
And doing a checksum check, pun intended, is a smart thing to do. ;)

34
Math and Science / Re: Factorials
« on: January 30, 2011, 05:56:25 pm »
Oh, you didn't need to correct the variables names. It was just an future advice. Sometimes I also end mixing different conventions.
I speak Portuguese. See your personal messages. ;)

35
Math and Science / Re: Formula for getting prime number?
« on: January 30, 2011, 05:44:59 pm »
Does it exist, if it does, can you tell me?(I need it to do mah APCS Homework D: )
No, there isn't any (known) formula to get the sequence of primes. But I don't know if it was proven mathematically that there is not such formula.
The difficulty to crack RSA depends on being hard to find primes and the interest on primes comes also from this.

There are formulas that give asymptotically the average of number of primes in an interval or probability of a random number being prime. See more in:
http://en.wikipedia.org/wiki/Prime_number_theorem

36
Math and Science / Re: Factorials
« on: January 30, 2011, 05:38:38 pm »
Code: [Select]
def getFactorial(x):
    if x == 0:
        return 1
    else:
        soma = 1
        for i in range(x,0,-1):
            soma=soma*i
        return soma

I just made a Python function that gets the factorial of a n number.

A simpler way of doing this is:

Code: [Select]
import math
print math.factorial(x)

But mine is much cooler.
I note some variables names in maybe portuguese... Depending on the project I also code with names and comments in portuguese. ^^ Although I try to not mix 2 languages.

Yet another cool way to compute factorials, this way is for factorials of very very large numbers without multi-precision containers.
No multiplication required ^-^

Code: (Pseudocode) [Select]
double sum=0;
for (int i=1; i<Max; i++) {
  sum += log(i);
}
int exponent = floor(sum);
double coeff = Pow(10,sum-exponent);

print("Answer is: ",coeff,"x10^",exponent);
Nice code, for some time I didn't see a trick like that. Where/How did you learn it?

37
News / Re: Z80 to HEX conversion and vice-versa now available on IRC
« on: January 28, 2011, 09:31:55 am »
Nice showcases of usage.
As curiosity, what is the programming language in which the bots are coded?

38
News / Re: Final Fantasy Tactics clone for the TI-86
« on: January 27, 2011, 06:37:30 pm »
That is almost totally impressive and quite a surprise. :thumbsup:

39
News / Re: Z80 to HEX conversion and vice-versa now available on IRC
« on: January 27, 2011, 06:33:34 pm »
That is cool for a z80 programmer. ;D

40
Web Programming and Design / Re: HTML Games with JavaScript
« on: December 19, 2010, 12:20:50 pm »
You can prevent cheating by putting variables within the private scope.
That can be done using this:
Code: (JavaScript) [Select]
var GlobalScope = function () {
var PrivateString = "Hello";
return {
showstring: function () {
alert(PrivateString);
}
};
}();

Upon looking at the DOM using Firefox's Firebug, you can see that the private string is not accesible.
So this will not work:
Code: (JavaScript) [Select]
alert(GlobalScope.PrivateString);

But, this will, as it is called by the GlobalScope's own child.
Code: (JavaScript) [Select]
GlobalScope.showstring();
Interesting but you can always try to manipulate a browser to load a different JavaScript code. But that would prevent many easy attempts. And it is interesting JavaScript code, I have seen it being used in libraries, I think.

41
Miscellaneous / Re: What is your avatar?
« on: December 11, 2010, 07:46:17 am »
Mine is none. Too lazy to put one. ;)

42
News / Re: TI-BANK Awards 2010
« on: December 11, 2010, 07:40:38 am »
Another site promoting best calculators programs is excellent.

I have to register in TI-Bank someday.

43
Gaming Discussion / Re: Professionalism in Calculator Game Playing
« on: December 11, 2010, 07:38:30 am »
The most professional gaming I have done is explore the start of Rune Factory 1 (NDS) which such a frenzy that I am very close to the humanly possible best start without cheating. Playing it on emulator is better because you don't need to redo many parts.
I have restarted it 2 times but I need a 3rd to optimize some decisions and schedules. And sometimes I forgot to use some tricks like a spell that takes directly home instead of running and at some distances ehen the shortest action is obvious.

I have written all the details about this but never polished and retested for releasing. If someone likes Rune Factory I can post in Omnimaga.

I have done the same for Rune Factory 2 and is already an excellent start.
Now that Rune Factory 3 is out, I might try but some game mechanics changes will hinder the start, might be more challenging to me. And I am also waiting for a request guide that will give me hints about what is best to do first. In Rune Factory 2 I picked as first requests the ones who gave more money for buying seeds.

I have also experimented some TAS in Megaman Zero, it gives impressive movies of reflexes and blink of an eye moves during battles. If you TAS, Megaman Zero is almost a must in my opinion.

44
News / Re: Nostromo updates & Z80 POTY survey opening
« on: December 10, 2010, 03:18:04 pm »
Excellent work of Ben Ryves.

It would be epic, if it turned into a game. ;D

45
Other Calculators / Re: Professionalism in calculator games
« on: December 05, 2010, 07:13:59 am »
How professional can one make a calculator game? Discuss.
Since many people replied by features that make a calculator game professional, I think it is interesting to showcase some professional calculator games out there for z80 calculators.
In my honest opinion they are:
- Robot War 2 by DigiTan
- Wizards by NanoWar
- Zelda by Spencer
- Escheron: Shadow over Ragnoth by Zera and Iambian or Iambian and Zera (pick the order)

They all put to shame 95-99% of all GameBoy (original) games. Although they are not finished.

I could probably mention Pokemon Red by BuckeyeDude but is a clone, and I guess I am leaving many games. Specially old ones.

Sorry to leave TI-BASIC games behind but if I choose a professional would be with xLib and very probably with some custom font. (I think there are a few) And TI-BASIC language is not professional and was never designed to be. But with xLib some truly professional games can be done, just take lot of effort.

Pages: 1 2 [3] 4 5 ... 84