20190911

neato links

https://joshcsimmons.com/2019/09/10/i-quit-social-media-for-a-year-and-nothing-magical-happened/ – what happened when someone quit social media.

my personal experience is that social media brings out the worst in a lot of people. but it’s also designed to be addictive. social media may be (and has been) used to perform psychological experiments on the public without proper ethical oversight… so i quit.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3477910/ – social media at least makes it easier to commit not-alive.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5442596/ – point of interest. not much to do with social media.

“you don’t want to alienate them. that would drive down their value.”

20190820

stupid computer tricks

a robot friend that’s fun to be with, even innawoods.

some assembly required. one of my failed products could probably get plugged into this thing pretty easily. anyone want to set up a scary company intranet?

spoiler warning

how to crash your computer

make sure you put this on a voice command. it may at least buy you some time when the inevitable happens.

$ touch ./crash.sh

$ chmod +x ./crash.sh

$ vim ./crash.sh

#!/bin/bash
./crash.sh &
./crash.sh &

some assembly required… but don’t do it. your poor computer.

20190818

stupid computer tricks

https://tgceec.tumblr.com/post/74534916370/results-of-the-grand-c-error-explosion – making c++ error messages explode.

the following creature is said to expand to literal megabytes of error messages:

template<class T,class…>class C{C<T*const,T,C>a;C<T,C>b;};C<int>c;

2> redirects stderr to a file.

g++ test.c++ 2> error.log – try it out.

ls -l error.log – confirmed. 5.5M, with a lot of const*’s in it.

http://www.nongnu.org/hcb/#basic.link – c++ hyperlinked bnf grammar. c++ is inscrutable until you read a rather complex document. it helps to build up a mental abstract syntax tree when learning a new language. here’s the first couple of cycles:

http://www.nongnu.org/hcb/#template-declaration – template<> part at the start.

http://www.nongnu.org/hcb/#template-parameter-list – the first <>’s contents.

http://www.nongnu.org/hcb/#declaration – the class definition after the first <> starts here.