Better HN
topnewbestaskshowjobs
Log inSign up

Secretmapper

298 karma · joined Nov 8, 2015 (11y ago) · 89 submissions

arianv.com
Submissions

comment 5y ago · link · parent

I'm not sure how kosher this is as it's my own project, but this reminds me of a project I did for college back then:

https://arianv.com/post/cs-180-pathfinding/

It's a python/jupyter project though that's just rendered into html. It's over-engineered and over-explained :D

comment 5y ago · link · parent

For me personally, it's mainly CJS imports which I can't drop.

Of course the correct way would be to force the dependencies to support es.

But vite has now become default for me as well for new projects.

comment 5y ago · link · parent

IIRC it was a blog article, and the author was got a book deal out of it.

comment 7y ago · link · parent

I would have to think you did not read the entire article if you think that is the heart of the post.

That's the smallest thing in it.

comment 7y ago · link · parent

Damn I guess this is true about a lot of other very specific questions but are not too niche stuff as well (i.e. programming questions). An example is I was searching if a game had local multiplayer, and what would you know the result was exactly what you described - a paragraph long description of the game and the advantages of multiplayer and the answer hidden in it.

comment 7y ago · link · parent

I had a really hard time understanding it as well, and as someone who is supposed to at least have some understanding in this space (HTML5 gamedev) it made me feel a bit dumb.

However, from what I understand, there seems to be two things needed to be noted here:

Skia - a standardised library that can 'render' to different backends - i.e. it can render to OpenGL or SVG or PDFs.

CanvasKit (the actual one linked) - basically use Skia on the web (with webgl).

A huge boon here would be performance. For example, in WebGL, if you want to draw text, the current method is actually to render it in the canvas first, and reupload the texture to the GPU. From what I understand Skia seems to handle the rendering 'natively' so this step is not necessary. So basically it would just make it easier to draw 'primitives' since they are provided by the Skia API without having to do workarounds or writing really low level webgl fragments/shaders.

This is just from what I gathered, but yeah it is confusing. If anyone knowledgeable reads this, let me know if I got anything wrong!

comment 7y ago · link · parent

FWIW, I'm kinda disappointed at how a lot of people here seems to be on your case and downvoting you, when I think the post was quite informative to show how easy it is to acquire usernames from sites, and that maybe companies should rethink the policies.

If it was in isolation, say 'it takes 48 hours to take a username from SoundCloud' then I couldn't care less, but showing it happen on multiple sites and how they address it does make one think.

comment 7y ago · link · parent

I would say cross platform apps, and an 'alternative to C/C++' was Java's killer app. Popularity as a backend language comes as a side effect of its general popularity (a la Node w/ Javascript, though there's something to be said about Node's 'different' approach)

39.

Show HN: WebFlap – JSBin/Codepen for Turing Machines (TM/DFA Simulator/Editor)(webflap.arianv.com ↗)

2 points · by Secretmapper · 7y ago · discuss

comment 7y ago · link · parent

This is one of the most obvious things that really were lost in the advent of the big social media sites. Those weird little forums that have their own communities, with the sites having their own little eccentricities.

With how everything is just in one platform, it becomes impersonal as well. I heard about mastodon which feels like it sort of is taking this 'little communities' concept again, but I really wish forums would have a comeback.

comment 7y ago · link · parent

Can you expound on your third point? I'm having a hard time parsing it.

comment 7y ago · link · parent

It is a bit funny though. Our problem used to be "OMG there are so many browsers with their own little gotchas, and they don't follow the spec"

Now the problem is "Oh no we're converging to a single implementation, we need to diversify it!"

I don't know which is better but it is kind of funny to note.

comment 7y ago · link · parent

This is perfect! I'm currently taking a networking class where we generate trace reports, and I've just realised how tricky it is to send files without logging in (I'm just averse into doing that in a machine that's not mine). I can email my trace files, but I need to login, I can store in dropbox/drive, but again I'll have to login.

I wish they added a QR code option as well. It would be perfect for quickly copying the link by snapping it with my phone so I can download later.

comment 8y ago · link · parent

You can use the g! prefix and it will go to Google. I found DDG plenty good enough for my use case, and in the rare case I can't find it there I just use g! and bam.

comment 8y ago · link · parent

I completely agree with you. I couldn't believe the description, that I had to go to the FAQ to confirm what actually happens is what was described - a link companies can use to review. How is this better than email?

I mean I wish success and everything but I just can't see anyone bothering using it.

comment 8y ago · link · parent

Too true! I took Calculus in College, but I read this 2 months ago and loved it! Even better is it thought me something new - that is infinitesimal calculus.

How I wish there were books like this written for more topics!

comment 8y ago · link · parent

Didn't know you could use ReasonML w/ GatsyJS. The app is really cute kudos!

comment 8y ago · link · parent

Looks like the AI is just playing against Starcraft II's AI, which makes this slightly less impressive, as I first thought it was against human players.

The SC2 AI on higher difficulties does cheat though (extra resources) so it does make it slightly impressive, but still a far cry from human opponents as SC2's AI is pretty easy to beat (it would be around Gold in ladder I think)

comment 8y ago · link · parent

There's an excellent package named Absinthe. It's pretty great, though I can't compare it to Rails' since I haven't used it.

comment 8y ago · link · parent

Spot on! I'm a ReactJS developer by trade, but when doing side projects, I still use jQuery from time to time, especially if the client is not that state-heavy. I know I can make do with fetch, querySelector/All and the like, but I'd rather take the convenience.

Related: https://robots.thoughtbot.com/how-we-replaced-react-with-pho...

comment 8y ago · link · parent

Plus, I also imagine it's a self selecting process as only those with vitriol are the ones bothering to comment, while most people simply view it for what it is.

52.

People with multi monitor setups with different DPI, how is your experience?

2 points · by Secretmapper · 8y ago · 1 comment

comment 8y ago · link · parent

I'm still a bit confused how this is a problem. Can you elaborate?

Is there any serialisation standard that specifically addresses this? I know YAML and TOML doesn't at least (correct me if I"m wrong)

comment 9y ago · link · parent

Source on wasn't in their interests? I've only read that they couldn't continue it due to a: aggressive regulations by incumbers preventing entry of new ISPs (such as Fiber), b: most companies (like Comcast) miraculously offered fiber once Google Fiber was in the game, and c: they're focusing on wireless/balloon solutions.

These are just what I read but I would love to hear if this was just PR and there was a sinister reason like you imply.

comment 9y ago · link · parent

The data is set as component state

  .then(
        planet => this.setState({ loading: false, planet }),
        error => this.setState({ loading: false, error })
       );

comment 9y ago · link · parent

It fetches data from an endpoint then sets component state based on the response

57.

The 4R framework – 3 libraries to use in your React app(arianv.com ↗)

2 points · by Secretmapper · 9y ago · discuss

58.

Use Default HOCs for Component Logic in React(arianv.com ↗)

1 points · by Secretmapper · 9y ago · discuss

comment 10y ago · link · parent

Not OP, but looks like it's built on Jekyll. If you're not familiar, it's a Static Site Generator. It generates static html files from your content (generally markdown files).

There are other SSGs, I use Hugo myself (http://gohugo.io, sample of my blog: http://arianv.com/). I like Hugo cause it's probably the fastest SSG (every time you create a post/change content, you're remaking your entire site from scratch. If you have lots of posts - this adds up!) but Jekyll is the most popular and has great tooling.

Hope that helps!

comment 10y ago · link · parent

This exactly. It essentially takes care of all the setup for me, plus the CD and provider add-ons are incredibly easy to install and setup.

I basically outsourced my cloud platform developers.

123