Better HN
topnewbestaskshowjobs
Log inSign up

no_gravity

2,245 karma · joined Aug 19, 2011 (15y ago) · 432 submissions

Serial Webpreneur. Like to meet like-minded people.

www.gibney.de

Submissions

comment 6y ago · link · parent

    They found that about 8 per cent
    people who try meditation experience
    an unwanted effect
What does that even mean?

That 8 percent of people who try meditation experience something "unwanted" within a certain time afterwards?

Is that different from a control group? Which control group? When you look at 100 random people people with the same situation and instead of letting them meditate let them go for a walk instead - what percentage will experience something unwanted?

We would need to look into the study to figure out if it has more info.

But the article seems to provide no link to the study. No DOI, no nothing.

Based on the name "Miguel Farias" mentioned in the article, it might be doi 10.1192/pb.bp.116.053686 from 2016:

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5353526/

2.

Warming of the Greenland ice sheet passed the point of no return(news.osu.edu ↗)

6 points · by no_gravity · 6y ago · discuss

comment 6y ago · link · parent

Working on a version of https://www.literature-map.com which will be used to organize scientific articles about literature.

The design will look like this:

https://www.gibney.de/preview

The big blue arrow leads to the articles which are related to the topic in the center.

Now parsing through a big German text corpus to calculate where the research topics will be placed on the map.

comment 6y ago · link · parent

From how I read it, this reduces the probability that the data gets deleted due to low disk space / garbage collection:

    Persistent storage can help protect
    critical data from eviction, and
    educe the chance of data loss.
Are you sure this keeps the data when the user deletes their browser data? To me it sounds like it does not:

    Persistent storage is not deleted by the browser,
    even if storage is running low. It will only be
    deleted if the user chooses to remove it via
    their site settings.

comment 6y ago · link · parent

> Native File System API

Great, so there is light at the end of the tunnel!

> store that data on the server

Well, we talked about that already:

https://news.ycombinator.com/item?id=23793541

comment 6y ago · link · parent

Keeping the user logged in is not the issue. A PWA can inject a unique ID into the installation in various ways.

The problem is the data. Imagine a text editor where all your text documents are gone after you cleared the data of a different app, the browser.

I wrote a fitness app as a PWA some time ago and its pretty annoying to download all the instruction videos again every time you clear your "browser data". Plus all infos about which exercises you did and when is gone for good of course.

comment 6y ago · link · parent

Can you elaborate why it could be a good thing for users?

Not being able to reliably store data on the device means that PWAs have to send the users data over the internet and store it on an external server. I would think users rather do not like that.

I am only talking about installed PWAs here. Of course not every website should be able to avoid having its cookies deleted.

comment 6y ago · link · parent

The main problem I see in PWAs these days is that they cannot permanently store data on the device. As soon as the user deletes their "browser data", all the data of the PWAs on the device is lost too.

If PWAs would get their own permanent storage like other apps, it would be a huge step forward.

comment 6y ago · link · parent

How would that work?

comment 6y ago · link · parent

Just exchanged the charger .. the hanging still occurs.

comment 6y ago · link · parent

I will try that. At first I would like to see if I can find the problem. I would have thought that when the SD card is not responding, it would show up as "wa" in top and "%util" in iostat -x. But both are zero for the next output after a freeze.

comment 6y ago · link · parent

My PI is too cool. It freezes.

I have playing with a PI Zero W over the last weeks. At first everything worked as expected.

But now it developed some strange "hangings" I cannot explain. It kinda randomly freezes in time for a few minutes every now and then.

Sometimes it takes several minutes to ssh into it. Sometimes, the terminal just freezes for several minutes.

Neither top nor iostat seem to show any elevated activity during these periods. Since they hang throughout the freeze, its a bit hard to say though.

The strangest thing: Pings to the PI always come back fast. So its probably not that the hardware really freezes completely.

comment 6y ago · link · parent

Ok, great. Here comes more feedback :)

Since I did not save my password when signing up, I proceeded to set an email. Got a confirmation email and clicked the link in it.

Then signed out and clicked the "Set a new password" link.

But it does not work. I always get the message "Failed to send email: This email address was not found".

comment 6y ago · link · parent

I think someone needs to look into the onboarding process. My experience so far:

1: Clicked on "Try Now".

2: Was greeted with a blob of text. Spotted "The easiest way to try Matrix is to use the Riot Web ...".

3: Clicked on "Riot Web" because that is a link.

4: Got transferred to a different website with a lot of buttons on it.

5: Clicked on the green "Get started button"

6: Got transferred to another page with a bunch of buttons on it

7: Clicked on "Browser"

8: A new window with a "Sign in" and a "Create Account" button opened

9: Clicked on "Create account"

10: Entered a username and password

11: Got asked to do the Google Captcha

12: Had to select 4 tiles with traffic lights and cklick next

13: Was told to select stairs.

14: Since there were no stairs, I clicked "Skip"

15: Had to select 7 tiles with fire hidrants and click next

16: Had to select 4 tiles with traffic lights and click next

17: Had to select 3 tiles with traffic lights and click next

18: Had to accept terms an conditions and click "accept"

19: Had to enter a recovery passphrase.

20: Had to confirm my recovery passphrase.

21: Was forced to click a "copy" button to copy the recovery passphrase.

22: Had to click "continue"

23: Staring at a spinner for a while.

24: Was prompted with an "OK" button. Clicked it.

25: Was prompted with a "Welcome to Riot" page with different options.

26: Clicked "Explore public rooms".

27: Clicked on the first one.

28: Had to look at a spinner for a while with "Joining room" next to it.

29: Still looking at the spinner ...

30: Spinner is still spinning ... will take the time to post this to HN.

