LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-30-2016, 08:26 AM   #271
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Quote:
Originally Posted by GazL View Post
Chance? These dice are loaded! (just like the gun)

$RANDOM, returns 0-32767, or 32768 discreet values, which is not evenly divisible by 6, so both 0 and 1 will have an additional chance of occurring over values 2-5. That's a 16.669% chance of shooting yourself in the head. I'm not playing at your casino!


P.S.

Do you feel lucky, PUNK?
Code:
test@ws1:~$ (( $RANDOM % 6 == 0 )) && echo 'BANG!' || echo 'click'
BANG!
Glad I didn't play for real.
It's still pretty dang close to a 1/6 chance with a simple shell command. I found a script online that does 1,000,000 runs of it and produces an average. Mine was a 1667.9633 every 10,000 (16.67963% average of bang). Statistically, that's close enough to a 1/6 chance (16.66667%).

Shell script:

Code:
#!/bin/bash

for c in {1..100}
do
rm bashrand
for i in {1..10000}
do
[ $[ $RANDOM % 6 ] == 0 ] && echo bang >> bashrand || echo click >> bashrand
done
cat bashrand | grep bang | wc -l >> numbers
done
perl -lane '$a+=$_ for(@F);$f+=scalar(@F);END{print "ave: ".$a/$f}' numbers
Another "fun" one is to take turns with friends and have each run the below as root on their system. First system to go down loses.

Code:
dd if=/dev/random of=/dev/kmem count=1 bs=1 seek=$RANDOM
NOTE: This replaces a random section of your memory with a random number. This could do nothing, crash an application, cause a kernel panic, or cause filesystem corruption, so be wary if you want to play...
 
Old 04-30-2016, 09:50 AM   #272
un1x
Member
 
Registered: Oct 2015
Posts: 645

Rep: Reputation: Disabled
attention whore (OP) !

Quote:
After 23 years, I am considering abandoning slackware
 
1 members found this post helpful.
Old 04-30-2016, 10:11 AM   #273
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Per the rules.
Quote:
Do not post any messages that are obscene, vulgar, sexually-orientated, hateful, threatening, hostile or insulting.
Personal attacks on others will not be tolerated.

Flame Wars will not be tolerated.

Do not post if you do not have anything constructive to say in the post.

When posting in an existing thread, ensure that what you're posting is on-topic and relevant to the thread. If the content of your post will interfere with the current discussion, you should start a new thread.
If members do not post anything on-topic to the thread it will be closed.
 
1 members found this post helpful.
Old 04-30-2016, 12:14 PM   #274
blancamolinos
Member
 
Registered: Mar 2011
Distribution: Slackware
Posts: 109

Rep: Reputation: 70
Volkerdi said:

Quote:
I couldn't even reproduce the bug here, for what it's worth. Anyway, stop being such a blancamolinos (I assume this means "obsessive irrational whiner" or something like that).

in this situation I can only say .....

Supercalifragilisticexpialidocious
 
Old 04-30-2016, 01:26 PM   #275
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
Quote:
Originally Posted by blancamolinos View Post
in this situation I can only say .....

Supercalifragilisticexpialidocious
Oh thanks, now I have an earworm.
 
Old 04-30-2016, 02:45 PM   #276
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by PrinceCruise View Post
I just have an idea who John Kerry is but I don't understand the reference. I'm not into US political scenario much, India's keeping me busy already.
I'm one of those We Slackers by the way, however a debate has already been conducted in here if you noticed and so much for the reasoned arguments that the BDFL had to mark his presence, so what more are you expecting here?
blancamolinos might have had a point when he started complaining but not anymore with his too modern argument. I sure see anything after that as trolling.

Regards.
Hello and thank you for responding. I'm not using John Kerry as some champion or even remarking on his abilities or integrity. It's just that whether from his own mind or his advisers, but during his campaign some very scurrilous TV commercials and Web articles were launched besmirching his military record in Vietnam. Though later the attacks were shown to be fabricated lies, Kerry's choice was to "not wrestle with a pig" and "take the high road" lending the attacks no credibility...in theory.

