[-] [email protected] 11 points 5 days ago

Watch Elon Musk of 2012 vs 2025.

Long term drug use clearly destroyed his brain. He never was very smart but 2012 Musk is a fucking genius in comparison

108
Blame Canada (lemmy.world)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

https://youtu.be/bOR38552MJA

Our timeline is officially stupider than fucking South Park.

20
submitted 2 months ago by [email protected] to c/[email protected]

I'm doing some Galois Field / Cyclic Redundancy Check research for fun and I've come across an intriguing pattern that I need a data structure for.

Across the 64-bit (or even 128-bit or larger) spaces, I've discovered an interesting pattern relating to hamming distances that I'd like a data structure to represent.

I'm going to need something on the order of ~billions of intervals each having somewhere between 1 item to ~1 billion per interval. And I'd like to quickly (O(1) or O(lg(n))) determine if other intervals intersect.


For 32-bit space I can simply make a 512MB Bitmask lol and then AND/OR the two Bitmask. Easy

But for 64-bit space I'm stuck and a bit ignorant to various data structures. I'm wondering if someone out there has a good data structure for me to use?

I've read over Interval Trees on Wikipedia. I'm also considering binary decision diagram over the 64-bits actually. Finally I'm thinking of some kind of 1-dimension octtree like datastructure (is that just a binary tree?? Lol. But BVH trees in 3d space seems similar to my problem it's just I need it optimized down to 1 dimension rather than 3.) Anyone else have any other ideas or cool data structures that might work?

[-] [email protected] 160 points 3 months ago

They became the Government and are using their power to mass fire everyone to get rid of the Deep State.

Why do you think MAGA is so willing and ready to fire huge swaths of the US Government?

6
submitted 4 months ago by [email protected] to c/[email protected]

cross-posted from: https://lemmy.world/post/24780658

https://lemmy.world/post/22892985

/c/technology was the most active by far (more so than /c/cars), so I'll post here again first.

Stats

The following stats are winter tests (10F to 30F. Or -10C to 0C).

  • L1 Charger from Home is 2.05 mi/kwhr (12.0 mi/electric-$$. 17.1c per kwhr home costs) in this deep cold.

  • L2 Charger from Work is 2.8mi/kwhr (14.0 mi/electric-$$. 20c per kwhr work-charging costs).

  • 43 Miles per Gallon gasoline (13.9 mi/gasoline-$. $3.10 gasoline during test).

  • L1 Charger is closer to 2.8 mi/kwhr during 60F (15C+ temperatures).

  • L2 Charger is closer to 3.5 mi/kwhr during 60F (15C+ temperatures).

Conclusion: The cold (10F to 30F) has made the Li-ion batteries of this car SIGNIFICANTLY less efficient. We're at the point where L1 chargers are more expensive than gasoline, while L2 chargers are roughly on part with gasoline.

I recommend anyone who gets an EV to get an L2 charger. Not only for the convenience of far faster charges, but also because of the incredible improvements to cold-weather charging efficiency.


There were some pro-EV fans asking me to more carefully test the gasoline usage in the winter. And now you have the stats. I can solidly say that gasoline is worse during the Winter (down from EPA estimated 48), but not dramatically worse like the electric engine gets.

The above gasoline test was done over an entire week of driving to reach the 200+ miles I thought was needed for a solid test. I performed it by running out of electricity (all the way down to 0%), then driving to a gasoline station and filling up. I memorized the exact pump I filled up at.

Then, after 200 miles across a week, I came back to the same pump and filled up exactly the same. I then counted the gallons that came out of the pump and divided out based on my trip odometer. I was 203.5 miles of driving total with 4.734 gallons reported from the pump.

16
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]

https://lemmy.world/post/22892985

/c/technology was the most active by far (more so than /c/cars), so I'll post here again first.

Stats

