Nothing makes you hate cars more than living on a busy street, forced to listen to their din day in and day out. >:(
Cities Aren't Loud: Cars Are Loud — Not Just Bikes
Urban noise is a common problem, and the vast majority of it is created by motor vehicles. Noise is far too often dismissed as a minor nuisance, rather than the legitimate health issue that it is.The book "Curbing Traffic" has a chapter about the health impacts of noise pollution. I explore the research in the book, and visit Delft, the city that is highlighted in the book as being a shining example of what can happen when noise pollution is taken seriously.
This video explores the problem that farting cars, farting motorcycles, and farting mopeds create in our cities.
like this
reshared this
From here:
There is no 'free' market, and there never has been. The 'free' market is predicated on the belief that all players will act honestly, and make informed choices based on available information. This is a completely false assumption, and has been proven so time after time.It completely ignores human nature whereby someone will always lie, cheat, and steal to achieve their own ends -- this is what we see here.
Industry players will always form cartels and collude in anti-consumer behavior -- price fixing being the prime example.
Without someone to keep corporations in line, the market would steadily skew to all of the power being in the hands of a few.
There is no such thing as a 'free' market, and there simply never has been. It's a utopian myth which can never be true.
People who go around spouting about the 'free' market are either naive, self deluded, or actively lying.
like this
reshared this
damn, so we've had 11 years of this very thing getting worse.
when will people get it?! people keep voting for these pro corporate parties and it's depressing
Neil E. Hodges likes this.
bazkie 👩🏼💻 bitplanes 🎵 likes this.
well, the same is happening here in the Netherlands. people have been voting the neoliberals into power for decades, despite things going to shit, and other parties being available here.
it's the propaganda that's working; most people still believe that free market capitalism is great, and it will take a lot more downfall before they understand it's shit.
Neil E. Hodges likes this.
Neil E. Hodges reshared this.
@bazkie about 10 years ago when I had learned just enough Dutch to read sites where younger folk hung out (and chat to them) I learned a fair few thought all the bicycles, good public transport (which folk in UK often envy!) and the high cost of learning to drive (which is same as UK) was imposed by "big government/EU" and they wanted to have cars just like young people in UK, enjoyed watching Top Gear and thought folk in UK and USA had more "freedom" (and those youths would be 30-40+ by now, many with families of their own)
At least you are highly unlikely to get Nexit as everyone can see the mess the UK is now in 5 years later..
@vfrmedia UK has been a lovely warning sign for us indeed!
..tho people have been voting far right the past few years despite Trump, so maybe most people don't really understand warning signs 😅
and about that dutch youth; keep in mind we've had neoliberal rule for decades now, so the whole "free market good, nationalization bad" has been really hammered in.
not sure if we'll get rid of it in my lifetime tbh. but most of the lovely social policies we have left stem from the more progressive governing we had before I was born 😅
btw why did you learn dutch? (maybe I asked before)
Neil E. Hodges likes this.
Neil E. Hodges likes this.
I love pirate radio!
I don't know if it's actually a pirate station, here's an FM broadcaster near Quinault Lake here that plays all kinds of odds and ends with weird stuff in between. It might fall under LPFM, but I doubt the FCC would hassle them anyway since it's in the middle of nowhere and low power.
like this
@vfrmedia what's LPFM?
I wonder if maybe the FCC is a bit more relaxed these days since people listen to FM radio less (or well, I imagine that they do)
the "free market" is to economics what the frictionless spherical cow is to high school physics.
The very existence of corporations means there is no free market. Corporations are a legal construct of governments that grants a business (and later even a mere collection of assets) status as a district entity separated to some degree from the owners and workers within.
As such, there is no choice between "government vs corporations" because they are *two sides of the same coin*...it is all one big hegemony.
We have all been thoroughly conditioned to think otherwise for a couple of centuries now. It is thoroughly ingrained the minds of everyone in the "free world" that corporations are the capitalist free market and government is the socialist planned economy but that is pure BS.
The biggest economies in the world have arrived in the same place from two different directions...the US being a corporatocratic regime and China practising state capitalism.
As such deregulation just means re-regulation.
Neil E. Hodges likes this.
Bouncy Castle is Australian in origin and therefore American restrictions on the export of cryptography from the United States do not apply to it.
owo
Petar Petrov reshared this.
The #Python standard library sure is something. :P #programming
(This is in the types module.)
try:
raise TypeError
except TypeError as exc:
TracebackType = type(exc.__traceback__)
FrameType = type(exc.__traceback__.tb_frame)like this
Tech Cyborg reshared this.
Modern shell #scripting is weird. :P #programming #bash #linux
#!/usr/bin/env bash
function parse_options () {
declare -n result="$1"
shift 1
result['verbosity']='4'
result['memory']='24G'
result['volumes']=''
result['device']='/dev/st0'
result['write-rate']='250M'
local opt
local OPTARG
while getopts 'vm:n:i:' opt
do
case $opt in
v)
result['verbosity']=6
;;
m)
result['memory']="$OPTARG"
;;
n)
result['volumes']="$OPTARG"
;;
i)
result['device']="$OPTARG"
;;
r)
result['write-rate']="$OPTARG"
;;
esac
done
if [[ -z "${result['volumes']}" ]]; then
echo "-i VOLUMES is required"
exit 1
fi
return 0
}
declare -A CONFIG
parse_options CONFIG "$@" || exit 1
exec mbuffer \
-v "${CONFIG['verbosity']}" \
-m "${CONFIG['memory']}" \
-n "${CONFIG['volumes']}" \
-p 30 \
-s 65536 \
-A 'sh /usr/local/bin/tape_wait.sh' \
-f \
-R "${CONFIG['write-rate']}" \
-i "${CONFIG['device']}"like this
reshared this
Buffers? I see no buffers. It's a relatively trivial little script to translate one command-line API into another. I would use typeset instead of declare to make it portable to Korn Shell, and get rid of the unnecessary local OPTARG. I would get rid of the unnecessary local-reference trick with result -- it is not a sin to modify a well named global variable in a shell script. It could easily be translated into entirely POSIX-compatible syntax by using multiple global variables.
As for using another language, well that would be both silly, and far more complex. The shell is always already there and quite capable.
Neil E. Hodges likes this.
Doesn't using an #LLM to create large portions of your codebase mean that you end up with a lot of code that nobody understands unless they put in the time to go through it and learn what it's doing? If so, it's not much different from writing the code from scratch in the long one. :/
(Yes, I know about boilerplate and do think that's a valid use case as long as you know what the boilerplate is doing.)
like this
Neil E. Hodges likes this.
Had quite the time working on a personal project recently. It changed my life forever.
- Learned the hard way that the (default on most POSIX)
forkcontext is bad news. - Wrote a Unix domain datagram based log infrastructure.
- Wrote an algorithm that operates kind of like
concurrent.futures.as_completed(), except it has a priority queue and doesn't eagerly load the list of futures. - Discovered that it's possible to overload
concurrent.futures.ProcessPoolExecutorwith futures, preventing any actual background processing after a point. - Got TONS of practice optimizing stuff for large datasets.
- Learned that taking breaks is important for reasons than most people are aware of.
- My life was permanently altered by this project. I basically nerd-sniped myself.
like this
Tech Cyborg reshared this.
This whole mess got me thinking seriously about learning #Kotlin, since it would eliminate needing to use IPC to make use of multiple CPU cores. (Yes, I actually like the #JVM, but don’t want to boilerplate myself to death with #Java. :P )
I’ll probably still look into learning Kotlin, but not for this project.
Christoph S likes this.
PEP 703 – Making the Global Interpreter Lock Optional in CPython
CPython’s global interpreter lock (“GIL”) prevents multiple threads from executing Python code at the same time. The GIL is an obstacle to using multi-core CPUs from Python efficiently. This PEP proposes adding a build configuration (--disable-gil) to CPython to let it run Python code without the global interpreter lock and with the necessary changes needed to make the interpreter thread-safe.
#python #programming #gil
Andrew Sterian reshared this.
csv.writer.writerow() and one of the strings (not bytes) in the row contains a null character in it, and you are using a csv.Dialect with escapechar set to None, it will result in this condition evaluating to true when it shouldn't. That will almost immediately result in the need to escape, but no escapechar set exception being thrown. #programminglike this
reshared this
like this
Of course current so-called "AI"s are all trained by reading lots of code, so it may also be possible to argue that nothing they produce can really be claimed to be truly "clean room" creations, even though technically the way they work pretty much can't copy any actual code (or anything else) from their training materials.
like this
I miss the simplicity of the early Web.
@contextmanager
def func(…):
resource = …
try:
yield resource
finally:
…#programming
like this
reshared this
Greg A. Woods (another old account) likes this.
Neil E. Hodges likes this.
Neil E. Hodges likes this.
The release notes for 10.15 (when it was first deprecated) do say:
Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. Future versions of macOS won’t include scripting language runtimes by defaultThe same appears in the Xcode 11 release notes.
They don't say what specific "legacy software" they refer to though.
Neil E. Hodges likes this.
like this
reshared this
- Fediverse.Party - explore federated networks
Let's make social media free, federated and fun! Fediverse.Party is your guide into the world of decentralized, autonomous networks running on free open software on a myriad of servers across the world. No ads and no algorithms.fediverse.party
Neil E. Hodges likes this.
Neil E. Hodges likes this.
Neil E. Hodges likes this.
Any ideas on a JSON → Java code generator for the AP object boilerplate?
Neil E. Hodges likes this.
GitHub - jediverse/coruscant
Contribute to jediverse/coruscant development by creating an account on GitHub.GitHub
Neil E. Hodges likes this.
Neil E. Hodges reshared this.
I can handle the polymorphism, but I still won't have time until the weekend.
But I would probably want to design a new protocol from scratch first.
like this
like this
Neil E. Hodges likes this.
These days, a lot of the time I end up putting together my own answers from the source code and API reference.
Neil E. Hodges likes this.
like this
like this
CLR Assembly RegEx Functions for SQL Server by Example
Phil Factor presents a simple CLR Assembly to allow SQL Server users to access all the powerful RegEx library methods in .NET.Phil Factor (Simple Talk)
Neil E. Hodges likes this.
like this
https://www.reddit.com/r/java/comments/ypg8bl/comment/ivjed8w/
r/java - Comment by u/pron98 on ”Understanding Java's Project Loom”
173 votes and 24 comments so far on Redditreddit
Neil E. Hodges likes this.
like this
I haven't been uploading a couple of big trips' worth of #photos because I've been working on a new tag editor. With it, I won't need to mess around with #Flickr's uploading UI as much. (Photo)
I wrote it in #Java since it's what I've been writing the most because of work. As much as people love to hate on it, there are a number of things I like about Java 8+. #photography #programming #photog
like this






bazkie 👩🏼💻 bitplanes 🎵
in reply to Neil E. Hodges • • •like this
Neil E. Hodges and Griff Ferrell like this.
Neil E. Hodges
in reply to bazkie 👩🏼💻 bitplanes 🎵 • •like this
bazkie 👩🏼💻 bitplanes 🎵 and Griff Ferrell like this.
Daniel
in reply to Neil E. Hodges • • •every time I contemplate "upgrading" the stock exhaust on my bike, I remember it's already louder than a car exhaust.
Most car exhausts, anyway. Not the M3 that my neighbour across the road drives.
like this
Neil E. Hodges and Griff Ferrell like this.
Mira
in reply to Neil E. Hodges • • •like this
Neil E. Hodges and Griff Ferrell like this.