Language Selection

English French German Italian Portuguese Spanish

Development

Programming Leftovers

Filed under
Development
  • How the Integrated Gradients method works? - Vincent Lequertier's blog

    For artificial intelligence (AI) transparency and to better shape upcoming policies, we need to better understand the AI’s output. In particular, one may want to understand the role attributed to each input. This is hard, because in neural networks input variables don’t have a single weight that could serve as a proxy for determining their importance with regard to the output. Therefore, one have to consider all the neural network’s weights, which may be all interconnected. Here is how Integrated Gradients does this.

  • Want a piece of GitLab? It's going to cost you: IPO price per share settles at $77

    The one-stop shop approach by DevOps darling GitLab appears to have attracted an Initial Public Offering price of $77, giving the loss-making biz a potential valuation of $11bn

    GitLab finally filed for an IPO in September and this week upped the estimated price per share to between $66 and $69. The eventual price has turned out to be $77, well above the initial $55 to $60 first estimated.

    8.42 million shares of Class A common stock are being sold. Founder and CEO Sytse Sijbrandij is selling another 1.98 million shares, according to the filing. Should that $77 price survive the start of trading today, GitLab's market value will nudge past $11bn.

  • Functional vs. object-oriented programming: The basics

    Committing to a programming paradigm is an important step in any application development effort. While they are hardly the only two options when it comes to overarching development models, the choice between functional programming and object-oriented programming is one that an increasing number of developers face today.

  • There is no 'printf'.

    Pop quiz! What will the following program return?

  • Malicious packages mitmproxy2 and mitmproxy-iframe removed from PyPI directory - itsfoss.net

    The author of mitmproxy , a tool for analyzing HTTP / HTTPS traffic, drew attention to the appearance of a fork of his project in the Python Package Index (PyPI) directory. The fork was distributed under the similar name mitmproxy2 and the non-existent version 8.0.1 (current release of mitmproxy 7.0.4) with the expectation that inattentive users will perceive the package as a new version of the main project ( typesquatting ) and wish to try the new version.

    In terms of its composition, mitmproxy2 was similar to mitmproxy, with the exception of changes in the implementation of malicious functionality. The changes were reduced to the termination of setting the HTTP header ” X-Frame-Options: DENY “, which prohibits the processing of content inside the iframe, disabling protection against XSRF attacks and setting the headers ” Access-Control-Allow-Origin: * “, ” Access-Control- Allow-Headers: * “and” Access-Control-Allow-Methods: POST, GET, DELETE, OPTIONS “.

  • Perl Weekly Challenge 134: Pandigital Numbers and Distinct Term Count
  • Sourcing vs executing in Bash

    What if, from the shell prompt, I could source the script, to bring the function definitions into my current environment, and then manually invoke the check function on a single pull request?

    Sourcing the script as it is would have the unwanted effect of running checks on all the pull requests, because the last line in the script actually invokes main, as it’s supposed to.

  • Rust-Based Cloud-Hypervisor 19.0 Released With Improved Live Migration, Faster Boot Time - Phoronix

    Cloud-Hypervisor 19.0 debuted this week as the Intel-led open-source VMM focused on supporting modern cloud workloads and written in the Rust programming language while leveraging the Linux's KVM virtualization code or the Microsoft MSHV hypervisor on Windows.

    Cloud-Hypervisor 19.0 continues to focus on only supporting 64-bit software, providing a minimal attack surface and other security improvements in part by leveraging Rust, and other modern-focused design principals.

  • Dyn async traits, part 6

    A quick update to my last post: first, a better way to do what I was trying to do, and second, a sketch of the crate I’d like to see for experimental purposes.

Programming Leftovers

