View Full Version : Forum idea for autumn time :)
ErosOlmi
20-08-2011, 16:21
I'm trying to think how to organize in forum an area called (for example) "thinBasic Script of the month (TSOTM)" (or the week) where people can nominate up to 5 thinBasic scripts released as public somewhere in the forum and than people can vote for the preferred one.
My idea is like that:
let's say that there will be a nomination period during which people can suggest scripts to enter into nomination
after that period it will take place the real poll where people can vote for the preferred source script
Any suggestion?
Ciao
Eros
Petr Schreiber
20-08-2011, 20:26
I like the concept!
There is one thing to consider - whether to limit the scripts for nomination to be only from previous month for example, or from any time.
The first approach motivates for creation of more new scripts, the other can pick up some interesting pieces from the past.
Petr
ErosOlmi
20-08-2011, 20:33
The idea is to leave each poll open till the next month poll is created.
Or maybe leave the voting period of the previous month open till the next month nomination period is over.
Other thing to think is if we have to find some prizes for the author or not.
If yes what can be the prize?
danbaron
20-08-2011, 21:00
monthly prizes
4. $00002
3. $00004
2. $00008
1. $00016
quarterly prizes
4. $00032
3. $00064
2. $00128
1. $00256
semi-annual prizes
4. $00512
3. $01024
2. $02048
1. $04096
yearly prizes
4. $08192
3. $16384
2. $32768
1. $65536
The site will be overwhelmed. Overwhelmed!!
ErosOlmi
20-08-2011, 21:13
Ok, no problem to give away some bits till the size of an unsigned integer.
What I do not like ATM (but maybe in future when I will be millionaire things can change) is the $ sign.
:occasion:
i suggest to make a place with one long page contains links to most posted and finished codes with a very short description such as:
1- helicopter figure (http://www.thinbasic.com/community/showthread.php?11317-thinbasic-helicopter) (canvas commands example)
2- mp math and how to access variables in a dll (http://www.thinbasic.com/community/showthread.php?11312-mp-math-and-how-to-access-variables-in-a-dll)
3- and so on .... to number 5000
this will enable the user to browse the different codes in one page.
i think the prizes can have an adverse effect, this depends on complex considerations and psychology even hard to describe.
Petr Schreiber
21-08-2011, 08:52
My idea comes from something I saw on forums related to 2D/3D graphics:
Maybe the prize would be the fact that the script ranking #1 would be placed in clearly visible rectangle with description on thinBasic front page (http://www.thinbasic.com/).
Something like "Script of the month", then image related to the script below (screenshot, ...), then name of author and hyperlink here to forum.
This way:
the author gets his work to visible place (which guarantees men will want to be like him, and women will send application forms for marriage :p)
thinBasic homepage has some change each month, making it more "alive"
Petr
danbaron
21-08-2011, 13:38
I think this program will reverse any text file.
I know that many thought such a program was impossible.
I admit that I was very lucky to stumble upon the complex algorithm.
If I win a lot of money, I won't forget any of you in my acceptance speech!
' code -------------------------------------------------------------------------------------------------------------------
Uses "console"
Uses "file"
Function reversefile(directory As String, infile As String, outfile As String)
Local inf, ouf, i, fl As Integer
Local s As String
DIR_Change(directory)
inf = FILE_Open(infile, "binary")
ouf = FILE_Open(outfile, "binary")
fl = FILE_LOF(inf)
For i = fl To 1 Step -1
FILE_Seek(inf, i)
s = FILE_Get(inf, 1)
If Asc(s)=13 Then
s=Chr$(10)
ElseIf Asc(s)=10 Then
s=Chr$(13)
EndIf
FILE_Put(ouf, s)
Next
FILE_Close(inf)
FILE_Close(ouf)
PrintL "Done. Press a key to end."
End Function
Function TBMain()
reversefile("c:\users\root\desktop\new thin\", "charles-lisp.tbasic", "cisabt.psil-selrahc")
WaitKey
End Function
' sample file ------------------------------------------------------------------------------------------------------------
'LeanLisp 1
Dim As Long i,j,k,asci,op,opf,nest,nestop(64),nestopf(64)
Dim As String s,t,u,w
Dim As Double v,accum,nestacc(64)
'-------------------------------------------------------
Function getword(s As String, ByRef i As Long) As String
'=======================================================
Dim As Long a,b
'
While 1
asci=Asc(s,i)
If asci<9 Then Exit While
If asci>32 Then Exit While
i+=1
Wend
'
b=i
'
'CHECK FOR '(' OR ')'
'
If (asci=40)Or(asci=41) Then
i+=1
Else
'
While 1
a=Asc(s,i)
If a<9 Then Exit While
If a<=32 Then Exit While
i+=1
Wend
'
End If
'
Function=Mid$(s,b,i-b)
'
End Function
'-----------
Sub opeval()
'===========
If opf Then
accum=v
opf=0
Else
Select Case op
Case 43 : accum+=v
Case 45 : accum-=v
Case 42 : accum*=v
Case 47 : accum/=v
End Select
End If
End Sub
'------------------------
Sub evaluate(s As String)
'========================
i=1
w=""
v=0
accum=0
nest=0
op=0
opf=0
While 1
w=getword(s,i)
If w="" Then Exit While
Select Case asci
Case 0 : Exit While
Case 40
nest+=1
nestacc(nest)=accum : nestop(nest)=op : nestopf(nest)=opf
accum=0 : op=0 : opf=0
Case 41
v=accum : accum=nestacc(nest) : op=nestop(nest) : opf=nestopf(nest)
nest-=1
opeval()
Case 43 : op=43 : opf=1 '+
Case 45 : op=45 : opf=1 '-
Case 42 : op=42 : opf=1 '*
Case 47 : op=47 : opf=1 '/
End Select
'
'check for literal number
'
If (asci>=48)And(asci<=57) Then
v=Val(w)
opeval()
Else 'not a literal number
'
End If
'
Wend
End Sub
'
'-------
'TESTING
'=======
'
s="
( / ( * ( + 1 2 3 4 ) 3 ) 3 2 )
"
'
evaluate(s)
MsgBox 0,v
' sample file reversed ---------------------------------------------------------------------------------------------------
v,0 xoBgsM
)s(etaulave
'
"
) 2 3 ) 3 ) 4 3 2 1 + ( * ( / (
"=s
'
======='
GNITSET'
-------'
'
buS dnE
dneW
'
fI dnE
'
rebmun laretil a ton' eslE
)(lavepo
)w(laV=v
nehT )75=<icsa(dnA)84=>icsa( fI
'
rebmun laretil rof kcehc'
'
tceleS dnE
/' 1=fpo : 74=po : 74 esaC
*' 1=fpo : 24=po : 24 esaC
-' 1=fpo : 54=po : 54 esaC
+' 1=fpo : 34=po : 34 esaC
)(lavepo
1=-tsen
)tsen(fpotsen=fpo : )tsen(potsen=po : )tsen(ccatsen=mucca : mucca=v
14 esaC
0=fpo : 0=po : 0=mucca
fpo=)tsen(fpotsen : po=)tsen(potsen : mucca=)tsen(ccatsen
1=+tsen
04 esaC
elihW tixE : 0 esaC
icsa esaC tceleS
elihW tixE nehT ""=w fI
)i,s(drowteg=w
1 elihW
0=fpo
0=po
0=tsen
0=mucca
0=v
""=w
1=i
========================'
)gnirtS sA s(etaulave buS
------------------------'
buS dnE
fI dnE
tceleS dnE
v=/mucca : 74 esaC
v=*mucca : 24 esaC
v=-mucca : 54 esaC
v=+mucca : 34 esaC
po esaC tceleS
eslE
0=fpo
v=mucca
nehT fpo fI
==========='
)(lavepo buS
-----------'
noitcnuF dnE
'
)b-i,b,s($diM=noitcnuF
'
fI dnE
'
dneW
1=+i
elihW tixE nehT 23=<a fI
elihW tixE nehT 9<a fI
)i,s(csA=a
1 elihW
'
eslE
1=+i
nehT )14=icsa(rO)04=icsa( fI
'
')' RO '(' ROF KCEHC'
'
i=b
'
dneW
1=+i
elihW tixE nehT 23>icsa fI
elihW tixE nehT 9<icsa fI
)i,s(csA=icsa
1 elihW
'
b,a gnoL sA miD
======================================================='
gnirtS sA )gnoL sA i feRyB ,gnirtS sA s(drowteg noitcnuF
-------------------------------------------------------'
)46(ccatsen,mucca,v elbuoD sA miD
w,u,t,s gnirtS sA miD
)46(fpotsen,)46(potsen,tsen,fpo,po,icsa,k,j,i gnoL sA miD
1 psiLnaeL'
ErosOlmi
21-08-2011, 13:49
What about Flipping ?
ʌ'0 xoqbsɯ
(s)ǝʇɐnןɐʌǝ
,
"
( 2 3 ( 3 ( 4 3 2 1 + ) * ) / )
"=s
,
=======,
buıʇsǝʇ,
-------,
,
qns puǝ
puǝʍ
,
ɟı puǝ
,
ɹǝqɯnu ןɐɹǝʇıן ɐ ʇou, ǝsןǝ
()ןɐʌǝdo
(ʍ)ןɐʌ=ʌ
uǝɥʇ (75=<ıɔsɐ)puɐ(84=>ıɔsɐ) ɟı
,
ɹǝqɯnu ןɐɹǝʇıן ɹoɟ ʞɔǝɥɔ,
,
ʇɔǝןǝs puǝ
/, 1=ɟdo : 74=do : 74 ǝsɐɔ
*, 1=ɟdo : 24=do : 24 ǝsɐɔ
-, 1=ɟdo : 54=do : 54 ǝsɐɔ
+, 1=ɟdo : 34=do : 34 ǝsɐɔ
()ןɐʌǝdo
1=-ʇsǝu
(ʇsǝu)ɟdoʇsǝu=ɟdo : (ʇsǝu)doʇsǝu=do : (ʇsǝu)ɔɔɐʇsǝu=ɯnɔɔɐ : ɯnɔɔɐ=ʌ
14 ǝsɐɔ
0=ɟdo : 0=do : 0=ɯnɔɔɐ
ɟdo=(ʇsǝu)ɟdoʇsǝu : do=(ʇsǝu)doʇsǝu : ɯnɔɔɐ=(ʇsǝu)ɔɔɐʇsǝu
1=+ʇsǝu
04 ǝsɐɔ
ǝןıɥʍ ʇıxǝ : 0 ǝsɐɔ
ıɔsɐ ǝsɐɔ ʇɔǝןǝs
ǝןıɥʍ ʇıxǝ uǝɥʇ ""=ʍ ɟı
(ı's)pɹoʍʇǝb=ʍ
1 ǝןıɥʍ
0=ɟdo
0=do
0=ʇsǝu
0=ɯnɔɔɐ
0=ʌ
""=ʍ
1=ı
========================,
(buıɹʇs sɐ s)ǝʇɐnןɐʌǝ qns
------------------------,
qns puǝ
ɟı puǝ
ʇɔǝןǝs puǝ
ʌ=/ɯnɔɔɐ : 74 ǝsɐɔ
ʌ=*ɯnɔɔɐ : 24 ǝsɐɔ
ʌ=-ɯnɔɔɐ : 54 ǝsɐɔ
ʌ=+ɯnɔɔɐ : 34 ǝsɐɔ
do ǝsɐɔ ʇɔǝןǝs
ǝsןǝ
0=ɟdo
ʌ=ɯnɔɔɐ
uǝɥʇ ɟdo ɟı
===========,
()ןɐʌǝdo qns
-----------,
uoıʇɔunɟ puǝ
,
(q-ı'q's)$pıɯ=uoıʇɔunɟ
,
ɟı puǝ
,
puǝʍ
1=+ı
ǝןıɥʍ ʇıxǝ uǝɥʇ 23=<ɐ ɟı
ǝןıɥʍ ʇıxǝ uǝɥʇ 6<ɐ ɟı
(ı's)ɔsɐ=ɐ
1 ǝןıɥʍ
,
ǝsןǝ
1=+ı
uǝɥʇ (14=ıɔsɐ)ɹo(04=ıɔsɐ) ɟı
,
,(, ɹo ,), ɹoɟ ʞɔǝɥɔ,
,
ı=q
,
puǝʍ
1=+ı
ǝןıɥʍ ʇıxǝ uǝɥʇ 23>ıɔsɐ ɟı
ǝןıɥʍ ʇıxǝ uǝɥʇ 6<ıɔsɐ ɟı
(ı's)ɔsɐ=ıɔsɐ
1 ǝןıɥʍ
,
q'ɐ buoן sɐ ɯıp
=======================================================,
buıɹʇs sɐ (buoן sɐ ı ɟǝɹʎq 'buıɹʇs sɐ s)pɹoʍʇǝb uoıʇɔunɟ
-------------------------------------------------------,
(49)ɔɔɐʇsǝu'ɯnɔɔɐ'ʌ ǝןqnop sɐ ɯıp
ʍ'n'ʇ's buıɹʇs sɐ ɯıp
(49)ɟdoʇsǝu'(49)doʇsǝu'ʇsǝu'ɟdo'do'ıɔsɐ'ʞ'ظ'ı buoן sɐ ɯıp
1 dsıןuɐǝן,
------------------------------------------------------------------------------------------------------------ ǝןıɟ ǝןdɯɐs ,
uoıʇɔunɟ puǝ
ʎǝʞʇıɐʍ
("ɔɥɐɹןǝs-ןısd˙ʇqɐsıɔ" '"ɔısɐqʇ˙dsıן-sǝןɹɐɥɔ" '"\uıɥʇ ʍǝu\doʇʞsǝp\ʇooɹ\sɹǝsn\:ɔ")ǝןıɟǝsɹǝʌǝɹ
()uıɐɯqʇ uoıʇɔunɟ
uoıʇɔunɟ puǝ
"˙puǝ oʇ ʎǝʞ ɐ ssǝɹd ˙ǝuop" ןʇuıɹd
(ɟno)ǝsoןɔ‾ǝןıɟ
(ɟuı)ǝsoןɔ‾ǝןıɟ
ʇxǝu
(s 'ɟno)ʇnd‾ǝןıɟ
ɟıpuǝ
(31)$ɹɥɔ=s
uǝɥʇ 01=(s)ɔsɐ ɟıǝsןǝ
(01)$ɹɥɔ=s
uǝɥʇ 31=(s)ɔsɐ ɟı
(1 'ɟuı)ʇǝb‾ǝןıɟ = s
(ı 'ɟuı)ʞǝǝs‾ǝןıɟ
1- dǝʇs 1 oʇ ןɟ = ı ɹoɟ
(ɟuı)ɟoן‾ǝןıɟ = ןɟ
("ʎɹɐuıq" 'ǝןıɟʇno)uǝdo‾ǝןıɟ = ɟno
("ʎɹɐuıq" 'ǝןıɟuı)uǝdo‾ǝןıɟ = ɟuı
(ʎɹoʇɔǝɹıp)ǝbuɐɥɔ‾ɹıp
buıɹʇs sɐ s ןɐɔoן
ɹǝbǝʇuı sɐ ןɟ 'ı 'ɟno 'ɟuı ןɐɔoן
(buıɹʇs sɐ ǝןıɟʇno 'buıɹʇs sɐ ǝןıɟuı 'buıɹʇs sɐ ʎɹoʇɔǝɹıp)ǝןıɟǝsɹǝʌǝɹ uoıʇɔunɟ
"ǝןıɟ" sǝsn
"ǝןosuoɔ" sǝsn
------------------------------------------------------------------------------------------------------------------- ǝpoɔ ,
my brain are flipped, how it could be "ǝןosuoɔ" sǝsn ??, i know that it is uses "console" flipped. even i have tried to past it to thinbasic ide on the hope that the ide can run the flipped code (such as the golden egg sometimes hidden in the software) but in thinbasic ide i can't past as a plain text, but in word pad i can past. it is Arial Unicode MS.
i hope i am not dumb too much.
ErosOlmi
21-08-2011, 14:57
http://www.fliptext.org/
:D (http://www.fliptext.org/)
danbaron
22-08-2011, 00:25
I cannot tell a lie.
I must admit that I don't know how you did it.
You mean, nasty guy!!
:mad: