tech

Discord ID: 352761432833523713


1,350 total messages. Viewing 250 per page.
Prev | Page 4/6 | Next

2018-04-12 16:33:15 UTC

Does anyone here have any experience with old MFC/AFX? I'm modernizing some software and running into a really weird issue. Everytime I try to build my VS solution I get an error stating VS is missing 'hcw' and this is somehow tied to an .hpj file for my project

2018-04-13 19:12:44 UTC

https://cdn.discordapp.com/attachments/352761432833523713/434430760917663757/unknown.png

2018-04-13 19:12:48 UTC

lol this takes me way back

2018-04-13 22:41:46 UTC

Win XP Master race

2018-04-14 14:09:28 UTC

> Running bitcoin node for the past month
> Data usage is high
> Internet starts running extremely slowly
> Darn ISP is throttling me, I'll call to complain
> "Sir, have you tried rebooting your PC, modem, and router?"
> "Aw heck, it's been running fine for 3 months straight, you're probably throttling me, that's the simplest trick in the book, but just to please you I'll do it anyway"
> Reboot and internet is screaming fast again
> "Well, uh ... that worked. Thanks"
> Feel like idiot as girl tech support just beat me me with the oldest trick in the book "have you tried turning it off and turning it back on again?"

2018-04-14 14:10:41 UTC

Either that, or she removed the throttling because I complained and she lied when she said there was no throttling in the first place.

2018-04-14 14:15:10 UTC

Same thing happened to me when I had high data usage. I tried the "unplug it, plug it back in" technique with no luck. Had to call them and then that technique worked.

2018-04-21 02:29:53 UTC

Lol

2018-04-21 10:32:45 UTC

<@&435155896780324864> So I'm ready to buy a VPN. Can you guys recommend one please?

2018-04-21 17:23:32 UTC

James Allsup recommends virtual shield.

2018-04-21 17:24:42 UTC

@Deleted User yeah like @The Huwhyte Ulf - VA There's Virtual Shield. Another one I hear people such as @Deleted User recommend is NordVPN

2018-04-21 17:32:05 UTC

Bearing recommends virtual shield too

2018-04-21 17:32:10 UTC

And its cheap too

2018-04-21 17:32:20 UTC

Like $10 a month or something iirc

2018-04-21 20:02:50 UTC

Thanks lads

2018-04-22 03:40:35 UTC

@Deleted User I'm using NordVPN and have been happy with it on my laptop, tablet, and smartphone. $79.00 for two years right now. The quick connect/disconnect on mobile devices is nice and you can set up kill switches if you want.

2018-04-22 04:58:48 UTC

FrootVPN has worked well for my torrenting needs. They're pretty cheap.

2018-04-22 04:59:09 UTC

You can pay in bitcoin.

2018-04-22 09:56:28 UTC

I went with NordVPN mainly because Virtual Shield offered "premium content" packages for extra money per month, which made me think that the basic package might not be that good

2018-04-23 01:05:04 UTC

Plus NordVPN sounds cooler.

2018-04-23 01:05:20 UTC

That's the real reason, right?

2018-04-23 01:15:26 UTC

@Rogue I've always suspected that was the REAL reason

2018-04-23 07:52:16 UTC

I mean, Skyrim does belong to the Nords.

2018-04-28 00:30:37 UTC

i have an android phone with a busted screen, making it unusable. i'd like to pull some photos off of it, but i don't know how. plugging into a computer won't do anything because there's a prompt on the phone asking for permission to connect, which I can't press. what are my options?

2018-04-28 19:26:52 UTC

sim card?

2018-04-28 19:27:24 UTC

not sim card. the other thing that androids often use.

2018-04-28 19:27:25 UTC

SD

2018-04-28 21:51:52 UTC

All the files are stored on the phones internal memory

2018-04-30 05:55:36 UTC

@TV Save the phone until you can find a broken one to borrow the screen from, it's a thin ribbon cable, may take forever, but may be transplantable ๐Ÿคท๐Ÿผโ€โ™‚๏ธ

2018-04-30 05:56:18 UTC

Possible @TV that a phone repair place would have a donor screen solely for data transfer.

2018-04-30 05:56:42 UTC

That's a good idea

2018-04-30 05:56:58 UTC

Its a few years old I could probably find one cheap

2018-04-30 05:57:38 UTC

