HN user

walrus

2,096 karma
Posts17
Comments310
View on HN

It's fine as long as bike paths are physically separated from cars and are maintained to the same standard as roads. My college had a network of pedestrian/bike paths that they plowed in the winter, and I and many others had no problem biking year-round.

Here's Seattle's network of protected bike lanes: <https://i.imgur.com/vEDhqoz.png>. Note that many of them are flawed in one or more ways:

* There are frequent car crossings at blind alleys and driveways, often every 20-30 feet.

* Many are "protected" by flexible posts that are easily driven over.

* When protected bike lanes run next to roads, drivers often turn across them at intersections without looking.

I generated the map with Overpass Turbo: <https://overpass-turbo.eu/s/1mT6>. To make it render nicely, check "Don't display small features as POIs" under settings. If you want to try it for a different city, drag/zoom it into view and hit "Run".

The "trekking bike" and "safety" profiles seem to work pretty well. The safety profile produces routes I would take any time of day and the trekking bike profile produces routes I would take outside of peak road rage hours.

WTF is a bike doing in the middle of the road?

I used to ride as far to the right as possible on roads without bike lanes, but then I got hit by a driver trying to squeeze past me without changing lanes.

It appears to use C3D as its CAD kernel, which is proprietary. You can't build it without a copy of C3D. I'm guessing the source will be available for inspection, but the binary will cost money.

It depends what I'm doing, but I typically use one of the following (starting with the most frequent):

1. IPython with Pandas if I expect to do any in-depth exploration/manipulation of the data.

2. A short Python script like `python -c 'import csv, sys; r = csv.reader(sys.stdin); ...' <data.csv` if it needs to run on someone else's machine.

3. https://github.com/BurntSushi/xsv if I want to quickly munge some data or extract a field.

4. Gnumeric if I want a GUI.

5. https://github.com/andmarti1424/sc-im if I want a TUI. This is closest to what you were asking for.

Selfie 2 Waifu 6 years ago

The following instructions are for Linux or macOS. It may work on Windows too, but I'm not very experienced with Windows. No special hardware is required (you can run it on a CPU; no GPU needed).

Install pyenv[0] and pyenv-virtualenv[1]. Clone the repo and set up an environment:

  git clone https://github.com/taki0112/UGATIT
  cd UGATIT
  pyenv install 3.6.10  # [2]
  pyenv virtualenv 3.6.10 UGATIT
  pyenv local UGATIT
  pyenv activate
  pip install opencv-python==4.2.0.34 tensorflow==1.14.0
Download the pretrained weights from https://github.com/taki0112/UGATIT/issues/50#issuecomment-53.... Extract them:
  tar xf ugatit100.tar.xz
  mkdir checkpoint
  mv UGATIT_selfie2anime* checkpoint
  mkdir -p dataset/selfie2anime/{train,test}{A,B}
Crop your images in a 1:1 aspect ratio so that they contain only the head. Place them in the dataset/selfie2anime/testA/ directory. Run the program:
  python main.py --dataset selfie2anime --phase test
Open results/*/index.html in your browser to see the results.

[0] https://github.com/pyenv/pyenv#installation

[1] https://github.com/pyenv/pyenv-virtualenv#installation

[2] Other versions may work, but this is the version mentioned in https://github.com/taki0112/UGATIT#requirements

My experience corroborates this.

I worked at two small ISPs, each with a fiber network spanning a few US states. They had their own databases to track this information, but as far as I know there was no central database. One of them used OSPInsight backed by a self-hosted SQL Server database. I don't know what the other place used.

It's not the case that malloc always works under Linux. It may return NULL if the memory is not available. Try it out! Write a program that allocates half your memory, fills it with 0xFF, then sleeps. Run two instances of it. The malloc will fail in the second one.

According to [1], the OOM killer is a consequence of the fork syscall, and can't be removed without breaking backward compatibility.

[1] https://drewdevault.com/2018/01/02/The-case-against-fork.htm...

Tensorflow sucks 9 years ago

Can you give a sketch of how you would like these examples to look? Any language is fine; you can pretend that libraries for GPGPU, backprop, and gradient-based optimization already exist.

I tried to do so myself and couldn't come up with anything significantly better, but I've been writing Python for a long time and might just be stuck in a local minimum :)

Tensorflow sucks 9 years ago

There’s no way I’d deploy it to production.

I've seen this stated by a few people, but never justified. What are some reasons for not deploying PyTorch in production?

Disclaimer: I have no idea what I'm talking about.

Here's roughly how it works, if I understand correctly. First, a normal male endocrine system looks roughly like this:

  1. The hypothalamus produces GnRH.
  2. In response to stimulation by GnRH, the pituitary produces LH and
     FSH.
  3. In response to FSH and LH, the testes produce sperm and
     testosterone, respectively.
  4. Testosterone inhibits the production of GnRH by the hypothalamus (a
     negative feedback mechanism). This effectively keeps testosterone
     levels regulated.
When external testosterone is introduced, here's what happens:
  1. The increased testosterone inhibits the production of GnRH by the
     hypothalamus.
  2. In absence of GnRH, the pituitary produces less FSH and LH.
  3. In absence of FSH, the testes produce less sperm (this is the
     contraceptive effect). In absence of LH, the testes produce less
     testosterone.
The net effect is less sperm and the body produces less testosterone on its own.

This makes me wonder: would this lead to testicular atrophy? That happens with steroidal antiandrogens and GnRH agonists/antagonists, both of which have the effect of decreasing LH and FSH. Also, I think there are cardiovascular risks associated with high testosterone.

Was ZFS determined to be the problem in the root cause analysis, or was it another part of the storage system that failed? It's easy to pass the blame down to the lowest level of the system because no one wants to take the blame.

If it was actually determined to be the fault of ZFS, what was the problem? I'd like to avoid it in my own deployment.

Is there a more polite way to go about this?

This is the usual process for submitting a large change to a project:

1. Check the issue tracker or mailing list for an existing discussion about Python 3 support. If there is one, read the discussion. If there isn't one, start the discussion. Mention that you're willing to make the changes if there is interest. Remember that supporting both Python 2 and Python 3 places a burden on all future contributors.

2. Keep the changes minimal and easy to review.

3. Review the changes yourself before sending a patch/pull request.

4. Run the test suite.

5. Test your changes in all versions of Python the software supports.

Forgetting #1 is usually the cause of tension when people submit large patches. The person who submits a patch wants to see their patch included. The authors of the project want to make sure it aligns with the goals of their project and doesn't break their software.