1337th post wins - Page 29
Register

User Tag List

Page 29 of 29 FirstFirst ... 19 25 26 27 28 29
Results 1,401 to 1,405 of 1405
  1. ISO #1401

    Re: 1337th post wins

    btw, thank you again oops lol

    Code:
    String lastName = "";
    Map<String, Integer> postCount = new LinkedHashMap<String, Integer>();
    for(int i = 1;i < 27;i++){
    	ForumThread thread = Spam.ForumAPI.thread_View(27967, i, 50);
    	ArrayList<Post> posts = thread.posts;
    	for(Post post : posts){
    		String name = post.username;
    		if(!name.equals(lastName)){
    			lastName = name;
    			if(postCount.containsKey(name)){
    				int newCount = postCount.get(name) + 1;
    				postCount.put(name, newCount);
    			}
    			else{
    				postCount.put(name, 1);
    			}
    		}
    	}
    Thread.sleep(1000);
    }
    System.out.println(postCount.toString());
    just counted the last 37 by hand
    Last edited by Apocist; July 16th, 2014 at 03:57 PM.

    Quote Originally Posted by SuperJack View Post
    Look what you have caused. Seems like everyone who posted is now confused about their own gender and are venting their frustration into opinions.

  2. ISO #1402

    Re: 1337th post wins

    Quote Originally Posted by Ash View Post
    A man lifted a fork.
    This is post #1337. You all misunderstood the rules.

    They clearly state that to win, you must:
    1. Have the most posts before post #1337.
    2. YOU MUST BE THE ONE TO MAKE POST #1337.

    Since Ash doesn't have the most posts even though he made post #1337, there is no winner.

    And no, you can't delete posts because I declare this contest to be over. The result is a tie between Ash and Apocist.
    This statement is false. Or.. Is it..? Actually, I think it is the following statement that is false. Also, the preceding statement is true. u wot m8?

    If you aren't mindqf'd enough yet, go and try to solve THIS.

  3. ISO #1403

    Re: 1337th post wins

    Quote Originally Posted by Apocist View Post
    btw, thank you again oops lol

    Code:
    String lastName = "";
    Map<String, Integer> postCount = new LinkedHashMap<String, Integer>();
    for(int i = 1;i < 27;i++){
    	ForumThread thread = Spam.ForumAPI.thread_View(27967, i, 50);
    	ArrayList<Post> posts = thread.posts;
    	for(Post post : posts){
    		String name = post.username;
    		if(!name.equals(lastName)){
    			lastName = name;
    			if(postCount.containsKey(name)){
    				int newCount = postCount.get(name) + 1;
    				postCount.put(name, newCount);
    			}
    			else{
    				postCount.put(name, 1);
    			}
    		}
    	}
    Thread.sleep(1000);
    }
    System.out.println(postCount.toString());
    just counted the last 37 by hand

    Can you like post the whole program? I'm interested in the bit that connects to the website lol.

    Or did you even write that API? If not just tell me where I can check it out. Thanks.
    This statement is false. Or.. Is it..? Actually, I think it is the following statement that is false. Also, the preceding statement is true. u wot m8?

    If you aren't mindqf'd enough yet, go and try to solve THIS.

  4. ISO #1404

    Re: 1337th post wins

    Quote Originally Posted by SpiritFryer View Post
    Can you like post the whole program? I'm interested in the bit that connects to the website lol.

    Or did you even write that API? If not just tell me where I can check it out. Thanks.
    You would have to request the API key key from staff but the source of the API is here: https://github.com/apocist/VBulletinAPI
    I could put the whole program, but the above code the major bit...for the spamming part it was:

    Code:
    long startTime = System.currentTimeMillis();
    for(int i = 0; i < Spam.numberOfPosts ; i++){
    	@SuppressWarnings("unused")
    	int[] postDelay;
    	@SuppressWarnings("unused")
    	boolean loginDelay;
    	postDelay = Spam.ForumAPI.post_New(27967, RandSent.RandSentence());
    	if(Spam.account == 0){
    		Spam.account = 1;
    	}
    	else{ Spam.account = 0;}
    	Spam.ForumAPI.setUsername(Spam.accounts[Spam.account][0]);
    	Spam.ForumAPI.setPassword(Spam.accounts[Spam.account][1]);
    	loginDelay = Spam.ForumAPI.forum_Login();
    	Thread.sleep(700);
    }
    long endTime = System.currentTimeMillis();
    System.out.println(Spam.numberOfPosts +" posts took " + (endTime - startTime)/1000 + " seconds");
    And attached the above code to a button...Apo started at only posting 30 posts per button click, but then went up to 200.

    Quote Originally Posted by SuperJack View Post
    Look what you have caused. Seems like everyone who posted is now confused about their own gender and are venting their frustration into opinions.

  5. ISO #1405

    Re: 1337th post wins

    Quote Originally Posted by Apocist View Post
    You would have to request the API key key from staff but the source of the API is here: https://github.com/apocist/VBulletinAPI
    I could put the whole program, but the above code the major bit...for the spamming part it was:

    Code:
    long startTime = System.currentTimeMillis();
    for(int i = 0; i < Spam.numberOfPosts ; i++){
    	@SuppressWarnings("unused")
    	int[] postDelay;
    	@SuppressWarnings("unused")
    	boolean loginDelay;
    	postDelay = Spam.ForumAPI.post_New(27967, RandSent.RandSentence());
    	if(Spam.account == 0){
    		Spam.account = 1;
    	}
    	else{ Spam.account = 0;}
    	Spam.ForumAPI.setUsername(Spam.accounts[Spam.account][0]);
    	Spam.ForumAPI.setPassword(Spam.accounts[Spam.account][1]);
    	loginDelay = Spam.ForumAPI.forum_Login();
    	Thread.sleep(700);
    }
    long endTime = System.currentTimeMillis();
    System.out.println(Spam.numberOfPosts +" posts took " + (endTime - startTime)/1000 + " seconds");
    And attached the above code to a button...Apo started at only posting 30 posts per button click, but then went up to 200.
    Good info, thanks. I guess my thread was good for something after all, eh? :P
    This statement is false. Or.. Is it..? Actually, I think it is the following statement that is false. Also, the preceding statement is true. u wot m8?

    If you aren't mindqf'd enough yet, go and try to solve THIS.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •