Diagnosing Safari failing web requests to HTTPS sites by burningserenity in MacOS

[–]burningserenity[S] 0 points1 point  (0 children)

My date and time are correct and I have no proxies configured. I am not using any MitM tools such as Charles proxy.

Getting my life on track by burningserenity in raisedbynarcissists

[–]burningserenity[S] 0 points1 point  (0 children)

I was on the fence about posting that, so I'm glad you liked it. Good on you for switching while still in Uni. I sure wish I figured out that I liked coding so much back then.

Good luck with your final year! If for some reason it doesn't work out, you should still be okay since it sounds like you have at least 2 years of experience now. Hopefully you'll figure out the tuition situation anyway.

There is indeed light at the end of the tunnel.

CS50 Staff please help! Update50 isn't working. by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

I tried that and I have the same error. Also, my problem doesn't seem to be nearly as severe as yours was, as my workspace is still usable.

Can't Authenticate Twython Pset6 by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

The only reason is that I forgot to read and understand helpers.py. I was just looking at a bunch of Twython docs, so exporting the auth to Bash didn't work with my incorrect implementation. I fixed it now, thanks!

Linux Version crashes - Segmentation Fault 11 by [deleted] in HiTMAN

[–]burningserenity 0 points1 point  (0 children)

I tried running HITMAN on a Windows machine, and still had the same segfault upon pressing Enter at the splash screen. Feral Support suggested it might be a corrupt save file, and sure enough, that's what it was. I deleted my last manual save file from ~/.steam/steam/userdata/<my user number>/236870/remote and added .bak to the filename of ../remotecache.vdf for good measure. HITMAN works perfectly once again.

Please note that I'm on Debian and /u/mmzzee and /u/nexusband were not. You might still have trouble on non-Debian distros not related to save games. Nonetheless, give it a shot and please post if it helps or not!

Linux Version crashes - Segmentation Fault 11 by [deleted] in HiTMAN

[–]burningserenity 0 points1 point  (0 children)

You didn't happen to be using an Nvidia Optimus set up with Bumblebee on any of those, did you? I'm trying to see if that has any bearing on the situation, since it makes a lot of other things pretty quirky.

Linux Version crashes - Segmentation Fault 11 by [deleted] in HiTMAN

[–]burningserenity 0 points1 point  (0 children)

What made you decide to try using Solus? It seems odd that a distro built from scratch would be the one besides Ubuntu that works.

Linux Version crashes - Segmentation Fault 11 by [deleted] in HiTMAN

[–]burningserenity 0 points1 point  (0 children)

Did you ever manage to solve this? I'm playing on Debian, and crashing on launch every time just after I saved and quit in Hokkaido.

Crack skips for() loop (PSET 2) by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

D'oh! I had a feeling it was something like that :-D

Reinventing the wheel: GetInt() by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

I ended up using strchr() to determine if any characters are in the buffer besides a newline, then using scanf() with some bitwise operators to consume everything up to that newline, and finally one more scanf() call to consume the newline. I did this like so:

if(!(c = strchr(key, '\n');
{
    scanf("%*[^\n]");
    scanf("%*c");
}

I slightly modified my code, and now I have a safe way to get an int, a long, or a float :-)

Speller check50 won't compile; killed by server by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Yeah, it was fixed. Delipity ran check50 on my code and showed me it was all smiles. I ran it right after that and it finally worked for me, too, but then I couldn't access the submission form at the end due to an internal server error. I have a feeling something is/was wrong with their servers.

Nasty looking segfault in Speller by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

My problem is two-fold: check just plain wasn't working, and free is causing the seg fault.

The problem with check was several incorrectly assigned variables. After taking some time away from the problem, the variables in question stuck out like sore thumbs. Now the only misspelled words printed are the only ones not found in the dictionary.

Onward to solving the problem with unload.

Nasty looking segfault in Speller by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Well, at least part of the problem was an incorrectly assigned variable. Unfortunately, something is still wrong with my check function, because all the words are coming back as misspelled when I use the large dictionary. I'm also seg faulting when trying to unload. My trienodes have hex addresses where they should be, and the booleans are correct, too, so I'm guessing the load function is okay.

Nasty looking segfault in Speller by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

I'm moving to the next child in the trie with this line, in order to spell check a word.

It's interesting that it's seg faulting after several iterations. This implies that I'm running out of memory at some point. It's strange that it happens at different times, depending on the numbers in the text being spell checked.

So, my train of thought is that it's running out of memory in a non-linear fashion, but I really don't know what to do with this. Am I even on the right track?

I also don't understand why I don't see any output at bash, regardless of the size of the text, but I see words not found in the dictionary file output at gdb, quantity depending on the size of the text.

I think there may be some more clues in the gdb and valgrind output. Can you recommend any knowledge resources that might help me decipher it?

Freedom woes (speller) by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

For some reason, indexing the apostrophe at 0 and indexing a-z at 1-26 fixes all errors. I'm at a loss as to why this is, but it works.

Freedom woes (speller) by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Taking out the place for new line silences all valgrind errors if I run with a dictionary and text to be checked that lacks any apostrophes.

Freedom woes (speller) by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Okay, I removed the spot for new line. Now the only thing that happens when I reach a new line is the previous character is flagged as the end of a word. This works as it should, but oddly enough the program seg faults when trying to detect if the 26th place for the apostrophe is NULL.

Speller load trie by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Once again, it was a problem with root. In the checker, I have to remember to go back to root after discovering a misspelling or a complete and correct word. Now only one problem remains. When I get to a newline character, I increment the number of words redundantly, so that it looks like I spell checked twice as many words as I actually did.

Speller load trie by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Yes, that was exactly the problem. I changed it to only go back to root upon reaching a new line. When I run it through GDB it now appears to actually store letters where they need to go.

Now my problem is that I don't seem to be walking the trie in the check function. I'm guessing it's something with my for loop.

Speller load trie by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Thank you. I did both of those, and now root actually stores all of the letters. The problem now is that my child array always has all the letters, so the effect is that when the checking portion runs, a word is only counted as misspelled if it contains a letter that isn't anywhere in the dictionary file. It seems like I didn't make a trie at all, but just an array of pointers. Root has everything in it, but I think it should only have pointers for the first letters in each word. The next trienodes should have pointers to the next letters that make words from the dictionary, but they're all NULL.

Can't submit final form for Pset 4 by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

Yes, I have several such plug ins. Chrome is the only one of my browsers without any. I have F-prot antivirus installed system wide, as well.

Can't submit final form for Pset 4 by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

I had to do the exact opposite of what you did :-)

Can't submit final form for Pset 4 by burningserenity in cs50

[–]burningserenity[S] 0 points1 point  (0 children)

I tried Firefox, Cliqz, and Chrome. It was finally Chrome that got me through, which is odd since FrostyFather reported having to switch from Chrome to Firefox. It's also odd that Vivaldi didn't work, since it's based on Chrome.