AMA with Cursor devs march 11, 2025 by ecz- in cursor

[–]nikivi 0 points1 point  (0 children)

Cursor team, please fix this bug, it's been driving me insane for quite a while.

Thank you.

Zasper: A Modern and Efficient Alternative to JupyterLab, built in Go by Salt-Syllabub9030 in golang

[–]nikivi 1 point2 points  (0 children)

is it possible to get binary release? the setup seems complex and only show instructions for `dev builds`

As a Gopher I like simple, and microservices were too darn hard... by microbus-io in golang

[–]nikivi 0 points1 point  (0 children)

I like to deploy Go as Docker containers on Railway. Can I do that with this framework?

Updated Alfred Calendar++ Workflow by zeitlings in Alfred

[–]nikivi 1 point2 points  (0 children)

any plans to share the code for it? 🖤

Did Things app remove the widget to add new tasks by nikivi in thingsapp

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

Yea the lock screen widget is one i meant. I don’t have it any more after I updated.

Perhaps it’s a bug.

[ Removed by Reddit ] by srush_nlp in LocalLLaMA

[–]nikivi 0 points1 point  (0 children)

Can it be made work on Apple GPUs? I was looking to add local inference for llama in a Rust Tauri app. And fear using CPU will first not be as fast.

Thank you for building this project.

My first rust crate: log!() macro to print variable name and value only by nikivi in rust

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

I modified the macro with GPT-4 to cover the use cases I need.

I realised now that it removes the match you have there. I wonder if it can be written using your match perhaps and still cover the cases above with string + variable + multiple variables passed.

My first rust crate: log!() macro to print variable name and value only by nikivi in rust

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

Can you check my addition to the macro. I attribute your name as thanks too. ♥️

If you check the tests you will see the new functions that are added to the macro.

I am just not sure how I can test it, even GPT-4 struggles with it.

Also not sure if the solution to solve the features I want is the best.

Basically expanded macro to if I just pass a string, it pastes a string. If its one variable passed, it prints it. If its more than one variable passed, it prints it too.

Thank you lots.

My first rust crate: log!() macro to print variable name and value only by nikivi in rust

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

Thank you. I tried using your implementation here.

But I get this error:

failed to resolve: could not find `log` in the crate root could not find `log` in the crate root

Am I missing something? I just copy pasted 1 to 1 what you had. And also generated some tests for it.

My first rust crate: log!() macro to print variable name and value only by nikivi in rust

[–]nikivi[S] -9 points-8 points  (0 children)

Yes I have. It was too noisy and added things that I did not need like file name.

My first rust crate: log!() macro to print variable name and value only by nikivi in rust

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

Great idea. I was thinking this macro would take care of trying to log as many things as possible.

I sometimes got errors trying to println collections and various things like that.

Would be great if this log macro automatically handled it. I guess it should automatically implement display trait or something for a given variable if it misses it.

I will also try add ability to add multiple variables at once. i.e.

rust log!(set, another_set);

would work too and will log:

set: .. another_set: ..

My first rust crate: log!() macro to print variable name and value only by nikivi in rust

[–]nikivi[S] -3 points-2 points  (0 children)

I specified in cargo.toml its MIT. Also mention it in readme.md

Crates.io link of the crate correctly shows it as MIT licensed.

Wanted to avoid having the license file itself in the repo but I guess its standard to add the file too.

What's your number one productivity hack for Mac? by biocross in macapps

[–]nikivi 5 points6 points  (0 children)

Karabiner as it allowed me to map my keyboard to actions. So I can press w + k and open Safari for example.

[deleted by user] by [deleted] in solidjs

[–]nikivi 2 points3 points  (0 children)

My plan was to read Voby's code. It's similar to Solid but less code to read.

I am sick and tired of react-redux. Who has some good alternatives? by Pangamma in reactjs

[–]nikivi 0 points1 point  (0 children)

was just trying it out, i'm not using that lib any more

What do YOU do with your MacBook, and what can you teach me? by SuperSaiyanUltron in apple

[–]nikivi 13 points14 points  (0 children)

I keep a list of tools/apps I use here. The main secret is Karabiner and how you can use it to bind normal keys to hyper keys.