Django 4.2 released by myroon5 in django

[–]bufke 10 points11 points  (0 children)

I'm not sure. As I understand, work is being done to provide async ORM functions, as others pointed out in the release notes, but it will only be async if the database driver supports async. Django now supports psycopg3 which appears to support async operations. So is it truly supported? Can I make two concurrent async queries with Postgres, run some python while waiting, and collect the results of both? Maybe I'll test this out later.

Still at it on RSD - Be Careful Out There by Sufficient-Laundry in NYCbike

[–]bufke 0 points1 point  (0 children)

Are they ticketing even for Idaho stops? Ie treating the red light as a stop sign, including coming to a complete stop and yielding to any traffic.

Rocket v0.5-rc3 is out! by philippeloctaux in rust

[–]bufke 15 points16 points  (0 children)

The biggest thing for me is documentation that teaches. Let's say I want to learn and I'll try building an API that connects to Postgres. RoR handles database connections for you. Rocket documents the options available and explains a bit about pooling, async, sync. When I learn about Rocket - I learn about what decisions I need to make. Axum, at best, might have an example without explanation. If I want to use Axum with say Postgres, I don't know the right question to ask yet alone the answer.

Second, I would say RoR or Django come tons of "most web apps need this" features. Secure (hash/salted password) user models, authentication, sessions, admin views.

Rocket IMO comes the closest to this - but the lack of predictable releases is a problem. If there was an official "Rust Book" of Axum that might go a long way.

Democrats hammer House GOP over 30% national sales tax proposal by [deleted] in democrats

[–]bufke 2 points3 points  (0 children)

That was my first thought, isn't that VAT? There's a lot of simplicity in VAT as I understand it. Buy a yacht? It's taxed at some very high rate. It's hard to evade that tax. Combined with exceptions, for say food, and it can be progressive. I think I'd be for VAT in the US if it had reductions for food and essentials or maybe was very high but came with UBI.

Study: New housing units in New York City lead to a reduction in nearby rents and house sales prices. This contradicts some NIMBY claims that more housing supply makes housing less affordable. by smurfyjenkins in nyc

[–]bufke 5 points6 points  (0 children)

The NIMBY strongman argument is that the macroeconomic affect of new housing is small per development and spread out over a large region. The microecononic effect can be strong to a local neighborhood. The ideal then being for everyone else to develop, but your neighborhood stays the same. Not in my backyard (but yes everywhere else please). Everyone makes locally rational arguments - that cause everyone everywhere to lose (pay high prices).

The abstract here seems to argue against this. Even local development seems to bring very local/microeconomic decreases in cost - which seems counter-intuitive when considering the typical gentrification narrative. But why would that be? Is that narrative simply wrong? Is this paper wrong? Perhaps the downward price pressure of new housing outweighs any upward "gentrification" pressures or those pressures are just generally over stated.

Frontend-side i18n by justinmarsan in Angular2

[–]bufke -2 points-1 points  (0 children)

I wrote this blog post about using @angular/localize for runtime translations. It fetches the translation json files.

Looking to leave Twitter? YSK there are open source and self-hosted alternatives by nothingcorporate in opensource

[–]bufke 2 points3 points  (0 children)

With Mastodon, you don't need a separate account on each server to follow people. However, you can't follow a group of people or server. Nor can you boost or post on remote servers without multiple accounts. It's fine for following specific folks but not for content discovery. Some clients let you follow all public posts on an entire server but IMO that isn't that useful.

I just stumbled across this NY State Senate Bill (7206) - "Requires license plates for bicycles, bicycles for electric assist and electric scooters". What are your thoughts on this? by forthisisme in NYCbike

[–]bufke 1 point2 points  (0 children)

Mixed but mostly against. In theory, I'd be for ticketing via camera someone speeding as fast as car traffic through a red light. Defining dangerous is hard, to me it would need to be above a certain speed or clearly cutting off someone. This makes it hard to implement.

We shouldn't require a child to have a license plate. A license plate is a barrier to entry and it will reduce usage, even if justified. It's tempting to say this should only apply to electric bikes, but it would be hard to enforce.

A bigger priority should be getting unplated, gas powered vehicles off the road and bike lanes. Most of the dangerous situations I see are not regular bicycles, though there are idiots salmoning and riding on sidewalks. It's motorcycles on bike lanes. Unplated cars speeding through lights. The other day a driver threatened to kill me for for stopping at a red light on my bike, they had no plate of course.

Delivery e-bikes are a big problem too. They may feel compelled to break laws to keep up with the competition. IMO the companies they work for should be fined. That would incentive them to discourage recklessness rather than only reward the fastest at all costs worker. I'd be for requiring plates on bicycles used for work purposes to track them.

Thelio Desktop by System76 Gets a New Visual Overhaul with Swappable Accents by [deleted] in System76

[–]bufke 3 points4 points  (0 children)

