Odprtokodni pogled

Opensource view

tuxmachines.org

Syndicate content
Your source for Linux and Open Source news, reviews, and howtos.
Posodobljeno: 22 min 56 sec nazaj

Programming: jQuery, LLVM/Clang, Perl and More

Sre, 05/27/2020 - 15:52
  • Include jQuery in web pages – Local or CDN

    In the last article of the learn jQuery series, we learned to create jQuery development environment. Fortunately, it was pretty easy to create. In this article, we will learn to include jQuery on our web pages. In this article, we will fire our first jQuery code and will see it working in our web browser.

  • LLVM 11 Merges AMD Radeon GCN Offloading For OpenMP

    While AMD has been working on AOMP for Radeon OpenMP offloading as their downstream of the LLVM/Clang compiler suited for GPU compute offloading to their hardware, at least some of that work is beginning to appear back in upstream LLVM.

    Merged today into LLVM 11 Git is support for OpenMP offloading for the AMD GCN architecture, including setting of LLVM's CUDA mode. This part 1 patch is just a few dozen lines of code thanks to the AMDGPU back-end long being in upstream LLVM as well as the necessary infrastructure already being there for OpenMP device offload. Great to see this happening and hopefully more of these Radeon GPU compute changes will be hitting the LLVM tree shortly.

  • What is The Mediocre Programmer?

    This book is a personal journey for both of us. It's a memoir of my time as a programmer and my feelings along the way. I've thought many times about giving up and finding a different career path but doing anything other than being a computer programmer scares me even more. Does that mean I'm stuck in a perverse ouroboros of self-pity and self-doubt? Hardly. It means that I need to dig deeper to understand why I chose the path of being a programmer and realize that it took a lot to get here and it's going to take a lot more to get where I want to be. It's a commitment to seeing things as they are now and moving forward from wherever I'm standing.

    I hope you'll join me on this journey.

    (The book is released under a Creative Commons Attribution-ShareAlike license (CC-BY-SA). You are encouraged to read it, share it, and use it to help others through their struggle).

  • Meet your new robotic best friend: the MiRo-E dog
  • Prima: release v1.59 adds major text rendering functionality
  • Dancer2 0.300004 Released

    The Dancer Core Team would like to announce the availability of Dancer2 0.300004.

  • LATEX.css

    This almost class-less CSS library turns your HTML document into a website that looks like a LATEX document. Write semantic HTML [...] add to the of your project and you are good to go. [...]

read more

Python Programming

Sre, 05/27/2020 - 15:43
  • Return people from a list and dictionary with Python

    In this article, we are going to return a list of names that show whether that person is nice or naughty based on True (Nice) or False (Naughty) value from the ‘was_nice’ key within a list of dictionaries pass into either the get_nice_names function which will only return the name of a person who is nice or get_naughty_names function which will do vise versa.

  • Python 101 – Learning About Loops

    There are many times when you are writing code that you will need to find a way to iterate over something. Perhaps you’ll need to iterate over the letters in a string or the objects in a list. The process of iterating over something is done via a loop.

    A loop is a programming construct that allows you to iterate over chunks. Those chunks could be the letters in the string or the lines of a file.

  • Data visualization made simple in Python with Seaborn

    Plotting in Seaborn is much simpler than in Matplotlib. While Matplotlib makes the hard things possible, Seaborn makes complicated things uncomplicated by giving you a range of plot types that "just work."

  • A simple Python HTTP server for your sysadmin toolbox
  • Qt for Python 5.15.0 is out!

    Hello everyone! We are really happy to announce that Qt for Python 5.15.0 is now out! 

    As always, you can get the latest via: pip install pyside2, or just upgrading your current installation: pip install -U pyside2.

    At the same time we wanted to release another version for users still on 5.14, so we decided to release 5.14.2.2 too. You can get it via pip install pyside2==5.14.2.2

read more

Games: GOG, Slime Rancher, Ravenholm, Cosmic Frontier: Override, Beyond Blue and Spiritfarer

