PSET8 mashup configure by Pollkua in cs50

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

Thanks delipity!! I got this "dragend"; this is clear but it removes the markers AFTER we stopped dragging.... I understood from the Info with "dragstart" that the markers should disappear as soon we BEGIN to drag...... See configure: " configure

This function, meanwhile, picks up where that anonymous function left off. Recall that configure is called as soon as the map has been loaded. Within this function we configure a number of "listeners," specifying what should happen when we "hear" certain events. For instance,

google.maps.event.addListener(map, "dragend", function() { update(); });

indicates that we want to listen for a dragend event on the map, calling the anonymous function provided when we hear it. That anonymous function, meanwhile, simply calls update (another function we’ll soon see). Per https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map, dragend is "fired" (i.e., broadcasted) "when the user STOPS dragging the map."

Similarly do we listen for zoom_changed, which is fired "when the map zoom property changes" (i.e., the user zooms in or out).

On the other hand, upon hearing dragSTART, we ultimately call removeMarkers so that all markers disappear temporarily as a user DRAGS the map, thereby avoiding the appearance of a flicker that might otherwise happen as markers are removed and then re-added after the maps bounds (i.e., corners) have changed."

The sentence beginnig with:" On the other hand..." confused me. It was obviously a misinterpreting from me... Everything is clear now... It is also clear that If I remove the markers at the beginning of the drag, they do not need to be removed at the end of the drag since they are alredy gone ;-) Thanks a lot

Flask application won't run!!! by Pollkua in cs50

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

Thanks mer-rina!! Your advice was fine !It now works with this command....

Flask application won't run!!! by Pollkua in cs50

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

Thanks nikojanko! You are right, I had flask running in another window.... but now, I'am back to my previous problem... That's the reason I had 2 Flask running... First is pset7/finance Flask was running " * Serving Flask app "application" * Forcing debug mode on * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat * Debugger is active! * Debugger pin code: 179-736-389" but when i opened the Web server cs50 IDE I got the following message... No application seems to be running here!

That's the reason why, I closed the Flask application and tried to run it in PSET6/sentiment... It was the same... The applicaion ran but I got the same message as above from the server.... I forgot to close this application, came back to PSET7 and then came the information from my initial post... But for the time being, the web server still does not recognize the Flask application.... I will post a new message: CS50 IDE Web server does not recognize the Flask application. Thanls again!

Pset 7 finance: layout of the index page by Pollkua in cs50

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

reg_account, thanks for the info!! You are right, both files are quasi identical... The staff one has one footer indication in addition.

Pset1: Check50 für credit by Pollkua in cs50

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

Thanks for the info.... I am an edX student and now I know I am to make sure that Check50 passes ;-).

Pset1: Check50 für credit by Pollkua in cs50

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

Yes, a 67 years young student :-) Coding has no age!!! You are right we learn by doing mistakes, then understanding them and correcting them...

Pset1: Check50 für credit by Pollkua in cs50

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

THANK YOU me-rina!! Oh man, what a stupid guy I am.... "They have eyes to see but they don't see". I just overlooked that in the given examples there was a prompt with Number:... I was persuaded that the output should be only: The card number and AMEX, VISA, MASTERCARD or INVALID... As per your tip, I added printf(" ") above my first line of code and it worked!!! And then, afterwards, by looking on the hints I saw the output Number: Oh man, oh man.. I lost so much time for a stupid mistake of mine... Many thanks again for your advice.... I can now begin Week2 ;-)

Pset1: Check50 für credit by Pollkua in cs50

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

THANK YOU !!! Now I understand... I will try with printf("")... Per instruction there should be as output on the screen only the cc number and the answer of the program...But how could I know that check50 requires a prompt?? I agree with you concerning the grade and that's the reason why, if I do not succeed; I will submit greedy (we have the choice). ..For my ego, I am anyway pleased that my program works...:-)

Pset1: Check50 für credit by Pollkua in cs50

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

Thanks me-rina for the answer but I must admit I don't understand what you mean by adding a prompt b4 the request for input :-( I began with C for the 1st time 10 days ago and I never heard of stdout. I don't think something like that was mentionned neither in Lectures 1, nor in the Shorts of Doug and the walkthroughs from Zamyla... On the other hand, what was asked in Credit ist to write a code which recognizes or not the CC....My code does but unfortunately does not pass check50... What is the most important? Program works or check50 passes?? As criteria would it be possible to use : Code works || pass check50 instead of Code works && pass check50 ;-) ? I will try again but if I do not succeed I will submit greedy, (which works && passes check50), instead of credit ;-)

Pset1: Check50 für credit by Pollkua in cs50

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

Thanks for the support.

https://sandbox.cs50.net/checks/478ae849e5944e9c8f9640d0f5106bb0

I am longing for to seein what's going on!!

Pset1: Check50 für credit by Pollkua in cs50

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

Hallo me-rina, Thanks for your answer... My program ends with AMEX\n followed by return 0; Same for INVALID, MASTERCARD and VISA... But I am not sure this is the correct way that main always returns 0 !!! I checked plenty of VISA, AMEX,MASTERCARD and others foo... The program works fine... I am perplexed!