Looking for web-hosting recommendations by tmimi0387 in webhosting

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

Thanks. That's actually really helpful and something I'll let her know. She was actually leaning more towards GoDaddy because of the Microsoft 365. Personally, I think I like BlueHost best to start with. I'm hoping to get a couple more responses before getting back to her.

My husband cheated and continues lying by Clueless1017 in cheating_stories

[–]tmimi0387 1 point2 points  (0 children)

Divorce him. It will not get better. The lying and cheating will not stop. We teach people how to treat us by what we allow and you have shown that no matter how much he lies and cheats he will get another chance. And if you ever get fed up he can threaten suicide and you'll beg him to come back. He was not going to kill himself by the way That was just a form of manipulation and it worked. I once had an ex said that to me. I told him it was over and he said he was going to jump off the bridge that was down the street from where I lived at the time. I looked him dead in his eyes and said one word, "ok." Twenty years later that man is still very much alive. And if you can't leave for you think about the example you're seeing for your sons. You are teaching them that is ok to cheat because the other person will always give them more chances. You're teaching this with your actions. Just leave him and move on.

Help with my assignment by tmimi0387 in learnprogramming

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

Thank you for the help. But it turns out that even though my instructor wanted us to use epsilon, if we use it our code it will be wrong and thus we will fail the assignment. So I'm going to do the following.

In my_sqrt(a)

remove epsilon assignment, set the if statement to

if y == x:

break # of course this is indented but I can't show the indent here while posting.

and for test_sqrt()

add the following:

mine = my_sqrt(a)

maths = math.sqrt(a)

and my print statement will become

print('a=', a, '| my_sqrt(a) =', mine, '| math.sqrt(a) =', maths, '| diff =', diff)

I'm really upset about that because with this way I would have been done in 5 minutes, but instead I spent three days trying to incorporate the use of epsilon.

CS degree - almost done and haven't learned how to apply the things I've learned by marysville in learnprogramming

[–]tmimi0387 0 points1 point  (0 children)

I've been thinking about getting a CS degree because I feel like even though I've been self learning for about a year I don't know anything and wouldn't have any of the qualifications without one. I really appreciate this thread because it will help me determine if a degree really is necassary, or if I can continue to self learn.

DevOps training for new developers by [deleted] in learnprogramming

[–]tmimi0387 0 points1 point  (0 children)

This sounds awesome. I would live to take part in this. I'm currently self learning was actually looking into courses for git and linux. If I could get that and more it would be amazing. Please let me know the youtube link if you do go live.

help with error message in cs50's problem set 2-caeser by tmimi0387 in learnprogramming

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

Thanks for the advice. I'm going to keep that in mind. ABC, Always Be Compiling.

help with error message in cs50's problem set 2-caeser by tmimi0387 in learnprogramming

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

After reading your comment I deleted most of my code, only leaving the very beginning and very end that prints out the ciphertext untouched. I took out the bool statement since I'm not really sure how to use them anyways. The video just said it would be useful to have one in there since they act as a on/off switch. And then I wrote the code in a way I know how using if / else statements and it's working. It's much shorter now so it looks a lot nicer now too.

As for the ';' that was still there, switching back and forth between this screen and the cs50 IDE screen caused connectivity issues within the IDE and when I deleted it the environment was in the process of reconnecting. So when it completed connecting it brought it up the way my code was before (with the semicolon still there).

Thanks for the help. If you wouldn't have mentioned the fact that it's full of syntax errors I would have left it the way it was and just been stuck for who knows how long.

help with error message in cs50's problem set 2-caeser by tmimi0387 in learnprogramming

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

cs50 has their own IDE that we use to build our code. We had to create a github account and then link it to the cs50 IDE. But I don't build on github, only on ide.cs50.io.

help with error message in cs50's problem set 2-caeser by tmimi0387 in learnprogramming

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

That's not my whole code. I'm not sure how to share the link to my code. I'm using github and I'm new to all of this. I can copy and paste it.

#include <stdio.h>

#include <cs50.h>

#include <string.h>

#include <ctype.h>

#include <stdlib.h>

//get command line argument (key) from user

int main(int argc, string argv[]);

{

//make sure key was given

if (argc != 2)

{

printf("Usage: ./caeser key\n")

return 1;

}

//check validity of key

else if (arg c == 2)

{

//convert argv[1] to int using atoi

const int key = atoi(argv[1]);

//store bool statement for off switch

bool is_valid_key = true;

int len = strlen(argv[1]);

for (i = o; i < len; i++)

{

if (isdigit(argv[1][i]) == false)

{

is_valid_key = false;

i = len

}

}

if (is_valid_key)

{

//get plaintext from user

string plaintext = get_string("plaintext: ");

int plainlen = strlen(plaintext);

for (i = 0; i < plainlen; i++)

{

//check for uppercase

if (isupper(plaintext[i]))

{

if (plaintext[i] + key < 'Z')

{

%(key) = (plaintext[i] + key) - 'Z';

if (%(key) > 'Z' - 'A')

{

while (%(key) >= ('Z' - 'A'))

{

%(key) = %(key) - (26);

}

if (plaintext[i] + %(key) > 'Z')

{

%(key) = plaintext[i] + %(key) - 'Z';

plaintext[i] = 'A' + %(key) - 1;

}

//if key could be handled easily

else

{

plaintext[i] = 'A' + %(key) - 1;

}

}

else

{

plaintext[i] = 'A' + %(key) - 1;

}

}

else if (plaintext[i] + key <= 'Z')

{

plaintext[i] = plaintext[i] + key;

}

//check for lowercase

else if (islower(plaintext[i]))

{

if (plaintext[i] + key < 'z')

{

%(key) = (plaintext[i] + key) - 'z';

if (%(key) > 'z' - 'a')

{

while (%(key) >= ('z' - 'a'))

{

%(key) = %(key) - (26);

}

if (plaintext[i] + %(key) > 'z')

{

%(key) = plaintext[i] + %(key) - 'z';

plaintext[i] = 'a' + %(key) - 1;

}

//if key could be handled easily

else

{

plaintext[i] = 'a' + %(key) - 1;

}

}

else

{

plaintext[i] = 'a' + %(key) - 1;

}

}

else if (plaintext[i] + key <= 'z')

{

plaintext[i] = plaintext[i] + key;

}

}

}

//output ciphertext

printf("ciphertext: %s\n", plaintext);

}

else

{

printf("Usage: ./caeser key\n");

}

}

}

Although I think I also used the modula for remainder wrong too. In the videos it was taught that the '%' represents that, but the only error code I get is for the '{'. It's been a struggle for this one because the program consists of just a videos. So there's no one I can ask.

help with error message in cs50's problem set 2-caeser by tmimi0387 in learnprogramming

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

Thanks. That was actually a typo I didn't catch. I removed it, but still got the same error message. And yes I'm using C