Better HN
topnewbestaskshowjobs
Log inSign up

nirui

2,087 karma · joined Jun 12, 2019 (7y ago) · 706 submissions

You know, I figured if I run this undefined behavior long enough, eventually one day that server will just jump down the shelf and fix the red black tree by itself.

[ my public key: https://keybase.io/nirui; my proof: https://keybase.io/nirui/sigs/oi8UKCZcYxKij-Pi43fDt35S1cHWmEKrFeMHZ4wW5Mo ]

Submissions

comment 7y ago · link · parent

Yes, they have also put the link besides that license list.

However, my opinion is, the list better be designed in such way that users don't need to access to another website to understand what they're about to do.

It shouldn't be very hard, some sort of license description would do the work, I think.

comment 7y ago · link · parent

I somehow want to quote this too:

> Direct GitHub to promote correct and clear use of licenses and the best use of copyleft (GPL version 3-or-later).

I remember when I was very green, that list of licenses on the GitHub repository creation page is very very confusing to me. I don't know which is which and which one I should use, and most importantly, what's the effect of my choice.

It could be great if GitHub can improve that list a bit to help people to make wiser choice before a repository is created.

comment 7y ago · link · parent

> What if there's a natural/alien occurring culling of some kind and we somehow slipped through and now we are alone?

Guess that one of the benefits of living in suburbs[1].

1: https://imagine.gsfc.nasa.gov/science/objects/milkyway1.html

Back to the topic. Let's assume there is a space nomad nazi species out there right now, will that species survive long enough to conquer the entire galaxy?

comment 7y ago · link · parent

> I held my place in the book with one hand while thumbing through the app store on my phone in the other, unable to find an app that could accomplish what I was looking for. Then an idea suddenly struck me: I could easily create — or try to create — an app that allows me to highlight and share quotes from the books I’m reading.

This, my dear, is what an application should be created for -- To help resolve real problems and improve lives.

"Best New App" is well desired.

comment 7y ago · link · parent

As far as my understanding goes, I see this kind of comparisons as a "Please-consider-to" list to the language teams.

I'm a heavy Go user and light Rust user. I enjoy them both, and they gives me different set of advantages in return.

Please, don't use/treat comparisons as an attack, make it "So-this-can-help-me-do-that".

comment 7y ago · link · parent

Let my explain:

> Aren't python and java "old" now? 20-25 years? C is... what, 40 years old?

"Modern" (Even though it's 25 years old) languages usually forced on productivity more: The language is easier to understand and use, the programmer can focus on the logic of their program instead of battling the system etc.

And, since we already in a well-developed industry, productivity can translate to profitability, and usually it does.

Simplify my opinion here: Productivity (or profitability maybe) drives tech tend.

Python is hot today because it can be used in many fields which is hot today. Back-end dev, script, and maybe some machine learning + data research etc. And Python makes doing those things easy (in terms of easy to use) because both of the language itself (not a bad language) and it's ecosystem (Many of things you wanted are just one pip away).

Also, even I do not think JavaScript is a good language, but I must say it's a easy language to get started: 1) You don't need to learn a lot to write "Hello World" (`alert("Hello World")`) and later other simple functions. 2) Web browser is the playground which you already have. 3) The ecosystem is huge (Many things are just one npm away). 4) Let's don't forget that you can make money from it.

Now imagine if one day you have to understand compiler, linker and manual memory management to write webpage scripts. Much harder, right? :)

comment 7y ago · link · parent

My own takeaways from this:

1. Old techs is been replaced by the newer and finer ones

2. Profitability effects the tend of languages

3. Easy (to use) is important

4. One single simple idea (Nodejs for example) can change the landscape so much

comment 7y ago · link · parent

Haha. I think it's one reason why I have No Script installed on my browser -- To protect me against poorly designed websites (to a degree at least).

Infinite Scrolling is not bad, but you have to design the page for it instead of jamming the feature in later. Otherwise, it hurts.

comment 7y ago · link · parent

Demo: https://sshwifty.herokuapp.com/#+Telnet:towel.blinkenlights.... (Telnet though)

Please notice: The Telnet part is not fully working. I'm still figuring it out.

Please be alerted: SSH login detail including password and private key is transmitted to the back-end server. If you want to actually use it, it is recommended to deploy it on your own machine/server instead of use the public ones.

700.

Show HN: Sshwifty WebSSH (Alpha)(github.com ↗)

3 points · by nirui · 7y ago · 2 comments

comment 7y ago · link · parent

Hey, do you consider to add a "Visitor" button beside the "Register" button on the landing page? It maybe useful for people who want to look around before deciding whether or not to continue to use the service.

Just my 0.2 cents.

comment 7y ago · link · parent

Don't know what type of email he had received. Personally I think it's pretty OK for HR to contract me, but not by sending automatic/template emails.

Notice he said "(they) used the GitHub API to pull my email address", and GitHub API can be used to massively fetch these kind of information for automatic spamming.

Imagine one day you wake up in the morning by few dozens of automatic recruit emails inviting you for a job which don't fit your profile even a bit, will you be happy? This happened to me few times and I'm not very happy about it.

I agreed GitHub shouldn't take the blame because you can hide your email in the account setting, but I don't think he shouldn't be pissed off by the company who was spamming him.

comment 7y ago · link · parent

Yeah I kind know what you mean, but this kind of expression (Very similar to Whataboutism) is how flame war started.

comment 7y ago · link · parent

First, the signature for `errors.New` is `New(text string) error`. It won't take more parameters than that. So I guess you mean `fmt.Errorf`.

If above is true, then how about:

    err := renderTemplate()

    if err! = nil {
        return fmt.Errorf("Error rendering template: %s", err)
    }
The end error could then be something for example:

    Error rendering template: Compiler has failed: Cannot load template: File /tmp/test.tpl was not found
    ------------------------  -------------------  --------------------  --------------------------------
     |                         |                    |                     |
    Returned by that           |                    |                     |
    example                   Returned by the       |                     |
                              fictional compiler   Returned by the        |
                                                   fictional template    Returned by the fictional file 
                                                   Loader                reader
I didn't even twist your example, and yet you can already see more information. And with that information, even a user can understand what's going on clearly. So ... more useful?

comment 7y ago · link · parent

I played Freelancer https://en.wikipedia.org/wiki/Freelancer_(video_game) long ago. It had about 30 "star systems", each one is about 100KM~200KM in-game distance in diameter. It's a fascinating game back in the day, and cost me years of free time.

When I jump from that game to EVE, it's very obvious to me that EVE is not for explore. You can do that of course, but you will be bored fairly quickly even compare to games like Freelancer.

In Freelancer, every "star system" that I jump into gives me a feeling of mysterious, until I cruise through every inch of the map, and memorized every cruise path and hidden "Wormhole"s.

In EVE, every system feel like the same. Yes, they have different layout, NPC and background, but still, it feel like repeat.

I believe EVE is more of a game of politics. A game about ruling, conquer and team work. Explore? not so much.

I don't know, maybe because the map of EVE is too big to provide saliency. In Freelancer, every map is manually made to service the background story, so each one is different in their own ways. Also, because the map is so small, you can make them vibrant easily.

comment 7y ago · link · parent

> The solution? Offer your code under an open source license, but also have a purchase option to buy a commercial license

There is one problem though, when you put a commercial license to your software, it effectively make you a software seller and thus maybe facing associated legal issues and responsibilities (provide user support, pay tax for example).

And sometime, those responsibilities can be a huge trouble.

1
2021222324