Language Selection

English French German Italian Portuguese Spanish

Python Programming

Filed under
Development
  • Adding Metadata to PDFs

    For both Django Crash Course and the forthcoming Two Scoops of Django 3.x, we're using a new process to render the PDFs. Unfortunately, until just a few days ago that process didn't include the cover. Instead, covers were inserted manually using Adobe Acrobat.

    [...]

    The lesson I learned writing this little utility is that as useful as Google and Stack Overflow might be, sometimes you need to explore reference manuals. Which, if you ask me, is a lot of fun. Smile

  • A Week At A Time - Building SaaS #46

    In this episode, we worked on a weekly view for the Django app. We made navigation that would let users click from one week to the next, then fixed up the view to pull time from that particular week.

    The first thing that I did was focus on the UI required to navigate to a new weekly view in the app. We mocked out the UI and talked briefly about the flexbox layout that is available to modern browsers.

    From the UI mock up, I changed the view code to include a previous_week_date and next_week_date in the view context so we could change the links to show real dates.

    From there, we needed a destination URL. I create a new path in the URLconf that connected the weekly URL to the existing app view that shows the week data.

    After wiring things together, I was able to extract the week date from the URL and make the view pull from the specified day and show that in the UI.

    Finally, we chatted about the tricky offset calculation that needs to happen to pull the right course tasks, but I ended the stream at that stage because the logic changes for that problem are tedious and very specific to my particular app.

  • Python 3.6.9 : Google give a new tool for python users.

    Today I discovered a real surprise gift made by the team from Google for the evolution of programmers.

    I say this because not everyone can afford hardware resources.

  • Learn Python Dictionary Data Structure – Part 3

    In this Part 3 of Python Data Structure series, we will be discussing what is a dictionary, how it differs from other data structure in python, how to create, delete dictionary objects and methods of dictionary objects.

More in Tux Machines

Android Leftovers

today's howtos

Fedora 32 Workstation review - Tux over troubled waters

The spring season continues. We shall now embark on a Fedora journey. If you followed my tirades over the past few years, you will probably have noticed that I did manage to find some semblance of reasonable productivity with Fedora, albeit after heavy modifications and tweaking. You can of course sample of those experiences by reading my reviews - Fedora 29, Fedora 30 and finally the yesteryear Fedora 31 article. There's much more, but I'm sure, if you want, you'll find the material. Anyway, on my eight-boot test laptop, I've had both versions 30 and 31 installed, and typically, I'd go for an in-vivo upgrade. But I wanted to start from scratch, and get a sense of how the system behaves au naturel, without any trace of my years-long polish and trim. So here we go. Read more

Linux at Home: Brew Great Beer with Linux

In this series, we look at a range of home activities where Linux can play its part, making the most of our time at home, keeping active and engaged. The change of lifestyle enforced by Covid-19 is an opportunity to expand our horizons, and spend more time on activities we have neglected in the past. In recent weeks we’ve seen a gradual relaxation of lockdown restrictions in many countries. But this could be short-lived. For example, schools across South Korea only opened briefly before having to return to online teaching. It seems very likely that we’ll still be spending more time at home. Read more