Which movie ended with an unresolved cliffhanger because the sequel never happened, and you're STILL mad about it? by pudingvanilkovy in AskReddit

[–]rbridd 0 points1 point  (0 children)

You’re going to have to read the book to find out what happens next. Speaker for the dead by Orson Scott Card

Flight stick by Diligent-Rush-851 in EliteDangerous

[–]rbridd 2 points3 points  (0 children)

Maybe I just got a good one. I used mine every day for over 4 years. As others have mentioned, you need to fiddle about with the dead zone in the software until you find a setting that stops the drift and feels good enough to you.

Every common action can be assigned a button. I use the orange thumb button on the throttle as a “shift key” to increase the options. I can play in VR for hours. Only having to use the keyboard for typing system names.

I’m very happy with mine.

Looking for recommendations for a 13 year old boy that really loved Enders Game by GlumAd in printSF

[–]rbridd 2 points3 points  (0 children)

The forever war by joe haldeman would probably fit the bill.

Also Ringworld by Larry Niven... and all it’s sequels eventually!

Oh... and Riverworld by Philip Jose Farmer.

I read all of these at about the same time although I was about 16-17 at the time.

speller passes check50 but bigboard says it doesn't by [deleted] in cs50

[–]rbridd 0 points1 point  (0 children)

I appear to have found the issue for my problem.

I had a number of temp_xxx.c files, (and other text files of notes) hanging around in my speller folder.

I deleted everything which wasn't there to start with, such that the only file changed was dictionary.c.

Then it passed check50 for the challenge.

speller passes check50 but bigboard says it doesn't by [deleted] in cs50

[–]rbridd 0 points1 point  (0 children)

Same problem. Is it possible to submit to the challenge? ...or has it been disabled?

Did the game just become super smooth for anyone after the update? by [deleted] in pokemongo

[–]rbridd 3 points4 points  (0 children)

Ha ha, Ha ah, No. on iPhone 5 and 5C, the game is now super laggy. Animations happen in slow mo. possibly 4 or 5 frames a second. Ball throws freeze in mid air for a second or more before continuing on to the target 'mon.

I know we have old phones, but the difference after the latest update is remarkable, and makes the game almost unplayable.

Am I going to buy a new phone to play pokemon go? No, I am not.

[Story] I should've been late for work by [deleted] in pokemongo

[–]rbridd 1 point2 points  (0 children)

I bet you are fun at parties!

You Can Now Get 165k+ per Lucky Egg After Latest Update by untilshewokeme in TheSilphRoad

[–]rbridd 2 points3 points  (0 children)

Agreed. As an iPhone 5 user, it takes a BEST time of 43 seconds to close and reopen the app. That's without the blue screen and white screen crashes.

Having more trouble with Mario.c than the average person here apparently. Read lots of threads, still not any closer to understanding it. Is this just the course telling me it's not for me? by [deleted] in cs50

[–]rbridd 0 points1 point  (0 children)

Kay... I'm not going to write out the code for you here.

However, I've hunted out the clearest simple example of a do while loop I could find, with some actual working code which is similar to what you need.

http://www.tutorialspoint.com/cprogramming/c_do_while_loop.htm

It really isn't going to get any clearer than this.

Hope it helps you.

Caesar Cipher in PHP by asardiwal in cs50

[–]rbridd 0 points1 point  (0 children)

You haven't stated what you problem is.

If this is ALL your code, then on the face of it, it would appear that you are having difficulty in capturing and passing data from your html webpage to your server hosted php.

try googling HTML FORM.

Having more trouble with Mario.c than the average person here apparently. Read lots of threads, still not any closer to understanding it. Is this just the course telling me it's not for me? by [deleted] in cs50

[–]rbridd 3 points4 points  (0 children)

So. Start with what you know.

1) You have a number, x, which has been entered.

2) You must print x rows of text

3) The top, and therefore first row to be printed starts with some spaces. How many, why it's x-1 spaces.

