News for hackers. Stuff that matters.

Gorgor

Calculating the solar position is also pretty important when simulating power production of photovoltaics plants. So, the Python library pvlib has nice functions for working with this: https://pvlib-python.readthedocs.io/en/stable/reference/sola...
Re:Ferret: A Multimodal Large Language Model by Apple on Saturday December 23, 2023 @12:54PM (#38746317)
But no one is training these kinds of models on their personal device. You need compute clusters for that. And they will probably run Linux. I'd be surprised if Microsoft trains their large models in anything else than Linux clusters.
Re:Files – Single-file photo gallery and file manager on Sunday February 06, 2022 @12:18PM (#30234517)
Have you looked at DigiKam? It offers directories, tagging (with custom tag hierarchies), deduplication and also face recognition. I think it can do quite a bit more, but I'm not a heavy user, at all. I just use it for keeping track of my modest library and it works great for that.
Re:Font loading on the web on Monday February 01, 2021 @12:42PM (#25991000)
I had not known about 'font-display: optional' before. Now I wish more sites used it because there has been so many times where I started reading something on my phone with slow internet when it had not fully loaded yet. It’s really annoying to see the page jump around a while later after font loading finished and you realize that you just wasted data on nothing.

In my opinion, 95 % of websites should just use system fonts. They’re good enough for almost every need really.

Re:The war against today's dangerously dull playgrounds on Saturday November 02, 2019 @09:07AM (#21427463)
I took a look at your link and I don’t understand why you feel it’s “really risky”. To me (a German), it seems like any other playground with quite common elements. Sure, the climbing web (if that’s what it’s called) is high, but this is a structure where kids will not even get that high if they are not skilled.

All the images and videos just looked so American to me. A guy pulling kids in wagons with his motor vehicle, where I’m just asking myself: Why? And of course, almost all the adults and a fair amount of the kids are overweight …

I’m not trying to bash America, but this did confirm quite some stereotypes of mine.

Re:Tall Buildings of the Last Fifty Years on Saturday October 12, 2019 @09:01AM (#21232725)
They weren’t even the tallest for very long because the Sears Tower was completed in 1973.
I have a smartphone and use pass via the app Android Password Store [1]. You have to set up your GPG key of course and also an SSH key for the sync with the remote repository, but once that’s done, it works perfectly fine.

[1] https://github.com/zeapo/Android-Password-Store

Re:A 2019 Guide for Automatic Speech Recognition on Wednesday September 04, 2019 @08:10PM (#20882678)
It has one for me.
Re:Linus’s rules on keeping Git history clean (2009) on Wednesday September 04, 2019 @02:33AM (#20874554)
Even if not many developers use an email-based workflow for their own work, I think it’s pretty well-known that the Linux kernel does.
To be exact, Google did not “delete” the app. It cannot even do that. It removed the app from its own app store. The fundamental problem is that Google’s own app store is perceived by many users to be the only way to install Android apps.

Are there any ideas about how to convince users to use other app stores?

If you do it this way, you have to copy your actual server’s private key to your local machine (or even machines if you’re using several), though. That possibly increases the chances of it getting compromised.

I’d prefer getting a separate certificate for local.domain.tld instead.

Please correct me if I have a misunderstanding.

Beside what others are saying, this whale does not look like a big sperm whale. According to Wikipedia [1], a 20-meter animal weighs up to 60 tons. This one looks closer to 10 meters and probably weighs less than 15 tons.

[1] https://en.wikipedia.org/wiki/Sperm_whale#External_appearanc...

Re:The Python Unicode Mess on Saturday October 06, 2018 @05:33PM (#18157386)
While u"" is accepted in current Python 3, for some reason they ignored the raw unicode string ur"" which still is a syntax error in Python 3. So, unicode_literals is definitely preferable.
Re:Pandoc on Tuesday August 28, 2018 @07:09AM (#17857878)
That’s interesting. Did you \usepackage[T1]{fontenc}?
Re:Paul Graham on SICP (2000) on Wednesday August 01, 2018 @05:44PM (#17667299)
In Python’s object system? How so?
Re:AI at Google: our principles on Friday June 08, 2018 @09:04AM (#17264847)
What was their argument? Do you have a link?
Re:The “Run Less Software” philosophy on Monday March 26, 2018 @07:38AM (#16678089)
What was the reason for switching from Postgres to MySQL?
Re:Thunderbird 52.7.0 released on Saturday March 24, 2018 @03:05PM (#16668250)
I’m using this setup too for quite a while now and overall, I’m pretty happy with it. But some HTML mail is barely readable. How do you deal with that?

I’ve written an emacs function which opens the mail in firefox, but I’m not really fond of that as every remote content is loaded by the browser. Is there a way to stop that?

Re:HTTPS on Your Landing Page Is Important on Thursday December 14, 2017 @09:47AM (#15922600)
How is it relevant that it may be a girl?
That’s something different, though.
Re:The Anti-Hero of CSS Layout – “display:table” (2014) on Saturday February 11, 2017 @09:52AM (#13622833)
You mean a table with many columns, don't you?
Re:Using Vim as a Python IDE on Wednesday February 01, 2017 @07:04PM (#13546731)
I'm not familiar with Macs. How is their UTF-8 different from the normal one? How is such a thing even possible?
Re:Why Kakoune – The quest for a better code editor on Tuesday December 13, 2016 @06:38PM (#13172365)
I have trouble conceiving of a use case where macros or regex-replacement cannot do what multiple cursors do. Do you have one in mind?
Re:Useful Perl one-liners (2013) on Tuesday November 29, 2016 @08:02PM (#13067622)
Could you explain that a bit more?
Re:Useful Perl one-liners (2013) on Tuesday November 29, 2016 @07:53PM (#13067575)
Don't you end up duplicating every line break that way? I think it should be

    perl -p -e 's/\r//g' Bad_Microsoft.csv Good_unix.csv
After all, Microsoft files usually end in a carriage return followed by a line break and not a bare carriage return, don't they?
Re:Germany planning to ‘massively′ limit privacy rights on Saturday November 26, 2016 @06:44AM (#13043034)
Who is it you're talking about?
Re:Halite: An AI Programming Challenge on Friday November 11, 2016 @02:23PM (#12933501)
This also makes it difficult to automate. Similarly, maybe I would like to automatically submit my new bot when I do a commit or a push, but the Submit button uses Javascript which makes this unnecessarily difficult. (At least for me.)
Re:Vim Anti-Patterns on Wednesday October 05, 2016 @04:02PM (#12647290)
I’m primarily a Vim user, but I use Emacs for some stuff like Common Lisp programming, Org mode, etc. But what I sometimes miss from Vim is the filtering with external commands. For example if I want to pipe my file through awk, I can just do

    :%!awk '<do some awk stuff>'
Does Emacs have something like this out of the box?

Older »