What model?

2018-04-30 05:57:48 UTC
2018-04-30 06:00:06 UTC

Alternative possibility: https://youtu.be/onp0Zrr5HVc

2018-04-30 06:01:06 UTC

$4 @TV

2018-04-30 06:10:45 UTC

I can't use the screen at all.

2018-04-30 06:11:13 UTC

Bummer, maybe attach it to a Wacom tablet or something?

2018-04-30 06:11:26 UTC

Yikes

2018-04-30 06:11:37 UTC

That's what I'm working with

2018-04-30 06:11:39 UTC

You need an external screen for sure

2018-04-30 06:13:09 UTC

Looking into replacing the screen was a good idea

2018-04-30 06:13:54 UTC

Best wishes. Going to bed. Early day tomorrow. Later dude.

2018-04-30 06:14:35 UTC

๐Ÿ‘Œ

2018-05-06 21:52:21 UTC

I've got a camera tech question for anyone who's familiar with canon. I'm having a problem with my canon T6i where the ISO will start spazzing out while taking video. I stand in front of a bright softbox light, the camera is set to manual, ISO at 200, aperture at 3.5 (lowest) and on occasion if I move or hold something that is reflective on the light, the ISO will freak out and crank up to 3200. The LCD touch screen looks as if someone is pressing the buttons to raise the ISO but again everything is set to manual on the camera so idk why it would be reacting this way? It's a strange glitch. Does anyone have any suggestions?

2018-05-06 21:53:02 UTC

Take it off auto

2018-05-06 21:53:35 UTC

Are you in P mode?

2018-05-06 21:53:41 UTC

It's already on manual, as stated above

2018-05-06 21:53:47 UTC

What's P mode?

2018-05-06 21:54:08 UTC

I have the dial turned to M for manual, and then switch the camera into video mode.

2018-05-06 21:54:28 UTC

Autofocus is also off so everything is adjusted manually

2018-05-06 21:54:58 UTC

Odd

2018-05-06 21:55:36 UTC

Yeah very. I'm not sure what to do other than replace the camera

2018-05-06 21:56:39 UTC

I think that's just the light meter.

2018-05-06 21:56:48 UTC

Don't have my DSLR on hand.

2018-05-06 21:57:24 UTC

Anyone else @here have a suggestion?

2018-05-07 01:20:50 UTC

<@&435155896780324864>

2018-06-03 23:21:36 UTC

Anybody @here feel like helping a fellow Identitarian debug some weirdness with rxjs subject in Angular 6?

2018-06-03 23:22:10 UTC

Did you try turning it off and back on again?

2018-06-03 23:23:16 UTC

In case anybody does, I'll just leave my problem here: I am doing something that's basically the exact same as when you set up the search in the Tour of Heroes. Same damn code, set up a subject w/switchMap on search terms to a service method that returns an Observable<Stuff[]>, then run that all into a local var and pipe that through `async` pipe in the template.

2018-06-03 23:23:47 UTC

You go to type, nothing happens. No errors, no nothing. Adding `console.log()` calls makes it seem like the Subject's `next()` method is getting called, but nothing is happening.

2018-06-03 23:25:22 UTC

I am staring dumbfounded at my Tour of Heroes code that works fine, and it's the same exact thing.

2018-06-03 23:25:46 UTC

Only difference I can see is ToH is calling from In Mem. Web API, and I am calling out to a PHP script that is pulling from a real database.

2018-06-03 23:26:02 UTC

But the service method that actually pings that PHP script is never getting called.

2018-06-03 23:26:07 UTC

This is BS.

2018-06-03 23:26:21 UTC

use Vue or react

2018-06-03 23:26:21 UTC

problem solved!!!!!!!

2018-06-03 23:26:27 UTC

Fork off.

2018-06-03 23:26:29 UTC

lol

2018-06-03 23:26:37 UTC

im reading the problem

2018-06-03 23:26:54 UTC

but this is the exact reason im so turned off from angular

2018-06-03 23:28:04 UTC

Looks like `next()` is returning undefined.

2018-06-03 23:28:22 UTC

sounds like an architecture issue that would be hard to guess at

2018-06-03 23:29:12 UTC

yea log everything between the user and where the url call is ordered to see what is not being called

2018-06-04 00:38:36 UTC

