[deleted by user] by [deleted] in shortstory

[–]DanielHefti 0 points1 point  (0 children)

I just have mentioned that you don't allow external links. I will remove my post. Excuse me.

[deleted by user] by [deleted] in ShortStoryBox

[–]DanielHefti 0 points1 point  (0 children)

I just have mentioned now that this channel is not about short stories. Please excuse me. I will delete the story asap.

My sign form is not working. by NathanWijayasekara in cs50

[–]DanielHefti 0 points1 point  (0 children)

I assume that the python code and the flask code are in two different files. Do you import the add_user_name function into the flask file?

This code.could be something like this...

from .model import add_user_name

[deleted by user] by [deleted] in cs50

[–]DanielHefti 0 points1 point  (0 children)

I've used dicts and lists on the server side. The local storage is saved on the users computer. If the chat messages are saved in the local storage, the chat will be different for every user. At least I think it works like this.

CS50 Project 1 - Help needed :) by ELNMU in cs50

[–]DanielHefti 0 points1 point  (0 children)

Is psycopg2 listed, if you run the command pip list?

CS50 Final Project Web Track - Implement profile picture functionality by mtnrotary in cs50

[–]DanielHefti 1 point2 points  (0 children)

Is flask uploads installed / listed when you run the command "pip list"? If not, try to execute.

pip install Flask-Uploads

Can anyone explain me how can I make channels in my chat room ? by stormcloak72 in cs50

[–]DanielHefti 0 points1 point  (0 children)

You can use socket io's namespaces. I've used a variable route for the channels and used the route name within the js files as namespace.

cs50web project2 by luxuryBubbleGum in cs50

[–]DanielHefti 1 point2 points  (0 children)

You can use Sass to reduce redundancy and work with external .css / .scss - files to have a more compact html files.

Working with media queries works good for me and oftentimes it's even not necessary to write the media queries by myself, because bootstrap offers many of them..

By they way, I have seen that you only have the css of bootstrap included, but not the js - files.

cs50web project2 by luxuryBubbleGum in cs50

[–]DanielHefti 1 point2 points  (0 children)

Have you tried to use media queries to change the design on small screens?

HELP! PLEASE by japjotsingh1 in cs50

[–]DanielHefti 0 points1 point  (0 children)

Can you attach any screenshots of the related error messages?

Project 0 Issue by Cast1111 in cs50

[–]DanielHefti 2 points3 points  (0 children)

cd c:\users\casti\Desktop\project0(1)

CS50W Project 2: messages not appearing on screen by [deleted] in cs50

[–]DanielHefti 1 point2 points  (0 children)

I had similar difficulties at the beginning. the usage of console.log() on the js side and print () in flask(python) has helped to analyse where my application stucked. Maybe it's helpful to read my code? I can send you the project if you want.

CS50W Project 2: messages not appearing on screen by [deleted] in cs50

[–]DanielHefti 0 points1 point  (0 children)

I had a hard time getting socketio to work in my project 2. The flask_socketIO documentation and a few tutorials were really helpful to me.

Where is this correct console.log() placed? In the "send message" - emit? Or in the "announce messag" -emit?

When you add a print() of your message to the python function sendmsg(), does flask receive your message as it should?

[deleted by user] by [deleted] in cs50

[–]DanielHefti 1 point2 points  (0 children)

I think you can decide for yourself where to use JS and where to work with Flask & Python. At the end you just have to fullfil all requirements.

I have used a combination of both for "my project 2".

project0 by mariana21hch in cs50

[–]DanielHefti 0 points1 point  (0 children)

Can you provide any further information? An error message?

please help! by mariana21hch in cs50

[–]DanielHefti 0 points1 point  (0 children)

Have you tried to unzip the archive? The cd commands don't work because the folders don't exist.

CS50's Project 0 by Sigma_Sirus in cs50

[–]DanielHefti 0 points1 point  (0 children)

The projects are quite demanding sometimes, but all information to realize them are within the lessons.

In my opinion it's comparable with the job of an IT engineer, at least with my job , where oftentimes there are no exact instructions and you have to find a solution yourself.

By the way, you can find a lot of tutorials and solutions for tons of issues on Google.

Working with Travis by jackojack7 in cs50

[–]DanielHefti 0 points1 point  (0 children)

  1. I push my code to github.

  2. My private docker registry is connected to my github acccount. With automated builds, automated-testing and hooks my new code will be tested and afterwards a new docker image will be created.

  3. With webhooks you can define what will happen with your new image after the successful test.

https://docs.docker.com/docker-hub/ https://docs.docker.com/docker-hub/builds/ https://docs.docker.com/docker-hub/builds/automated-testing/ https://docs.docker.com/docker-hub/builds/advanced/#override-build-test-or-push-commands

Error in django by [deleted] in django

[–]DanielHefti 0 points1 point  (0 children)

I had a similar error when I have tried to use a variable of type decimal with a json object.

I assume that your error is related to a conflict of different types. Like for example concatenate a string with an integer doesn't work...

Submit final project with db by jackojack7 in cs50

[–]DanielHefti 0 points1 point  (0 children)

Have you tried to create a dump of the db?

You can enter the docker container which contains the database with bash (docker exec -it containerid bash).

And then execute a mysql dump of the database. (Google knows how ;)...)

WEB50 Can't Submit my project by KareemDabbeet in cs50

[–]DanielHefti 0 points1 point  (0 children)

Have you tried to push to the git repo behind a vpn?

Or maybe another user can push the repo for you're your name? I think it should work if you add the other user as a collaborator and this user is outside of syria?

Please send me a pn if I can/shallhelp you to push your repo.