HNHacker News
TopNewBestAskShowJobs

ziikutv

345 karma · joined January 31, 2012

submissionscomments
ziikutv··on Show HN: A mobile-friendly, web-based, countries of the world game
If the intention is to prevent the user from going back to previous question, it would be better to change the behaviour of the request and make t client side rather than highnacking the back button like most slide show websites do.

Edit: I couldn’t even spam back to get out, it would go back and then pull me forward to next question. I had to just change the URL back to HN.

ziikutv··on Falcon: A high-performance web server for Ruby, supporting HTTP/2 and HTTPS
Indeed. Additionally, not take anything away from the Ruby counter part, the Python project is amazing and we use it in production. I really prefer the endpoint and viewmethod declaration methods in Falcon over Flask

    # In this example, I use blueprint plugin
    @bp.route('/', methods=['PUT'])
    def create_resource():
        return
vs

    class Resource(...):
        def on_put(self, request, response):
            return
Mirror: https://pastebin.com/50W8TJV2

Flask's hooking logic [1] is nice but I much prefer Falcon's middleware logic [2]. This then ties into the fact that Flask's design requires working with `g` [3] (essentially a global object) where as the middleware design leads us to bake in data in the request object. The example blow demonstrates how middleware definition works and how "adding data" per request works in both of these frameworks.

    # Flask; assuume `app` exists
    from flask import g
    @app.before_request
    def before_request():
        g.some_variable = 'foobar'
vs

    class ExampleComponent(object):
        def process_request(self, req, resp):
            req.some_variable = 'foobar'
Mirror: https://pastebin.com/Z3yGCfzF

Additionally, Falcon middleware API also exposes `process_resource` which is similar to above but also allows us to _pass_ arguments to the routed resource instance.

[1] http://flask.pocoo.org/docs/1.0/api/#flask.Flask.before_requ...

[2] https://falcon.readthedocs.io/en/stable/api/middleware.html

[3] http://flask.pocoo.org/docs/1.0/appcontext/#storing-data

Edit: Formatting

ziikutv··on CSS Layout cookbook
Pardon my ignorance on this. I am not sure if the easing of scroll motion is scrolljacking.

> Scrolljacking basically means we replace native scrolling (what you’re used to) with targeted scrolling: when the user initiates a scroll, either with their mouse or keyboard, scrolljacking takes them to an exact vertical point on the screen (for example, the top of the next content container)

They aren't targeting your scrolling to specific areas on the page, just adding an ease in/out. It happens natively on iOS actually.

Edit: I do agree that it might hinder accessibility, just dont think the term applies as it does in other cases here.

ziikutv··on Show HN: Transcrypt 3.7 Python to JavaScript compiler: dataclasses, JS6 modules
Looks very cool. Will give this a try when I get home tonight, looking forward to see if I can help with anything as well. Note that Links in the Contribute Section are broken.

  http://sterlicht.alwaysdata.net/transcrypt.org/docs/html/special_facilities.html#inserting-literal-javascript-pragma-js-and-include

  vs
  transcrypt.org/docs/html/special_facilities.html#inserting-literal-javascript-pragma-js-and-include
ziikutv··on Show HN: Jott – A minimal tool for quickly writing and sharing notes
I think I made this comment on this thread instead of another. However, groking the code, you'd likely simply need to assume windows users have Python or use something like PyInstaller.
ziikutv··on Show HN: Jott – A minimal tool for quickly writing and sharing notes
Drats, any plans on a Windows version without the requirement of WSL?
ziikutv··on Glom – Restructured Data for Python
You can also use a list comprehension like so.

>>> sum([x['moons'] for x in target['system']['planets']])

ziikutv··on Oni: Modern Modal Editing – Powered by Neovim
Is that compatible with the editor OP is talking about? To clarify, that’s what above feedback was for. I don’t understand why people downvote comments without even knowing the context of the conversation.
ziikutv··on Oni: Modern Modal Editing – Powered by Neovim
Hey xconverge. Just an update, I reinstalled the plugin and configured it to work with neovim and am very happy with the results.

Thanks for contributing to the VS Code ecosystem.

ziikutv··on Oni: Modern Modal Editing – Powered by Neovim
Thanks for a response. I just installed it and do think that it is missing a few features that are important to me (as in, these are my opinions):

1. Syntax (missing for Elixir)

2. Shortcuts (even preferences shortcut is missing)

3. Easier configuration API; I think currently, you give us the "entire React app", rather get something simple.

I have the application downloaded; assuming you have autoupdates. I will keep an eye out; excited to see where this goes.

ziikutv··on Oni: Modern Modal Editing – Powered by Neovim
Looks great. Two questions:

1. I wonder though why you/team didn't opt for extending the vim emulation - via a plugin - on VS Code. Did the exposed API limit you from doing so? Edit: Having used the extensions of VSCode, I am wondering if that is the case.

2. Does it support installation of sublime/atom/vscode plugins?

