HNHacker News
TopNewBestAskShowJobs

ericfrederich

881 karma · joined June 12, 2014

submissionscomments
ericfrederich··on Pure Skill Minesweeper
I had a co-worker who played minesweeper all day long on his Linux workstation which I had remote access to. I grabbed the source code for the exact version of gnome-mines he was using and compiled my own version with some back doors. I would also launch an xvnc server so I could see him playing from my desk. Sometimes I'd have people over at my desk watching him play. It was hilarious.

I could enable various features while the game was playing. Features included: * Always lose on first click * Always win on first click * Force a guess in all 4 corners... so even if played perfectly he'd have to make 4 guesses. * Load custom designs from text file. For instance I had some that spelled things out. * Every click would be completely surrounded by mines (i.e. the number 8) until half the mines were exhausted. This one was fun because I remember him not believing it and actually clicking on a mine. * Ridiculous sounds when he won or lost

ericfrederich··on Deep Learning for Guitar Effect Emulation
So this seems similar to an IR (impulse response) where you get a snapshot of an amp mic'd up in a room with knobs fixed at a particular position. In the end, you don't get knobs to fiddle with.

Awesome, I'd love to hear Josh from JHS Pedal's opinion on this.

ericfrederich··on A wild PyBoy appears: a GameBoy emulator written in Python
Written in Python2.7 which had its end of life in January
ericfrederich··on Ancient shell shows days were half-hour shorter 70M years ago
I can see how counting the rings can tell you that there were 372 rotations per revolution vs today's 365 rotations per revolution. What I don't get is how you correlate that to shorter days. Wasn't the Earth's revolution on a different period back then too?

If you assume the revolution period was same back then as it is now... sure, half an hour difference I get it. Or are we assuming that the rotation is changing faster than the revolution?

ericfrederich··on Programmers generate every possible melody in MIDI to prevent lawsuits
Not sure where that math came from. 16 bit 8 by 8 pixel image would be 16^(8x8) or in Python...

  print(f"{16 ** (8*8):.4E}")

  1.1579E+77
EDIT: I calculated 16 color, not 16 bit. Disregard

Python wanted to use a float to convert to exponential format but it overflowed. Need to use strings ;-)

  n=(2**16)**(8*8); s=str(n); print(s[0] + '.' + s[1:6] + 'E+' + str(len(s) - 1))

  1.79769E+308
ericfrederich··on A new hash algorithm for Git
I'll have to update my program which generates vanity hashes. I do enjoy starting projects with an obligatory "Initial Commit" with a deadbeef SHA-1
ericfrederich··on A comment on Hacker News led to 4½ new Unicode characters (2016)
Even the existing repurposed one doesn't work on my up-to-date Linux Mint installation.

http://www.fileformat.info/info/unicode/char/2B58/browsertes...

ericfrederich··on The FBI considers FaceApp to be a potential counterintelligence threat [pdf]
Total Commander was the recommended replacement a while ago when ES started to become shady.
ericfrederich··on Sunsetting Python 2
I hope the Raspberry Pi community really switches to Python3 soon.

I've looked at the PiStorms stuff MindSensors (Lego Mindstorms compatible). Unfortunately it all seems to be just Python2 based.

Looking at all the code it seems you're always basically running your own event loop (infinite while True: loop). I think it'd be really awesome to utilize Python 3's asyncio package to write more event driven programs.

Writing code in asyncio is basically a different paradigm. It's not like Golang where you can write a function and not care if someone is calling it synchronously or starting a goroutine with it. With Python asyncio it seems for every good library out there someone has a create an asyncio version of it. For instance "requests" vs. "aiohttp".

So, while embracing Python 3 still wouldn't get me what I ultimately want, it's a first step in the right direction.

