HNHacker News
TopNewBestAskShowJobs

ericfrederich

883 karma · joined June 12, 2014

submissionscomments
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.
ericfrederich··on What It Takes to Hold Your Breath for 24 Minutes (2017)
I call BS. His entire head was not submerged. He simply found a way to breathe through his ears.
ericfrederich··on Show HN: Rb – Turns Ruby into a command line utility
Not well tested... just whipped this up.

The example to sort df -h by the percent:

  df -h | p 'sorted({}[1:], key=lambda x: int(x.split()[-2][:-1]))'
I saved this as ~/bin/p

  #!/usr/bin/env python3
  
  import sys
  
  single_line = sys.argv[1] == '-l'
  code = ' '.join(sys.argv[2 if single_line else 1:])
  if single_line:
      for line in sys.stdin:
          print(eval(code.format('line.strip()')))
  else:
    print('\n'.join(eval(code.format('sys.stdin.read().splitlines()'))))
ericfrederich··on How I Recovered Millions of Transactions Using Tcl (2016)
Python is a great way to run Tcl ;-) Seriously though, Python's Tcl bindings are done at the C level and provide great interoperability.

At a previous job I utilized these low level bindings to create higher level bindings. Used reflection of both Python and Tcl to expose themselves to each other. Was able to seamlessly use Tcl objects from Python and vice versa.

ericfrederich··on Show HN: GraphCMS – A GraphQL-based Headless CMS
>> Can I host GraphCMS on my own servers? >> Please talk to sales to discuss deployment options.

This is not an answer. Talk to sales?

I don't mind paying for support. I'm not a fan of paying for enterprise features. I would never want a dependency to something which is not free.

ericfrederich··on PEP 572: Python assignment expressions has been accepted
Check this one out. https://github.com/borntyping/python-infix
ericfrederich··on Using GraalVM to Run Native Java in AWS Lambda with Golang
Sweet... I feel like someone should do this for a Jython program as a joke.

Then you'd have Python code executed by an interpreter written in Java compiled by Graal to produce a native binary which will be registered on AWS as a Go executable and will communicate via Go's net/rpc.

... as opposed to switching the runtime to Python ;-)

ericfrederich··on The Biggest and Weirdest Commits in Linux Kernel Git History (2017)
Visualization of octopus merge with 66 parents:

https://imgur.com/gallery/oiWeZmm

Run this:

git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' 2cde51fbd0f3

ericfrederich··on WSL File System Support (2016)
Yeah, I was just going to say I think I remember watching this one.
ericfrederich··on Gitea: Open source, self-hosted GitHub alternative
Does it manage issues, pull requests, etc modeled in a distributed way? I was always dumbfounded as to why you'd take a great distributed collaboration tool like Git and then centralize it around issues, pull requests, comments, etc.

To me all of those things should be Git objects as well either tracked inside the same repo on another branch or something or tracked in a parallel Git repo.

ericfrederich··on Python Environment
Try installing pipsi such that it uses python3 to install simple scripts like httpie or youtube-dl and you'll see how big of a mess it really is.
ericfrederich··on Matrix and Riot Confirmed as the Basis for France’s Secure Instant Messenger App
Never heard of Matrix... looked it up; gross... python2.7
ericfrederich··on GameLad – Gameboy emulator written in C++
My thoughts exactly. Being written in C++ isn't interesting enough on its own.

What about the implementation is interesting? Does it make heavy use of some new feature like coroutines, or something? It is supposed to be very elegant? What?

ericfrederich··on GraalVM: Run Programs Faster Anywhere
Why is this yet another implementation of Python? If C is supported why not use CPython itself?
ericfrederich··on Quake III Arena GPL Source Release (2012)
I wish there was a way to distinguish between real forks and forks that were created for the sake of creating a pull request.
ericfrederich··on Cloudflare's new DNS attracting 'gigabits per second' of rubbish
Oh, okay... I thought it was your ISP or something. That is why I was wondering how anyone would even notice.
ericfrederich··on Cloudflare's new DNS attracting 'gigabits per second' of rubbish
Who scolded you for it? Wouldn't that just mis-route legitimate traffic to 1.1.1.0/24 locally instead of to the internet?... but you probably had no legitimate traffic there anyway, right?
ericfrederich··on Cloudflare's new DNS attracting 'gigabits per second' of rubbish
This is called a Honeypot.

https://www.youtube.com/results?search_query=ssh+honeypot

ericfrederich··on Hacking a $30 IoT camera to do more than it’s worth
Do you lose the push notifications when you use the custom firmware?
ericfrederich··on A Visiting Star Jostled Our Solar System 70,000 Years Ago
Wikipedia says this is 17-23 light-years away. So it moved between 16.2 and 22.2 light years in 70k years. This means relative to us it is moving an average of 0.0231% to 0.0317% the speed of light.
ericfrederich··on Show HN: Asynchronous HTTP/2 client for Python 2.7
Qt has an event loop and async http library. I've used it from PyQt with great success.
ericfrederich··on Show HN: Asynchronous HTTP/2 client for Python 2.7
How does that compare to aiohttp? What are the benefits?
ericfrederich··on Tail recursion in Python
It takes a constant space since it is not even recursive. The decorator makes it a non-recursive function with a loop.

It'll effectively side-steps the recursion limit in Python. For runs under the limit anyway, it'd be interesting to see whether it's any faster. It trades function call overhead for exception handling overhead.

By the way, the first example where it has `return 1` is wrong. It shoudl `return accumulator`. Clicking the GitHub link someone suggested this in December.

ericfrederich··on Checked C: extension to C that adds static and dynamic checking
I wish that when all these guys tried to create a better C/C++ they made it compatible such that I could create shared libraries usable from other languages.

C, not even C++, is still the only common denominator between languages. The fact that I cannot create a shared library in Golang or Python that is callable from the other is very disappointing.

ericfrederich··on Geek Squad staff 'paid by FBI' to flag illegal imagery
When my son was circumcised the pediatric urologist said if we had any concerns we could text a picture of it to him. I thought that sounded weird, but could see how this is totally legitimate doctor trying to save himself time and save ourselves an appointment, and money for an office visit.
ericfrederich··on Google's C++ Class
Chapter 1: Use Golang
ericfrederich··on Why Searching Through 500M Pwned Passwords Is So Quick
A bloom filter can be pushed to clients. Everything is static and could be served from a CDN. If there is a hit you could then do a secondary request to perform an actual lookup. For passwords which have not been pwned there'd be a 100% savings on CPU.
ericfrederich··on Show HN: Deploy a Go Lambda to Ping a Site in 20 Seconds
I'm curious about how AWS handles lambdas written in Go. Go produces statically linked Linux binaries. What is it about Go that is supported? What is it about binaries written in other languages that isn't supported?
← PreviousPage 3 of 14Next →