Update:

31: Back to the Matrix window. Hurray! I'm in a channel. Typing "Hello" and enter. It seems to work.

I wonder if it would be an option to shortcut these 31 steps into just one and throw everyone who clicks "Try Now" into a "Welcome to Matrix" channel.

comment 6y ago · link · parent

I wanted to play with variations of the code. For that it is useful to make it output a "summary" so you know the variation you tried is computationally equivalent.

For the first benchmark, I added a combined string length calcuclation:

    def main():
     r = 0
     for j in range(20):
       for i in range(1000000):
         r += len(str(i))
     print(r)
    main()
When I execute it:

    time python3 test.py
I get 8.3s execution time.

The PHP equivalent:

    <?php
    function main() {
     $r = 0;
     for ($j=0;$j<20;$j++)
       for ($i=0;$i<1000000;$i++)
         $r += strlen($i);
     print("$r\n");
    }
    main();
When I execute it:

    time php test.php
Finishes in 1.4s here. So about 6x faster.

Executing the Python version via PyPy:

    time pypy test.py
Gives me 0.49s. Wow!

For better control, I did all runs inside a Docker container. Outside the container, all runs are about 20% faster. Which I also find interesting.

Would like to see how the code performs in some more languages like Javascript, Ruby and Java.

comment 6y ago · link · parent

This seems to be a compatibility list of Surface devices with a special kernel made by someone. I don't see how it is related to what is in the Ubuntu repos?

If anything, the exsitence of this kernel seems to be an indication that the major distributions do not cope well with the Surface and do not work out of the box.

comment 6y ago · link · parent

Do you have a link where someone describes how he got Ubuntu to run on the Go natively without installing software from outside of the repos? The user reports I saw did not get WiFi to work with what is in the Ubuntu repos.

comment 6y ago · link · parent

Is there a tablet that can run one of the major Linux distributions?

I am surprised that there is not a single commercial Linux tablet on the market. Given how many developers use Linux, one would think the market is big enough for at least one product?

And it seems no major distribution supports any of the tablets out there.

comment 6y ago · link · parent

PHP has a lot going for it. It is popular, fast, has a nice syntax and a ton of useful functionality baked right into the language.

The main weakness I see in PHP is the lack of modules. PHP provides namespaces to avoid name conflicts. First of all, that does not completely root out naming conflicts. The developer who puts a namescpace into their code can only hope that it does not clash with someone else's.

Secondly, it makes it necessary that both, the code that provides reusable functionality and the code that uses it have to deal with the issue of namespaces.

A module system like Python and Javascript have is superior to this. Then only the user of the reusable code decides where to put it into the namespace.

20.

YC Companies Responding to Covid-19(ycombinator.com ↗)

144 points · by mg · 6y ago · 33 comments

comment 6y ago · link · parent

I had a nice surprise and learning experience, when I discovered that the output of

     (echo red; echo green 1>&2) | echo blue
is indeterministic:

http://www.gibney.de/the_output_of_linux_pipes_can_be_indete...

As it turns out, this short line and its behavior nicely demonstrate a bunch of aspects that happen under the hood when you use a pipe.

comment 6y ago · link · parent

From what I read in this article and other sources, performing more tests seems to be a very promising approach to get this pandemic under control.

The number of positive tests and death rates are published every day on all channels. I wish the number of performed tests would be also published daily. What gets measured gets managed.

I wonder what limits the number of tests that can be performed. How much would it cost to ramp up testing capabilities so that every person with symptoms can be tested? How much to increase it to a level that everyone can be tested?

23.

List of Silent Musical Compositions(en.wikipedia.org ↗)

1 points · by no_gravity · 6y ago · discuss

comment 6y ago · link · parent

Interesting. I have never seen that happen and can not reproduce it. Anything special about the browser you use? Feel free to shoot me an email then we can figure it out.

comment 6y ago · link · parent

I run https://www.music-map.com which might be similar to what you describe?

I have never seen (or heard about) the what.cd related artists web.

Let me see if I can find a video or images about it...

comment 7y ago · link · parent

The main reason I often use Chromium instead of Firefox is that it starts up faster.

I even wrote a oneliner to see if it is just an illusion:

http://www.gibney.de/browser_startup_speed

As can be seen in the tests, it is mainly about the startup time after a reboot. Where Chromium is way faster.

Not sure what the reason. Maybe Chromium actively caches something right during the boot? Or maybe it uses less dependencies?

comment 7y ago · link · parent

How much better are the photos you get out of the Fuji then the ones you get out of your iPhone?

The Fuji X100F is about 3 times as heavy then a usual smartphone. So carrying it around would quadruple the weight of my "camera equipment".

I wish somebody would run around with a pocket camera and a phone for a day and then write a blog posts with comparison shots.

28.

Quantum Radar(en.wikipedia.org ↗)

1 points · by no_gravity · 7y ago · discuss

comment 7y ago · link · parent

Nice. I immediately had to try the same in PHP. To make a working repl with newlines in the output etc, this is what I a came up with:

    while(1) {eval(fgets(STDIN));echo "\n";};
I then tried it on the command line like this:

    php -r 'while(1) {eval(fgets(STDIN));echo "\n";};';
Hurray, it prompted me for input! So I typed:

    for ($i=0;$i<10;$i++) echo $i;
Which got me:

    0123456789
So far so good.

I wondered: Can we now run the repl in the repl? So I typed:

    while(1) {eval(fgets(STDIN));echo "\n";};
It kept prompting me for input. Am I in a REPL in a REPL now? I typed:

    echo "Hello from a REPL in a REPL!";
And the reply was:

    Hello from a REPL in a REPL!
I'm not totally sure if I believe it though.
12345
15