However that he didn't fight them at all hurt him very badly by keeping them around longer and creating doubt. He should have at least mentioned them and defended himself if not demonstrating his leadership by squashing it and possibly indicting the liars. Instead it looked like weakness to allow unsubstantiated claims go unquestioned, unopposed. They could easily have been sued for Libel and Defamation of Character and he would have appeared strong and decisive and standing tall for Truth. Instead he showed he is not a fighter and it was part of what killed his chances.

If you want a citation here is one SwiftBoat Affair

Last edited by enorbet; 04-30-2016 at 03:04 PM.
 
Old 04-30-2016, 02:52 PM   #277
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Quote:
Originally Posted by ReaperX7 View Post
John Kerry is good at opening his mouth, but when things come out of it, nothing makes sense.
and all the other political commenters who missed the point.

I'm saddened that my response was apparently not clear enough to set off this OT foray. Hopefully I've now made it crystal clear it was about allowing lies and defamation of character, however unfounded, to stay unopposed. It was most definitely NOT about what anyone thinks of John Kerry, or politics, only the blatant lies about his service going unopposed. He thought he was taking "the high road" but it backfired badly. "One should not suffer fools" is the point and the lesson. The very fact that at least 2 posts recommend or applaud the concept of executing anyone based on speech and /or propaganda proves my point which is Trolls must be exposed quickly and directly...not completely ignored as if they will just go away.

Last edited by enorbet; 04-30-2016 at 03:01 PM.
 
Old 04-30-2016, 03:20 PM   #278
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,607

Rep: Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105
This thread has now gone wildly off-topic, with multiple posts breaking a variety of LQ rules (in many cases by long time members who should know better). Please keep future posts on topic and civil. Failure to do so will result in infractions/temporary bans as appropriate, or if the thread simply can't get back on topic then thread closure. Thank you.

--jeremy
 
1 members found this post helpful.
Old 04-30-2016, 05:50 PM   #279
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
ping Jeremy
I think we all recovered nicely. Don't you agree? I apologized for apparently not being clear enough that caused misinterpretation (and a few PMs to explain to me) that was the catalyst for the brief political burst. It seemed to die down some and then hopefully my follow up posts made it abundantly clear that it was a social action example, not a political endorsement. Then it seems to have stopped altogether and people got conciliatory and friendly again. Isn't that what adults do with a misunderstanding?

FWIW I belong to a dozen forums and I consider this one, LQN, the best moderated in terms of even-handed fairness and restraint which seems to allow the freedom to resolve issues like adukts are supposed to with minimal personal attacks and apologies for the few that occur. I honestly hope you are proud of the sophisticated balance you have achieved. Frankly, I think this thread, an explosive thread title from the start, should stand as a lesson to other forums as to how enlightened management tends to engender civilized behavior.

I'm posting here to make a point of and to demonstrate the appreciation and respect we should all have for each other in any thread. Thanks for hearing me out.
 
1 members found this post helpful.
Old 04-30-2016, 05:54 PM   #280
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by jeremy View Post
This thread has now gone wildly off-topic, with multiple posts breaking a variety of LQ rules (in many cases by long time members who should know better). Please keep future posts on topic and civil. Failure to do so will result in infractions/temporary bans as appropriate, or if the thread simply can't get back on topic then thread closure. Thank you.

--jeremy
Kindly delete enobert's last two posts.

I, as it so happens, have very strong opinions upon Mr Kerry and would absolutely LOVE to expound upon them.

They are in opposition to enobert's opinions. They also have nothing to do with Slackware.

You can delete this post while you are at it.
 
1 members found this post helpful.
Old 04-30-2016, 05:54 PM   #281
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by enorbet View Post
ping Jeremy
I think we all recovered nicely. Don't you agree? I apologized for apparently not being clear enough that caused misinterpretation (and a few PMs to explain to me) that was the catalyst for the brief political burst. It seemed to die down some and then hopefully my follow up posts made it abundantly clear that it was a social action example, not a political endorsement. Then it seems to have stopped altogether and people got conciliatory and friendly again. Isn't that what adults do with a misunderstanding?

