Author Topic: Jokes  (Read 23648 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Jokes
« Reply #45 on: October 18, 2010, 09:17:27 pm »
No!!! :O
EDIT: Of coure I tried
« Last Edit: October 18, 2010, 09:17:59 pm by yeongJIN_COOL »
Sig wipe!

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Jokes
« Reply #46 on: October 18, 2010, 09:21:50 pm »
Code: ( "Cause why not?") [Select]
import java.awt.*;
import javax.swing.*;
import java.util.Random;
import java.awt.Graphics;

public class Test
{
public static void main(String[] args)
{
int b = 1;
JFrame frame = new JFrame("Cause why not?");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(300,50);
Container pane = frame.getContentPane();
DrawingPanel panel = new DrawingPanel("LOL");
pane.add(panel);
frame.setVisible(true);
while(2*b==1 || 2*b!=1) // that is the question...
panel.repaint();
}
}

class DrawingPanel extends JPanel
{
private String str;
public DrawingPanel(String s)
{
str = s;
}

public void paintComponent(Graphics g)
{
super.paintComponent(g);
Random rand = new Random();
g.setColor(new Color(rand.nextInt(256),rand.nextInt(256),rand.nextInt(256)));
g.drawString(str,4,30);
}
}

i had to :p


Offline kyllopardiun

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 178
  • Rating: +14/-4
  • Kyllopardiun over 2000 results in google.
    • View Profile
    • Kyllo's blog (a blog about poetry, videos and computing)
Re: Jokes
« Reply #47 on: October 18, 2010, 09:25:40 pm »
No!!! :O
EDIT: Of coure I tried

You tried?
I thought noone would do this, sorry...

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Jokes
« Reply #48 on: October 18, 2010, 09:27:22 pm »
Code: ( "Cause why not?") [Select]
import java.awt.*;
import javax.swing.*;
import java.util.Random;
import java.awt.Graphics;

public class Test
{
public static void main(String[] args)
{
int b = 1;
JFrame frame = new JFrame("Cause why not?");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(300,50);
Container pane = frame.getContentPane();
DrawingPanel panel = new DrawingPanel("LOL");
pane.add(panel);
frame.setVisible(true);
while(2*b==1 || 2*b!=1) // that is the question...
panel.repaint();
}
}

class DrawingPanel extends JPanel
{
private String str;
public DrawingPanel(String s)
{
str = s;
}

public void paintComponent(Graphics g)
{
super.paintComponent(g);
Random rand = new Random();
g.setColor(new Color(rand.nextInt(256),rand.nextInt(256),rand.nextInt(256)));
g.drawString(str,4,30);
}
}

i had to :p
Ok. Because of kyllopardiun, I won't risk trying.
But what does it do?
Sig wipe!

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Jokes
« Reply #49 on: October 18, 2010, 09:28:58 pm »
haha well you need to compile it first... and it really wouldn't do much harm. it DOES create an infinite loop, but you can press ctrl+b to break out of it. it displays a window and then displays the string "LOL" over and over, each time in a different color. but the colors change so fast you can't really tell


Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Jokes
« Reply #50 on: October 18, 2010, 09:29:28 pm »
haha well you need to compile it first... and it really wouldn't do much harm. it DOES create an infinite loop, but you can press ctrl+b to break out of it. it displays a window and then displays the string "LOL" over and over, each time in a different color. but the colors change so fast you can't really tell

CTRL+C, right?




Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Jokes
« Reply #51 on: October 18, 2010, 09:30:07 pm »
Use BlueJ, right?
Sig wipe!

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Jokes
« Reply #52 on: October 18, 2010, 09:30:09 pm »
man, I love the "prevent additional dialogue option for Chrome.  :P

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Jokes
« Reply #53 on: October 18, 2010, 09:30:27 pm »
O.o Where's that?

Btw, have any of you seen that endless rickroll?
« Last Edit: October 18, 2010, 09:30:46 pm by Deep Thought »




Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Jokes
« Reply #54 on: October 18, 2010, 09:31:23 pm »
if a bunch of dialogues pop up, a check box appears.  :P

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Jokes
« Reply #55 on: October 18, 2010, 09:32:20 pm »
Use BlueJ, right?

i use JCreator but it shouldn't really matter.

haha well you need to compile it first... and it really wouldn't do much harm. it DOES create an infinite loop, but you can press ctrl+b to break out of it. it displays a window and then displays the string "LOL" over and over, each time in a different color. but the colors change so fast you can't really tell

CTRL+C, right?

depends upon the IDE you're using. JCreator uses CTRL+B to break out, but i hear that other ones use CTRL+C, which i find odd.. since CTRL+C is copy


Offline kyllopardiun

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 178
  • Rating: +14/-4
  • Kyllopardiun over 2000 results in google.
    • View Profile
    • Kyllo's blog (a blog about poetry, videos and computing)
Re: Jokes
« Reply #56 on: October 18, 2010, 09:37:03 pm »
man, I love the "prevent additional dialogue option for Chrome.  :P
In opera it's also safe to try the code which I've posted...

PS: I posted very clear to anyone undestand that it would be a I.L. and so not do what I said,
Because if I posted something like this, it wouldn't be easy to understand:
Spoiler For Spoiler:
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('6:5(1=2;1<4;1++){3("7 8\'13 14 12 11 9!")}10(0)',10,15,'|i||alert|400|for|javascript|I|shouldn|thing|void|such|done|t|have'.split('|'),0,{}))

PS2: this isn't a I.L.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Jokes
« Reply #57 on: October 18, 2010, 09:40:11 pm »
I know.. I meant my code
Sig wipe!

Offline kyllopardiun

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 178
  • Rating: +14/-4
  • Kyllopardiun over 2000 results in google.
    • View Profile
    • Kyllo's blog (a blog about poetry, videos and computing)
Re: Jokes
« Reply #58 on: October 18, 2010, 09:56:52 pm »
Well, since this is about jokes...

one that I like it's called big head:
[it's a safe and funny javascript]

Spoiler For Spoiler:
javascript:eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('0=7;2(1("0++;3.4[6].8=0",5));2(1("0++;3.4[6].9=0",5));',10,10,'i|setInterval|void|document|images||13|128|width|height'.split('|'),0,{}))

Note: try it on a topic page...

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Jokes
« Reply #59 on: October 18, 2010, 10:33:34 pm »
It scrolls?