Sre, 05/27/2020 - 15:04
  • GOG Summer Sale is live, with demos for upcoming Linux games

    DRM-free store GOG has today released their huge Summer Sale, full of discounted games and they've also put up some fun demos for upcoming games.

    Much like what Steam are planning with the Steam Game Festival, GOG are getting in on the action and a little early too. Thanks to that you can now grab demos for CARRION, Spiritfarer and Vagrus - The Riven Realms: Prologue. All three of them well worth trying!

  • Slime Rancher adds more treasure to find, more adventures coming

    Slime Rancher, the absolutely adorable game about adventuring and catching little (and sometimes big) slimes has a fresh update and a tease about future content.

    For the completionist adventurer, Monomi Park have added in two new Treasure Pods to find and unlock on your travels. These special pods add a fun element to the exploration, requiring you to spend some monies earned to open them and get some extra goodies.

  • Half-Life was going to get a Ravenholm spin-off

    It's emerged that the Half-Life series was going to go into other directions, with a Ravenholm spin-off that was planned and you can see some footage.

    Noclip, a creator of documentaries has done a new feature-length video on the history of the game studio Arkane, who are known for titles like Arx Fatalis, Dishonored and more. As it turns out they were also involved in what was internally known as Ravenholm. It was originally worked on by Junction Point Studios, who later handed it to Arkane Studios, who were hired by Valve to start a Half-Life project.

    Ravenholm was never formally announced and eventually cancelled. However, bits of it did leak a few times which according to the documentary is part of the cause of some Half-Life 3 / new episode speculation but they said it was never being considered as a normal episode in the series but as a standalone game.

  • Escape Velocity: Override remaster Cosmic Frontier: Override gets funded

    Cosmic Frontier: Override, the remaster of the classic Escape Velocity: Override has managed to get successfully funded with the finishing of their Kickstarter crowdfunding campaign. Being developed by Evocation Games and Peter Cartwright, who is one of the original scenario designers.

    The Kickstarter ended on May 26 with £38,783 in funding from just over 1,000 backers. Not only is it fully planned to support Linux, they will also be open sourcing the game engine used named Kestrel. They said that will happen after release, not during development for "practical reasons".

  • Beyond Blue gets a release date, Linux looks to be later

    Beyond Blue looks like a wonderful narrative adventure, one made with the help of real science and they recently announced a June 11 release date.

    The press email only mentioned "PC" which is usually used in place of Windows and then specific consoles, so we looked to get that cleared up since it was originally announced for Linux. When speaking to the developer E-Line Media about the Linux version they stated, "The production team is working out a plan that will launch Linux as soon as we are able.". Good to see it's still coming!

  • Check out the second teaser for Spiritfarer, looks super sweet

    Spiritfarer from developer Thunder Lotus, the "cozy management game about dying" gains a second gameplay teaser ahead of a release later this year.

    From the same team that gave us Sundered and Jotun, it's looking and sounding extremely promising. You play as Stella, ferrymaster to the deceased, a Spiritfarer. Build a boat to explore the world, then befriend and care for spirits before finally releasing them into the afterlife. Farm, mine, fish, harvest, cook, and craft your way across mystical seas. Join the adventure as Daffodil the cat, in two-player cooperative play. Spend relaxing quality time with your spirit passengers, create lasting memories, and, ultimately, learn how to say goodbye to your cherished friends. What will you leave behind?

read more

While waiting for the Linux train, Bork pays a visit to Geordieland with Windows 10

Sre, 05/27/2020 - 11:11

Bork!Bork!Bork! As the UK tentatively returns to work and those who must venture back onto public transport, we were happy to learn that even in these changed times, Windows remains as wobbly as ever.

Today's entry comes from Register reader Dan.

Snapped last week, the Newcastle Station Info Point is terribly poorly, with three pop-ups showing Windows' escalating levels of distress.

The first sign of wobbling was the "Close programs" message, which tends to pop up when Microsoft's OS is getting short of resources. Things went downhill from there.

read more

Getting Started With Nano Text Editor [Beginner’s Guide]

Sre, 05/27/2020 - 10:29

Though Nano is less complicated to use than the likes of Vim and Emacs, it doesn’t mean Nano cannot be overwhelming to use. Learn how to use Nano text editor.

read more

End-of-life announcement for CoreOS Container Linux

Sre, 05/27/2020 - 08:35

