1) Use [code][/code] tags around your code to make it visually separate from the rest of the text. 2) I'd recommend explaining the concepts more in depth. You never really answered the question "So how does grayscale work in Axe?" beyond "Use another buffer." Why does having another buffer allow greyscale? The same goes for the Line() function that you say doesn't actually draw a line. A user who doesn't understand that Bresenham's Line algorithm is actually a numerical approximation to a true line is going to be very confused by that statement.
Overall, good job. Format it a bit more and we can add it to the tutorials section
Hmmm... I still get permission denied... as sudo. Edit: and as a standard user.
Are you running this from a device with a FAT filesystem? Linux will tend to return permission denied when the filesystem doesn't properly support permissions.
While I was taking a small Java programming test (I don't know even Java ), I came across an interesting problem called the equilibrium index. Basically, given a list such as {-7, 1, 5, 2, -4, 3, 0}, there is an index into the list for which the sum of the elements up to that index is equal to the sum of the elements after. For this particular data set, it happens to be at the indices 6 and 7.
Your challenge is to write a program in TI-BASIC (or Axe if you wish) that will compute the equilibrium index of any list. If it doesn't exist, then the program must return -1. You are allowed to assume that the list is in L1 and that the dimension of the list is in N.
NOTE: Don't use Google. As it turns out, a lot of people have unwittingly made a mistake in declaring the problem such that the example list has indices at 3 and 6. The index of 3 is actually only true when L1(4) is eliminated from the list.
Timing: It took me about three minutes to write the program and a further five minutes to notice the error everyone had made wasn't actually a bug in my program, but their mistake. It shouldn't take longer than half an hour max to do.
In response to the recent downtime on #omnimaga, several people have asked questions and voiced concerns about the security of the channel from takeover.
After a small debacle last night between Manager Eeems and CoT SirCmpwn ([email protected]) got out of hand, SirCmpwn shut down the channel and kicked all Operators. This resulted in approximately 37 minutes of downtime, during which the channel was relocated to irc.omnimaga.org (port 6667, #omnimaga for future reference). This was fixed by our kindly forest squirrel, Cooliojazz and the channel is back to normal. SirCmpwn also attempted to delete the Axe Parser releases thread, but Juju easily undeleted it. SirCmpwn has been banned, security measures are being discussed and implemented that will hopefully prevent this terrible occurrence in the future. We apologize for the discrepancies in the logs and any inconvenience this downtime may have caused.
We might make irc.omnimaga.org, also known as OmniNet, our main IRC server for more security. Unlike EFNet, OmniNet have services, which can protect your nickname from impersonation, much more features and the servers are ran by Omnimaga staff, which is obviously not the case of EFNet. Please give us your feedback in the comments EFNet and OmniNet are already linked together with OmnomIRC.
(12:37:37 AM) OmnomIRC: (O)<DJ_O> yeah (12:42:33 AM) Eeems: SirCmpwn, don't try to pm me I wont get it. (12:42:44 AM) SirCmpwn: good for you (12:43:20 AM) Eeems: Don't test me (12:45:06 AM) SirCmpwn: oh, of course not (12:45:14 AM) SirCmpwn: you're pretty testy tonight, I wouldn't want to push it (12:45:56 AM) Eeems: No I was fine until you started being an ass (12:46:17 AM) SirCmpwn: yeah, I thought we were pretty good until it got mutual (12:46:38 AM) SirCmpwn left the room (Kicked by Eeems (SirCmpwn)). (12:46:41 AM) SirCmpwn [[email protected]] entered the room. (12:46:42 AM) mode (+v SirCmpwn) by Netbot45 (12:46:42 AM) mode (+o SirCmpwn) by Netbot45 (12:46:42 AM) Netbot45: [SirCmpwn] A Coding Knight has arrived (12:46:46 AM) SirCmpwn: ooh, fancy op powers (12:46:49 AM) SirCmpwn: !deop Eeems (12:46:55 AM) mode (-o Eeems) by SirCmpwn (12:46:57 AM) Eeems: you can't deop me (12:46:58 AM) Eeems left the room (Kicked by SirCmpwn (Eeems)). (12:47:05 AM) mode (+b Eeems!*@*) by SirCmpwn (12:47:07 AM) OmnomIRC: (#)<Eeems> because I'm still here (12:47:14 AM) SirCmpwn: oooh, cool, you can use OmniNET (12:47:22 AM) ***New post by calc84maniac in TI-Nspire GB Emulator http://omniurl.tk/1243/182248 (12:47:30 AM) ***New post by NecroBumpist in Lua Q&A http://omniurl.tk/9120/182249 (12:47:35 AM) OmnomIRC: (#)<Eeems> and if you don't unban me I will ban you for abuse of your powers (12:47:47 AM) SirCmpwn: good for ya (12:47:50 AM) SirCmpwn: I look forward to it (12:48:03 AM) geekbozu: wtf is going on >.< (12:48:24 AM) OmnomIRC: (#)<Eeems> geek ban Sir (12:48:28 AM) OmnomIRC: (#)<Eeems> unban me (12:48:32 AM) OmnomIRC: (#)<Eeems> one hour (12:48:33 AM) geekbozu: wtf is going on first (12:48:41 AM) OmnomIRC: (#)<Eeems> he's being an ass (12:48:43 AM) geekbozu: while i try to remember how to ban from weechar >.< (12:48:45 AM) OmnomIRC: (#)<Eeems> and insulting me via pm (12:48:57 AM) CoolioJaz [[email protected]] entered the room. (12:48:58 AM) mode (+v CoolioJaz) by Netbot45 (12:49:02 AM) SirCmpwn: hey kids (12:49:04 AM) SirCmpwn: sup (12:49:10 AM) mode (+b geekbozu!*@*) by SirCmpwn (12:49:14 AM) geekbozu left the room (Kicked by SirCmpwn (geekbozu)). (12:49:22 AM) mode (+b CoolioJaz!*@*) by SirCmpwn (12:49:25 AM) CoolioJaz left the room (Kicked by SirCmpwn (CoolioJaz)). (12:49:36 AM) mode (+b Juju!*@*) by SirCmpwn (12:49:39 AM) Juju left the room (Kicked by SirCmpwn (Juju)). (12:49:44 AM) mode (+b Tribal!*@*) by SirCmpwn (12:49:47 AM) Tribal left the room (Kicked by SirCmpwn (Tribal)). (12:49:53 AM) OmnomIRC: (O)<leafiness0> lol? (12:49:56 AM) mode (+b rcfreak0!*@*) by SirCmpwn (12:49:59 AM) rcfreak0 left the room (Kicked by SirCmpwn (rcfreak0)). (12:50:15 AM) mode (+im ) by SirCmpwn (12:50:27 AM) mode (+b OmnomIRC!*@*) by SirCmpwn (12:50:32 AM) OmnomIRC: (O)<Juju> wat (12:50:34 AM) OmnomIRC left the room (Kicked by SirCmpwn (OmnomIRC)). (12:50:41 AM) mode (+b Dogbert!*@*) by SirCmpwn (12:50:46 AM) Dogbert left the room (Kicked by SirCmpwn (Dogbert)). (12:50:50 AM) mode (+b Genolo!*@*) by SirCmpwn (12:50:53 AM) Genolo left the room (Kicked by SirCmpwn (Genolo)). (12:50:58 AM) mode (+b Netbot45!*@*) by SirCmpwn (12:51:01 AM) Netbot45 left the room (Kicked by SirCmpwn (Netbot45)). (12:51:06 AM) mode (+b Netham45!*@*) by SirCmpwn (12:51:09 AM) Netham45 left the room (Kicked by SirCmpwn (Netham45)). (12:51:13 AM) mode (+b Jarvis!*@*) by SirCmpwn (12:51:13 AM) HAL left the room (This channel is not registered to the Netbot45 Botnet.). (12:51:16 AM) Jarvis left the room (Kicked by SirCmpwn (Jarvis)). (12:51:30 AM) mode (+b AHelper2!*@*) by SirCmpwn (12:51:32 AM) AHelper2 left the room (Kicked by SirCmpwn (AHelper2)). (12:51:37 AM) mode (+b AHelper3!*@*) by SirCmpwn (12:51:40 AM) AHelper3 left the room (Kicked by SirCmpwn (AHelper3)). (12:51:45 AM) mode (+b Buckeye!*@*) by SirCmpwn (12:51:47 AM) Buckeye left the room (Kicked by SirCmpwn (Buckeye)). (12:51:50 AM) mode (+b chronomex!*@*) by SirCmpwn (12:51:53 AM) HAL [[email protected]] entered the room. (12:51:54 AM) chronomex left the room (Kicked by SirCmpwn (chronomex)). (12:51:57 AM) HAL left the room (Kicked by SirCmpwn (HAL)). (12:52:00 AM) mode (+b HAL!*@*) by SirCmpwn (12:52:07 AM) mode (+b geekboy!*@*) by SirCmpwn (12:52:10 AM) geekboy left the room (Kicked by SirCmpwn (geekboy)). (12:52:14 AM) mode (+b Jonimus!*@*) by SirCmpwn (12:52:16 AM) Jonimus left the room (Kicked by SirCmpwn (Jonimus)). (12:52:22 AM) mode (+b Runer112!*@*) by SirCmpwn (12:52:24 AM) Runer112 left the room (Kicked by SirCmpwn (Runer112)). (12:52:30 AM) mode (+b shaun!*@*) by SirCmpwn (12:52:32 AM) shaun left the room (Kicked by SirCmpwn (shaun)). (12:52:38 AM) mode (+b KED!*@*) by SirCmpwn (12:52:40 AM) KED left the room (Kicked by SirCmpwn (KED)). (12:52:45 AM) mode (+b AxeWiki!*@*) by SirCmpwn (12:52:48 AM) AxeWiki left the room (Kicked by SirCmpwn (AxeWiki)). (12:52:51 AM) mode (+b Adriweb!*@*) by SirCmpwn (12:52:54 AM) Adriweb left the room (Kicked by SirCmpwn (Adriweb)). (12:53:04 AM) mode (+b debrouxl!*@*) by SirCmpwn (12:53:06 AM) debrouxl left the room (Kicked by SirCmpwn (debrouxl)). (12:53:09 AM) mode (+b Goplat!*@*) by SirCmpwn (12:53:12 AM) Goplat left the room (Kicked by SirCmpwn (Goplat)). (12:53:15 AM) mode (+b New!*@*) by SirCmpwn (12:53:17 AM) New left the room (Kicked by SirCmpwn (New)). (12:53:23 AM) mode (+b tev|stdby!*@*) by SirCmpwn (12:53:27 AM) tev|stdby left the room (Kicked by SirCmpwn (tev|stdby)). (12:53:32 AM) mode (+b iSpawn!*@*) by SirCmpwn (12:53:35 AM) iSpawn left the room (Kicked by SirCmpwn (iSpawn)). (12:53:38 AM) mode (+b compu!*@*) by SirCmpwn (12:53:41 AM) compu left the room (Kicked by SirCmpwn (compu)). (12:53:46 AM) mode (+b Boscop!*@*) by SirCmpwn (12:53:48 AM) Boscop left the room (Kicked by SirCmpwn (Boscop)). (12:53:54 AM) mode (+b BrandonW_!*@*) by SirCmpwn (12:53:56 AM) BrandonW_ left the room (Kicked by SirCmpwn (BrandonW_)). (12:53:59 AM) mode (+b DoorsCS!*@*) by SirCmpwn (12:54:01 AM) DoorsCS left the room (Kicked by SirCmpwn (DoorsCS)). (12:54:05 AM) mode (+b DrDnar1!*@*) by SirCmpwn (12:54:07 AM) You have been kicked by SirCmpwn: (DrDnar1)
Sorry to disappoint you, but verifying perfect squares is still far too computationally intensive to be practical.
To quote part of my post from the other page on the scale of the problem:
Quote
Given the current 2048 bit keys and classical computations, the scale of the problem is vastly more difficult than even the largest keys broken today (768 bits). By vast, I mean volume of the known universe measured in nanometers cubed vast*. The chance that anyone will solve it is so exceedingly slim that the only mathematical tool I have available to calculate it has to work with arbitrary precision operations simply in order to present it. Unless someone gets their hands on a massive quantum computer running Shor's algorithm**, it is, in short, an impossible problem.
*Even this is an understatement.
**It'd take about 30 seconds for a quantum computer to break the code, since the computations necessary increase according to (lg n)^3 for an n bit key.
Basically, trial integer factorization isn't going to work.