Well I traded one problem for another. Fixed the issue with the call not firing, now I got some other weird error.

2018-06-04 00:38:59 UTC

The thing is, I'm sure whatever it is is a simple fix, it's just that the stack trace is pointing to library files instead of my code, so it's useless.

2018-06-28 00:46:00 UTC

Question about online security and doxxing prevention. A friend of mine accidentally had his work phone logged into the company WiFi, while downloading a file from TRS. He said his work email is connected to his phone. Should he be worried? If so, how much?

2018-06-28 00:47:28 UTC

Not at all. It's not a good practice, but network admins are so flooded with traffic they aren't going to be able to single it out, especially from a mobile device over wifi. Tell him not to worry one bit, but to refrain from doing that.

2018-06-28 00:48:46 UTC

I will let him know. Thanks!

2018-06-28 00:50:51 UTC

Not a problem, that's taken from my years of working for two big evil, corporations, my two year degree in IT-Sec, and the fuck-ups I've done like that.

2018-06-28 00:53:46 UTC

lol. I hear that.

2018-06-29 02:57:48 UTC

Tell him to get a VPN to mask his traffic.

2018-06-29 02:59:24 UTC

But yeah, unless the network admins are actively looking for "problematic" web surfing, there should be no problem. Typically if they are concerned with the web traffic, it's about time-wasters like reddit.

2018-07-01 13:31:30 UTC

In the past, I was pretty reckless and listened to alt right YouTube videos from my work pc, with the headphones on at least.

2018-07-01 13:31:54 UTC

What is a good VPN?

2018-07-01 13:53:29 UTC

someone call James alsup

2018-07-01 13:54:56 UTC

@Rick Strongly advise you just use your phone instead. Not worth the risk. A lot of workplaces automatically block or flag VPN/tunneling sites.

2018-07-01 14:21:39 UTC

oh. i no longer do that at work. just wonder for private life.

2018-07-01 14:22:59 UTC

also. a few months ago, there was a link to an article on how to avoid being doxxed. does anyone still have it?

2018-07-01 17:21:08 UTC
2018-07-16 04:50:20 UTC

@Rick A good VPN is one that allows payment in bitcoin, has many servers (countries) available, and if you're into such a thing...allows torrent traffic.

2018-07-16 04:51:13 UTC

Another layer of protection is having a dedicated browser installation *only* for use with the VPN.

2018-07-16 04:52:12 UTC

If privacy is your goal: basically, try to avoid being digitally "fingerprinted" at your real location with your online accounts.

2018-07-16 04:53:35 UTC

For instance, if I switch over to VPN and keep using the same browser, all those cookies with login information and tracking (Google, anyone?) still persist.

2018-07-20 03:17:13 UTC

Does anyone have any good recommendations for a quiet high capacity sump pump? I want to upgrade before I sink a bunch of money into finishing my basement.

2018-07-20 03:19:15 UTC

My current pump is a 1/2hp and it barely keeps up on rainy days. I also already have a water powered emergency backup but I'd rather not have that run unless it has to.

2018-07-20 03:23:35 UTC

Also it definitely occurs to me that this probably isn't the right channel to ask this question in but we don't have a plumbing channel.

2018-07-20 22:08:57 UTC

@Der Seeteufel - SD good point, created: <#469988837175721985>

2018-08-05 23:59:28 UTC

https://cdn.discordapp.com/attachments/352761432833523713/475815136439959552/unknown.png

2018-08-05 23:59:42 UTC

Lol I was checking our zimbra logs one day and noticed a static IP constantly deauthing

2018-08-06 00:00:04 UTC

It was out of china but wasnt from one of our offices and was trying to login under generic user names, so I blacklisted it on our gateway

2018-08-06 00:00:26 UTC

Its been 6 days and the bot on whoevers foreign server has tried to auth in to our zimbra server over 10k times

2018-08-06 00:02:03 UTC

@Deleted User haha. Good thing you're there.

2018-08-06 00:03:59 UTC

yeah lol, I've also noticed there are a lot of chinese command and control servers being hosted out of israel

2018-08-06 00:04:25 UTC

usually they appear to just be servers that the israelis havent apparently checked in a while and theres ching chong gibberish that comes back whenever you request data from one of their services

2018-08-06 00:06:12 UTC

