News for hackers. Stuff that matters.

can_center_divs

Re:We should not let the Earth overheat on Wednesday June 07, 2023 @01:14AM (#36223116)
Yeah, the earth has been cooling down and heating up throughout the history.

Yet, the spike in Co2 levels just after the industrial revolution is unlike any spike earth has ever had naturally. The Earth has never had this drastic changes to its climate as it had in this span of time. Earth's climate has always been changing, but the change was gradual. 200 years is just a blink of an eye in the context of a planet - changes as drastic as we observe today, have never taken place naturally before.

What you are saying, is just proving the point that we are NOT focusing on EQ. On the contrary, politicians and public figures are benefiting from emotional manipulation and understanding of human emotion of those who aren't as aware of that.

Focusing on EQ as a society, would mean that individuals would get better at understanding the said manipulations. In my opinion resulting in a society that is less driven by emotional impulses and more on the actual collective well-being and problem solving.

A ton of of issues on the social level could be solved, if people had a better understanding of which parts of their beliefs are based on emotions and if those emotions are worth listening to.

Re:Thoughts on Svelte on Wednesday March 29, 2023 @02:23AM (#35353347)
Doesn't it? I can't put a class name on a HTML Element and then style the said class inside the same file. It seems to me that it cares more about where you have it, than Svelte
Re:Thoughts on Svelte on Wednesday March 29, 2023 @01:37AM (#35353069)
Maybe your case is different, as your app is solving a completely different problem. We have been building a somewhat complex CMS system with Svelte the last two years and haven't had any issues, that couldn't be solved because of the lack of information you are mentioning.

After this time, literally every other framework seems unnecessarily overcomplicated for me lol. It is a BREEZE compared to writing React imo.

Re:Thoughts on Svelte on Wednesday March 29, 2023 @01:31AM (#35353035)
The important difference to note compared to React, is that Svelte doesn't virtualize the DOM. It works in the same way vanilla JS works when it comes to DOM manipulation.

Even though it is compiled, you are still working closer to the browser. You can still use all vanilla JS DOM manipulation methods in your code and it will work as expected. Which is an enormous advantage over React, at least for me.

Re:Thoughts on Svelte on Wednesday March 29, 2023 @01:29AM (#35353023)
This assumes you are using SvelteKit, not vanilla Svelte
Re:How 'Open' Is OpenAI, Really? on Monday March 13, 2023 @02:31AM (#35131892)
Yeah, the community always seems to figure out how to do things more effective.

My girlfriend asked me if I could transcribe some audio files for her with my "programming stuff". I immediately thought of Whisper from OpenAI.

I first used the official CLI tool. With the largest model it took long 8 hours to transcribe a 30 min long file. I noticed it was running on the CPU - tried switching it to use the GPU instead with no luck. Running it on WSL was probably not helping.

Then I found this gem: https://github.com/Const-me/Whisper A C++ Windows implementation of Whisper. I opened the program, fed it with the largest model and the file. The transcript was done in 4 minutes, instead of 8 hours... Downside? The program has a GUI, lol.

Of course, I could probably get the CLI tool to run on the GPU with some tinkering and installing some Nvidia packages for Whisper to use. But frankly, I have so little experience with that kind of stuff, that installing the Windows implementation was a much easier choice.

Re:Firefox Android now supports tampermonkey on Friday February 17, 2023 @01:34AM (#34831538)
Website's source code is not open source, even though you can inspect it.

If you have a public repository with your code on GitHub, everyone can see the code. But they do not have the right to use the same code in a commercial manner, without you specifying a license for your code, that says they can.

Re:Show HN: I trained an AI model on 120M+ songs from iTunes on Friday February 03, 2023 @01:54AM (#34637975)
Hi! The website looks awesome! I have a problem with searching though. I can see the recommended songs below the search bar, but as I type to search something, it is just loading infinitely. I checked the network tab in DevTools and there is no requests made when typing or after typing and pressing enter.

I used Chrome. Cheers!

Edit: also, clicking away from the text input field shouldn't clear the value, in my opinion. The element which displays the results can still be hidden though. It would also be nice to control the volume of the played song.