HanuAncutei.com - ARTA de a conversa!

Bine ati venit ca musafir! ( Logare | Inregistrare )

2 Pagini V   1 2 >  
Reply to this topicStart new topic
> Tot Pentru Informaticieni
Catalin
mesaj 12 Mar 2004, 10:38 AM
Mesaj #1


Filosof boem
******

Grup: Membri
Mesaje: 6.222
Inscris: 10 July 03
Din: Bucuresti
Forumist Nr.: 445



Cea mai mica pagina de web care sa tipareasca numerele de la 1 la 1000 cu un spatiu intre ele.

Pana acum am reusit 54 de bytes.


--------------------
A nation cannot prosper for long when it favors only the prosperous - Obama
Go to the top of the page
 
+Quote Post
axel
mesaj 12 Mar 2004, 09:12 PM
Mesaj #2


Domnitor
******

Grup: Membri
Mesaje: 6.255
Inscris: 3 October 03
Forumist Nr.: 899



Am o versiune modificata, de numai 53 de octeti, care scrie totul pe o linie.


--------------------
Azi avem.

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 12 Mar 2004, 09:20 PM
Mesaj #3


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



44 bytes

is this good?

Acest topic a fost editat de menthoru': 12 Mar 2004, 09:25 PM


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
Promo Contextual
mesaj 12 Mar 2004, 09:20 PM
Mesaj #


ContextuALL









Go to the top of the page
 
Quote Post
Catalin
mesaj 12 Mar 2004, 11:51 PM
Mesaj #4


Filosof boem
******

Grup: Membri
Mesaje: 6.222
Inscris: 10 July 03
Din: Bucuresti
Forumist Nr.: 445



Menthore, zi-ne si noua cum faci, nu ne tine in suspans!


--------------------
A nation cannot prosper for long when it favors only the prosperous - Obama
Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 12:00 AM
Mesaj #5


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



e un fisier php care are doar codul asta:

QUOTE
<?$i=1;while($i<1001){echo $i." ";$i++;}?>


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
Mihai
mesaj 13 Mar 2004, 12:08 AM
Mesaj #6


Gazda Hanului
******

Grup: Admin
Mesaje: 8.578
Inscris: 22 February 03
Din: Hanu Ancutei
Forumist Nr.: 1



29 bytes cool.gif

rofl.gif


--------------------
Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 12:11 AM
Mesaj #7


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



Ai reusit?


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
Mihai
mesaj 13 Mar 2004, 12:14 AM
Mesaj #8


Gazda Hanului
******

Grup: Admin
Mesaje: 8.578
Inscris: 22 February 03
Din: Hanu Ancutei
Forumist Nr.: 1



Dap; si un nou record: 20 bytes. spoton.gif

rofl.gif


--------------------
Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 12:17 AM
Mesaj #9


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



Pai invata-ne nu mai astepta. Give us code.


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
Mihai
mesaj 13 Mar 2004, 12:21 AM
Mesaj #10


Gazda Hanului
******

Grup: Admin
Mesaje: 8.578
Inscris: 22 February 03
Din: Hanu Ancutei
Forumist Nr.: 1



QUOTE
Cea mai mica pagina de web care sa tipareasca numerele de la 1 la 1000 cu un spatiu intre ele.


Asadar: laugh.gif

Varianta HTML
CODE
<iframe src="a.php"></iframe>


Varianta PHP
CODE
<?include("a.php")?>


Unde a.php este pagina ce contine codul care genereaza numerele. Am folosit codul lui menthoru', fiind la indemana. spoton.gif

rofl.gif


--------------------
Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 12:23 AM
Mesaj #11


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



looooooooooooooool .... MIAHI, hotomanule ... e o chestie ... dar nu se pune tongue.gif


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
Mihai
mesaj 13 Mar 2004, 12:24 AM
Mesaj #12


Gazda Hanului
******

Grup: Admin
Mesaje: 8.578
Inscris: 22 February 03
Din: Hanu Ancutei
Forumist Nr.: 1



Well, tinand cont ca se cere o pagina care sa tipareasca, nu un cod care sa le genereze... whistling.gif

rofl.gif


--------------------
Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 12:28 AM
Mesaj #13


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



50.gif provocare pe fata!!!!

edit: ce spui de 19 bytes (19 bytes)? tongue.gif

Acest topic a fost editat de menthoru': 13 Mar 2004, 12:32 AM


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
Mihai
mesaj 13 Mar 2004, 01:25 AM
Mesaj #14


Gazda Hanului
******

Grup: Admin
Mesaje: 8.578
Inscris: 22 February 03
Din: Hanu Ancutei
Forumist Nr.: 1



19 bytes? Cum anume? tongue.gif

Oricum, maresc (sau micsorez blink.gif ) miza la 17 (saptesprezece tongue.gif ) bytes.

jamie.gif rofl.gif


--------------------
Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 01:36 AM
Mesaj #15


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



