Message from @GDoctor

Discord ID: 500167482380648468


2018-10-09 22:36:27 UTC  

@Jacob completely agree

2018-10-09 22:41:26 UTC  

You think this is something I should try doing myself after having taken 3 Java classes? Or should I use your white privilege bot and modify it?

2018-10-09 22:57:14 UTC  

@Jacob I'm sure you could do it but there's no sense reinventing the wheel, here's the scraper

https://cdn.discordapp.com/attachments/352761432833523713/499354684952412161/Redditconversationscrapper.py

2018-10-09 22:58:38 UTC  

Not sure if you have python set up already, let me know if you can run the script

2018-10-09 23:00:45 UTC  

okay thanks

2018-10-09 23:01:26 UTC  

I was thinking of doing it as a programming exercise, but my time would probably be better spent practicing what I'm learning in class.

2018-10-09 23:04:56 UTC  

There's plenty to add to the script if you like

2018-10-09 23:07:56 UTC  

Here's one idea we had in another Discord server

2018-10-09 23:09:14 UTC  

Once a comment is identified as being about immigration, scan the comment for particular phrases, like "jobs Americans won't do". Then, when the bot sends me the email, it would it provide both a link to the comment, and a few potential counterarguments based on the key phrase found.

2018-10-09 23:10:35 UTC  

So, let's say I have a database with 30 counterarguments. That's a lot of work to open it up and sift through it each time to get the right now. So, instead, the bot would send me 3 counterarguments in the email that are likely matches based on the text of the comment.

2018-10-09 23:12:41 UTC  

why not just *become* the machine
mindexplosion.jpg

2018-10-10 00:01:26 UTC  

@ThisIsChris Do you think you could add some comments to that code to explain a bit what each section does?

2018-10-11 17:37:21 UTC  

@Jacob alright, here you go!

https://cdn.discordapp.com/attachments/352761432833523713/499998960702717982/Redditconversationscraper_COMMENTED.py

2018-10-11 17:38:17 UTC  

Thanks!

2018-10-11 17:40:24 UTC  

You're welcome! I tried to be thorough with the comments but let me know if there's anything unclear

2018-10-12 04:31:48 UTC  

<@&435155896780324864> Anyone online to help me with Java?

2018-10-12 04:33:51 UTC  

Depends, I took it last spring and I'm doing C++ now. What'd you need?

2018-10-12 04:34:37 UTC  

to find out what's wrong with this program

2018-10-12 04:37:56 UTC  

https://cdn.discordapp.com/attachments/352761432833523713/500165199664381952/StartupCode.zip

2018-10-12 04:38:02 UTC  

okay this is the right one

2018-10-12 04:47:00 UTC  

Is it not compiling?

2018-10-12 04:47:27 UTC  

There's an error on line 155 in the CDoublyLinkedList class

2018-10-12 04:47:34 UTC  

I'm not sure how to compare the objects

2018-10-12 04:54:36 UTC  

what is the purpose of the program?

2018-10-12 04:57:57 UTC  

to make a circular doubly linked list and test it

2018-10-12 04:58:06 UTC  

@ThisIsChris can you help me with this?

2018-10-12 04:59:50 UTC  

@Jacob
line 155-156 is:
```java
if (sortedCurr.data.equals(curr.data) ||
sortedCurr.data.compareTo(curr.data) > 0)
```

2018-10-12 04:59:50 UTC  

I'll let Chris handle this one.

2018-10-12 05:00:29 UTC  

try changing it to:
```java
if ( (sortedCurr.data.equals(curr.data)) ||
(sortedCurr.data.compareTo(curr.data) > 0) )
```

2018-10-12 05:07:15 UTC  

it still gives an error

2018-10-12 05:07:32 UTC  

What's the error?

2018-10-12 05:07:37 UTC  

"The method compareTo(Object) is undefined for the type Object"

2018-10-12 05:07:54 UTC  

You're missing a (

2018-10-12 05:11:03 UTC  

where?

2018-10-12 05:11:19 UTC  

and why would that make the compareTo method undefined?

2018-10-12 05:11:51 UTC  

before sorted

2018-10-12 05:11:56 UTC  

second line

2018-10-12 05:12:15 UTC  

Doesn't look like it's closed

2018-10-12 05:15:52 UTC  

nah all the parentheses are closed

2018-10-12 05:15:58 UTC  

I changed it to the one Chris sent

2018-10-12 05:16:08 UTC  

I'm not getting any errors from parentheses