You are not logged in.

#301 2009-03-21 02:56:07

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

Re: A script proclaiming Arch's superiority

The only problem with that being that I don't know which code matches up to which language. =/ .


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

Offline

#302 2009-03-21 07:31:50

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

Re: A script proclaiming Arch's superiority


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

Offline

#303 2009-03-21 18:28:52

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

Re: A script proclaiming Arch's superiority

Alright, I'll get to work.

e:Here's my attempt. It works for me (en_US), but I don't really have the desire to try switching up my locale just to test it out.

lang = `locale|grep LANG|cut -c6-7`.chomp 
case lang
when "id"
    puts "Arch terbaik!"
when "eu"
    puts "Arch onena da!"
when "bn"
    puts "Arch shobcheye bhalo!"
when "zh"
    puts "Arch 是最牛逼的!"
when "cs"
    puts "Arch je nejlepší!"
when "cs"
    puts "Arch er bedst!"
when "de"
    puts "Arch ist das Beste!"
when "nl"
    puts "Arch is de beste!"
when "en"
    puts "Arch is the best!"
when "fil"
    puts "Mabuhay ang Arch!"
when "fr"
    puts "Arch est le meilleur!"
when "gl"
    puts "Arch é o mellor!"
when "el"
    puts "Το Arch είναι το καλύτερο!"
when "hi"
    puts "आर्ख सब से अच्छा है ।"
when "hu"
    puts "Az Arch a legjobb!"
when "ja"
    puts "アーチュが一番ですよ!"
when "nn"
    puts "Arch er best!"
when "pl"
    puts "Arch jest najlepszy!"
when "pt"
    puts "Arch é o melhor!"
when "quebecois"
    puts "Arch est le plus meilleure du monde!"
when "ru"
    puts "Арч - лучший!"
when "sr"
    puts "Arch je najbolji!"
when "sl"
    puts "Arch je najboljši!"
when "es"
    puts "¡Arch es la mejor!"
when "sv"
    puts "Arch är bäst!"
when "tr"
    puts "Arch en iyisidir!"
when "he"
    puts "ארצ' זה הטוב ביותר!"
else
    puts "Sorry, I don't know #{lang}. :("
end

Last edited by elmer_42 (2009-03-21 18:51:47)


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

Offline

#304 2009-03-21 19:50:40

Blue Peppers
Member
From: Newbury, UK
Registered: 2009-02-01
Posts: 178

Re: A script proclaiming Arch's superiority

Elven: Arch air si shaer!


Consistency is not a virtue.

Offline

#305 2009-04-15 17:39:00

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: A script proclaiming Arch's superiority

I just remapped my keyboard (physically, it is dvorak virtually)
It looks like this:

________________________
|A R C H L I N U X ' § , <|
|1 5 ` Z 3 - B E S T . ^   |
|W Y M F 2 4 J 6 7 8 9 0 |
|K Q + Å P D Ä G V O Ö  |
----------------------------

ARCHLINUX 15 ZE BEST
translated: archlinux is the best

bugfix, Q was missing.

Last edited by hatten (2009-04-15 17:49:00)

Offline

#306 2009-07-10 11:01:01

presario
Member
From: Tashkent, Uzbekistan
Registered: 2008-12-07
Posts: 57
Website

Re: A script proclaiming Arch's superiority

2 elmer_42:

PLease add uzbek (uz) language too!

"Arch eng zo'r!" (latin)
"Arch энг зўр!" (cyrillic)

Last edited by presario (2009-07-10 11:02:12)


Running ArchLinux on Compaq Presario v2000

Offline

#307 2009-09-11 01:37:18

superdav42
Member
Registered: 2009-01-07
Posts: 8
Website

Re: A script proclaiming Arch's superiority

Pig Latin: "Archway isway ethay estbay!"


Free cross platform games - Free games that will run in Windows, Linux and OS X.

My Homepage
Any Dog Breed

Offline

#308 2009-09-11 09:15:38

whacath
Member
Registered: 2009-05-26
Posts: 283

Re: A script proclaiming Arch's superiority

Whatabout in klingon!?
Or goa'uld?

KREE!!! QA'PLA!!!

Offline

#309 2009-12-28 23:12:31

MarcosRoriz
Member
Registered: 2009-04-04
Posts: 31

Re: A script proclaiming Arch's superiority

Didn't see any java swing version.

Heres one smile

ArchBest.java

import javax.swing.JOptionPane;

public class ArchBest {
    public static void main(String args[]) {
        JOptionPane.showMessageDialog(null, "Arch is the Best!");
        System.exit(0);
    }
}

Compile and Run

javac ArchBest.java
java ArchBest

swing.png

Offline

#310 2009-12-29 00:57:15

linkmaster03
Member
Registered: 2008-12-27
Posts: 269

Re: A script proclaiming Arch's superiority

Awesome project. Maybe we could get a LiveCD of this going.

Offline

#311 2010-04-14 19:45:41

schneida
Member
Registered: 2009-02-19
Posts: 76
Website

Re: A script proclaiming Arch's superiority

I know it has been a while but this thread really made me cry, so I somehow have to contribute too:

Here is a little operating system that can be written on a floppy disk (or booted with a vm (like qemu)):

 org 0x7C00 
 
    jmp 0x0000:start
    start:
                    
    cli             
    mov ax, 0x9000  ; Stack
    mov ss, ax      
    mov sp, 0       
    sti            
 
    ; Segment register
    mov ax, 0x0000
    mov es, ax
    mov ds, ax
 
    mov [bootdrv], dl
    
    mov ah, 0x02
    xor bx, bx
    xor dx, dx
    int 0x10
    
    mov cx, 0x7d0
    mov al, 0x20
    mov ah,0x0E
    mov bx,0x0007
    .clearscreen:
     int 0x10
    loop .clearscreen

    mov ah, 0x02
    xor bx, bx
    mov dx, 0x0B1B
    int 0x10

    mov si, messagebox1
    call putstr
    
    mov ah, 0x02
    xor bx, bx
    mov dx, 0x0C1B
    int 0x10
    
    mov si, messagebox2
    call putstr
    
    mov ah, 0x02
    xor bx, bx
    mov dx, 0x0D1B
    int 0x10
    
    mov si, messagebox3
    call putstr
 
    .never:
     hlt
    jmp .never
 
 
    bootdrv db 0
    messagebox1 db "| ~~~~~~~~~~~~~~~~~~~ |",0
    messagebox2 db "|  Arch is the Best!  |",0
    messagebox3 db "| ~~~~~~~~~~~~~~~~~~~ |",0
 
    putstr:
    lodsb             
    or al,al
    jz short putstrd  
 
    mov ah,0x0E
    mov bx,0x0007
    int 0x10
    jmp putstr
    putstrd:
    retn
 
    times 512-($-$$)-2 db 0
    dw 0AA55h

To compile it you need nasm: nasm -f bin archos.asm
and to test it with qemu: qemu -fda archos
and to write it on a floppy: dd if=archos of=/dev/fd0

Offline

#312 2010-04-15 08:12:47

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: A script proclaiming Arch's superiority

Flying Saxman wrote:

@moljac024: Made an german translation. Sorry, if i made any mistake, but I'm new to programming!

#!/bin/sh
/usr/bin/zenity --info --text "Bogen ist das am Besten!"

Epic translation.

The initial post would have been even funnier with [hidden] tags.

Last edited by demian (2010-04-15 08:18:27)


no place like /home
github

Offline

#313 2010-04-15 14:20:36

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: A script proclaiming Arch's superiority

Just for those not speaking/understanding German, "Bogen ist das am Besten" is sort of pidgin German saying "Arch/Bow/Curve is the at (the) best" wink

And yea, awesome thread.

Ogion


(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant

Offline

#314 2010-04-15 18:00:45

willxtreme
Member
Registered: 2010-01-07
Posts: 150
Website

Re: A script proclaiming Arch's superiority

#!/bin/sh
echo "Arch est la meilleure distribution de Linux"

Offline

#315 2010-04-15 18:44:56

Wilson Phillips
Member
From: Vicksburg, MS, USA
Registered: 2007-09-24
Posts: 70

Re: A script proclaiming Arch's superiority

Can we get this optimized for SMP. It would be sweet on my Core 2 Quad.


Guarantee does not cover shark bite, bear attack, or children under 5.

Offline

#316 2010-04-20 22:31:26

sam87
Member
From: down the rabbit hole
Registered: 2009-09-26
Posts: 141

Re: A script proclaiming Arch's superiority

will this be visible on my netbook's 1024x600 screen?please someone, help..am a newbie to all this sad


what i cannot build, i do not understand

Offline

#317 2010-04-21 10:00:25

crayxt
Member
Registered: 2008-12-19
Posts: 37

Re: A script proclaiming Arch's superiority

Added Kazakh translation and Lua code


Всем выйти из Сумрака!!!

Уважение - это когда чтобы поприветствовать человека вытаскиваешь оба наушника.
my blog

Offline

#318 2010-04-21 12:18:59

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

Re: A script proclaiming Arch's superiority

perl -e '$_="arch";(print$_.$^O),$_=~s$arch$is$;printf(" %s the",$_);printf(" %s!\n",$^O='best');'

Offline

#319 2010-04-22 08:20:37

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,927
Website

Re: A script proclaiming Arch's superiority

Autohotkey:

+!a:: MsgBox Arch is the best!

Now ewerytime you press Alt-Shift-A, you get a shiny message! (in Windows that is...)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#320 2010-04-23 03:16:18

maxexcloo
Member
Registered: 2009-10-14
Posts: 177

Re: A script proclaiming Arch's superiority

schneida wrote:

I know it has been a while but this thread really made me cry, so I somehow have to contribute too:

Here is a little operating system that can be written on a floppy disk (or booted with a vm (like qemu)):

 org 0x7C00 
 
    jmp 0x0000:start
    start:
                    
    cli             
    mov ax, 0x9000  ; Stack
    mov ss, ax      
    mov sp, 0       
    sti            
 
    ; Segment register
    mov ax, 0x0000
    mov es, ax
    mov ds, ax
 
    mov [bootdrv], dl
    
    mov ah, 0x02
    xor bx, bx
    xor dx, dx
    int 0x10
    
    mov cx, 0x7d0
    mov al, 0x20
    mov ah,0x0E
    mov bx,0x0007
    .clearscreen:
     int 0x10
    loop .clearscreen

    mov ah, 0x02
    xor bx, bx
    mov dx, 0x0B1B
    int 0x10

    mov si, messagebox1
    call putstr
    
    mov ah, 0x02
    xor bx, bx
    mov dx, 0x0C1B
    int 0x10
    
    mov si, messagebox2
    call putstr
    
    mov ah, 0x02
    xor bx, bx
    mov dx, 0x0D1B
    int 0x10
    
    mov si, messagebox3
    call putstr
 
    .never:
     hlt
    jmp .never
 
 
    bootdrv db 0
    messagebox1 db "| ~~~~~~~~~~~~~~~~~~~ |",0
    messagebox2 db "|  Arch is the Best!  |",0
    messagebox3 db "| ~~~~~~~~~~~~~~~~~~~ |",0
 
    putstr:
    lodsb             
    or al,al
    jz short putstrd  
 
    mov ah,0x0E
    mov bx,0x0007
    int 0x10
    jmp putstr
    putstrd:
    retn
 
    times 512-($-$$)-2 db 0
    dw 0AA55h

To compile it you need nasm: nasm -f bin archos.asm
and to test it with qemu: qemu -fda archos
and to write it on a floppy: dd if=archos of=/dev/fd0

Someone needs to port Doom to it.
A new OS without Doom is not a good OS.

Offline

#321 2010-08-02 20:28:10

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: A script proclaiming Arch's superiority

I am Just Another Lazy Perl Hacker and I was bored while fixing my daughter's windoze box (sigh) so I wrote this to keep my spirits up ;^)

I began by just doing a localized version but I got lazy when it came to stuff like generating .pos and such. So I just hacked it together. In doing so, I realized that what makes Arch the best is having so many ways to say it, so say it loud and proud!

Oh, and please note that this program will be a good test of your terminal's current level of Unicode support.

#!/usr/bin/perl
use strict;
use warnings;

use POSIX qw(locale_h);
use locale;    # for locale detection
use utf8;    # unicode source code

binmode STDOUT, ":encoding(UTF-8)";    # print unicode

# These would be easier to produce as opposed to string literals, besides, what
# about octal and stuff like mime base 64 ... not to mention the lack of XML.
# Binary ASCII => 0100000101110010011000110110100000100000011010010111001100100000011101000110100001100101001000000110001001100101011100110111010000100001
# Hexidecimal ASCII => '4172636820697320746865206265737421'

# is el right for Greek? It's supposed to be Modern Greek
# how would one indicate an Ancient Chinese locale?
# I just made up fr_CA
# Uzbeck (uz) -- I went with cyrillic
# "Arch eng zo'r!" (latin)
# "Arch энг зўр!" (cyrillic)

# reversed => !tseb eht si hcrA
# haxor => 'Arch 15 7h3 b357!',
# Morse Code => q|..- -... ..- -. - ..- / .. ... / - .... . / -... . ... -|,
# Braille => q|⠁⠗⠉⠓⠀⠊⠎⠀⠮⠀⠃⠑⠎⠞⠲|,

my %AITB = (
    ar => 'ارتش هو الأفضل',
    bg => 'Арч е най-добрия!',
    bn => 'Arch shobcheye bhalo!',
    cs => 'Arch je nejlepší!',
    cs_MO => 'Arch je nejbetélnější!', # Hantec, dunno a real code
    da => 'Arch er bedst!',
    de => 'Arch ist das Beste!',
    en => 'Arch is the best!',
    en_AU => 'Arch is fair dinkum, mate!',
    en_GB => 'Arch is simply spiffing.',
    'en_US@piglatin' => "Archway isway ethay estbay!", # inkscape says so, lol
    es => '¡Arch es el mejor!',
    es_MX => '¡Arch es padrísimo!',
    eu => 'Arch onena da!',
    fi => 'Arch on paras!',
    fil => 'Mabuhay ang Arch!',
    fr => 'Arch est le meilleur!',
    fr_CA => 'Arch est le plus meilleure du monde!', # Québécois, is fr_CA right?
    el => 'Το Arch είναι το καλύτερο!',
    gl => 'Arch é o mellor!',
    he => "ארצ' זה הכי אחי!",
    hi => 'आर्ख सब से अच्छा है ।',
    hu => 'Az Arch a legjobb!',
    id => 'Arch terbaik!', # Bahasa Indonesia
    ja => 'Archが一番ですよ!',
    kk => 'Арч - ең жақсы!',
    lv => 'Arch ir labākais!',
    mr => 'आर्च सगळ्यात भारी आहे!',
    nl => 'Arch is de beste!',
    no => 'Arch er best!',
    pl => 'Arch jest najlepszy!',
    pt => 'Arch é o melhor!',
    ro => 'Аrch e cel mai bun!',
    ru => 'Арч - лучший!',
    se => 'Arch är bäst!',
    sl => 'Arch je najboljši!',
    sr => 'Arch je najbolji!',
    ta => 'ஆர்ச்சே சிறந்தது!',
    'tr' => 'Arch en iyisidir!',
    uz => 'Arch энг зўр!',
    zh => 'Arch 最棒了!',
    'zh_??' => '阿祺,盡善矣。', # Ancient Chinese, dunno a code
);

my $lang = shift || get_lang() || 'en'; # the original was English

print "$_\t$AITB{$_}\n" for sort keys %AITB;
defined $AITB{$lang} and print $AITB{$lang}, "\n";

sub get_lang {
    my $loc = setlocale(LC_CTYPE);
    $loc or return undef;
    defined $AITB{$loc} and return $loc; # Why not support en_US@piglatin
    my ($l5, $l2) = $loc =~ /^((\w\w)_\w\w)/;
    return $l5 if defined $AITB{$l5};
    return $l2 if defined $AITB{$l2};
    return undef;
}

PS: I forgot to mention that I added es_MX

Last edited by rowdog (2010-08-02 20:38:23)

Offline

#322 2010-08-02 20:57:39

korpenkraxar
Member
Registered: 2006-04-02
Posts: 123

Re: A script proclaiming Arch's superiority

@rowdog & @schneida: :-D

Offline

#323 2010-08-02 22:05:13

SolomonKull
Member
From: The Internet
Registered: 2010-08-02
Posts: 31

Re: A script proclaiming Arch's superiority

I've ported this to HTML5:

<!doctype html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>Arch is the best!</title>
  </head>
  <body>
    <p>Arch is the best!</p>
  </body>
</html>

I also ported this to LolCode:

HAI
CAN HAS STDIO?
VISIBLE "Arch is the best!"
KTHXBYE

Last edited by SolomonKull (2010-08-02 22:06:42)

Offline

#324 2010-08-16 20:07:01

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: A script proclaiming Arch's superiority

I have successfully ported it to the Go programming language:

package main
 
import "fmt"
 
func main() {
    fmt.Println("Arch is the best!")
}

All bug reports are appreciated.

Offline

#325 2010-08-16 20:44:13

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: A script proclaiming Arch's superiority

itsbrad212 wrote:

I have successfully ported it to the Go programming language:

package main
 
import "fmt"
 
func main() {
    fmt.Println("Arch is the best!")
}

All bug reports are appreciated.

Awesome. I've added concurrency:

package main

import (
  "fmt"
  "strings"
)

func proclaim(c chan<- string) {
  for _, w := range strings.Fields("Arch is the best!") {
    c <- w
  }
  close(c)
}

func Proclamation() <-chan string {
  c := make(chan string)
  go proclaim(c)
  return c
}

func main() {
  for w := range Proclamation() {
    fmt.Printf("%s ", w)
  }
  fmt.Println()
}

Offline

Board footer

Powered by FluxBB