Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • Python 3.9.0a3
  • Python 3.9.0a3 now available for testing

    Python 3.9 is still in development. This releasee, 3.9.0a3 is the third of six planned alpha releases. Alpha releases are intended to make it easier to test the current state of new features and bug fixes and to test the release process. During the alpha phase, features may be added up until the start of the beta phase (2020-05-18) and, if necessary, may be modified or deleted up until the release candidate phase (2020-08-10). Please keep in mind that this is a preview release and its use is not recommended for production environments.

  • Weekly Python StackOverflow Report: (ccxii) stackoverflow python report
  • Perl Weekly Challenge 044: One Hundred, Two Hundred

    We can populate each place “between digits” with one of three possible values: a plus sign, minus sign, or nothing. To check all the possible permutations, we’ll use an indicator function similarly to The Knapsack Problem. In this case, though, there are three possible values, so we need to loop over numbers in the ternary numeral system.

    The only operation we’ll need will be the increment, so we don’t need the full support for arithmetic in base 3. We can implement the increment ourselves: we start from the right of the number, change any 2 into 0 and move left. Once we find 0 or 1, we increment it and we’re done.

    To create the expression, we just need to intersperse the digits with the operators. See the apply subroutine below.

    To evaluate the expression, we won’t use eval, as we don’t want to introduce security problems into our code. As the operations are just addition and subtraction, we can transform the expression into a large sum of positive and negative numbers (the latter correspond to the numbers being subtracted). We’ll use a regexp match to split the expression.

  • Confessions of a Recovering Proprietary Programmer, Part XVII

    One of the gatherings I attended last year featured a young man asking if anyone felt comfortable doing git rebase “without adult supervision”, as he put it. He seemed as surprised to see anyone answer in the affirmative as I was to see only a very few people so answer. This seems to me to be a suboptimal state of affairs, and thus this post describes how you, too, can learn to become comfortable doing git rebase “without adult supervision”.

    [...]

    Fortunately, one of my colleagues pointed me at tig, which provides a dynamic ASCII-art display of the selected commits. This is again not as good as gitk, but it is probably as good as it gets in a text-only environment.

    These tools do have their limits, and other techniques are required if you are actively rearranging more than a few hundred commits. If you are in that situation, you should look into the workflows used by high-level maintainers or by the -stable maintainer, who commonly wrangle many hundreds or even thousands of commits. Extreme numbers of commits will of course require significant automation, and many large-scale maintainers do in fact support their workflows with elaborate scripting.

    Doing advanced git work without being able to see what you are doing is about as much a recipe for success as chopping wood in the dark. So do yourself a favor and use tools that allow you to see what you are doing!

More in Tux Machines

postmarketOS in 2020-02

Long time readers may ask themselves: what's with the strange title? Where's the traditional "xyz days of postmarketOS" post? Truth is, that this is a low-key update post, one that is rather "rushed out" in a few hours instead of spending a whole week on adding all the fancy photos and gifs webm animations and so on. Consider this the minimal effort of making the project not look dead on the homepage, while not getting too distracted from the deep development lands that our minds are sunken into. We are on track with our project direction 2020 plans. In a nutshell, we will create a stable releases of postmarketOS based on Alpine stable, while still having the development channel based on Alpine edge. Furthermore, the status of supported devices will become clearer. The PinePhone, possibly the Librem 5 and few more will be labeled as officially supported in their deviceinfo and in the wiki. postmarketOS should be usable as daily driver on these. All other devices will be categorized further, depending on active maintainer count and what is working. Think of it like the AUR: still useful, but sometimes broken and you need to know what you are doing when using these. The devices will get split into their own git repository, so one can use the device packages with both the "edge" and "latest" (stable!) channel of all other packages. @ollieparanoid and @Minecrell are evolving pmbootstrap as needed. Read more

Android Leftovers

KDE: Cutelyst 2.10.0 and SimpleMail 2, Okular Examined, FOSDEM & Plasma Mobile Sprint

  • Cutelyst 2.10.0 and SimpleMail v2 released!

    Cutelyst the C++/Qt Web framework and SimpleMailQt just got new releases. Cutelyst received many important bugfixes and if you are compiling it with View::Email it also requires SimpleMail 2, the latter got an Async API which is on production for a few months, allowing for a non-blocking send mail experience.

  • Okular is an open source universal document viewer for Windows, Linux and macOS

    Wouldn't it be nice if you had one program to view them all? That's exactly what Okular does. It's an open source universal document viewer for Windows, Linux and macOS. The program is made by KDE, a name Linux users should be familiar with, among other creations they are the ones behind the popular Kubuntu (Ubuntu + KDE Software) distro. Let's begin touring the interface. The sidepanel on the left can be used to jump to the Contents, Thumbnails, Reviews and Bookmarks sections. Select one of the options and the list of corresponding items are displayed in the panel to the right of the sidebar. The Contents option lists each section/chapter in a document, along with the sub-items, page numbers, etc. The Thumbnail mode pane displays a preview of each page in the document, you can scroll through it and click to go to the selected page. The Reviews pane contain the annotations that have been made on the document. If you don't have any, you can add some by hitting the F6 key or from the Tools menu > Review. Bookmarks are custom links that you have added, i.e., if you bookmark a page it will be displayed in the side-panel for future reference. Hit Ctrl + B to bookmark a page.

  • FOSDEM & Plasma Mobile Sprint

    Last week I decided to take KDE Itinerary for a test tour. Between the train rides there was also time for some KDE stuff. FOSDEM After writing an exam on Friday afternoon I took a train to Frankfurt. I did so not to enjoy the beautiful scenery of the area around Frankfurt central station at night but to be able to catch an early train towards Bruxelles for my first time at FOSDEM. It has been a great experience to meet so many people interested in what KDE does at the KDE booth. It also was awesome to meet all the folks that are working hard on making Linux on the phone become a thing.

Want to be an innovative company? Adopt enterprise open source

Nearly all IT professionals (95%) agree that enterprise open source is important, with 75% of professionals citing it as "extremely important," a Red Hat report found. Enterprise open source isn't just a trend, but a growing movement, as 77% of respondents expect their organizations to increase open source use in the next 12 months. "Historically, open source was seen [mainly] in web infrastructure," said Gordon Haff, Red Hat technology evangelist. "What you're seeing today is how open source is becoming a space where companies and individuals come together to collaborate in new areas of technology." Read more