Skip to main content

Posts about dgplug (old posts, page 32)

Hiatus!

Lost a friend to the virus last night.
And a shit-ton of personal issues have cropped up at the same time.

Need to go handle and process all of this.
Will be back, when I am back.

A Tale of Two Cities

Just the two popular ones here …
Dickens writes such fluid prose here, I would quote the whole book.

It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way--in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only.


It is a far, far better thing that I do, than I have ever done; it is a far, far better rest that I go to than I have ever known.


A Hundred Days of Code, Day 047

Follow my whole plodding, Flask journey here.
Crashed and burned even harder today.
Tried to retrace my steps and did all the exercises again.
I reached, once more, all the way upto the forms chapter and it just does not work. Now it won’t even display my login page.

Was it worth doing?
Oh yes.
I gained a much better understanding of how Flask works, of what is required where.
Will work once more at the login page tomorrow.


A Hundred Days of Code, Day 046

Follow my whole plodding flask journey here..

Am still stuck at where I was yesterday.
But made a tiny bit of progress.

Yesterday, it would not even submit the form.
And now I got it to do that.
How? I had forgotten to close the form tag.

Now while I see that it is posting perfectly in the terminal, I cannot get it to reply with a message saying that I indeed have logged in.

Will start watching the videos again tomorrow, to see if I have missed something.
One thing that I am doing different from the course, is that I am using the new style f-strings, while the course uses a slightly older style.
Could it be, that some flask module might not like it?
Will work at it tomorrow and write down, what I figure out.


A Hundred Days of Code, Day 045

Follow my whole plodding journey here.

Wrote a basic login form today.
Short story short, it shows up, but it does not respond like Miguel shows in the course. It justs sits there … staring back at me … like an obstinate goat.

Will go spelunking into what I could have done wrong, tomorrow.

Learnt about adding routes and creating views and making templates.
Thoroughly confused though.
While I am dumbly following instructions right now, what I don’t get, is what do I need to write first? It all seems very circular to me.
What comes first? The route, the form, the template, the chicken or the egg?

Hopefully, I will gain clarity as I progress.


Orwell’s 1984

If you want a picture of the future, imagine a boot stamping on a human face … forever.

That, probably is the quotable line, I found.

The book’s terrible, and I hated the story (too bleak, too dystopian).
The only reason for its popularity is that events in real life, are proving Orwell right.