HNHacker News
TopNewBestAskShowJobs

X-Istence

7,174 karma · joined February 18, 2010

[ my public key: https://keybase.io/deltaregeer; my proof: https://keybase.io/deltaregeer/sigs/fB1spa9ustk6eYzq4uXRVHb1D85EaTlipzh1uutGT34 ]

Portfolio: http://deltaregeer.com/ Engineering Notebook: http://funcptr.net/

delta@regeer.org

submissionscomments
X-Istence··on Google's Sundar Pichai says future of office is employee 'on-sites'
I live alone, and I really prefer working from home. I get to set up my own environment, and the lack of distractions is amazing for my productivity.
X-Istence··on Pkg.go.dev is more concerned with Google's interests than good engineering
If I host a package outside of the PyPi eco-system though as a wheel, pip while happily install it if I provide a full path to it, and at that point it's not part of pypistats.org
X-Istence··on Can Facebook provide postmortems on their iOS SDK crashes?
Ah, if you are using Java it is probably easier to use/develop for. One of the issue I've found is that the REST API is not well documented at all, and using it from an app perspective is not intuitive at all when you are trying to use it from applications that are not Java based.
X-Istence··on Apple Silicon: The Passing of Wintel
Hey, developer here. I'm looking forward to the ARM MacBook's for the longer battery life...
X-Istence··on Can Facebook provide postmortems on their iOS SDK crashes?
If you are an enterprise and need to set up some way to do OpenID Connect/Oauth2/SAML 2... yes.

But I would not use it in a consumer facing product.

X-Istence··on Why we won’t be supporting Sign in with Apple
Even if you have alternate email addresses associated with your iCloud account, you are free to update it to have your external email address be the default for your iCloud/Apple ID.

Visit https://appleid.apple.com/account/manage to make those changes.

Help article: https://support.apple.com/en-us/HT202667

Although I will note that it says you can't change your Apple ID email address if you choose an @me.com, @mac.com, or @icloud.com email address for your Apple ID, which is the first time I've seen that warning.

X-Istence··on Apple announces it will switch to its own processors for future Macs
It's not like Apple can't change what connectors are available on the back of the mac Mini. The form factor may not have changed, but the ports available have in the past releases.

Don't be surprised if there is no Thunderbolt 3 at all, but just USB-C.

X-Istence··on Python Wheels Crosses 90%
pyproject.toml specifies how to build a project using a builder. You'd have to execute the builder and let it build the project to know if the wheel it generates is pure python or not.

As for setuptools:

There's a class that setuptools relies on to do the actual building of the Python project, called distutils.dist.Distribution which has a function named is_pure():

https://github.com/python/cpython/blob/e42b705188271da108de4...

Which makes sure that it doesn't have any known external modules or c libraries.

So to do detection of whether an sdist is a pure python, you'd have to execute setuptools and setup.py because of course setup.py isn't just configuration, it's full on Python.

So just looking at an sdist statically you can not know if the sdist is a pure python project or not.

X-Istence··on Robinhood 20yo trader with no income loses 700k on options, takes life
You have to upgrade to Robinhood Gold (which is free for the first month, then $5 a month thereafter).

If and when you open a Robinhood account you have to opt-in to gold to be able to invest with margin.

https://robinhood.com/us/en/support/articles/overview/

X-Istence··on Why Apple ditched PowerPC, and what it says about Apple ditching Intel
There's a Citrix setup as well, which while slow works fine for the one or two times a month that I need access to encrypted email... so I haven't carried around the Windows laptop.
X-Istence··on How to reclaim disk space used by Docker volumes, but keep a few important on
docker-compose logs -f <service>

So you don't have to manually hunt down the container you want the logs for.

X-Istence··on Why Apple ditched PowerPC, and what it says about Apple ditching Intel
I do contracting for a professional services outfit, and they gave me the Windows corporate laptop (Dell Latitude) and also sent me a MacBook Pro 16", which my manager had to explicitly ask for.

The only difference? I can receive encrypted emails only on the Windows laptop due to some software not being available for the Mac.

I do all my development on macOS, and if spending $4k on a machine means I am more productive, can get work done faster, it's a return on investment that pays back multiple times.

Do note that laptop refreshes in my past companies (current is ~2 years) have been on average every 2.5 year... so it's not like I get a new laptop yearly.

That Dell Latitude is frustrating to use. The trackpad is absolutely atrocious, the display is dim, the keyboard is really mushy and causes pain in my hands when I use it for short periods of time...

X-Istence··on Robinhood 20yo trader with no income loses 700k on options, takes life
> It also appears RH users get margin accounts by default, at least from everything I've read. If that's true, it's probably the real problem.

No, you have to explicitly opt-in to it.

X-Istence··on Night owls have more grey matter in their brains than early birds
ADD isn't a recognised disorder.

However, ADHD has many sub-categorizations.

ADHD: Mostly Inattentive

Is what used to be known as ADD. It is also the one that I have.

X-Istence··on Hot-swapping Python 3 code
There is an API to pass it non-python files (so that alongside your Python app it can watch your configuration files for instance/HTML files).

However it does not work for just watching a directory + running a command, it is specifically for watching Python code.

X-Istence··on Hot-swapping Python 3 code
If you are working on code that runs a web server or some other service that is generally a long running application, take a look at hupper: https://docs.pylonsproject.org/projects/hupper/en/latest/

It is built specifically to restart things like servers as it was implemented for the Pylons Project (Pyramid web framework).

X-Istence··on Python Wheels Crosses 90%
That's a specific implementation that relies on setuptools. An sdist doesn't have to use setuptools to be an sdist.

Wheels can be generated out of thin air, there is no requirement that setuptools or any tool is ever involved, if you wanted you could zip up a particular directory structure and it is a wheel.

X-Istence··on Python Wheels Crosses 90%
Because there is no way to know if something is pure-python or not.

Even more so with pep517 and being able to use different build systems.

X-Istence··on 8GB Raspberry Pi 4 on sale now at $75
That's how it works for other PXE boot as well...
X-Istence··on The Cannonball Run record has been broken seven times in five weeks
Some municipalities and states also have rules on the book that police are not to chase if someone is driving over 100 Mph because it is more dangerous than just letting them go and catching them later.
X-Istence··on Old box, dumb code, few thousand connections, no big deal
Thanks for your kind words :-)
X-Istence··on Old box, dumb code, few thousand connections, no big deal
The thing to note is that waitress is not built for the highest speed, or the fastest, or anything along those lines.

