Forwarded from Виноагент (Darya Gorbunova)
Ну прям уж «любое» декантировать не стала бы, но вот после бочки - вполне. Аналогия про форточку - шикарна
Forwarded from кабачковая икра по акции
Чувак, которого называют главным алкоголиком на Кипре, написал большой тред, как выбирать и пить вино. Он уже 9 лет оставляет отзыв в Vivino буквально на каждое выпитое вино — отсюда 5 тысяч оценок и статус главного алкоголика на Кипре (кстати, отличное био).
Тред меньше чем за сутки собрал 70 тысяч просмотров — в русском Твиттере явно любят хорошее вино. Сохраняем, выходные уже близко!
Тред меньше чем за сутки собрал 70 тысяч просмотров — в русском Твиттере явно любят хорошее вино. Сохраняем, выходные уже близко!
Forwarded from HN Best Comments
Re: macOS command-line tools you might not know about
You can use sips together with iconutil to generate a complete .icns file for your app from a single 1024 by 1024 PNG without any third party software:
mkdir MyIcon.iconset
cp Icon1024.png MyIcon.iconset/icon_512x512@2x.png
sips -z 16 16 Icon1024.png --out MyIcon.iconset/icon_16x16.png
sips -z 32 32 Icon1024.png --out MyIcon.iconset/icon_16x16@2x.png
sips -z 32 32 Icon1024.png --out MyIcon.iconset/icon_32x32.png
sips -z 64 64 Icon1024.png --out MyIcon.iconset/icon_32x32@2x.png
sips -z 128 128 Icon1024.png --out MyIcon.iconset/icon_128x128.png
sips -z 256 256 Icon1024.png --out MyIcon.iconset/icon_128x128@2x.png
sips -z 256 256 Icon1024.png --out MyIcon.iconset/icon_256x256.png
sips -z 512 512 Icon1024.png --out MyIcon.iconset/icon_256x256@2x.png
sips -z 512 512 Icon1024.png --out MyIcon.iconset/icon_512x512.png
iconutil -c icns MyIcon.iconset
As a bonus, generate .ico with ffmpeg:
ffmpeg -i MyIcon.iconset/icon_256x256.png icon.ico
Incidentally, does anyone know enough about the way sips scales PNGs to confirm that it makes sense to create the 16px version straight from 1024px, as opposed to basing it off 32px (and all the way up)? I.e., is it better to downscale in fewer steps (as currently) or in smaller steps?
strogonoff, 15 hours ago
You can use sips together with iconutil to generate a complete .icns file for your app from a single 1024 by 1024 PNG without any third party software:
mkdir MyIcon.iconset
cp Icon1024.png MyIcon.iconset/icon_512x512@2x.png
sips -z 16 16 Icon1024.png --out MyIcon.iconset/icon_16x16.png
sips -z 32 32 Icon1024.png --out MyIcon.iconset/icon_16x16@2x.png
sips -z 32 32 Icon1024.png --out MyIcon.iconset/icon_32x32.png
sips -z 64 64 Icon1024.png --out MyIcon.iconset/icon_32x32@2x.png
sips -z 128 128 Icon1024.png --out MyIcon.iconset/icon_128x128.png
sips -z 256 256 Icon1024.png --out MyIcon.iconset/icon_128x128@2x.png
sips -z 256 256 Icon1024.png --out MyIcon.iconset/icon_256x256.png
sips -z 512 512 Icon1024.png --out MyIcon.iconset/icon_256x256@2x.png
sips -z 512 512 Icon1024.png --out MyIcon.iconset/icon_512x512.png
iconutil -c icns MyIcon.iconset
As a bonus, generate .ico with ffmpeg:
ffmpeg -i MyIcon.iconset/icon_256x256.png icon.ico
Incidentally, does anyone know enough about the way sips scales PNGs to confirm that it makes sense to create the 16px version straight from 1024px, as opposed to basing it off 32px (and all the way up)? I.e., is it better to downscale in fewer steps (as currently) or in smaller steps?
strogonoff, 15 hours ago
Forwarded from HN Best Comments
Re: The hidden cost of air quality monitoring
Achim from AirGradient here. Nice to see my blog post getting some attention.
I think the underlying picture here really is that I and my co-founder are both heavily affected by air pollution in Northern Thailand and are seeing how it affects the health of thousands of people.
We believe strongly that air quality monitoring should be affordable so that people from poorer regions and countries can afford air quality monitoring and thus protect their health by knowing when the air quality turns bad. This is one of the reasons why we open-sourced our air quality designs [1] and are working with many NGOs and Universities to bring accurate low-cost air quality monitoring to underserved communities around the world.
Since we are a self-funded company we do not have pressure to maximize profit but can work under the mantra "Impact first (and profit will follow if we do a good job)."
By the way, if you work in air quality research, we are currently running a global co-location test program and are interested in additional partners [2].
[1] https://www.airgradient.com/kits/
[2] https://www.airgradient.com/research/
ahaucnx, 7 hours ago
Achim from AirGradient here. Nice to see my blog post getting some attention.
I think the underlying picture here really is that I and my co-founder are both heavily affected by air pollution in Northern Thailand and are seeing how it affects the health of thousands of people.
We believe strongly that air quality monitoring should be affordable so that people from poorer regions and countries can afford air quality monitoring and thus protect their health by knowing when the air quality turns bad. This is one of the reasons why we open-sourced our air quality designs [1] and are working with many NGOs and Universities to bring accurate low-cost air quality monitoring to underserved communities around the world.
Since we are a self-funded company we do not have pressure to maximize profit but can work under the mantra "Impact first (and profit will follow if we do a good job)."
By the way, if you work in air quality research, we are currently running a global co-location test program and are interested in additional partners [2].
[1] https://www.airgradient.com/kits/
[2] https://www.airgradient.com/research/
ahaucnx, 7 hours ago
Airgradient
AirGradient Open Source Air Quality Monitor Kits
Join thousands of makers building their own affordable, accurate air quality monitors measuring PM2.5, CO2, Temperature and Humidity. Also available as pre-soldered kits that can be built in a short time. Indoor and outdoor monitors available.
Forwarded from HN Best Comments
Re: Canada plans brain drain of H-1B visa holders, wit...
We should shift our perspective on our native-born citizens. Because they're such a massive economic drain we should _stop_ investing in them completely. I know it sounds radical but hear me out. We can realize higher economic utility for our society if A) we stop all investments in non-skilled, non-working-age citizens and B) export those people who are a burden on our society (children, the elderly, the sick, people who enjoy EDM, you get it).
In this way Canada can achieve higher economic utility for itself. I'm imagining a system where everyone in the society is brought in on a temporary basis. They are imported after their post-secondary education and exported maybe 10 years before their retirement. In this way we avoid all the costs associated with having "people" in our country and instead we reap the economic reward of their labor!
I guess I shouldn't say "our" country. I would be exported fairly quickly... But! To those glorious (and brave) few on the executive committee entrusted to leading Canada Inc. through these difficult times, the society they get to inhabit will undoubtedly be the economic envy of the world!
stickyricky, 6 hours ago
We should shift our perspective on our native-born citizens. Because they're such a massive economic drain we should _stop_ investing in them completely. I know it sounds radical but hear me out. We can realize higher economic utility for our society if A) we stop all investments in non-skilled, non-working-age citizens and B) export those people who are a burden on our society (children, the elderly, the sick, people who enjoy EDM, you get it).
In this way Canada can achieve higher economic utility for itself. I'm imagining a system where everyone in the society is brought in on a temporary basis. They are imported after their post-secondary education and exported maybe 10 years before their retirement. In this way we avoid all the costs associated with having "people" in our country and instead we reap the economic reward of their labor!
I guess I shouldn't say "our" country. I would be exported fairly quickly... But! To those glorious (and brave) few on the executive committee entrusted to leading Canada Inc. through these difficult times, the society they get to inhabit will undoubtedly be the economic envy of the world!
stickyricky, 6 hours ago
Forwarded from введение к отсутствующему
о правильной борьбе с пьянством
===============================
Роберт Оуэн, вступив в управление Нью-Ларнакской фабрикой, обнаружил крайности пьяного разгула рабочего люда -
- в итоге завел собственный трактир, где напитки лучшего качества подавались по более низкой цене, чем в окрестных питейных лавках -
- чем вытесняет мелкие распивочные, не способные выдержать конкуренцию -
- а попутно заводит столовую для холостых рабочих -
- и прилагает усилия к организации развлечений ("досуга", говоря канцелярским языком) для рабочих -
- и тем самым без всяких запретительных мер за несколько лет, не надеясь на стремительный результат, радикально меняет ситуацию
===============================
Роберт Оуэн, вступив в управление Нью-Ларнакской фабрикой, обнаружил крайности пьяного разгула рабочего люда -
- в итоге завел собственный трактир, где напитки лучшего качества подавались по более низкой цене, чем в окрестных питейных лавках -
- чем вытесняет мелкие распивочные, не способные выдержать конкуренцию -
- а попутно заводит столовую для холостых рабочих -
- и прилагает усилия к организации развлечений ("досуга", говоря канцелярским языком) для рабочих -
- и тем самым без всяких запретительных мер за несколько лет, не надеясь на стремительный результат, радикально меняет ситуацию
Forwarded from введение к отсутствующему
сейчас очарован жизнью Оуэна – настоящего не-христианского христианского святого –
- с десяти лет зарабатывающего себе сугубо сам на жизнь –
- добивающийся невероятного успеха, становящийся крупным промышленником не дойдя и до тридцати лет –
- и дойдя до 29 – становящего защитником слабых –
- не отрекающийся собственным успехом, а со все большей настойчивостью проповедующий, что слабость и «пороки» других – следствие их обстоятельств –
- как и – что вызовет возмущение социалистов – и пренебрежение, гордыня и готовность эксплуатировать слабых сильными с их стороны – равно следствие не злого выбора, а обстоятельств, они прежде всего делают то, к чему толкает их ситуация –
- они просто бредут там, где оказались –
- и мудрость действия, далекая от борьбы –
- не запрещать пьянство, не проповедовать трезвенность – а построить благопристойный питейный дом с хорошими напитками, закупаясь оптом и не стремясь нажиться на этом –
- по принципу – нет, вне дихотомии, не проповедь радикального –
- а, оказывается, если перестать пить паленое – и создать даже не выбор, а ситуацию совмещения разных видов препровождения свободного времени –
- то многие выберут какие-то сложные варианты – которые скомбинируют сами, что-то добавив от себя –
- и как первым делом заведет собственные продуктовые лавки, где будет закупаться у местных торговцев и продавать по себестоимости своим рабочим, почти прообраз кооперации –
- что к грустной иронии истории Рикардо будет использовать в своей парламентской речи в 1822 году как аргумент против запрета для заводчиков и фабрикантов расплачиваться натурой и по заводским книжкам –
- у всего благого есть своя темная сторона, зачастую – совершенно непредвиденная для действующего
- с десяти лет зарабатывающего себе сугубо сам на жизнь –
- добивающийся невероятного успеха, становящийся крупным промышленником не дойдя и до тридцати лет –
- и дойдя до 29 – становящего защитником слабых –
- не отрекающийся собственным успехом, а со все большей настойчивостью проповедующий, что слабость и «пороки» других – следствие их обстоятельств –
- как и – что вызовет возмущение социалистов – и пренебрежение, гордыня и готовность эксплуатировать слабых сильными с их стороны – равно следствие не злого выбора, а обстоятельств, они прежде всего делают то, к чему толкает их ситуация –
- они просто бредут там, где оказались –
- и мудрость действия, далекая от борьбы –
- не запрещать пьянство, не проповедовать трезвенность – а построить благопристойный питейный дом с хорошими напитками, закупаясь оптом и не стремясь нажиться на этом –
- по принципу – нет, вне дихотомии, не проповедь радикального –
- а, оказывается, если перестать пить паленое – и создать даже не выбор, а ситуацию совмещения разных видов препровождения свободного времени –
- то многие выберут какие-то сложные варианты – которые скомбинируют сами, что-то добавив от себя –
- и как первым делом заведет собственные продуктовые лавки, где будет закупаться у местных торговцев и продавать по себестоимости своим рабочим, почти прообраз кооперации –
- что к грустной иронии истории Рикардо будет использовать в своей парламентской речи в 1822 году как аргумент против запрета для заводчиков и фабрикантов расплачиваться натурой и по заводским книжкам –
- у всего благого есть своя темная сторона, зачастую – совершенно непредвиденная для действующего
Forwarded from HN Best Comments
Re: We raised a bunch of money
“ The result of this is an Internet where all of the world's CRUD apps are hosted in Loudoun County, VA (motto: "where tradition meets innovation"), at Amazon's us-east-1 in Ashburn, a city with so many Rails apps that one of them was elected to the county Board of Supervisors.”
So true it hurts
geraldwhen, 6 hours ago
“ The result of this is an Internet where all of the world's CRUD apps are hosted in Loudoun County, VA (motto: "where tradition meets innovation"), at Amazon's us-east-1 in Ashburn, a city with so many Rails apps that one of them was elected to the county Board of Supervisors.”
So true it hurts
geraldwhen, 6 hours ago
Forwarded from HN Best Comments
Re: Noticing when an app is only hosted in us-east-1
I don't buy this.
Hacker News is one of the most responsive websites I know. And it is run on a single server somewhere in the USA. While I am in Europe.
If you have users in Sydney, Australia ...
... you are floored at 104ms of latency for your request
When I open AirBnB with a clean browser cache, it takes several seconds until I see something useful. Those 104ms of latency don't make a dent.Reddit takes over 5 seconds until the cookie banner is ready for me to click it away.
Twitter takes 6 seconds to load the homepage and display the single tweet which fits on it.
preview images take a little longer to load
Preview images of what? Images usually should be routed through a CDN which caches them directly in the user's country. It's extremely cheap and easy to set up. Nothing compared to running an application in multiple datacenters.
TekMol, 7 hours ago
I don't buy this.
Hacker News is one of the most responsive websites I know. And it is run on a single server somewhere in the USA. While I am in Europe.
If you have users in Sydney, Australia ...
... you are floored at 104ms of latency for your request
When I open AirBnB with a clean browser cache, it takes several seconds until I see something useful. Those 104ms of latency don't make a dent.Reddit takes over 5 seconds until the cookie banner is ready for me to click it away.
Twitter takes 6 seconds to load the homepage and display the single tweet which fits on it.
preview images take a little longer to load
Preview images of what? Images usually should be routed through a CDN which caches them directly in the user's country. It's extremely cheap and easy to set up. Nothing compared to running an application in multiple datacenters.
TekMol, 7 hours ago
Forwarded from Теперь живите с этим
Помимо лошади существует и антилопа Пржевальского
Forwarded from введение к отсутствующему
любопытная правка Ключевского рукописи своей первой лекции курса «Западное влияние в России после Петра» (1890/91) –
- сначала он пишет: «Что такое русский западник? Это очень возбужденный и растерянный человек, который знает, где он родился, и недоумевает, какой народ ему родной, где его отечество. Ухитрившись поссорить между собою столь сродные понятия, как родина и национальность, он незаметно для себя вошел в круг невозможных представлений, разделил мир на две половины: на человечество и на Россию. Отечество – это неприятное приведение, от которого стараются отчураться средствами цивилизации». –
- а затем вставляет в первую фразу осторожное «был», уводя разговор в прошлое, давая себе возможность избегнуть полемики о настоящем – мол, таким «был русский западник», а какой он нынче, да и есть ли таковой – ну, об этом умолчим –
- и вторую фразу добавляет вводным уточнением: «Обыкновенно» - сразу же тем самым и уточняя, что были и другие – и вместе с тем, не считать же процентами, да и культурные типы и влияния в процентах не то, чтобы подсчитываются – упрочивая суждение
- сначала он пишет: «Что такое русский западник? Это очень возбужденный и растерянный человек, который знает, где он родился, и недоумевает, какой народ ему родной, где его отечество. Ухитрившись поссорить между собою столь сродные понятия, как родина и национальность, он незаметно для себя вошел в круг невозможных представлений, разделил мир на две половины: на человечество и на Россию. Отечество – это неприятное приведение, от которого стараются отчураться средствами цивилизации». –
- а затем вставляет в первую фразу осторожное «был», уводя разговор в прошлое, давая себе возможность избегнуть полемики о настоящем – мол, таким «был русский западник», а какой он нынче, да и есть ли таковой – ну, об этом умолчим –
- и вторую фразу добавляет вводным уточнением: «Обыкновенно» - сразу же тем самым и уточняя, что были и другие – и вместе с тем, не считать же процентами, да и культурные типы и влияния в процентах не то, чтобы подсчитываются – упрочивая суждение
Forwarded from HN Best Comments
Re: Sears offered complete houses in large DIY kits
> Even the quality of lumber has decreased as old growth forests that were harvested 80 years ago no longer exist. Heart pine lumber that were used in 1940s homes (I own one) is more dense and stronger than new growth pine lumber. [1]
I'm a woodworker and I've also owned a property management company and done my own home's remodeling (the kind of remodel that means you talk to structural engineers). What you say is true, in some ways and with asterisks. It is also irrelevant. New growth pine is preposterously strong when loaded in the correct dimensions and balloon- and platform-framed houses are designed to do exactly that.
Modern silviculture is an absolute marvel. It turns out prodigious amounts of more-than-good-enough material at remarkably cheap prices.
eropple, 1 day ago
> Even the quality of lumber has decreased as old growth forests that were harvested 80 years ago no longer exist. Heart pine lumber that were used in 1940s homes (I own one) is more dense and stronger than new growth pine lumber. [1]
I'm a woodworker and I've also owned a property management company and done my own home's remodeling (the kind of remodel that means you talk to structural engineers). What you say is true, in some ways and with asterisks. It is also irrelevant. New growth pine is preposterously strong when loaded in the correct dimensions and balloon- and platform-framed houses are designed to do exactly that.
Modern silviculture is an absolute marvel. It turns out prodigious amounts of more-than-good-enough material at remarkably cheap prices.
eropple, 1 day ago
Forwarded from HN Best Comments
Re: It's weird that people get mocked for changing the...
He's also doing this thing we need a name for, something like "fallacious pithiness".
I've noticed that when people reduce some random thesis to a level of brevity beyond the minimum to actually express it coherently -- but do so succinctly and perhaps a bit archly -- the audience enjoys the illusion of effective communication, and fills in the intellectual voids on their own, affirmatively.
As if they've gotten a bargain, or been saved some time.
I mainly noticed this when so many people stopped writing awesome long-form blog posts, and supplanted it with tweeting. I seldom found value in the tweets, even from people whose blogs I prized. But many people did! And the tweeters were encouraged.
I see the same thing here. I mainly know the OP from his essays, which are overall quite good (IMHO). I subscribed to the RSS feed of them. I think I've read them all, even.
But it's hard to imagine a version of this tweet as a full essay (even a short one) that didn't end up repudiating the core idea entirely.
Because once you had to add even a bit more detail -- such as examples of it happening in the wild -- you'd end up realizing that people don't generally get mocked for changing their minds. That changing your mind is actually encouraged and praised by various books, corporate 'leadership principles', philosophers, etc... and in most cases, derision and animosity aimed at opinion-changers tends to be aimed at the ones who are obviously self-serving hypocrites, not those who've genuinely reconsidered things and come to a better conclusion.
So even though you still could, no dooubt, come up with some examples, through the process of writing the essay (or blog post), you'd... realize it was bullshit.
And then, you wouldn't publish the essay.
veidr, 2 days ago
He's also doing this thing we need a name for, something like "fallacious pithiness".
I've noticed that when people reduce some random thesis to a level of brevity beyond the minimum to actually express it coherently -- but do so succinctly and perhaps a bit archly -- the audience enjoys the illusion of effective communication, and fills in the intellectual voids on their own, affirmatively.
As if they've gotten a bargain, or been saved some time.
I mainly noticed this when so many people stopped writing awesome long-form blog posts, and supplanted it with tweeting. I seldom found value in the tweets, even from people whose blogs I prized. But many people did! And the tweeters were encouraged.
I see the same thing here. I mainly know the OP from his essays, which are overall quite good (IMHO). I subscribed to the RSS feed of them. I think I've read them all, even.
But it's hard to imagine a version of this tweet as a full essay (even a short one) that didn't end up repudiating the core idea entirely.
Because once you had to add even a bit more detail -- such as examples of it happening in the wild -- you'd end up realizing that people don't generally get mocked for changing their minds. That changing your mind is actually encouraged and praised by various books, corporate 'leadership principles', philosophers, etc... and in most cases, derision and animosity aimed at opinion-changers tends to be aimed at the ones who are obviously self-serving hypocrites, not those who've genuinely reconsidered things and come to a better conclusion.
So even though you still could, no dooubt, come up with some examples, through the process of writing the essay (or blog post), you'd... realize it was bullshit.
And then, you wouldn't publish the essay.
veidr, 2 days ago
Forwarded from HN Best Comments
Re: The Awk Programming Language, Second Edition
I was privileged to be one of the technical reviewers for this book. There's a fair bit of the original content (which is still great), but Kernighan's done a great job with some good restructuring and some significant updates, too. The early chapters are very hands-on, with something of a focus on "exploratory data processing", particularly with CSV files. Big data with AWK, you could say.
Gawk and awk will soon have a new "--csv" option that enables proper CSV input mode (parsing files with quoted and multiline fields per the CSV RFC). I'm really glad Arnold Robbins added a robust "--csv" implementation to Gawk, too, because that's really the most-heavily used version of AWK nowadays. I've already got CSV support in my own GoAWK implementation, and I'll be adding "--csv" to make it compatible.
I'm really glad this new updated version is coming out!
benhoyt, 13 hours ago
I was privileged to be one of the technical reviewers for this book. There's a fair bit of the original content (which is still great), but Kernighan's done a great job with some good restructuring and some significant updates, too. The early chapters are very hands-on, with something of a focus on "exploratory data processing", particularly with CSV files. Big data with AWK, you could say.
Gawk and awk will soon have a new "--csv" option that enables proper CSV input mode (parsing files with quoted and multiline fields per the CSV RFC). I'm really glad Arnold Robbins added a robust "--csv" implementation to Gawk, too, because that's really the most-heavily used version of AWK nowadays. I've already got CSV support in my own GoAWK implementation, and I'll be adding "--csv" to make it compatible.
I'm really glad this new updated version is coming out!
benhoyt, 13 hours ago
Forwarded from ЛВД — Логи внутренних диалогов
Как только Google и Facebook требуют учесть интересы СМИ, они тут же делают вид, что никаких СМИ не существует
А абстрактно, когда все деньги от сосуществования достаются им, они очень готовы сильно дружить, конечно
А абстрактно, когда все деньги от сосуществования достаются им, они очень готовы сильно дружить, конечно