Filed under
Development
  • ThreatMapper: Open source platform for scanning runtime environments - Help Net Security

    Deepfence announced open source availability of ThreatMapper, a signature offering that automatically scans, maps and ranks application vulnerabilities across serverless, Kubernetes, container and multi-cloud environments.

  • Josef Strzibny: Organizing business logic in Rails with contexts

    Rails programmers have almost always tried to figure out the golden approach to business logic in their applications. From getting better at object-oriented design, to service objects, all the way to entirely new ideas like Trailblazer or leaving Active Record altogether. Here’s one more design approach that’s clean yet railsy.

  • Status update, October 2021

    On this dreary morning here in Amsterdam, I’ve made my cup of coffee and snuggled my cat, and so I’m pleased to share some FOSS news with you. Some cool news today! We’re preparing for a new core product launch at sr.ht, cool updates for our secret programming language, plus news for visurf.

    Simon Ser has been hard at work on expanding his soju and gamja projects for the purpose of creating a new core sourcehut product: chat.sr.ht. We’re rolling this out in a private beta at first, to seek a fuller understanding of the system’s performance characteristics, to make sure everything is well-tested and reliable, and to make plans for scaling, maintenance, and general availability. In short, chat.sr.ht is a hosted IRC bouncer which is being made available to all paid sr.ht users, and a kind of webchat gateway which will be offered to unpaid and anonymous users. I’m pretty excited about it, and looking forward to posting a more detailed announcement in a couple of weeks. In other sourcehut news, work on GraphQL continues, with paste.sr.ht landing and todo.sr.ht’s writable API in progress.

    Our programming langauge project grew some interesting features this month as well, the most notable of which is probably reflection. I wrote an earlier blog post which goes over this in some detail. There’s also ongoing work to develop the standard library’s time and date support, riscv64 support is essentially done, and we’ve overhauled the grammar for switch and match statements to reduce a level of indentation for typical code. In the coming weeks, I hope to see date/time support and reflection fleshed out much more, and to see some more development on the self-hosted compiler.

    [...]

    The goal of this project is to provide a conservative CSS toolkit which allows you to build web interfaces which are compatible with marginalized browsers like Netsurf and Lynx.

  • Monthly Report - September

    The month of September is very special to me personaly.

    Why?

    Well, I got married in the very same month 18 years ago. The best part is, I choose the day 11 to get married. I have never missed my wedding anniversary, thanks to all the TV news channel.

  • My Favorite Warnings: uninitialized | Tom Wyant [blogs.perl.org]

    This warning was touched on in A Belated Introduction, but I thought it deserved its own entry.

    When a Perl scalar comes into being, be it an actual scalar variable or an array or hash entry, its value is undef. Now, the results of operating on an undef value are perfectly well-defined: in a nuneric context it is 0, in a string context it is '', and in a Boolean context it is false.

    The thing is, if you actually operate on such a value, did you mean to do it, or did you forget to initialize something, or initialize the wrong thing, or operate on the wrong thing? Because of the latter possibilities Perl will warn about such operations if the uninitialized warning is enabled.

Programming Leftovers

Filed under
Development
  • Qt Creator 6 Beta Released With Updated C++ Code Model, Binaries Built Against Qt 6.2 - Phoronix

    With Qt 6.2 LTS having shipped at the end of September, The Qt Company is now turning their attention to Qt Creator 6 as the next version of their Qt/C++ focused integrated development environment.

    Qt Creator 6.0 Beta is out this morning as the first public test release of this Qt/C++ IDE. Qt Creator 6 Beta has moved launching of external processes to a separate server process for better handling on Linux and the C++ code model is re-based to that from LLVM 13.

  • Qt Creator 6 Beta released
  • 5 common bugs in C programming and how to fix them | Opensource.com

    Even the best programmers can create programming bugs. Depending on what your program does, these bugs could introduce security vulnerabilities, cause the program to crash, or create unexpected behavior.

    The C programming language sometimes gets a bad reputation because it is not memory safe like more recent programming languages, including Rust. But with a little extra code, you can avoid the most common and most serious C programming bugs.

  • Steinar H. Gunderson: Apache bug with mpm-itk

    It seems there's a bug in Apache 2.4.49 (or newer) and mpm-itk; any forked child will segfault instead of exiting cleanly. This is, well, aesthetically not nice, and also causes problems with exit hooks for certain modules not being run.

  • [Older] Creating a Python Makefile - Earthly Blog

    Even though Python is regarded as an interpreted language and the files need not be compiled separately, many developers are unaware that you can still use make to automate different parts of developing a Python project, like running tests, cleaning builds, and installing dependencies. It’s honestly an underutilized function, and by integrating it into your routine, you can save time and avoid errors.

    make is a commonplace tool in the world of software development, especially compiled languages like C or C++. It is a tool which controls the generation of executable and other non-source files from a program’s source file. It can automate the process of building software by tracking its dependencies and compiling the program only when the dependencies change.

  • Security updates for Thursday

    Security updates have been issued by Mageia (golang, grilo, mediawiki, plib, python-flask-restx, python-mpmath, thunderbird, and xstream/xmlpull/mxparser), Oracle (389-ds-base, grafana, httpd:2.4, kernel, libxml2, and openssl), Red Hat (httpd), and SUSE (kernel).

  • This Week In Rust: This Week in Rust 412

