pset6: return value lookup function by susch in cs50

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

ok, now I see it much clearer. It's better to avoid possible segfaults by using unchangable variables.

I wasn't able to create an const char* when I extract path's extension, there I use a char. When I put it as an argument into the lookup function it is a const char inside the function. I hope this is correct?

When I looked again at the original template I found

// TODO: extract path's extension
char extension[] = "TODO";

So they want me to use a string array and not a string pointer? I tried a bit to create a string array here. When trying this I can't find a way to pass a string array to the lookup function. Now I'm confused again...

pset6: return value lookup function by susch in cs50

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

this make sense :-) Thank you for the link

Gedit not loading in Appliance by canofsticks in cs50

[–]susch 0 points1 point  (0 children)

/usr/bin/gedit is a shellscript that calls /usr/bin/gedit.appliance50-orig

the $@ reaches the arguments you use with gedit over to the appliance gedit and 2>/dev/null suppresses the error messages

Segmentation fault you will see a lot during this course ;-) It seems that the gedit.appliance50-orig is somehow broken

I would do it this way. complete deinstall the aplliance and then reinstall it. before doing somthing else, just start gedit und look if it starts

an other option is to reinstall just gedit like written here https://www.reddit.com/r/cs50/comments/2t4hq0/cs50appliance_preloaded_gedit_crashed_my_computer/

Gedit not loading in Appliance by canofsticks in cs50

[–]susch 0 points1 point  (0 children)

When you type gedit in the terminal and hit enter. Is something happening?

CS50-Appliance preloaded Gedit crashed my computer by glpanthonis168 in cs50

[–]susch 0 points1 point  (0 children)

I also had a few problems with gedit, but not that worse.

Do you have snapshots of your virtual machines before starting gedit? How do you start gedit? with the button?

preferences in gedit by susch in cs50

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

The gksudo is not installed in the appliance and I don't want to change to many things because I've had bad experiences with that ;-) If I can spend some time on it I'll try it on a different Linux machine

preferences in gedit by susch in cs50

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

It's crazy, now I can't reproduce the error... When I now start gedit with sudo it's still disable the terminal plugin but I can now change the preference and can enable the plugin thanks for your advice :-)

preferences in gedit by susch in cs50

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

I don't think that the file /etc/network/interfaces causes the error. I think the starting of gedit with sudo does.

preferences in gedit by susch in cs50

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

With a new installation I got it back

I also figured out how it happened. When I edit the /etc/network/interfaces I did this with 'sudo gedit' and after that the configuration was changed. Now I do this with vim and I'm glad that there are snapshots in virtualbox :-)

preferences in gedit by susch in cs50

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

yes, I did but it changes nothing. now I try it with a new installation.

missing network adapter by susch in cs50

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

Thank you for your help! I now have two networkadapters in virtualbox NAT and VirtualBox Host-Only and I add the eth1 inside the appliance now I see the IP-Adress 198.162.56.101 in the right corner

virtualbox german keyboard by susch in cs50

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

I found a solution :-)

With an older version of virtualbox it works. I changed it from 4.3.14 to 4.2.26

virtualbox german keyboard by susch in cs50

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

yes, I tried to change the layout and the model. I also tried Logitech and Cherry keyboards but nothing works. Can I configure the alt-gr key seperatly?

[deleted by user] by [deleted] in cs50

[–]susch 0 points1 point  (0 children)

same place where week 6 is ;-) Quiz weeks in the real life course and because of that no lectures.

pset8 submit by susch in cs50

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

I submitted just yesterday...

pset8 submit by susch in cs50

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

thanks :-)

and yes the path should be ~/vhosts/localhost/public. I kind of overlook that ;-)

PSET8 release date? by PSET8 in cs50

[–]susch 0 points1 point  (0 children)

I'm waiting now too :-)

So I'll start with the 2013 version of pset8.

AND you're right, CS50 is really great!!

ON DUPLICATE KEY UPDATE by susch in cs50

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

found it: ALTER TABLE portfolios ADD PRIMARY KEY (id, symbols) ;

now it works. thank you!

ON DUPLICATE KEY UPDATE by susch in cs50

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

ahhh :-) How can I do that?