HNHacker News
TopNewBestAskShowJobs

alex_smart

1,323 karma · joined April 30, 2014

submissionscomments
alex_smart··on A sequence that we see all the time in the world of junk science
>I’ve seen a couple of articles about it, neither offered a conclusion.

You seem completely out of touch on how propaganda works. Nobody reads the headline anymore, and news websites know it better than anything else. If the headline presents the news from a particular slant and then questions that slant in the 6th paragraph that 99.9999% of people coming across the article never read, that doesn't make the article not misinformation.

Read the threads on reddit on the topic. 100k+ upvotes, thousands of comments all showing that this sort of propaganda works beautifully.

alex_smart··on No_color
Great question!

There is ansi2txt (packaged as colorized-logs on debian).

https://github.com/kilobyte/colorized-logs

I also found some answers on SO with people using a sed command for this.

https://stackoverflow.com/questions/17998978/removing-colors...

alex_smart··on No_color
This does not make any sense at all. The intent is to fix programs that don't handle non-colorization in non-TTY context, and the solution is to do so by patching them by responding to an environment variable or command-line option to explicitly request no colors. Why not just fix them to handle non-colorization in non-TTY context correctly?

This is also in opposition to the motivation explicitly laid out in the website itself.

>An increasing number of command-line software programs output text with ANSI color escape codes by default. While some developers and users obviously prefer seeing these colors, some users don’t. Unfortunately, every new piece of software seems to have a different way of disabling colored text output and some software has no way at all.

Clearly, the motivation laid out here is in fact to provide a standard mechanism to disable the colors seen by the user on the terminal. Not to disable coloring when output is being redirected.

alex_smart··on You can have geothermal power everywhere if you drill deep enough
I think one relevant question is: how does that amount of energy compare to the energy that the earth is bombarded with by the sun anyways? If it is miniscule (say less than 1%) in comparison, will that have a significant impact on global warming?

https://news.mit.edu/2011/energy-scale-part3-1026

>A total of 173,000 terawatts (trillions of watts) of solar energy strikes the Earth continuously. That's more than 10,000 times the world's total energy use.

So even if we get all of our current energy needs from these sources, that is less than 0.01% of the energy earth gets from the sun. Is that going to have a significant effect on the temperature of the earth?

alex_smart··on Locked out of 'God Mode', runners are hacking their treadmills
>Government should mandate the ability to downgrade the software to versions that were previously available on said hardware.

What about devices that are connected to the internet and need security patches?

As a software engineer can you imagine supporting every version of your software you ever released? Sounds like a nighmare.

alex_smart··on Dealing with APIs, JSON and databases in org-mode
Pretty sure that it's OOTB for completely vanilla Emacs.
alex_smart··on Show HN: Looptap – A minimal game to waste your time
Because it had to be done:

    let robot = function () {
        const ballAngle = loopTapApp.getBallAngle();
        const arc = loopTapApp.arc;
        if (ballAngle + 6 > arc[0] && ballAngle - 6 < arc[1]) {
            window.dispatchEvent(new Event('mousedown'));
        }
    }

    var timer = setInterval(robot, 10);
alex_smart··on Emfy: Emacs for You – Quickly set up vanilla Emacs for editing
You can remap it in global map, or prog-mode map, so it would keep the customized behaviour in other modes.
alex_smart··on Emfy: Emacs for You – Quickly set up vanilla Emacs for editing
>I don't understand why this doesn't come up more often in all the blog posts about transitioning to/from Emacs.

Because most people who use Emacs like this behaviour.

Also considering that this post promises a relatively vanilla editing experience, you shouldn't expect a solution to your particular problem.

> And in 5 years I can't for the life of me configure this!

It is not that hard to solve this. It is extremely easy to map any key in Emacs. You can just map Tab key to insert a tab if that is what you want. It will be like two lines of elisp.

Edit: The reason most Emacs users don't find the tab behaviour a problem is: a, Emacs indents correctly more often than not and b, you can insert a literal tab character when you want using 'C-q Tab'.

alex_smart··on Ruby 3.1
Sorry I found this page on Google but did not read the note on top. Looks like it was a proposed feature but was not implemented.

https://dev.to/baweaver/ruby-3-set-literal-3fp9

Unfortunately it looks like I can't edit or delete that comment now. :embarassed:

alex_smart··on Ruby 3.1
Sorry I found this page on Google but did not read the note on top. Looks like it was a proposed feature but was not implemented.

https://dev.to/baweaver/ruby-3-set-literal-3fp9

alex_smart··on Ruby 3.1
Because unlike js, ruby chose to use {x, y} as the set literal.
alex_smart··on Apache Log4j bug: China’s industry ministry pulls support from Alibaba Cloud
Thanks, that makes sense.
alex_smart··on Apache Log4j bug: China’s industry ministry pulls support from Alibaba Cloud
Wasn't the parent comment before it already a pretty unsubstantive comment? Why allow that and then ban people for responding to it?

How is China more of a threat to other countries' sovereignty than America?

alex_smart··on Apache Log4j bug: China’s industry ministry pulls support from Alibaba Cloud
>Are we really trying to compare the two

I wasn't going for a comparison, but if you do want to go there, US's track record on not respecting sovereign states' autonomy is a lot, lot worse.

>China is currently carrying out a genocide in Xinjiang

There is no actual evidence China carrying out any genocide in Xinjiang. Implementing a two/three child policy does not constitute a genocide.

I hate that this thread has now become a typical reddit discussion, but you were the one who came in here with the baseless assertions.

>I personally don’t think what-aboutism is particularly helpful in the context of discussions around the risk China faces to worldwide stability.

