Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[DUP] [OT] Zeig mir deine virtuelle Penislänge
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
thrashed
Apprentice
Apprentice


Joined: 01 Sep 2004
Posts: 294

PostPosted: Sat Nov 27, 2004 12:26 pm    Post subject: [DUP] [OT] Zeig mir deine virtuelle Penislänge Reply with quote

etwas off topic, aber wenn es "show me your desktop" + konsorten threads gibt, hat dieser thread auch seine Berechtigung ;)

hier das script:
Code:
#!/usr/bin/perl -w
# Based on http://www.hadess.net/files/stuff/vpenis.c
# But I made it logarithmic.

# Currently only for linux

use strict;

my $uptime   = "uptime";
my $free   = "free";
my $df      = "df";
my $cpu_info   = "/proc/cpuinfo";

my $size = 0;

my @uptime = `uptime` or die "Could not run $uptime\n";
for (@uptime) {
    $size += $1 / 10 if /(\d+) day/;
}

open(my $fh, "<", $cpu_info) || die "Could not open $cpu_info: $!";
while (<$fh>) {
    $size += $1 / 30 if /cpu MHz.*:\s+(\d+(?:\.\d+)?)/i;
}

my @free = `free` or die "Could not run $free\n";
for (@free) {
    $size += $1 / 1024 / 3 if /^Mem\S*\s+\S+\s+(\d+)/i;
}

my @df = `df -P -k -x nfs` or die "Could not run $df\n";
shift @df;
for (@df) {
    my ($fs, $blocks) = split;
    $blocks *= 2 if $fs =~ m!/scsi|/sd!;
    $size += $blocks/1024/750;
}

# my $result = 7+$size/10;   # Original formula
my $result = 7+2*log(1+$size);
printf "Your virtual penis size is %.1f centimeters (%.1f inch)\n", $result, $result / 2.54;


mein ergebnis vom desktop rechner:
Code:
 $ perl vpenis.pl
Your virtual penis size is 18.4 centimeters (7.3 inch)
Back to top
View user's profile Send private message
Scruffy
Tux's lil' helper
Tux's lil' helper


Joined: 08 Nov 2004
Posts: 97
Location: 127.0.0.1

PostPosted: Sat Nov 27, 2004 1:05 pm    Post subject: Reply with quote

Your virtual penis size is 17.8 centimeters (7.0 inch)
_________________
Schedule conflict
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Nov 27, 2004 1:08 pm    Post subject: Reply with quote

Sowas hatten wir schon mal.
:arrow: https://forums.gentoo.org/viewtopic.php?t=218695
Back to top
View user's profile Send private message
Anarcho
Advocate
Advocate


Joined: 06 Jun 2004
Posts: 2970
Location: Germany

PostPosted: Sat Nov 27, 2004 1:08 pm    Post subject: Reply with quote

Also mein Server:

Your virtual penis size is 20.5 centimeters (8.1 inch)

und meine Workstation:

Your virtual penis size is 19.4 centimeters (7.6 inch)

Aber das wird ja noch mehr, da die uptime drinne ist...
_________________
...it's only Rock'n'Roll, but I like it!
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum