Message from @Jacob

Discord ID: 502707012694441995


2018-10-13 23:01:50 UTC  

Once this program is finished, it's going to be peak weaponized autism

2018-10-13 23:32:57 UTC  

that's great!

2018-10-14 00:07:04 UTC  

@ThisIsChris we have a weird problem

2018-10-14 00:07:11 UTC  

the emails don't send if they have a link in them

2018-10-14 00:07:54 UTC  

```
for comment in interesting_comments(request.json()):
if comment not in printed:
print('')
#on some computers printing \a is an escape
#sequence that produces a ding sound
print('\a\a\a', flush=True)
#for interesting comments found
#print out a link
#print out the subreddit it was found in
#print out what the comment says
message = comment['permalink'] \
+ '\n' \
+ '\n' \
+ comment['body']
server.sendmail("[email protected]", "email censored pls no dox", message)
server.sendmail("[email protected]", "email censored pls no dox", message)
printed.append(comment)
```

2018-10-14 00:08:04 UTC  

sends fine

2018-10-14 00:08:13 UTC  

```
for comment in interesting_comments(request.json()):
if comment not in printed:
print('')
#on some computers printing \a is an escape
#sequence that produces a ding sound
print('\a\a\a', flush=True)
#for interesting comments found
#print out a link
#print out the subreddit it was found in
#print out what the comment says
message = "Reddit.com" + comment['permalink'] \
+ '\n' \
+ '\n' \
+ comment['body']
server.sendmail("[email protected]", "email censored pls no dox", message)
server.sendmail("[email protected]", "email censored pls no dox", message)
printed.append(comment)
```

2018-10-14 00:08:16 UTC  

no longer sends

2018-10-14 00:26:10 UTC  

I don't think this library has email subjects

2018-10-14 00:30:27 UTC  

it's the really basic one

2018-10-14 00:40:13 UTC  

@ThisIsChris perhaps we have some Python experts in IE who could help with this project?

2018-10-14 00:41:35 UTC  

<@&435155896780324864> Is anyone here a Python expert?

2018-10-14 00:54:19 UTC  

@Jacob An expert is not going to know the answer to every question about every library off the top of their head, but a lot of these questions can be answered by googling and checking the documentation or stack overflow which are usually the first results.

2018-10-14 00:56:31 UTC  

good point

2018-10-14 00:57:00 UTC  

now I feel like one of those boomers that asks their grandkids how to close a dialog box

2018-10-14 01:34:17 UTC  

:boomer:

2018-10-16 01:01:13 UTC  

@ThisIsChris I have a big 4 hour programming test this week, so I'm gonna be preparing for that and should probably put my work on this script on hold for a few days

2018-10-16 01:06:29 UTC  

@Jacob good luck on your exam!

2018-10-16 01:06:43 UTC  

thanks!

2018-10-19 04:58:02 UTC  

```java
/**
*
* Implement the private reverse(ListNode node) method using recursion.
* You are allowed to add helper method into this class if needed.
* @param node -- the reference of the first data node(successor of the dummy) in the original list.
* @return A new MyLinkedList object contains the same set of data items, but in a reversed order.
*/
private MyLinkedList reverse(ListNode node) {
MyLinkedList reversed = new MyLinkedList();
ListNode curr = node;
ListNode lastNode = null;
while (curr != null) {
lastNode = curr;
curr = curr.next;
}
reversed.head.next = lastNode;
if (node.next != null) {
reversed.head.next.next = reverse(node.next).head.next;
}
return reversed; // change this line of code as needed
}
```

2018-10-19 04:58:11 UTC  

Does anyone see anything wrong with this code?

2018-10-19 05:38:52 UTC  

```java
/**
* This method reverse2() will reverse all data nodes in this list, WITHOUT
* creating(introducing) new list nodes, by simply re-wiring the next reference in
* the existing list node. For example, list1 = []ā€”>[A]ā€”>[B],
* the reversed list1 will be []-->[B]-->[A],
* after assigning node A to B's next reference and setting A's next to null.
*
*/
public void reverse2() {
if(this.size <= 1)
return;
// The following method call works on a *sublist* without a Dummy Node.
// Namely, we preserved the OLD dummy head node in the reversed list.
this.head.next = reverse(this.head.next, this.head.next.next);
}

/**
* Please implement the helper method below for reverse2().
* @param first, the first node of the list to be reversed.
* @param second, the second node of the list to be reversed.
* @return the new head node of the reversed list.
* Note: you are NOT allowed to create new list node, but have to
* re-wiring the existing nodes by changing their next references.
* Write this method using recursion.
*/
private ListNode reverse(ListNode first, ListNode second) {
ListNode curr = first;
ListNode newFirstNode = null;
ListNode newLastNode = null;
ListNode newHead = new ListNode();
while (curr.next != null) {
newLastNode = curr;
newFirstNode = curr.next;
curr = curr.next.next;
}
newHead.next = newFirstNode;
newLastNode.next = null;
newFirstNode.next = reverse(newFirstNode.next, newFirstNode.next.next);
return newHead; //change this line of code as needed.
}
```

