You are not logged in.

#251 2008-11-11 14:09:44

RobertoVanto
Member
From: Chiampo(VI) - Italy
Registered: 2008-09-04
Posts: 32
Website

Re: A script proclaiming Arch's superiority

Italian version: "Arch è la migliore!"


Love, and do what thou wilt  - St. Augustine of Hippo

Offline

#252 2008-11-11 14:47:45

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: A script proclaiming Arch's superiority

Updated for the new Italian translation, and I'm working on getting a Spanish translation.

# 11 Nov 06:44:53 PST
# Italian tranlsation fixed
puts "Pick a language (or type quit to quit):"
%w(english spanish chinese german greek dutch italian australian norwegian swedish 4chan valley portuguese lol russian).each do |i|
    puts i.capitalize
end
lang = gets.chomp.downcase
case lang
    when "english"
        puts "Arch is the best!"
    when "chinese"
        puts "Write it in Chinese!"
    when "german"
        puts "Arch ist das beste!"
    when "greek"
        puts "Το Arch είναι το καλύτερο!"
    when "dutch"
        puts "Arch is de beste!"
    when "italian"
        puts "Arch è la migliore!"
    when "australian"
        puts "Arch, you little ripper! Mate, that's fully sick, tops!"
    when "norwegian"
        puts "Arch er best!"
    when "swedish"
        puts "Arch är bäst!"
    when "4chan"
        puts "i liek arch, eh is a pretty cool guy! eh has kiss method"
        puts "and doesn't afraid of anything!"
    when "valley"
        puts "Arch's not the best!? As if, I'm so sure!"
    when "portuguese"
        puts "Arch Linux é o melhor!"
    when "lol"
        puts "lulz, n00b - arch is teh pwnz0r"
    when "russian"
        puts "Арч лучший!"
    when "quit"
        puts "May the Arch be with you."
        exit
    else
        puts "Unknown language \"#{lang}\""
end

Last edited by elmer_42 (2008-11-12 03:10:17)


