HNHacker News
TopNewBestAskShowJobs

AltruisticGap

76 karma · joined August 28, 2018

submissionscomments
AltruisticGap··on Show HN: Sublime Merge – A Git client from the makers of Sublime Text
I was hopeful but for my simple uses, it doesn't work.

I use gitg in a on Ubuntu VM, also known as "GitX" on Mac.

The basic UI of gitg is much easier to read and browse, the commits and details are top/bottom instead of left right. With SM, I have to expand the window a whole lot more sideways to be able to read the commits. Also with SM my name is under each commit.. but since I work mostly solo, it's added noise that makes the list more difficult to read (what with the commit messages and the author name underneath practically same font size. here the gitg top/bottom layout means the author names and dates can go in other columns making the commit list easier to scan.

In gitg I have a quick view of what files changed, how much they changed, I can dive in if I want to see the actual code. With SM it seems by default you get a full spread of all the changes across several files.

Lack of separation in general, lots and lots of text floating in space with few lines or separation. Lots of subdued color. Buttons that don't look like buttons.

That said my use case is fairly simple. I work mostly on local repos, so for me gitg is a convenient way to see what I was working on last time, and to stage changes in meaningful commits. I don't need it to do a bunch of other things.

The merge sounds great though.. I really miss that... but as it is SM lacks contrast and readability for me.

Hopefully constructive feedback.

AltruisticGap··on Element – A Desktop UI Toolkit for Web
Exactly, it's awesome because if you eventually refactor the container page or section to a Vue comp, you can include the other child components straight without any further work. They already work as full blown components.

Plus:

- since we're mounting components and using SFC, we can use the "runtime only" build (though I keep the full one when I want to make something quick, because the savings in the minified Vye library were very small)

- it can be a small performance improvement in cases where we want to mount something in response to user input, whereas the template in the html page will be compiled on page load (afaik).

AltruisticGap··on Element – A Desktop UI Toolkit for Web
I can't speak as a user of said framework, but as a developer learning Vue I like it!

I like it because it's not over-engineered with like 10 classes to do a simple dialog. You can go to any .vue file and look how they do it. It's not very difficult to copy some bits of the code and css, to do your own components. They use a bit of mixins and whatnot but for the most part you can reuse some of that code without having to bother with the node packages and whatnot. Plus they have a bunch of useful little bits of js in there for dom manipulation etc.

I also learned how to manually instantiate components and passing props to them, from this codebase. It wasn't made obvious in the Vue docs.. and it's actually SUPER useful when refactoring old codebases (like YUI2).. where I do'nt have the luxury of wrapping everything in a view, I can make a Vue dialog, or a Vue bar chart.. and "mount" it to the page. Then I can use the webpack build, single file components & all the good stuff from a modern Vue build in a legacy web app.

AltruisticGap··on In the fundamental physics of the world, there is neither space nor time
The universe IS completely unknown, and forever will be. It is like a sandbox.

As Alan Watts put it with his mischievous sense of humor:

"Science is the art of prediction"

Talking about religion, Christianity used to refer to this, then it lost its way. See eg.

https://en.wikipedia.org/wiki/The_Cloud_of_Unknowing

AltruisticGap··on How true hackers write JavaScript
I like what this guy did, talking about native methods. However it's too flexible for me, I prefer to have the most minimal functionality in order to ensure consistency in my code. But maybe that's just me. If the library opens up too many possibilities, then I have both the "problem of choice" when writing code, and also it's more difficult to refactor down the line if you want to change lib. Whereas using your own super simple solution (as long as it's sufficient), you can also do a simple abstract layer when including some vendor API.

https://github.com/eorroe/NodeList.js/

AltruisticGap··on How true hackers write JavaScript
Ahh thanks! I forgot about that. I'm guessing I didn't think about it because I'm used to the following pattern ,which is actually useful from time to time in my projects. And typically it happens in an object/class:

  this[expr ? 'method1' : 'method2'](args)
So I have to add "this" as the methods are not global. Now if I overlooked something again I'm definitely getting rusty :)
AltruisticGap··on How true hackers write JavaScript
He/she could have put much of the function in the top under the $() to make a super mini jquery. That's close to what I use with Vue. It's made even easier to write considering I almost never find a need for jquery's default behaviour of running its methods on multiple nodes. 99% of the time in my projects I just need to do something with one node.
AltruisticGap··on How true hackers write JavaScript
I thought I was smart...

BEFORE

function vis(el, on) { if (el) { on ? remClass(el, 'nosee') : addClass(el, 'nosee') } }

