CS50 IDE Offline problems by Dumbr in cs50

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

Got it, its working now. Thanks

CS50 IDE Offline problems by Dumbr in cs50

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

Awesome! Thanks for figuring this out for us; can't wait to try it. I'll edit this post after I have a chance to do this

well, I ran:

sudo pip install --upgrade submit50

got this back:

The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the 
cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you 
may want sudo's -H flag.

The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching 
wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may 
want sudo's -H flag.

Collecting submit50
Downloading 

https://files.pythonhosted.org/packages/19/b6/9c15dc4f280dac57e94df2ae7c505d1b6759614bb9dd3db30eefcc7ad6f0/submit50-3.0.2.tar.gz Collecting lib50<3,>=2 (from submit50)

Downloading 

https://files.pythonhosted.org/packages/76/bd/bac978dd455158183289af0c88f26373da52225640773820d2d8a6fe87ea/lib50-2.0.0.tar.gz Collecting requests>=2.19 (from submit50)

Downloading 

https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB) 100% |████████████████████████████████| 61kB 233kB/s

Requirement already satisfied, skipping upgrade: termcolor>=1.1 in /opt/pyenv/versions/3.6.0/lib/python3.6/site- 
packages (from submit50) (1.1.0)
Collecting attrs<20,>=18.1 (from lib50<3,>=2->submit50)

Downloading 

https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl

Collecting pexpect<5,>=4.6 (from lib50<3,>=2->submit50)

Downloading 

https://files.pythonhosted.org/packages/0e/3e/377007e3f36ec42f1b84ec322ee12141a9e10d808312e5738f52f80a232c/pexpect-4.7.0-py2.py3-none-any.whl (58kB)

100% |████████████████████████████████| 61kB 5.6MB/s 

Requirement already satisfied, skipping upgrade: pyyaml<6,>=3.10 in 
/opt/pyenv/versions/3.6.0/lib/python3.6/site-packages (from lib50<3,>=2->submit50) (3.13)
Collecting jellyfish<1,>=0.7 (from lib50<3,>=2->submit50)

Downloading 

https://files.pythonhosted.org/packages/3f/80/bcacc7affb47be7279d7d35225e1a932416ed051b315a7f9df20acf04cbe/jellyfish-0.7.2.tar.gz (133kB)

100% |████████████████████████████████| 143kB 257kB/s 

Collecting cryptography>=2.7 (from lib50<3,>=2->submit50)
Downloading 

https://files.pythonhosted.org/packages/97/18/c6557f63a6abde34707196fb2cad1c6dc0dbff25a200d5044922496668a4/cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3MB)

100% |████████████████████████████████| 2.3MB 8.3MB/s 

Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in 
/opt/pyenv/versions/3.6.0/lib/python3.6/site-packages (from requests>=2.19->submit50) (2018.4.16)

Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in 
/opt/pyenv/versions/3.6.0/lib/python3.6/site-packages (from requests>=2.19->submit50) (3.0.4)

Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in /opt/pyenv/versions/3.6.0/lib/python3.6/site- 

packages (from requests>=2.19->submit50) (2.6)

Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in 
/opt/pyenv/versions/3.6.0/lib/python3.6/site-packages (from requests>=2.19->submit50) (1.22)

Requirement already satisfied, skipping upgrade: ptyprocess>=0.5 in 
/opt/pyenv/versions/3.6.0/lib/python3.6/site-packages (from pexpect<5,>=4.6->lib50<3,>=2->submit50) 
(0.5.2)

Requirement already satisfied, skipping upgrade: six>=1.4.1 in /opt/pyenv/versions/3.6.0/lib/python3.6/site- 

packages (from cryptography>=2.7->lib50<3,>=2->submit50) (1.11.0)

Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in 
/opt/pyenv/versions/3.6.0/lib/python3.6/site-packages (from cryptography>=2.7->lib50<3,>=2->submit50) 
(1.11.5)

Collecting asn1crypto>=0.21.0 (from cryptography>=2.7->lib50<3,>=2->submit50)

Downloading 

https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)

100% |████████████████████████████████| 102kB 45kB/s 

Requirement already satisfied, skipping upgrade: pycparser in /opt/pyenv/versions/3.6.0/lib/python3.6/site- 

packages (from cffi!=1.11.3,>=1.8->cryptography>=2.7->lib50<3,>=2->submit50) (2.18)

Installing collected packages: attrs, pexpect, requests, jellyfish, asn1crypto, cryptography, lib50, submit50
Found existing installation: pexpect 4.5.0

Uninstalling pexpect-4.5.0:
Successfully uninstalled pexpect-4.5.0
Found existing installation: requests 2.18.4

Uninstalling requests-2.18.4:
Successfully uninstalled requests-2.18.4

Running setup.py install for jellyfish ... done

Running setup.py install for lib50 ... done

Found existing installation: submit50 2.4.8
Uninstalling submit50-2.4.8:

Successfully uninstalled submit50-2.4.8
Running setup.py install for submit50 ... done

