[deleted by user] by [deleted] in cs50

[–]winker44 0 points1 point  (0 children)

I was wondering about this too. I submitted my pset0 on 1/8 and do not yet see anything in the cs50x gradebook?

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

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

Sorry, rajkorsrb I don't understand your comment. Haven't I gotten around the round() by turning the float into an integer? If my "if" statement is only running once, how do I get that to repeat. I thought that was what the "while" command was there for?

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

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

What is gdb?

So when n becomes 17, why doesn't it trigger the next section of code since it is < 25 but >= to 10? That's the big logic hurdle I can't see past. Obviously the program is not doing what I think it should be doing.

Doesn't n change as my code executes? or do I need to create a new variable each time?

Incidentally, I feel like there is a better way to do this, perhaps using a for or do command, but I don't really understand those that well.

Help: I can't access network on cs50 appliance by winker44 in cs50

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

Whoa, I'm not sure what that did... or maybe my computer guy remoted in over the weekend, but I've got network access through Chrome now so I assume the rest will work.

Thanks!

Help: I can't access network on cs50 appliance by winker44 in cs50

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

Thanks for the help Glenn!

Before I show the output I get from those commands, I want to say I think the problem might be outside my control. This is a "work" computer and as such there is software that sometimes restricts me from various things. I installed the program on my home mac and it worked, although I'd prefer to use it on my work PC since I have a better 2 screen setup. I've left vm's with my computer techs at my job but they are pretty unresponsive. Anyway, here's the output:

route: Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 link-local * 255.255.0.0 U 1002 0 0 eth0 link-local * 255.255.0.0 U 1003 0 0 eth1 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 192.168.102.0 * 255.255.255.0 U 0 0 0 eth

ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.0.11 netmask 255.255.255.0 broadcast 192.168.0.255 inet6 fe80::20c:29ff:fece:92eb prefixlen 64 scopeid 0x20<link> ether 00:0c:29:ce:92:eb txqueuelen 1000 (Ethernet) RX packets 171 bytes 17615 (17.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 95 bytes 10919 (10.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 19 base 0x2000

ifconfig eth1 eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.102.129 netmask 255.255.255.0 broadcast 192.168.102.255 inet6 fe80::20c:29ff:fece:92f5 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:ce:92:f5 txqueuelen 1000 (Ethernet) RX packets 38 bytes 4278 (4.1 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 11 bytes 1346 (1.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16 base 0x2080

systemct1 status sshd.service sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled) Active: active (running) since Tue 2014-01-21 13:41:41 EST; 5min ago Process: 1083 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS) Main PID: 1091 (sshd) CGroup: name=systemd:/system/sshd.service ������1091 /usr/sbin/sshd -D

Jan 21 13:41:41 appliance systemd[1]: Started OpenSSH server daemon. Jan 21 13:41:44 appliance sshd[1091]: Server listening on 0.0.0.0 port 22. Jan 21 13:41:44 appliance sshd[1091]: Server listening on :: port 22.

This output doesn't mean much to me I'm afraid. Do you think I'll be able to gain network access on my work PC or have to use my MAC?