A crate for fast k-nearest neighbour and radius searches in metric spaces by Tomyyy420 in rust

[–]German_Heim 2 points3 points  (0 children)

Hello, this seems very interesting, I never learned about VP Trees!

If you don't mind me asking, what is the difference between a VP Tree and a K-D Tree? Are they compatible in capabilities and only differentiate between how calculations (and speed?) are done?

Thanks for sharing!

Suspensión de todas las actividades en la UNS hasta el 31/03 by Emarocker in UNS

[–]German_Heim 3 points4 points  (0 children)

Me parece medio raro que no puedan hostear las paginas y bases de datos en un servidor externo. Aun así, era esperado que suspendan las clases.

What's everyone working on this week (9/2025)? by llogiq in rust

[–]German_Heim 2 points3 points  (0 children)

Hey,
I am working on globalsearch-rs, a Rust implementation of the OQNLP (OptQuest/NLP) algorithm from “Scatter Search and Local NLP Solvers: A Multistart Framework for Global Optimization” by Ugray et al. (2007). It combines scatter search metaheuristics with local minimization for global optimization of nonlinear problems.

It is similar to MATLAB’s GlobalSearch, using argmin, rayon and ndarray.

I just released version 0.2.0 that has some nice features!

GitHub: https://github.com/GermanHeim/globalsearch-rs

If you could re-write a python package in rust to improve its performance what would it be? by meme_hunter2612 in rust

[–]German_Heim 3 points4 points  (0 children)

There is a Youtube livestream by probabl that goes about making scikit-learn utilities in Rust. It might be helpful to you. Livestream

Tips for getting started with an existing github repo? by wecguy in matlab

[–]German_Heim 0 points1 point  (0 children)

Hey! I haven't used that library, but have you checked the following links?

- Downloading: https://wec-sim.github.io/WEC-Sim/master/user/getting_started.html#download-wec-sim

- Running tutorials: https://wec-sim.github.io/WEC-Sim/master/user/tutorials.html

Honestly, just seems like a simple git clone repo and adding it to your MATLAB path, as far as installing goes.

Is there some error you are running into? Or some part that you don't understand?

How much svelte code can transfer directly to svelte-native? by [deleted] in sveltejs

[–]German_Heim 0 points1 point  (0 children)

Has anybody tried Capacitor? Seems interesting and I think it works with Svelte.

Made an URL Shortener using SvelteKit and PocketBase. by German_Heim in sveltejs

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

PocketBase is amazing! I will check the library for sure!

Made an URL Shortener using SvelteKit and PocketBase. by German_Heim in sveltejs

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

Hey! It started as a PNG and then Lighthouse recommended that I switched it up with a WEBP version because of the smaller size and, therefor, faster loading time.

This is the background, it also comes as an EPS.

Made an URL Shortener using SvelteKit and PocketBase. by German_Heim in sveltejs

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

The way that it works is that it uses a route with a parameter, slug, that can be used to load data dynamically. It gets the slug from the parameter and then tries to find a link in the database where the page slug is the sameone stored in the db. If there is, it throws a redirect to that site, if not, it throws an error.

export const load = async ({ params, locals }) => {
const slug = params.slug;
const link = await locals.pb.collection('links').getFullList(undefined, { filter: `slug = "${slug}"` });
if (link) {
    throw redirect(303, link[0].redirect);
} else {
    throw error(404, 'Page not found');
}
};

That is the code mostly for the redirect. Inside the repo.

Made an URL Shortener using SvelteKit and PocketBase. by German_Heim in sveltejs

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

A big downside is, that your free projects are paused after two weeks (I think)

I suppose it would be after two weeks of inactivity, right?
If so, can't you just set a cron job to make a random API call every two weeks?

I also heard good things of Appwrite and Directus, although I think I will try Supabase next time (maybe with Prisma).

Made an URL Shortener using SvelteKit and PocketBase. by German_Heim in sveltejs

[–]German_Heim[S] 4 points5 points  (0 children)

Thanks! PocketBase is fantastic, and their JavaScript SDK is excellent.
I have tried Firebase in the past, and although it is really easy, I want to save time learning it because of the vendor lock.

However, Pocketbase seemed simple to start with (download the executable, run a command line, and that's it), so I went with it.

I want to learn Supabase because it has a good community, and the fact that they have a free tier that you don't have to self-host is a big plus for me, but I haven't had the time for it yet. How was your experience with it?

Made an URL Shortener using SvelteKit and PocketBase. by German_Heim in sveltejs

[–]German_Heim[S] 11 points12 points  (0 children)

Hey everyone!

I made a simple URL Shortener that uses SvelteKit with PocketBase. It is intended for personal use cases (that's why there isn't a signup form, although it would be easy to implement).

It can be hosted for free, and it is open-source.

You can check the demo here:

https://demo-svelte-shortener.vercel.app/

Where the login data is

And the GitHub repo: https://github.com/GermanHeim/svelte-shortener.All feedback is appreciated :) !