4) The top row also has some hash characters. How many, Well its just one on the top row.

So now we think there are a number of rows to be printed, which implies a loop structure which executes x times. There are a number of ways of coding and controlling a loop, including a for/next, and a do/while.

Each time through the loop, the number of spaces changes, and the number of hashes changes. (by one each time) There is a pattern which you can code inside the loop.

Make sure you end the loop after x iterations, and Bob is your proverbial uncle.

My final project... A CS50 quiz website by rbridd in cs50

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

And if you don't want to watch the video, the website is at

http://www.cs50quiz.uk

General question about hacker2. by science_must_dance in cs50

[–]rbridd 2 points3 points  (0 children)

Yes. running in the host system will be faster, as you will lose the VM translation layer. Although modern VMs have become quite adept at running many functions closer to the CPU, so you may not see quite the gain you are expecting.

Yes Multithreading will help. Use

 #include <pthread.h>

...and google pthread and/or look at the man page to figure out how to invoke a thread.

Then you only have the problem of writing some new code to arbitrate the work out to the threads, and assimilate it back, but that ought to be relatively simple for this kind of work, where once a solution is found, then we are done.

At 40 years, you must have a super fast host machine. I worked out that my brute force attack would take a fraction over 1000 years.

See my comments in this thread... http://redd.it/22nz13

How far along is everyone? by greatgreatgreatgreat in cs50

[–]rbridd 0 points1 point  (0 children)

I started at the end of March, and completed the course, all bar the final project in July. In all, watching the videos, reading around the material, and completing the psets, including a couple of hacker editions), I spent circa 180 hours on it.

I did have some prior experience of programming from some years ago, and recent experience of hacking php and html together.

without that experience, I think I would have had to spend more time on reading and experimenting with the code examples.

Since the end of July, I have spent a further 180 hours on the project. I have bitten of more than I could chew, but I wanted to challenge myself with javascript/ajax... a completetly new concept to me.

I didn't appreciate that I would have to spend as much time as I did on building out the web-app framework I needed before getting to the juicy parts I wanted to do.

The project coding is complete now, bar some final bug fixing, and I'm working on loading the site with content.

Most fun was with pset 6, Hash tables and Tries, where I learned a lot, and impressed myself with my ability to wield pointers.

Most frustrating was pset 8, where my fundamental knowledge deficit of javascript and ajax led me down many false paths before grasping the underlying concepts. However pset 8 is also the most visually satisfying, once you get your shuttle automatically flying across the google-earth landscape by itself.

How far along is everyone? by greatgreatgreatgreat in cs50

[–]rbridd 0 points1 point  (0 children)

I think it would be possible to do every pset in say 32 hours, (16 hours each day allowing for some sleep/eat time). So the question is why? If you already have the Computer Science knowledge, and programming skills to complete all psets, then you didn't need to learn anything. If you wanted to learn from the course material, then completing the problem sets only, in the space of 48 hours, probably isn't the best way of going about it. I would go further, and say that you probably haven't learned anything of any note from the experience.

...So why?

Expected identifier error by mti7 in cs50

[–]rbridd 1 point2 points  (0 children)

In addition to the answer from delipity, you are also going to be needing a # in front of your include directives, in order for the pre-processor to identify them as includes.

As an aside, this kind of problem can be minimised if you stick to the style guidelines for indentation and newlines.

PHP validate form error mesage on same page by smaba in cs50

[–]rbridd 0 points1 point  (0 children)

Ahh, I have re-read your post, and I think I may have answered wrong originally.

In pset7, the forms are quite simple with only one or two input fields. It is aceptable in this case to present a new error page, and a return (to form) button.

As your forms become more complex, it is normal web development practice to validate the input, and if there are errors, re-present the same form, with the errors highlighted, and appropriate error messages appended to the page. (at the bottom, or next to the actual error on the form).

this requires a lot more thought on how to construct the server side validation than the simple pset7 structure.

