News for hackers. Stuff that matters.

bjornasm

Re:Fun with uv and PEP 723 on Thursday June 26, 2025 @05:21PM (#44391546)
So if you have a big project that is 4 years old and you are going to run it in a new .venv, what do you do?
Re:Fun with uv and PEP 723 on Thursday June 26, 2025 @05:15PM (#44391468)
>It (and especially its docs) are a little rough around the edges, but it's bold enough and good enough I'm willing to use it nonetheles

Thought I was the only one thinking this. Got to open an issue, I think it would be nice to have some more examples showcasing different use cases.

Re:Fun with uv and PEP 723 on Thursday June 26, 2025 @05:08PM (#44391388)
>When Python is installed by uv, it will not be available globally (i.e. via the python command). Support for this feature is in preview. See Installing Python executables for details.

>You can still use uv run or create and activate a virtual environment to use python directly.

Re:Using Microsoft's New CLI Text Editor on Ubuntu on Sunday June 22, 2025 @12:16PM (#44348097)
>Thirdly, even if I would touch type, my job needs me to take my eyes of the "IDE screen" occasionally to look at other things like datasheets, PCBs, notes, etc.

What if I told you that touch typing means you could do that while you are typing.

They explicitly fault the doctor for not acting on research that wasn't available.
Re:Quarkdown: A modern Markdown-based typesetting system on Tuesday June 03, 2025 @12:32PM (#44171843)
They should have added Quarto there imo.
Councidentally I just started using it as my todo list. Its really neat, especially when using githubs cli gh.
Re:Satellites Spotting Ships on Friday June 21, 2024 @06:17AM (#40748013)
Depends on the ship as well, not all ships change their draught ("depth") that much according to what they carry, but ships like bulk carriers and oil carriers certainly do. They report it via AIS data as well, but as its manually input it is often unreliable. An other idea that has been utilized is to look at the vake patterns (wave patterns) to estimate the speed of the ship.
Re:Satellites Spotting Ships on Friday June 21, 2024 @06:16AM (#40748006)
This is really interesting. I have worked a lot with AIS data (messaging system that relays information such as the position of a ship), but the AIS data can some time lack information (and sometimes can be spoofed). However I have never got around working with imagery data. This seems like a great starting point for that :)
Re:Satellites Spotting Ships on Friday June 21, 2024 @06:14AM (#40747998)
This was a really nice post, using imagery to confirm the positions of ships is really useful when the normally used data source, AIS data, has lacking data or may be spoofed. I have mostly worked with AIS data, but might incorporate these data as well to see what can be found.
Re:AI Will Become Mathematicians' 'Co-Pilot' on Thursday June 13, 2024 @07:20AM (#40668215)
I have been thinking on something along these lines as well. with the professionalization/industrialization of software you also have an extreme modularization/specialization. I find it really hard to follow the web-dev part of programming, even if I just focus on say Python, as there are so many frameworks and technologies that serve each little cog in the wheel.
Re:Mathematical Optimization for Cargo Ships on Thursday June 06, 2024 @07:36AM (#40596211)
>it seems very academic

From an academic standpoint it seemed a bit to little academic in presentation though, I would like to see the problem formulation! :)

Correction: not one per day, one per revolution. Since the satellites go from north to south pole while the earth is spinning, the polar areas is the inly the pass each time.
Thx, that was a huge brain fart, I meant each revolution.
There might be things that point towards this not being totally by accident.
Just in case why people are wondering why cutting of internet for an arctic island is a big deal.

What many might not know is that Svalbard is home to the northernmost satellite station in the world. It is just one of two stations that can communicate with polar orbiting satellites each day. ESA and NASA as well as other civilian organisations are present there, and the station communicates with well over a hundred satellites, and are pretty vital for much of the satellites that look back at us.

Re:Charlie Munger has died on Wednesday November 29, 2023 @12:04PM (#38461978)
What is the objective measures of a hero?
Re:Charlie Munger has died on Wednesday November 29, 2023 @12:03PM (#38461969)
Oxford dictionary defines a hero as:

"a person who is admired for their courage, outstanding achievements, or noble qualities. "a war hero" ".

With not much imagination I bet you could place him in one of the categories.

Re:Tesla sues Swedish state agency over number plate blockage on Monday November 27, 2023 @05:28PM (#38439349)
There is no sense in assuming that Tesla is more important for Nato than a Swedish participation in Nato. And it is also wrong to equate striking workers to the swedish state. This is on par with authoritarian states not understanding that people have their own will in a dempcracy.
Re:Tesla sues Swedish state agency over number plate blockage on Monday November 27, 2023 @05:21PM (#38439270)
Only the 5th largest country, ans by doing so they might shut down their 4th largest country, Norway, as well.
Re:Tesla sues Swedish state agency over number plate blockage on Monday November 27, 2023 @05:18PM (#38439228)
It doesn't make sense? How so? They are supporting the strike by boycotting Tesla.
Re:Things you're allowed to do (2020) on Friday November 24, 2023 @04:43AM (#38402149)
Counter argument: it sounds exhausting to have a friend constantly want to make you their insurer.
Re:Tesla faces strong oposition from unions in Sweden on Friday November 17, 2023 @11:13AM (#38305535)
>Well, they are not invincible but only possible alternative are Chinese cars

Um, no? You seem very opinionaded for someone with seemingly little insight.

Re:Why do people still use VBA? on Wednesday November 15, 2023 @09:00AM (#38276658)
I have this great new product called "DELETE FROM products WHERE provider != 'mycompany'"
Re:The Svalbard fibre optic cable connection on Friday November 10, 2023 @03:53PM (#38224379)
If you are at a university I highly recommend trying to take a subject on UNIS.
This was a great read, thx :) Of all the other languages than Python, I am the most drawn to Fortran. I used it for some university project and it was quite nice. Hope I'll find a good excuse to pick it up for some project.
Re:Men's Shed on Monday November 06, 2023 @09:09AM (#38162766)
>that 5-10 year window for guys that are retired but not yet ready to spend their day in a nursing home.

Totally unrelated, but this was very bleak. I think people ideally should have a couple of decades as a functioning but retired person.

Re:Implicit Keyword Arguments for Python on Sunday November 05, 2023 @07:05PM (#38157159)
># instead of this: func2(visibility=visibility, frobnification_level=frobnification_level)

># this could be used: func2(=visibility, =frobnification_level

Please, no. It takes two seconds to write it out, this will lead to hard to read code.

Re:Confusing Git Terminology on Thursday November 02, 2023 @02:48PM (#38118224)
Disagree. Why are you both pulling when you want code from the repo and when you want to put your code up to someone elses repo?
Re:Confusing Git Terminology on Thursday November 02, 2023 @02:47PM (#38118209)
This is the one that allwaays was impossible for me to wrap my head around. Surely it is a push or merge request not a pull request.

Older »