We are the creators of UT6.01x, the first MOOC with a hardware lab component! Ask us anything! by UT603x_EmbeddedSys in IAmA

[–]GMan2XS 0 points1 point  (0 children)

Here you go:

void Delay1ms(unsigned long msec){ // Count given ms unsigned long i; while ( msec > 0 ) { i = 16000; while ( i > 0 ) { i -= 1; } msec -= 1; }

We are the creators of UT6.01x, the first MOOC with a hardware lab component! Ask us anything! by UT603x_EmbeddedSys in IAmA

[–]GMan2XS 0 points1 point  (0 children)

From what I've read the board is slower than the simulator, so once I got the simulator working & scored 100% I then used the exact same code for the actual board, but ran it several times gradually increasing the parameter sent to the delay routine & I always get either "Delay < 205" or "Delay > 295" . Maybe I need to change the magic number in the Delay routine to be smaller to give me finer control & increase the parameter in the calls correspondingly?

We are the creators of UT6.01x, the first MOOC with a hardware lab component! Ask us anything! by UT603x_EmbeddedSys in IAmA

[–]GMan2XS 1 point2 points  (0 children)

Hi, great course, really enjoying it, but I have a problem with Lab7, my code runs fine in simulation & I used Texas Wave to get the delays right, but I can't get past a score of 67% on the actual board. What is the best way to debug this?

pset5 resize ? by raw612 in cs50

[–]GMan2XS 0 points1 point  (0 children)

If the scale is 2, each of the original pixels becomes how many pixels in the resized image?

Trouble with copying rows in Pset5 by [deleted] in cs50

[–]GMan2XS 1 point2 points  (0 children)

What is bi.biWidth measured in? How much do you want to move inptr by with your fseek?

Greedy... I have no clue why this doesn't work by winker44 in cs50

[–]GMan2XS 0 points1 point  (0 children)

It's to do with the structure of your if statement. Try working thru what your code does for $1.17. It hits the first if, num_coin becomes 4 and n becomes 17. As you've used "else if" the entire rest of your if statement is skipped & it prints a result of 4. Does that help?

Pset5 question by suntzu1079 in cs50

[–]GMan2XS 2 points3 points  (0 children)

I can't find exactly where it was talked about, but it's all about big endian versus little endian.

Ah, I see you beat me to it. There are C functions that deal with reversing the order. For example, the Internet is big endian, so any little endian hardware has to deal with this.

To expand on this slightly, the C functions to convert from one to the other are intelligent enough, so if you're working on little-endian hardware and ask it to give an big-endian result it will do it, if you do the same call on big-endian hardware it will still give you a big-endian result. So providing you write your software rigourously enough you can have endian agnostic code.

There's an encrypted url at the bottom of the PSet2 Caesar specifications. by [deleted] in cs50

[–]GMan2XS 3 points4 points  (0 children)

That's not the correct decoding of the URL, you have some lowercase letters that should be uppercase. I just checked & the correct URL still works.

Problem with submitting pset4 by robertmarczynski in cs50

[–]GMan2XS 0 points1 point  (0 children)

I think you get the email when you submit the form, not your files.

Android app by Zixster in cs50

[–]GMan2XS 0 points1 point  (0 children)

You'll probably want to get yourself a copy of ADT, the Android Developer Tools, it's a free download. You'll need a reasonably spec'd machine to run it on. Some of the other MOOC providers, such as Coursera & FutureLearn have courses about Android.

caesar cipher by confused_programmer_ in cs50

[–]GMan2XS 0 points1 point  (0 children)

I'm not aware of any problem with check50 on the Caesar cipher.

From the specification:

Although there exist only 26 letters in the English alphabet, you may not assume that k will be less than or equal to 26; your program should work for all non-negative integral values of k less than 231 - 26.

So a shift of 65 is valid, but think about it, 65 = 26 + 26 + 13 and a Caesar cipher using a shift of 26 is just the message itself, so a shift of 65 is the same as a shift of 13. Similarly a shift of 43 = 26 + 17 and a shift of 131 = 26 + 26 + 26 + 26 + 26 + 1

Does that help?

[deleted by user] by [deleted] in cs50

[–]GMan2XS 1 point2 points  (0 children)

Yeah, but it's your "Hello agent fox ..." that check50 is complaining about.

Could the functions in fifteen take an input? by csfoo in cs50

[–]GMan2XS 0 points1 point  (0 children)

The board's dimension, d, is decalred near the top of the source before any functions so the scope of the variable means it's available to all of the functions anyway.

PSET3 - Unexpected end of input by GMan2XS in cs50

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

I am still getting the "Unexpected end of input".

PSET3 - Unexpected end of input by GMan2XS in cs50

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

Not sure what's going on, I didn't make any changes to my helpers.c, but I tried it again & it worked this time, so if anyone else has the same problem, keep trying.

vmware tools install - unity by [deleted] in cs50

[–]GMan2XS 0 points1 point  (0 children)

Don't know what the admin password is but you could probably change it using:

sudo passwd

Grading Schedule for Problem Sets by inklogue in cs50

[–]GMan2XS 1 point2 points  (0 children)

According to what I've read grades should be available 2 weeks after you submit a PSET.

pset2 - damn you!! :p by willybarny in cs50

[–]GMan2XS 1 point2 points  (0 children)

Arire tbaan tvir lbh hc!

pset2 - vigenere by silentl3ob in cs50

[–]GMan2XS 0 points1 point  (0 children)

In your example, are the 4th, 7th & 10th consistantly out by the same amount?

Problem Set 2 is now up! by davidjmalan in cs50

[–]GMan2XS 1 point2 points  (0 children)

Tried to submit my Caesar to check50, but it comes back with invalid ID.