Jump to content

RSBDavid

Members
  • Posts

    4088
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by RSBDavid

  1. I know the difference between a home server and public server. I own several blade, standalone, and rack mount servers.

     

    Even if each serve had dual quad-core processors and 8GB of ram, if the ISP they use has horrible service for international connections, the server won;t do much good.

     

    Here is the source for the dell server statement: ( it states 200 servers, but he means worlds.)

    http://takeyourownpath.co.uk/trailblazers/mark-gerhard-jagex-game-studio.aspx

     

    and here is a video and at around 7:15 is when he states they use 25 servers.

    http://www.youtube.com/watch?v=Dfg73DE7iv0

  2. So there are currently 175 or so worlds. Jagex runs all of these on 25 commercial servers(this was stated by CEO Mark Gerhard at JavaOne), specifically all dells.

     

    This is equal to 7 worlds per server.

     

    Don;t get me wrong, that is an amazing feat, but is it too much? Thanks to the load on the servers from all of the worlds, some of the worlds, specifically player-vs-Player, are very laggy. I know this is not my connection, I have a 100 ms latency max and 6MB download and 3MB upload speed. Is it too much to ask them to put high traffic worlds on single servers? I wouldn't mind paying an extra couple of dollars per-month.

     

    This is really irritating me.

  3. [spoiler=Visual Basic]

    Used for: Desktop applications and libraries

    Been around since: Late 1980's

    Pros:

    Easy to learn for beginners

    Can quickly make applications

    Cons:

    Not the best language for cross-platform applications

    Not commonly used anymore like Java or C++

    Alternatives:

     

    If you are a person who wants to program for a living, do yourself a favor and learn something besides visual basic. If you are a hobbyist programmer, then this will be alright for you. SwiftKit is made with visual basic.

     

    (all of this is from memory so sorry if I make a mistake)

     

    A basic function

    Function addNumbers(byval num1 as integer, byval num2 as integer)
    
    Dim result as integer
    
    result = num1+num2
    
    return result
    
    End Function
    
    

     

    [hide=A basic visual basic coding tut]

    Variables:

     

    Variables are usually created in this format:

     

    Dim (variable name) as (variable type)

     

    Although you can use

     

    Private,public, Const, and static in some declarations.

     

    For example:

     

    Dim strData as string
    Dim intAppleCount as integer
    Static count 
    Const PRICE as string = 40

     

    When declaring strings, you must wrap the string in quotations.

     

    Instead of declaring three variables such as:

    Dim intA as integer
    Dim intB as integer
    Dim intC as integer

     

    You can do

    Dim intA, intB, intC as integer
    

     

    Loops:

    There are two types of loops:

     

    The first type is Do- While.

     

    dim intX as integer = 10
    Static count
    Do While count < intX
    
    count += 1
    
    loop
    

     

    The next type of loop is a For-Next loop.

     

    For i as integer = 1 to 10
    
        debug.writeline(i)
    
    next

     

    Strings

     

    Lets look at the following sentence:

     

    "The cat in the hat has 9 pizzas"

     

    lets say we want to replace that 9 with "nine". All we would have to do is:

    Dim strSaying as string = "The cat in the hat has 9 pizzas"
    
    strSaying.replace(9,"nine")
    

     

    That should replace the number 9 with "nine"

    [/hide]

    I have to move some stuff in real life so I will finsih this later.

     

     

    • Like 1
  4. Q)Coolisme50

    IF a 3rd world war broke out amd jagex got nuked......would that mean the end of runescape for forever?

    A)Weve already made provisions for that which is why we have a massive tank in the car park and a secret nuclear bunker. So not even the 3rd world war can stop us launching the new skill!

     

    anyone starting to think this tank stuff is actually a hint at something :wall:

     

     

    Tanks are shipped via boats. Boats go in the water. You know what this means? Polymorphism is the new skill!

     

     

    Is he still answering questions?

  5. My relaxation method involves a bottle of lotion, beautiful women, and partial nudity. Yes I get massages.

     

    My girlfriend and I went to a spa and it was pretty neat. I wasn't the only guy there. I think I was one of maybe two heterosexual guys though.

  6. Looks pretty good so far.

     

    What sort of storage method are you looking at using for the end result? I know plenty of people don't stray from their original method.. just wondering if you'd do something like XML that they can fire up in a reader/portable device

     

     

    And, auto-save?

     

     

    Also, are you sticking with like *blue* *green* etc for font.. or ever plan to support hex code instead (both full and short - eg 00ff00 v 0f0)?

     

     

    I started with plain text when setting everything up, I plan on eventually switching over to XML. I will also have an auto-save feature which will save notes every 5 minutes. I am also thinking about writing a backup of the notes to my web site so if my computer ever fails, is lost, or gets stolen, I have backups.

     

    Thanks for the feedback so far!

     

    I am still working out the color system.

  7. I'll give them credit for knowing how to stir up their players, but seriously, it was that one thing and that's it. Do we really need 30 pages of talking when they're is next to no information?

     

    Do we really need someone to come and troll the hell out of speculative discussion?

     

     

    She has a point, you don't.

  8. Here is a little background on this script.

     

    I wanted to create my own note taking program to use on my laptop at school instead of using notepad/word. This is because of two reasons: One, I learn more Java methods. Two, I create something useful.

     

     

     

    Picture of GUI as of January 25, 2009:

    [hide=GUI]

    148fckg.png

    [/hide]

     

    I will post my source here and update on my progress.

     

    Log:

    January 25, 2010 - Source released

     

     

     

     

    [hide=Original source]

     

    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Insets;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.BufferedReader;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Date;
    
    import javax.swing.Action;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.JToolBar;
    import javax.swing.JTree;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    import javax.swing.plaf.metal.DefaultMetalTheme;
    import javax.swing.plaf.metal.MetalLookAndFeel;
    import javax.swing.plaf.metal.OceanTheme;
    import javax.swing.tree.DefaultMutableTreeNode;
    
    
    /*  Author - David H.
    *  Project: A note taking application
    *  
    */
    
    @SuppressWarnings("serial")
    public class notes extends JFrame implements ActionListener{
    //Variables
           String s;
           static File location = javax.swing.filechooser.FileSystemView.getFileSystemView().getDefaultDirectory();
    
           final static String LOOKANDFEEL = "Metal";
           final static String THEME = "Ocean";
    
           Action selectLine;
    
           Date now = new Date();
           //EOV section
    
    
           public notes() {
                   //set a title for the application
                   super("Notes Express - A free lite note taking application");
                   setSize(800,600);
    
    
                   JMenuBar mb = new JMenuBar();
                   setJMenuBar(mb);
    
    
                   JMenu fileMenu = new JMenu("File");
           JMenu editMenu = new JMenu("Edit");
           mb.add(fileMenu);
           mb.add(editMenu);
           JMenuItem newMenu = new JMenuItem("New");
           JMenuItem openMenu = new JMenuItem("Open");
           JMenuItem saveMenu = new JMenuItem("Save");
           JMenuItem exitMenu = new JMenuItem("Exit");
           JMenuItem cutMenu = new JMenuItem("Cut");
           JMenuItem copyMenu = new JMenuItem("Copy");
           JMenuItem pasteMenu = new JMenuItem("Paste");
    
    
           fileMenu.add(newMenu);
           fileMenu.add(openMenu);
           fileMenu.add(saveMenu);
           fileMenu.addSeparator();
           fileMenu.add(exitMenu);
           editMenu.add(cutMenu);
           editMenu.add(copyMenu);
           editMenu.add(pasteMenu);
           editMenu.addSeparator();
    
           exitMenu.addActionListener(new ActionListener() {
    
               public void actionPerformed(ActionEvent e) {
                   System.exit(0);
               }
           });
    
    
          JButton hl = new JButton("Highlight");
    
          JLabel hi = new JLabel("Welcome to Notes Express!");
          hi.setFont(new Font("Arial",Font.BOLD,12));
          hi.setForeground(Color.WHITE);
    
          JTextField keyword = new JTextField(12);
          JLabel msg1 = new JLabel("Enter the keywords to highlight:   ");
          msg1.setFont(new Font("Arial",Font.BOLD,12));
          msg1.setForeground(Color.WHITE);
    
          JToolBar tb = new JToolBar();
          tb.setBackground(Color.BLUE);
          tb.setFloatable(false);
          tb.setBorder(BorderFactory.createLineBorder(Color.BLACK,2));
          tb.add(msg1);
          tb.add(keyword);
          //temporary method
          keyword.setText("THIS IS NOT FUNCTIONAL");
          keyword.setMargin(new Insets(0,5,0,5));
    
        //  JScrollPane sp = new JScrollPane();
    
          DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
          DefaultMutableTreeNode child1 = new DefaultMutableTreeNode("Child 1");
          root.add(child1);
          DefaultMutableTreeNode child2 = new DefaultMutableTreeNode("Child 2");
          root.add(child2);
          JTree tree = new JTree(root);
          add(new JScrollPane(tree),"East");
    
    
    
          tb.add(hl);
                   //create text area to type text into
                   final JTextArea lol = new JTextArea();
                   lol.setFont(new Font("Arial", Font.PLAIN, 12));
                   lol.setLineWrap(true);
                   lol.setWrapStyleWord(true);
                   lol.setBorder(BorderFactory.createLineBorder(Color.BLACK,2));
    
    
                   //add textarea and menubar to gui
                   add(lol,"Center");
                   add(tb,"North");
    
    
    
                   hl.addActionListener(new ActionListener() {
    
                    public void actionPerformed(ActionEvent e) {
    
    
    
    
                      }
                    });
    
    
                   openMenu.addActionListener(new ActionListener() {
    
                    public void actionPerformed(ActionEvent e) {
    
    
    
                            JFileChooser fc = new JFileChooser();
                        int returnVal = fc.showOpenDialog( notes.this );
                        if( returnVal == JFileChooser.APPROVE_OPTION ) 
                        {
                          File file = fc.getSelectedFile();
    
    
    
                          //lolllllllllllllllllllll
                          FileReader fr = null;
                                   try {
                                           fr = new FileReader(file);
                                   } catch (FileNotFoundException e1) {
                                           // TODO Auto-generated catch block
                                           e1.printStackTrace();
                                   } 
                          BufferedReader br = new BufferedReader(fr);
                          try {
                                           lol.read(br, notes.this);
                                   } catch (IOException e1) {
                                           // TODO Auto-generated catch block
                                           e1.printStackTrace();
                                   }
                          //lpolllllllllllllllllllll
                        } 
                      }
                    });
    
    
                   //java save file jfilechooser
           initLookAndFeel();
            saveMenu.addActionListener(new ActionListener() {
    
            public void actionPerformed(ActionEvent e) {
    
    
    
                    JFileChooser fc = new JFileChooser();
                fc.setSelectedFile( new File( "Temporary Name" ) );
                int returnVal = fc.showSaveDialog( notes.this );
                if( returnVal == JFileChooser.APPROVE_OPTION ) 
                {
                  File file = fc.getSelectedFile();
                  //saveTextFile(lol.getText(), location + "/notes.txt");
                  saveTextFile(lol.getText(), file + ".rtf");
    
    
                } 
    
    
            }
    
    
        });
           }
    
    
    
    
    
           public static void main(String[] args)throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
                   //required stuff
                   notes note = new notes();
    
           System.out.println(location);
    
                   note.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   note.setVisible(true);
    
           }
    
           public static String newline = System.getProperty("line.separator");
    
           public  void saveTextFile(String text, String string)
    {
    
       try
       {
    
    
    
           FileWriter write = new FileWriter(string, true );
           PrintWriter text1 = new PrintWriter(write);
    
           text1.println();
    
    
           {
           text1.print("Notes typed on: " + newline + now);
           text1.print(newline);
           text1.print(text);
           }
    
           text1.flush();
           write.close();
           }
           catch (IOException ie)
           {
           System.out.println(ie);
           }
    
    }
    
           //Graphics Crap
           //http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html
    
    
      private static void initLookAndFeel() {
    
    
    
    
           String lookAndFeel = null;
    
           if (LOOKANDFEEL != null) {
               if (LOOKANDFEEL.equals("Metal")) {
                   lookAndFeel = UIManager.getCrossPlatformLookAndFeelClassName();
                 //  an alternative way to set the Metal L&F is to replace the 
                 // previous line with:
                 // lookAndFeel = "javax.swing.plaf.metal.MetalLookAndFeel";
    
               }
    
               else if (LOOKANDFEEL.equals("System")) {
                   lookAndFeel = UIManager.getSystemLookAndFeelClassName();
               } 
    
               else if (LOOKANDFEEL.equals("Motif")) {
                   lookAndFeel = "com.sun.java.swing.plaf.motif.MotifLookAndFeel";
               } 
    
               else if (LOOKANDFEEL.equals("GTK")) { 
                   lookAndFeel = "com.sun.java.swing.plaf.gtk.GTKLookAndFeel";
               } 
    
               else {
                   System.err.println("Unexpected value of LOOKANDFEEL specified: "
                                      + LOOKANDFEEL);
                   lookAndFeel = UIManager.getCrossPlatformLookAndFeelClassName();
               }
    
               try {
    
    
                   UIManager.setLookAndFeel(lookAndFeel);
    
                   // If L&F = "Metal", set the theme
    
                   if (LOOKANDFEEL.equals("Metal")) {
                     if (THEME.equals("DefaultMetal"))
                        MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme());
                     else if (THEME.equals("Ocean"))
                        MetalLookAndFeel.setCurrentTheme(new OceanTheme());
    
    
    
                     UIManager.setLookAndFeel(new MetalLookAndFeel()); 
                   }       
    
    
    
    
               } 
    
               catch (ClassNotFoundException e) {
                   System.err.println("Couldn't find class for specified look and feel");
    
                   System.err.println("Did you include the L&F library in the class path?");
                   System.err.println("Using the default look and feel.");
               } 
    
               catch (UnsupportedLookAndFeelException e) {
                   System.err.println("Can't use the specified look and feel"); 
                   System.err.println("Using the default look and feel.");
               } 
    
               catch (Exception e) {
                   System.err.println("Couldn't get specified look and feel");
    
                   System.err.println("Using the default look and feel.");
                   e.printStackTrace();
               }
           }
       }
    
    
    
    
    
    public void actionPerformed(ActionEvent e) {
           //I am putting this method here because the application requires it, but I use inline action events where needed
    
    }
    
    
    
    
    
    
    
    
    }
    
    
    
    

    [/hide]

     

    Feature List:

    [ ] = non working

    [x] = working

     

    [x]Save text

    [x]Open text

    [ ]Search for keywords

    [ ]Organize notes in a tree form.

    [ ]Enhance important facts with prefix symbols

    -With this feature, if I was to post something like:

    "**George Washington was the first president of the United States"

    It would appear in the notes as:

    George Washington was the first president of the United States

     

    "*blue*George Washington was the first president of the United States"

    would appear as:

    George Washington was the first president of the United States

     

     

    As you can probably tell, I am still a ways from being finished. I hope to have it finished sometime within the first two weeks of February.

     

    If you have any ideas feel free to post.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.