5 markdown editors I recommend trying

Filed under
Development
Software

You can use markdown for anything—formatting websites, authoring books, and writing technical documentation are just some of its uses. I love how easy it is to create rich documents. Everyone has their favorite markdown editor. I have used several on my markdown journey. Here are five markdown editors I have considered.

Read more

Programming Leftovers

Filed under
Development
  • abs function in C

    Why is it necessary for programmers to use the abs() function? It’s accessible in almost every programming language; But how much good is a function that just turns negative values into positive ones? You may find yourself wanting positive numbers occasionally, and the abs() function ensures that you will get them. The abs function is an abbreviation for “Absolute Value” inside the C programming language, and it specifies the distance of a number just on a number line beginning from 0 without taking the direction into account. The abs value of a number, or its absolute value, has always been positive, implying that a distance could never be negative.
    The abs () method returns the absolute appropriate value integers and is specified in the stdlib.h header file. To return the absolute value of a particular number, we must include the stdlib.h header file in our C application. Only positive values are returned by the abs() function.

    Consider the following scenario: If we have an integer number -2 and wish to find the absolute value, we may use the abs() method to have the positive number 2. In addition, when we have an integer number 2 and want to determine the absolute value, we can use the abs() method to return the very same value as 2. It gives the very same number if we provide it with any positive number.

  • Printf-style debugging using GDB, Part 2

    The first article in this series introduced the GNU debugger, GDB, and in particular its dprintf command, which displays variables from programs in a fashion similar to C-language printf statements. This article expands on the rich capabilities of printf-style debugging by showing how to save commands for reuse and how to save the output from the program and GDB for later examination.

  • Python Wrapper to find all primes from a given interval via sieve of Eratosthenes released as C++ procedure
  • Intel Contributes AVX-512 Optimizations To Numpy, Yields Massive Speedups - Phoronix

    Intel has contributed AVX-512 optimizations to upstream Numpy. For those using Numpy as this leading Python library for numerical computing, newer Intel CPUs with AVX-512 capabilities can enjoy major speed-ups in the range of 14~32x faster.

    This summer Intel volleyed their initial AVX-512 code for Numpy and finally this week the code was merged upstream. This open-source AVX-512 code originates from the Intel Short Vector Math Library (SVML) that they open-sourced the code from. Intel has also been working on allowing Numpy to be built against SVML as a separate improvement.

  • TSV to CSV on the CLI (if you really have to)

    Regular visitors to this blog will know that I don't like the CSV format. It's awful. In my humble opinion, data workers should aim to use invisible tabs (TSV) or visible pipes (PSV) as field separators in delimited text tables. Sometimes, though, data workers are required to convert a perfectly good TSV or PSV to a CSV. What to do?

    I don't recommend opening the TSV or PSV in spreadsheet software and saving the result as a CSV, unless there are no leading or trailing quotes in the data items, or umatched quotes generally. The original quotes might well disappear in the saved CSV.

    There are a number of TSV-to-CSV programs for the command line. One is in Haskell, for example, and there also routines to do the job in Perl and Python. But if the individual fields in the TSV don't contain commas or quotes, the TSV-to-CSV conversion is simple — use tr:

  • Useful Bash Commands You May Not Know About

    Bash is a fairly powerful language to program in, and is also quite easy to start off with.

    After all, it's almost universally the shell you're going to see when you open up your terminal. That makes it extremely useful to get accustomed to.

    There's some powerful commands in Bash that you may not be aware of though, even if you're fairly seasoned with using the language. All of these commands can serve quite useful purposes though, and can make the shell scripts you write cleaner, more maintainable, and just outright more powerful than they could've been before.