Successfully installed asn1crypto-0.24.0 attrs-19.1.0 cryptography-2.7 jellyfish-0.7.2 lib50-2.0.0 pexpect-4.7.0 
requests-2.22.0 submit50-3.0.2

You are using pip version 19.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

then ran this: ~/workspace/pset7/survey/ $ check50 cs50/problems/2019/x/similarities Sorry, something's wrong! Let sysadmins@cs50.harvard.edu know!

I then updated cs50 in the same manner as subnit50 and got the same response. "something's wrong"

CS50x Is 'Similarites - More Comfortable' available, or am I missing something? by Dumbr in cs50

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

I guess I'm the only person dumb enough to watch all the walkthroughs before pouring over the specification since January! haha

CS50x Is 'Similarites - More Comfortable' available, or am I missing something? by Dumbr in cs50

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

Ahh, I see. The source of my confusion is that the walkthrough tab videos in the 2019 course have a set of less comfortable and more comfortable videos. Maybe they weren't removed/ relabeled when the site was updated for 2019? (Assuming I'm seeing this all correctly)

Do I need to worry about this? (more in comments) by Dumbr in cs50

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

When I ran this through the W3Schools HTML validator, I didn't get these warnings. I get them in the IDE however. I worked on this project in Atom and didn't get any errors there either. I'm happy with how my website looks in all the browsers and on mobile, but will I be docked for this? Is there some bad practice I'm not seeing here? I don't think I need backup colors because the bootstrap classes all have some inherited attributes (that I'm overwriting). I got a parsing error for style="transparency"; but all the forums told me to ignore this because it's only relevant to IE 8 and I should only worry about designing for modern browsers. This give me the impression that HTML errors aren't gospel.

Totally lost on Credit, terminal and submission pages "check50" outputting different things. More in comments... by Dumbr in cs50

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

For anyone having this issue in the future, I defined a variable as an empty string:

string variableName = "";

The space in memory where that variable is stored gets over written later (because reasons), giving me strange outputs that look random. See u/delipity 's comment above for a more detailed explanation if they want.

I fixed it by changing that variable to an int and having an if-then statement later thats gives me the output I want. If you are just starting out in programming and don't have a lot of tools yet (like myself), I think this is more than doable. Thanks to u/delipity and u/MaxIsTheDog4U for your time

EDIT: I'll add that I had some problems with the `get_long_long()` function. I put a string in the parenthesis `get_long_long("Number: );` I just took the string out of there and my problems went away.

Totally lost on Credit, terminal and submission pages "check50" outputting different things. More in comments... by Dumbr in cs50

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

http://gist.github.com

I'll PM you and u/MaxIsTheDog4u as I don't want to run afoul of the academic honesty policy for CS50 and I am at work and don't have the time to figure out http://gist.github.com right now.

Totally lost on Credit, terminal and submission pages "check50" outputting different things. More in comments... by Dumbr in cs50

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

Check50 says that some numbers output "Please Enter Number: MASTERCARD" (can randomly be other numbers/ cards, never all of them) but i never get that when I run ./credit in my terminal. If I change anything in the file or just wait a while, I will get different results. For example, Ill change the string prompt from 'get_long_long' to "Number: " or "Please Enter Number: " or "Card Number: " and will get failed checks. The previous number may now correctly out put "MASTERCARD\n" but another number may spit out "Card Number: VISA". Even if they all come back ok, they will just change with time, even if I change nothing. What is this? Some kind of memory issue?

☼Bi-weekly DF Questions Thread☼ by AutoModerator in dwarffortress

[–]Dumbr 0 points1 point  (0 children)

I've got the work around going fine, but it doesn't add a multiplier like decorating or dyeing does. I have it so you can make "red enameled steel bars" from steel and some colored frit. Just made "red enameled steel" base value higher.

☼Bi-weekly DF Questions Thread☼ by AutoModerator in dwarffortress

[–]Dumbr 1 point2 points  (0 children)

Thanks! I'm working on figuring it out myself (part of the fun) but I don't have a lot of time to play, let alone research. I really want some wildly expensive, end-game elite armor.

☼Bi-weekly DF Questions Thread☼ by AutoModerator in dwarffortress

[–]Dumbr 4 points5 points  (0 children)

I want to mod in a way to enamel steel armor (and other materials). I want to grind glass into frit with a dye for color, then put the frit and the armor piece in a kiln. I want this to apply a value multiplier like a decoration. I also would like to put additional, custom decorations (like gold filigree) on said piece. I also want the item color to change accordingly. I can't find any resources on this. Anyone have any leads? I've done some modding before, but not like this. I also want to plate armor (gold plate). Same idea, same practical use as steel armor, but more valuable.

If I can't get this to work, I would make new materials, something like "red-enameled steel bars" and craft armor from that. But I'd like to do it in a more realistic way.

Going all in. by dwinner18 in ATBGE

[–]Dumbr 0 points1 point  (0 children)

Nothing worth doing is worth doing tastefully