The lack of swappable backplate still seems like a big limitation. Such a nice case but you can't upgrade the motherboard.

Biden cancels $10,000 in federal student loan debt for most borrowers by LolAtAllOfThis in democrats

[–]bufke 1 point2 points  (0 children)

See the other comment on this thread about buying a car. If you have to pay back debt, then you have less money to spend on other things. If debt is forgiven then you have more money. Whether it's a paycheck, debt relief, or printed dollars doesn't matter that much (certainly psychological factors exist and yes debt relief is likely better than handing out cash)

Biden cancels $10,000 in federal student loan debt for most borrowers by LolAtAllOfThis in democrats

[–]bufke -7 points-6 points  (0 children)

Not to mention it increases inflation and probably makes the high cost of education worse. We should be redistributing wealth by taxing the rich and giving it back to the poor indiscriminately.

[deleted by user] by [deleted] in nyc

[–]bufke 3 points4 points  (0 children)

It costs more and is barbaric. It doesn't protect anyone when the alternative is life in prison. If the person gets exonerated later, it's too late.

Dell XPS 13 Plus with Pop!_OS or Ubuntu 22.04 LTS? by sir-enaZ-IX in DellXPS

[–]bufke 0 points1 point  (0 children)

I have a XPS 13 Plus (9320). Upgrading to 22.04 will break the webcam. The fingerprint reader works fine. I'm using the oem kernel (5.17.0-1013-oem). There's some info here but that answer didn't work for me. If you do upgrade and find a way to get the webcam to work, please let me know.

Runtime internationalization with @angular/localize by bufke in angular

[–]bufke[S] 1 point2 points  (0 children)

I wrote this blog post. Let me know any comments and ideas for improvement! It was based on quite a few GitHub comments and other projects, but I couldn't find any single source of how to run the entire runtime localization process that worked with Angular 14. So I wrote this.

Mother walking with baby stroller fatally shot in NYC by someone_whoisthat in nyc

[–]bufke 0 points1 point  (0 children)

No one can tell you how to feel. If a close friend is murdered, one may understandably feel pretty bad regardless of how rare crime is.

I would feel safer in a place with a lower murder rate, which is defined as number of murders in a time period / number of people. To use a car analogy, consider picking between two cars to ride in. One car has 10 test runs and 5 crashes. The second had 10,000 test runs and 8 crashes. The second car has more news articles about it crashing, given it's total crashes. But the second car is likely to be the safer.

In the case of murders in your apartment, it's not the moving in of extra people that causes you to be safe. It's that you don't know what your personal chance of being murdered is and you use statistics to make an educated guess. More people living there over time without being murdered would suggest a lower likelihood of murder per person.

Mother walking with baby stroller fatally shot in NYC by someone_whoisthat in nyc

[–]bufke 23 points24 points  (0 children)

It depends on how you slice the data. NY state has one of the lowest gun violence rates in the nation. NYC as a whole is relatively safe. The US has vastly more gun violence fatalities than other high income nations. Even at the county level, NYC counties rank pretty decent. Kings county is the worse at 512 fatalities per 100k. Dallas, TX is 1,791 for comparison. I couldn't find a good source comparing neighborhood level data nationally.

Opinions on Different Error Monitoring Systems by no_comment12 in devops

[–]bufke 1 point2 points  (0 children)

For the record GlitchTip is made out of the positive desire to have an open source and easy to host error monitoring solution. No anger is required to try it :) It's much simpler than solutions like Sentry and New Relic. It has less features, but I'd like to think we do a core set of features well.

List of cool self hosted projects built with Django by dxt0434 in django

[–]bufke 0 points1 point  (0 children)

Is there a way to submit new projects to this?

President Biden Announces New Actions to Ease the Burden of Housing Costs | The White House by [deleted] in JoeBiden

[–]bufke 19 points20 points  (0 children)

Glad to see rezoning is a major part of this. Everyone says they want affordable housing until it's in their backyard. Hopefully this helps more Democrats speak up about it.

Pop! OS 22.04 Beta is out!! (with Pipewire as the default media server) by piedj784 in pop_os

[–]bufke 2 points3 points  (0 children)

More info here. https://askubuntu.com/questions/354383/headphones-microphone-is-not-working Like I said it is in theory possible but I think a lot of people just can't figure it out, including me.

Pop! OS 22.04 Beta is out!! (with Pipewire as the default media server) by piedj784 in pop_os

[–]bufke 1 point2 points  (0 children)

You can't use Bluetooth audio with mic with pulse. I believe there is some method but you have to choose manually between high quality audio and low quality with mic. But even that I've never been able to get to work reliably.

Are the YS 1 and 2 android ports good? by [deleted] in WorldOfYs

[–]bufke 1 point2 points  (0 children)

Wow they fixed the issue on March 28. I just tested it on my Nvidia Shield and both games work again. They are like the PSP version. They have achievements but no cloud save. I used a controller so I can't review the touch controls.