Programming Leftovers
-
Merge design and code with Penpot
For most of the history of computer programming, there's been a gap between the programmers creating an application's code and the designers creating an application's user experience (UX). The two disciplines receive vastly different training, and they use a different set of tools. Programmers use a text editor or an IDE to write code, while designers often draw concepts of widget layout and potential interactions. While some IDEs, like Eclipse and Netbeans, have interface design components, they're usually focused on widget position and not on widget design. The open source design app Penpot is a collaborative design and prototyping platform. It has a suite of new features that make it easy for designers and developers to work together with familiar workflows. Penpot's design interface lets developers write code in harmony with the design process like no other tool does. And it's come a long way since Opensource.com last looked at it. Its latest features don't just improve your experience with Penpot, they propel the open source Penpot app past similar and proprietary tools.
-
Automate Mastodon interactions with Python
The federated Mastodon social network has gotten very popular lately. It's fun to post on social media, but it's also fun to automate your interactions. There is some documentation of the client-facing API, but it's a bit light on examples. This article aims to help with that.
You should be fairly confident with Python before trying to follow along with this article. If you're not comfortable in Python yet, check out Seth Kenlon's Getting started with Python article and my Program a simple game article.
-
Learn to code a simple game in Zig
Writing the same application in multiple languages is a great way to learn new ways to program. Most programming languages have certain things in common, such as:
These concepts are the basis of most programming languages. Once you understand them, you can take the time you need to figure out the rest.
Furthermore, programming languages usually share some similarities. Once you know one programming language, you can learn the basics of another by recognizing its differences.
A good tool for learning a new language is by practicing with a standard program. This allows you to focus on the language, not the program's logic. I'm doing that in this article series using a "guess the number" program, in which the computer picks a number between 1 and 100 and asks you to guess it. The program loops until you guess the number correctly.
-
An Introductory Guide to Golang
Golang is an open-source programming language developed by Google in 2007. It is a statically typed and compiled language which makes it lightning fast and
-
Move or copy your strings? Possible performance impacts
You sometimes want to add a string to an existing data structure.
-
10 Open Source CSS Animation Frameworks
What is a CSS animation?
CSS animation allowing you to animate HTML elements using only CSS classes. It does not require JavaScript, nor extensive setup or configuration.
CSS animations allow you to create fancy eye-catching websites, parallel sliders, control, animated hover effects, 3D effects, entries, and exit animations per element.
-
2023.05 RB Awarded
And the winner is Oleksander Kiryuhin (aka sena_kun aka Altai-man). The Rainbow Butterfly Award is awarded to Oleksander for their tireless efforts as release manager of the Raku Programming Language for two years (2020-2021), and their work on getting a more functional Raku documentation in general, and a better documentation web site in particular.
-
Pandas Stack
A guide on how to use the pandas stack for stacking the level columns into rows or indexes to save time by providing the desired results in the DataFrame.
-
Pandas Sum Column
A guide on computing the sum across DataFrames using the Pandas sum() method, adding columns conditionally, and adding the values after grouping the columns.
-
Pandas to Array
Guide on what arrays are and how the DataFrames in Pandas can be converted to NumPy columns using three methods to change the DataFrame columns into an array.
-
Pandas Tabulate
Comprehensive tutorial on how to alter a Pandas DataFrame into a table with different styles using the tabulate() method along with practical examples.
-
Pandas str Replace
This teach you how to substitute/replace the string values in pandas. We have discussed the syntax of the str.replace() method to understand its functionality.
-
Pandas Add Column with Default Values
Practical tutorial on adding a column with the default value in Pandas using three methods – assign(), [], and insert() - to add a column with a constant value.
-
Pandas Drop Duplicate Index
Tutorial on the concept of dropping the duplicate indexes using the module by utilizing the Index.drop_duplicates() method along with the syntax and parameters.
-
Pandas Add Days to Date
Practical guide on how to add the days to the dates in Pandas by utilizing three methods – pandas.DateOffset(), pandas.timeDelta(), and pandas.to_timeDelta().
-
Pandas Display All Columns
Tutorial on how to display the column names and how to filter the columns using the data types and view the DataFrame memory usage and summary statistics.
-
Pandas Argmax()
Guide on how to locate the index location of the maximum value in a DataFrame or Series using the Index.argmax(), Series.argmax, and DataFrame[‘column’].argmax.
-
Pandas Apply() Function to Every Row
Tutorial on how to utilize the apply() function to every row in Pandas to implement any function to every row in DataFrame in Pandas using practical examples.
-
Pandas DatetimeIndex
Tutorial on how to create the DatetimeIndex and access the Date and Time details separately using some date and time methods along with practical examples.
-
Pandas Crosstab() Function
Comprehensive tutorial on the concept of calculating the cross-tabulation for data analysis with a bunch of useful features like the pandas.crosstab().
-
Pandas Append to CSV
Tutorial on how to append to the CSV in Pandas using three distinct examples to append the data to the already existing CSV file with the to_csv() function.
-
Pandas Columns to List
Guide on converting the Pandas columns to lists using the tolist(), [], and list() functions, and using the list() function to convert the columns into lists.
-
Pandas Bins
Tutorial on the cut() and qcut() functions to bin the data in Pandas, how to segment the data into bins, label the bins, and use the equal-sized binning data.