Better HN
topnewbestaskshowjobs
Log inSign up

codefined

966 karma · joined Apr 30, 2017 (9y ago) · 308 submissions

Feeling like contacting me?

email - hn (at) femto (dot) host discord - Codefined#8017

I'm pretty open to talking about anything.

Submissions

comment 9y ago · link · parent

I was under the impression that WebAssembly had reached cross-browser consensus and isn't a service from any individual multinational.

How would using WebAssembly make the web less free any more than using other new features like Async/Await?

comment 9y ago · link · parent

I'm talking about regulation, not control.

Companies are regulated already to stop monopolies and we're not living in North Korea.

comment 9y ago · link · parent

It does concern me when people say that the internet should be unregulated, especially given the recent vote in the US and the likely upcoming votes in the UK.

Monopolies are very easy to form on the internet, and in the interest of improving everyone's use, we need to try to avoid them. Walled gardens currently trap people into one service and limit the ability to swap between them, similar to "forcing" you to use just one company for your construction work, no matter the price.

I haven't heard a great answer to this problem yet, if one even exists. Is there a way to attempt to prevent these from forming which can be practically implemented?

comment 9y ago · link · parent

Legality issues spring to mind.

comment 9y ago · link · parent

Interestingly, I'm getting a significantly higher hash rate in Chrome than in Firefox (12,000 vs. 600). This is despite the fact that Firefox has a higher priority on my OS (High vs. Normal) and they're both using the same amount of CPU.

What hash rates are you seeing on your machine/browser?

comment 9y ago · link · parent

Ah, excellent! Indeed it did work.

I wonder what causes Github to mess up on just the verification messages, probably something to do with the character set.

comment 9y ago · link · parent

Your example repo appears to contain some weird characters for me:

https://puu.sh/waX9G/3d54abf030.png

https://puu.sh/waXy2/7106b4768d.png

This is on Chrome Stable, Windows. Looking in the Github rendered.

comment 9y ago · link · parent

You mention systemd getting a lot of hate, but I've never had any problems myself with it or know anyone who has. What sort of things do people dislike about it?

comment 9y ago · link · parent

This doesn't seem to give me a single clue on what it does past the initial change of:

    hub clone rtomayko/tilt
Am I missing something?

comment 9y ago · link · parent

Does uninstall default to --save too? Because if so, then your workflow doesn't even have to change gear. You just install it to check it out, you like it then do nothing, you don't like it then you can just `npm uninstall`, something you'd hopefully do anyway.

comment 9y ago · link · parent

We actually used Node.JS' request module, combined with some NLP (using natural) in order to pick out the main content. This worked pretty well, but for our purposes we didn't need it to be perfect because anything like headers would be removed when we processed the content (not being full sentences).

comment 9y ago · link · parent

My team (5 others) and I built an application that would help you revise or learn a subject by testing you about it, where that subject could be anything, from mathematics to Shakespeare.

It worked by scraping the top 1000 Bing results and then scraping several levels deep from each of the results to generate a "map" of knowledge. This in turn could be used to ask the user questions, generated fill-in-the-blanks, matchups & whatever else you could think up.

It worked after the five-day hackathon, which was truly surprising, but unfortunately, it used too much computing power so we never released it to the world.

comment 9y ago · link · parent

As most encryption takes place at the software level, not the hardware level, wouldn't it be difficult to infect all hard drives with some virus targeting encryption?

Also, not to mention most of my hard drives are made by China, whom seem not to like the NSA very much. This leads me to believe that they may struggle with the mass infection part.

comment 9y ago · link · parent

Just hiding bugs isn't a good practice! It'll ruin responsiveness with lower resolutions where that content is required.

Actually fix the underlying cause, not just add a quick hack to make it go away.

comment 9y ago · link · parent

Live in the UK, we get taught that sort of stuff in high school. Every term we'd have one morning for PSHE (personal, social, health and economic education) where we'd learn things like how to fill in taxes, how to create a CV and also some more varied ones like how to play poker.

Although occasionally they were hit and miss (pornography is as bad as cocaine was a memorable one), I really valued them as useful life skills. The Wikipedia article gives an excellent definition [0]:

