You are not logged in.

#126 2008-05-09 12:21:40

uzbirglones
Member
From: São Carlos - SP - Brazil
Registered: 2007-06-01
Posts: 24

Re: A script proclaiming Arch's superiority

working on a Brazilian Portuguese translation... but it might take me 2 or 3 weeks long... since it's so many strings to translate...

Offline

#127 2008-05-09 20:11:29

ckristi
Member
From: Bucharest, Romania
Registered: 2006-11-21
Posts: 225

Re: A script proclaiming Arch's superiority

ibendiben wrote:

Actually we might consider closing the source on this one.

Not only we should close the source, how about patenting it? wink


In love I believe and in Linux I trust

Offline

#128 2008-05-10 02:14:33

TheBodziO
Member
From: Dukla, Poland
Registered: 2006-07-28
Posts: 230
Website

Re: A script proclaiming Arch's superiority

@Allan: This is a beauty! Thanks! smile

@pulsar1971: You are *BIG*! big_smile That's official! wink

Added polish translation

Arch jest najlepszy!

and brainf*ck version to wiki.

The whole thing reminds me of a TeX—the only errorless program wink. As one says: "TeX don't have bugs—it has features!" big_smile


It's not the best thing when they call you a "member" you know… wink

Offline

#129 2008-05-10 02:21:36

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: A script proclaiming Arch's superiority

Goodbye "Hello World". Hello "Arch is the best!" The oldest problem in computer science has been officially solved!

Offline

#130 2008-05-10 03:02:07

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: A script proclaiming Arch's superiority

I need to contribute in a more meaningful way here. Ingredients:

GIMP
Python
3D modeler or image viewer that supports importing of .obj files
and this image:

---EDIT---

My free host was swallowed by a non-free host in the last 24 hours. Use any image file that GIMP can read that says "Arch is the best!" to complete this script.

---END EDIT---

Place this script somewhere where GIMP can find it. Maybe your plug-in directory, or like I do, in a user defined Python directory. Please ignore the redundant math and amatuerish Python:

#! /usr/bin/env python
from gimpfu import *

def pic_to_obj(file_name, depth):
    
    if depth==0:
        depth = 1
    
    depth = float(1000/depth)
    
    FILE = open(file_name + ".obj", "w")
    firstline = "g " + file_name + ".obj\n\n"
    FILE.writelines( firstline )
            
    image = pdb.gimp_file_load(file_name, file_name)
    drawable = pdb.gimp_image_get_active_layer(image)
        
    if pdb.gimp_drawable_is_gray(drawable)!= True:
        pdb.gimp_image_convert_grayscale(image)
            
    width = pdb.gimp_image_width(image)
    height = pdb.gimp_drawable_height(drawable)
        
    for j in range(height):
        for i in range(width):
            num_channels, pixel = pdb.gimp_drawable_get_pixel(drawable, i, j)
            list = "\nv " + str(float(i)/10) + " " + str(float(j)/10) + " " + str(float(pixel[0])/depth)
            FILE.writelines(list) 
            
        
    FILE.writelines( "\n" )
        
    for l in range((width)*(height-1)-1):
        if((l+1)%width)!=0:
            list = "\nf " + str(l+1) + " " + str(l+2) + " " + str(l+width+2) + " " + str(l+width+1)
            FILE.writelines(list)
            
    

register(
  "pic_to_obj", "", "", "", "", "",
  "<Toolbox>/Xtns/Languages/Python-Fu/pic_to_obj", "",
  [
  (PF_STRING, "file_name", "file_name", "file_name"),
  (PF_FLOAT, "depth", "depth", "depth")
  ],
  [],
  pic_to_obj
  )

main()

Put your created image (see above edit) and place it in it's own directory for your own sanity. Go into that directory from the terminal and run (replace gimp-2.5 with gimp-2.4 if that's your version). This may take a bit depending on how fast your computer is. (Replace "base_image.png" with your image file. Keep the quotes):

gimp-2.5 -inbdf '(python-fu-pic-to-obj RUN-NONINTERACTIVE "base_image.png" 10 )''(gimp-quit 1)'

When finished, open the resulting file "base_image.png.obj" in your 3D modeler or viewer.

WARNING: This is a severely high-poly image. Every pixel was mapped!

Last edited by skottish (2008-05-11 05:24:19)

Offline

#131 2008-05-10 03:32:01

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: A script proclaiming Arch's superiority

shining wrote:
xelados wrote:

This topic is fucking hilarious.

I read that as : "the topic is censored, hilarious!" and was wondering wtf it meant..

The forum censored me. sad I thought we were (mostly) mature adults and could handle an f-bomb for such a funny topic.

Offline

#132 2008-05-10 20:53:16

MetalRandomist
Member
Registered: 2007-08-16
Posts: 30

Re: A script proclaiming Arch's superiority

Now ported to TI calculators:

TI-BASIC, 68k

:archbest()
:Prgm
:RclPic arch
:Dialog
:  Title "Arch is the Best"
:  Text "Arch is the best!"
:EndDlog
:DispHome
:EndPrgm

TI-BASIC, 83plus-compatible

:CoordOff
:GridOff
:AxesOff
:LabelOff
:ExtrOff
:FnOff
:ClrDraw
:DispGraph
:"ARCH IS THE BEST!!! :)->Str0
:1->A
:For(X,1,22
  :randInt(0,22->B
  :9->C
  :Repeat B=A and C=1
    :Text(C6,B4,"    "
    :B+(B<A)-(B>A->B
    :If C≠1:C-1->C
    :Text(C6,B4,sub(Str0,A,1
  :End
  :If C:Then
    :Text(C6,B4,"    "
    :Text(0,B4,sub(Str0,A,1
  :End
  :A+1->A
:End
:Pause
:ClrGraph
:AxesOn
:ClrHome

Last edited by MetalRandomist (2008-06-02 19:47:26)

Offline

#133 2008-05-10 22:10:37

Asgaroth
Member
From: Hesse, Germany
Registered: 2008-03-26
Posts: 58

Re: A script proclaiming Arch's superiority

Here's a port to the emacs operating system^W^Weditor, including support for prefix arguments:

(defun arch-is-best (&optional count)
  (interactive "p") 
  (if count
      (dotimes (i count)
    (arch-is-best))
    (insert "Arch is the best!")))
;; make sure it gets used often enough ;)
(global-set-key (kbd "C-x") 'arch-is-best)
(global-set-key (kbd "M-x") 'arch-is-best)

Last edited by Asgaroth (2008-05-10 22:14:28)

Offline

#134 2008-05-10 22:46:07

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: A script proclaiming Arch's superiority

xelados wrote:

I thought we were (mostly) mature adults and could handle an f-bomb for such a funny topic.

I'm not sure what gave you the idea that all these anonymous, faceless, nameless people were of adult age.  We try to keep a family-friendly forum here.

Offline

#135 2008-05-11 00:44:23

carlocci
Member
From: Padova - Italy
Registered: 2008-02-12
Posts: 368

Re: A script proclaiming Arch's superiority

shining wrote:
xelados wrote:

This topic is fucking hilarious.

I read that as : "the topic is censored, hilarious!" and was wondering wtf it meant..

It's funny because
"the topic is censored hilarious!"
and
"the topic is $censored hilarious!"
are both true statements

Offline

#136 2008-05-11 17:20:33

danielsoft
Member
From: Czech Republic
Registered: 2008-02-16
Posts: 102

Re: A script proclaiming Arch's superiority

drag0nl0rd wrote:

Czech:

Arch je nejlepší!

smile)

hello fellow-countryman smile
in addition to common Czech version, I am proud to add a version in Hantec to the wiki

Arch je nejbetélnější!

(explanation for the others: this is an unique dialect that is spoken in the dark corners of the city of Brno)


may the Source be with you

Offline

#137 2008-05-11 22:33:04

Lyceuhns
Member
From: João Pessoa, Paraíba, Brasil
Registered: 2008-05-09
Posts: 121

Re: A script proclaiming Arch's superiority

Does it running under Cygwin...?

Last edited by Lyceuhns (2008-05-11 22:36:32)

Offline

#138 2008-05-11 23:27:50

the_glu
Member
Registered: 2008-05-11
Posts: 35

Re: A script proclaiming Arch's superiority

Ok, here is now the Firefox addon to have a better Archlinux is the best!'s web 4.0 experience.

It's provide a contextual menu to be informed if Archlinux is the best!, change the page title, change buttons, change links, fill inputs, change links and change the page.

There is a Archlinux is the best! pagerank system, with an icon showing information about the current Archlinux is the best! status of the page, who can of course improved with the menu x].

Here is a screen : 1dfaaf85d7b9344fe0297d9dae5dat.jpg

Install the addon !

Xpi is simply a zip if you wants to see the code source, thanks to kezar for his support and sorry for my English

(It's amazing what we can do a Sunday night tongue)

Offline

#139 2008-05-11 23:39:56

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: A script proclaiming Arch's superiority

I think there should be a W3-like Arch is the best validator. We may start a RFC to define the Arch is the Best file format specification, then a fast-track ISO normalization.

Offline

#140 2008-05-12 00:29:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,472
Website

Re: A script proclaiming Arch's superiority

the_glu wrote:

Ok, here is now the Firefox addon to have a better Archlinux is the best!'s web 4.0 experience.

I vote that gets packaged with firefox in extra.

Offline

#141 2008-05-12 02:05:06

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: A script proclaiming Arch's superiority

MetalRandomist wrote:

Now ported to TI calculators:

TI-BASIC, 68k

:archbest()
:Prgm
:RclPic arch
:Dialog
:  Title "Arch is the Best"
:  Text "Arc is the best!"  <----------
:EndDlog
:DispHome
:EndPrgm

Where can I file a bug report? smile

Last edited by Sigi (2008-05-12 02:05:37)


Haven't been here in a while. Still rocking Arch. smile

Offline

#142 2008-05-12 09:08:56

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: A script proclaiming Arch's superiority

For the visually impaired:

#!/bin/bash
echo "Arch is the best" | espeak

It needs the package espeak to be installed.

Note: Shamelessly inspired by this thread.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#143 2008-05-13 18:42:00

bavardage
Member
Registered: 2008-02-17
Posts: 160

Re: A script proclaiming Arch's superiority

After extensive testing and my team of programmers working around the clock, I bring you a new implementation.

#!/usr/bin/bf
++++++[>++++++++++<-]+++++++[>>++++++++++<<-]++++++++[>>>++++++++++<<<-]+++++++++[>>>>++++++++++<<<<-]++++++++++[>>>>>++++++++++<<<<<-]+++++++++++[>>>>>>++++++++++<<<<<<-]+++[>>>>>>>++++++++++<<<<<<<-]>+++++.----->>>>>++++.----<-.+++++.---->>++.<<<<<++++++.------>>>+++++.+++++.+++++++.+++.-------------------->>.<<+++++.----->+++++.----->.<++++++.------<++++.---.->>.<<--.+++.-->+++++.+.------>+.>++++++++++.

Enjoy...

Offline

#144 2008-05-13 23:05:38

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: A script proclaiming Arch's superiority

Here it is in Befunge

<v"Arch is the best!"0
 <,_@#:

Offline

#145 2008-05-14 12:55:16

The_Major
Member
From: Newport, UK
Registered: 2008-03-31
Posts: 18

Re: A script proclaiming Arch's superiority

We have had ports to C and D so here are B and E

/* Archbest in B */

main() {
  extern a, b, c, d;
  putchar (a); putchar (b); putchar (c); putchar (d); putchar ('!*n');
}

a 'arch' ;
b ' is ' ;
c 'the ' ;
d 'best' ;
# Archbest in E

println("Arch is the best!")

Who Knows? Who Cares? Who will remember anyway?

Offline

#146 2008-05-14 13:53:43

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: A script proclaiming Arch's superiority

After much work, I amassed this into an unofficially official website for the project: http://arch.yarrt.com

Offline

#147 2008-05-14 13:58:02

Susu
Member
From: Germany
Registered: 2005-11-11
Posts: 191
Website

Re: A script proclaiming Arch's superiority

Wow, this is...GREAT!


Album reviews (in german): http://schallwelle.filzo.de

Offline

#148 2008-05-14 13:59:07

the_glu
Member
Registered: 2008-05-11
Posts: 35

Re: A script proclaiming Arch's superiority

Barrucadu wrote:

After much work, I amassed this into an unofficially official website for the project: http://arch.yarrt.com

Hey, why my plugin is not in the lists ? tongue

Offline

#149 2008-05-14 14:08:00

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: A script proclaiming Arch's superiority

Ha, I applaud all your efforts in spreading the knowledge of Arch's superiority!

Offline

#150 2008-05-14 14:19:17

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: A script proclaiming Arch's superiority

the_glu wrote:
Barrucadu wrote:

After much work, I amassed this into an unofficially official website for the project: http://arch.yarrt.com

Hey, why my plugin is not in the lists ? tongue

I preferred to keep everything on there text-based, but I'll do what I did with the Piet implementation - just link to the file.

Added - along with a new Firefox category. If anyone wants to add something to the site, please do smile

Offline

Board footer

Powered by FluxBB