Hacker Newsnew | past | comments | ask | show | jobs | submit | mdoliwa's commentslogin

I wonder how HN front page would look like with positive ones only.


I've had a project in the queue to hook up a sentiment analyzer to an RSS reader/Mastodon/AT protocol client to make negative posts and negative people disappear. My basic trouble with that sort of thing is that those things can harvest much more negativity than my nervous system can handle.


so this just says if we have free places or not? students.size < maximum_number_of_students


It gives the number of free places, hinted by the method name `available_places`

Needlessly ugly way to write it imo though


But it doesn't. The code will only ever output 0 or 1. With a regular <=> operator at least.


yeah, so basically 1 we have available places, 0 we do not.


I think it probably made sense to the author because they've used all three (-1,0,1) for other examples, and would've been fine until separated out to a method reused to show the actual number.

I think they tried to be a bit too clever, basically.


I created this tool for myself because I always start my projects by buying a domain name. The other similar tools I used often gave me false positives, so I decided to do something about it. I hope it will save you some time.


No, I believe it was some kind of science paper.


Stupid question, if we find a commercially viable way of converting CO2 into fuel is there a danger of "global cooling" because people will get too greedy with this?


No: the atmospheric CO2 is at the bottom of the energy hill. In order to turn it in to fuel you need to pump in all the energy originally extracted from the fuel, then some more.

After you've re-expended the entire 20th century's worth of fossil fuels energy equivalent in sucking CO2 out of the atmosphere, not burned it, and stored it in a country-sized propane tank, then maybe we're back to 19th-century temperatures.


The earth is not a zero sum game, we get energy from the sun. Photosynthesis reverses the process turning co2 into sugar and o2.


And? So?


That means co2 is not the bottom of the energy hill.


"Bottom of the energy hill" is a chemist's short hand way of saying that we can't practically extract energy from CO2 reacting with anything useful, meaning chemically this is at the bottom end of reactions that happen without energy input. To convert it into something reactive, you need to invest energy to split it up again into its constituent parts, which is what happens during photosynthesis.


"Bottom of the energy hill" is a useful term in a lab. However the earth is not a chemistry lab. We cannot ignore photosynthesis outside of a lab as it is a factor that exists.


> We cannot ignore photosynthesis outside of a lab as it is a factor that exists.

I apologize if this wasn't clear. It's an expression about energy potentials, and as such it's not just useful in a lab, it's an essential piece of information about the substance.

For example in the original context of this comment thread, a person asked whether there was a danger of people exhausting our atmospheric CO2 because they got too greedy with this technology - a question that can in fact not be answered meaningfully without talking about energy deltas. The fact that CO2 cannot be practically processed in a way that releases energy is the only pertinent information when talking about this.


In the photosynthesis case the bottom of the energy hill is helium in the sun’s core.


Well and also the CO2 isn't acting as a fuel, it acts as a battery or resource.

Plants make sugar from CO2, and also burn that sugar back to CO2 (plants respire overnight - they're not pure CO2 consumption machines).


- CO2 isn't the only greenhouse gas.

- This process produces hydrocarbon fuel. It will be burned and the carbon will return to the atmosphere.

I suppose propane could become a chemical feedstock. Then the carbon could theoretically be tied up for a while.


Even if it winds up back in the atmosphere, it's displaced an equivalent amount of new CO2 going into the atmosphere.

Pulling enough CO2 to make a kilogram of propane and then burning that kilogram of propane for electricity is still better than burning a kilogram of freshly fracked propane.

One offsets consumption. One just adds consumption.


Only if your source of electric doesn't add CO2. If you burn coal to make propane you are worse off CO2 wise than using regular propane. We have a lot of wind and solar, but most places they are still a minor part of the electric mix (if this applies to you, it wouldn't be hard to get a lot more wind/solar in your grid).


Only if more fuel is created than is used, which would seem to be a waste of energy. On the whole, it should be a balanced loop and should net off.


Burning the propane will release the same amount of Co2 again... So I doubt it will change much


The application of this is not in energy production or - realistically - CO2 capture on a global scale. This takes huge amounts of energy to do and requires a sophisticated chemical synthesis in the background in order to replenish the catalyst.

Pretty much the only reason to do this would be because you're specifically interested in generating propane. For example, it could be very useful for ISRU on other planets, or to generate propane "for free" from a solar setup.

If your goal is energy production, you'd just use the output of solar panels directly without this costly step in the middle. If you want to store energy locally, electrolyzing water into H and O would be hugely more cost effective. But propane is a more dense fuel that would be useful for mobile applications such as ships and cars, and can also be used as a raw material in chemical synthesis.


Theoretically it would be possible, but we would just release some carbon from other sources, there's a lot of it in various rocks if fossil fuels somehow expired (we still have a lot of those).


Taking the carbon from the atmosphere will always be more expensive than from some carbon-rich rocks that form a huge fraction of the Earth's crust.

In fact, our most effective ways to take carbon out of the atmosphere today all involve a step of letting some mineral turn into one of this carbon-rich ones, and extracting it from there.


It'll always be more expensive to extract carbon from the atmosphere, but if it produces a valuable byproduct and the power to run the process is very cheap (excess solar) it might still pencil out.


I fail to see anything that doesn't apply equally to the rocks.


When you have surplus photovoltaic capacity — an increasingly common situation — you could turn it to electrolysis. You still have to pay for the equipment, but it sounds like it could be pretty cheap.

It would cut out the cost of mining, and possibly a lot of transportation costs, if you can use the products nearby.


Yes, and before humans the earth was on a cooling trend, though only measurable on a geological time scale (millions of years). A little plant matter gets converted to charcoal and then coal every years. Though biology mostly trys to get at that carbon first.


That would be an easy problem to solve. We are very good at heating up the atmosphere.

More CO2 should also stimulate plant growth, CO2 is a bit of a limiting factor there.


I'm Ruby developer, and tried multiple times to switch to vscode or one of these heavy IDE like plugins. All the time I'm back to my simple setup which is basically vim + fzf(powered by ripgrep). CTRL+P I run fzf to find files, CTRL+F to scan files content. It's so fast, that every time I'm doing the test switch to another tool, I'm missing this speed and get back to it. Some time ago I wrote an article for company that I used to work for, describing my workflow: https://thecodest.co/blog/rails-development-with-tmux-vim-fz... you can check it for more details.


I thought only people knowing game of life will play it, so I didn't explain it. The way they transition is exactly the same as in original game of life. The only difference is this grey dead cells area, where cells are always dead no matter what's their neighborhood. Anyway, I think you're right, I'll add this info. Thanks.


Author here. Maybe it's too early to post it here, as I'd like to add few more things, but I couldn't wait :). There is one board per day, so if you're bored with today's grid please wait for tomorrow. Stack: Rails + Stimulus, no AI :)


I'd like it to be something on its own, and it's exactly like you said HN is only a method to jump start.


There have been several similar efforts on HN recently; search engine for blogs, recommendation platform, etc. What is the number one problem you are trying to solve? Maybe we can join force and make a better platform together.

For example, my pet peeve for HN is that they don't send emails, so I have to check back here. So, my project is exactly about that: Your comment should be send back to you and the one you rely to, in full text with basic markup, with proper email threading maintained.


Not sure where I found it, but I have it coded like this:

scope :ranked, -> { select('posts.*, ((posts.upvotes_count + 1) / POWER(EXTRACT(EPOCH FROM (NOW() - posts.published_at)), 1.8)) AS rank').order('rank DESC') }


That's almost the HN formula. Make sure your age is calculated as hours.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: