Programming: Selenium, Coding on GNU/Linux, Python, POCL and More

-
9 features developers should know about Selenium IDE
There has long been a stigma associated with using record-and-playback tools for testing rather than scripted QA automation tools like Selenium Webdriver, Cypress, and WebdriverIO.
Record-and-playbook tools are perceived to suffer from many issues, including a lack of cross-browser support, no way to run scripts in parallel or from CI build scripts, poor support for responsive web apps, and no way to quickly diagnose frontend bugs.
Needless to say, it's been somewhat of a rough road for these tools, and after Selenium IDE went end-of-life in 2017, many thought the road for record and playback would end altogether.
Well, it turns out this perception was wrong. Not long after the Selenium IDE project was discontinued, my colleagues at Applitools approached the Selenium open source community to see how they could help.
-
11 Best Linux Distros For Programming & Developers [2019 Edition]
inux-based operating systems are often used by developers to get their work done and create something new. Their major concerns while choosing a Linux distro for programming are compatibility, power, stability, and flexibility. Distros like Ubuntu and Debian have managed to establish themselves as the top picks when it comes to best Linux distro for programming. Some of the other great choices are openSUSE, Arch Linux, etc. If you intend to buy a Raspberry Pi and start with it, Raspbian is the perfect way to start.
-
12 Best Text Editors For Linux And Programming In 2019
If you’re looking for a powerful text editor for Linux to kickstart programming in the year 2019, you’re at the right place. While the debate of the best programming editors for Linux won’t end anytime soon, there are many editors that bring an impressive set of features and offer great user experience to developers. While Vim, Emacs, and Nano are older and dependable players in the game, Atom, Brackets, and Sublime Text are relatively newer text editors.
-
Managing Python packages the right way
The Python Package Index (PyPI) indexes an amazing array of libraries and applications covering every use case imaginable. However, when it comes to installing and using these packages, newcomers often find themselves running into issues with missing permissions, incompatible library dependencies, and installations that break in surprising ways.
-
POCL 1.3 RC2 Released For OpenCL On CPUs
The Portable Computing Language implementation of OpenCL for execution on CPUs and other use-cases is buttoning up its next release as POCL 1.3.
POCL 1.3 Release Candidate 2 is now available as the newest test release for this OpenCL-on-CPUs implementation. POCL 1.3 is bringing LLVM Clang 8.0 compiler support, ICD (installable client driver) support for macOS, HSA improvements and other features as well as bug fixes.
-
Why you should choose mindfulness over multitasking
You have your morning coffee in hand, you've just finished your daily scrum, and you sit down at your computer to start your day. Up pops a Slack message. You scan your emails, then bounce back to Slack. You look at your calendar to see when your next meeting is—much to your surprise, it's starting in 15 minutes. You get back to your desk and check your to-do list to see what tasks you can fit in before your next meeting, but one of your co-workers asks for your help to solve a problem. Before you know it, half of your day has disappeared.
Many of my days are spent like this, juggling multiple tasks. There are moments I find myself staring at my computer with my brain at a complete halt. If you, too, find yourself in this situation, it's probably a sign from your brain to take a break. You could be suffering from too much multitasking and decision fatigue.
On average, adults make about 35,000 decisions every day! They can be simple decisions, such as what to eat or what to wear, or decisions that require more thought, such as where to go on your next vacation or which career to pursue. Every day you are faced with a plethora of choices to occupy your mind.
-
An Introduction to AVR Microcontrollers: The Basics
We will be using C to program our AVR microcontrollers. If you don’t know C, this is not the place to learn it. Come back when you’ve familiarized yourself with the basics as well as have learned binary and bitwise operations.
When developing a program on a computer, you have access only to the memory granted to you by the operating system. In a microcontroller, there often is no operating system and the result is that you have access to all memory. This allows for great flexibility, no segfaults, but also the ability to corrupt memory or alter behavior by writing to the incorrect location in memory. Luckily, this is made easier with the amazingly obvious register names (I’m being sarcastic about register names being obvious, but more about registers in a bit).
On a computing platform with an operating system, that is, any laptop or desktop, if you try to access memory in a location that is not ‘owned’ by your program’s process ID, the program will be denied access and will terminate with a segfault error. This type of error is common when a regular variable is passed as a pointer or if a piece of information is written to a variable that is too small (known as a buffer overflow). When this type of situation occurs on a microcontroller, it just assumes that’s what you meant to do.
-
Planar graph layout, straight line drawing
I found that this problem was not well handled by existing Free Software. The leading contender, graphviz, generally produces non-planar layouts even for planar inputs; and it does not provide a way to specify the planar embedding. There are some implementations of "straight line drawing" algorithms from the literature, but these produce layouts which meet the letter of the requirement for the drawing to consist only of nonintersecting straight lines, but they are very ugly and totally unsuitable for use as a game board layout.
My web searches for solutions to this problem yielded only forum postings etc. where people were asking roughly this question and not getting a satisfactory answer.
I have some experience with computer optimisation algorithms and I thought this should be a tractable problem, so I set out to solve it - well, at least well enough for my purposes.
-
Shaking Hands With OMEMO: X3DH
In the past I have written some posts about OMEMO and its future and how it does compare to the Olm encryption protocol used by matrix.org. However, some readers requested a closer, but still straightforward look at how OMEMO and the underlying algorithms work. To get started, we first have to take a look at its past.
OMEMO was implemented in the Android Jabber Client Conversations as part of a Google Summer of Code project by Andreas Straub in 2015. The basic idea was to utilize the encryption library used by Signal (formerly TextSecure) for message encryption. So basically OMEMO borrows almost all the cryptographic mechanisms including the Double Ratchet and X3DH from Signals encryption protocol, which is appropriately named Signal Protocol. So to begin with, lets look at it first.
[...]
X3DH is a key agreement protocol, meaning it is used when two parties establish a session in order to agree on a shared secret. For a conversation to be confidential we require, that only sender and (intended) recipient of a message are able to decrypt it. This is possible when they share a common secret (eg. a password or shared key). Exchanging this key with one another has long been kind of a hen and egg problem: How do you get the key from one end to the other without an adversary being able to get a copy of the key? Well, obviously by encrypting it, but how? How do you get that key to the other side? This problem has only been solved after the second world war.
The solution is a so called Diffie-Hellman-Merkle Key Exchange. I don’t want to go into too much detail about this, as there are really great resources about how it works available online, but the basic idea is that each party possesses an asymmetric key pair consisting of a public and a private key. The public key can be shared over insecure networks while the
private key must be kept secret. A Diffie-Hellman key exchange (DH) is the process of combining a public key A with a private key b in order to generate a shared secret. The essential trick is, that you get the same exact secret if you combine the secret key a with the public key B. Wikipedia does a great job at explaining this using an analogy of mixing colors.
-

- Login or register to post comments
Printer-friendly version- 1502 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is released
After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release.
|
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future Tech
The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world.
Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago