HNHacker News
TopNewBestAskShowJobs

peller

879 karma · joined January 29, 2013

submissionscomments
peller··on Life in the Spanish city that banned cars
I don't know anything about the Raleigh project but some other thoughts on maybe why Church St works:

- Burlington is the biggest city in VT, and being on Lake Champlain and relatively close to the best ski areas in the state, it attracts a lot of tourists year round

- A ton of local businesses downtown, urban/residential neighborhoods are also very close

- A fair amount of parking (multiple parking garages, nearby on-street parking and parking lots)

- There's City Hall Park, and the town promotes the 'culture', e.g. allowing street vendors and performers, and with the recentish ban on smoking, it's pushed most of the bums into the alleys/side streets

peller··on Be likeable or get fired
It seems to me, being "popular" is more an attained status rather than any kind of quality. What I mean is, the kids who went along with the group gave the group an opportunity to evaluate the newcomer - and gave the newcomer a chance to build some level of likeability, trust, respect.

One may be all of those things, but without giving the group an opportunity to discover that for themselves, they aren't going to listen to your suggestions. Or one may start by going along with the group, but be abrasive and obnoxious, and no matter how much time they spent with the group, they won't be popular.

peller··on Western Digital WD Black 3D NAND SSD Review
It's both, depending on the segment. The vast majority of SSD controllers can easily saturate the SATA bus, so there's not really much room for differentiation in 2.5"/M.2 SATA drives. But when you've got a PCIe-3 x4 bus to work with, as is the case for the NVMe drives being compared in this article, it's a whole different ball game. There the bottleneck is the controller (and to a much lesser extent, the flash itself). For a while Samsung was really the only game in town, as far as high-end performance goes, but it seems like WD has finally got a worthy competitor. Now it just remains to be seen how well the drives hold up (bad controller firmware can put up high performance numbers at the expense of the longevity of the flash (aka your data)).
peller··on NixOS 18.03 Released
Rereading my response, I don't think that's at all what I was arguing for. I thought I was quite clear in qualifying the specific situation when I thought it would be helpful to know about lower level details. I'm sorry you interpreted it the way you did.
peller··on NixOS 18.03 Released
To each their own I guess. I strongly prefer their method. It let's me set up my system exactly how I want without having to fight with some GUI installer to make sure it doesn't do anything stupid. And hey, you might even learn a thing or two about how an OS works - partitions, boot loaders, init systems, it's all really quite important to understand when things go wrong and you need to recover your system manually.
peller··on Ask HN: What are the best MOOCs you've taken?
I took a few courses by the same guy at school. Probably the best professor I had at UVM
peller··on Ask HN: Whats the best way for a Software Engineer to learn finance?
I might suggest you pick up copies of the books in the Market Wizards series. A good library should have them (or could get them). It's a series of interviews with some of the best in the field, across all kinds of different types of finance. They're enjoyable reads, filled with insight, and give a good broad perspective from which you can dive deeper into areas that you think might be especially interesting to you.

[1] Market Wizards - https://www.amazon.com/Market-Wizards-Jack-D-Schwager/dp/088...

[2] The New Market Wizards - https://www.amazon.com/New-Market-Wizards-Conversations-Amer...

[3] Hedge Fund Market Wizards - https://www.amazon.com/Hedge-Fund-Market-Wizards-Winning/dp/...

peller··on Ivy – A static website generator built in Python
Looks pretty nice for simple static sites. However on the homepage it says

> You can build any kind of website using Ivy but it's particularly suited to building project documentation

But unfortunately I'm not seeing anything about generating source code documentation from docstrings (like Sphinx). For me, that would make it much more useful.

