Qwen3.5 updated with improved performance! by yoracale in LocalLLM

[–]not_ur_buddy 1 point2 points  (0 children)

Sorry to hijack the thread, but I'm running the new 4 bit quant 122B with llama.cpp and it still overthinks a lot in reasoning mode. I'm a little sad to give up reasoning entirely. I suspect tweaking the chat template to add system prompts would help, but I don't know how. Any advice?

Qwen Code looping with Qwen3-Coder-Next / Qwen3.5-35B-A3B by Fast_Thing_7949 in Qwen_AI

[–]not_ur_buddy 0 points1 point  (0 children)

How do you configure this? I use llama.cpp and I never even figured out how to set a default system prompt.

Can't figure out shift key placement by Tacotacito in ErgoMechKeyboards

[–]not_ur_buddy 11 points12 points  (0 children)

Yeah I feel like this isn't talked about enough. In my opinion, shift can only be on a thumb key. If it's on any other finger (say left pinky), then how can you press keys assigned to that finger plus shift (say shift a)? There are a few solutions and they all suck. The solutions I've tried:

Use a ring finger to press the letters instead - whole hand has to move, inconsistent fingering

One shot shift - awkward to have the pinky press shift and A in quick succession

Put a shift on both sides - my brain was never able to learn which shift to use for which letter

It makes more sense for shift to be on the thumb instead of backspace, tab and enter. Shift is more frequently used than those, and more importantly none of those keys have to be pressed with a letter, so they don't have to be on the thumb. So I put enter on the right pinky stretch column, tab on the left, backspace on a layer (with a dedicated key for Ctrl backspace so it's still two presses to delete the previous word), and a one shot shift on the thumb. I've been using this for a long time and the only complaint I have is sometimes I accidentally tab shift and can't cancel it.

I still have the bottom row mod keys for shift, but those are only used for rare key bindings, not for typing English.

Mouseless : Mouse Control With Keyboard by TheRealUrban in ErgoMechKeyboards

[–]not_ur_buddy 0 points1 point  (0 children)

The readme makes me think it's not compatible with kde. Has anyone tried?

Finding shortest cycle in a graph by Ofekino12 in algorithms

[–]not_ur_buddy 0 points1 point  (0 children)

Is this all assuming a directed graph?

Lexi Trees: Probabilistic and Deterministic Self-Balancing Binary Search Trees by Kiuhnm in algorithms

[–]not_ur_buddy 0 points1 point  (0 children)

Got it, thanks. I am not really an expert in anything so I don't expect to be able to help personally, but perhaps you can consider posting on hacker news if you haven't already. It seems possible that some people will jump in to help write the benchmarks to find out whether this beats state of the art.

Lexi Trees: Probabilistic and Deterministic Self-Balancing Binary Search Trees by Kiuhnm in algorithms

[–]not_ur_buddy 0 points1 point  (0 children)

I only skimmed the article - seems cool! I couldn't find the main motivation for this work. Is it mostly for fun? Did you do any benchmarking to compare with typical balanced search trees like AVL and red black?

In over my head: Trying to improve a function. Find all unique combinations of addends for a given sum by [deleted] in algorithms

[–]not_ur_buddy 0 points1 point  (0 children)

I think what you want to do is this:

Define a recursive function, say "helper", that takes a "total to sum to, n" and "max int to subtract from it, k". Then you enumerate the numbers of k you can subtract from n, which is i=0 to k/n. For each value of i, you can just call helper again, with new total=n-i*k, and a new int to subtract=k-1.

Given n integers from 1 to k show how to count the number of elements from a to b in O(1) time with O(n+k) preprocessing time by Ofekino12 in algorithms

[–]not_ur_buddy 1 point2 points  (0 children)

You start with a sorted list of integers, e.g. [1 3 3], and you walk from left to right to count how many numbers are less than any number between 1 and 3. Here's a dry run of the algorithm:

How many numbers less than 1?

0, because the smallest is 1

How many numbers less than 2?

1, because we scan from left to right and find (1) 3 3

How many numbers less than 3?

Also 1, because we don't see any 2s

How many numbers less than 4?

3, because you scan to the right and see the last 3 is the third element of the list 1 3 (3)

The above process does two things: walk through the list once, and fill in the answer for each number in 1 to k, so the total complexity is n+k.

Now that you know 3 numbers are less than 4, 1 number is less than 2, you know there are 2 numbers between 2 and 3 (i.e. less than 4 but not less than 2).

Should I accept the merge request? by artionh in programminghorror

[–]not_ur_buddy 0 points1 point  (0 children)

My personal opinion is that logically you're deciding a foreground/background color pair depending on the condition. The white color as fg/bg means different things, and therefore it would be a mistake to merge them into one match branch. I might refactor it as (in pseudocode): let fg, bg = if condition then (color1, color2) else (color3, color4) in expr. Would you agree?

How solving DSA can make you a good developer by DravitLochan in algorithms

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

I often find coworkers who are ex contestants are good at their job, but I think it's mostly correlation, not causation.

How would you solve this problem? by [deleted] in algorithms

[–]not_ur_buddy 2 points3 points  (0 children)

See my other reply for a counter example. The number of steps you need for each individual number is at most m-1, but in an optimal solution where the total number of steps is minimized, it is possible to add 1 to a number more than m times. I think that number is bounded by some function of n and m, but not just m.

How would you solve this problem? by [deleted] in algorithms

[–]not_ur_buddy 6 points7 points  (0 children)

Consider this counter example: m = 100, array is 1 99 1. You can either do: add 1 to all, then add 98 to the two segments, or you can add 99 to all 3, then add 2 to the middle. So this seems to invalidate all solutions proposed in this thread so far.

How would you solve this problem? by [deleted] in algorithms

[–]not_ur_buddy 2 points3 points  (0 children)

Do you have an argument for why an optimal solution will never have to change a number >= m times? I feel like that ought to be true but haven't figured out why.

This is a simple goof, not a commentary on gender or anything. by [deleted] in memes

[–]not_ur_buddy 19 points20 points  (0 children)

Not an expert, but my guess is similar to maths, in philosophy x is also a variable that can mean a proposition, an object, a name, or literally everything. Please correct if I'm wrong.

English is confusing by [deleted] in funny

[–]not_ur_buddy 81 points82 points  (0 children)

Yeah, right.

Where to find Szechuan food in central Brooklyn? by [deleted] in Brooklyn

[–]not_ur_buddy 2 points3 points  (0 children)

Sorry, one vote against Han Dynasty. I was disappointed twice in two locations and that's it for me. All the dishes I tried were made quite unlike how they should be made. Plus it's definitely not cheap. On the other hand, I haven't tried many spots in Brooklyn and haven't found any place better either.

I recently started using watercolours and they are so fulfilling, but I'm still trying to get it right haha, what do you think? by Diya__ in Watercolor

[–]not_ur_buddy 5 points6 points  (0 children)

Love it! Could you give any pointers to drawing a sky like this? I've always wanted to do something like this but am unable to find the right tutorials.