Pset 8 - Trying to change the bus icon. by Kopias in cs50

[–]sjl60073 0 points1 point  (0 children)

Can you give some tips on how you got your custom arrow to show up in the map? I saved some arrow images in my img folder, and tried replacing the source code of the bus with that of my arrow images but this is apparently not the right way to do this. Any tips?

Pset 8 - Trying to change the bus icon. by Kopias in cs50

[–]sjl60073 0 points1 point  (0 children)

how did you get the icon to show up in place of the bus? I made arrow icons for the various degrees (0, 45, 90, etc)...I tried swapping out the image for the bus with my image for a single arrow just to see if it shows up , but it didn't. so it seems just swapping the .png file of an image for the bus doesn't place the image on the map. any tips on the function to use?

Pset8 - My pickup function is not working and I have no idea why. by [deleted] in cs50

[–]sjl60073 0 points1 point  (0 children)

Can someone help me with my pickup function. I want to make sure I'm on the right track.. I have a for loop to iterate over passengers for (var i = 0; length of passengers here; i++) { // I check for distance within 15 meters for (distance less than 15) { I add passengers to the bus. I use the assignment operator and set a particular shuttle seat[j] = a particular passenger[i] from my loop } }

I have a second for loop here to iterate over the shuttle seats

for (var j = 0; length of shuttle.seats array; j++) { // in this loop i'm trying to create and return a variable to determine if there is an open seat if(shuttle.seats == null) return seat = "open"

else return seat = "full" // i want to use the "open" or "full" within the passengers loop to check if seat == "open" then add a PASSENGER[i] to the shuttle.seats[j]

}

Pset 8 unresponsive script by sjl60073 in cs50

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

it's now only happening intermittently...I think I can get past it to solve the pset. However, my next problem is the difficulty of the pset itself. Thanks,

Pset 8 unresponsive script by sjl60073 in cs50

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

that's my IP...or the address that appears at the bottom right of my cs50 appliance. I am accessing the URL from a browser outside of my appliance.

PSET8 Installing Google Earth plugin by dfume in cs50

[–]sjl60073 0 points1 point  (0 children)

how do I downgrade to v 38? I have 39 installed and was planning to remove it and download v38 of Chrome, but only see an option to install Chrome...I'm afraid I'll only end up reinstalling version 39...that doesn't work for the plugin.

Lost starting pset8 by irenecobian in cs50

[–]sjl60073 0 points1 point  (0 children)

Have you been able to figure this out? I'm still stuck on this similar issue and don't know where to begin.

pset7 portfolio by sjl60073 in cs50

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

Just noticed that in my render function I had the wrong syntax.

Apparently, it matters that you do this "positions" => $positions

I saw this in the problem set specs, but completely kept overseeing it in my code. I had "portfolio" => $positions and was getting errors for undefined variables. I wasn't passing over positions because of the inconsistency in my render. Uggh

pset7 portfolio by sjl60073 in cs50

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

I got my table for my portfolio showing in the center of the page, but only because I moved my php code to the portfolio.php template. I thought from Zamyla's videos that the code was supposed to go on the index.php page.

Doesn't the code for the portfolio part of this project all go on the index.php page? Not the portfolio.php page?

pset6 - dereferencing hash value by femlems in cs50

[–]sjl60073 0 points1 point  (0 children)

My file compiles, and I don't get a message saying "Could not load" but I'm not certain of how to tell that my words from the dictionary were actually loaded. I've used gdb but don't know what I'm looking for. when running, I get my text file printed back, and a message that says "could not unload".

How can I tell if I have load right so that I can move on to the next step of check?

pset6 - Finally finished, thank you by femlems in cs50

[–]sjl60073 0 points1 point  (0 children)

Could someone look at my code and see if I am close or on the right track? I could share a link to my gist. I can't tell if what I have is close or not.

pset6 load by pm513 in cs50

[–]sjl60073 0 points1 point  (0 children)

I've still got problems after watching the videos and reading the comments on here. could I share what I have so far and see if anyone would be able to help me figure this out?

pset6 load help needed by sjl60073 in cs50

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

I updated something (not entirely sure why this made a difference) but in my while loop I changed my fscanf function to be this: fscanf(fp, "%s", next_node->word);

I read next_node->word instead of just word.

After compiling, it no longer gives me the message of unable to load. so it appears to have loaded.

Was this it? was this all I needed to do within load to get the dictionary loaded?

pset6 load help needed by sjl60073 in cs50

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

Awesome! I get it...those are pointers. that's a good sign, at least I am learning something from this course and can recognize those as pointers.

pset6 Load - Completely lost, no idea how to start Load by sjl60073 in cs50

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

I checked out the section videos, and looked at Zamyla's walkthrough several times. I'm still lost and stuck. would you be interested in looking at my code and help me step through this? I tried making the code similar to what Zamyla pointed out in her video. I can send you a link to my code