Jump to content

Welcome to Pure Warfare - The #1 Community for Pures

Welcome to Pure Warfare - The #1 Community for Pures, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Pure Warfare - The #1 Community for Pures by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.

Jay

Elite Member
  • Posts

    1749
  • Joined

  • Last visited

Posts posted by Jay

    wtf

    Professor & kids in my writing class decided to discuss anonymous/4chan//b/ today. I've never been more annoyed by the lack of knowledge on a subject.

  1. Automatic generated message

     

    This topic has been closed by a moderator.

     

    Reason: This forum is for graphics.

     

    If you disagree with the action which has been taken on this topic, please PM a Moderator or an Administrator.

     

     

    Kind regards,

    Pure Warfare Staff

    Bs

    Automatic generated message

     

    This topic has been closed by a moderator.

     

    Reason: Not allowed

     

    If you disagree with the action which has been taken on this topic, please PM a Moderator or an Administrator.

     

     

    Kind regards,

    Pure Warfare Staff

  2. I made two functions - one to convert binary to decimal, and one to convert decimal to binary - out of boredom and as practice.

     

     

        private static int decodeBinary(String Bin) {
            int finalvalue = 0;
            for (int i=0;i<Bin.toString().length();i++) {
            finalvalue += (Math.pow(2,(Bin.toString().length()-i-1))) * (Character.getNumericValue(Bin.toString().charAt(i)));
            } return finalvalue;
        }
        private static String decToBin(Integer Dec) {
            int highest = 0;
            String retBin = "";
            Integer Total = Dec;
            for (int i=0;Math.pow(2,i) <= Dec;i++) { highest=i; }
            for (int i=highest;i>=0;i--) {
                if (Math.pow(2,i) > Total) { retBin = retBin + "0";
                } else {
                    Total = (int) (Total - (Math.pow(2, i)));
                    retBin = retBin + "1"; } }
            return retBin;
        }

     

    decodeBinary("10100111001110") returns 10702

    decToBin(10702) returns 10100111001110

  3. Steve Jobs stepped down because he's battling cancer.

     

    I don't see the iPhone being beat any time soon, and (in my opinion) Apple dominates Microsoft in notebook computing. Microsoft does have the better desktop, but I don't think it's possible to predict the future when it comes to technology. The impossible has happened so many times, anything can happen

×
  • Create New...