eh asta nu pot sa o cred. am scos 19 pe acelasi cod ca si tine ... cu include sau require. diferenta cred ca o facea numele fisierului. in rest ... 17 ... cred ca asta e o limita de dementa totala !!!


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
Mihai
mesaj 13 Mar 2004, 01:40 AM
Mesaj #16


Gazda Hanului
******

Grup: Admin
Mesaje: 8.578
Inscris: 22 February 03
Din: Hanu Ancutei
Forumist Nr.: 1



laugh.gif Hehe, dar ea exista:

http://www.hanuancutei.com/cod/img.htm

jamie.gif rofl.gif yikes.gif harhar.gif rofl.gif


--------------------
Go to the top of the page
 
+Quote Post
axel
mesaj 13 Mar 2004, 01:48 AM
Mesaj #17


Domnitor
******

Grup: Membri
Mesaje: 6.255
Inscris: 3 October 03
Forumist Nr.: 899



Trisorilor! HTML, nu PHP sau alte minuni de scripturi server-side


--------------------
Azi avem.

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 01:52 AM
Mesaj #18


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



nu o mai testez acum, dar am vazut punctul slab in GIGANTICUL TAU cod biggrin.gif

eu o voi scrie asa

QUOTE
<img src=a.gif>


adica fara ghilimele si pierd 2 caractere, codul functioneaza. I WIN!

Acest topic a fost editat de menthoru': 13 Mar 2004, 01:53 AM


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
axel
mesaj 13 Mar 2004, 01:53 AM
Mesaj #19


Domnitor
******

Grup: Membri
Mesaje: 6.255
Inscris: 3 October 03
Forumist Nr.: 899



Cheaters, cheaters!


--------------------
Azi avem.

Go to the top of the page
 
+Quote Post
Mihai
mesaj 13 Mar 2004, 02:50 AM
Mesaj #20


Gazda Hanului
******

Grup: Admin
Mesaje: 8.578
Inscris: 22 February 03
Din: Hanu Ancutei
Forumist Nr.: 1



QUOTE
I WIN!


Nope. harhar.gif

CODE
<img src=a>


L-am testat in IE si e totul ok. spoton.gif jamie.gif rofl.gif

@axel: Dar... asta e pur HTML! rofl.gif


--------------------
Go to the top of the page
 
+Quote Post
axel
mesaj 13 Mar 2004, 03:45 AM
Mesaj #21


Domnitor
******

Grup: Membri
Mesaje: 6.255
Inscris: 3 October 03
Forumist Nr.: 899



Pur HTML ce-i drept... dar ai uitat sa iei in calcul si dimensiunea pozei rofl.gif


--------------------
Azi avem.

Go to the top of the page
 
+Quote Post
Arktu
mesaj 13 Mar 2004, 04:01 AM
Mesaj #22


Gica contra!
*****

Grup: Membri
Mesaje: 501
Inscris: 17 August 03
Din: -
Forumist Nr.: 619



Daca tot va intreceti in webdesign (vorba vine...) macar incercati ceva util omului.


--------------------
Mama prostilor e tot timpul insarcinata... si mai nou am aflat ca e romanca !!!
user posted image
Go to the top of the page
 
+Quote Post
E.B.E.
mesaj 13 Mar 2004, 09:37 AM
Mesaj #23


Domnitor
******

Grup: Membri
Mesaje: 1.292
Inscris: 20 November 03
Din: Delft, NL
Forumist Nr.: 1.248



Mah in JS nu am reusit sa scap de ponderea enervanta pe care o au <body onLoa=" sau <script></script>, respectiv document.write...

In schimb, desi nu stiu PHP, si s-ar putea sa nu mearga ce o scriu eu aici, daca merge este mai mic:
CODE

orig: <?$i=1;while($i<1001){echo $i." ";$i++;}?>
ver1: <?$i=0;while($i<1000)echo $++i." ";}?>
ver2: <?for($i=1;$i<1001;$i++)echo $i." ";?>
ver3: <?for($i=0;$i<1000;)echo $++i." ";?>

(am indoieli despre $++i-urile alea...)

Oricum, versiunea 2 este cu siguranta mai buna. Daca e sintaxa corecta PHP smile.gif.
And... no cheating smile.gif Nimeni nu a spus ca trebuie sa fie client-side.

Cat pentru arktu... Omu mai se si joaca, si e cat se poate de util uneori tongue.gif in multe feluri


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

I spend my time thinking of Angel... praying she ain't thinking of me...

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 11:10 AM
Mesaj #24


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



doar originalul da rezultatul bun. versiunile 2 si 3 au sintaxa gresita.
totusi versiunea 1 cu o mica modificare a devenit cea mai mica de pana acum

ea ar trebui scrisa asa:

QUOTE
<?$i=1;while($i<1001){echo $i++." ";}?>


rezultatul: 39 bytes


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
E.B.E.
mesaj 13 Mar 2004, 12:27 PM
Mesaj #25


Domnitor
******

Grup: Membri
Mesaje: 1.292
Inscris: 20 November 03
Din: Delft, NL
Forumist Nr.: 1.248



nu stie PHP for fara partea de update? pacat... aia ar fi fost cea mai scurta versiune. Adica:
for ($i=1;$i<1001;)echo $i++;

Si inca o intrebare... Iterativele cu o singura instructiune in corp nu au acoladele optionale? Asta ar mai scoate 2 bytes...

Acest topic a fost editat de E.B.E.: 13 Mar 2004, 12:28 PM


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

I spend my time thinking of Angel... praying she ain't thinking of me...

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 12:47 PM
Mesaj #26


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



QUOTE
<?$i=1;while($i<1001)echo $i++." ";?>


la faza asta putem scapa de acolade si l-am adus la 37 bytes. insa cel mai bun rezultat cu asta cum spui tu:

QUOTE
<?for($i=1;$i<1001;)echo$i++." ";?>


si are doar 35 bytes.


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
E.B.E.
mesaj 13 Mar 2004, 12:57 PM
Mesaj #27


Domnitor
******

Grup: Membri
Mesaje: 1.292
Inscris: 20 November 03
Din: Delft, NL
Forumist Nr.: 1.248



meseriash! thumb_yello.gif

we work well together tongue.gif

Dar eu tot nu-s lamurit cum aduc astia din JS la 53 de bytes unsure.gif ca eu nu am reusit nicicum...


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

I spend my time thinking of Angel... praying she ain't thinking of me...

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 01:00 PM
Mesaj #28


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



yo unul nu ma pricep neam la js deci pentru mine e si mai mare uimirea ...


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
E.B.E.
mesaj 13 Mar 2004, 01:03 PM
Mesaj #29


Domnitor
******

Grup: Membri
Mesaje: 1.292
Inscris: 20 November 03
Din: Delft, NL
Forumist Nr.: 1.248



pai ar fi cam acelasi lucru:

CODE
<script>for(i=1;i<1001;)document.write(i+++" ")</script>


Dar cu asta deja e la 57 de bytes...

Edit: scuze, 56...

Acest topic a fost editat de E.B.E.: 13 Mar 2004, 01:11 PM


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

I spend my time thinking of Angel... praying she ain't thinking of me...

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 01:10 PM
Mesaj #30


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



CODE
<body onload="for(i=1;i<1001;)document.write(i+++' ')">

asa are 55 bytes

Acest topic a fost editat de menthoru': 13 Mar 2004, 01:12 PM


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 01:13 PM
Mesaj #31


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



bine inteles ca am incercat: http://alex.4conceptdesign.com/1.php

Acest topic a fost editat de menthoru': 13 Mar 2004, 01:13 PM


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
E.B.E.
mesaj 13 Mar 2004, 01:13 PM
Mesaj #32


Domnitor
******

Grup: Membri
Mesaje: 1.292
Inscris: 20 November 03
Din: Delft, NL
Forumist Nr.: 1.248



da dar nu merge... ai incercat? Mai exact merge doar in IE... care nu e compatibil cu standardele JS de la Netscape...

si oricum nu e 53 de bytes sad.gif...


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

I spend my time thinking of Angel... praying she ain't thinking of me...

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 01:17 PM
Mesaj #33


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



CODE
<body onload="i=1;if(i<1001)document.write(i+++' ')">

asta are 53 bytes
CODE
<script>i=1;if(i<1001)document.write(i+++' ')</script>

asta are 54 bytes


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post
E.B.E.
mesaj 13 Mar 2004, 01:17 PM
Mesaj #34


Domnitor
******

Grup: Membri
Mesaje: 1.292
Inscris: 20 November 03
Din: Delft, NL
Forumist Nr.: 1.248



Ha! 54 de bytes! [In IE, evident...]

CODE
<body onload="for(i=0;i<1e3;)document.write(++i+' ')">


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

I spend my time thinking of Angel... praying she ain't thinking of me...

Go to the top of the page
 
+Quote Post
menthoru'
mesaj 13 Mar 2004, 01:20 PM
Mesaj #35


Domnitor
******

Grup: EmailInvalid
Mesaje: 1.033
Inscris: 3 September 03
Din: Bucuresti
Forumist Nr.: 706



si daca le combinam pe al meu cu al tau scaotem 53 si in NN
CODE
<script>i=1;if(i<1e3)document.write(i+++' ')</script>


once again great team work thumb_yello.gif


--------------------
I have given it much thought / It seems, disaster must come / At best, only postponed / Shaolin Kung-Fu to survive / Must now be taught to more young men / We must expand, get more pupils / So that the knowledge will spread
Go to the top of the page
 
+Quote Post

2 Pagini V   1 2 >
Reply to this topicStart new topic

 



RSS Versiune Text-Only Data este acum: 24 October 2017 - 05:53 AM
Ceaiuri Medicinale Informatii despre Certificat Energetic