Development Leftovers
Python
-
Kushal Das: Introducing pyarti, python module for the Tor Project
pyarti is a Python module written in Rust using Arti from the Tor Project. Right now pyarti is in the initial stage, and you can create a SOCKS5 proxy object, and pass any Python connection via it. The following example creates a default proxy at port 9150 , and then verifies that the connection works. Finally we fetch a web page and print the text.
-
How to Execute Shell Commands in Python - ByteXD
Shell commands help perform routine tasks, including system troubleshooting, system monitoring, backup & data loss recovery, etc. We can automate routine tasks on our system by executing the Linux shell commands inside the programs. Most people think we can only run shell commands in a bash or batch file. Fortunately, we execute shell commands in a Python environment.
In this tutorial, we will show you how to run shell commands in Python.
Java
-
Groovy vs Java: Connecting a PostgreSQL database with JDBC | Opensource.com
Lately, I've been looking at how Groovy streamlines the slight clunkiness of Java. This article examines some differences between connecting to a PostgreSQL database using JDBC in Java versus Groovy.
Perl / Raku
-
Class::Plain supports Role using Role::Tiny
Class::Plain was released at at 2022-09. This time, Class::Plain supports role using Role::Tiny at version 0.05.
-
Rakudo Weekly News: 2022.41 On Your Phone
Jonathan Lane (aka Space MOOSE) blogged about their experience building Rakudo on Termux (an Android App) (/r/rakulang comments). Cool Stuff! This should probably be added to the Rakudo documentation somewhere!
-
Frankfurter Perl Workshop 2022 - 6.11.2022 | Max Maischein [blogs.perl.org]
we hold the Frankfurter Perl Workshop on the 06. November 2022 in Frankfurt am Main. This is mostly a German-language event, so I'll just repost the German announcement...
Misc.
-
What to be more agile? PeopleOps is the key [Ed: IBM fires hundreds of thousands of its work workers, then moans about "skills shortage," in effect passing the blame to the victims]
Skill shortages and high turnover rates have made IT organizations realize that employees cannot be treated as easily replaceable resources. And Gen Z workers refuse to be treated as a commodity: they value work-life balance much more than previous generations, often even above pay. They also seek agency and expect to be listened to.
As the business environment becomes more unpredictable and the need for rapid innovation expands, organizations are seeking ways to increase their agility, including changing their culture and how they treat employees. They are making sure that the people and skills they need are in place when they are needed.
-
Wayland Support on Linux
Recently we have been working on native Wayland support on Linux.
Wayland is now enabled for daily builds and if all goes well, it will be enabled for Blender 3.4 release too.
-
Get Thousands of Icons for React Project for Free with React Icons
React Icons is a free source that collect and organize all React icon packages in a simple browsable and searchable directory.
It contains all the popular icon sets that you can include easily in your project by installing and adding react-icons package.
Many of the included icon packages are free and open source. And that means, you can use them freely in your project without worrying about commercial license.
However, some may offer extended packages with more enterprise commercial icons, so you can check their website if you actually need their pro version.
-
How I Started Programming, and How You Can Too | TheEvilSkeleton
I am writing this article on my birthday to give my thanks and appreciations to those who helped me start and continue my journey with programming. I want to return the favor by explaining how I started programming, for those who are struggling with getting started with programming, finding the right resources, etc.
I’ve had a lot of trouble getting started with programming. About 6 years ago, I tried reading free books and documentation online all by myself. The complications and assumptions from them caused me to lose motivation very quickly. I tried this approach several times every couple of months, but the results were consistent – it always ended with me giving up.
Last year, I tried a completely different approach: taking a course from Harvard University, and then contributing to free and open source projects. This approach was really effective and got me to a point where I joined the Bottles project, and later became a member of the GNOME Foundation.
[...]
With the knowledge I gained from my experience with Bottles, I started to contribute to other GTK projects, be it code contributions or not. I ported Fractal and Workbench to the new About window (AdwAboutWindow). At the time of writing this article, I am helping rework the user interface of Tubefeeder.
-
ML models must also think about trusting trust
The answer is yes. The trick is for the compiler to recognise what sort of model it’s compiling – whether it’s processing images or text, for example – and then devising trigger mechanisms for such models that are sufficiently covert and general. The takeaway message is that for a machine-learning model to be trustworthy, you need to assure the provenance of the whole chain: the model itself, the software tools used to compile it, the training data, the order in which the data are batched and presented – in short, everything.
-
Static HTML comments
The big idea is to write the comments as static HTML, only when comments change, instead of doing a database query to display them every time. This prevents the “hug of death” if you get a burst of traffic.
I’ve been doing it this way for over six years, and it works great. Here’s the recipe, using Ruby as the glue, though you could use any scripting language.
-
cst
This is a small, inflexible li’l Unix filter that reads a single sexp from stdin and prints out Graphviz’ Dot language.
It features different fonts for strings vs symbols (which you can change with -l and -g respectively).
-
Map any region in the world with R – Part I: The basic map
When you prepare for a job interview one of the questions they always tell you to prepare is “What are you most proud of?”. Personally I’ve never been asked that question in a job interview but it kept me thinking. Some years ago I developed the R code for the creation of maps of infrastructure for a Political Sciences project, and I can say that this is one of the projects I’m most proud of. However, it is also true what they say to developers, that nobody cares about how you did it. The final user only cared about what was done, while the research team about what are the possibilities. Due to the confidentiality agreement of the client, I also cannot share a git repository.
-
$100 billion later, autonomous vehicles are still a car-wreck
Chafkin calculates that the global R&D budget for AVs has now exceeded $100 billion, and demonstrates that we have next to nothing to show for it, and that whatever you think you know about AV success is just spin, hype and bullshit.
Take the much-vaunted terribleness of human drivers, which the AV industry likes to tout. It's true that the other dumdums on the road cutting you off and changing lanes without their turn-signals are pretty bad drivers, but actual, professional drivers are amazing. The average school-bus driver clocks up 500 million miles without a fatal crash (but of course, bus drivers are part of the public transit system).
-
Exploring Portainer As A Tool For Managing Docker Containers
As a developer managing containerized applications can be daunting especially when it comes to using a command-line interface; administrating docker containers, writing complicating, and having to learn the various commands can be intimidating.
Depending on where you land on the spectrum, you might have no problem using a command-line interface; but for many folks, it’s a challenge.
-
Record destructuring with brev
Since brev’s defines are just me hacking in matchable support in the define headers, and I didn’t know matchable that well at first, I’m always discovering new things that this means for brev’s define.
-
How To Install Eclipse with WindowBuilder on Ubuntu
This tutorial will help you install Eclipse with its visual development tool Window Builder. With this, you can develop computer applications in Java programming language rapidly by drag and drop aside from writing code and produce high quality Graphical User Interface (GUI) applications. Now let's install it!