I set up VPSes on DO sometime, and almost immediately when they start they get pummeled by URL and port scanners from who knows where. It's not a major problem as long as your username/password isn't admin/admin

2018-08-06 00:07:04 UTC

you can pcap with something like pfring if you have a ton of data. Usually I sniff the incoming traffic and filter for all of our site gateway IPs or NAT address and then blacklist almost everything else if its outside of the US

2018-08-06 00:09:45 UTC

Yeah depending on the Use case I have different types of auth, but usually it's just ssl+basic auth behind an Apache proxy for services and UFW for ports I don't want open

2018-08-06 00:10:20 UTC

have you ever used nginx?

2018-08-06 00:10:48 UTC

Not really, I know it's popular but I always use Apache

2018-08-06 00:11:34 UTC

yeah the companies at the end of its static IP range but I need 3 new services up. Im working on a reverse proxy with nginx for bitbucket, confluence, jira and maybe an ovpn AS for a subdomain. Learning it on the fly and getting it fully functional is a bit of handful with the other side projects I have going.

2018-08-06 00:11:56 UTC

also working on starting an on prem voip service, but you have to be way too smart to do it straight from asterisk

2018-08-10 17:31:28 UTC

Is there a way to track clicks on third-party sites?

2018-09-07 22:06:07 UTC

<@&435155896780324864> How do you (git) version control crontab files and configuration files in /etc on Linux/Unix systems?

2018-09-07 22:06:42 UTC

lmao dude idfk why do I have the tech tag

2018-09-07 22:07:17 UTC

@John O - You probably contributed to something in the channel at some point, I'll remove it from your roles.

2018-09-07 22:07:27 UTC

Thanks man

2018-09-07 22:39:47 UTC

@John O - needs his electrician tag haha

2018-09-07 23:37:13 UTC

@RevStench he has it!

2018-09-07 23:51:28 UTC

Weird, I don't see it?

2018-09-07 23:57:02 UTC

@RevStench on mobile hold your finger on his username, on computer hover the mouse on his username. You have the electrician role too by the way. You have a lot of roles.

2018-09-08 00:12:36 UTC

Crazy, I can see everyone else's tags. But ok, you're the man @ThisIsChris, well not THE man๐Ÿ˜‚

2018-09-24 01:51:34 UTC

Anyone here have formal training in GIS? I am going to have some education grant money left over next semester after I get my bachelors and I think getting some kind of GIS cert or training would be my best bang for buck economically.

2018-09-24 02:26:13 UTC
2018-09-24 02:26:49 UTC

Geographic Information Systems

2018-09-24 02:27:19 UTC

Is that like surveyors? @Wood-Ape - OK/MN

2018-09-24 02:27:29 UTC

Or like GPS?

2018-09-24 02:30:36 UTC

Yes. GPS is one type of GIS software, afaik

2018-09-24 02:31:48 UTC

Didn't know if anyone here had certifications or knee of the best method. My goal is to use it to fast track to grad school and/or get a higher paying job in the natural resources or recreation field

2018-09-24 02:33:01 UTC

@Wood-Ape - OK/MN If it were a year from now, I could help you, haha. But for the time being, no cigar. I know Esri (the producer of ArcGIS, an industry standard,) offers some courses. Went through and wasn't impressed with their free 'demo' or broad introductory course though.

2018-09-24 02:35:39 UTC

I mean I'll be taking a couple of courses for my major. And I know that a lot of federal agencies have a GIS department or personnel. It sounds like a good idea though, better than many other minors, particularly Comp.Sci IMO

2018-09-24 02:36:19 UTC

I believe most all GIS software utilizes C++/Python Coding and terminal-type inputs as well

2018-09-24 02:36:36 UTC

(as an alternative or supplement to the GUI)

2018-09-24 02:36:40 UTC

Ah, I was wondering if there were any legit online and/or free courses

2018-09-24 02:37:55 UTC

There's definitely some out there, get your hands dirty with open source alternatives, but yeah wish I knew the best one. At least you've got the grant money.

2018-09-24 02:38:09 UTC

Good luck though!

2018-09-24 02:39:34 UTC

Thanks... I really wanted to use July grant money on a Wilderness EMT class or maybe a two month bushcraft school, but maybe that isn't wise. I am always trying to learn more skills so I can eventually have a family and be undoxxable

2018-09-24 02:44:13 UTC