Programming Leftovers

Filed under
Development

  • It's Ada Lovelace Day! Learn the Ada programming language in 2021 | Opensource.com

    In the 1970s, many programming languages were hyperspecific to the hardware they controlled. As a result, developers had to learn to code differently depending on the hardware they were programming. Debugging and maintenance were highly specialized, and code wasn't reusable across machines.

    The UK government recognized these problems and moved toward establishing a standardized multipurpose programming language. On December 10, 1980—Ada Lovelace's birthday—they made the Ada programming language an official military standard in the UK.

    Ada is similar in some ways to Algol or Pascal. It was originally designed for program reliability, easy maintenance, and efficiency. Most importantly, however, Ada's creators recognized that coding is a human activity, so a programming language must be something that humans can easily read and interact with.

    For Ada, readability is more important than conciseness. Writing code in Ada produces highly readable code, even compared to Python, and although its usage tends to be specialized, Ada is still being developed today.

  • Automate image processing with this Bash script | Opensource.com

    Writers not only work with words, they often have to work with images. Technical writing involves presenting a lot of screenshots to convey the technology and processes. Different publishing platforms may have various requirements for images, such as image format or file size.

    As an IT consultant and systems engineer, I have written a lot of technical documentation as client deliverables, generally with Microsoft Word (.doc) as the required format. Any document can grow fast as content is added. In the early days, screenshots were often bitmaps (.bmp), which can have a very large file size. A document describing the installation of an operating system onto a server could end up being a very big file.

    Downsizing the images without rendering them unreadable was a laborious exercise. Bitmaps could be converted to jpeg files and later png files. Editing continued to be a challenge even later when I switched my office suite to LibreOffice. Fortunately, most screenshot tools today save in smaller formats, such as png.

    Opensource.com puts certain limits on images that are used in its articles. I developed a quick three-step method for preparing images for my articles. The first step is to be smart about the staging, such as resizing a window or changing a font. Two additional steps became very repetitive. Those are to ensure the image doesn't exceed the 600-pixel width limit and to apply a border.

  • Having Fun With: DNS Records + Signed Certificates + Cryptographic Algorithms! – Jon's FOSS Blog

    So I was experimenting and if you can get signed certs from let’s-encrypt and dns records from cloud-flare, then you could store your public signed certificate as a set of split txt entries which anyone could verify with a set of up-to-date root certificates. You can then use the private key to sign an encryption key (stored as another txt record) along with the encrypted message (also another txt record).

  • Excellent Free Tutorials to Learn Emacs Lisp - LinuxLinks

    Emacs Lisp is a dialect of the Lisp programming language. Lisp (derives from “LISt Processing”) is one of the oldest programming languages. It was invented in 1958, with the language being conceived by John McCarthy and is based on his paper “Recursive Functions of Symbolic Expressions and Their Computation by Machine”. Over the years, Lisp has evolved into a family of programming languages.

    Most of the Emacs integrated environment is written in the programming language called Emacs Lisp.

    Although Emacs Lisp is usually thought of in association only with Emacs, it is a full computer programming language. You can use Emacs Lisp as you would any other programming language.

    Here’s our recommended free tutorials to learn Emacs Lisp (elisp). If you want a more general introduction to Lisp, read our recommended free tutorials to learn Lisp.

  • Rakudo Weekly News: 2021.41 Different Patterns

    Daniel Sockwell investigated the powers of smart matching in the Raku® Programming Language in two blog posts Let’s try some pattern matching (/r/rakulang comments) and Further thoughts on Raku pattern matching (/r/rakulang comments). Both the blog posts and the comments are food for thought!

  • Pi IoT In Python Using Linux Drivers - PWM
  • Python Takes First Place in TIOBE Programming Languages ​​Ranking - itsfoss.net

    The October programming language popularity rating published by TIOBE Software noted the triumph of the Python programming language (11.27%), which in a year moved from third to first place, displacing the C (11.16%) and Java (10.46%) languages. The TIOBE Popularity Index draws its conclusions from the analysis of search query statistics from systems such as Google, Google Blogs, Yahoo !, Wikipedia, MSN, YouTube, Bing, Amazon, and Baidu.

    Compared to October last year, the ranking also shows an increase in the popularity of the Assembler languages ​​(rose from 17th to 10th place), Visual Basic (from 19th to 11th place), SQL (from 10th to 8th place), Go (from 14 to 12), MatLab (from 15 to 13), Fortran (from 37 to 18), Object Pascal (from 22 to 20), D (from 44 to 34), Lua (from 38 to 32). Perl declined in popularity (ranking dropped from 11 to 19), R (from 9 to 14), Ruby (from 13 to 16), PHP (from 8 to 9), Groovy (from 12 to 15), and Swift (from 16 to 17), Rust (from 25 to 26).

  • Python Wraper to find all primes from a given interval via sieve of Eratosthenes released as C++ procedure