Its primary use case is that it is pure python, doesn't rely on any specific libraries or compilers to run/build, and is a threaded WSGI implementation so it uses Python threads to run a WSGI app.

It works well for what it needs to do, and hopefully it is fairly robust. I've personally ran waitress directly facing the internet, but will readily admit that in most cases running it behind a load balancer is a good idea, especially since it doesn't support SSL out of the box (yet, I should say, it's on my roadmap).

It won't win any speed contests and it won't win performance contests, but it holds its own.

If you have any issues, please drop by https://github.com/pylons/waitress/issues and I'll see if I can help you out :-)

X-Istence··on Show HN: Pantry – Free JSON Storage for Personal Projects
Paw (https://paw.cloud) is my favourite.
X-Istence··on SELECT wat FROM sql

  jamie=# create table users ("user" text, "password" text);
  CREATE TABLE
  jamie=# insert into users values ('bob', 'whatever');
  INSERT 0 1
  jamie=# select user, password from users;
   user  | password
  -------+----------
   jamie | whatever
  (1 row)

Is because the name /user/ is a pseudo-function keyword, and is an alias for /current_user/

  test=# select "user", "password" from users;
   user | password
  ------+----------
   bob  | whatever
  (1 row)
Newer versions of PostgreSQL make this more clear:

  test=# select user, password from users;
   current_user | password
  --------------+----------
   postgres     | whatever
  (1 row)
Here is a full list of keywords: https://www.postgresql.org/docs/current/sql-keywords-appendi...
X-Istence··on On WD Red NAS Drives
TRIM is not involved when RAID is rebuilding. You are correct in that.
X-Istence··on My Favourite Diff
This is goto with slightly more code ;-)
X-Istence··on RPC Olympics – The Search for the Perfect RPC Protocol
The thin layer on TCP leaves a lot of things to be desired. Such as knowing if the other end has disappeared and won't ever come back.

Last time I used ZeroMQ was ~7 months ago at my previous job, so maybe things have changed since then, but having to write hacks to see if the other side is still there or not is absolutely terrible.

Also, the Python bindings did not like fork() without exec, which yes is bad and all, but is still something that is done every so often in real world large programs.

X-Istence··on Safari will no longer trust certs valid for more than 13 months
You could automate the generation of the wildcard certificate and push it out with chef to all your servers. Instead of replacing it once a year, you replace it every 90 days.
X-Istence··on Safari will no longer trust certs valid for more than 13 months
I posted about this a couple of days ago: https://news.ycombinator.com/item?id=22373673 didn't get much traction then :-(
X-Istence··on Proxyman – native HTTP/HTTPS requests observation and manipulation app
Which looks similar to Charles Proxy too... https://www.charlesproxy.com

Or Burp Suite. It's hard to design a brand new UI for the same functionality...

← PreviousPage 8 of 34Next →