HNHacker News
TopNewBestAskShowJobs

grw_

376 karma · joined January 26, 2015

email: georgerw@gmail.com telegram: @cuffslide
submissionscomments
grw_··on 12 requests per second: A realistic look at Python web frameworks
I encountered this a few times and started adding tests that assert each handler only executes the expected number of queries (and no more). If the application code is modified such that this N+1 query pattern occurs the test will immediately fail and you go optimise the query, problem solved.

https://docs.djangoproject.com/en/dev/topics/testing/tools/#...

grw_··on Open source Mali GPU drivers merged
Maybe they are the aforementioned rights-holders :)
grw_··on Open source Mali GPU drivers merged
I forget where I read this, but I recall that due to patent situation it's practically impossible to build a GPU without infringing on some patent or another. By keeping drivers closed source it's possible to maintain deniability- if ARM released open source GPU drivers it would be trivial for rights-holders to look at the implementation and see what they can sue for. It's not impossible to do this with blob drivers, but harder.
grw_··on Call of Duty gaming community points to ‘swatting’ in Wichita police shooting
> when it's really occurring, and isn't just some troll

I don't know how often hostage scenarios as extreme as you describe actually occur in the USA, but I read about instances of 'swatting' constantly. Given the false-positive rate of such reports, it's no surprise that sending military-style squads to 'shoot on sight' ends in tragedy again and again.

grw_··on The scrypt parameters
> Can you point to an example of a (nontrivial) site where a DoS attack against the password hashing service was the primary point of failure?

Here's a vulnerability report from the Django framework where arbitrarily-large passwords could be submitted for checking, tying up server resources in a DoS attack: https://www.djangoproject.com/weblog/2013/sep/15/security/

I'm not sure any real-world sites were affected by this, but had the patch not been applied it certainly would have been possible.

grw_··on Hyperloop One Becomes ‘Virgin Hyperloop One’
Why would atmospheric pressure be lower underground?
grw_··on Principles of Sharding for Relational Databases
Sorry if this is obvious, but why not use multiple drives?
grw_··on Scientists Design Solar Cell That Captures Nearly All Energy of Solar Spectrum
I've wondered about the 'used panel' market for a while. Do you know why your seller didn't just increase the price of the property or move the panels? Does the second-hand price of panels decrease linearly with the amount of lifetime left, and how can you verify?
grw_··on The iPhone killed my inner nerd
Awesome :D
grw_··on The iPhone killed my inner nerd
> I’d sit smugly reading my emails on a train with my iPAQ or one of the original HTC Pocket PC devices with a stylus. I couldn’t download apps from an app store for these phones because those stores didn’t even exist yet.

This killed me- I used to run a 'App Store'-like site for Pocket PC around this time which allowed installing apps OTA- usually this required running the installer on your Desktop PC and syncing to device. I knew lots of people wanted this but didn't know how to let them know about my site. Web archive has a copy, but only the home page :(

http://web.archive.org/web/20051201023911/http://www.cabfile...

grw_··on Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot
True, I had discounted my time spent on DIY as 'hobby time', which I do for fun and learning. Had I included this then of course it would have been far greater.

I have a few plants I wanted to monitor, so price is more relevant- $300 is more than I'm willing to pay. I think you underestimate how much of the world thinks $60 is unreasonable for such a device, but i don't suppose there's a way to know which of us is right :)

grw_··on Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot
You are right, i edited my comment. I think it's wrong for most perspectives- cost, power use, complexity, security, but it's a good choice if you need high-level programming environment or extensibility.
grw_··on Show HN: GreenPiThumb – A Raspberry Pi Gardening Bot
A raspberry pi is the wrong choice for this project from my perspective, complexity is far too high for a simple project. I looked at building the same thing (minus watering) because it seemed commercial products were way too expensive (Parrot Flower Power is $60!).

The cheapest DIY solution I could think of was ESP8266 ($2), Vreg ($.5), moisture sensor ($.5) and LiPo battery (i have many of these..) but I decided I didn't have time or inclination to write the software.

I continued looking for commercial products, and ordered one of these: https://www.aliexpress.com/item/Chinese-Version-Original-Xia...

Pros- Cheap ($15). Has temperature, light and 'fertility' (capacitance?) sensor. Cons- Logs to phone app (in chinese) via BTLE instead of WiFi.

After a few weeks it seems to be working satisfactorily and I will probably order a few more units.

