Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

usenet reader for /prog/

Name: Anonymous 2012-05-20 21:08

usenet is pretty much dead now as far as a discussian medium because most newsgroups are unmoderated and spammed constantly, so most people use private forums.

So my question is, would it be possible to load ALL /prog/ threads into a usenet newsreader? Instead of waiting for /prog/ to become moderated this would allow anyone to self moderate by deleting threads on their private version of /prog/. This also could be dont in html, just run the html source of this page on your own saved version of /prog/. Someone could also host their version of /prog/ and only allow private access by invitation. Just a thought.

Name: Anonymous 2012-05-20 21:32

A prog2news gateway would be pretty cool.

Name: Anonymous 2012-05-20 22:20

Is it alright if I post a problem here, because it's not letting me make a new thread?

It keeps saying "A fatal error occurred! Thread ID specified does not exist"

Name: Anonymous 2012-05-20 22:20

I have a simple problem. I'm trying to add the values of an ArrayList. I should be able to, but it won't let me treat the ArrayList as an integer. I'm forced to make it a string, because I also need to use it as a string.

    ArrayList <String> numbers = new ArrayList();
    int sum = 0;
   
private void addButtonActionPerformed(java.awt.event.ActionEvent evt) {
        String temp;
        temp = inputText.getText();
        numbers.add(temp);
    }

    private void removeButtonActionPerformed(java.awt.event.ActionEvent evt) {
        String temp;
        temp = inputText.getText();
        numbers.remove(temp);
    }

    private void sumAllButtonActionPerformed(java.awt.event.ActionEvent evt) {

        for (String i : numbers) {
            //sum += i;
        outputText.setText("The total of the entries is: " + sum + numbers);
        }

Name: Anonymous 2012-05-20 22:26

>>4
but it won't let me treat the ArrayList as an integer. I'm forced to make it a string, because I also need to use it as a string.
an array list is a class object that holds class objects. a String is the String class which makes String objects. So if you want to use them like ints, you have to convert the String object to an int.

what a clod, try #java on Freenode next time

Name: Anonymous 2012-05-20 22:31

>>5
I'm a beginner. I know I'm retarded. I can't mix types, but could I cast?

How do I cast?

Name: Anonymous 2012-05-20 22:36

>>6
go ask in #java on Freenode

Name: Anonymous 2012-05-20 23:03

Name: Anonymous 2012-05-20 23:11

>>8
Ha.

Name: Anonymous 2012-05-20 23:46

Okay, how would I display the sum of even numbers in an ArrayList/
    private void sumEvenButtonActionPerformed(java.awt.event.ActionEvent evt) {
        for (String i : numbers) {
            int j = Integer.parseInt(i);
            sum = sum + j;
            if (sum % 2 == 0){
                outputText.setText("The total of the even entries is: " + j);
            }
        }
    }

Name: Anonymous 2012-05-20 23:56

>>10
you wont be able to until you learn the more explicit way to do iteration over the array list.


for(int index = 0; index < numbers.length; index++) {
  String i = numbers[index];
  ...
}

Name: Anonymous 2012-05-20 23:58

>>11
Wouldn't I use numbers.size instead?

Or am I just being stupid again?

Name: >>11 2012-05-20 23:58

wups I forgot java doesn't have the [] operator overloading.

Name: Anonymous 2012-05-21 0:05

>>11
Also, stupid question, as I don't post on /prog/ often, but how do I make my copy and pasted text not look bad, like you did?

Name: Anonymous 2012-05-21 0:11

>>12
I've got it wrong, .length is for regular arrays in java, not the ArrayList<T>. It's probably .length(), but look it up on that jafa docs.

>>14
<code>like this</code> but use [] instead of <>

Name: Anonymous 2012-05-21 0:17

>>15
Oh, thank you.

I'm sorry for taking your thread, OP. Every time I come to /prog/, it won't let me make a thread. I haven't tried making threads on other text boards in a while, so I'm not sure if it's only here.

I get the same error every time ("A fatal error occurred! Thread ID specified does not exist" followed by what I put in thee comment field). I don't wish to keep taking threads. I've searched for an answer, but I haven't found anything that's helped.

What might the problem be?

Name: Anonymous 2012-05-21 2:10

What might the problem be?
Your an assclown.

Name: Anonymous 2012-05-21 3:58

Writing a /prog/ reader should be no problem.

Name: Anonymous 2012-05-21 4:04

Call it progrider

Name: VIPPER 2012-05-21 4:13

This is great idea OP.

Name: Anonymous 2012-05-21 11:34

>>16
You have to wait 5 minutes since your last post before creating a new thread, even if your last was a reply to another thread instead of a fresh new discussion as implied by the bogus error message.

This restriction is global and shared to all text boards, so if you've posted a reply in a thread on /vip/ three minutes ago you won't be able to create a new thread here until two more minutes have passed.

This supposedly avoids filling the first page with gibberish coming from the same troll user, however this has been proven unsuccessful in the past several times. On the other hand, it pisses off legitimate users who must stay away from the keyboard for three hundred seconds. If you want to open a new discussion, do it so as your first submission so your replies to other threads won't interfere.

This was a helpful advice from a /prog/rider. Don't rely on them however: you'll see a bunch of YOU HELPED HIM!!! replies below. This is normal.

Name: 21 2012-05-21 11:36

By the way, and back on topic, I find the idea of a NNTP version of this board quite interesting.

This double post has the only purpose of avoiding a stupid "check my dubs" post

Name: Anonymous 2012-05-21 16:09

All play and no work makes Jack a wise man.

Name: Anonymous 2012-05-23 4:25

bampu pantsu

Name: Anonymous 2012-05-23 4:34

bampu pantsu

Name: Anonymous 2012-05-23 4:44

bampu pantsu

Name: Anonymous 2012-05-23 4:53

bampu pantsu

Name: Anonymous 2012-05-23 5:02

bampu pantsu

Name: Anonymous 2012-05-23 6:45

bampu pantsu

Name: bampu pantsu 2012-05-29 5:04

bampu pantsu

Name: Sgt.Kabuဋ놢kiman댑⪎ 2012-05-29 13:35

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List