Last thing I'll say; always remember that paying debts or saving for a down payment on a house/car etc. is an option!

2018-09-24 02:44:47 UTC

Or even day trading stocks, an investment, etc.

2018-09-24 02:45:49 UTC

The aforementioned money is AmeriCorps grant. Very restricted usage and a built in expiration date. Otherwise I definitely would have bought an acre or three

2018-10-07 05:30:57 UTC

Udemy has some great courses for cheap. I don't know if they still do $10 sales, the floor seems to have moved up to 12. Still cheaper than college.

2018-10-08 21:33:35 UTC

Microsoft Edge PDF reader question: you can type notes on PDF documents, but how do you print the notes?

2018-10-09 08:11:59 UTC

Sorry not experienced with Edge as I don't use it, let alone for PDFs, but I'd expect it to be a near-barebones PDF reader at this point. Can you find any options directed at the PDF reading function of Edge? If not, what about the ability to export PDFs from Edge to say...PNG files? Maybe it will export the notes into the image too.

2018-10-09 08:13:44 UTC

The most vulgar/inconvenient way to do it would be screenshots saved as images then printed out, without a lot of tweaking it will look bad but you will get those notes...

2018-10-09 12:32:16 UTC

@wolfwood ty for reply. I canโ€™t seem to find the function, but I donโ€™t know why they would have a notes option if you canโ€™t print the notes

2018-10-09 21:33:24 UTC

@ThisIsChris Can I constantly ping an endpoint using a personal computer? Do I need some kind of server set up? Or do I just need a program running constantly in the background?

2018-10-09 21:36:40 UTC

@Jacob yeah you can constantly ping an endpoint using a personal computer. Some endpoints have a rate limit (usually pings per minute or pings per hour) after which point they will tell you that they won't respond with useful information until you slowdown. But the first step is to try pinging it constantly and then only adjust things if you run into an issue

2018-10-09 21:38:29 UTC

Okay this bot idea might actually be easier than I expected

2018-10-09 21:39:32 UTC

Here's the concept:

2018-10-09 21:39:35 UTC

> create a bot that crawls r/changemyview
> send my a notification every time someone makes a post or comment on immigration
> have a document with responses to all the pro-immigration arguments
> literally just copy paste

2018-10-09 21:40:05 UTC

This could actually influence public opinion with minimal effort. I could make it impossible to be pro-immigration without being met with opposition.

2018-10-09 21:41:36 UTC

If I want it to take it a step further, I could potentially not even read the comments myself, and just have the bot send an automated response based on key phrases. For example, if the bot finds "immigration grows the economy", it could send a canned response explaining the difference between GDP, per capita GDP, and per capita GDP adjusted for inequality.

2018-10-09 22:04:13 UTC

@Jacob that's a good idea, though if you automatically post a canned response then they will probably ban your boy from posting in the subreddit. Btw if you want to *post* then you'll need a Dev account for your not, and you'll probably want to use PRAW though it's not strictly necessary. Checkout r/redditdev for more info. If you just want to scan comments though then you don't need the dev stuff. That's what I do, scan comments and then send an email to myself and whoever whenever keywords are found that O might want to respond to. Then I do have canned responses that I copy and paste but I usually edit the opening sentence to make it relevant to the post I'm responding to. I did that a lot to teach people about how what is usually seen as white privilege is actually just Jewish privilege

2018-10-09 22:13:50 UTC

Ya using the bot to post canned response might be a bit much

2018-10-09 22:22:32 UTC

It's probably not necessary to go that far anyway. It's not like it's a lot of work to go into my document, copy paste, and maybe switch out a few words.

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

2018-10-12 05:18:19 UTC

@Jacob `data` is an Object, how do you know it implements the Comparable interface?

2018-10-12 05:18:37 UTC

```java
javac Tester.java
./CDoublyLinkedList.java:155: error: cannot find symbol
(sortedCurr.data.compareTo(curr.data) > 0)) {
^
symbol: method compareTo(Object)
location: variable data of type Object
1 error
```

2018-10-12 05:21:28 UTC

is there a way I can make it implement comparable class?

2018-10-12 05:21:39 UTC

I'm not sure how much I'm supposed to modify this assignment

2018-10-12 05:21:50 UTC

or is there a better way to do insertion sort?

2018-10-12 05:39:58 UTC
2018-10-12 05:42:01 UTC

You can try to call the compareTo method and then catch an Exception if compareTo is not implemented

2018-10-12 05:43:58 UTC

how do I do that?

2018-10-12 05:44:30 UTC

I feel like there's a better way that I'm missing, since this is part of the assignment and I don't think he wants us to modify the given code

2018-10-12 05:44:40 UTC

well, besides filling in the methods

2018-10-12 05:49:26 UTC
2018-10-12 05:50:20 UTC

maybe I could cast the object?

2018-10-12 05:50:26 UTC

the tester class only uses characters

2018-10-12 05:52:11 UTC

@Jacob Cast it as Comparable?

2018-10-12 05:52:24 UTC

or maybe as a char

2018-10-12 05:52:30 UTC

or integer if that's possible

2018-10-12 05:52:32 UTC

I don't know

2018-10-12 05:53:08 UTC
2018-10-12 05:54:06 UTC

@Jacob
line 4
```java
private Object data; //Assume data implemented Comparable
```

2018-10-12 05:54:23 UTC

OK... you can assume that, but Java is going to want that declared somewhere

2018-10-12 05:54:31 UTC

or it will refuse to compile

2018-10-12 05:54:44 UTC

I think he really may want you to try/catch

2018-10-12 05:54:54 UTC

God

2018-10-12 05:54:58 UTC

I did this stuff like two years ago

2018-10-12 05:55:11 UTC

I got a Java developer certificate when I graduated high school

2018-10-12 05:55:16 UTC

and we did try catch and everything

2018-10-12 05:55:26 UTC

```java
try {
your code;
}
catch Exception {
//leave empty lol
}
```

2018-10-12 05:55:27 UTC

we also did Linked Lists I think

2018-10-12 05:55:40 UTC

put that inside the method?

2018-10-12 05:55:52 UTC

the entire method? @ThisIsChris

2018-10-12 05:56:34 UTC

I'd put the `try` at line 148, just before the while loop, don't want that thing to go on catching exceptions forever waiting for the loop to break

2018-10-12 05:56:49 UTC

so put the entire loop inside it?

2018-10-12 05:58:28 UTC

so
```java
try {
//lines 149-163, the whole outer while loop, until just before the function ends
}
catch Exception {
//leave blank because we're supposed to assume nothing will happen
}
//then exit the function
}
``` @Jacob

2018-10-12 06:00:16 UTC

thanks

2018-10-12 06:00:21 UTC

okay now I have a new exception

2018-10-12 06:00:43 UTC

here is my new code

2018-10-12 06:00:47 UTC

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

2018-10-12 06:01:06 UTC

```java
------------------testAddLast()----
Exception in thread "main" java.lang.NullPointerException
at MyLinkedList$ListNode.access$2(MyLinkedList.java:11)
at MyLinkedList.add(MyLinkedList.java:205)
at MyLinkedListTester.testAddLast(MyLinkedListTester.java:42)
at MyLinkedListTester.main(MyLinkedListTester.java:214)
```

2018-10-12 06:01:10 UTC
2018-10-12 06:02:12 UTC

That's good, different errors now

2018-10-12 06:02:21 UTC

Unfortunately it's 2am here so I have to get to bed

2018-10-12 06:02:39 UTC

okay thanks for your help

2018-10-12 06:02:41 UTC

good night

2018-10-12 06:02:52 UTC

good night

2018-10-12 06:02:59 UTC

by the way

2018-10-12 06:03:03 UTC

for googling purposes

2018-10-12 06:03:34 UTC

what I suggested with "try to see if it works, catch an exception if it doesn't" is called "duck typing" so for more info you can google "duck typing in java"

2018-10-12 06:04:24 UTC

The idea of a function that can take in anything that implements a function (like the sort function that works on any node data that implements a `compareTo` function) is called "polymorphism"

2018-10-12 06:04:59 UTC

though googling "polymorphism in Java didn't present any helpful examples to your problem, maybe you'll have better luck

2018-10-12 06:05:01 UTC

ok good night

2018-10-12 06:05:33 UTC

thanks a lot

2018-10-12 06:05:35 UTC

good night

2018-10-13 05:14:50 UTC

@ThisIsChris When you run the Reddit script, do you also get a bunch of duplicate comments?

1,350 total messages. Viewing 250 per page.
Prev | Page 4/6 | Next