As we've previously announced, Fedora CoreOS is the official successor to CoreOS Container Linux. Fedora CoreOS is a new Fedora Edition built specifically for running containerized workloads securely and at scale. It combines the provisioning tools and automatic update model of Container Linux with the packaging technology, OCI support, and SELinux security of Atomic Host. For more on the Fedora CoreOS philosophy, goals, and design, see the announcement of the preview release and the Fedora CoreOS documentation.

We'd love for you to try Fedora CoreOS and get involved! You can report bugs and missing features to the issue tracker and discuss Fedora CoreOS in Fedora Discourse, the development mailing list, in #fedora-coreos on Freenode, or at our weekly IRC meetings.

Also: Red Hat’s CoreOS Container Linux Reaches Its End-Of-Life

read more

Open Letter to the TrueOS Community: TrueOS Discontinuation

Sre, 05/27/2020 - 08:06

Hey TrueOS Community! I just wanted to take a few minutes to address what some of you may have already guessed. With a heavy heart, the TrueOS Project’s core team has decided to discontinue the development of TrueOS for the foreseeable future. We’ll still be heavily involved in other Open Source projects like FreeNAS & TrueNAS CORE. We’re incredibly proud of the work we put into TrueOS and its predecessor, PC-BSD.

TrueOS source code will remain available on GitHub for others that may want to continue the work that we started so many years ago. I can’t explain just how much we appreciate you all being loyal fans of TrueOS and PC-BSD in the past. We’re confident that even though this is a hard decision, it’s also the correct decision because of the exciting new projects that we’re all becoming more involved in like TrueNAS CORE. If you have any questions don’t hesitate to ask.

read more

Raspberry Pi 4: Chronicling the Desktop Experience – Calculators – Week 31

Sre, 05/27/2020 - 08:06

This is a weekly blog about the Raspberry Pi 4 (“RPI4”), the latest product in the popular Raspberry Pi range of computers.

The desktop calculator is a small utility that’s shipped with all major operating systems. It’s usually a standard affair, and designed for basic use. They typically include trigonometric functions, logarithms, factorials, parentheses and a memory function.

In this article I’m surveying some of the notable calculator software available for the RPI4. I’m not looking at computer algebra systems although they are available from the RPI4. Let’s first look at galculator.

read more

Linux Kernel Development and NVIDIA Graphics

Sre, 05/27/2020 - 03:26
  • Micron's HSE Open-Source Storage Engine Ticks Up To v1.7.1

    Announced at the end of April was Micron's HSE as a new open-source storage engine designed for offering speedy performance and lower latency on modern solid-based storage, especially for systems employing 3D XPoint technology. Version 1.7.1 of HSE was released today as their first open-source release since going public with this technology.

    HSE 1.7.0 was released a week prior to Micron announcing this open-source project in April while has now been succeeded by v1.7.1. This heterogeneous-memory storage engine over the past month has seen a number of fixes throughout, cleaning up code as a result of code review, fixing up some of the examples, and other work.

  • Linux 5.8 Feature Queue Has Multiple Performance Optimizations, Intel Rocket Lake, Other Hardware

    If all goes well Linux 5.7 should reach stable this weekend and that in turn will mark the start of the Linux 5.8 merge window. With our monitoring of the various "-next" branches for weeks already, here is a look at some of what is on the table for this next version of the Linux kernel.

  • NVIDIA 440.66.15 Vulkan Linux Driver Offers Up More Fixes

    NVIDIA has been quite aggressive recently with their new Vulkan beta drivers for Windows and Linux with today marking another such release.

    NVIDIA over the course of May is now on their third Vulkan beta series after the prior two added new Vulkan extensions and different fixes, including improvements to their KHR ray-tracing support. Today's release is focused squarely on delivering more fixes to users/developers.

read more

"Contributing to KDE is easier than you think" and KIO FUSE Beta (4.95.0) Released

Sre, 05/27/2020 - 03:09

  • Contributing to KDE is easier than you think – Websites from scratch

    This is a series of blog posts explaining different ways to contribute to KDE in an easy-to-digest manner. The purpose of this series originated from how I feel about asking users to contribute back to KDE. I firmly believe that showing users how contributing is easier than they think is more effective than simply calling them out and directing them to the correct resources; especially if, like me, said user suffers from anxiety or does not believe they are up to the task, in spite of their desire to help back.

    Last time I talked about websites, I taught how to port current KDE websites to Markdown, and this led to a considerable influx of contributors, since it required very little technical knowledge. This blog post however is directed to people who are minimally acquainted with git, html/css, and Markdown. We will be learning a bit of how Jekyll and scss work too.

  • KIO FUSE Beta (4.95.0) Released

    It’s a great pleasure to announce that KIO FUSE has a second Beta release available for testing! We encourage all who are interested to test and report their findings (good or bad) here. Note that, the more people who test (and let us know that they’ve tested), the quicker we’ll be confident to have a 5.0.0 release. You can find the repository here.

    To compile KIO FUSE, simply run kdesrc-build kio-fuse or follow the README. If your distributor is really nice they may already have KIO FUSE packaged but if they don’t, encourage them to do so!

read more

Firefox Nightly, Mozilla Localization and "Browsers are not rendering engines"

Sre, 05/27/2020 - 03:02
  • Firefox Nightly: These Weeks in Firefox: Issue 74
  • Mozilla Localization (L10N): How to unleash the full power of Fluent as a localizer

    Fluent is an extremely powerful system, providing localizers with a level of flexibility that has no equivalent in other localization systems. It can be as straightforward as older formats, thanks to Pontoon’s streamlined interface, but it requires some understanding of the syntax to fully utilize its potential.

    Here are a few examples of how you can get the most out of Fluent. But, before jumping in, you should get familiar with our documentation about Fluent syntax for localizers, and make sure to know how to switch to the Advanced FTL mode, to work directly with the syntax of each message.

  • Stuart Langridge: Browsers are not rendering engines

    An interesting writeup by Brian Kardell on web engine diversity and ecosystem health, in which he puts forward a thesis that we currently have the most healthy and open web ecosystem ever, because we’ve got three major rendering engines (WebKit, Blink, and Gecko), they’re all cross-platform, and they’re all open source. This is, I think, true. Brian’s argument is that this paints a better picture of the web than a lot of the doom-saying we get about how there are only a few large companies in control of the web. This is… well, I think there’s truth to both sides of that. Brian’s right, and what he says is often overlooked. But I don’t think it’s the whole story.

    You see, diversity of rendering engines isn’t actually in itself the point. What’s really important is diversity of influence: who has the ability to make decisions which shape the web in particular ways, and do they make those decisions for good reasons or not so good? Historically, when each company had one browser, and each browser had its own rendering engine, these three layers were good proxies for one another: if one company’s browser achieved a lot of dominance, then that automatically meant dominance for that browser’s rendering engine, and also for that browser’s creator. Each was isolated; a separate codebase with separate developers and separate strategic priorities. Now, though, as Brian says, that’s not the case. Basically every device that can see the web and isn’t a desktop computer and isn’t explicitly running Chrome is a WebKit browser; it’s not just “iOS Safari’s engine”. A whole bunch of long-tail browsers are essentially a rethemed Chrome and thus Blink: Brave and Edge are high up among them.

read more

FSF Chasing Members and GNU Project Has a Dozen New Releases This Month

Sre, 05/27/2020 - 02:59
  • Don’t miss your chance to win fabulous prizes: Get your friends to join the FSF!

    As you may already know, every associate member is incredibly valuable to the Free Software Foundation (FSF). Since most of our funding comes from individual donations and memberships, associate members aren’t just a number. Each new membership magnifies our reach and our ability to effect social change, by demonstrating your commitment to the crucial cause of software freedom.

    Right now, FSF associate members have the opportunity to reap some fantastic rewards by participating in our virtual LibrePlanet membership drive. We still have the raffle prizes generously donated by Technoethical, Vikings, JMP.chat, and ThinkPenguin for this year’s LibrePlanet conference, which we held entirely online this year due to the COVID-19 pandemic. Now, we’re giving them away to those who go the extra mile to help us grow by referring new annual associate members to sign up!

  • May GNU Spotlight with Mike Gerwitz: 12 new releases!

    bison-3.6.2
    denemo-2.4.0
    emms-5.4
    freeipmi-1.6.5
    gcc-10.1.0
    gdb-9.2
    gnuastro-0.12
    gnuhealth-3.6.4
    mediagoblin-0.10.0
    nano-4.9.3
    nettle-3.6
    parallel-20200522

read more

Programming: SDL, QML, Python, Awk/Bash and More

