#100DaysOfCode, Day 004 – The Collections Module
Decided to watch the videos for day 4 since I am a day behind. The exercises look complicated, but the collections module looks like a real time saver. Will give it a go tomorrow.
Decided to watch the videos for day 4 since I am a day behind. The exercises look complicated, but the collections module looks like a real time saver. Will give it a go tomorrow.
Worked an hour for the past two days, exerting all of my python knowledge at the small project they gave me. Try as I might, I could not do it. So looked at the solution. And realised, while it was all logical, I couldn’t for the life of me have written that code on my own. Long way to travel. Lots of work to do.
Watched videos for the tiny projects to do over the next two days. We begin with a date/time project. Python has objects (primitives) to deal with dates and times. They are part of the datetime module, which is part of the Python Standard Library. I learnt that I could add and subtract and otherwise modify dates, easily if my date data was in this format. Will play more with this tomorrow. ...
Ok, the last time I tried this, life got in my way. Second time lucky? Last time, I crashed and burned. So, to quote Rascal Flatts, On your knees you look up Decide you’ve had enough You get mad, you get strong Wipe your hands, shake it off Then you stand. … Every time you get up And get back in the race One more small piece of you Starts to fall into place. ...
Been really sick to do anything this past month. Slowly inching towards getting better. So thought it would be a good idea to get my brain working, even if slowly. Safari on my Mac has finally turned into a burning pile of shit. No extensions allowed. I hate this neglect of an awesome platform. And I hate that they are making it into something that nobody wants, except for some fat cat in an ivory tower. So where was I? Oh yea, no extensions. Which means no uBlock Origin. Which basically means Safari for all its speed and efficiency is now as unusable as a dog turd. ...
Something I learnt recently as I moved hosts for my Miniflux instance. I can just take all the variables I want (like feed refresh times, the base url or the address/port Miniflux listens on); and then stuff it into a config file and then launch miniflux like so … miniflux -c 'path/to/file' Pretty handy! P.S. The entire list of variables is here.