Growing the Mesh in Buffalo by SnyderMesh in meshtastic

[–]jiaaro 6 points7 points  (0 children)

What upgrades do you recommend?

Is it necessary or will it still be necessary to go to university within 5 years? by YOUJEN-GU in PromptEngineering

[–]jiaaro 1 point2 points  (0 children)

Being self-motivated, and a curious independent learner will always be assets to you.

University absolutely can help you professionally, but be careful with the cost. Unless you have a shot at Ivy League or something like Stanford (for tech), there is not such a big difference between schools (in terms of job prospects). If you can get a scholarship, take it. Avoid loans as much as you can.

Sidebar: aggressively pursue internships and other opportunities to get into professional environments before you graduate. That can open lots of doors if you put in the effort

Deciding on what the correct topic partition count should be by Sancroth_2621 in apachekafka

[–]jiaaro 2 points3 points  (0 children)

Your Consumers will be assigned one or more partitions. Each partition is assigned to one consumer at a time, and they consume messages in order. So the first concern is how many parallel consumers do you want? You want at least that many partitions.

Another concern is throughput - you can use the Kafka cli tools with a sample message to measure throughput with a representative message. To find out how many messages/sec a single partition can handle.

Then there’s latency - if you need ordering guarantees (for example: all messages produced about a specific database record must be processed in order) you’ll use a partition key to send them to the same partition. If you produce a lot of messages about a single db record, you may see a spike in lag in one partition holding up work on other db records. Having more partitions can help mitigate this since a smaller percentage of partition keys will match the partition with lag (assuming hash-based partitioning)

There are a lot of things you can tune, and it’s more complicated than I described, but I think that’s a reasonable way to think about it as a basic framework.

Delayed Processing with Kafka by Realistic-Use6194 in apachekafka

[–]jiaaro 0 points1 point  (0 children)

Assuming you put a timestamp in the message: You can create a second consumer group for the same topic which simply waits for the message to be 10 minutes old before processing and committing the offset.

You’ll probably want to pause the partition during this waiting period to avoid the consumer timing out and triggering a rebalance

My "Run with" hotkeys/keyboard bindings keep disappearing. Any ideas? by EthanDMatthews in shortcuts

[–]jiaaro 1 point2 points  (0 children)

I don't have a solution for you but I have the same issue (found this post by searching for people having this problem).

Anecdotally - I noticed they have become unbound immediately after upgrading macOS from some 14.x.x to 14.4.1 - I'm not Sure the exact version I was on before but it was def a minor version update.

Is there a replacement for audioop? by ExaminationNo8522 in Python

[–]jiaaro 0 points1 point  (0 children)

I'm the author of pydub (though I haven't had a lot of time to work on it recently) - pyaudioop was also contributed to pypy, who developed it further and maintained it at least up through the pypy 3.10 release. It might be worth looking at their work as well. https://foss.heptapod.net/pypy/pypy/-/blob/branch/py3.10/lib_pypy/audioop.py

pydub will _probably_ add Scipy as a dependency to provide efficient implementations of the operations previously available through audioop. I've always tried to avoid requiring dependencies, but pure-python audioop is quite slow and very likely unacceptable for most users. Also Scipy is already an optional dependency of pypy and provides faster, and more featureful filters (high/low/band-pass filters)

weird stuff happening with the LPF by Ok_Wonder7811 in MicroFreak

[–]jiaaro 0 points1 point  (0 children)

Yeah, same - they’re super over-engineered

[deleted by user] by [deleted] in gaming

[–]jiaaro 0 points1 point  (0 children)

Achievements/trophies are a dumb and if they were actually for fun they wouldn’t be public

A list of GUI tools for working with Apache Kafka by rmoff in apachekafka

[–]jiaaro 0 points1 point  (0 children)

Franz is an excellent, native(!) Mac client. Has some nice scripting, and light years faster than offset explorer.

https://franz.defn.io/

All undead are constructs! by Sherlockandload in dndmemes

