07-09-10 01:42 PM
44 12
tools
  1. BigBadWulf's Avatar
    Dang it! I bet I spelled that wrong again. :::: resubmits post for pk's approval ::::

    It did get kinda damp, when I woke up from dreaming about the Flyers.
    07-09-10 08:23 AM
  2. syb0rg's Avatar
    this thread has taken OT to new levels Off Topicness??? That a word?
    you under estimate the thrjackingness

    verry sneakky sneakky sir

    Last edited by mjneid; 07-09-10 at 09:15 AM.
    07-09-10 08:26 AM
  3. xxxxpradaxxxx's Avatar
    Prada Prada Prada Prada Prada Prada Dolce Dolce Prada Prada Prada Prada Prada Prada Prada Dolce Prada Prada Prada Prada Prada Prada Dolce Prada Dolce Dolce Prada Prada Dolce Prada Prada Dolce Dolce Dolce Dolce Dolce Prada Prada Prada Prada Prada Prada Dolce Prada Dolce Dolce Prada Prada Prada Prada Dolce Prada Prada Dolce Dolce Prada Dolce Prada Prada Prada Prada Dolce Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Dolce Prada Dolce Dolce Prada Prada Prada Prada Prada Prada Prada Prada Prada Prada Dolce Prada Prada Prada Prada Prada Prada Prada Dolce Prada Prada Prada Prada Prada Dolce Prada Prada Prada Dolce Prada Prada Prada Prada Prada Dolce Prada Prada Prada Dolce Prada Prada Prada Prada Prada Prada Prada Dolce Dolce Dolce Dolce Prada Prada
    07-09-10 09:44 AM
  4. BigBadWulf's Avatar
    07-09-10 09:59 AM
  5. Pi Guy 3.14's Avatar
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head>
    <base href="http://forums.crackberry.com/" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="generator" content="vBulletin 3.8.3" /> <meta name="keywords" content="Encyclopedia,Dramatica, Encyclopedia Dramatica, blackberry, crackberry, blackberry forums, crackberry forums, motorola q forum, samsung blackjack forum, handspring treo forum," /> <meta name="description" content="zero one zero zero one zero zero one zero one one zero zero one one zero zero zero one zero zero zero zero zero zero one one one one zero zero one zero one one zero one one one one " /> <style type="text/css" id="vbulletin_css">
    /**
    * vBulletin 3.8.3 CSS
    * Style: 'Default Style'; Style ID: 1
    */
    body
    {
    background: #FFFFFF;
    color: #000000;
    font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    margin: 0px 10px 10px 10px;
    padding: 0px;

    }
    a:link, body_alink
    {
    color: #615e99;
    }
    a:visited, body_avisited
    {
    color: #807db3;
    }
    a:hover, a:active, body_ahover
    {
    color: #9d9bc6;
    }
    .page
    {
    background: #FFFFFF;
    color: #000000;
    }
    td, th, p, li
    {
    font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .tborder
    {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #615e99;
    }
    .tcat
    {
    background: #869BBF url(images/gradients/gradient_tcat.gif) repeat-x top left;
    color: #FFFFFF;
    font: bold 12pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .tcat a:link, .tcat_alink
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    .tcat a:visited, .tcat_avisited
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    .tcat a:hover, .tcat a:active, .tcat_ahover
    {
    color: #FFFFFF;
    text-decoration: underline;
    }
    .thead
    {
    background: #615e99;
    color: #FFFFFF;
    font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .thead a:link, .thead_alink
    {
    color: #FFFFFF;
    }
    .thead a:visited, .thead_avisited
    {
    color: #FFFFFF;
    }
    .thead a:hover, .thead a:active, .thead_ahover
    {
    color: #FFFFFF;
    }
    .tfoot
    {
    background: #615e99;
    color: #FFFFFF;
    }
    .tfoot a:link, .tfoot_alink
    {
    color: #FFFFFF;
    }
    .tfoot a:visited, .tfoot_avisited
    {
    color: #FFFFFF;
    }
    .tfoot a:hover, .tfoot a:active, .tfoot_ahover
    {
    color: #FFFFFF;
    }
    .alt1, .alt1Active
    {
    background: #F6F6F6;
    color: #000000;
    }
    .alt2, .alt2Active
    {
    background: #FFFFFF;
    color: #000000;
    }
    .inlinemod
    {
    background: #FFFFCC;
    color: #000000;
    }
    .wysiwyg
    {
    background: #FFFFFF;
    color: #000000;
    font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    textarea, .bginput
    {
    font: 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .bginput option, .bginput optgroup
    {
    font-size: 10pt;
    font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .button
    {
    font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    select
    {
    font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    option, optgroup
    {
    font-size: 11px;
    font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .smallfont
    {
    font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .time
    {
    color: #000000;
    }
    .navbar
    {
    background: #FFFFFF;
    font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    background-color:#FFFFFF;
    border: 0px;
    }
    .highlight
    {
    color: #FF0000;
    font-weight: bold;
    }
    .fjsel
    {
    background: #615e99;
    color: #E0E0F6;
    }
    .fjdpth0
    {
    background: #F7F7F7;
    color: #000000;
    }
    .panel
    {
    background: #E4E7F5 url(images/gradients/gradient_panel.gif) repeat-x top left;
    color: #000000;
    padding: 10px;
    border: 0px outset;
    }
    .panelsurround
    {
    background: #FFFFFF;
    color: #000000;
    }
    legend
    {
    color: #22229C;
    font: 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    }
    .vbmenu_control
    {
    background: #615e99;
    color: #FFFFFF;
    font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    padding: 3px 6px 3px 6px;
    white-space: nowrap;
    }
    .vbmenu_control a:link, .vbmenu_control_alink
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    .vbmenu_control a:visited, .vbmenu_control_avisited
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    .vbmenu_control a:hover, .vbmenu_control a:active, .vbmenu_control_ahover
    {
    color: #FFFFFF;
    text-decoration: underline;
    }
    .vbmenu_popup
    {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #0B198C;
    }
    .vbmenu_option
    {
    background: #BBC7CE;
    color: #000000;
    font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    }
    .vbmenu_option a:link, .vbmenu_option_alink
    {
    color: #22229C;
    text-decoration: none;
    }
    .vbmenu_option a:visited, .vbmenu_option_avisited
    {
    color: #22229C;
    text-decoration: none;
    }
    .vbmenu_option a:hover, .vbmenu_option a:active, .vbmenu_option_ahover
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    .vbmenu_hilite
    {
    background: #8A949E;
    color: #000000;
    font: 11px verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    }
    .vbmenu_hilite a:link, .vbmenu_hilite_alink
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    .vbmenu_hilite a:visited, .vbmenu_hilite_avisited
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    .vbmenu_hilite a:hover, .vbmenu_hilite a:active, .vbmenu_hilite_ahover
    {
    color: #FFFFFF;
    text-decoration: none;
    }
    /* ***** styling for 'big' usernames on postbit etc. ***** */
    .bigusername { font-size: 14pt; }

    /* ***** small padding on 'thead' elements ***** */
    td.thead, div.thead { padding: 4px; }

    /* ***** basic styles for multi-page nav elements */
    .pagenav a { text-decoration: none; }
    .pagenav td { padding: 2px 4px 2px 4px; }

    /* ***** define margin and font-size for elements inside panels ***** */
    .fieldset { margin-bottom: 6px; }
    .fieldset, .fieldset td, .fieldset p, .fieldset li { font-size: 11px; }

    /* ***** don't change the following ***** */
    form { display: inline; }
    label { cursor: default; }
    .normal { font-weight: normal; }
    .inlineimg { vertical-align: middle; }
    img { border:0px; }

    #header {
    width:982px;
    margin:auto;
    }

    div.crackberry_back {
    background-image: url(http://images.crackberry.com/images/header3/bg.gif);
    background-repeat: repeat-x;
    min-width:982px;
    }
    07-09-10 10:06 AM
  6. xxxxpradaxxxx's Avatar
    import java.awt.*;

    002 import java.awt.event.*;

    003 import javax.swing.*;

    004

    005 public class prs extends JPanel implements ActionListener, ItemListener

    006 {

    007 private final Point FRAME_ORIGIN = new Point(450,250);

    008 private final Color clrBackground = new Color(255,255,255);

    009 private final Color clrForeground = new Color(0,0,0);

    010

    011 private JComboBox cboxWeapon;

    012 private JTextField txtCPUWeapon, txtWins, txtLoses, txtDraws;

    013 private JLabel lblPlayerWeapon, lblCPUWeapon, lblWins, lblLoses, lblDraws, lblStatus, lblPlayerWeaponIcon, lblCPUWeaponIcon;

    014 private JButton cmdPlay, cmdReset;

    015 private ImageIcon[] imgWeapon;

    016 private JPanel panRoot, panPlayerArea, panPlayerWeapon, panCPUArea, panCPUWeapon, panStatusArea, panGo, panCounters, panWins, panLoses, panDraws;

    017

    018 private prsEngine engine = new prsEngine();

    019 private objCreateAppletImage createImage = new objCreateAppletImage();

    020

    021 private boolean errorWithImages = false;

    022

    023 public static void main(String[] args)

    024 {

    025

    026 JFrame frame = new JFrame("Paper Rock Scissors Game");

    027 frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);

    028 frame.setResizable(false);

    029 JComponent paneMain = new prs();

    030 paneMain.setOpaque(true);

    031 paneMain.setPreferredSize(new Dimension(420,350));

    032 frame.setContentPane(paneMain);

    033 frame.pack();

    034 frame.setVisible(true);

    035

    036 }

    037

    038 public prs ()

    039 {

    040

    041 cboxWeapon = new JComboBox(engine.getWeapon());

    042 cboxWeapon.addItemListener(this);

    043

    044 txtCPUWeapon = new JTextField(engine.getStrCPUWeapon(), 5);

    045 txtWins = new JTextField("0", 5);

    046 txtLoses = new JTextField("0", 5);

    047 txtDraws = new JTextField("0", 5);

    048

    049 txtCPUWeapon.setEditable(false);

    050 txtWins.setEditable(false);

    051 txtLoses.setEditable(false);

    052 txtDraws.setEditable(false);

    053

    054 lblPlayerWeapon = new JLabel("Choose Your Weapon:", JLabel.CENTER);

    055 lblCPUWeapon = new JLabel("PC's Weapon:", JLabel.CENTER);

    056 lblWins = new JLabel("Amount of Wins:", JLabel.RIGHT);

    057 lblLoses = new JLabel("Amount of Loses:", JLabel.RIGHT);

    058 lblDraws = new JLabel("Amount of Draws:", JLabel.RIGHT);

    059 lblStatus = new JLabel("", JLabel.CENTER);

    060

    061 lblPlayerWeaponIcon = new JLabel("", JLabel.CENTER);

    062 lblCPUWeaponIcon = new JLabel("", JLabel.CENTER);

    063

    064 lblPlayerWeaponIcon.setPreferredSize(new Dimension(150,150));

    065 lblCPUWeaponIcon.setPreferredSize(new Dimension(150,150));

    066

    067 cmdPlay = new JButton("Go!");

    068 cmdReset = new JButton("Restart");

    069

    070 cmdPlay.addActionListener(this);

    071 cmdReset.addActionListener(this);

    072

    073 try

    074 {

    075

    076 imgWeapon = new ImageIcon[3];

    077

    078 for (int i = 0; i < 3; i++)

    079 {

    080 imgWeapon[i] = createImage.getImageIcon(this, "/" + engine.getWeapon(i) + ".jpg", "Icon for " + engine.getWeapon(i), 13000); // images place at the same directory!

    081 }

    082

    083 lblPlayerWeaponIcon.setIcon(imgWeapon[0]);

    084 lblCPUWeaponIcon.setIcon(imgWeapon[0]);

    085

    086 }

    087 catch (Exception ex) //The game works without the images, so carry on

    088 {

    089 errorWithImages = true;

    090 }

    091

    092 setLayout(new BorderLayout());

    093 panRoot = new JPanel(new BorderLayout());

    094 panPlayerArea = new JPanel(new BorderLayout());

    095 panPlayerWeapon = new JPanel(new BorderLayout());

    096 panCPUArea = new JPanel(new BorderLayout());

    097 panCPUWeapon = new JPanel(new BorderLayout());

    098 panStatusArea = new JPanel(new BorderLayout());

    099 panGo = new JPanel();

    100 panCounters = new JPanel(new GridLayout(3,1,2,2));

    101 panWins = new JPanel();

    102 panLoses = new JPanel();

    103 panDraws = new JPanel();

    104

    105 add(panRoot, BorderLayout.CENTER);

    106 panRoot.add(panPlayerArea, BorderLayout.WEST);

    107 panPlayerArea.add(panPlayerWeapon, BorderLayout.NORTH);

    108 panPlayerWeapon.add(lblPlayerWeapon, BorderLayout.NORTH);

    109 panPlayerWeapon.add(cboxWeapon, BorderLayout.SOUTH);

    110 panPlayerArea.add(lblPlayerWeaponIcon, BorderLayout.SOUTH);

    111 panRoot.add(panCPUArea, BorderLayout.EAST);

    112 panCPUArea.add(panCPUWeapon, BorderLayout.NORTH);

    113 panCPUWeapon.add(lblCPUWeapon, BorderLayout.NORTH);

    114 panCPUWeapon.add(txtCPUWeapon, BorderLayout.SOUTH);

    115 panCPUArea.add(lblCPUWeaponIcon, BorderLayout.SOUTH);

    116 panRoot.add(panStatusArea, BorderLayout.SOUTH);

    117 panStatusArea.add(panGo, BorderLayout.NORTH);

    118 panGo.add(cmdPlay);

    119 panGo.add(cmdReset);

    120 panGo.add(lblStatus);

    121 panStatusArea.add(panCounters, BorderLayout.SOUTH);

    122 panCounters.add(panWins);

    123 panWins.add(lblWins);

    124 panWins.add(txtWins);

    125 panCounters.add(panLoses);

    126 panLoses.add(lblLoses);

    127 panLoses.add(txtLoses);

    128 panCounters.add(panDraws);

    129 panDraws.add(lblDraws);

    130 panDraws.add(txtDraws);

    131

    132 panRoot.setBorder(BorderFactory.createEmptyBorder( 5,5,5,5));

    133

    134 setBackground(clrBackground);

    135 panRoot.setBackground(clrBackground);

    136 panPlayerArea.setBackground(clrBackground);

    137 panPlayerWeapon.setBackground(clrBackground);

    138 panCPUArea.setBackground(clrBackground);

    139 panCPUWeapon.setBackground(clrBackground);

    140 panStatusArea.setBackground(clrBackground);

    141 panGo.setBackground(clrBackground);

    142 panCounters.setBackground(clrBackground);

    143 panWins.setBackground(clrBackground);

    144 panLoses.setBackground(clrBackground);

    145 panDraws.setBackground(clrBackground);

    146

    147 lblPlayerWeapon.setForeground(clrForeground);

    148 lblCPUWeapon.setForeground(clrForeground);

    149 lblWins.setForeground(clrForeground);

    150 lblLoses.setForeground(clrForeground);

    151 lblDraws.setForeground(clrForeground);

    152 txtWins.setForeground(clrForeground);

    153 txtLoses.setForeground(clrForeground);

    154 txtDraws.setForeground(clrForeground);

    155 txtCPUWeapon.setForeground(clrForeground);

    156

    157 }

    158

    159 public void reset ()

    160 {

    161

    162 cboxWeapon.setSelectedIndex(0);

    163 lblStatus.setText("");

    164

    165 engine.reset();

    166

    167 }

    168

    169 public void actionPerformed (ActionEvent e)

    170 {

    171

    172 if (e.getSource() == cmdReset)

    173 {

    174 reset();

    175 }

    176 else

    177 {

    178 lblStatus.setText(engine.play(cboxWeapon.getSelect edIndex()));

    179 }

    180

    181 txtCPUWeapon.setText(engine.getStrCPUWeapon());

    182 txtWins.setText(Integer.toString(engine.getWins()) );

    183 txtLoses.setText(Integer.toString(engine.getLoses( )));

    184 txtDraws.setText(Integer.toString(engine.getDraws( )));

    185

    186 if (!errorWithImages)

    187 {

    188 lblCPUWeaponIcon.setIcon(imgWeapon[engine.getCPUWeapon()]);

    189 }

    190

    191 }

    192

    193 public void itemStateChanged (ItemEvent e)

    194 {

    195

    196 if (!errorWithImages)

    197 {

    198 lblPlayerWeaponIcon.setIcon(imgWeapon[cboxWeapon.getSelectedIndex()]);

    199 }

    200 }

    201 }
    07-09-10 10:18 AM
  7. xxxxpradaxxxx's Avatar
    OMG whatTF did I just post?!?!
    07-09-10 10:21 AM
  8. Radius's Avatar
    Looks like some kind of basic Java based game to me.
    07-09-10 11:17 AM
  9. BB_Junky's Avatar
    WOW Prada...your a computar geek!!!!!
    07-09-10 11:19 AM
  10. Radius's Avatar
    I won't comment. Scripting rubs me the wrong way. What can I say, I'm a code snob. The last two source posts just make my spine shiver.
    07-09-10 11:20 AM
  11. Mavis Fesselmeyer's Avatar
    Can anyone do dirty binary code talk? That would be impressive
    07-09-10 11:20 AM
  12. BB_Junky's Avatar
    How is your weather on the other side of the hill today Radius? i see your on the island , very jealous. I went fishing off the west coast a couple of summers ago headed out from the Silver King Lodge in Campbell River. Beautiful country you live in my friend.
    07-09-10 11:26 AM
  13. BB_Junky's Avatar
    Can anyone do dirty binary code talk? That would be impressive
    01001100011011110110111101101011001011100010111001 10100100100000011000010110110100100000011011100110 11110111010000100000011010000111010101101110011001 110111001001111001001000010010000100100001

    07-09-10 11:28 AM
  14. Radius's Avatar
    How is your weather on the other side of the hill today Radius? i see your on the island , very jealous. I went fishing off the west coast a couple of summers ago headed out from the Silver King Lodge in Campbell River. Beautiful country you live in my friend.
    About 30C here these days but that's going to drop off soon. Not too bad overall. Did you catch anything? I almost went crabbing a few weeks ago but the guy with the boat cancelled due to a wicked hangover.

    Welcome here anytime, there's plenty of salmon to go around.
    07-09-10 11:28 AM
  15. Radius's Avatar
    Can anyone do dirty binary code talk? That would be impressive
    I would try but too many people can translate. So I'll get me a converter and post in hexadecimal and see how that flies.
    07-09-10 11:30 AM
  16. Radius's Avatar
    void DNSLookup(String Server, std::list< unsigned long > &ip_adr)
    {
    PDNS_RECORD dns_rec;
    PDNS_RECORD dns_iter;

    dns_rec = NULL;

    ip_adr.clear();

    if ( Server.empty() == false )
    {
    if ( DnsQuery(Server.c_str(), DNS_TYPE_A, DNS_QUERY_STANDARD, NULL, &dns_rec, NULL) == 0 )
    {
    for ( dns_iter = dns_rec; dns_iter != NULL; dns_iter = dns_iter->pNext )
    {
    if ( (dns_rec->Data.A.IpAddress != 0) && (dns_rec->Data.A.IpAddress != 0xFFFFFFFF) )
    ip_adr.push_back(SWAP_L(dns_rec->Data.A.IpAddress));
    }
    }

    if ( dns_rec != NULL )
    DnsRecordListFree(dns_rec, DNS_FREE_TYPE:nsFreeRecordList);
    }
    }

    There, now everyone can do a DNS lookup!
    07-09-10 11:32 AM
  17. BB_Junky's Avatar
    ya we caught our limit in Halibut which was only 2, then some ling cod, red snapper,...man those guides could cook up a quick fillet on their little BBQ's that would melt in your mouth..(drools on self while typing) but i also hear you on your comment on the wicked hangovers..my god when we were done after 4 days i need a blood transfusion.
    07-09-10 11:34 AM
  18. Radius's Avatar
    ya we caught our limit in Halibut which was only 2, then some ling cod, red snapper,...man those guides could cook up a quick fillet on their little BBQ's that would melt in your mouth..(drools on self while typing) but i also hear you on your comment on the wicked hangovers..my god when we were done after 4 days i need a blood transfusion.


    Yep, that's all part of it. Full of fish and beer, rocking on a boat in the ocean, no land in sight...

    Time to chum the waters!
    07-09-10 11:42 AM
  19. xxxxpradaxxxx's Avatar
    Can anyone do dirty binary code talk? That would be impressive
    010100100000100101001010010101001010OHBABY01010101 010101010M0AR0101010010101010010101001101010011001 0YESPREASEM0AR0101010100101101111HARDER01010111100 100101000101001010010101FASTER11100010100101001010 1010110000

    Hows that? Impressed?
    07-09-10 01:42 PM
44 12
LINK TO POST COPIED TO CLIPBOARD