This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Project Ideas/Start New Projects => Your Projects
Author Message
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 15 Nov 2005 12:18:47 pm    Post subject:

Here's an idea: make a FF extension that automatically optimizes or displays the code of a http://www.ticalc.org/*/*.zip file when you right click on such a link. Maybe any .8xp or .zip file!

So, you would do:
* Go to ticalc.org
* Find a file you like
* Right-click it
* Choose "Optimize file with opTI-Basic"
* A new tab opens up with output.php of opTI-Basic

It would be a challenge, but it might be doable. I'll think about this after I get opTI-Basic working decently.


Last edited by Guest on 15 Nov 2005 12:20:14 pm; edited 1 time in total
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 18 Nov 2005 10:28:16 pm    Post subject:

- Bunch of optimizations added (click), so I upped the version.

Test Code:
Quote:
If K!=0
Then
Disp "Hello World"
Disp "!"
Else
If K=5
B+2->B
DelVar A
DelVar B
End
under the "ASCII" choice is optimized into
Quote:
[font="courier new"]If K
Then
Disp "Hello[font="times new roman"]░
World","!
Else
B+2(K=5B
DelVar ADelVar BEnd


Optimized by opTI-Basic


Last edited by Guest on 22 Nov 2005 05:14:36 pm; edited 1 time in total
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 18 Nov 2005 10:36:40 pm    Post subject:

I finally figured out how to output back a user's input Smile Now look at how many I've added!

I'm also gonna add the "Bytes Saved:" output soon.
Back to top
alexrudd
pm me if you read this


Bandwidth Hog


Joined: 06 Oct 2004
Posts: 2335

Posted: 18 Nov 2005 11:35:14 pm    Post subject:

Erm....
Quote:
:Disp "HELLO WORLD"


Converted into BBCode by TI-BBCode Converter
Am I using an old version or something?
http://brazucs.unitedti.org/codeconverter.html
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 18 Nov 2005 11:59:39 pm    Post subject:

http://brazucs.unitedti.org/opti/opti_main.php

But there is still a problem—It doesn't optimize quotes if they're on the last line.
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 19 Nov 2005 02:00:57 am    Post subject:

Thanks! Fixed...


To fix the confusion, I:
-edited the topic title
-got rid of TIBBCC and put a redirect page in
-added link to logo


Last edited by Guest on 19 Nov 2005 04:00:42 am; edited 1 time in total
Back to top
necro


Advanced Member


Joined: 09 Apr 2005
Posts: 278

Posted: 19 Nov 2005 09:45:27 pm    Post subject:

Brazucs wrote:
I finally figured out how to output back a user's input Smile Now look at how many I've added!

I'm also gonna add the "Bytes Saved:" output soon.
[post="61894"]<{POST_SNAPBACK}>[/post]

sounds cool
Back to top
leofox
INF student


Super Elite (Last Title)


Joined: 11 Apr 2004
Posts: 3562

Posted: 20 Nov 2005 06:21:45 am    Post subject:

Quote:
L(A_LIST_WITH_A_REALLY_BIG_NAME)
L(LIL_NAME)
Same with matricies

You do know that lists cant have names larger than 6 tokens, and that matrices only have a letter as a name?

I think you can better have it detect large list names and subprogram names, and give a suggestion for renaming.
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 22 Nov 2005 03:24:17 pm    Post subject:

Burr just posted about an optimizing page of his.

So, I added a bunch of his optimizations into this list and invited him to add some of these into his. Before implementing then, however, I will ask for his permission.


On a sidenote, here's a lil' QC:

I'm taking a bunch of programs from ticalc and running them through optiBasic. Here's what I'm getting (also checking to make sure the functionality's still good):

optiBasic v0.25α
Program Name: AB-Dome (Battle Dome) V. 0.798
Size Before: 9402
Size After: 9108
Bytes Saved: 294

Program Name: Bob Sled v1.4
Size Before: 4594
Size After: 4510
Bytes Saved: 84

Program Name: Blokzle! v3.0
Size Before: 1906+417
Size After: 1850+397
Bytes Saved: 76

Program Name: The best geometry program for TI83+! v.3.1.0
Size Before: 1403
Size After: 1377
Bytes Saved: 26

Program Name: xLIB xLIB Revolution v. 1.3 (and its level editor)
Size Before: 2968+1029
Size After: 2957+1025
Bytes Saved: 19 (awesome coding, Kevin...)

...and optiB is still in its infancy!!


Last edited by Guest on 27 Nov 2005 12:12:20 am; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 22 Nov 2005 04:40:20 pm    Post subject:

I'm having problems optimizing a file from my computer. It says "Error moving PROGRAM.8xp from /tmp/phpsqUaj14487"
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 22 Nov 2005 04:53:29 pm    Post subject:

Yeah, I haven't gotten that to work yet

Quote:
You can implement all of the optimizations if you want. The only thing is that it will probably be difficult to do for any of the more difficult optimizations.
...if not impossible! I'll try my best, thanks :)

leofox wrote:
Quote:
L(A_LIST_WITH_A_REALLY_BIG_NAME)
L(LIL_NAME)
Same with matricies

You do know that lists cant have names larger than 6 tokens, and that matrices only have a letter as a name?

I think you can better have it detect large list names and subprogram names, and give a suggestion for renaming.

I knew about the list names, that was just an illustration. However, I didn't know matrices could only be one letter long.
Fixed, then Smile


Last edited by Guest on 22 Nov 2005 06:02:40 pm; edited 1 time in total
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 22 Nov 2005 08:26:24 pm    Post subject:

Here's a PHP problem:
PHP Code wrote:
<?php
    $string = 'For(X,1,7):End';
$match = array ('@For\([A-Z],[0-9],([0-9])\):End@');
    $replace = array ('rand \1');
    // I need it to echo 14 [that is (\1)*2]
$string = preg_replace($match, $replace, $string);
?>


Like the comment says, anyone know how I'd be able to times \1 by 2?
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 22 Nov 2005 08:28:04 pm    Post subject:

That would be either awesome or too much.
Maybe just the comments?


Last edited by Guest on 22 Nov 2005 08:30:58 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 22 Nov 2005 09:10:39 pm    Post subject:

If you could get it to work, cool. How do you tell something like PV (finance var) and PV (P implied multiply V) apart?
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 22 Nov 2005 09:32:44 pm    Post subject:

Voila, the first problem! lol... I guess you can't. How many people use Finance vars, anyways? TI-Graph Link can't even tell the difference!

Comment coloring implemented!

Test code:
If X://X is an awesome number!
If Y
/* Y isn't that cool
I don't know why, though */
Disp X

TIGL:

Code:
If X
If Y
Disp X


Invision BBCode:
Quote:
[font="courier new"]If X
[color=green]//X is an awesome number!

If Y
/* Y isn't that cool
I don't know why, though */

Disp X[/color]


Optimized by opTI-Basic



--------------------

Okay then, how should I do the coloring?

Disp "Red quotes"

Available Colors:
Supergoose wrote:
BBCode color goes a bit further than we might think!
[Black
Blue
Blueviolet
Brown
Burlywood
Cadetblue
Chocolate
Coral
Cornflowerblue
Crimson
Darkblue
Darkcyan
Darkgoldenrod
Darkgray
Darkgreen
Darkkhaki
Darkmagenta
Darkolivegreen
Darkorange
Darkorchid
Darkred
Darksalmon
Darkseagreen
Darkslateblue
Darkslategray
Darkviolet
Deeppink
Deepskyblue
Dimgray
Dodgerblue
Firebrick
Forestgreen
Fuchsia
Gold
Goldenrod
Gray
Green
Hotpink
Indianred
Indigo
Lightcoral
Lightgray
Lightseagreen
Lightskyblue
Lightslategray
Lightsteelblue
Limegreen
Magenta
Maroon
Mediumaquamarine
Mediumblue
Mediumorchid
Mediumpurple
Mediumseagreen
Mediumslateblue
Mediumturquoise
Mediumvioletred
Midnightblue
Navy
Olive
Olivedrab
Orange
Orangered
Orchid
Palevioletred
Peru
Pink
Plum
Purple
Rosybrown
Royalblue
Saddlebrown
Salmon
Sandybrown
Sienna
Silver
Skyblue
Slateblue
Slategray
Springgreen
Steelblue
Tan
Teal
Tomato
Turquoise
Violet]
*I've taken out most of the ones that don't have good contrast with the white background

Last edited by Guest on 22 Nov 2005 10:38:30 pm; edited 1 time in total
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 22 Nov 2005 10:37:35 pm    Post subject:

It'd be good if you made sure it wouldn't highlight comments within strings... (sorry, haven't checked to see if it already does this)

example:

Code:
"this is my string // and this isn't really a comment->Str1


Highlighting strings in comments is tolerable, in my opinion... :)


EDIT:
Scratch all that. Just tested it: You've already got it covered. Cool
Quote:
[font="courier new"]"this is my string // and this isn't really a commentStr1

Optimized by opTI-Basic


Last edited by Guest on 22 Nov 2005 10:39:58 pm; edited 1 time in total
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 22 Nov 2005 10:41:43 pm    Post subject:

Cool, I'll add that on.

Edit:
Quote:
Scratch all that. Just tested it: You've already got it covered.

No I don't... lol


Last edited by Guest on 22 Nov 2005 10:51:40 pm; edited 1 time in total
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 22 Nov 2005 10:56:38 pm    Post subject:

Brazucs wrote:
Okay then, how should I do the coloring?

More orange! More orange! Smile

But seriously, I noticed a lot of IDEs seem to use a common color scheme: like green for commenting, blue for commands, etc. 'Don't have a screenshot, but I guess you might know what I'm talking about already.


Last edited by Guest on 22 Nov 2005 10:57:20 pm; edited 1 time in total
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 22 Nov 2005 11:37:44 pm    Post subject:

[color=][/color]
Orange, as you can see, looks weird without the QUOTE tags. I know, I'm disappointed too Sad
Orangy colors like Coral and Salmon are a bit better...

Adm.Wiggin wrote:
It'd be good if you made sure it wouldn't highlight comments within strings...  (sorry, haven't checked to see if it already does this)

example:
Code:
"this is my string // and this isn't really a comment->Str1

Highlighting strings in comments is tolerable, in my opinion...  Smile

Actually, now that I look at it, many time, people want to use the -> arrow inside comments and that would disrupt it Sad sorry...


Last edited by Guest on 22 Nov 2005 11:44:56 pm; edited 1 time in total
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 22 Nov 2005 11:46:45 pm    Post subject:

All colors are available in the form #xxxxxx, and many through its shorthand, #xxx.

Last edited by Guest on 22 Nov 2005 11:47:33 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
» View previous topic :: View next topic  
Page 6 of 10 » All times are UTC - 5 Hours

 

Advertisement