grw_··on [dead]
BadPrototypeError: Objective-C expects 1 arguments, Python argument has 3 arguments for <unbound selector setProperty of NSSpeechDriver at 0x10d9e4e00>
grw_··on The Liver: A ‘Blob’ That Runs the Body
UberLivers anyone? I fear organ donation is scheduled for disruption. I found this programme discussing issues around social media donor-matching campaigns quite interesting- http://www.bbc.co.uk/programmes/b08nq6fh
grw_··on A startup’s Firebase bill suddenly increased from $25 to $1750 per month
AFAIK this doesn't happen by default, since by default the autoscaling will reduce instance count to 0 if the old versions aren't receiving any traffic.
grw_··on Over 150 new families of Newtonian periodic planar three-body orbits
I, for one, welcome our new Trisolarian overlords!
grw_··on gRPC-Web: Moving past REST+JSON towards type-safe Web APIs
The reference implementation of gRPC on github[0] has 998 open issues and 215 open pull requests. Every time I've tried to use this package I have encountered a previously-reported issue which has remained unfixed for months.

If you need to interact with Google platform it's hard to avoid using gRPC, since many "official" libraries seem to be migrating towards this library, while it remains fragile and bug-ridden. My "days since gRPC problem" counter is currently on "2", after hitting an issue which /crashed my python interpreter/ and required altering apache config to workaround[1].

[0] https://github.com/grpc/grpc/issues

[1] https://github.com/grpc/grpc/issues/9223

grw_··on Ask HN (again): What is the best affordable programmable drone?
It's hard to answer this question without knowing more precise values for "good range", "reasonable flying time", and even "ability to be programmed". At this price point, I think your only option is to buy an off-the-shelf quadcopter and modify it yourself. The $30 Hubsan H107[0] can be reflashed with an open-source firmware[1], although you won't be able to process video from the camera using the onboard MCU.

[0] https://www.banggood.com/Hubsan-X4-H107C-2_4G-4CH-RC-Quadcop...

[1] https://github.com/goebish/bradwii-X4

grw_··on Brexit vote site may have been hacked, MPs say in report
You expected the registration site for a national referendum in which 45 million people voted to be "a small, low-traffic service"? No surprise it collapsed!
grw_··on Use App Engine and Go to Host a Static Website with Same Domain Redirects
The app.yaml routing allows "fall-through" routing, where your application's handler is only invoked if no static files match:

  - url: /static
    static_dir: static/
  - url: /.*
    script: _go_app
The redirect 'map' smells bad- better to simply serve the file if path exists, redirect if it doesn't.
grw_··on How Forensic Architecture Revealed Details of a Secret Military Prison in Syria
I think that's a reasonable concern to have. My question was regarding the parent comment's implication that AI themselves are deciding not to publish information on abuses in other areas. The user seems to feel that these things have not been publicised, when in fact there are ongoing awareness campaigns on all of the countries listed.
grw_··on How Forensic Architecture Revealed Details of a Secret Military Prison in Syria
Amnesty International works tirelessly to document human rights abuses in all of the other conflicts you mention and has done for many years. What exactly is your point?
grw_··on Chrome 57 Will Permanently Enable DRM
Appears to be 'cracked' as far as is possible- i.e, can remove the watermark itself, but not possible to undo the degradation to the original signal that the watermarking introduces.

http://cyberside.net.ee/ripping/cinex_wp_release1.pdf

grw_··on TA.Gui – A tool for non-developers and business users to automate web apps
Looks cool, well done. I toyed with the idea of building something similar as a product a few months ago. I think there's an opportunity for a service that allow users to create their own integrations for services that are too niche for Alexa/Siri etc to bother with, but would still benefit from automation. Example might be booking local tennis courts, seeing what specials are on at local restaurant, etc.

Some other ideas-

- Save macros retroactively. i.e, Extension records all the time, user selects previous n steps from 'action history' view.

- Paid service for running macros in cloud on schedule, receive reports, notifications, etc.

- Invoke macros from Alexa, FB bot, etc

- With above, can interactively ask for instruction if it encounters an error (button not found, etc).

grw_··on Ask HN: Why does GitHub have a black bar?
I thought I'd been marked..
grw_··on The JVM is not that heavy
OT, but this expression seems like a corruption of 'build up steam' and 'pick up speed'. 'Pick up steam' doesn't really make sense in original context- something a steam train would do while stationary and preparing to move :)
grw_··on Trident whistleblower: nuclear 'disaster waiting to happen' (2015)
I agree- weapons that actually exist are of far greater significance to this discussion. I just thought this was a better fit to the GP's original comment than the other suggestions posted.
grw_··on Trident whistleblower: nuclear 'disaster waiting to happen' (2015)
I think it's more likely to be this: https://www.brookings.edu/blog/order-from-chaos/2015/11/18/r...

Interestingly, it appears to be propaganda only intended for internal consumption in former USSR.

grw_··on China has built the world’s largest bullet-train network
Capacity is only needed for short periods at peak times, which could be achieved by e.g running more standard-class carriages instead of first class. [0]

Since you mentioned Coventry, it's intercity capacity to London will actually be reduced if HS2 comes to be due to extra trains to Birmingham occupying the track. Same for many other towns and cities in the Midlands. [1]

[0] https://beleben.wordpress.com/2016/04/05/friday-capacity-to-... [1] http://stophs2.org/news/13115-13115

← PreviousPage 2 of 3Next →