Sre, 05/27/2020 - 02:44
  • Photoframe Hack

    Sometimes you just want to get something done. Something for yourself.

    You do not intend it to be reused, or even pretty.

    You build a tool.

    My tool was a photoframe with some basic overlays. I wanted the family calendar, some weather information (current temperature + forecast), time, and the next bus heading for the train station.

    [...]

    I also have a bunch of REST calls to my local home assistant server. Most of these reside in the HassButton class, but I also get the current temperature from there. These are hardcoded for my local network, so needs refactoring to be used outside of my LAN.

    All of these interfaces require API keys of one kind or another – be it a proper key, or a secret URL. These are pulled from environment variables in main.cpp and then exposed to QML. That way, you can reuse the components without having to share your secrets.

  • Writing the Ultimate Locking Check

    In theory a clever programmer could discover all the bugs in a piece of software just by examining it carefully, but in reality humans can't keep track of everything and they get distracted easily. A computer could use the same logic and find the bugs through static analysis. There are two main limitations for static analysis. The first is that it is hard to know the difference between a bug and feature. Here we're going to specify that holding a lock for certain returns is a bug. This rule is generally is true but occasionally the kernel programmers hold a lock deliberately. The second limitation is that to understand the code, sometimes you need to understand how the variables are related to each other. It's difficult to know in advance which variables are related and it's impossible to track all the relationships without running out of memory. This will become more clear later. Nevertheless, static analysis can find many bugs so it is a useful tool.

    Many static analysis tools have a check for locking bugs. Smatch has had one since 2002 but it wasn't exceptional. My first ten patches in the Linux kernel git history fixed locking bugs and I have written hundreds of these fixes in the years since. When Smatch gained the ability to do cross function analysis in 2010, I knew that I had to re-write the locking check to take advantage of the new cross function analysis feature. When you combine cross function analysis with top of the line flow analysis available and in depth knowledge of kernel locks then the result is the Ultimate Locking Check! Unfortunately, I have a tendency towards procrastination and it took me a decade to get around to it, but it is done now. This blog will step through how the locking analysis works.

  • Raising the ground

    To read this blog I recommend you to be familiar with C programming language and (not mandatory) basics about SDL2. The main goal of this blog is not to give you a copy and paste code, instead it will guide you along the way until you get results by your own merit, also if you find any issues/mistakes/room for improvement please leave a response, thanks for reading.

  • PyCoder’s Weekly: Issue #422 (May 26, 2020)
  • Real Python: A Beginner's Guide to Pip

    What is pip? pip is the standard package manager for Python. It allows you to install and manage additional packages that are not part of the Python standard library. This course is an introduction to pip for new Pythonistas.

  • Awk Cheatsheet And Examples

    Awk is a great utility for text parsing and maniupulation. All unix operating systems have Awk installed by default. If you are on Windows. Please check out at the bottom of this tutorial on how to install and enable awk on Windows.

  • Printing repeats within repeats, and splitting a list into columns

    Repeats within repeats. BASH printf is a complex piece of machinery. The man page says a printf command should look like printf FORMAT [ARGUMENT]..., which makes it seem the "argument" is the thing to be printed and the "format" describes how.

read more

Devices/Embedded With Linux

Sre, 05/27/2020 - 02:29
  • Gemini Lake industrial mini-PCs are loaded with USB and COM ports

    GigaIPC latest QBiX Series industrial mini-PCs run Linux or Windows on Intel Gemini Lake and offer up to 8x USB and 5x COM ports plus dual displays, GbE, SATA III, M.2, and ruggedization features.

    Taiwanese computer vendor Gigabyte primarily produces consumer and enterprise desktop PC and server equipment, so we were surprised in 2017 when it launched an embedded 3.5-inch, Intel Apollo Lake GA-SBCAP3350 SBC. The following year in 2018, Gigabyte spun off GigaIPC as an embedded unit, and it has already generated a large catalog of Intel-based products including Micro-ATX, Mini-ITX, thin Mini-ITX, and 110 x 105mm “10×10” boards. There are 15 different 3.5-inch “QBi Pro” boards much like the GA-SBCAP3350, but also available with Whiskey Lake and Kaby Lake-U processors.

  • 19″ Rackmounts Support up to 12 Raspberry Pi SBCs

    Last time, we wrote about myelectronics.nl we covered their Tesla Cybertruck Case for Intel NUCs which housed the mini PC into a mini CyberTruck looking enclosure. The company has now come up with new housing solutions specifically designed for Raspberry Pi 1/2/3/4 Model B/B+ boards.

  • PoE-ready Ryzen V1000 SBC is all about camera control

    Axiomtek’s “MIRU130” SBC targets embedded vision applications with a Ryzen V1000 SoC, 4x USB 3.1 Gen2, HDMI and DP ports, cam triggers and lighting controls, 2x M.2, PCIe x16, and 4x GbE ports, 2x of which offer PoE.

    Axiomtek recently launched a CAPA13R, joineing Seco’s similarly 3.5-inch SBC-C90 as the only SBCs we have seen based on AMD’s Ryzen Embedded V100. Now Axiomtek has returned with a larger, V1000-based MIRU130 motherboard with a 244 x 170mm form factor that falls in between Mini-ITX and Micro-ATX.

  • IAR Systems Delivers Efficient Embedded Software Building on Linux

    Through the C/C++ compiler and debugger toolchain IAR Embedded Workbench®, IAR Systems provides its customers with the market's most diverse microcontroller support as well as adapted licensing options to fit different organizations' needs. This flexibility is now extended to the build environment as the well-known build tools in IAR Embedded Workbench now support Linux. The tools offer leading code quality, outstanding optimizations for size and speed, and fast build times. Supporting implementation in Linux-based frameworks for automated application build and test processes, the tools enable large-scale deployments of critical software building and testing and is suitable for installations ranging from a few licenses on a small build server, to massive installations with several hundreds of parallel builds active at the same time.

  • Librem 5 April 2020 Software Development Update

    This is another incarnation of the software development progress for the Librem 5. This time for April 2020 (weeks 14-18). Some items are covered in more detail in separate blog posts at https://puri.sm/news. The idea of this summaries is so you can have a closer look at the coding and design side of things. It also shows how much we’re standing on the shoulders of giants reusing existing software and how contributions are flowing back and forth. So these reports are usually rather link heavy pointing to individual merge requests on https://source.puri.sm/ or to the upstream side (like e.g. GNOME’s gitlab.)

read more

Games: Burning Knight, Elder Scrolls, Cities: Skylines and PyGame

Sre, 05/27/2020 - 02:14
  • Burning Knight is a roguelike where you rob a dungeon, coming soon

    At least the setting is honest, you're totally robbing the dungeons in Burning Knight and then attempting to flee.

    Burning Knight is an action-packed procedurally generated roguelike, with fast-paced action and plenty of exploration across various floors in the Burning Knight's castle that you're stealing goods from. It can turn into a bullet-hell in some rooms, there's hundreds of items to find and they can be combined to "build your very own game-breaking combos" and it does sound awesome.

    The developer, Rexcellent Games, just announced on Twitter yesterday that it's now actually complete. They're waiting on Valve's approval, and it looks like it will hopefully release next month. SteamDB captured the date changing to June 5 but that might be a temporary date.

  • Stadia gets Elder Scrolls Online on June 16, 1440p in web and more

    A few bits of Stadia news for you as Google have announced the next set of additions coming to their game streaming service.

    For players who were a bit let down by resolution options, there's some good news. As some players already saw across the last few weeks and today being made properly official, 1440p is now an option when playing Stadia in a web browser.

  • Humble Cities: Skylines Bundle is up for some easy city building

    Cities: Skylines, one of the finest city builders ever is now available in a big Humble Bundle for you to grab the base game and lots of extra content.

    This is honestly a ridiculously good deal and probably the cheapest Cities: Skylines has ever been. For £1 you can get Cities: Skylines and the Deep Focus Radio DLC. Even if you only go for that, there's a lot to enjoy without any expansions.

  • Python Qt5 - PyQt5 and PyGame compatibility with source code.

    This tutorial tries to solve from the objectives related to solving and stabilizing compatibility errors between PyQt4 and PyQt5 and creating a common interface between PyQt5 and PyGame.
    There is always the same problem in programming when the developer for some reason has to change classes, methods and functions and reusing the old code is no longer valid.
    In this case, common or other errors occur, which leads to a waste of time.

read more

sfy39587f05