Language Selection

English French German Italian Portuguese Spanish

Python Programming Leftovers

Filed under
  • Python CSV

    A CSV (Comma Separated Values) format is one of the most simple and common ways to store tabular data. To represent a CSV file, it must be saved with the .csv file extension.

  • Python, Javascript, and Web automation

    In the last few months, I've been trying to compare the languages that I've worked with so far. The reason being, I often find myself in situations when I have a task at hand, and I realize there are multiple different ways to do it in multiple languages, and I get analysis paralysis.

    Anyways, the focus of this post is Python, Javascript, and their use in Web automation. To be fair, both languages have different histories and evolved very differently, but web automation is one area that I feel where both languages have something to offer. I'll try to compare Python and Javascript in the context of different usage patterns and ways of performing web automation.

  • Higher Performance Python (ODSC 2019)

    Building on PyDataCambridge last week I had the additional pleasure of talking on Higher Performance Python at ODSC 2019 yesterday.

  • Transferring Files Using Python’s Built-in HTTP Server

    The need to transfer files over a network is one that arises often. GNU/Linux systems support multiple protocols and tools for doing so, some of which are designed for somewhat permanent file sharing (such as SMB, AFP, and NFS), while others such as Secure Copy (SCP) are used for quick manual and scripted file transfers. Among these is the HyperText Transfer Protocol (HTTP), the versatile and ubiquitous protocol on which the World Wide Web relies.

    Python, which is included by default in most Linux distributions, provides simple HTTP servers through the “SimpleHTTPServer” and “http.server” modules. The former is found in the Python 2 Standard Library, while the latter is included in Python 3. These lightweight HTTP servers require no separate installation and can be started instantly with a single command.

More in Tux Machines

Servers: Kubernetes, CentOS in HPC and Red Hat's Self-Promotion

Linux Foundation: ACT Program, Dent and Delta Lake

  • Google, VMware Headline Linux Foundation's ACT Program
  • Amazon is joining a project that could upend network chipmakers such as Broadcom

    Amazon is contributing to a new piece of open-source software that could give it a leg up in its physical stores. The Linux Foundation, a nonprofit organization that maintains the Linux operating system and open-source software, announced the new networking operating system, called Dent, in a statement on Friday. Dent is a proposed operating system for switches, which are pieces of hardware used to route data around networks, usually within companies or between companies and the internet. The market has traditionally been dominated by big companies such as Broadcom, which provides a lot of the underlying silicon chips, and Cisco, which sells finished assembled product.

  • Calmer waters promised in the data lake through Linux Foundation Delta Lake Project

    Delta Lake (wait for it… the clue is in the name) is a project focusing on improving the reliability and performance of data lakes. Delta Lake was actually announced by unified analytics company Databricks earlier this year before this autumn becoming a Linux Foundation project with an open governance model. The team points out that organisations in every vertical aspire to get more value from data through data science, machine learning and analytics, but they are hindered by the lack of data reliability within data lakes.

Latest Openwashing in the News

Programming/Admin: Rootconf, Awk, UNIX, Wireguard and Python

  • Rootconf Hyderbad, 2019

    Rootconf is the conference on sysadmins, DevOps, SRE, Network engineers. Rootconf started its journey in 2012 in Bangalore, 2019 was the 7th edition of Rootconf. In these years, through all the Rootconfs, there is a community that has developed around Rootconf. Now people do come to attend Rootconf not just to attend the conference but also to attend friends and peers to discuss projects and ideas.

  • A bit of fun with awk

    I learned a few tidbits in awk this week. awk is a language I have, at best, looked at only very superficially, even though I use it frequently if very basically: to chop a line into fields. I tend to use it more than cut(1) because I can print additional data to that which I’ve cut out (without having to add sed(1) so awk just is more versatile for me.

  • How Unix Works: Become a Better Software Engineer

    I’ll put just enough commands for us to play along, assuming you’re starting from scratch. We’ll explore concepts, see them in practice in a shell, and then scream “I GET THIS!”. Along the way, we’ll also figure out what a shell really is.

    But we can’t begin without getting into the minds of the creators: exploring Unix’s philosophy.

    For now, we can assume Linux is Unix. If you want to know why that’s not really the case, you can skip to the bottom and come back. We’ll end the Unix vs linux confusion once and for all.

  • wireguard

    wireguard (wg) is a modern vpn protocol, using the latest class of encryption algorithms while at the same time promising speed and a small code base.

    modern crypto and lean code are also tenants of openbsd, thus it was a no brainer to migrate my router from openvpn over to wireguard.

  • Python Software Foundation: Mozilla and Chan Zuckerberg Initiative are funding pip with $407,000

    The Mozilla Corporation and the Chan Zuckerberg Initiative are funding the Python package installer pip with $407,000 USD to support work that is planned for 2020. Where is pip headed next year? The roadmap has been laid out, so let’s have a look at what the future holds. As the Python Software Foundation (PSF) announced in a blog post, it is receiving $207,000 USD from Mozilla via the Mozilla Open Source Support Award and $200,000 USD from the Chan Zuckerberg Initiative (CZI) as Essential Open Source Software for Science grant. The funds are designated to support a three-phased working plan for pip in 2020 to make the package installer “easier for people to use and troubleshoot”, and here’s what’s going to happen.

  • A Tiny Python Exception Oddity

    If you go back to the first case I discussed, with the unmatched parenthesis, in Friendly-traceback, I rely on the location of the error shown by Python to indicate where the problem arose and, when appropriate, I look *back* to also show where the potential problem started. Unfortunately, I cannot do that in this case with CPython.