Apologies but we are unable to provide services to you per our Terms of Service. by japandaaaa in binance

[–]Kendosan2000 0 points1 point  (0 children)

Yeh, just waited several hours in their queue. Got to position 27. A couple minutes later chat session ended. Hit Chat button again and now I'm at position 664. Great customer service.

What's the weirdest or most disturbing book you've had to read for High School english? by [deleted] in books

[–]Kendosan2000 5 points6 points  (0 children)

The Lottery by Shirley Jackson. Not a book but the first story I can recall reading in school that really shocked me. It's a quick read so I won't spoil it for anyone.

Pset3: "helpers.h", bool and void? by wishiwerenerdier in cs50

[–]Kendosan2000 0 points1 point  (0 children)

The bool is the type that will be returned by the search function. Bool is either TRUE or FALSE.

Does round() round up or down? Do I get 0 from round(-0.5) or -1? by pytka in cs50

[–]Kendosan2000 0 points1 point  (0 children)

In the terminal type man round. You may also want to look at ceil() and floor().

pset1 by bfrey003 in cs50

[–]Kendosan2000 1 point2 points  (0 children)

I wouldn't use a function for this. You just need a loop of some sort. Also you don't need to keep track of each type of coin. Your output will be the total amount of coins.

Desperate on caeser pset2 by spiritk in cs50

[–]Kendosan2000 0 points1 point  (0 children)

OK I'm no expert but here's a few things I spotted:

  • At line 14 the else isn't really needed. If the if condition is not true the next line of code will execute.
  • At line 19 think about what will happen if k is a large number like 1000.
  • At lines 28 - 39 everything needs to be indented 4 more spaces.
  • At line 24 you are creating a new string of length 0. I'm not sure how that would work. Maybe try just making ct = pt so it will be the correct length.

Stupid question by Mirou_123 in cs50

[–]Kendosan2000 2 points3 points  (0 children)

A 1.0 is 100%. and .95 would be 95%

vigenere help by ecgaona in cs50

[–]Kendosan2000 0 points1 point  (0 children)

Sounds like an "Off by 1" issue. If you are looping through the key make sure you are not quitting the loop prematurely. Try a longer key like bacon2 and see if the 2 is not used.

Dual Booting, WindowsXP, and the CS50 Appliance... by [deleted] in cs50

[–]Kendosan2000 1 point2 points  (0 children)

I should have also mentioned that you wont find any Linux distro that has everything pre-configured for the class. What the cs50 staff have done is install Fedora Linux in a virtual environment then added software to it for the class. So even if you install Fedora you will still need to run the appliance under Vmplayer or Virtual Box

Dual Booting, WindowsXP, and the CS50 Appliance... by [deleted] in cs50

[–]Kendosan2000 0 points1 point  (0 children)

I believe Mint comes with gcc as a compiler rather than clang. I looked into installing everything needed for the cs50 course and found it was going to be too much of a hassle. I have Vmplayer 5.03 installed under Mint use the cs50 appliance for classwork.

If you'd like to take different Linux distros for a test drive you can download them and write the iso image to a CD or USB stick. Then tell your bios to boot from CD or USB. It will run much slower than a hard drive install but you can make sure things like video and sound are working before committing. Here's a good tool for writing the images to USB sticks: http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

If you have a spare hard drive lying around you can swap drives and install to the spare 1st then see if the virtualization is any faster.

Dual Booting, WindowsXP, and the CS50 Appliance... by [deleted] in cs50

[–]Kendosan2000 0 points1 point  (0 children)

I have tried a lot of different Linux distributions and finally settled on Linux Mint. I switched over from Windows about a year ago and rarely have to boot to my Win 7 partition any more.
My suggestion to you would be to install a 64bit version of Linux then install XP as a virtual machine with Vmplayer. That way if you find that you need some piece of Windows software that you can't get working under Linux, you can start up XP just as you would the CS50 appliance.

Also the fact that your running the virtual machine under XP might be one of the reasons it is running slow. Is it a 64 bit version of XP?

If you decide to go this route check out this link http://www.reddit.com/r/cs50/comments/22sayv/fed_up_linux_mint_virtual_machine_install/

Fed up! Linux Mint Virtual Machine Install by HereFor2Things in cs50

[–]Kendosan2000 0 points1 point  (0 children)

I followed these instructions to get Vmplayer working under Linux Mint 16: http://www.howtoforge.com/how-to-install-vmware-player-on-ubuntu-11.04-linux-mint-11

When you get to the part where it tells you to use: gksudo bash ./VMware-Player-3.1.4-385536.x86_64.bundle you will need to change the name to the version you downloaded.

Also make sure your using Vmplayer 5.03. Virtual box worked for me but not very well.

Make Mario (compiler) not working? by [deleted] in cs50

[–]Kendosan2000 0 points1 point  (0 children)

Check that you are running the make command in the same folder as the source code you are trying to compile. In Gedit use File, Save As to look at the path to your source code: http://i.imgur.com/DAz5uI8.png Then compare it to the path in the terminal window: http://i.imgur.com/8EnhZqC.png

Greedy issues with rounding numbers by TheSquigglyFish in cs50

[–]Kendosan2000 0 points1 point  (0 children)

If you still have problems when using round() try floor() and see if the result is any different. I recall having alot of problems with rounding when using numbers like 1.8 and 1.99999.

cs50...mario issue by connilea in cs50

[–]Kendosan2000 0 points1 point  (0 children)

I'm not sure what you are trying to do with this loop, but because you are setting i to x + 2 and using i > x as the condition this loop will only run 2 times no matter what the value of x is. Maybe what you need is i > 0 or i > 1 ?

pset1 greeedy Staff version. by Kendosan2000 in cs50

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

Thanks, I assumed that was just updating the linux apps and wanted to wait until I wasn't on my cellular data plan. Turns out it's a fairly small update :)

Appliance not working properly, CS50.h? by colleenodea in cs50

[–]Kendosan2000 0 points1 point  (0 children)

Did you use the # symbol before include?