The following stats are winter tests (10F to 30F. Or -10C to 0C).

  • L1 Charger from Home is 2.05 mi/kwhr (12.0 mi/electric-$$. 17.1c per kwhr home costs) in this deep cold.

  • L2 Charger from Work is 2.8mi/kwhr (14.0 mi/electric-$$. 20c per kwhr work-charging costs).

  • 43 Miles per Gallon gasoline (13.9 mi/gasoline-$. $3.10 gasoline during test).

  • L1 Charger is closer to 2.8 mi/kwhr during 60F (15C+ temperatures).

  • L2 Charger is closer to 3.5 mi/kwhr during 60F (15C+ temperatures).

Conclusion: The cold (10F to 30F) has made the Li-ion batteries of this car SIGNIFICANTLY less efficient. We're at the point where L1 chargers are more expensive than gasoline, while L2 chargers are roughly on part with gasoline.

I recommend anyone who gets an EV to get an L2 charger. Not only for the convenience of far faster charges, but also because of the incredible improvements to cold-weather charging efficiency.


There were some pro-EV fans asking me to more carefully test the gasoline usage in the winter. And now you have the stats. I can solidly say that gasoline is worse during the Winter (down from EPA estimated 48), but not dramatically worse like the electric engine gets.

The above gasoline test was done over an entire week of driving to reach the 200+ miles I thought was needed for a solid test. I performed it by running out of electricity (all the way down to 0%), then driving to a gasoline station and filling up. I memorized the exact pump I filled up at.

Then, after 200 miles across a week, I came back to the same pump and filled up exactly the same. I then counted the gallons that came out of the pump and divided out based on my trip odometer. I was 203.5 miles of driving total with 4.734 gallons reported from the pump.

[-] [email protected] 128 points 4 months ago* (last edited 4 months ago)

We need to save and remember this moment. The assholes are already rewriting history as we speak.

94
submitted 6 months ago by [email protected] to c/[email protected]

cross-posted from: https://lemmy.world/post/22892955