AFTER

function vis(el, on) { if (el) { window[on ? 'remClass' : 'addClass'](el, 'nosee') } }

...sadly we have to add window when using the square brackets so it's not much shorter. Oh well.

AltruisticGap··on A military technique for falling asleep in two minutes
All these techniques always come down to a form of meditation.

THe common ingredient is:

* an actual EFFORT and DISCIPLINE, ie. a will, a decision, a commitment to stop following the monkey mind going on about tomorrow and all its good/bad things, and "me" and everything about me.

* attention is on the body, the body has always been a key focal point to calm the mind in most meditation techniques (sometime it's external like watching a candle.. but we want to fall asleep here)

* it takes some practice, particularly that in bed and lying down, the mind will more easily lose focus.. this is why most meditation practices take place in the classic sitting posture

I use Vipassana, very similar:

- I lie down on my BACK.. I think it's helpful to have a "cue" to signal the commitement. Usually I don't fall asleep on my back but when I feel more relaxed and quiet eventually I roll to the side and fall asleep not long after

- Move attention from head to toes, it can help to keep ahold of the mind, to mentally label "head (or break it down: forehead, eyes, nose, mouth, ...) , neck, shoulder girdle, upper chest, solar plexus, tummy, waist, upper thighs, knees, " (etc)

Typically I'll do 2-3 passes up > down and back up.

When putting to much strain, it can keep you awake.

But here is a KEY thing that this article doesn't mention and you may verify by yourself over time.

When I started, I was worried that staying awake I would lose sleep. Of course this gets into a spiral, since we're trying to relax the mind.

However over time you realize, if you have some energy left and you don't fall asleep, maybe you woke up too late today. That's OK. You'll find out that if you COMPLETELY let go of any control of the body, try to be completely STILL.. you'll notice that it does actually rest the body to some extent. So if somehow you don't fall asleep you can just keep doing this technique for 30 min, even an hour. Then maybe the clock says only 6 hours left, and next day you'll find you're doing fine, not yawning, like you had your 7 hours of sleep.

So the key here, once subtler point those techniques don't talk about, is that if you make an effort to completely relax control of the body, you do get rest even as you are still awake and aware.

One issue you can run into when trying to be completely and entirely still and release total control of the body is that you can get "fidgeting legs" syndrome or whatever it's called. People believe this is a problem and go to the doctor for it. While it's symptomatic of something going in the body, maybe it's not a problem. It's actually interesting... if you can stay still even in the face of those unpleasant electric / buzzing sensations in the legs... and you completely let go no matter what.. eventually you may have a very pleasant sensation where it feels like suddenly the tension diffuses through the body. It feels like some current was stuck, and now it's flowing. You may even get very pleasant (fine) tingly sensations. I don't really want to geti nto what this means here and I'm experimenting myself, not on expert on this subject... But it's definitely worth investigating. As with many things involving body/mind you're on your own. The doctors talk a different language, they'll see a "restless legs" syndrome (though they admittedly have no cause for it). With all that said, I'm not saying it's easy and it takes practice too. But if you take time to fall asleep it's something to do, and it's very curious... you get to experiment first hand with mind and body interaction and a subtler aspect of the nervous system.

AltruisticGap··on Naked Europe covers up
Hey, thanks for the appreciation.

Indeed, Ian Mc Gilchrist mentions how empathy is the realm of the right brain hemisphere.

There is a good animated summary of his work:

RSA ANIMATE: The Divided Brain https://www.youtube.com/watch?v=dFs9WO2B8uI

AltruisticGap··on Naked Europe covers up
> Today, nudists complain, it is more difficult to separate nakedness from sex

Cf my other comment. THis is the left brain hemisphere at work. As people become more and more shifted into this mode of attention.. they lose sight of the whole. A women is a collection of parts. Head, arms, legs, breats etc. More worryingly of course, we see each other as things, and less as people. This is what the left brain hemisphere does, it gives an attention to the world that helps us navigate the world. It creates classes / categories like "tree", or "house", which are never the actuality which is domain of the right brain hemisphere (which deals with any actual instance in experience).

And I think pornography, plus the obsession with social feeds, I mean let's be honest Instagram is pretty much porn. I had to cut out the app from my iPad because you'd tap one image than another and next thing you know you're looking at some seriously suggestive / sexualized content.

This is a time where our sanity is truly in our hands. By the looks of it, not a whole lot of people care for sanity. But then again it has to do with age too. I can't see how I would have seen the bigger picture ten or twenty years ago. I'm just 44 now. I had to suffer a LOT , and observe myself a lot to see what's going on.

AltruisticGap··on Naked Europe covers up
This is the answer but nobody wants to hear it. Porn is now opium for the masses.

This is not a moral or religious questions. It is simply biological.

Besides the dopamine issues, I think Ian Mc Gilchrist 's work on the 'divided brain' , gives a lot of supporting evidence that materials such as porn are by their nature the domain of the left brain hemisphere. That is ME making connections here. Pronography is created by this attention to the world that sees things in parts ("boobs", "ass") -- which is what left hemisphere does. The right hemusphere sees things in broad / inclusive attention (eg. a man or a woman; not a collection of arms, legs, etc).

And then look at the explosion of anxiety and social awkwardness, difficulty to hold eye contact, depression etc. Then look at how aggressive and abusive people become online, as well as the lack of restraint that people now show in chatrooms particularly on Twitch. People will just flat out call a young woman streaming a "whore", or "bitch"; etc.

You can argue these are unhappy people / mentally ill etc. I think the bigger picture is clear from McGilchrist's model of the brain. I think we see it happening everywhere in society. The loss of attention, the extremely reactive social interactions online, the almost religious belief we have in simple words like gender pronouns, ... to me those are all signs of a culture which is losing balance.. and more and more heavily shifting into the left hemisphere's attention (ie. see the world in collection of parts and pieces instead of as wholes). Also you have seemingly more innocent things like extremely geek conventions, explosion of fetishes online..

While we're there. Fetishes. Does anyone seriosuly believe these exist "naturally"? Fetishes are created by the mind. And what do they all have in common? We're seeing the left brain hemisphere at work again. They are always about objects. Things. Parts. Like feet, boobs, ass, and what have you (those are the mildest ones!).

Anyway I could go on and on.

I think the left/right brain hemisphere model, corresponding mainly to two modes of attention, is very very consistent, both with meditation, practices such as yoga, the rise of mental illness especially in the western world, the rise of geek culture, the rise of isolation, etc.

The big question of course is the chicken and egg situation. Which is the cause? Does porn dissociate people? Or do dissociated people come up with porn? As we see with the body, it's both. But I think we're in a spiral here, unless we care for our sanity.

The thing is, it's a complex situation. If porn disappeared off the internet we wouldn't see immediate or obvious changes. Though I would bet we would see some meaningful improvements to how men and women relate. I think the signs are out there.

AltruisticGap··on Why We Should Watch Less News
I've started thinking more seriously about this as well.

When we're home, we like to think there is this whole wide world "out there". Behind the walls that surround us, is this world full of events and good things and bad things.

Yet in actuality, it is all mind. And much of this mind (ie. memory) is not of having actually visited those places or experienced those events -- it's information that we were just fed (images, videos, myths and beliefs).

It got me thinking about this saying "your body is what you put in it". Likewise then, "your world (and thus all your hopes and dreams) is what you put in it".

I mean, I used to think this was some kind of New Age / pop psychology, like "positive thinking".

But it isn't. By acknowledging the actual nature of this world right now, which is mostly in my mind right here as I type this message... then the validity of this becomes more evident. Everything I think, everything I do, comes from this internal map of self and of the world...

AltruisticGap··on RssHub – A feed aggregator that can generate feeds from pretty much everything
Simple:

- most RSS readers suck so bad you can't even retrieve years old articles. So if you follow blogs that don't post often, you simply can NOT get any of their older posts. Imagine a blog that has one seriously good article once a month. Typically you can't get more than a year's worth of posts, so that's like 12 articles. Why?

- the best RSS app I had on iPad let me archive feeds for a LONG time. I used it as a kind of a library. Returned to articles many times (philosophy and such). Most RSS readers out there have ZERO functionality in terms of archiving content indefinitely. (meaning : they typically have some leeway in max articles stored, or how old to archive feeds.. but you know you simply can not realy on the app to save your favorite articels, at some point they will be deleted).

- inability to highlight text. Again, if I read something I want to be able to at least highlight some text. Most RSS readers don't do this.

Instead RSS readers do the same thing every other RSS reader does. Basically, it's like the developers of RSS apps think that the only purpose of retrieving articles is for fueling some kind of "feed" addiction. Like the only purpose of content on the web is to satisfy an urge to quick scan and move to the nex article.

It's like the devs of RSS apps are so drugged out themselves in this day and age of short attention span, that they can't envision other uses for a feed reader than satisfying this urge for the daily/hourly doses of "novelty". Click click click. Swipe swipe swipe.

/rant off

← PreviousPage 2 of 2