Language Selection

English French German Italian Portuguese Spanish

HowTos

Programming: Bash/Command Line, Python and More

Filed under
Development
HowTos
  • Add leading zeroes that aren't really leading

    A leading zero can be a useful addition to a number string, and there are several ways to add one or more leading zeroes on the command line. The addition is a little less straightforward if the leading zero sits inside a non-numeric string. This post deals with a couple of such cases.

  • Always Launch Terminal as root User (sudo) in Ubuntu

    While working with the Ubuntu command line, the Terminal, we come across situations that require us to log in as root again and again. Ubuntu does that for protecting our system in order to avoid any user or script that opens the Terminal for any malicious activities that put your privacy and system at risk. Root allows far more access than a standard user needs on the command line. With root in action, features that make Ubuntu more secure are no longer working for you. Just consider running a web browser as root!

  • Fastest Python function to slugify a string

    The code is 7-8 years old and relates to a migration when MDN was created as a Python fork from an existing PHP solution.

    I couldn't help but to react to the fact that it's a list and it's looped over every single time. Twice, in a sense. Python has built-in tools for this kinda stuff. Let's see if I can make it faster.

  • Should you use "dot notation" or "bracket notation" with pandas?

    If you prefer bracket notation, then you can use it all of the time! However, you still have to be familiar with dot notation in order to read other people's code.

    If you prefer dot notation, then you can use it most of the time, as long as you are diligent about renaming columns when they contains spaces or collide with DataFrame methods. However, you still have to use bracket notation when creating new columns.

  • Solving Sequence Problems with LSTM in Python's Keras Library

    Time series forecasting refers to the type of problems where we have to predict an outcome based on time dependent inputs. A typical example of time series data is stock market data where stock prices change with time. Similarly, the hourly temperature of a particular place also changes and can also be considered as time series data. Time series data is basically a sequence of data, hence time series problems are often referred to as sequence problems.

  • How the Worlds of Linux and Windows Programming Converged

    Once upon a time, the world of developers was split into two halves: One half was composed of Windows developers, who created most of the productivity apps that powered PCs (and, occasionally, servers). The other half comprised Linux and Unix developers, whose work focused on server-side development. Today, however, as the worlds of Windows and Linux move ever closer together, the distinction between Windows and Linux developers is disappearing. Gone are the days when you had to specialize in one ecosystem or the other.

today's howtos

Filed under
HowTos

today's howtos and leftovers

Filed under
Misc
HowTos
  • FreeBSD Applying Security Updates Using pkg/freebsd-update

    am a new FreeBSD developer and user. I have root access to my VM running in AWS cloud. How do I update packages and apply security upgrades on FreeBSD? What is the procedure for applying security updates on FreeBSD?

    FreeBSD follows the concept of a base system and packages. One can apply security updates to the base system using freebsd-update command. You need to use the pkg command to upgrade FreeBSD packages. Let us see step-by-step instructions for implementing security updates polices for your FreeBSD server or desktop system.

  • Use oathtool Linux command line for 2 step verification (2FA/TOTP)
  • Highly rated action rpg rogue-lite 'Unexplored' now has a Linux test build available

    Something we've been wait on quite some time, Unexplored from Ludomotion released in 2017 and now game porter Ethan Lee has given it a go with a Linux test build up.

    Turns out the port was a little different than usual, as Ethan Lee noted on the Steam post. The game has always been using their FNA magic, so it didn't exactly have a lot of "porting" work to be done. However, due to some issues they had to do some decompiling and apply some manual fixes to get it here. However, it should be mostly "solid".

  • Mozilla VR Blog: Multiview on WebXR

    The WebGL multiview extension is already available in several browsers and 3D web engines and it could easily help to improve the performance on your WebXR application

  • Bottom to top, left to right writing direction in Writer conference talk

    Yesterday I gave a Bottom to top, left to right writing direction in Writer talk at the LibreOffice Conference 2019. The room was well-crowded — perhaps because it was on the first day and in the largest room. Wink

    It contains some details which are not available in previous btLr blog posts, like what natural languages use this direction, how to replace real-world clocks without breaking compatibility and more!

  • Richard Best Releases Free Audio and Ebook: “A Practical Guide to WordPress and the GPL”

    If you’re itching to go deeper into the legal aspects of navigating WordPress’ relationship to the GPL license, Richard Best has recently made his ebook (and the audio version) called “A Practical Guide to WordPress and the GPL” available for free. Best, a technology and public lawyer based in New Zealand, had previously sold the book with other products as part of a business package that is still available for purchase. After receiving feedback on his most recent post titled “Taking GPL’d code proprietary,” he found that the issues addressed in the book are still relevant and decided to release it for free.

  • F5 Levels It Up With New Solutions At NGINX Conf
  • PyCon: Call for Proposals for PyCon 2020 is open!

    The time is upon us again! PyCon 2020’s Call for Proposals has officially opened for talks, tutorials, posters, education summit, and charlas. PyCon is made by you, so we need you to share what you’re working on, how you’re working on it, what you’ve learned, what you’re learning, and so much more.

  • Welcome to the float zone...
  • Robin Wilson: I am now a freelancer in Remote Sensing, GIS, Data Science & Python

    Since I stopped working as an academic, and took time out to focus on my work and look after my new baby, I've been trying to find something which allows me to fit my work nicely around the rest of my life. I've done bits of short part-time work contracts, and various bits of freelance work - and I've now decided that freelancing is the way forward.

  • Talk Python to Me: #229 Building advanced Pythonic interviews with docassemble

    On this episode, we dive into Python for lawyers and a special tool for conducting legal interviews. Imagine you have to collect details for 20,000 participants in a class-action lawsuit. docassemble, a sweet Python web app, can do it for you with easy.

today's howtos and programming bits

Filed under
Development
HowTos
Syndicate content

More in Tux Machines