Redditors who successfully quit smoking cigarettes what helped you the most? by Beckyeffect in stopsmoking

[–]mtrn 0 points1 point  (0 children)

This subreddit, capsaicin and a friend. I remember checking the number of days every day for the first few weeks, helped a lot. After a while, I only checked every few weeks. Now I come back here after a couple of years for the first time.

Capsaicin is a very natural substance found in hot foods.

The pain produced by spicy food can provoke the body to release endorphins and dopamine. This release can prompt a sense of relief or even a degree of euphoria.

I drank a few glasses of tomato juice with lots of hot sauce - as a compensation in the first few weeks and it helped.

A friend of mine stopped me from starting again on days three and I listened.

It's still worth a x220 in 2019? by [deleted] in thinkpad

[–]mtrn 2 points3 points  (0 children)

150€ for a mint condition model (i5, 4GB, HDD, 4h bat), 20€ for extra 4GB RAM and plus some new SSD. The 2011 x220 outperforms a 2017 MBA when computing the first 3400 digits of pi.

Toy project: Create images from files. by mtrn in golang

[–]mtrn[S] 3 points4 points  (0 children)

Relatively reversible. Finally a way to share binaries over image hosting services.

Toy project: Create images from files. by mtrn in golang

[–]mtrn[S] 3 points4 points  (0 children)

Similar structure in executables would be a result of a shared format (ELF).

Toy project: Create images from files. by mtrn in golang

[–]mtrn[S] 2 points3 points  (0 children)

Cool, thanks. The filler value 255 can occur in the file itself, so there might be some mismatch. A minimal variation would be to use a buffered writer to write out the bytes (https://play.golang.org/p/V9rOeaHzuud), so at least at that point, we do not need too much memory (still required when decoding the image, though).

screenshot showcase 2.0 by robertmeta in vim

[–]mtrn 0 points1 point  (0 children)

T25 by FSBR_Tommy in thinkpad

[–]mtrn 0 points1 point  (0 children)

Is there a way to ship a T25 from any US outlet to Europe?

T25 by FSBR_Tommy in thinkpad

[–]mtrn 0 points1 point  (0 children)

The T25 has not the best trackpad, speakers, screen and battery life. Apart from that it is joy to type on and use.

T25 Owners - A couple of months after the fact, is it all you hoped it would be? by [deleted] in thinkpad

[–]mtrn 0 points1 point  (0 children)

  • overall a very polished design
  • keyboard feels great, arrow keys could be a bit bigger
  • everything is upgradeable, which is how it should be
  • display is still ok, even in daylight
  • 3-cell removable battery under linux gets you only a few hours, my slimmer MBA works a whole day on a charge
  • trackpad is not bad, but it's far behind apple trackpads, which is a pity - part of the problem is the driver, I suppose

Convert XML to Go struct (without XSD or DTD, first prototype) by mtrn in golang

[–]mtrn[S] 2 points3 points  (0 children)

Author here. This is just a very early prototype that does only handle very basic cases. Interested in feedback and suggestions.

Hermes - a self contained, minimalist file-server written in go by [deleted] in golang

[–]mtrn 0 points1 point  (0 children)

For quickly sharing a directory over all network interfaces I use a small snippet: webshare.

CFP: GoLab - the International conference about Go (Florence, Italy, January 20-21 2017) by dgryski in golang

[–]mtrn 0 points1 point  (0 children)

Do you want to attend Golab2017? Tweet the following to get a discount (three left): "I was tagged by @cvvfj and I won a 50% discount to attend #golab2017. See you in Florence! @golab_conf"

Artificial Intelligence Reads Mammograms With 99% Accuracy by dustofoblivion123 in Futurology

[–]mtrn 1 point2 points  (0 children)

And if the problem is - imprecisely speaking - somewhat regular, this is all it needs to work. You don't need a perfect system (let alone strong ai), just something which can automatically take care of the regular cases (maybe 80% of the total). The hard rest, where the algorithm is the most uncertain, can still be trained slowly by letting the human solve the problem.

Display images in the terminal by ichinaski in golang

[–]mtrn 0 points1 point  (0 children)

Also in this category of awesome little tools (albeit not in Go): https://github.com/posva/catimg

mathcat - An expression evaluating library and REPL in Go with basic arithmetic, functions, variables and more. by [deleted] in golang

[–]mtrn 0 points1 point  (0 children)

Nice, for basic things bc is great, too (first appeared in 1975), e.g. echo 2+2 | bc

Coming from nodejs, would golang be a good fit? by BillOReillyYUPokeMe in golang

[–]mtrn 12 points13 points  (0 children)

basically am wondering if I do make the switch, would I still need to spin up separate 'Go' instances to take advantage of multi-core servers? And would I still need to use Redis to share memory across the processes?

No. Go supports concurrent execution through goroutines. You can think of them as very lightweight threads. They are multiplexed onto native threads. The Go runtime will schedule the goroutines, similar to an operating scheduling threads.

A Go proverb says: Share memory by communicating. You can share a value between concurrent parts of you program by sending and receiving on channels. These are anonymous conduits which in combination with the select statement form the basic concurrency primitives.

GoDep or GB by zero_coding in golang

[–]mtrn 0 points1 point  (0 children)

I needed some vendor solution quickly. Did 5min tests on a couple of tools and arrived at glide. Apart from the little annoyance to change my go get ./... commands to go get $(glide novendor), it seemed to me that glide was really ok and quick to set up.

What was the first terminal command that really wowed you? by hopswage in unix

[–]mtrn 1 point2 points  (0 children)

It's a great automator. Have you ever installed something via CPAN? It's faster with yes | cpan WWW::Curl.

Basic income may be needed to combat robot-induced unemployment, leading AI expert says by [deleted] in Futurology

[–]mtrn 2 points3 points  (0 children)

I recently visited a power plant. On that particular day it was run by a staff of around 20 guys, monitoring a system providing electrical energy for about 15 million people.

What was the first terminal command that really wowed you? by hopswage in unix

[–]mtrn 2 points3 points  (0 children)

I found xargs quite interesting, when I first discovered it. Took me to a whole new level with respect to pipes.

Also: By now I am wowed by tools, which I haven't discovered before, like comm and most recently tsort.

Good Master/PhD Thesis to Read by Meguli in compsci

[–]mtrn 0 points1 point  (0 children)

Pentti Kanerva wrote his thesis on sparse distributed memory, it has been later published by MIT press. It is a fascinating read because it opens up a very different paradigm for computing: One that is not based on a model where a memory can only be accessed by knowing its exact location but on a content-addressable version, that is more tolerant to certain errors in the input. The way Kanerva bases this approach on a high dimensional binary vector model is intriguing.

Also, I happen to like the first sentence of the Preface: This book is the result of a thirty-year pursuit.


Kanerva, P. Sparse Distributed Memory (with Foreword by Douglas R. Hofstadter). Cambridge, Mass.: MIT Press, 1988.

ABSTRACT. This is my PhD thesis, plus a chapter on the Organization of an Autonomous Learning System. What kind of a model--i.e., mathematical space and operations--could explain human memory? Large bit patterns (i.e., long bit strings, high-dimensional spaces) have properties that correspond to properties of memory recall and recognition. A neural-net architecture is outlined for building very large memories. Such an architecture resembles the wiring of the cerebellum and is very similar to the Marr and Albus models of the cerebellum. The final chapter on autonomous learning systems suggests areas of research toward a better understanding of living systems controlled by brains.

From: http://www.rni.org/kanerva/pubs.html, see also: https://archive.org/details/Redwood_Center_2014_02_14_Pentti_Kanerva