20 random bookmarks
Тут будут ссылки на всё-всё, что я найду интересным
Тут будут ссылки на всё-всё, что я найду интересным
То самое видео игромании, которое у меня было на диске
Many patients misunderstand what therapy reliably provides.
Experiment 5
Goal: Go 21 straight days without complaining or uttering non-constructive criticism. (If I catch myself doing it, I must start again at day zero.)
This was inspired by Will Bowen’s book A Complaint Free World, in which he claims that if you stop pronouncing your negative thoughts, you stop having those kinds of thoughts, and that if everyone did this the world would change completely.
What happened: It took 55 days to get 21 complaint-free days in a row, but I did it. This experiment really does teach you not to complain, and I think everyone should do it once in their lives. But it didn’t create much of an inner change. My negative thoughts were unaffected, I just got more polite about whether to pass them on to others. Complaining can even be a worthwhile form of bonding, as I learned while I was working a painful manual labor job with new friends, and could never join in on the lighthearted griping. Still, it’s better to never complain than to complain freely.
Where I am with it today: Even though the exercise didn’t eliminate internal negativity like the book promised, the experiment left me much more conscious about expressing needless negativity, and I am pretty good at keeping it to myself most of the time. I’m also more patient with others when they’re complaining. This is one experiment I would recommend to almost anybody.
Applying The Blue Angel Criteria To Free Software
Крупные технологические компании производят гораздо больше выбросов углерода, чем предполагают в своих отчетах об устойчивом развитии.
Они активно лоббируют переписывание правил о том, как рассчитываются выбросы, чтобы показать чистый ноль на бумаге, но не на практике.
Quick Look extension for highlight source code files on macOS 10.15 and later.
Кристина общается с другими подкастерами, раскрывая внутреннюю кухню.
package src
type config struct {
// Required
foo, bar string
// Optional
fizz, bazz int
}
// Each optional configuration attribute will have its own public method
func (c *config) WithFizz(fizz int) *config {
c.fizz = fizz
return c
}
func (c *config) WithBazz(bazz int) *config {
c.bazz = bazz
return c
}
// This only accepts the required options as params
func NewConfig(foo, bar string) *config {
// First fill in the options with default values
return &config{foo, bar, 10, 100}
}
func Do(c *config) {}
You’d use the API as follows:
package main
import ".../src"
func main() {
// Initialize the struct with only the required options and then chain
// the option methods to update the optional configuration attributes
c := src.NewConfig("hello", "world").WithFizz(0).WithBazz(42)
src.Do(c)
}
The author doesn't like how modern UI:s are designed. Gives good examples.
an email-based bookmarking service
If you want a single piece of advice to reduce your bug count, it’s this:
Re-read your code frequently. After writing a few lines of code (3 to 6 lines, a short block within a function), re-read them. That habit will save you more time than any other simple change you can make.
Сайт с заданиями для создания, редактирования, проверки данных ОСМ
repost from bouncepaw:
Если делать дизайн только из красного света, то глаза не будут терять ночное видение, потому что ночные палочки не замечают красный свет. Так-то толку от этого мало, но в некоторых случаях супер-полезно. Например, морякам и астрономам.
Cycling is the most sustainable form of transportation, but the bicycle is becoming increasingly damaging to the environment. The energy and material used for its production go up while its life expectancy decreases.
SVG иконки