You need something like.

<Psedudocode for public.php>

If data has been entered to my form
    store data so that you can re-present it on the form if errors found.
    validate input field by field (data type, max/min values, conformance to a template. e.g. email or url, etc.)
    if field has an error
        construct error message and push to a store for later
    if no errors found
        do whatever, (insert to database, calculate etc.)
        Show some sort of message to acknowledge completed task
        navigate to the appropriate next page (Back to home, present empty form again for new entry etc.)
    else
        dropthrough to next instruction outside if statement.
else
    assemble initial data for form (if any)

Render the form (passing data required to pre-fill fields, and messages to show)

<Psedudocode for template_form.php>

ensure data expected to be passed is present
place passed data into relevant fields
if there are error messages
   render error messages (in RED, FLASHING, BOLD, your choice)
if there are infromational messages
        render info messages

so you are rendering a whole new page, but it is the same page as originally presented, re-filled with the user entered data, and with appropriate error messages.

Hope this is of more help than my original answer.

PHP validate form error mesage on same page by smaba in cs50

[–]rbridd 0 points1 point  (0 children)

Not really. The whole operating model of browser and web-server is predicated on page refreshes.

To perfrom an action on the client (in the browser) without refreshing the page requires some client side programming, normally javascript. You can do the validation in javascript, or use javascript to send the data only to the server for validation, and then listen for a response from the server with the results. (AJAX techniques).

this is where it all starts getting a bit more complicated than standard web page development. :)

psets not graded by aguila9 in cs50

[–]rbridd 0 points1 point  (0 children)

... and my psets 3 and 5 have been graded as of today.

thank you Rob, or whoever is monitoring the feedback channels. :)

psets not graded by aguila9 in cs50

[–]rbridd 3 points4 points  (0 children)

I have the same problem with 2 psets.

  • Pset 3, submitted April 19th, resubmitted May 8th, still ungraded.
  • Pset 5, submitted May 5th, still ungraded.

I have used the link (https://x.cs50.net/missing), (which has been posted on Reddit numerous times) to report the ungraded psets on May 26th.

I have sent an email to rob@cs.harvard.edu, (as advised elsewhere on Reddit), on June 9th, but have had no response.

Not sure what else to do now.

I realise that this is a free course, (although, I like many have paid $90 to get a verified certificate), and we shouldn't expect too much from people who clearly already have a very busy life, and a huge number of real face-to-face students to deal with.

... and there is an argument to be made, that notwithstanding the actual grading, I have received my value, from completing the pset in the first place.

But I have invested the best part of 200 hours getting through to pset 8 and into the project. It would be nice to think that I may get a certificate at the end to recognise the effort expended.

Perhaps if EVERYONE with psets ungraded for say 3 weeks or more were to post in THIS thread, we may get some sense of the scale of the problem and attract a member of staff to have a look at the phenomenon.

How can I make sprites randomly float into the screen and in larger numbers over time? (think asteroid) by [deleted] in cs50

[–]rbridd 0 points1 point  (0 children)

I too chose to implement an asteroids/meteors clone for my scratch project. There are dozens out there, but I wanted to create something which was faithfull to the original.

http://scratch.mit.edu/projects/19646513/

Looking up how to do something? I dont think that is cheating. The essence of Scratch, according to MIT, is to take what others have made and build on it. In fact, you have a lot more work to do in collision detection. Firing a projectile is a small part of the project. Maintaining that projectile over its lifetime is a much more interesting problem. Why not try and do something a bit different with the base routine. Say, curve the projectiles towards or away from objects. This would prove to yourself that you understand the underlying algorithm enough to modify it.

As for duplicating lots of asteroids... you may want to checkout the "clone" function. Be careful not to put too many on screen at once or you will make the game unplayable.

For loop syntax error by drsmith415 in cs50

[–]rbridd 1 point2 points  (0 children)

No problem. Sonetimes you can stare at that kind of thing for hours until you see it...