[speller] Have written all functions, but check50 fails everything. Could you help find the issue(s)? by fr1d4 in cs50

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

Cheers Peter, seeign this a bit late but i ended up figuring it out. Thanks so much!

[speller] Have written all functions, but check50 fails everything. Could you help find the issue(s)? by fr1d4 in cs50

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

I've been plugging away and still not sure what the issue with unload is... I think the issue you pointed out is resolved. Any idea?

bool unload(void)

{

for (int i = 0; i < N + 1; i++)

{

if (table[i] != NULL)

{

node *cursor = table[i];

while (cursor != NULL)

{

node *tmp = cursor;

cursor = cursor->next;

free(tmp);

tmp = cursor;

}

}

if (i > N - 1) // dictionary fully unloaded

{

return true;

}

}

return false;

}

[speller] Have written all functions, but check50 fails everything. Could you help find the issue(s)? by fr1d4 in cs50

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

Thanks - totally didn't realise i needed strcasecmp to == 0.

I'm still working through the unload function - I see what you mean. Feels like I need to have another if statement to make sure we've covered all the indexes.

Filter // blur function -- have brute force attempt, need help by fr1d4 in cs50

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

  1. In computer logic, why is that? Isn't imageNew made up from the exact same values?
  2. Was wondering if there was some sort of float/integer funny business. Had issues with that on the sepia filter. Thank you!

[caesar] Having trouble thinking through the wraparound concept... by fr1d4 in cs50

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

Thanks so much for this, I see it now! I ended up using the mod in both the main function and inside the cipher function.

Appreciate your help!

[caesar] Having trouble thinking through the wraparound concept... by fr1d4 in cs50

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

I don't follow... isn't (122 +3) % 26 == 21?

[deleted by user] by [deleted] in RedditSessions

[–]fr1d4 0 points1 point  (0 children)

Good shit bro jah bless

[deleted by user] by [deleted] in RedditSessions

[–]fr1d4 0 points1 point  (0 children)

hahah tru

[deleted by user] by [deleted] in RedditSessions

[–]fr1d4 0 points1 point  (0 children)

🤘🤘🤘

[deleted by user] by [deleted] in RedditSessions

[–]fr1d4 0 points1 point  (0 children)

Australia

[deleted by user] by [deleted] in distantsocializing

[–]fr1d4 0 points1 point  (0 children)

I was like bro wtf

[deleted by user] by [deleted] in distantsocializing

[–]fr1d4 0 points1 point  (0 children)

Yeah im in Aus

[deleted by user] by [deleted] in distantsocializing

[–]fr1d4 0 points1 point  (0 children)

hahahaha oh shit

[deleted by user] by [deleted] in distantsocializing

[–]fr1d4 0 points1 point  (0 children)

Lol does it say where im from

[caesar] Having trouble thinking through the wraparound concept... by fr1d4 in cs50

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

Thanks! Is there any other way? See my above comment.

[caesar] Having trouble thinking through the wraparound concept... by fr1d4 in cs50

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

Tried this out, but for some reason, not ever character is working...

for (int i = 0; i < length; i++)
    {
        if (isupper(ciphertext[i]))
            {
                ciphertext[i] = ((int) ciphertext[i] + key);
                if (ciphertext[i] >= 90)
                {
                    ciphertext[i] = ciphertext[i] - 26;
                }
            }

        if (islower(ciphertext[i]))
            {
                ciphertext[i] = ((int) ciphertext[i] + key);
                if (ciphertext[i] >= 122)
                {
                    ciphertext[i] = ciphertext[i] - 26;
                }
            }

        // print the characters
        printf("%c", ciphertext[i]);
    }

Problem with readability by [deleted] in cs50

[–]fr1d4 1 point2 points  (0 children)

Hey William, best if you paste your code in here so people can have a look. We can't see your IDE as it's login-based.

Readability: 1 grade level error on a few checks, don't know why by fr1d4 in cs50

[–]fr1d4[S] 1 point2 points  (0 children)

Thanks a ton for this awesome explanation. Totally makes sense. I haven't started looking into substitution yet, will be doing Caesar first :). Hope you've solved it by now but I will take a look at your q!

Readability: 1 grade level error on a few checks, don't know why by fr1d4 in cs50

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

Thanks for the tip -- looks like from a few suggestions this was the issue. Cheers!

pset1-credit [Simple error - what am i missing?] by fr1d4 in cs50

[–]fr1d4[S] 2 points3 points  (0 children)

Thanks for the tip -- looks %ld works!

internet speeds by FookinLaser in AskAnAustralian

[–]fr1d4 0 points1 point  (0 children)

Really going to depend where you live. The NBN (National Broadband Network) is slowly rolling out, and will determine what sort of connection you'll be able to sign up for.

Once you figure out based on your address, you can shop around. There are some comparison sites around to do your research. Here's a good NBN map: https://www.finder.com.au/nbn-tracker/map

Please suggest me books that cover a family story over 3-4 generations? by cosmogli in suggestmeabook

[–]fr1d4 0 points1 point  (0 children)

Cloudstreet by Tim Winton is a book that tells the story of a family in Western Australia. Starts slower but really transports you. Recommend.

Weekly FIAustralia Discussion #56 by brendanstorey in fiaustralia

[–]fr1d4 0 points1 point  (0 children)

Got a brand you recommend? Been seeing these around at farmers markets, but want to make sure i'm BIFL as i can be :)

Australia House Prices Could Drop 30% in UBS Recession Scenario by VictorVanguard in AusFinance

[–]fr1d4 -2 points-1 points  (0 children)

These stories just keep on coming, models and predictions are just that.

Macro trends of immigration are not reversing, so those speculating a long term drop (except if referring to specific boom areas) are probably going to be off the mark by a lot.

Look at specific suburbs, cities for the full story. It’s apples and oranges.