LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 01-11-2011, 11:58 AM   #301
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 847

Rep: Reputation: Disabled

#include<stdio>
#include<lightbulbs>
main(){
int bulb,users;
struct bulb;
case 0;
bulb=working || not_working
change()
.....
cant figure out the rest not a programmer but I believe someone can write a better shell script.
 
Old 01-11-2011, 12:22 PM   #302
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
That's a C program, not a shell script.

And why didn't you use [code] tags?
 
Old 01-11-2011, 02:25 PM   #303
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,870
Blog Entries: 51

Rep: Reputation: Disabled
How many forum members will it take to give an answer to the question: "How many forum members does it take to change a light bulb?"?
 
Old 01-11-2011, 02:43 PM   #304
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
How many forum members will it take to answer to POW ("how many forum members will it take to answer to", N) the question "How many forum members does it take to change a light bulb?"?

LULLZ
 
Old 01-11-2011, 03:16 PM   #305
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by Alexvader View Post
How many forum members will it take to answer to POW ("how many forum members will it take to answer to", N) the question "How many forum members does it take to change a light bulb?"?

LULLZ
I don't get it.
 
Old 01-11-2011, 03:55 PM   #306
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by Alexvader
How many forum members will it take to answer to POW ("how many forum members will it take to answer to", N)
Why would you be using pow()? Aren't you just adding them together?
 
Old 01-11-2011, 04:44 PM   #307
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 386

Rep: Reputation: 49
Code:
$ sudo apt-get install change-lightbub
$ Whats your password ? :

$ Change lightbulb requires 27.000 unknown dependecies (!)
$ Aborting . Unknown error.
$ System is going for halt NOW!
Fail ?

Last edited by silvyus_06; 01-11-2011 at 04:45 PM.
 
Old 01-11-2011, 04:48 PM   #308
floppywhopper
Member
 
Registered: Aug 2004
Location: Albany, Western Australia
Distribution: Mageia 2, SME Server 8
Posts: 617
Blog Entries: 2

Rep: Reputation: 54
yeah well thats what you get for running lite-buntu
should be running knoppix-lite
far better bulb support
 
Old 01-11-2011, 05:01 PM   #309
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 386

Rep: Reputation: 49
i didn't see many users running mandriva .. nice too see someone who does!

i know ... imagine doing that in windows bwahahahah
 
Old 01-11-2011, 05:03 PM   #310
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by silvyus_06 View Post
Code:
$ sudo apt-get install change-lightbub
$ Whats your password ? :

$ Change lightbulb requires 27.000 unknown dependecies (!)
$ Aborting . Unknown error.
$ System is going for halt NOW!
Fail ?
Why is there an '$' in front of every line?

It's used to represent the prompt, not that the line is from a terminal.
 
Old 01-11-2011, 05:11 PM   #311
silvyus_06
Member
 
Registered: Oct 2010
Distribution: Ubuntu 10.04 , Linux Mint Debian Edition , Microsoft Windows 7
Posts: 386

Rep: Reputation: 49
Quote:
Originally Posted by MTK358 View Post
Why is there an '$' in front of every line?

It's used to represent the prompt, not that the line is from a terminal.
then how to represent that the line is from the terminaal ?

i saw many guides that were just like that with the $ before .. so i thought ...
 
Old 01-11-2011, 05:42 PM   #312
floppywhopper
Member
 
Registered: Aug 2004
Location: Albany, Western Australia
Distribution: Mageia 2, SME Server 8
Posts: 617
Blog Entries: 2

Rep: Reputation: 54
Quote:
i know ... imagine doing that in windows bwahahahah
well actually MS did have a go at changing lightbulbs
it was called MS Bulb-Exchange
but it didn't work very well and all the bulbs kept getting the blue screen
so then they decided to make Exchange into a server ( now just MS Exchange )
now just the computers get the blue screen
 
Old 01-11-2011, 07:12 PM   #313
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by silvyus_06 View Post
then how to represent that the line is from the terminaal ?
They say that it's from the terminal.

Quote:
Originally Posted by silvyus_06 View Post
i saw many guides that were just like that with the $ before .. so i thought ...
As I said, the "$" represents the prompt. When you open a terminal, the prompt most likely ends with a "$" character. This is the line on which you manually type a command.

In your case, only the "sudo apt-get install change-lightbub" should have had an '$' before it.
 
Old 01-12-2011, 08:35 AM   #314
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Quote:
Originally Posted by MrCode View Post
Why would you be using pow()? Aren't you just adding them together?
I assume that: How many members does it take to answer to " how many members does it take to answer to " < whatever > is a form of iterated multiplication of the quoted block...

This is my justification of POW...


On the other way round. it is logical to add them all together... LULLLZZ

Last edited by Alexvader; 01-12-2011 at 08:37 AM.
 
Old 01-12-2011, 08:38 AM   #315
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Quote:
How many forum members will it take to answer to POW ("how many forum members will it take to answer to", N) the question "How many forum members does it take to change a light bulb?"?


Quote:
Originally Posted by MTK358 View Post
I don't get it.
this is a wink about BrianL's post

Quote:
How many forum members will it take to give an answer to the question: "How many forum members does it take to change a light bulb?"?

Last edited by Alexvader; 01-12-2011 at 08:40 AM.
 
  


Reply

Tags
bulb, change, forum, light, members


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Exploding light bulb! markhod General 21 02-24-2007 07:04 AM
does any members in this forum like poetry or something that sounds "poetic" alred General 8 06-03-2005 12:07 PM
Change the name of this forum? vharishankar LQ Suggestions & Feedback 23 01-05-2005 01:20 AM
i would like to change my forum userid. How? skoona LQ Suggestions & Feedback 5 06-11-2004 10:06 PM
A note to my fellow forum members on answering questions. unSpawn Linux - Security 1 05-04-2002 12:00 PM


All times are GMT -5. The time now is 04:52 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration