Dev Miscellaneous – Telegram
Dev Miscellaneous
341 subscribers
884 photos
6 videos
5 files
917 links
A channel where you can find developer tips, tools, APIs, resources, memes and interesting contents.

Join our comments chat for more.

Comments chat (friendly :D)
https://news.1rj.ru/str/+r_fUfa1bx1g0MGRk
Download Telegram
Falsehoods Programmers Believe About Phone Numbers

...and tips on how to use libphonenumber.

https://github.com/google/libphonenumber/blob/master/FALSEHOODS.md

@DevMisc
#extra #tips
A Bit Overcomplicated

Lets say you have a 64-bit integer. You want the first 42-bits. Now, if your language has a bitshift operator, you'd do something like largeNumber >> 22. But what if your language also has all sorts of advanced stream processing and map functions?

https://thedailywtf.com/articles/a-bit-overcomplicated

@DevMisc
#extra #tips
SAML Is Insecure by Design

SAML uses signatures based on computed values. The practice is inherently insecure and thus SAML as a design is insecure.

https://joonas.fi/2021/08/saml-is-insecure-by-design/

@DevMisc
#security #web
HTTP/2: The Sequel is Always Worse

In this research paper James Kettle introduces multiple new classes of HTTP/2-exclusive attacks, demonstrated on popular websites and servers.

https://portswigger.net/research/http2

@DevMisc
#extra #web
I compromised 300 stores and a “Spanish consultancy”

This post aims to show people how their data is vulnerable to get stolen in some environments and how companies forget about a minimum level of good practices regarding cybersecurity.

https://edbrsk.dev/content/real-cases/how-I-compromised-300-stores-and-a-spanish-consultancy

@DevMisc
#security #web
Supporting half-precision floats is annoying

I just added half-precision floats to Futhark, as the type f16. This wasn’t particularly hard (perhaps a day of work), but it was annoying for fairly shallow technical reasons, so as a bit of catharsis, here’s a blog post about the challenges I encountered.

https://futhark-lang.org/blog/2021-08-05-half-precision-floats.html

@DevMisc
#extra
The Problem with Perceptual Hashes

Apple just announced that they will use “perceptual hashing” to detect illegal photos on iPhones. I have some experience to share on this technology.

https://rentafounder.com/the-problem-with-perceptual-hashes/

@DevMisc
#extra #algorithm
Learning APL

crt←{m|⍵+.×⍺(⊣×⊢|∘⊃{0=⍵:1 0 ⋄ (⍵∇⍵|⍺)+.×0 1,⍪1,-⌊⍺÷⍵})¨⍨⍺÷⍨m←×/⍺} ⍝ …but it’s unreadable!

https://xpqz.github.io/learnapl/intro.html

@DevMisc
#apl #overview
Framework Patterns

A software framework is code that calls your (application) code. That's how we distinguish a framework from a library.

https://blog.startifact.com/posts/framework-patterns.html#

@DevMisc
#meta #framework
Nim by example

Nim is a powerful statically typed language that allows the programmer expressiveness without compromising run-time performance. As a general purpose programming language, it gives the same sort of power and performance as C++, but in a nicer package and with even more powerful tools!

https://nim-by-example.github.io/

@DevMisc
#learn #nim
Add a blog to your domain using Hashnode

You can start a blog in just a few seconds using Hashnode and then you can move that to your own domain if you get one later. They will even help distribute your articles on their platform.

https://hashnode.com/

@DevMisc
#blog #web #platform
The unknown features of Python's `operator` module

At the first glance Python's operator module might not seem very interesting. It includes many operator functions for arithmetic and binary operations and a couple of convenience and helper functions. They might not seem so useful, but with help of just a few of these functions you can make your code faster, more concise, more readable and more functional.

https://martinheinz.dev/blog/54

@DevMisc
#python #tips
The World of CSS Transforms

The “transform” property is such a powerful part of the CSS language! In this blog post, we'll take a deep look at this property and see some of the nifty things it can do.

https://www.joshwcomeau.com/css/transforms/

@DevMisc
#css #tips
Create Your Own Kernel In C

In this article we will create a simple kernel such as printing HelloWorld first and then writing functions for printing numbers, Keyboard I/O, Box Drawing GUI, and Tic-Tac-Toe game in kernel in C.

https://www.codeproject.com/Articles/1225196/Create-Your-Own-Kernel-In-C-2

@DevMisc
#kernel #c
DevOps, SRE, and Platform Engineering

Sharing my understanding of DevOps, SRE, and Platform Engineering based on the first-hand experience in SRE and PE domains.

https://iximiuz.com/en/posts/devops-sre-and-platform-engineering/

@DevMisc
#devops #misc
PHP 8.1 made me delete these 30 lines of code

PHP 8.1 is just around the corner, around a bunch of RFCs that got approved for the sake of making the developer write less, which is always a good way to accelerate your time writing and reading...

https://darkghosthunter.medium.com/php-8-1-made-me-delete-these-30-lines-of-code

@DevMisc
#php #quality #tips
Python is NOT Single Threaded (and how to bypass the GIL)

In this video I show that this is utterly false and that you can be very CPU efficient with Python when calling out to something like a c-extension.

http://www.youtube.com/watch?v=m2yeB94CxVQ

@DevMisc
#python #concurrency
Nginx configuration made easy

NGINXConfig is a tool which can help you easily setup your nginx web server.

https://www.digitalocean.com/community/tools/nginx

@DevMisc
#nginx #tools #server
Recursion For Absolute Beginners in Python

In recursion, we solve smaller versions of a problem continuously until we can solve the original larger problem...

https://zl-liu.medium.com/recursion-for-absolute-beginners-in-python

@DevMisc
#python #recursion #beginner