Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: dct Clear Filter

Dict Unpacking in Python

mom can we have dict unpacking in python? we have dict-unpacking-at-home please don't use this no seriously. I do not need another joke package of mine to be deemed "critical" to pypi 1 ok how do I use it pip install dict-unpacking-at-home add # -*- coding: dict-unpacking-at-home -*- to the top of your file (second line if you have a shebang) enjoy! # -*- coding: dict-unpacking-at-home -*- dct = { 'greeting' : 'hello' , 'thing' : 'world' } { greeting , thing } = dct print ( greeting , gree

Why JPEGs still rule the web (2024)

A version of this post originally appeared on Tedium, Ernie Smith’s newsletter, which hunts for the end of the long tail. For roughly three decades, the JPEG has been the World Wide Web’s primary image format. But it wasn’t the one the Web started with. In fact, the first mainstream graphical browser, NCSA Mosaic, didn’t initially support inline JPEG files—just inline GIFs, along with a couple of other formats forgotten to history. However, the JPEG had many advantages over the format it quickl

Why JPEGs Still Rule the Web After 30 Years

A version of this post originally appeared on Tedium, Ernie Smith’s newsletter, which hunts for the end of the long tail. For roughly three decades, the JPEG has been the World Wide Web’s primary image format. But it wasn’t the one the Web started with. In fact, the first mainstream graphical browser, NCSA Mosaic, didn’t initially support inline JPEG files—just inline GIFs, along with a couple of other formats forgotten to history. However, the JPEG had many advantages over the format it quickl