LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 07-01-2011, 06:16 PM   #556
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Original Poster
Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007

No new randomness from me today, but at least I have some time to get on the forums finally And to put it out there, my kid is due next month!!!! Ehh, I guess that was random-ish.
 
Old 07-01-2011, 09:00 PM   #557
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
to put it out there, my kid is due next month!!!!
Congrats. Girl or boy?

Anyways, glad to see some life pumped into this thread once again…I was wondering if it would eventually die off by slipping all the way down to the second page.

As for $RANDOM, well…

Code:
#include <stdio.h>
#include <stdlib.h>

int main(int argc,char** argv) { printf("%i\n",rand()); return 0; }
One-line C program FTW! (No, I'm not counting preprocessor statements as lines, LOL)

Last edited by MrCode; 07-01-2011 at 09:04 PM. Reason: forgot newline :p
 
Old 07-01-2011, 09:13 PM   #558
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Original Poster
Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
It's a boy! Being my first kid, I got the 3D images...... All I have to say is that they are awesome!

And yes, I am the life behind this thread. Without me, this thread, let-a-lone some of these threads wouldn't have any life at all

And cool "program"..... You should edit it to have the preprocs on the same line as well
 
Old 07-01-2011, 09:28 PM   #559
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Quote:
You should edit it to have the preprocs on the same line as well
…doesn't quite work that way. Preprocessor statements have to be on separate lines; '\n' is effectively the delimiter (also why you need to escape them when you want to space out a #define across multiple lines* ).

* - Like so:

Code:
#define RGB(r.g.b) \
        ((unsigned)r << 0x10) + \
        ((unsigned)g << 0x8)  + \
        ((unsigned)b)

/* Rest of code; blah blah blah :p */


EDIT: Wait, I thought you knew that…?

Quote:
Originally Posted by you, in the OP
[…] I am computer programmer who likes to have fun […]

Last edited by MrCode; 07-01-2011 at 09:31 PM.
 
Old 07-02-2011, 04:57 PM   #560
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Original Poster
Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by MrCode View Post
EDIT: Wait, I thought you knew that…?
I did LOL..... But that was my point; It is not a true one liner. I have seen some true one-liners in javascript before though... Pretty cool stuff, let me tell you. I did it once in one of the programming languages on the AS/400 many years ago too.....
 
Old 07-03-2011, 07:04 PM   #561
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
It could be just me, but it seems that ever since this thread has started slipping down the list, /General has become less light-hearted and more serious/stern overall, e.g. with threads like "Rank your religiousness" and "Concealed Carry", etc. becoming more popular.

I think it's time we lighten things up a little bit!

…unfortunately, I don't have anything interesting to post here at the moment, though…

Last edited by MrCode; 07-03-2011 at 07:05 PM.
 
Old 07-04-2011, 05:35 AM   #562
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Click image for larger version

Name:	funny-pictures-omg.jpg
Views:	24
Size:	28.2 KB
ID:	7466
 
Old 07-04-2011, 04:09 PM   #563
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Original Poster
Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
You're my biggest fan? Awe thanks

---------- Post added 07-04-11 at 09:09 PM ----------

Quote:
Originally Posted by MrCode View Post
It could be just me, but it seems that ever since this thread has started slipping down the list, /General has become less light-hearted and more serious/stern overall, e.g. with threads like "Rank your religiousness" and "Concealed Carry", etc. becoming more popular.

I think it's time we lighten things up a little bit!

…unfortunately, I don't have anything interesting to post here at the moment, though…
Exactly.... That's why you/we need entertainment in our lives
 
Old 07-04-2011, 06:03 PM   #564
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Okay, now I finally have something "$RANDOM" to post…

I whipped this up in Inkscape in prolly about 10-15 minutes or so…

Anyone here who doesn't get it…well, I feel sorry for them.
Attached Thumbnails
Click image for larger version

Name:	forkbomb.png
Views:	29
Size:	50.4 KB
ID:	7472  

Last edited by MrCode; 07-04-2011 at 06:06 PM. Reason: formatting
 
Old 07-04-2011, 06:05 PM   #565
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Nice one, but I would have drawn the fork on the left side to put the words in the right order.
 
Old 07-04-2011, 08:01 PM   #566
dEnDrOn
Member
 
Registered: Jun 2011
Location: oMNipre$ent
Distribution: fedora
Posts: 511
Blog Entries: 12

Rep: Reputation: Disabled
Smile

i posted some fun things here
 
Old 07-05-2011, 05:44 AM   #567
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by MrCode View Post
Okay, now I finally have something "$RANDOM" to post…

I whipped this up in Inkscape in prolly about 10-15 minutes or so…

Anyone here who doesn't get it…well, I feel sorry for them.
Attachment 7472
Looks more like a spork at the end instead of a fork. Don't worry though spork-bombs are even better .
 
Old 07-05-2011, 09:44 AM   #568
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Rep: Reputation: 186Reputation: 186
Quote:
Originally Posted by corp769 View Post
AS/400 many years ago too.....
AS/400....RunLolaRun for ya life!!!
That thing was crazy man, I was forced to work on AS/400 in the initial phase of my career 2.5 years ago, still remember the fun
 
Old 07-06-2011, 06:14 AM   #569
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Original Poster
Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by PrinceSharma View Post
AS/400....RunLolaRun for ya life!!!
That thing was crazy man, I was forced to work on AS/400 in the initial phase of my career 2.5 years ago, still remember the fun
Sadly enough, I still remember how to program on it too..... And most of the commands I remember too, along with the shitty menu system
 
Old 07-06-2011, 06:16 AM   #570
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Original Poster
Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by Jeebizz View Post
Looks more like a spork at the end instead of a fork. Don't worry though spork-bombs are even better .
I thought the same thing LOL
 
  


Closed Thread



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
KDE Random wallpaper or script to create symbolic links to random files cvelasquez Linux - Software 2 02-26-2007 06:48 PM
The complete random randomness thread beajedi General 72 04-13-2004 05:32 PM
Random Image Thread [pic] bkeating General 24 06-24-2002 10:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:39 AM.

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