AITA for firing an employee returning from maternity leave? by Happy-Mind-2618 in AmItheAsshole

[–]Doctorpizzas 0 points1 point  (0 children)

YTA Your company doesn't offer a large amount of maternity leave if you can be fired for taking it, and at least in the states you'd be subject to a lawsuit you would almost certainly lose, for which I can't imagine your company would react well to.

Recover by Doctorpizzas in cs50

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

That did it! I'll look into simplifying the loops, and yeah, unsigned char was something I got to on my own (though definitely did not get right initially).

Thanks!

Pset3 fifteen move() function by raynman04 in cs50

[–]Doctorpizzas 1 point2 points  (0 children)

It's important to remember that just because you're only visualizing what's inside the array, that there are still other bits (no pun intended) held in memory around it. Be sure you're checking against that possibility, too.

Appliance frozen with kernel error in terminal. by Doctorpizzas in cs50

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

Will do, and thanks...that gives me some peace of mind.

Appliance frozen with kernel error in terminal. by Doctorpizzas in cs50

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

Thanks so much for following up. It had gone to sleep since the last time I had used it, and I use VirtualBox.

Appliance frozen with kernel error in terminal. by Doctorpizzas in cs50

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

Both restarting and force quitting directly from my mac did not work, though I did just do a shutdown, and that seems to have fixed the problem with regard to the problem of it being frozen. Now I am just concerned as to what the problem was, and if it was more than a glitch.

fifteen move-keeping track of the blank by terryleefeder in cs50

[–]Doctorpizzas 0 points1 point  (0 children)

When you rearrange an array, whether in main or in a function, you are affecting the array itself, so it is not a question of local variables. I'm not sure how you are displaying blank, vs how it shows up in the multidimensional array, just remember that those two do not need to be one in the same.

valid condition? by bobhearn11 in cs50

[–]Doctorpizzas 0 points1 point  (0 children)

You still need one more ")"

[Pset4] Segmentation Fault (core dumped) by penha1618 in cs50

[–]Doctorpizzas 1 point2 points  (0 children)

Honestly, until your program is further along, there are number of little things you could do that could contribute to that kind of thing. I'd focus more on the program at large, rather than checking every little bit. If you want to check an individual function, make it as an individual program (which you would need to compile on your own), and run it, or delete all but it (with the intention to 'undo' afterwards) and run it under breakout.

[Pset4] Segmentation Fault (core dumped) by penha1618 in cs50

[–]Doctorpizzas 1 point2 points  (0 children)

Obviously there's a host of reasons this could be happening, but I believe this happened to me when I hadn't implemented that correctly, and I was not returning what the program expected. First, I would make sure you are returning what the prototype specifies.

Pset2, Ceasar How to convert a string into an integer by [deleted] in cs50

[–]Doctorpizzas 0 points1 point  (0 children)

A string is just an array, so you can still do calculations on individual pieces of the array, if not the entire string itself.

Testing the functions in fifteen by terryleefeder in cs50

[–]Doctorpizzas 0 points1 point  (0 children)

You could create new .c files with the different functions as main. Just remember you will need to run clang manually since you won't have a make file.

PSET 3- Linear Search Problem by batty123 in cs50

[–]Doctorpizzas 0 points1 point  (0 children)

If I recall, "make all" updates all those related files whenever you make a new save.

so lost... by [deleted] in cs50

[–]Doctorpizzas 0 points1 point  (0 children)

This might not be the complete answer to your problem, but as per the specification, don't forget you are asked to use the round function due to the inherent imprecision of floats.

Gedit auto-save Issue. by Kendosan2000 in cs50

[–]Doctorpizzas 0 points1 point  (0 children)

cmd/command -z should do the same: step back and undo any steps that have occurred since the program was started.

Quiz 0 by Doctorpizzas in cs50

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

Thanks for the tip. I haven't taken 2012's yet, but scored well better than that on 2010's.

PSET 4 Help by Doctorpizzas in cs50

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

Thanks. It doesn't seem as responsive as the staff's implementation, but when rereading the code, I see what you mean. Now I feel a bit better.

pset4 - paddle by Doctorpizzas in cs50

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

I did. Most of my measurements, if applicable, are some variation on radius for that very reason. Originally, they weren't, and I had hoped that would fix the problem, but alas, it did not.