I wasn't making a "what-aboutism". I was making the argument that China taking over as the superpower would actually be an improvement in the whole "other sovereign states' autonomy" department.

From my point of view, any risk to worldwide stability coming from China's rise as superpower comes primarily from US and the western world not being mentally prepared for that transition. I am afraid that the propaganda machinery of the west is already underway trying to prepare their citizens for a future war against China.

alex_smart··on Apache Log4j bug: China’s industry ministry pulls support from Alibaba Cloud
Hasn't a democratic government promoting democratic principles not done more than enough damage to sovereign states' autonomy in past decades?
alex_smart··on Bjarne Stroustrup: “I Did It for You All” (2007)
"I wonder what would happen, if there were a language so complicated, so difficult to learn, that nobody would ever be able to swamp the market with programmers?"

Why would anyone say that about a language they designed?

alex_smart··on Bjarne Stroustrup: “I Did It for You All” (2007)
I mean, duh.
alex_smart··on FirefoxPWA: Progressive Web Apps for Firefox
>Firefox has great support for pwas

It doesn't and the relevant bug is marked as WONTFIX.

https://bugzilla.mozilla.org/show_bug.cgi?id=1407202

alex_smart··on Germany locks down unvaccinated people, as leaders plan to make shots compulsory
Just went through this thread and I have only one thing to say:

WE REDDIT NOW

alex_smart··on The Best Way to Hug Someone, According to Science
>How comfortable were you in general when it came to Swing?

Somewhat unrelated experience, but Kizomba also involves a close embrace with a contact at chest/belly and it feels somewhat uncomfortable/risque at first. But as you learn the dance, you have to really concentrate on maintaining the frame so as to be able to lead and follow correctly, and the whole thing feels in fact quite meditative and not sexual at all.

alex_smart··on The Best Way to Hug Someone, According to Science
It is part of the process of learning the dance form itself. Even in something like sensual bachata, you learn which parts of the body are "safe" and which are not. For example, upper back okay lower back not.

In Kizomba, the partners are pretty much always in a pretty close embrace. Kizomba is impossible to lead without a contact at lower ribcage/upper belly with the partner. In any other setting, this would be a pretty intimate position, but in Kizomba it is not. Learning to be comfortable with it is part of learning Kizomba.

alex_smart··on The origins of ‘horn ok please,’ India’s most ubiquitous phrase (2016)
No change is automatic. Why will it change just because there are more cars and more highways? And where is the push for better driver education? There is none.
alex_smart··on The origins of ‘horn ok please,’ India’s most ubiquitous phrase (2016)
Except it is absolutely owned by people who can send their children to the very few good, usually private, usually expensive schools.
alex_smart··on The origins of ‘horn ok please,’ India’s most ubiquitous phrase (2016)
>regardless of social or economic status

Absolute nonsense. Only 11% of Indians spoke English according to 2011 census. The ability to speak fluent English is the biggest marker of social and economic status after caste in India.

This is not really some deep insight. Everybody in India knows this, especially the 89% who don't speak English. There are even bollywood movies even based on the concept (see Hindi Medium, English Vinglish).

>Every child gets to learn 3 languages

The quality of teaching of English in government schools especially state boards is abysmal.

https://www.youtube.com/watch?v=D_KVFZPofQU [Govt school teachers fail to identify nouns in a sentence]

https://www.youtube.com/watch?v=42xxu5HdJzc [Govt school teacher fails to read a primary school textbook]

I also technically got to "learn" Sanskrit as my 3rd language in school. How many sentences of Sanskrit do you think I can utter now?

alex_smart··on The origins of ‘horn ok please,’ India’s most ubiquitous phrase (2016)
>IIRC English - Indian English, not British or American - is the second language of the most people in India

It isn't. According to 2011 census, 11% people in India can speak English (I suspect that the actual number is much lower). Hindi on the other hand is spoken by 57%.

English is the language of elitism in India.

alex_smart··on Firefox is the alternative to a Chrome hegemony
>If you want to fix Firefox go complain with their management.

Despite being an open source project, Firefox management seems to be much less in touch with and responsive to their user's feedback compared to other browsers. As an example, both Safari and Firefox had the same bad idea at about the same time - converting tabs into floating buttons (although in the case of Safari the bad at least served a useful purpose: increasing vertical real estate for the browser). Both got negative feedback. The difference? Firefox management dug their heels deeper and told their users, "suck it up, this is the future of web browsing", whereas Apple listened to the feedback and killed the bad idea during the beta itself.

Yet another example: killing off single site browsing or progressive web apps.

alex_smart··on Firefox is the alternative to a Chrome hegemony
Firefox just pushed yet another pointless UI change six months ago. People using their software just to go about with their lives don't like pointless UI changes.
alex_smart··on The origins of ‘horn ok please,’ India’s most ubiquitous phrase (2016)
Yup, the rough heuristic that most drivers follow in India is: if I see empty road ahead of me, I am going in.
alex_smart··on The origins of ‘horn ok please,’ India’s most ubiquitous phrase (2016)
>Way my colleagues told me, circulation is such a mess there’s no way you can check all around you

It's not so much that you can't, but that most people don't and with no driver education and no enforcement of traffic rules, you are stuck in a shitty nash equilibrium. I learnt driving in Canada, and I have tried to continue the same driving habits in India - because that is the only way I feel safe while driving. I simply can not change lanes without checking the rear-view mirrors and a shoulder-check because I am utterly terrified of what could happen if I don't.

At the same time, I am also completely aware about how 99.9% of drivers on the road are operating. So, I have to be cautious that any car could try to nose their way into the road in front of me even when I have right-of-way because that's just how things work here. It is stressful and horrible.

← PreviousPage 11 of 19Next →