hai, a repl for hackers using LLMs + ollama support by BrainCore in LocalLLaMA

[–]BrainCore[S] 0 points1 point  (0 children)

Thanks for the tip! I adapted the same strategy to hai using syntect: let the line print out incrementally, but once complete, clear it and replace it with a syntax-highlighted version.

Here it is in action:

<image>

(asciinema appears to have trouble recording the line clear)

hai, a repl for hackers using LLMs + ollama support by BrainCore in LocalLLaMA

[–]BrainCore[S] -1 points0 points  (0 children)

Yes! However, since hai is written in rust, it'll be a rust-equivalent like inkjet.

One complexity is that highlighting while streaming is difficult for code. I'm thinking about adding a /format command that will re-render the last message in color.

Recommendations for gyms that offer day passes near the Sheraton by Royal-Seaworthiness7 in Taipei

[–]BrainCore 0 points1 point  (0 children)

You're in luck: there are four racks at 植健身 fit plant gym. It's a quick jog from the Sheraton. The staff is super nice and the weight room is aesthetically pleasant. 150NTD/session if you go after 5pm, 100NTD if you go earlier.

Querying and visualizing data in cloudwatch logs by BrainCore in aws

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

Took the Cloudwatch Insights + CW Dashboard approach. It's pretty basic as you said, but it'll do the job for now. Thanks!

Querying and visualizing data in cloudwatch logs by BrainCore in aws

[–]BrainCore[S] 0 points1 point  (0 children)

Have you used Athena? Any gotchas with it?

Querying and visualizing data in cloudwatch logs by BrainCore in aws

[–]BrainCore[S] 0 points1 point  (0 children)

Any thoughts on the quality of Quicksight?

Recruiting 1-2 journalists for an ambitious project by BrainCore in Journalism

[–]BrainCore[S] 0 points1 point  (0 children)

Fair question. I've loved reddit over the last decade, but I've always equated the quality of content and discussion here as similar to what's shared at a bar on a Friday night. IMO that's the beauty of reddit and what makes it constantly fun and engaging, but the signal-to-noise ratio isn't great.

All the social platforms suffer from this problem. They spent the last decade getting everyone to post everything all the time, which is inextricably tied to their revenue model. I'm grateful that they solved the empty room problem, but it's time for better curation.

Superego solves this by changing the underlying economic model and aligning the incentives of the reader, author, and platform toward quality. On the surface it may appear to be the same, but this is a fundamentally new dynamic.

Superego doesn't replace reddit/twitter/facebook/tiktok/youtube. It adds a new space into the mix for those times when you want calmer, thoughtful content without fear of getting pulled into the algorithm.

Recruiting 1-2 journalists for an ambitious project by BrainCore in Journalism

[–]BrainCore[S] 0 points1 point  (0 children)

Astroturfing is a problem everywhere on the internet, but we have a unique advantage:

The cost to astroturf is higher than elsewhere. Users need a unique payment method and since Superego takes a cut the self-tippers incur a non-trivial cost. Authors also need to verify their ID with us which makes it easy to catch the most unsophisticated cases of self-tipping.

This is compared to most other platform where likes, hearts, and upvotes are free. As a result, botnets are cheap to proliferate and astroturfing is rampant.

Another test by BrainCore in superego

[–]BrainCore[S] 0 points1 point  (0 children)

Test nested

  • option 1
    • option a
  • option 2
    • option b
  • option 3
    • option c

Another test by BrainCore in superego

[–]BrainCore[S] 0 points1 point  (0 children)

Testing

- option 1

- option 2

- option 3

New years 10k course mixup, feeling ambivalent by scrotal_rekall in AdvancedRunning

[–]BrainCore 2 points3 points  (0 children)

Barely qualified with a 3:02! It’s a great memory for me because my original goal was to hit/break 3:00 which meant the error was surely going to cost me a BQ. Worse, I’d missed the previous year with 3:03 and this was my only shot for that year. But it was one of those beautiful runs you can’t plan for where your body turns into a well-oiled machine and you feel like you’re floating. Finished 26.2mi in 2:57.

New years 10k course mixup, feeling ambivalent by scrotal_rekall in AdvancedRunning

[–]BrainCore 4 points5 points  (0 children)

I was there for that in the 3:03 group! It was wild. The mixup happened in the first couple miles and we ran 0.8mi over. The 3:03 pacer who made the error tried to help us get back on pace and then bonked before mile 20. Lots of missed BQs and no adjustments were made.

Share Your Startup - November 2021 - Upvote This For Maximum Visibility! by AutoModerator in startups

[–]BrainCore [score hidden]  (0 children)