2018-10-19 05:38:58 UTC  

and this ^

2018-10-19 05:39:27 UTC  

I'm honestly not sure what the point of passing the second node is, since (I think) it can be determined from the first node using .next

2018-10-19 05:39:32 UTC  

<@&435155896780324864>

2018-10-19 05:44:45 UTC  

That's all for tonight by the way. I won't spam you guys with a bunch of other methods, it's just these.

2018-10-19 05:44:52 UTC  

@Jacob well it's recursive right, and one node IIRC is a null node, right? null wouldn't have a null.next

2018-10-19 05:45:49 UTC  

ah

2018-10-19 05:45:55 UTC  

you mean at the end?

2018-10-19 05:46:13 UTC  

when the function is originally called, I assume both nodes are fine

2018-10-19 05:46:19 UTC  

but ya I think that makes sense

2018-10-19 05:46:56 UTC  

that at some point second will be null

2018-10-19 05:47:59 UTC  

wait no that shouldn't be an issue

2018-10-19 05:48:13 UTC  

because each Linked List object has a size variable to check for that

2018-10-19 05:48:29 UTC  

wait no that wouldn't work because I'm not actually passing a list

2018-10-19 05:50:49 UTC  

haha yeah that linked list/ tree stuff is tricky, maybe later in the weekend I can focus on it if you're still working on it, hopefully someone else here can help out sooner than that though šŸ˜ <@&387091385075105804> <@&435155896780324864>

2018-10-19 05:51:16 UTC  

Do you think I'm understanding this correctly?

2018-10-19 05:54:33 UTC  

```java
/**
* This method reverse2() will reverse all data nodes in this list, WITHOUT
* creating(introducing) new list nodes, by simply re-wiring the next reference in
* the existing list node. For example, list1 = []ā€”>[A]ā€”>[B],
* the reversed list1 will be []-->[B]-->[A],
* after assigning node A to B's next reference and setting A's next to null.
*
*/
public void reverse2() {
if(this.size <= 1)
return;
// The following method call works on a *sublist* without a Dummy Node.
// Namely, we preserved the OLD dummy head node in the reversed list.
this.head.next = reverse(this.head.next, this.head.next.next);
}

/**
* Please implement the helper method below for reverse2().
* @param first, the first node of the list to be reversed.
* @param second, the second node of the list to be reversed.
* @return the new head node of the reversed list.
* Note: you are NOT allowed to create new list node, but have to
* re-wiring the existing nodes by changing their next references.
* Write this method using recursion.
*/
private ListNode reverse(ListNode first, ListNode second) {
ListNode newHead = new ListNode();
if (second.next != null) {
ListNode curr = first;
ListNode newFirstNode = null;
ListNode newLastNode = null;
while (curr.next != null) {
newLastNode = curr;
newFirstNode = curr.next;
curr = curr.next.next;
}
newHead.next = newFirstNode;
newLastNode.next = null;
newFirstNode.next = reverse(newFirstNode.next, newFirstNode.next.next);
}
else {
newHead.next = second;
second.next = first;
first.next = null;
}
return newHead; //change this line of code as needed.
}
```

2018-10-19 05:55:07 UTC  

@ThisIsChris okay this is what I have right now, do you think this works?

2018-10-26 15:14:53 UTC  

<@&435155896780324864> In the past week I've been hit up by recruiters 3 times asking if I know how to update a website for Search Engine Optimization (SEO). I don't intend to go into it, but the demand is there and I know this is a field you can get into relatively quickly. Lots of information online to learn from this is a big one https://moz.com/beginners-guide-to-seo

2018-10-27 03:37:23 UTC  

Iā€™m an SEO and Iā€™d love to pick up work if I could. If you need help learning about it or see an offer let me know šŸ˜ƒ