> Personal, social, health and economic (PSHE) education has in various forms been part of the National Curriculum for schools in UK since 2000 ... PSHE education is defined by the schools inspectorate Ofsted as a planned programme to help children and young people develop fully as individuals and as members of families and social and economic communities. Its goal is to equip young people with the knowledge, understanding, attitudes and practical skills to live healthily, safely, productively and responsibly.

[0] https://en.wikipedia.org/wiki/Personal,_Social_and_Health_Ed...

comment 9y ago · link · parent

Also, for lots of things there is really no need to host your own servers. It's going to cost more and be less reliable unless you get to a much larger stage or have a lot of computational requirements.

comment 9y ago · link · parent

Really? From what I've seen they turn it off as soon as they can to save battery life.

comment 9y ago · link · parent

I enjoy Surge[0] which automatically picks high-ranking backgrounds from /r/wallpapers and includes a nice time/weather feature. When I'm not on Chrome, I usually use Ricain's OwnPage[1]

[0] https://chrome.google.com/webstore/detail/surge-material-new... [1] http://ricain.github.io/ownpage/

comment 9y ago · link · parent

Some of them are actually rather nice, I really enjoy OxygenOS for example (the vendor OS for OnePlus phones). It just seems that a lot of the awful OS' are delivered by the larger companies.

comment 9y ago · link · parent

I feel hate speech is an offense against free speech, but I still don't think it should be allowed. Honestly, things like being racist to someone on the street shouldn't be allowed in any country.

I guess it just comes down to the lesser of two evils.

comment 9y ago · link · parent

I can just imagine some over-worked scribe attempting to draw one of the more complex shapes like:

https://thenounproject.com/browse/?i=1037952 https://thenounproject.com/term/keyboard/1018886/

I think there was a reason Chinese wasn't based upon the images of the things they were writing about!

comment 9y ago · link · parent

I think at that stage it becomes your main project!

comment 9y ago · link · parent

Have you considered downloading just the envelope of each email very quickly at the start (takes 2-3 seconds for me with 3,000 emails) and then lazy loading the rest either when they're loaded by the user or slowly over time? Even downloading hundreds of thousands of items would take only a minute of high CPU usage.

comment 9y ago · link · parent

Compressed as an executable, using `electron-builder`. And thanks, femto is cool, but Nylas is awesome! It's the mail client I currently use and will almost certainly use for the foreseeable future.

Just thought I might toy with a minimalist email client, the thing that gets me about Nylas is it takes a while to synchronize emails.

comment 9y ago · link · parent

My favorite application to do this is git-quick-stats[0]. Then just multiply by something value (maybe 7/4.8) to calculate an estimate of the number per workday. For me, it appears to be roughly 500 lines per day. However, this is just a side project I work on in my spare time. This is a mean though, not a median (which would probably be more fitting), so should definitely be taken with a pinch of salt.

[0] https://github.com/arzzen/git-quick-stats

comment 9y ago · link · parent

Meetings are often useless because they're put on too much, but I find that code & design reviews are one of the most important parts. Not only does it benefit the company (having cleaner & more efficient code will remove later code bloat), but it also benefits you by learning from other peoples experience. That being said, there have been times where code reviews aren't done well. If code reviews are based upon fact, I find they often go significantly better than those based upon opinion.

comment 9y ago · link · parent

The reason I became a programmer was to not have a repetitive lifestyle and I think it's pretty easy to accomplish that. I always have new problems to solve which require new techniques to be used and anything that gets done repetitively? Just automate it.

Although I do completely agree that about 90% of my work is actually thinking about how to implement a problem as opposed to actually implementing it.

If you're rewriting tens of functions that are almost identical, you should probably consider finding a different way of organising your code (even if there are minor differences between the functions).

comment 9y ago · link · parent

40MB seems a little excessive? An entire mail application I created in Electron was 30MB which included the Node binaries. Not to mention it also had all of Chromium.

comment 9y ago · link · parent

I've been trying to create a complete open source solution to this exact problem, although I've only been working on it for a month and so far have only semi-complete the email part of it. You can see the current iteration of it here:

https://github.com/femto-email/client

1
7891011