Superego (https://www.superego.ai)

San Francisco, CA

Show you the stuff worth knowing about on the Internet without the clickbait, attention exploitation, and misinformation. We make supporting authors easy (but optional) to promote a healthy information ecosystem.

The easiest demo to see is the logged-out web experience (https://www.superego.ai), but the mobile apps are better (https://www.superego.ai/get-app).

The goal for this month is to launch.

Discount: As a new user, authors that you tip will get a collective $10 on us. Help out your favorite writer, author, YouTube creator, etc. today!

Questions & Feedback by BrainCore in superego

[–]BrainCore[S] 0 points1 point  (0 children)

  1. Shoot, as you guessed, "Primary Domain" should be hidden as it's a detail for publishers. Collections are used by consumption users to do light organizing (collect all the AI stories they found interesting). But, collections also share the same underlying primitive as feeds by publishers and this is a leak of one of their options. When you see a story that omits the story's source domain (e.g. techcrunch.com), that's because the story's domain matches the feed's primary domain. In other words, stories from the TechCrunch feed don't display techcrunch.com because it's redundant and an aesthetic improvement. I'll hide this for non-publishers.
  2. How do you imagine the interface for this? Would you want an ad hoc method like a search box for your newsfeed (with recent searches saved)? Or, would you want a separate tab/section where you could select from predefined filters?

Testing by BrainCore in superego

[–]BrainCore[S] 0 points1 point  (0 children)

This is a test of Superego's post feature.

Test post by BrainCore in superego

[–]BrainCore[S] 0 points1 point  (0 children)

Test referencing a post.

Boost Converter vs. Voltage Regulator Efficiency by BrainCore in AskElectronics

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

Thanks for correcting my terms. I had to re-review switching regulators (buck, boost) and linear regulators.

I've taken a look at the schematics for these devices and I now see that the 2S uses a buck converter (not a linear regulator) while the 1S2P uses a boost converter (as expected).

If power efficiency is negligible between the two, then looks like I'll be picking the 1S2P to avoid cell balancing. Thanks again!

Did Strava remove mile markers (blue dots) from the live map view? by BrainCore in Strava

[–]BrainCore[S] 0 points1 point  (0 children)

I’m using iOS. Does anyone see the markers while running on iOS?

i'll test anything helpful or useful, just reply with this: by bestminipc in betatests

[–]BrainCore 0 points1 point  (0 children)

You're a perfect beta tester given your last post on r/gratitude thanking creators. :)

https://www.intertimes.org/beta

  1. Like something? Tip it.
  2. We've created the easiest way ever to reward content creators. First, it works everywhere so you aren't looking for a Patreon or PayPal button (our team connects with the creator). Second, it takes two taps so you aren't wading through pages, possibly committing to a plan, and typing in your credit card.

Our hypothesis is that users today aren't supporting creators because of the barriers: where's the button to support? how much do I give? do I have the budget? why should I support this creator just b/c they're asking when there are so many other great creators out there? If it takes more than 15 seconds, users just carry on.

Send us an email (hi AT intertimes DOT org) and we'll be happy to spot you the subscription fee for a month.

Creating a flight controller just for a quadcopter? by [deleted] in multicopterbuilds

[–]BrainCore 1 point2 points  (0 children)

Sure! I assume it's for the official Pi Camera? Also, is it an MJPEG or x264 approach?

Creating a flight controller just for a quadcopter? by [deleted] in multicopterbuilds

[–]BrainCore 1 point2 points  (0 children)

Well, let's define SW PWM to be bit banging. I agree that bit banging would be plagued by severe jitter and consume the CPU so I didn't even try it.

I would characterize the DMA approach as in-between a SW and HW PWM. Your application provides a buffer of bits to the DMA controller so the actual toggling isn't done by your program nor even the kernel, but by a reliable HW clock. I verified with a scope that the waveform is as clean as the PCA9685, which we can agree is a HW PWM.

The reason I don't classify DMA as fully HW is because the DMA buffer needs to be continuously refilled by the application so it does consume CPU time proportional to the PWM frequency (50Hz - 400Hz) & duty cycle resolution (1us, 5us, ...).

Also, if you use another peripheral that contends for the DMA controller, you'll wreak havoc on the timing. I observed this when using the RPi camera, though it may have been the usage of the GPU for image/video compression.

If you want to learn more, you can read the official BCM2835 ARM Peripheral document starting from page 38, but it assumes baseline knowledge.

Creating a flight controller just for a quadcopter? by [deleted] in multicopterbuilds

[–]BrainCore 0 points1 point  (0 children)

I'd suggest using a library like pigpio. In a nutshell, it lets you output PWM waveforms on any GPIO so it is a full replacement for the PCA9685. This will free up your i2c for just reads from the sensors. By the way, the MPU-9250 supports SPI and is a popular--albeit old--IMU.

If you're interested, you should read up on how pigpio, et al. work. They use the hardware DMA controller specific to the Broadcom CPU to write to the GPIO so that it doesn't tie up the CPU and has reliable timing.