ericfrederich··on Android 10
I remember reading somewhere that a future version of Android would be able to tether an existing WiFi connection but I can't find the article. I hope this Android 10 contains this. It's painful to go to a hotel that has a captive portal and not be able to use something like a Chromecast. Would be super useful to sign in once on your phone and then share that WiFi with other devices.
ericfrederich··on Software made me loathe my car
Software has ruined my Jeep Wrangler https://youtu.be/T3IowgbXYRQ https://youtu.be/j-clbv0E7f0 https://youtu.be/CRjg8wwQ6qA https://youtu.be/Y4dTz8oM4Rs https://youtu.be/-PRmE4dnj28
ericfrederich··on Python rounds float values by converting them to string and then back
/* wordexp is also rife with security "challenges", unless you pass it WRDE_NOCMD it must support subshell expansion, and even if you don't beause it has to support so much of the standard shell (all the odd little variable expansion options for example) it is hard to do without a subshell). It is probbably just plan a Bad Idea to call in anything setuid, or executing remotely. */
ericfrederich··on Python rounds float values by converting them to string and then back
I was looking once at Python and Redis and how numbers get stored. I remember Python would in the end send Redis some strings. I dove pretty deep and found that Python floats when turned into a string and then back are exactly the same float.

I remember even writing a program that tested every possible floating point number (must have only been 32 bit). I think I used ctypes and interpreted every binary combination of 32 bits as a float, turned it into a string, then back and checked equality. A lot of them were NaN.

ericfrederich··on How to survive an open office
"Retry later"

Nice, short and to the point. I will say, even though this "blog" doesn't look professional at least it doesn't have any ads on it.

ericfrederich··on Canonical Ltd source code repositories have been compromised
... and today PGP was poisoned
ericfrederich··on Inventors killed by their own inventions
So... kinda like the Darwin Awards, but not really?
ericfrederich··on Joyent Public Cloud EOL
Sad to hear. I selfishly hope the company does well for the sole purpose of keeping Bryan Cantrill employed so he can continue to give fantastic talks that I watch on YouTube.
ericfrederich··on Shipping a Linux Kernel with Windows
WSL used to have very good blog posts and videos explaining the workings of WSL. There haven't been any updates in a while, this is disappointing.
ericfrederich··on Remote Code Execution on Most Dell Computers
I have a Lenovo Thinkpad Yoga x1. I'm afraid to reinstall fresh Windows because of stylus
ericfrederich··on Sublime Text 3.2 Released
Didn't know about Sublime Merge. Though, I am hesitant to learn or become dependent on any GUI for Git other than gitk, and git-gui which ship with Git.

Honestly, Tcl/Tk is ugly as hell but every other GUI I've seen seem to just be re-stylings of those. There is also a blame gui which comes with Git.

ericfrederich··on Stack Overflow: Helping One Million Developers Exit Vim (2017)
What about tmux and screen?
ericfrederich··on New Dell XPS 13 developer edition now available
Is the hardware exactly the same as the non-developer version?

... meaning, could you order one with Windows 10 and then later down the line decide to run Linux on it and not have any issues?

ericfrederich··on Looking Glass, a revolutionary window manager revealed in 2006
I wish something would have came from Sun's Project Wonderland.
ericfrederich··on 3factor apps: a pattern for fast iteration, resilience and high scalability
OpenFaaS
ericfrederich··on 3factor apps: a pattern for fast iteration, resilience and high scalability
https://3factor.app/#comparison-to-12factornet

It's an architecture. No claims were made that switching architectures is easy, quick, or even recommended.

There should be no comparison to 12 factor. The choice of title did make me click on it though.

ericfrederich··on The Beauty of Programming (2001)
Comic Sans?

... and before you downvote me, ask yourself.. "did I immediately think the same thing?"

ericfrederich··on Nextspace – NeXTSTEP-like desktop environment for Linux
CDE!
ericfrederich··on How America lost its love for the stick shift
I bought the new JL Wrangler. For a vehicle that is about fun and adventure I was between the automatic and manual. When it came time to order and saw the automatic was a $2k option, it was an easy choice. I could have gone either way.
ericfrederich··on On the Road to Pure Go X11 GUIs
I thought X was on its way out?
ericfrederich··on MikroTik routers are forwarding owners’ traffic to unknown attackers
I have AT&T fiber and hate the hardware I have. Could you link to your script please? I'm toying w/ the idea of buying my own hardware.
← PreviousPage 2 of 14Next →