Better HN
topnewbestaskshowjobs
Log inSign up

styfle

1,940 karma · joined Sep 20, 2016 (10y ago) · 531 submissions

https://styfle.dev

[ my public key: https://keybase.io/styfle; my proof: https://keybase.io/styfle/sigs/k5Jx2P3fJ9JOZsHyU2TLChLetDsvmL2mHK7wJMj-nKk ]

Submissions

comment 8y ago · link · parent

I was surprised too.

This issue[0] basically says the team is too small to rewrite and remove jQuery as a dependency.

[0]: https://github.com/twbs/bootstrap/issues/23204

comment 8y ago · link · parent

It doesn’t seem to work on iOS 11. The buttons are hidden behind the layout.

273.

Detroit Michigan Meteor (Bolide) Video(twitter.com ↗)

1 points · by styfle · 8y ago · discuss

comment 8y ago · link · parent

This is great!

Hey I recognize that name...you wrote Ant Planner, the tool that every UCI student uses to visualize their classes.

That was one of the first open source projects I ever contributed to (I wrote the integration with RateMyProfessor back in 2011). Thanks for your hard work!

comment 8y ago · link · parent

Where did you even find that repo? Was that mentioned in the article or is this your code?

comment 8y ago · link · parent

> The question is why don’t they collaborate and unify the efforts?

I have really wondered this. I suspect that the two projects had slightly different goals in the beginning, and are now slowly borrowing ideas from each other.

I think the only way they could truly merge is if ECMAScript standardized the subset which they both use and then TS and Flow could be used to introduce experimental proposals kind of like Babel does now.

comment 8y ago · link · parent

Try cloning this small boilerplate[0] and open with VS Code. I think you'll quickly see how powerful TypeScript is, even on a small project. Feel free to browse my repos as I have several real-world TypeScript apps.

[0]: https://github.com/styfle/react-server-example-tsx

comment 8y ago · link · parent

I found the TypeScript contributors very responsive on GitHub issues. Maybe I'm just lucky?

I just submitted a bug[0] on Jan 5 and it got fixed on Jan 9.

Another bug[1] from a couple years ago was submitted Aug 4 and fixed Aug 5.

I'm pretty satisfied ;)

[0]: https://github.com/Microsoft/TypeScript/issues/21031

[1]: https://github.com/Microsoft/TypeScript/issues/4155

279.

Immer – Create the next immutable state by mutating the current one(github.com ↗)

2 points · by styfle · 8y ago · discuss

comment 8y ago · link · parent

Nothing that a little `var unsafe = original as any;` couldn't solve!

comment 8y ago · link · parent

"Redux for babies" sounds like an insult.

It reminds me of this Nathan For You episode:

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

comment 8y ago · link · parent

I just tried the extension on this file[0] and it didn't create the Props :(

[0]: https://raw.githubusercontent.com/s-yadav/react-number-forma...

283.

Convert React JavaScript Code to TypeScript with Proper Typing(github.com ↗)

216 points · by styfle · 8y ago · 119 comments

comment 8y ago · link · parent

To summarize, someone is typo squatting Disney (an many other domains) which tricks users into installing a Chrome extension.

Here's the relevant part:

> Respondent’s <disenychannel.com>, <disneychsnel.com>, and <disneycjannel.com> domain names are identical or confusingly similar to Complainant’s trademarks.

> Respondent has no rights or legitimate interests in the <disenychannel.com>, <disneychsnel.com>, and <disneycjannel.com> domain names. Respondent is not commonly known by the domain names, nor has Complainant authorized, licensed, or otherwise permitted Respondent to use the DISNEY CHANNEL mark. Respondent also does not use the domain names in connection with a bona fide offering of goods or services or legitimate noncommercial or fair use. Rather, Respondent displays the message "You’re one click from your destination" on the resolving domain, and asks visitors to click a "CONTINUE" button in order to view the website. When users click this button, the user is prompted to agree to install a "Safe Browsing Chrome" extension. Respondent also uses the <disneychsnel.com> and <disneycjannel.com> domain names to redirect users to a landing page which have links to sites related to Complainant’s products or services, although not limited to Complainant’s own goods and services. Further, Respondent attempts to sell the <disneycjannel.com> domain name on the resolving domain. Finally, Respondent’s slight misspelling of its registered marks and domain name constitutes typosquatting, further demonstrating Respondent’s lack of rights and legitimate interests.

285.

Disney Enterprises, Inc. V. RICKSON RODRICKS / DOMAEN.COM(adrforum.com ↗)

1 points · by styfle · 8y ago · 1 comment

comment 8y ago · link · parent

You fail to realize the purpose of Electron.

It’s not to wrap a website, it’s to add features that the web doesn’t offer.

For example, how could Atom exist and be able to show your files in the explorer pane as a web app? It can’t.

Electron adds the missing pieces/permissions that desktop apps have had since the beginning.

comment 8y ago · link · parent

There's a few things that stood out to me that seem like "bad practices":

> we don’t use DNS internally — just configuration-managed /etc/hosts files

This seems very odd and redundant. Does someone manually edit all servers when a new server comes online?

> Make RANDOM() deterministic

Why would you use random if you want determinism? That sounds like the opposite of random to me.

> David Barrett, Founder of Expensify

Was this blog post really written by the founder!?!

The perftest[0] code is in a branch named "dbarrett_perftest" but that still surprises me.

[0]: https://github.com/Expensify/Bedrock/tree/dbarrett_perftest/...

comment 8y ago · link · parent

I was working for a large hardware company (I'm not going to name names) that typically files for hardware/firmware patents. There was a push for everyone to file more patents, even from the software teams.

I was working on an app that had graph-like data so we decided to use a graph database...nothing super innovative. My coworker, who apparently had a couple patents, said that we could probably patent this algorithm. I looked at him and said, how can you patent traversing nodes and vertices... that's graph theory 101?!

Big companies try to patent everything because its a metric they can use to show how amazing they are, and acts as blackmail (or cold war). If you sue me, I'll sue you.

comment 8y ago · link · parent

There are unofficial stability badges[0] that I have seen some packages use. For example, xtend[1] is locked.

[0]: https://github.com/badges/stability-badges

[1]: https://www.npmjs.com/package/xtend

comment 8y ago · link · parent

Yeah, this is is actually one of the reasons I used Electron for a screen-recording project...because most browsers didn’t implement the experimental screen recording APIs yet but Chrome already had it.

https://github.com/styfle/magnemite

comment 8y ago · link · parent

Electrino was a great idea, but the project was more of a POC and I haven’t seen any new development.

So until someone can build a production ready, cross platform, JS desktop experience....Electron will live on.

comment 8y ago · link · parent

It looks like the README[0] was recently translated from Chinese to English.

The Chinese README is still present in the current version published to NPM[1] which is v1.2.2

[0]: https://github.com/NervJS/nerv/commit/18b1d8720b69d250603d58...

[1]: https://www.npmjs.com/package/nervjs

comment 8y ago · link · parent

Would that mean a package with multiple authors would have to shared the private key with each other in order to publish a new version?

294.

2018 StackOverflow Developer Survey(stackoverflow.com ↗)

13 points · by styfle · 8y ago · 1 comment

comment 8y ago · link · parent

I understood everything up until the "suppose we flush our cache before executing the code" part which is probably the most important part.

There was a comment below the article that explained this part a little further:

> Imagine the value at the kernel address, which gets loaded into _w, was 0xabde3167. Then the value of _x is 0x100, and address user_mem[0x100] will end up in the cache. A subsequent load of user_mem[0x100] will be fast.

> Now imagine the value at the kernel address, which gets loaded into _w, was 0xabde3067. Then the value of _x is 0x000, and address user_mem[0x000] will end up in the cache. A subsequent load of user_mem[0x100] will be slow.

> So we can use the speed of a read from user_mem[0x100] to discriminate between the two options. Information has leaked, via a side channel, from kernel to user.

https://www.raspberrypi.org/blog/why-raspberry-pi-isnt-vulne...

296.

Pulldown-cmark – a pull parser for CommonMark, written in Rust(github.com ↗)

2 points · by styfle · 8y ago · discuss

comment 8y ago · link · parent

I convinced our BA to use git for internal documentation and meeting notes.

VSTS has a similar online text editor for editing and previewing markdown files.

I have a web hook that builds the markdown using mkdocs so we can have a nice web interface for others who do not have edit privileges.

VSTS recently released a wiki feature so I’m considering moving to that instead of mkdocs.

I think people see the value in wikis but it’s hard to sell git to someone who hasn’t used it before.

I’m always interested in this type of workflow but the problem that no one has seemed to solve is the local editing for a draft document for someone who understands markdown but not git.

comment 8y ago · link · parent

Some more context:

> As node-fetch is being used in more environments, notably through package like react-native, I think it's time we add a few more collaborators to address various use-case issues.

https://github.com/bitinn/node-fetch/issues/252

299.

Node-fetch: Call for maintainers(github.com ↗)

1 points · by styfle · 8y ago · 1 comment

1
91011
18