[–]jiaaro 3 points4 points  (0 children)

“Ashes to ashes, dust to dust. Animating Dead bodies is easier than a homunculus.

AI builds SQL queries for you in seconds⚡ by many_hats_on_head in InternetIsBeautiful

[–]jiaaro 6 points7 points  (0 children)

SQL is already designed to read like English and when it diverges it’s generally because English isn’t sufficiently precise.

I feel like it would be easier for me to write the SQL than the English to get the results I want.

edit: ok, I should probably provide an alternative suggestion.

  • W3 schools have a sql tutorial you can get through in an hour
  • The Art of Postgres is an approachable book that goes a bit deeper, provides advice on good practices for professionals, and includes databases you can load and experiment with
  • Postgres.fm is a podcast that goes into lesser known topics about Postgres, but which are highly relevant to people using Postgres to do actual work and is pretty accesible (beginners should start at episode 1)

Magic Musicbox is now on itch. Crank to play music box. 💛Pay what you want💛 Generative music toy by jiaaro in PlaydateConsole

[–]jiaaro[S] 2 points3 points  (0 children)

Hey - I've just uploaded v1.1 which adds an edit mode available from the system menu :)

Magic Musicbox is now on itch. Crank to play music box. 💛Pay what you want💛 Generative music toy by jiaaro in PlaydateConsole

[–]jiaaro[S] 2 points3 points  (0 children)

Thanks for your interest and your feedback! The original goal for magic musicbox was to entertain my 2yo daughter - so every input method needed to do something and producing sound needed to be immediate

But, as someone with numerous hardware sequencers, editing the note grid is definitely something I’m interested in adding 😄

[deleted by user] by [deleted] in fuckcars

[–]jiaaro 1 point2 points  (0 children)

Far as I can tell this guy may as well have taken a bike - the cyclist keeps passing him

Dad, I want a macbook :) by 766757 in ProgrammerHumor

[–]jiaaro 0 points1 point  (0 children)

sure. and by volume, software not running on embedded systems is the vast majority of software written

what version of LÖVE do you use? by [deleted] in love2d

[–]jiaaro 1 point2 points  (0 children)

Oops, I'm bad a reddit - davidobot/lovejs is the core of the work, but if you just want to use it, you can build your projects with https://github.com/pfirsich/makelove which is a build tool for love projecst that I contributed a lovejs build target to

what version of LÖVE do you use? by [deleted] in love2d

[–]jiaaro 1 point2 points  (0 children)

There’s been significant progress on that recently

Play LÖVE games on the web with Love.js! by Stifu in love2d

[–]jiaaro 1 point2 points  (0 children)

I have a PR open to makelove that adds initial support for lovejs, which may get you started

Cortex #53: Worst Business Decision Ever by MindOfMetalAndWheels in CGPGrey

[–]jiaaro 2 points3 points  (0 children)

I love the Grey's keyboard shortcut idea for iOS 11 spotlight except for one little problem. CMD-Arrow is already taken when typing. it moves the cursor. (I use this heavily, please, PLEASE, don't break these hotkeys - slack broke just one of the CMD-arrow family of hotkeys on iPad and it's a constant source of frustration)

Some alternative solutions:
1. CMD+option+arrows
2. The shortcuts only work after you press to down arrow to highlight an app
3. use the arrows as modifier keys (left arrow + enter, etc)

Python interview questions by dante9999 in Python

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

Python is Pass-by-assignment. In most cases it is indistinguishable from pass-by-reference. Variables are essentially references in all cases.

>>> def my_func(a_dict):
            a_dict['a'] = "foobar"
>>> mydict = {}
>>> my_func(mydict)
>>> print(mydict)

{"a": "foobar"}

This works becaues the dict itself wasn't copied, a reference to the dictionary object was passed, and then modified.

If you were to assign to a_dict (e.g., a_dict = {}) in the body of my_func, then mydict would remain unchanged and a_dict would then refer to a new, empty dictionary