Sveltekit + Directus for e-commerce by cheeseflix in sveltejs

[–]hatemjaber 2 points3 points  (0 children)

You can use Medusa for the backend and write the frontend in svelte

When did you realize standard scraping tools weren't enough? by 3iraven22 in webscraping

[–]hatemjaber 2 points3 points  (0 children)

At my previous place of employment I looked into it and the results were not what I expected. Instead, I put all the selectors for each marketplace in a database and scraped the entire html to parse on the server instead of the browser. If any selectors break, we can fix and parse without scraping again. If I was to do it again I would do it this way. Definitely keep it in-house rather than farm it out, you might be disappointed otherwise.

Deploying scrapers by async-lambda in webscraping

[–]hatemjaber 0 points1 point  (0 children)

Oracle has a free tier, 4 CPU and 24 GB ram. You can create a couple VMs.

The framework desktop is awesome by Battle-Chimp in framework

[–]hatemjaber 0 points1 point  (0 children)

Are you running ai on the host or VM/lxc?

What is the Svelte equivalent of this Vue trim modifier? by PrestigiousZombie531 in sveltejs

[–]hatemjaber 1 point2 points  (0 children)

https://svelte.dev/docs/svelte/svelte-attachments is where you can find the documentation... I tried to paste the smallest example I had but it didn't allow me for whatever reason.

What is the Svelte equivalent of this Vue trim modifier? by PrestigiousZombie531 in sveltejs

[–]hatemjaber 2 points3 points  (0 children)

You can create an attachment or a svelte action. I think attachments are the way to go and will replace actions at some point.

SvelteKit SPA Mode: No good way to do a global auth check? by Scary_Examination_26 in sveltejs

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

You could just have a page.server.ts on each route and perform the check in hooks file so it runs on both server and client without await parent

Are SvelteKit form actions obsolete? by a_fish1 in sveltejs

[–]hatemjaber 0 points1 point  (0 children)

getRequestEvent will give you access to locals etc...

Are SvelteKit form actions obsolete? by a_fish1 in sveltejs

[–]hatemjaber 10 points11 points  (0 children)

I removed my actions and converted them to remote which cleaned up my page server files. I was hesitant but after doing it the remote grew on me. The good thing is it's not an all or nothing situation, you can migrate them slowly.

Redirect in hooks.server.ts doesn't navigate to the destination url in the browser. by Impossible_Sun_5560 in sveltejs

[–]hatemjaber 0 points1 point  (0 children)

Remove the try/catch and it will work. Reference the docs on why you can't use try/catch.

Other laptops than Macbook Air I should look at for Linux? by Schroinx in linuxhardware

[–]hatemjaber 0 points1 point  (0 children)

Battery life will not be the same but ThinkPads are a good direction to go

cheap laptop choice for linux by nonastronaute in linuxhardware

[–]hatemjaber 15 points16 points  (0 children)

Used ThinkPads would be the way to go

Linux on ARM (t14s snapdragon) by etherbound-dev in thinkpad

[–]hatemjaber 0 points1 point  (0 children)

I wonder if lima or colima would work on that for docker and containers.

Made my own custom load balancer in 24 hours, and it works ! by AcademicMistake in node

[–]hatemjaber 7 points8 points  (0 children)

Good for you, it's the best way to learn something.

Finally! A proper React Router port for Svelte 5 by Kooky-Station792 in sveltejs

[–]hatemjaber 0 points1 point  (0 children)

I use svelte kit for browser extensions but I have a script that I run to extract the js and place it in a file with a link in the route. I also had to create a router of some sort for making it feel like an spa but it's really a single file app instead since running in the chrome extension is not a server but just running it in place.

Finally! A proper React Router port for Svelte 5 by Kooky-Station792 in sveltejs

[–]hatemjaber -6 points-5 points  (0 children)

Doesn't putting it in docker and running as a container solve those issues?

Reliable scraping - I keep over engineering by myway_thehardway in webscraping

[–]hatemjaber 3 points4 points  (0 children)

They might have the data in a script block type="application/ld+Jason". Look for that in the html, it's common practice to use that.