I really like it because in order to keep the days of the week aligning that holiday must be a special non day of the week. It would lead to conversations like. “What day of the week is it?” “It isn’t”
- 4 Posts
- 14 Comments
Really!? We’re still doing GOTOs in 2023? That should just be a for loop over the collection of tests you want to write.
robyoung@beehaw.orgto
Europe@feddit.de•Boris Johnson tasked security force to plan a raid on a vaccine plant in the NetherlandsEnglish
3·3 years agoTotally. The fact that this was released well before his appearance by his own camp smells very dead catish.
robyoung@beehaw.orgto
Technology@beehaw.org•Amazon's Fire TV is Adding Full-Screen Video Ads That Play When You Start Your Fire TV
0·3 years agoUnfortunately, for a lot of non-tech savy people, the options often boil down to this kind of shit or being part of a botnet within a few days.
Quietly byt audibly while sat in the office scowling at my computer.
Not even a mention of PyO3?
robyoung@beehaw.orgto
Technology@beehaw.org•AI could lead to better comoression algorithms!
11·3 years agoI think they used a slightly lossy algorithm on the title.
robyoung@beehaw.orgto
Programming@programming.dev•Use your database to power state machines
3·3 years agoI don’t understand why the
most_recentfield is needed. Surely the most recent state can be derived from the order field and the unique constraint on it can prevent concurrency issues if the previous sequence is taken before the state change. The benefit would be that the transition history table could then be append only.
robyoung@beehaw.orgto
Technology@beehaw.org•Any professionals that work with algorithmic systems able to help out?English
7·3 years agoWhat exactly do you mean by an algorithmic system? Your introduction to the form implies you have a pretty broad definition. If that is the case then I think you should also account for a large proportion of your target not being sure that they are actually what you’re looking for. Define your terms. Give examples of what you determine inside the definition and examples of what you determine outside of it.
All that said, I think the research area sounds really interesting. I look forward to hearing how it goes.
robyoung@beehaw.orgto
Python@programming.dev•Fix comparing two date strings when they may or may not have microseconds
3·3 years agoThat looks like ISO8601 format so you can use fromisoformat to make the parsing a bit simpler. I’m not clear why you need to drop the microsecond part. Surely if one timestamp is a few microseconds past the second it is later.
d1 = datetime.fromisoformat(date1) d2 = datetime.fromisoformat(date2) return date1 if d1 > d2 else date2
robyoung@beehaw.orgto
Technology@beehaw.org•HP to move production of millions of PCs to Thailand, Mexico
21·3 years agoI’m pretty sure Thailand isn’t in Mexico
I’m in the UK and have been fully remote since before the pandemic. After the pandemic my family and I moved from London to Newcastle upon Tyne. What this move has made really clear is that not all cities are made equal.
London is huge and expensive. In order to live in a nice area close enough to the centre to make commuting easy you’re looking at over £1M for a family home. It is an incredibly busy and fairly dirty city that has a culture of sticking your head down and not interacting with those around you. It also is a cultural powerhouse with some of the best restaurants, theatre and museums in the world. When we decided to move we were quite anxious we would miss this even though we couldn’t afford to actually make use of it very much.
Newcastle has surpassed my expectations in every way. It is incredibly welcoming, people go out of their way to interact with you in the street. It is small enough that we can live in the city and have all the associated amenities yet not break the bank. I can cycle into town, pick something up from a shop and be back at my desk within an hour’s lunch break. Our cost of living is massively reduced and our quality of life has gone up tremendously. We have been to more theatre and museums since moving because we have more disposable income. And with the saved money we can afford to visit London and make use of its culture a few times a year.
What I’m trying to get at with this big rambling story is that I hope one of the results of the pandemic is that smaller, more accessible and more affordable cities become more popular.
I use a text based double entry accounting system called beancount. It’s a bit techy but it’s easy to extend with automatic account selection and custom reports. I have a plugin for my editor that makes working with the file much easier. It has a frontend called Fava which is a bit too double entry accounting focused for me so I don’t tend to use all of it’s features. I’m usually just interested in seeing how much I’m spending on a subset of expense accounts over time.
Beancount: https://beancount.github.io/ Fava: https://beancount.github.io/fava/ Editor plugin: https://github.com/polarmutex/beancount-language-server






That’s quite a high bar. Can you give a Windows or Mac laptop to your elderly neighbour and not also provide them support?
I realise that I am only a sample set of one and my mother and father have very different usage patterns but they are both in their late 70s. My mother has an Ubuntu laptop and my father had a Windows one. He requires a lot more support. My mum’s biggest issue is forgetting her password which is hardly the fault of the OS.
Edit: to be clear I’m not necessarily agreeing with the OP. I have no opinion on the needs of “most users”.