[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#253 2008-11-11 23:26:08

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: A script proclaiming Arch's superiority

> archisthebestpy @ http://vminch.googlepages.com/archisthebest!
:: 3.0alpha1 is out!

Updates:
- new patches
- code restructure
- less documentation
- main() runs in O(1) (it used to be O(1), but that *felt* a little laggy so of course we reimplemented it).

Developers wanted!

Last edited by vkumar (2008-11-11 23:26:55)


div curl F = 0

Offline

#254 2008-11-11 23:54:31

zukka
Member
From: Bologna Italy
Registered: 2006-06-27
Posts: 26

Re: A script proclaiming Arch's superiority

@vkumar
I hate runtime exceptions... I'd change the main function like this:

def main():   
   language=None
   while not language: 
    try:
        language = int(raw_input(menu))
    except ValueError:
        print "Please stick to numbers >_>"
   print axn.get(language, "You fail at picking numbers -_-.")

seems more robust in this way big_smile

Offline

#255 2008-11-12 00:02:53

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: A script proclaiming Arch's superiority

@zukka: Innovative, but - KISS!

dict.get() normally takes 1 argument (a key), but can also take another (a message).
In case your specified key is not in the dict, it will print your message.

The present version accomplishes the same thing smile.

def main():
   language = int(raw_input(menu)) # cast as int
   print axn.get(language, "You fail at picking numbers -_-.") # latent error handling

and -

What do you guys think about a live cd? I mean, everbody should try this in a safe environment without harming his carefully optimized windows installation, so a live cd is a must in my eyes...maybe we can think about an multi-language graphical installer with some eye candy?

+1. Will contribute anything I can!

Last edited by vkumar (2008-11-12 00:05:07)


div curl F = 0

Offline

#256 2008-11-12 00:19:30

zukka
Member
From: Bologna Italy
Registered: 2006-06-27
Posts: 26

Re: A script proclaiming Arch's superiority

vkumar wrote:

@zukka: Innovative, but - KISS!

dict.get() normally takes 1 argument (a key), but can also take another (a message).
In case your specified key is not in the dict, it will print your message.

I know, or better , I studied it after i saw it in the code and I'll probaly use it when I'll have the opportunity wink .
My "try" was there to trap the exception while converting a non numerical input string to int.
I wrote it because the program crashed on me the first time I used it sad .
I must admit that at the time I was not so good at using this great program smile .

Here's the error I got

:: Enter a number:
a
Traceback (most recent call last):
  File "./archisthebest.py", line 68, in <module>
    main() 
  File "./archisthebest.py", line 64, in main
    language = int(raw_input(menu))
ValueError: invalid literal for int() with base 10: 'a'

Offline

#257 2008-11-12 02:55:47

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: A script proclaiming Arch's superiority

ahhckk! A bug!
I was hoping that int() would run ord() on non-integer characters.

2 solutions;

lang = raw_input(menu)
nums = map(str, range(0, 10))
for char in lang:
  if char not in nums:
      print "stop wasting your time"
language = int(lang)

or the one you posted.

If you wanted, you could run ord() on each char and then % the resulting number by 10.

--
I must ask though - why on Earth would you enter 'a' after you read "Enter a number:"?
I assumed that nobody would..


div curl F = 0

Offline

#258 2008-11-12 03:10:57

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: A script proclaiming Arch's superiority

I've added a Spanish translation, straight from a native speaker. Arch es el mejor!

# 11 Nov 06:44:53 PST
# Italian tranlsation fixed
# 11 Nov 19:07:14
# Added Spanish translation
puts "Pick a language (or type quit to quit):"
%w(english spanish chinese german greek dutch italian australian norwegian swedish 4chan valley portuguese lol russian).each do |i|
    puts i.capitalize
end
lang = gets.chomp.downcase
case lang
    when "english"
        puts "Arch is the best!"
    when "spanish"
        puts "Arch es el mejor!"
    when "chinese"
        puts "Write it in Chinese!"
    when "german"
        puts "Arch ist das beste!"
    when "greek"
        puts "Το Arch είναι το καλύτερο!"
    when "dutch"
        puts "Arch is de beste!"
    when "italian"
        puts "Arch è la migliore!"
    when "australian"
        puts "Arch, you little ripper! Mate, that's fully sick, tops!"
    when "norwegian"
        puts "Arch er best!"
    when "swedish"
        puts "Arch är bäst!"
    when "4chan"
        puts "i liek arch, eh is a pretty cool guy! eh has kiss method"
        puts "and doesn't afraid of anything!"
    when "valley"
        puts "Arch's not the best!? As if, I'm so sure!"
    when "portuguese"
        puts "Arch Linux é o melhor!"
    when "lol"
        puts "lulz, n00b - arch is teh pwnz0r"
    when "russian"
        puts "Арч лучший!"
    when "quit"
        puts "May the Arch be with you."
        exit
    else
        puts "Unknown language \"#{lang}\""
end

[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#259 2008-11-12 03:30:04

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: A script proclaiming Arch's superiority

...and the Thai translation
อาชดีทีสุดี

edit: I'm still learning Thai so this may not be entirely correct smile

Last edited by sand_man (2008-11-12 03:33:05)


neutral

Offline

#260 2008-11-12 06:42:52

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

Re: A script proclaiming Arch's superiority

vkumar wrote:

I must ask though - why on Earth would you enter 'a' after you read "Enter a number:"?
I assumed that nobody would..

Because "A" is the best letter. Doh.

Offline

#261 2008-11-12 11:44:27

Rydgel
Member
From: France
Registered: 2008-09-04
Posts: 166
Website

Re: A script proclaiming Arch's superiority

French one :
Arch est le meilleur !

smile

Offline

#262 2008-11-12 14:58:34

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: A script proclaiming Arch's superiority

I've added the French translation

# 11 Nov 06:44:53 PST
# Italian tranlsation fixed
# 11 Nov 19:07:14
# Added Spanish translation
# 11 Nov 06:56:44
# Added French translation
puts "Pick a language (or type quit to quit):"
%w(english spanish french chinese german greek dutch italian australian norwegian swedish 4chan valley portuguese lol russian).each do |i|
    puts i.capitalize
end
lang = gets.chomp.downcase
case lang
    when "english"
        puts "Arch is the best!"
    when "spanish"
        puts "Arch es el mejor!"
    when "french"
        puts "Arch est le meilleur!"
    when "chinese"
        puts "Write it in Chinese!"
    when "german"
        puts "Arch ist das beste!"
    when "greek"
        puts "Το Arch είναι το καλύτερο!"
    when "dutch"
        puts "Arch is de beste!"
    when "italian"
        puts "Arch è la migliore!"
    when "australian"
        puts "Arch, you little ripper! Mate, that's fully sick, tops!"
    when "norwegian"
        puts "Arch er best!"
    when "swedish"
        puts "Arch är bäst!"
    when "4chan"
        puts "i liek arch, eh is a pretty cool guy! eh has kiss method"
        puts "and doesn't afraid of anything!"
    when "valley"
        puts "Arch's not the best!? As if, I'm so sure!"
    when "portuguese"
        puts "Arch Linux é o melhor!"
    when "lol"
        puts "lulz, n00b - arch is teh pwnz0r"
    when "russian"
        puts "Арч лучший!"
    when "quit"
        puts "May the Arch be with you."
        exit
    else
        puts "Unknown language \"#{lang}\""
end

[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#263 2008-11-14 15:28:28

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 714

Re: A script proclaiming Arch's superiority

java?
public class Best {

    public static void main (String args[]) {       
    System.out.println("Arch is the Best!")   
    }
}

Last edited by jelly (2008-11-14 15:28:44)

Offline

#264 2008-11-14 20:57:26

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: A script proclaiming Arch's superiority

jelly wrote:

java?
public class Best {

    public static void main (String args[]) {       
    System.out.println("Arch is the Best!"   
    }
}

Just a minor bugfix on the java version:

public class Best {

    public static void main (String args[]) {        
    System.out.println("Arch is the Best!")    
    }
}

Offline

#265 2008-11-15 00:07:28

testube_babies
Member
From: 127.0.0.1
Registered: 2007-06-26
Posts: 115

Re: A script proclaiming Arch's superiority

dmz wrote:
jelly wrote:

java?
public class Best {

    public static void main (String args[]) {       
    System.out.println("Arch is the Best!"   
    }
}

Just a minor bugfix on the java version:

public class Best {

    public static void main (String args[]) {        
    System.out.println("Arch is the Best!")    
    }
}

Another bugfix release:

public class Best {

    public static void main (String args[]) {        
    System.out.println("Arch is the Best!");    
    }
}

Offline

#266 2008-11-15 01:00:48

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: A script proclaiming Arch's superiority

Quite a buggy app you've got there, Java devs.


[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#267 2008-11-15 05:16:41

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: A script proclaiming Arch's superiority

mmhmm.


div curl F = 0

Offline

#268 2008-11-15 18:03:24

Blµb
Member
Registered: 2008-02-10
Posts: 224

Re: A script proclaiming Arch's superiority

java... what do you expect?

nexuiz, quake, wsw and other players can join a game using this config:

set name "Arch is the best!"
bind MOUSE1 "say ^3Arch ^2is the ^3best^2!!!"
bind MOUSE2 "say ^2Arch ^3is the ^2best^3!!!"

You know you're paranoid when you start thinking random letters while typing a password.
A good post about vim
Python has no multithreading.

Offline

#269 2008-11-15 21:23:09

farvardin
Member
Registered: 2008-09-03
Posts: 120
Website

Re: A script proclaiming Arch's superiority

It's a very really hilarous and crazy topic! Do you think "Arch is the Best!" could be turned ISO 9000 ?


I've made a version in Inform 7, a system in natural language for creating textual adventures.

"Arch is the best" by Farvardin.

My Room is a room. The description of My Room is "The bedroom of a geek.".

The computer is a switched off device in My Room. 
The description of computer is "You've just uninstalled Ubuntu from this computer to switch to the best linux distro ever.".

Corridor is outside from My Room. 

After switching on computer:
    say "Arch is the Best!".

After switching off computer:
    say "Arch was still the Best today!";
    continue the action.
    
Instead of going outside when the computer is switched on, say "You can't leave such a good Linux distribution when there is still something on the screen...".

test me with "examine computer / turn on computer/go out/turn off computer/go out"

Inform 7 turns this code into a file which can be read by a virtual machine, the z-machine (like the one used by Zork).

You can try an interpreter in java:
http://ifiction.free.fr/index.php?id=je … &terp=zmpp
The focus may not work well with firefox on linux (even if archlinux is the best...).
There is a java web start for using the interpreter outside the browser:
http://ifiction.free.fr/zmppjnlp.php?j=038

and even a flash version:
http://ifiction.free.fr/index.php?id=jeuflash&j=038


NOTE: Beware, this page (and maybe others) is spammed:
http://arch.yarrt.com/implementations/BASIC

Last edited by farvardin (2008-11-15 21:26:54)

Offline

#270 2008-11-15 22:43:01

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: A script proclaiming Arch's superiority

@vkumar: Dude, where's my upside down cat (.-.)? I just saw this funny looking cat (-_-) sitting in its place.

This isn't cool, this isn't cool at all. sad

Offline

#271 2008-11-23 05:44:54

cameron122000
Member
Registered: 2008-03-02
Posts: 30

Re: A script proclaiming Arch's superiority

lol

Last edited by cameron122000 (2009-09-17 02:11:05)

Offline

#272 2008-11-23 21:53:59

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: A script proclaiming Arch's superiority

@vkumar: Dude, where's my upside down cat (.-.)? I just saw this funny looking cat (-_-) sitting in its place.
This isn't cool, this isn't cool at all.

Oh noes!
I'm not going to risk a fork! Fixing it right away!
Also, announcing that the project has MOVED (yes, again).

http://pigdeth.co.nr/Arch/archisthebest.html

We have our own server (well, we have space on mine).

Contributions still welcome.


div curl F = 0

Offline

#273 2008-11-23 22:03:32

vkumar
Member
Registered: 2008-10-06
Posts: 166

Re: A script proclaiming Arch's superiority

@cameron122000: seriously? Perhaps you haven't seen the *real* truth yet.


div curl F = 0

Offline

#274 2008-11-27 11:08:18

Exitium
Member
From: Helsinki, Finland
Registered: 2008-08-20
Posts: 202

Re: A script proclaiming Arch's superiority

Finnish: Arch on paras!
----
I lol'd. big_smile

Last edited by Exitium (2008-11-27 11:08:32)

Offline

#275 2008-11-29 03:46:46

l33tunderground
Banned
Registered: 2007-05-09
Posts: 103

Re: A script proclaiming Arch's superiority

I hate to be a downer on this magificent effort and brilliant showmanship of Arch superiority, but some noobish bot is spamming our Unofficially Official Project Website!

Surely this is a concerted attempt by users of other distributions to try and undermine our power by offering us great offers on "silver and black metallic dress" "flat wire for making jewelry" and "flowers pacific gold mustard."

We must let them know that we, the best users IN THE  WORLD will not be distracted by such things.

Offline

Board footer

Powered by FluxBB