JavaScript (JS) Programming

Filed under
Development
  • What are Callback Functions in JavaScript?

    If you’re a programmer, you’ve probably heard of functions, which are a set of statements that perform an action and return an output but what are callback functions?

    The callback function is an extremely important concept of javascript and is widely used in promises, event listeners, arrays, and much more.

    We’ll go over what callback functions are and how to use them in JavaScript in this tutorial as well as We will also talk about the synchronous and asynchronous callback functions. To have clear and profound concepts of Callback functions we will implement some examples as well.

  • What Does the “use strict” Directive Do in JavaScript

    JavaScript evolved for a long time having no compatibility issues and modified by adding new features but not changing the old features. It had its advantages and disadvantages and the advantage was that it didn’t allow the breaking of the existing code, however, the disadvantage was that any error made by the developers or creators was stuck within JavaScript forever.

    It carried on until ECMAScript 5 (also referred to as ES5) was introduced in 2009 whose perk was that it added new features while modifying current ones. However, by default in JavaScript, these modifications are off. One needs to enable it with a special message or command which is the “use strict”.

  • Top 10 Popular Websites Built using JavaScript – Examples

    Popularity of JavaScript is increasing day by day with it’s usage for building websites, mobile applications, web based games and server side applications. It’s a client side scripting language but with the introduction of NodeJs, it’s now possible to handle server side as well.

    JavaScript is evolving everyday, making it’s way more into the tech world by introducing various frameworks, which makes the life of developers easy. Many websites which are popularly known are built around JavaScript which shows how important and useful the language is. In this write-up, you will have the top 10 popular websites built using JavaScript.

  • What are JavaScript Object Accessors

    JavaScript object accessors are used to access and update the objects and two keywords used for this function are getter and the other is the setter. JavaScript introduced getters and setters in ES5 in 2009.

    We’ll look at what getters and setters are and how to utilize them in JavaScript in this tutorial as well as go over why you should use get or set methods of JavaScript. Apart from this, we will discuss the object.defineProperty() as well. In the end, we will shine some light on which browser supports the set and get methods. So let’s get started.

  • How to Reverse an Array in JavaScript

    Reversing an array is a very popular coding problem which is often asked as an interview question when applying for an entry level JavaScript Developer position. Sometimes you will be asked to modify the original array so that the first element becomes the last and the second element becomes the second last element of the array and so on. Sometimes you might be asked to reverse an array without changing the original array.

    In this post we will look at different methods which are used to reverse an array in JavaScript; these methods will include the methods which reverse the original array as well as methods which can be used to make a new reversed array.

  • How to Speed up the Execution of JavaScript Code

    When developing an app or a website, one of the most crucial elements to consider is the app’s or website’s performance. As a user, I wouldn’t want any app to take a long time to load or whenever I click something and I have to wait for some action. Often if the webpage takes 5-6 seconds to load most users including me would leave the webpage.

    For web developers, JavaScript is a fantastic tool. Every web developer learned JavaScript at some point in their life. However, poor JavaScript code results in slower websites.

    With this in mind, a developer always looks at ways of improving his webpage. You are in luck because today we are going to talk about how to speed up the execution of JavaScript code.

  • How to Write a JavaScript Program to Get File Extension from File Name?

    The file extension is a three or four-letter abbreviation or an acronym at the end of a file that tells you what kind of file it is under different operating systems. For example, the file name is code.js hence the extension here is js. The goal of this article is to show you how to write a JavaScript program to get file extensions from a file name. We will discuss two of the easiest and most used methods to find the file extension.

  • How to Reverse a String in JavaScript

    Reversing an array is a very popular coding problem that is often asked as an interview question to beginner JavaScript devs. Sometimes the interviewers add certain restrictions, forcing you to come up with ingenious solutions.

    In JavaScript, a string can be reversed by many different methods. In this post we will discuss the most creative and interesting methods for reversing a string.

  • How to Link JavaScript to HTML

    JavaScript is a very popular scripting language which is used both on the client-side as well as on the server-side. JavaScript is necessary for our web pages as it makes our web page interactive.

