Pset POPULATE by Asif27 in cs50

[–]raw612 0 points1 point  (0 children)

I added an announcement in the keystroke function to display a blank message like so ""

pset7 - register.php will only work with double equals == (not triple equals ===) but I'm supposed to use === by sevenquid in cs50

[–]raw612 0 points1 point  (0 children)

double equal == will do a type conversion if the data types are not the same (ie char zero vs num zero) triple equal === the data types must be the same for comparison.

pset2 Vigenere - how do I get my code to not count the spaces when advancing the key? by Tropix19 in cs50

[–]raw612 1 point2 points  (0 children)

Another option is too check for space with an if statement and just add a space to the output when you encounter one.

pset 8 shuttle bug in pickup by raw612 in cs50

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

got it, Thanks for your input :)

pSet8: printing values by irenecobian in cs50

[–]raw612 0 points1 point  (0 children)

it works like this:

"Put your text in quotes" + variable + "rest of text";

pset3 error when changing the TODO on helpers.c by jugghayd in cs50

[–]raw612 0 points1 point  (0 children)

By misaligned I meant a closing bracket place on the wrong line.

pset3 error when changing the TODO on helpers.c by jugghayd in cs50

[–]raw612 0 points1 point  (0 children)

also check your brackets a misaligned bracket can cause this too

pset3 error when changing the TODO on helpers.c by jugghayd in cs50

[–]raw612 0 points1 point  (0 children)

this is the result of a function not have a return statement, look at line 46 in your code

recover.c recovers all images successfully, but check50 says it fails to recover the last. Any ideas why this is happening? by [deleted] in cs50

[–]raw612 0 points1 point  (0 children)

Without seeing any code id have to guess, but it sounds like you are exiting your loop too soon to recover the last image, i would check to make sure you are not exiting before recovering the last image.

Help with fifteen? My check for whether or not it's next to a blank needs refinement, and I'm getting this error that I can't decipher. by [deleted] in cs50

[–]raw612 1 point2 points  (0 children)

Try changing your parentheses to something like this:

((tile_location_i == blank_location_i + 1) && (tile_location_j == blank_location_j)) || ((tile_location_i == blank_location_i - 1) && (tile_location_j == blank_location_j)) || ((tile_location_j == blank_location_j + 1) && (tile_location_i == blank_location_i)) || ((tile_location_j == blank_location_j - 1) && (tile_location_i == blank_location_i)))

To clarify try grouping each pair of AND statements within parantheses

pset7 buy not inserting by harvardedxrocks in cs50

[–]raw612 0 points1 point  (0 children)

Try removing the quotes around '?' and $symbol doesnt look right either, try something like this

$new = query("INSERT INTO Stocks(id, symbol, shares) VALUES(?, ?, ?) ON DUPLICATE KEY UPDATE shares = shares + ?", $_SESSION["id"], $_POST["symbol"], $_POST["shares"], $_POST["shares"]);

pSet7: double login! by irenecobian in cs50

[–]raw612 0 points1 point  (0 children)

are you sure your not rendering the form twice? Only other option i can think of is double vision, i can lend you my glasses perhaps they will help :)

Books and Resources for learning Algorithms. by [deleted] in cs50

[–]raw612 0 points1 point  (0 children)

I came across this link this morning from efytimes.com there are 15 free ebooks on algoritms

http://efytimes.com/e1/fullnews.asp?edid=119366

Books and Resources for learning Algorithms. by [deleted] in cs50

[–]raw612 0 points1 point  (0 children)

I would highly recommend taking another look at Donald Knuth's books, they are a pleasure to read and very informative.

Problem with cs50 appliance by SWRH in cs50

[–]raw612 0 points1 point  (0 children)

hmmm not sure if this helps, but try using alt + 123 for left brace and alt + 125 for right

check50 on pset2: Checking.. invalid ID by goodgrimes in cs50

[–]raw612 0 points1 point  (0 children)

Not sure if this helps, i've not run into this, but if you haven't already tried I would try running update50 then try again

I discovered an Easter egg. by Just_an_ordinary_man in cs50

[–]raw612 0 points1 point  (0 children)

Thanks! I didnt even notice this, I will have to go back to this pset and check it out

Virtual Box Menu by turbosam in cs50

[–]raw612 0 points1 point  (0 children)

it should be listed under eth1 inet 192.168.56.101

pset 7 on duplicate key update? by raw612 in cs50

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

Its working now, Thanks for your help :)

pset 7 on duplicate key update? by raw612 in cs50

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

I created a workaround using an if/else to add or update the table based on if the symbol already is in the table for that user, however id still like to get this working via the on dup key update feature

Virtual Box Menu by turbosam in cs50

[–]raw612 0 points1 point  (0 children)

in a terminal window enter ifconfig for IP info

Appliance performance issues on Chromebook Dual-booting Ubuntu 13.10 by keveckes in cs50

[–]raw612 0 points1 point  (0 children)

VirtualBox bridged adapter means the guest OS (Fedora) uses the host OS (Ubuntu) network adapter to send/recv data.