ziikutv··on Facebook scraped call, text message data for years from Android phones
Noted. Didn’t know that was the case. Fle some reason, I imagined that it being open source would have meant a lot of outside involvement.
ziikutv··on Facebook scraped call, text message data for years from Android phones
I agree but I'd generalize this to Android. It is an open source system after all.
ziikutv··on Ask HN: How to self-learn ML?
Amazing. I am looking for something like this for Engineering (Aero/Mech). I think the first part has a lot of parallels so that's great.
ziikutv··on Ask HN: If you were to ditch Gmail, what would be your alternative to email?
Could've been phrased as, "if you were to ditch email" no? OPs question is confusing.
ziikutv··on An AI app that generates quizzes from a photograph of a texbook
I would suggest adding a picture of the generated quiz. The images there don’t really tell me much; perhaps that’s intentional.
ziikutv··on How knowing Lisp destroyed my programming career (2006)
Any suggestions on how I can get into that 10%?
ziikutv··on Reddit and the Struggle to Detoxify the Internet
> state-mandated parenting practices.

I hope I can become a good parent and can teach my kids to be good people by the time I am ready. If you need a state to tell you that, you probably should not be having kids. Having is a privilege and unfortunately also a right.

Edit: In all seriousness, what I was saying is that we should be teaching kids to be good people rather than acting good on the internet.

Also, we should be smart enough to know that all this article is doing is spewing shit on Reddit to generate them pageviews. That is all journalism is now a days.

ziikutv··on Reddit and the Struggle to Detoxify the Internet
Reddit doesn’t owe anyone anything.

how about asking kids parents to detoxify their kids than solving the problem way down the chain of command?

People are shitty online because they have anonymity. Now instead of going ahead and removing that, it might be worth going backward even more and going to the person.

people need to be nice on the internet. The internet does not need to be nice to people. Detoxifying internet is no different than censorship. I can say this with certainty that as soon as we ask companies and governments to detoxify, it will get misused [un]intentionally.

ziikutv··on Show HN: Hearth – A Dropbox-like, IPFS-powered personal website publisher
> I hope Hearth or someone like them expands beyond websites to self-publishing of store front ends, crypto payment, social feeds, real time video, and all the other services we expect AmaGooSoftBook to provide today. And to integrate Tor as necessary.

Agree but I hope we take super small baby steps and get what above is accomplishing right the first time without complicating the use cases just yet.

ziikutv··on iPhone Notches on Android Phones
Yet again, Apple manages to make their decisions standards. Good on them, bad on others. Should've waited some time to see if users want that damn notch.

Edit: My only problem with this is that there is copying going on even without general/mass acceptance.

ziikutv··on Ask HN: How did you find the problem your product is solving?
From the looks of it, OP has a product and they does not know the problem it solves. Anyway you slice that - regardless of how "cliche" solving your own problem is - is a problem.

Edit 2: Addendum to above: Even with the suggestion you've made, that assumes you know the problem BEFORE you have a product. OP has a product.

But yes. OP, if you combine both of these 2 cents, your 4 cents would be: Know the problem before you have a product not the other way around :)

Edit 1: Also, note that there are new set of biases to worry about in the approach you have pointed out; does not make it invalid, but you also have to be careful there.

ziikutv··on Node.js callbacks vs. promises vs. generators vs. async-await
Here's hoping it gets even better in future so they can win us both back ;)

---

Great article OP. Thank you very much. I remember using Bluebird and sharing the sentiments of the comment which I am replying to.

ziikutv··on Ask HN: How did you find the problem your product is solving?
You should work on a product that solves YOUR problem instead of making a product than determining the problem that it is solving.

This is a very common sentiment and is echoed almost everywhere startup related. You can read PG's essays on the matter or watch some Startup School videos.

I understand you may already have a product so hopefully others can give you more advice.

ziikutv··on How Airlines don’t care about privacy: Case Study Emirates.com
Its funny to be reading this just a week after noticing this.

Every airline uses some sort of a contractor or a shared piece of software for online checkins. You can tell by the formed URI fragments and the JSON being sent back and forth.

Its all trash. I wanted to work on a business that unified all check-ins under single company. I do not think however, it is reasonable given that all of these airlines have the process, as shit as it is, for a reason.

ziikutv··on Make Medium Readable Again
I like this plugin. Thanks. I do not like the recent “pivot” if oh will of medium allowing branding etc. It’s not executed perfectly; though I do not have a better solution in mind.
ziikutv··on Make Medium Readable Again
I like this title as it’s short and sweet. Actually, most threads in HN have negative messages such as this on.

Every single thread. Some new kid makes a small little app and it gets crushed with someone pointing out - usually obvious - short comings or how unnecessary it is. Let’s all be supportive for once.

Not saying OP is not supportive; OP is just communicating their frustration. Just using OP as a conduit to explain the pattern I usually see.

ziikutv··on Show HN: Log, inspect and debug HTTP/HTTPS requests and webhooks the easy way
EST. Apologies for the delay
ziikutv··on Show HN: Log, inspect and debug HTTP/HTTPS requests and webhooks the easy way
I sent a request but the timestamp shows it was sent 5 hours ago.
ziikutv··on Patent trolls are shaking us down for selling “rubies” in our game
> That they have such a weak patent is a problem with the system that permits it. Copyright should be enough for software.

Agreed

> The morality doesn't seem that disparate either - they are both exploitative. > I do stand corrected on this company after being linked to their post on reversing their model.

Noted.

To clarify, I do not disagree that F2P can be exploitative. It certainly can be. There are cases when kids are playing games and end up spending thousands of dollars.

F2P can however, be done right. I've been playing Dota 2 since the beta which is F2P and only provides cosmetics; believe same is true for League of Legends. Hence, I was saying that one is pure evil and the other is lesser (and in some cases not evil at all)

Page 1 of 9Next →