Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development
  • RasPi: New keyboards for Portugal, Norway, Sweden, and Denmark
  • Heap Data Structure Tutorial

    Data is a set of values. Data can be collected and put in a row, or in a column, or in a table or in the form of a tree. The structure of data is not only the placement of data in any of these forms. In computing, the data structure is any of these formats, plus the relationship among the values, plus the operations (functions) perform on the values. You should already have basic knowledge on tree data structure before coming here, as the concepts there, will be used here with little or no explanation.

  • Perl Weekly Challenge 67: Number Combinations and Letter Phone

    Perl does not have a built-in combinations function, but there are several modules (for example Math::Combinatorics) providing the functionality. However, this being a coding challenge, I don’t want to use a third-party ready-made solution and prefer to show a way to do it yourself.

    If we knew in advance how many items we want in each combination, nested loops might be the best solution. But if we want to be flexible about the number of items in each combination, then it is often simpler to use a recursive approach. Here, the combinations subroutine is recursive and is called once for every item wanted in the combination.

  • Lucky Number Per7

    I swear it was Perl 5 just a moment ago. I turned my back for all of 5 minutes ...

    I don't need the new features, but I don't like boilerplate and I'm happy to accommodate those who seek progress. Harking back to lessons from the past, SysAdmins of a certain age may remember the venerable a2p program for converting awk scripts to perl and the horrendous (but working) code that it produced. We had one of those running in production less than 2 years ago until I finally decided to re-write it in Modern Perl. A bit like moving house, as a community we need to face the pain every so often and address the risks and ptifalls, not as reasons to keep to the status quo, but as a checklist of problems to be solved.

  • Episode #271: Unlock the mysteries of time, Python's datetime that is!

    Time is a simple thing, right? And working with it in Python is great. You just import datetime and then (somewhat oddly) use the datetime class from that module.

    Oh except, there are times with timezones, and times without. And why is there a total_seconds() but not total_minutes(), hours() or days() on timedelta? How about computing the number of weeks?

    What if you wanted to iterate over the next 22 workdays, skipping weekends?

    Ok, we'd better talk about time in Python! Good thing Paul Ganssle is here. He's a core developer who controls time in CPython.

  • GSoC’20 First Evaluation

    In the last blog, I wrote about my first two weeks on the GSoC period. In this blog, I would write about the activities to which I have worked further and implemented multiple datasets.

    [...]

    Why multiple datasets to GCompris activities?

    As previously all of the activities were having a generalized dataset so for some of the age groups as for 3-5 yrs the activity seems quite difficult to play, and also for some of the age groups the activity seems to be quite easy. So, multiple datasets help in resolving this issue and we have multiple data for various age groups and all the activities can be more adaptive for the children.

More in Tux Machines

This week in KDE: window thumbnails on Wayland

This week we got tons and tons of stuff done, including window thumbnails on Wayland! This much-awaited feature brings our Wayland session ever closer to parity with the X11 session. Read more

Is There Room for Linux Workstations at Your Organization?

Although it's been a long time since Linux was more difficult to use than Windows, most companies have been reluctant to deploy Linux workstations to its employees. That might be changing. Read more

The University of Costumed Heroes: A video from the FSF

This video is the second in a series of animated videos created by the Free Software Foundation's (FSF), and this one is themed around our campaign against the use of proprietary remote education software. We must reverse the trend of forsaking young people's freedom, which has been accelerating as corporations try to capitalize on the need to establish new remote education practices. Free software not only protects the freedoms of your child or grandchild by allowing people to study the source code for any malicious functionalities, it also communicates important values like autonomy, sharing, social responsibility, and collaboration. Read more Also: The FSF's approach to using online videos for advocacy

Best Multimedia Linux distributions

When choosing the best Linux distribution for your needs, multimedia experts such as video editors and photographers will benefit most from a Linux distro that specializes in multimedia production. There are a few Linux distrubitions that fill the gap for multimedia gurus, and we're going to cover the top choices in this article. Read below to see our countdown of the five best multimedia Linux distros. Read more