Better HN
topnewbestaskshowjobs
Log inSign up

bArray

7,485 karma · joined Mar 14, 2016 (10y ago) · 2,314 submissions

Why jump in one pond when you can dip your foot in many?
Submissions

comment 8y ago · link · parent

>the bandwidth is dominated by the RSS feed

Exceptionally low cost per hit, as opposed to overall bandwidth. Overall bandwidth will probably fair off worse as you say due to the polling nature of RSS. I think in general RSS readers could do a better job of fetching heads and checking whether or not there is a change worth fetching, that would save a tonne of bandwidth.

Also in general, I would be tempted to make an RSS feed more minimalist in terms of content and markup. It should just be a short `<description>` and a link to the main article (which would still allow you to potentially monetize your content or gauge interest more accurately).

>I think it's more likely that for my Wordpress blog the CSS/JS overhead is just not that much

Also, bandwidth is just one resource - potentially each call to a page is a database read, whereas your RSS feed should be static (not sure about the WordPress implementation, but I would hope for static caching with something that doesn't change for long periods of time). I've seen WordPress database lockups with modest amounts of traffic (again, most of the time this could have been easily statically cached - but doesn't appear to be by default).

comment 8y ago · link · parent

I think that still requires a change to both the server and the reader - although at least not a new standard.

comment 8y ago · link · parent

>This dreary state of affairs is due in part to the fact that "checking" an RSS just means downloading the entire file containing all posts the author would like to make public, regardless of how many are new to the reader. This insanely unnecessary bandwidth usage penalizes sites that have long (>10) feeds with complete posts. (The single RSS file on my blog takes up the majority of my bandwidth costs.)

Still, exceptionally low cost compared to running pretty much any website's massive CSS and JS files. A single image in most cases will take more than the entire RSS feed before compression.

That said, I would like to see a new standard (a new one would be needed [1]) that only gets the difference from what you last read - I think that would really take RSS feeds to new places of usefulness. There's no reason why you couldn't send the server an ID (not timestamp to avoid issues with timezones, clock stretching, forward/backward time setting, etc) of the last request and have it send back everything since (within reason).

[1] https://www.w3schools.com/XML/xml_rss.asp

comment 8y ago · link · parent

I quite like the visual confirmation that I'm not about to do something stupid, to me that's worth paying the cost of an extra key.

And I jump between enough systems that I doubt myself with stuff like: is `d1d` or `d0d` or `dd` equal?

comment 8y ago · link · parent

Thank you for explaining this! I will have to practice, replace is something I don't do very often enough to remember but do it often enough that it annoys me each time.

comment 8y ago · link · parent

Very interesting.

>To delete patterns that do not match, useful for debugging: `:g!/pattern/d`

This is something I would normally use something like grep to achieve, nice to know it exists in vim as well.

>* `:norm` this thing motivated me to use more of the movement commands like `A`, `o`, `D`, `f`, `cw`, and `ci`. Used `:[range]norm cmd`, it acts like each key in the command is run on every line in range. I usually use it with a selection, for example to add a comma to the end of every line in range with `A`, or insert at the end of line: `:norm A,`

In this specific case, I would tend to (maybe in gvim) run a replace on `\n` -> `,\n` to achieve this. That's kind of what I'm looking for in terms of string replacement.

The rest is certainly interesting, but for my work flow I like to generally keep things as simple as possible (bad memory). I've never found myself thinking "I wish there were more movement commands" for example.

comment 8y ago · link · parent

Okay, so I've come across `vim.tiny` a few times now, what's the difference?

Plain `vi` I can't seem to work out, the shortcuts I usually use all seem to be different?

comment 8y ago · link · parent

Aha yeah, it's a recursive improvement on itself, like the GNU acronym!

comment 8y ago · link · parent

I would either:

* SHIFT+V to highlight a line, `d` to delete * `:d` to delete the current line

Not experimented with `dd` (or `yy`).

comment 8y ago · link · parent

I use (Vim IMproved - not vi) vim all the time. I find it interesting to see what features other people tend to use in vim, there seems to be some minor differences in their workflows, but it's not clear who "wins" the productivity battle.

I only use a very small number of it's features:

* `:tabe` Create a new tab

* `:e .` Start browsing files in that tab

* `:w` Write the file

* `:q` Quit the file (`:q!`, seriously, please do quit the file)

* CTRIL+SHIFT+UP/DOWN To switch tab (doesn't reliably work on every machine)

* `/WORD` To search for something

* `:NUM` To go to a specific line

* `i` To insert

* SHIFT+V to select lines

* `d` To delete lines

* `x` To extract lines

* `y` To "yank" (copy) lines

* `p` To paste lines

>Here are a few things I wish I could do better:

I don't have a great memory, so memorizing more than what I use every day is a little too much. One thing that I'm working on remembering is the ability to replace strings (although I don't really like regex).

>Would I learn Vim again?

I'm yet to experience anything compelling enough to stray me away. The advanced features are there if I ever need them, but for the most part I am free to have a lightweight editor.

comment 8y ago · link · parent

In addition to @colanderman's suggestion I also do this on an application level - although not everyone will be able to do this.

comment 8y ago · link · parent

From my personal low-end server perspective (which has stood up to simple attacks from Russian IPs), I have the following:

1. Static page caching (in RAM ideally) - dynamically generated content will kill you quicker than anything else, especially calls to a database. WordPress is very easy to kill in it's default state.

2. Kill high frequency requests from the same location as quickly as possible (make sure your response is less than the data they send you - ultimately you want their systems to be busier than yours). You want to free the port up as quickly as possible.

3. Move anybody you can identify as a legitimate user (credentials, low frequency requests) out to another server if possible.

Firewall wise, my system sits on the cloud, so usually high frequency traffic is the only issue I have to deal with. Interested to hear any advice of other people here.

comment 8y ago · link · parent

It's awesome it exists, but useless if nobody uses it. I think the Google homepage is the only Google product I'm aware of that loads fast, minimal CSS and still loads without JS. Even on a modern computer, some websites have become completely unacceptable to run in the background (i.e. Facebook).

Installing NoScript and blocking external CSS was the best decision I ever made. Now use <25% of the RAM and <10% of the CPU I used to for the same number of tabs (in Firefox) - with a better experience because the browser isn't constantly trying to die.

The UK Government site team is my go to for a good web design philosophy: https://www.gov.uk/guidance/government-design-principles (Hell, if they could run the actual Government like this we would be in a lot better shape!)

comment 8y ago · link · parent

Just throttle your router settings for download/upload - have fun!

In all seriousness though, people designing websites should be given the shittiest connections possible and old computers (between 5 and 10 years old). Maybe then we'll end up with websites that haven't got more JS than content, broken CSS and images that push the page download over several megabytes.

comment 8y ago · link · parent

Two "might" occurrences means it's unlikely. The chances are these people will be swallowed by whatever the most profitable industry is at the time.

My guess would be similar learning systems that aren't subject to GDPR, such as government, external to EU (US), the ludicrous information of things (smart sensors, cloud, etc) where information doesn't leave the user's control, AI driven products, etc.

Then you'll have quite a few who will just continue regardless, sometimes it's easier to apologize (and pay a small fine) than it is to ask for permission.

Don't get me wrong, I would love for all of these people to end up in the (Scientific) health industry. (It's worth mentioning Scientific, as there is a lot of useless crap that uses some form of learning and offers no real gain - would be disappointing to see them all end up applying deep learning to homeopathy for example.)

comment 8y ago · link · parent

There could be a genuine need for this sort of CSS "framework", for example mobile phones mess up font size quite a bit.

My site CSS has the following just to make sure that the mobile browser (from testing) doesn't make the font unreadable:

    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    max-height: 999999px;
No doubt there are some breaking cases still!

But agreed, this is getting quite ridiculous...

comment 8y ago · link · parent

Running NoScript, the entire website seems to not load - awesome.

comment 8y ago · link · parent

>Blowing a fuse is irreversible— once it’s been set it can never be undone.

Sounds impossible, until you find out that if you don't blow them hard enough you can get fuse re-flow under hot conditions. Good fun to debug.

In theory (untested to my knowledge), if you super cool the chip you could lower the resistance of the fuse and prevent it from blowing and absorb heat around the fuse, but it's probably not all that practical for casual game players.

As for getting to the problem at hand (force downgrading your system), some potential solutions (nothing easy):

* Careful control over the chip's power and you could perform a power supply timing attack, tricking the processor logic. This seems like a bit of a stab in the dark though.

* Assuming the bootloader is loaded into some form of RAM, you could look towards modifying the RAM as the chip boots to contain some kind of "skip" code for set pins. Game consoles have hardly been beyond the realm of needing mod-chips to access different features...

* The other option would be to replace the chip containing the bootloader with a non-upgraded one.

comment 8y ago · link · parent

>its a bit of hurtful truth bArray there.

I can say from personal experience that it's never easier to hear either. Starting with good intentions is not the same as delivering a good product.

Out of interest, how far along is this project now in respect to hardware and software? Is it ready to ship once you have enough orders?

>We did already pull back a bit on most of our SW promises and packed them inside a "beta-mode" as we realised after testing a personal driver phone is no experimenting ground.

Don't get me wrong, your SW looks awesome. Actually, I would really love a version of this phone I could run Linux (proper Linux, not Android) on.

>This post just beat us before we finished relaunching our website with a simpler communication strategy and a def. a better website.

That's unfortunate. You should "relaunch" your PR push and get across some kind of "we listened" to cheaply get yourself back into public eye on good terms.

comment 8y ago · link · parent

For a while now people have bypassed Facebook's API restrictions for chat and news-feed by using the "mbasic" webpage version. It's pretty trivial to get around most of their API hostility. How long that'll last I don't know, but it's a pretty important service for connecting people in places with very low bandwidth.

But... That said, building one decent chat app is a massive time sink in itself. Then do this for many different popular apps with massively varied features (Google maps, Uber, etc) - then build that all into Android, then build the hardware - this phone isn't going to be released for years.

Note that it's a pre-order and not an order, it's just not ready yet and likely will never be ready at their price point. They'll get less backers than they expect, burn through the cash faster than they want and will struggle to meet their promise. As other comments have points out, they're better off starting with lower expectations and a website people can use. That's all just assuming it's not a scam.

comment 8y ago · link · parent

Playing about with some of these crashed my Firefox tab. Seems interesting, but snot something I would personally deploy.

comment 8y ago · link · parent

You aren't living too long with your internal organs "explosively" removed from your chest. From the wikipedia article:

>Hellevik was about to close the door between the chamber system and the trunk when the chamber explosively decompressed from a pressure of nine atmospheres to one atmosphere. One of the tenders, 32-year-old William Crammond of Great Britain, and all four of the divers were killed instantly; the other tender, Saunders, was severely injured.[10]

comment 8y ago · link · parent

If the code snippets are useful enough to me, I tend to add them to the repository under some title like "tools" or "scripts". That way other people can benefit from them and help improve them if they are useful. Otherwise the knowledge/time dies when I move away from the project.

Documentation wise, I use Markdown (religiously keeping it to 80 characters) and Pandoc to build any kind of output. Again, I normally just add this stuff to a Wiki somewhere. I've been terrible at keeping this stuff up to date, but for the most part it acts as a good starting point and either myself or someone else in the team can update it.

On a different note, I would be careful about adding content related to work to outside resources (run this by somebody). Personally I like to stay in control and not rely on some relatively small company still being around in 10 years time.

Edit: +1 also for using paper and pen for coming up with ideas, etc. Most things start there for me and then end up being digitized.

comment 8y ago · link · parent

It seems as though everybody in the room has a very different agenda and even more different level of education on the subject. Some seem to be using it to grill Zuckerberg, some to setup discussion and some to air dirty laundry. It's a bit of a circus in there.

Current hearing live on Youtube: https://news.ycombinator.com/item?id=16812334

2035.

Mark Zuckerberg's second grilling from US lawmakers [video](youtube.com ↗)

2 points · by bArray · 8y ago · discuss

comment 8y ago · link · parent

Speaking of challenging iOS and Android, not really heard too much from either Firefox OS [1] or Ubuntu Touch [2] - seems as if both have officially been dropped despite looking promising. I think the big two need some competition in the mobile OS space but there doesn't seem to be big support from the actual market itself.

[1] https://en.wikipedia.org/wiki/Firefox_OS

[2] https://en.wikipedia.org/wiki/Ubuntu_Touch

comment 8y ago · link · parent

I think it really depends on whether the neurons responsible for handling vision processing have any natural spatial processing ability. It's not obvious to me whether they would or not. My guess is that allowing some time to look around the objects (without being told which is which and without touching them), that they would be able to create spatial relationships for vision processing (sensorimotor loop) and be able to overcome this issue. Once there is some spatial reasoning for the two different types of input, I believe they would begin to build correlations between them (only for very simple shapes).

Perhaps an experiment could be made that would answer this by giving a person a completely new sense and asking the same identification problem. I think the skin could be interesting to use as it allows 2D input with the possibility of utilizing existing spatial mapping, yet isn't used (in most cases) for 2D depth feedback. You could attach some device that heats/cools, pokes, pinches or something else to excite nerves based on some depth information. Of course they would be blindfolded and unable to touch the objects.

You could make two different types of experiment, one that has spatial mapping to the skin and another that is randomly linked, seeing how long (if at all) it takes for somebody to figure out from the inputs which shape they are observing.

My guess is that they could quickly get an intuition for each shape simply by looking at the rate of change of inputs when they move about the object.

comment 8y ago · link · parent

Obviously off topic now, but as a youngster in the gym I used to use a similar machine that required me to lay down and push my legs. I worked my way up to max weights on that machine (very quickly). One day I pushed my legs out and heard this terrible crunch come from my lower spine, was barely able to hobble back home. It was near enough back to normal after 2 days or so, but scared the hell out of me.

For me it goes to show that humans are more fragile than we often like to think.

comment 8y ago · link · parent

For those saying something along the lines of "should we expect a massive reaction every time a few people get upset?" - just look at the UK and the Nazi pug story [1]. It seems as though a mass of outraged people on social media can have very real life consequences as there's no evidence for it stopping anytime soon.

Personally I think this is more towards a vigilante mob culture and in most cases it's counterproductive to throw people under the bus. The real failure here was Marriott failing to envision somebody one day accidentally pressing a button in "error" (at least to cause negative PR). They've set a dangerous standard for themselves that large negative PR should result in job losses.

[1] https://www.telegraph.co.uk/news/2016/05/09/nazi-pug-man-arr...

comment 8y ago · link · parent

>Since I may not have time to update my article for a while, here is a link to the script[1].

Thank you. I was hoping you had figured out how to get it going in `pandoc`, tried it myself to no avail but just assumed I had done something wrong.

>I am unclear on your dnt script? What does it do? I don't have any facilities on my site to track users at all as it stands.

No, but I can imagine it useful if you did want to put a relevant YouTube video or Tweet embedded in, but wanted to respect DNT. It's worked pretty well so far.

>I will probably be mooching parts of your CSS though, thanks for posting it here!

No problem! Some parts to make the font size a little better for mobiles too at the top :)

>Edit: you are correct, I seem to have forgotten to include <HTML> tags... I should probably fix that.

Yeah, not a massive deal but who knows, could break something in the future!

1
676869
78