peller··on TechShop shuts down all U.S. locations, declares bankruptcy
Yea, for sure. I suppose that could either be a staffing problem, or demand outstripping (tool time) supply. In the latter case - if there was space/power available - perhaps they could have gotten a second tool. Or from an economics perspective, raise the rates until the demand cooled off a bit. (Of course that kinda sucks as a member, but it also sucks if you're paying and can't get access time to use the tools you want, so it's a bit of a balancing act)
peller··on TechShop shuts down all U.S. locations, declares bankruptcy
> You had to pay for a brutally waitlisted class

For better or worse, that's been the model at every makerspace I've been a member of/looked into. And I think it makes sense, insurance-mandated or not. Lots of expensive, potentially dangerous machinery that if used wrong can destroy itself, its user, and/or those nearby.

Also, in my experience once you've built up enough trust with the admins they'll let you get a crash course from a member who knows what's up and skip the fees and formal training process.

peller··on Django REST framework 3.7 released
Nice! How do you find SQLAlchemy integrates with Django overall? (Can you use its models with the admin?)
peller··on Django REST framework 3.7 released
I recently went down this path, trying to build something akin to DRF but using Flask. I'd never used Flask before, but had some Django experience and was no stranger to Python or web frameworks in general. With Flask there are a lot of choices you need to research/make around which libraries to use, and how to get them all playing nice together. I obviously ended up using SQLAlchemy but decided to spend some time writing a customized integration between Flask-RESTful and Flask-Marshmallow for the views/serialization layer.

Certainly it took me a bit longer to get up and running compared to if I'd just used DRF, but on the plus side, I feel like I have much stronger grasp on how everything works now, whereas Django still has a ton of surface area that feels a bit like magic to me. If you're interested, the repo is open sourced under MIT here[0].

[0] https://github.com/briancappello/flask-react-spa

peller··on Skulpt: client side Python without preprocessing
I've always wondered, how do you isolate/protect against people doing nefarious things in a setup like that?
peller··on Anvil: full stack web apps built only with Python
Having just built a boilerplate that integrates a bunch of the flask-* libraries, I think the key really is that you need to be careful about how you organize your code: it's important to be able to control the order of registering the various extensions you're using relative to when you're registering your app code. Otherwise you're going to end up in circular-dependency import hell. Buried in the documentation is a hint on how to do this correctly with application factories[0], but if you don't know that's there, it's very hard to just stumble upon how to correctly organize everything.

[0] http://flask.pocoo.org/docs/0.12/patterns/appfactories/

peller··on DIY recipes to make your own expensive pharma drugs
Yea I mean, it's part of a lyric from a song so it's debatable whether it's meant to be taken literally or if he just needed something that sorta rhymes:

A toast to the dead / For children with cancer and AIDS / A cure exists and you probably could've been saved / Sad to see medicine divorce morality / Corporate home-wreckers pimpin' up the salary

https://www.youtube.com/watch?v=kLBNMhzn8VI

peller··on A smaller, cheaper RISC V board
I have no experience with any of this, but to my knowledge what you're looking for is the Rocket Chip.[0] It's a RISC-V core implemented in Chisel. The primary FPGA target is a bit steep at around $500 [1] but there's a "small" config[2] that targets a more reasonable $190 board [3].

[0] https://github.com/freechipsproject/rocket-chip

[1] http://store.digilentinc.com/zedboard-zynq-7000-arm-fpga-soc...

[2] https://github.com/freechipsproject/rocket-chip#-how-can-i-p...

[3] http://store.digilentinc.com/zybo-zynq-7000-arm-fpga-soc-tra...

peller··on Discover the world of microcontrollers through Rust
I don't know about Rust, but MicroPython runs quite well on the ESP8266/ESP32 boards. Might be worth investigating if you're looking for something a bit more accessible than C.

https://github.com/micropython/micropython-esp32

peller··on Examining a vintage RAM chip, I find a counterfeit with a different die inside
In this case, they were just taking an existing chip and relabeling it to something with the same pin-out/form-factor that they could sell for a higher value.
peller··on Four-year professional visas get green light in Thailand
Can you comment on the air quality? Is it as big an issue as some people make it out to be?
peller··on Vue.js vs. React
I'm not sure I follow. To use the basic example from the link, as opposed to this:

  const listItems = numbers.map((number) =>
    <li>{number}</li>
  );
  return (
    <ul>{listItems}</ul>
  );
What's wrong with looping this way?:

  return (
    <ul>
      {numbers.map((num, i) => <li key={i}>{num}</li>)}
    </ul>
  )
peller··on Ask HN: HN censoring Facebook licencing controversy?
The news on this broke yesterday evening, and at one point both threads were on the front page. In my opinion the time to mark one as a dupe of the other was then, not 12 hours later. Especially in light of the fact that the 2nd comment on the now-marked-dupe post was a link to the earlier discussion, and in spite of that, discussion gravitated to the submission linking to github over the one linking to facebook's PR response.
peller··on Ask HN: What is your current Linux distro and why did you choose it?
Awesome, thanks!
peller··on Ask HN: What is your current Linux distro and why did you choose it?
Any resources you would recommend for getting started?

So far I've found this[0] which seems like a good introduction.

[0] https://ebzzry.io/en/nix/

peller··on Ask HN: What is your current Linux distro and why did you choose it?
I haven't tried Antergos yet, but for me, Manjaro just worked out of the box. It's also technically just Arch, and I can't say I've ever experienced being shunned for using it. Sounds to me like you just had the unfortunate experience of running into some pricks on the internet. I can't see how said pricks would react any differently if you told them you were running Antergos... (But if it persists, perhaps you'd find it easier to just say you're running Arch. :)
peller··on Ask HN: What are real Ruby on Rails alternatives in 2017?
I inherited a Grails 2 codebase about 8 months ago. I'd never worked with Java or Spring before, but I have pretty extensive experience with Django, Flask and Symfony (inspired by Spring, as I understand it). Anyway, from my perspective, I'm sorry to say I have to strongly disagree with all of these points - I've never had a more miserable experience with a framework.

<rant>

First off, I found the documentation to be really bad. All of it assumes you're already deeply familiar with Spring/Hibernate, and it offers zero direction for those who aren't. Furthermore, Grails has a ton of magic. Which I guess could be OK, but again, it's all very poorly documented - and trying to read the source code of Grails itself to get a grasp on what's going on? Forget it.

Development speed? Hot code reloading pretty much doesn't work; any time I add or change a route, or a JSON marshaller (aka a serializer in every other framework known to mankind[0]), or simply add a JS file, you have to restart the dev server. Which, to top it off, spins up insanely slow compared to a proper dynamic language.

GORM. Same documentation rant. They cover the simple cases and leave you in the dark if you need to do anything more complex than a join. Luckily people on SO are helpful here, but I wish I could understand what the hell is going on behind the scenes.

Plugin ecosystem? Seems pretty small/inactive, especially compared to Django. Oh, and each time you install a plugin, expect at least another 30 seconds to spin up the development server.

Breaking changes? The recommended upgrade path from 2 to 3 is "start a new project and copy over your files." WTF?

The parameter binding/validation does work pretty well, as long as you don't try and do anything non-straightforward. But step outside the box, and it falls apart. And again, the documentation of these magical transformations is utter shit. Related: no default arguments allowed for controller parameters? Really guys?

[0] This whole "let's make up a new name for some already widely established concept/function" appears especially rampant in Groovy/Grails. Not a fan.

</rant>

Perhaps coming from the perspective of JavaLand it's an upgrade, but man, this shit is not for me. Sorry for the rant.

peller··on Ask HN: How to Make the Most of Your Master's Degree (Computer Science)?
I only went for an undergrad degree, but for what it's worth, in my perhaps cynical opinion going to university is mostly just an expensive way to buy a network. Yea, there's an educational aspect, but anybody smart and self-motivated can get that online for free.

My point is, in five or ten years, you're not going to look back and say "man, I wish I'd spent more time studying" - no, so long as you graduate with okay marks what really lasts are the relationships you make while you're there (classmates, schoolmates, professors, locals). Get out of your comfort zone, join (or start) some clubs, live life. My 2 cents.

peller··on Ask HN: Have you successfully moved away from Google search?
I too switched over to DDG around the same time, and I mostly agree - but I've had the exact opposite experience specifically with programming questions.

I can't even count the number of times I've searched for something (usually semi-obscure errors) on DDG and come up dry, only to enter the exact same query on Google and the first or second result will have the answer I needed :(

peller··on Show HN: Is the stock market going to crash?
Quoting from Bruce Kamich's How Technical Analysis Works:

Support and resistance areas form because market participants remember price levels, and they tend to react as a group when a stock returns to those prices. A simple example will make the concept easy to understand. Let's imagine that you and other investors bought a stock at its initial public offering price of $20. People who did not buy the stock at the offering price are interested in buying it at that level, and they buy the stock at $20 or perhaps above $20 as interest in the stock builds. Other buyers come in and the stock trades up to $22.

The stock may trade back and forth between $20 and $22, but let's imagine that at some point the stock slips down to $16. Some traders will hold on to the stock, hoping that its fortunes will reverse and it will trade back above $22. But if the stock remains depressed, owners of the stock who bought it in the $20 to $22 area will begin to think it would be nice just to break even. If the stock does trade back up, the desire to get out at break-even will become even stronger as the stock approaches the $20 to $22 area.

To put this price zone into perspective, the more sideways trading that occurs, the greater the supply of stock will be. There will be more people who want to "get even," and therefore there will be more resistance to the stock's advance.

Support and resistance are not precise concepts. When support develops during a decline at a price short of the exact level, it is usually because traders are anxious. They remember the prior resistance level at $22, but they start buying on the way down at $22.75 and $22.50 because they are anxious or even fearful they will not have the opportunity to buy again at $22.

On a few occasions, eager traders might push a market too quickly through a support level, and support might not develop until just beyond the support area. Whether support is found short of the expected level or just beyond the level will tell you how eager or fearful traders are.

We have seen that when support is broken on the downside, it then becomes resistance. The opposite is also true; resistance, once broken, becomes support. This reversal of roles is due to the memory of traders and investors who want to get out of their losing trades at break-even, and traders who want to increase winning positions by buying more stock at or near support.

The role reversal of support and resistance leads to the formation of trends, because in an uptrend, market pullbacks or reactions will tend to find support at the last resistance level. In a downtrend, reactions or rallies will tend to find resistance at the last support level.

All support and resistance levels are not equal. The strength of a support or resistance level depends on several factors, such as the number of times the level or area was tested, the volume of trades transacted there, how long ago the formation appeared, and whether it was a round number of a "big figure." Even knowing the type of security will help in determining the validity of the support or resistance area.

The more times a level or zone of prices is tested, the more important that level becomes. A level that is tested six times and holds tends to be more important that one that was tested only twice. The more times a support or resistance level is tested, the more traders will remember it and the more traders will be likely to be committed near it.

When a large volume of trading occurs in a support or resistance area, that adds to its validity because a greater number of traders and investors will remember the level, so their commitment to the level will likely be greater.

The further back in time the support or resistance area was formed, the dimmer the memory, and the more likely that people have already acted on new information and may not respond in the same way again. They moved on by liquidating their positions. An area of support or resistance that was formed recently tends to attract a greater number of people who are still committed to the level. Thus, these nearby levels have more validity or potency.

When a support or resistance level forms at a round number or a big figure, such as $100 or $1,000 or DJIA 10,000, many more people will remember the level because it is easy to remember and obvious. In turn, the more people who remember and act at that level, the stronger the support or resistance will be.

peller··on More people riding bikes makes cycling safer for everyone, major new study finds
Well, same as any other fear, you have 1) face it and 2) do that bit by bit. Ride one block on the street. Did you survive? Cool; your fear is now ever so slightly diminished. The next day, two blocks. And so on.

It does help if you are confident in your ability to ride in a straight line and to brake on a dime (aka using mostly the front brake). And, same as passing a truck on the highway in a car, it's generally not a good idea to hang out in a car's blind spot. As for cars that are scared to pass you, yea, that's really obnoxious. But as mentioned elsewhere in this thread, the vast majority of bike-car accidents don't happen on the straight-aways; they mostly happen in intersections.

peller··on More people riding bikes makes cycling safer for everyone, major new study finds
Agreed, thanks for pointing this out!
← PreviousPage 2 of 10Next →