Best Linux Distro for Programming

Filed under
Development
GNU
Linux

If you’re a programmer and you’re looking for a Linux distro, this will help you find the perfect fit.

Without further ado, we’ll go straight to the distro recommendations. If you want to learn more, scroll down to the bottom of the article.

Read more

SageMath: free open-source mathematic software

Filed under
Development
Software

SageMath is a free open-source mathematic software for mathematicians, data scientists and statisticians.

It is built on top of many mathematic python packages.

SageMath features include animated graphs, interactive plots, portable version that works directly from USB stick, interactive Python interface, notebook, rich documentation and more.

SageMath is an ideal solution for education as it aims for high-level student.

SageMath is faster than other open-source software doing the same calculations, like Mathematica 7.

It is proven to be faster by 32% on Linux (Intel 32bit), and 40% faster on macOS. You can read more about this in SageMath benchmarks.

Read more

Geany 1.38 Lightweight Code Editor is Out, Removes GTK+2 Support

Filed under
Development
Software

Geany is a code editor which uses GTK+ toolkit. The new version, Geany 1.38, comes with increased speed when opening documents.

Every developer who spends hours in front of a computer screen writing codes, absolutely needs an editor to program. Whether we want to program a web page, an application or a program, we must use a tool that allows us to edit the code, modify it and work with it.

Geany is a powerful, stable, and lightweight code editor with certain basic features of an Integrated Development Environment (IDE). It is an open source cross platform editor that is designed specifically for programmers thanks to its built-in support for over 50 programming languages. In addition, with Geany you can perform functions such as syntax highlighting and autocompletion.

Now that a new version has been announced, let?s see what has changed in Geany.

Read more

Syndicate content

More in Tux Machines

Type Title Author Replies Last Postsort icon
Story Tex Says It's Ready srlinuxx 2 18/02/2005 - 11:45pm
Story IBM Pledges $100 Million for Linux srlinuxx 2 19/02/2005 - 4:07pm
Story New Robots More Humanlike srlinuxx 2 19/02/2005 - 4:22pm
Story Brightest Galactic Flash Ever Detected Hits Earth srlinuxx 2 19/02/2005 - 4:23pm
Story PCLinuxOS Guided Tour srlinuxx 2 21/02/2005 - 3:00pm
Story A Week with KDE 3.4beta2 srlinuxx 1 21/02/2005 - 4:34pm
Story PCLinuxOS forms alliance with Codeweavers Texstar 1 23/02/2005 - 5:42am
Blog entry Mdk 10.2 beta 3 srlinuxx 2 24/02/2005 - 6:20pm
Story Snapshots of KDE_3.4rc1 srlinuxx 2 28/02/2005 - 6:02am
Story O'Reilly Releases "Linux in a Windows World" srlinuxx 01/03/2005 - 4:13pm