The Prius Prime is a dual fuel vehicle, able to run 100% on Electric, or 100% on gasoline, or a computerized blend in-between. This presents me a great opportunity to be able to do a direct comparison with the same car of an EV engine vs an ICE engine.

  • Toyota computer claims 3.2mi-per-kwhr.

  • Kill-a-watt (https://en.wikipedia.org/wiki/Kill_A_Watt) claims 2.2mi-per-kwhr.

  • Additional 1.5% losses should be assumed in the wires if you wish. (120V drops down to 118V during charging, meaning 2V of the energy was lost due to the resistance of my home's wires).

  • Level 1 charger at home (known to be less efficient).

  • Toyota computer claims 53miles-per-gallon (American Gallon).

  • I have not independently verified the gallon usage of my car.

  • 295 miles driven total, sometimes EV, sometimes Gasoline, sometimes both.

  • 30F to 40F (-1C to 4.5C) in my area this past week.

  • Winter-blend fuel.

  • 12.5miles per $electricity-dollar (17.1c / kw-hr home charging costs)

  • 17.1 miles per $gasoline-dollar ($3.10 per gallon last fillup).

If anyone has questions about my tests. The main takeaway is that L1 charging is so low in efficiency that gasoline in my area is cheaper than electricity. Obviously the price of gasoline and electricity varies significantly area-to-area, so feel free to use my numbers to calculate / simulate the costs in your area.

There is also substantial losses of efficiency due to cold weather, that is well acknowledged by the EV community. The Prius Prime (and most other EVs) will turn on a heater to keep the battery conditioned in the winter, spending precious electricity on battery-conditioning rather than miles. Gasoline engines do not have this problem and remain as efficient in the winter.


I originally wrote this post for /c/cars, but I feel like EVs come up often enough here on /c/technology that maybe you all would be interested in my tests as well.

33
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]

The Prius Prime is a dual fuel vehicle, able to run 100% on Electric, or 100% on gasoline, or a computerized blend in-between. This presents me a great opportunity to be able to do a direct comparison with the same car of an EV engine vs an ICE engine.

  • Toyota computer claims 3.2mi-per-kwhr.

  • Kill-a-watt (https://en.wikipedia.org/wiki/Kill_A_Watt) claims 2.2mi-per-kwhr.

  • Additional 1.5% losses should be assumed in the wires if you wish. (120V drops down to 118V during charging, meaning 2V of the energy was lost due to the resistance of my home's wires).

  • Level 1 charger at home (known to be less efficient).

  • Toyota computer claims 53miles-per-gallon (American Gallon).

  • I have not independently verified the gallon usage of my car.

  • 295 miles driven total, sometimes EV, sometimes Gasoline, sometimes both.

  • 30F to 40F (-1C to 4.5C) in my area this past week.

  • Winter-blend fuel.

  • 12.5miles per $electricity-dollar (17.1c / kw-hr home charging costs)

  • 17.1 miles per $gasoline-dollar ($3.10 per gallon last fillup).

If anyone has questions about my tests. The main takeaway is that L1 charging is so low in efficiency that gasoline in my area is cheaper than electricity. Obviously the price of gasoline and electricity varies significantly area-to-area, so feel free to use my numbers to calculate / simulate the costs in your area.

There is also substantial losses of efficiency due to cold weather, that is well acknowledged by the EV community. The Prius Prime (and most other EVs) will turn on a heater to keep the battery conditioned in the winter, spending precious electricity on battery-conditioning rather than miles. Gasoline engines do not have this problem and remain as efficient in the winter.

[-] [email protected] 191 points 6 months ago* (last edited 6 months ago)

Lex Luthor literally becomes president in many versions of the Superman cartoons.

The idea of a rich billionaire with a narcissist Messiah complex with a bone to pick with heroes and actual helpful people that becomes popular and eventually the US President is practically a trope. Apparently this generation has forgotten the message.

88
submitted 7 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]

Hey, lots of Political Topics coming up that's just turning into blame games, anger and bad vibes. I'm enacting a temporary rule: no new politic topics for one week as of now.

I recognize that there is a lot of anger around the election and it's legitimate to feel that way. But I'm willing to bet that none of the political talk in the next week constitutes a 'Best Of' post anyway.

That being said: feel free to use this topic (!!!!) as political talking points. I'm serious. People deserve to discuss their opinions and I don't want to hamper them too much.

If you have political stuff to say, say it in here. I'll promise to lightly moderate this topic, which means this topic will naturally lead to bad vibes and poor arguments.

But we need a place to discuss and vent.

1
submitted 7 months ago by [email protected] to c/[email protected]

Hey Gaza / Free Palestine guys,

I'm pissed about the Kamala loss but that's not important right now. I need to know what media you were using.

Where did Free Palestine/ Gaza memes and discussions start?

I'm worried that the discussion is a right wing disinformation campaign designed to make us tear each other apart. I cannot find any legitimate politician (even far left ones like Bernie Sanders, AOC, etc. etc) that would have pushed the message of 'Joe Biden / Kamala is just as bad as Trump on the issue of Gaza'.

The only ones who would push that message are right wing trolls who try to separate us. So now I want to track down and confirm my suspicions. Who meme'd this? Where did you hear it? Was it Twitter? TikTok? Reddit? Facebook? Instagram?

491
submitted 7 months ago by [email protected] to c/[email protected]

Despite all the doom scrolling, Harris has a comfortable lead in the electoral college right now.

The time for vibing is over. It's too late to change anyone's opinions (especially because national level events like debates are over). Harris will finish her Media Blitz soon (including a Fox News showing) while Trump retreats into his shell hoping no one notices how damn stupid his mouth is.

This is the time for doing. The focus should be on voter drives and other get out the vote pushes. It's mid October, and the October surprises are against Trump and in our favor.

It's not the lead we wanted but it's a lead nonetheless. Don't talk yourself out of believing this lead because of a bad poll or two.

[-] [email protected] 114 points 7 months ago* (last edited 7 months ago)

Because Threads and BlueSky form effective competition with Twitter.

Also, short form content with just a few sentences per post sucks. It's become obvious. That Twitter was mostly algorithm hype and FOMO.

Mastodon tries to be healthier but I'm not convinced that microblogs in general are that useful, especially to a techie audience who knows RSS and other publishing formats.

26
submitted 9 months ago by [email protected] to c/[email protected]
[-] [email protected] 116 points 9 months ago

I raise you Emperor Ferdinand I Armor, specifically it's Codpiece.

I'm just saying. Sexualized armor is very historical.

9
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]

Just working on my recent electronics project and I needed two temperature sensors for it. This time around I didn't feel like making a full PCB from KiCAD and wanted to keep things simple with a 1/2 size solderable breadboard.

As usual, I'm using an AVR DD (this time: a curiosity nano devboard) for simplicity. (I expect to need the 32768 Hz clock crystal, so a PCB with said clock would be nice. Otherwise, the DIP package is available). The overall circuit is pretty simple, but the topic of discussion today is the MCP970X series temperature sensor.

https://www.microchip.com/en-us/product/mcp9701a

At this point I do recommend people to read the documentation.

The gist is that you simply apply 3.1V to 5.5V between Vdd and Gnd. Vout will have some amount of startup time, and eventually output 400mV + (Temperature-in-C * 19.5mV). For example, my room temperature is ~24C right now and the voltage output is ~920mV.

(There's clearly errors in my ADC but I'm saving that for later... this device is supposed to be outputting 876mV given the room's temperature)


With a ~6uA expected current, this device is power-efficient enough to run from most MCU pins. AVR DD's 50mA-per-pin is overkill, but more importantly, a through-hole design like mine seemingly has substantial inductance on all wires.

The datasheets claim a startup time of 0.8ms. Alas, when I soldered on the MCP9701 and turned on the GPIO-pin, it took over 20ms (!!!) before the oscillating signal finally calmed down and settled upon the room temperature reading.

To counteract this parasitic inductance, I've added a 10kOhm resistor and a 10nF capacitor out of my through-hole kit. (E12 resistor kit and E6 capacitor kit). With 220us of startup time now on the GPIO pin and with only 500uA max current going to Vdd... there is no more "ringing" anymore and life is good!

EDIT: I should probably note that my goal was to return to 0.8ms startup time, like the documents suggest. 10kOhm was chosen as 500uA (5V) to 250uA (after charging to 2.5V) is a magnitude more current than I need and is a decent starting point. 10nF was chosen to pair-up with this to give me startup time in the 100us range but not over 800us (I don't want to be "slowed down" by the charging capacitor, so I want the Vdd charge to be faster than 800us claimed startup time). It should be noted that a 5V over 1000us curve was claimed as a 800us startup in the MCP970x documents if you read all the graphs.


Moving forward, my last task is that of calibration. The on-board ADC of the AVR DD is apparently quite accurate, but the Vref of the microcontroller is +/-4% (!!). With a +/- 2% accuracy of the temperature sensor, there is some calibration I should do.

The ADC errors + Vref errors are expected to just be linear. The temperature-sensor's error is quadratic however. In both cases, I don't want to overcomplicate things, so I'm planning on just adding a constant-offset to the mV reading to shift it to the correct spot.


All in all: pretty standard Analog-to-digital conversion issues here. But I figured it'd be a good discussion topic for beginners.

12
submitted 10 months ago by [email protected] to c/[email protected]

Modern AVR has a wide variety of Timers (TCA, TCB most commonly, but TCD, TCE, and TCF are uncommon and specific to particular AVR chips).

This can make choosing a AVR DD vs AVR EA vs AVR EB vs AVR DA a difficult choice, especially if you're trying to use timers to their greatest extent possible.

This blogpost covers a basic idea of what the different timers offer.


The blogpost is short enough. I feel like what I can add is to highlight the difference between:

  • Timers -- A background count++, a comparator of count vs some pre-configured values, and then likely an output pin that changes based off of these configurations. Consider this an MCU output. Almost everything listed can be used as a timer.

  • Counters -- Counter functionality is an MCU input. Many protocols, such as Servos, PWM, pulse-train decoding requires a variety of pulse-frequency-modulation, pulse-counting, or wide variety of other kinds of common tasks. "TCB" may be called a "Timer", but its really more of a counter-focused device which can more easily measure frequencies (for pulse-frequency-modulation). TCA and a few others can do some basic counting tasks, but usually not as well as TCB.

The other discussions in the blog are easy enough to understand IMO. This is all AVR specific, but some of the best material online are highly specialized articles like this, so I still feel like sharing.

[-] [email protected] 122 points 1 year ago* (last edited 1 year ago)

Lemmy, the social network, started off as a leftist hangout spot.

From the perspective of "Open Source developers who are anti-Reddit pro-Fediverse", it makes a lot of sense for Leftist/Communist and anti-corporation leaning people to hang out.

After all, the more extreme the viewpoint, the more driven to action (ie: write tens-of-thousands of lines of code and release for free) people get. In some regards, its the nature of Open Source + volunteer effort to attract a more extreme ideology. IE: Free Software is driven by ideology, not by money. So you get ideological people, especially when the software is small and niche.

The July 2023 Reddit Blackout was a big challenge for Lemmy's old community and the new community, as the new community basically "invaded" a large scale leftist hangout spot. But hopefully we all learn to work together and the nature of our neighbors moving forward.

I think anyone here (likely everyone?) is at least on the anti-corporate anti-Reddit side of the discussion. Which is enough of an alliance to keep us together, for now.


It does mean that we'll have to keep up with the far-left old-timers on this network who wish to push their viewpoints. But they are the legacy and the start of Lemmy in some respects, even as the hypergrowth (starting in July 2023) has moderated the community pretty severely.

[-] [email protected] 185 points 1 year ago* (last edited 1 year ago)

The problem wasn't the glass.

The problem was using wtf touchscreen controls to shift between drive and reverse. Mrs. Chao confused the two then died.

Shitty UI kills another person. Tesla fucking up basic UI design is the real villain here.

[-] [email protected] 138 points 1 year ago* (last edited 1 year ago)

Eggs aren't fertilized and thus aren't embryos tho.

[-] [email protected] 172 points 2 years ago

AirBnB is just as corporate and lobbyist bullshit as any other company. Arguably worse, in that AirBNB breaks the laws and then tries to get laws changed.

Hotel chains at least try to lobby to change the laws before breaking the rules.

[-] [email protected] 149 points 2 years ago

Not that I'm familiar with Rust at all, but... perhaps we need to talk about this.

The only thing that could have prevented this is better moderation tools. And while a lot of the instance admins have been asking for this, it doesn’t seem to be on the developers roadmap for the time being. There are just two full-time developers on this project and they seem to have other priorities. No offense to them but it doesn’t inspire much faith for the future of Lemmy.

Lets be productive. What exactly are the moderation features needed, and what would be easiest to implement into the Lemmy source code? Are you talking about a mass-ban of users from specific instances? A ban of new accounts from instances? Like, what moderation tool exactly is needed here?

[-] [email protected] 122 points 2 years ago

What bothers me about this is that the administrators at sh.itjust.works, beehaw.org, and lemmy.world are all being adults about this.

While this Reddit-like stampede is already trying to create an us-vs-them environment.

It's fine. The adults are adulting. Maybe a bit of Reddit deprogramming is all that is needed for people to become more reasonable.

view more: next ›

dragontamer

0 post score
0 comment score
joined 2 years ago
MODERATOR OF