FWIW I belong to a dozen forums and I consider this one, LQN, the best moderated in terms of even-handed fairness and restraint which seems to allow the freedom to resolve issues like adukts are supposed to with minimal personal attacks and apologies for the few that occur. I honestly hope you are proud of the sophisticated balance you have achieved. Frankly, I think this thread, an explosive thread title from the start, should stand as a lesson to other forums as to how enlightened management tends to engender civilized behavior.

I'm posting here to make a point of and to demonstrate the appreciation and respect we should all have for each other in any thread. Thanks for hearing me out.
You disgusting scrote.
 
Old 04-30-2016, 06:58 PM   #282
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,811

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
ping Richard Cranium - Nowhere did I give an opinion on Mr. Kerry. The only thing even close to opinion is whether or not Swift Boat lied and I cited Wikipedia as one of many reputable sources that state they accusations were lies, backed up by virtually every man who served with Kerry. It is entirely well documented after the damage was done. Exactly my point. You, Sir, are sadly mistaken. For those who haven't considered it, why don't you explain your nickname instead of acting like one?

Once again my post was in response to "Don't feed the trolls" and I was remarking how injurious that stance can be, pertinent to this thread. I frankly can't imagine what I said that you quoted in it's entirety that would elicit such an ignoble response. Are apologies and explanations disgusting to you? IMHO if my posts are worthy of being deleted then so is the entire thread as inflammatory.

If you wish to expound on political views there is a sub-section for that. Kindly go there and do what you will, but be prepared to back up any claims with reputable documentation.

Last edited by enorbet; 04-30-2016 at 07:05 PM.
 
1 members found this post helpful.
Old 04-30-2016, 07:10 PM   #283
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
As all the cool kids say, "In b4 the lock."

I too would like to see this thread return to discussing why to leave Slackware or not, but I fear it may be beyond saving.

Last edited by montagdude; 04-30-2016 at 07:12 PM.
 
Old 04-30-2016, 08:51 PM   #284
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by montagdude View Post
As all the cool kids say, "In b4 the lock."

I too would like to see this thread return to discussing why to leave Slackware or not, but I fear it may be beyond saving.
After (now - 2004) years, I am considering abandoning slackware.
But is the reason really important? :^)

--
Best regards,
Andrzej Telszewski
 
Old 04-30-2016, 10:30 PM   #285
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Maybe we could make a cool game out of that little command sequence:

Code:
(( $RANDOM % 6 == 0 )) && echo 'WINNER!' > /root/game.log || echo 'TRY AGAIN...' > /dev/null
Make a little shell-script that runs as boot time only from a read-only script that can not be edited (for fairness), make the number low enough to invite some competition, drop it somewhere in rc.S or rc.M with an output to /root/game.log and if you find a game.log with "WINNER!" in your root, you can post it to a topic for it (maybe here on LQ) and you get a few points for bragging rights.

There also is not point to leaving Slackware... and I shall explain why... ehem...

ONCE YOU'VE USED SLACKWARE... IT'S INSIDE YOU FOREVER! NO NO YOU CAN'T GET AWAY! NOWHERE TO RUN! NOWHERE TO HIDE! ONE OF US! FOREVER!!!! Mwhahahahahaha!!!!

Last edited by ReaperX7; 04-30-2016 at 10:41 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware is 21 Years Old jeremy Linux - News 1 07-18-2014 11:33 PM
Abandoning Fedora; Need a new distro tnandy Linux - Newbie 10 10-17-2012 08:10 PM
Considering abandoning slackware for new distro, but i cant decide... Suggestions? onda_trollet Linux - Distributions 9 02-11-2010 04:30 PM
Trying Slackware after years away Agent69 Slackware 5 06-04-2002 06:30 AM
abandoning windoze Lennart Linux - General 8 03-30-2002 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration