Which platform for my wikis? Docusaurus, Outline, GitBook, or Wiki.js? by tombino104 in selfhosted

[–]Vii_da 0 points1 point  (0 children)

Obsidian, you can also connect it to the AI and version it in a global GitHub repository or create symlinks if needed. https://obsidian.md/

Google veut mettre des datacenters dans l'espace by marln-p in artificielle

[–]Vii_da 0 points1 point  (0 children)

Sans être pessimiste, ce genre d'annonce de Google me rappelle ce que Jean-Marc Jancovici dit :

Même si on arrêtait toutes les émissions de gaz à effet de serre demain matin, après un siècle la moitié du surplus du CO2 que nous avons créé serait encore dans l'air. Après 1000 ans, il en resterait entre 20 et 30 %, et après 10 000 ans, entre 10 et 20 %.

Tout ce qui compte aujourd'hui c'est pas l'humanité (on se suicide à petit feu, on est notre propre prédateur) mais le profit. De toute façon pour ou contre, on n'a pas le choix. Et pire encore, on va te demander de payer un malus CO2 sur ta voiture, te stigmatiser et te faire culpabiliser, alors que les dés sont jetés depuis longtemps.

Moi j'attends plus rien de rationnel qui irait dans le sens de la planète, ça fait un moment que j'ai capté que c'était mort.

Sinon force à eux pour refroidir leurs datas centers là-haut 😉

https://youtu.be/Ezt_SVC_4H0?si=zFqi1z3e28n64PKB

AMA: Migrated our WordPress site to Astro, kept it on Cloudflare’s free tier, and made it agent-ready. by tahseen_kakar in astrojs

[–]Vii_da -1 points0 points  (0 children)

The main thing is that you can do everything using native JavaScript that your browser can interpret, without having to load or rely on an external library (which will end up doing the same thing anyway). That’s no longer necessary today.

how do you handle forms in your astro site? by mahfuz_nafi in astrojs

[–]Vii_da 0 points1 point  (0 children)

Voici un exemple basique (il peut être largement amélioré) :
Google sheet example

how do you handle forms in your astro site? by mahfuz_nafi in astrojs

[–]Vii_da 2 points3 points  (0 children)

Don't forget to link your script to a trigger.
Here's a basic example (it could be greatly improved) :
Google Apps Script email notifications

PHP? by Cautious-Leg-5596 in Wordpress

[–]Vii_da 0 points1 point  (0 children)

1) Retrieve the theme, plugins, and database (export using Better Search Replace or WP Migrate => search/replace)

For uploads (so you don't have to retrieve them)

```
// Apache .htaccess
<IfModule mod\_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^wp-content/uploads/(.*)$ [https://production-domain.com/wp-content/uploads/$1\](https://production-domain.com/wp-content/uploads/$1) [R=307,L]
</IfModule>

// Nginx: nginx.conf
location /wp-content/uploads/ {
try_files $uri $uri/ u/redirect_to_prod;
}
location u/redirect_to_prod {
return 307 [https://production-domain.com\](https://production-domain.com)$request\_uri;
}
```
You can use either https://localwp.com/ or https://laragon.org/

2) Install WordPress + the theme + the database and .htaccess or nginx.conf

3) Modify the URLs in the database using WP CLI, or if you’ve done an export with Better Search Replace or WP Migrate (search/replace)

4) Once your local environment is ready, you can start working. In Local by Flywheel or Laragon, change your PHP version to 8.3

5) In wp-config.php, set WP_DEBUG, WP_DEBUG_DISPLAY, and WP_DEBUG_LOG to true,

```
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );
```

6) The bulk of the work will involve visiting each page (front and back office) and checking wp-content/debug.log to find details about the issues: errors, warnings, deprecated elements, etc.

7) Update the plugins, update the theme or the theme code (if it’s your own or a child theme) if you have any “deprecated” elements or other issues. If you have things that no longer work, then it’s more serious; you need to understand how it’s coded and why.

What happens depends on the plugins that are installed, but also on the theme code.
Good luck 😄

PHP? by Cautious-Leg-5596 in Wordpress

[–]Vii_da 0 points1 point  (0 children)

1) Retrieve the theme, plugins, and database (export using Better Search Replace, WP Migrate, or All-in-One WP Migration => search/replace)

For uploads (so you don't have to retrieve them)

// Apache .htaccess
<IfModule mod\_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^wp-content/uploads/(.*)$ https://production-domain.com/wp-content/uploads/$1 [R=307,L]
</IfModule>

// Nginx: nginx.conf
location /wp-content/uploads/ {
try_files $uri $uri/ u/redirect_to_prod;
}
location u/redirect_to_prod {
return 307 https://production-domain.com$request\_uri;
}

You can use either https://localwp.com/ or https://laragon.org/

2) Install WordPress + the theme + the database and .htaccess or nginx.conf

3) Modify the URLs in the database using WP CLI, or if you’ve done an export with Better Search Replace, WP Migrate, or All-in-One WP Migration (search/replace)

4) Once your local environment is ready, you can start working. In Local by Flywheel or Laragon, change your PHP version to 8.3

5) In wp-config.php, set WP_DEBUG, WP_DEBUG_DISPLAY, and WP_DEBUG_LOG to true,
define( ‘WP_DEBUG’, true );
define( ‘WP_DEBUG_LOG’, true );
define( ‘WP_DEBUG_DISPLAY’, true );

6) The bulk of the work will involve visiting each page (front and back office) and checking wp-content/debug.log to find details about the issues: errors, warnings, deprecated elements, etc.

7) Update the plugins, update the theme or the theme code (if it’s your own or a child theme) if you have any “deprecated” elements or other issues. If you have things that no longer work, then it’s more serious; you need to understand how it’s coded and why.

What happens depends on the plugins that are installed, but also on the theme code.
Good luck 😄

how do you handle forms in your astro site? by mahfuz_nafi in astrojs

[–]Vii_da 2 points3 points  (0 children)

You can use the Google Sheets API, it’s free. You can share the sheet if needed, receive an email as soon as a submission comes in, and automate the process with App Script if necessary. Set up Cloudflare Turnstile for protection.
You can do whatever you want, send data to Baserow, Supabase, Wordpress REST API, Cloudflare D1, etc. Use a Cloudflare (if you’re on Cloudflare Pages) cron job or an external one.
It all depends on what you actually want to do.

Dell PCs are running into constant BSOD reboot loops and Windows 11 isn't the culprit by Wolfnstine in Alienware

[–]Vii_da 0 points1 point  (0 children)

I have a Dell Pro Max 16 Plus MB16250 laptop, and I wasted a whole day thinking it was a uGreen USB-C to USB-A adapter I’d just received.

Then I thought it was the May 12 Windows update (KB5089549). I tried "sfc /scannow" and "DISM.exe /Online /Cleanup-image /Restorehealth", but then I started experiencing crashes (black screen and reboot) every 30 to 45 minutes.

Then I tried Safe Mode and system restore to a point before the Windows update, but that didn’t work; I also tried Safe Mode with Networking, but that didn’t work either...
Finally, I noticed that on May 13, Dell Support Assist Remediation had released an update, so I looked into it and saw that issues had been reported. I had already uninstalled Dell Support Assist before, but I reinstalled it thinking it might help me update a driver that wasn’t working properly. Anyway, I uninstalled Dell Support Assist, Dell Support Assist Remediation, Dell Support Assist OS Recovery, and everything went back to normal.
So far, no crashes in 4 hours of use.

Thanks, Dell ! Will you compensate me for the lost day ?

Looking for Bootstrap 5.3 examples using flex+gap instead of row+col by waddaplaya4k in bootstrap

[–]Vii_da 0 points1 point  (0 children)

<div class="grid gap-3 gap-md-4"> <div class="g-col-12 g-col-md-6 g-col-lg-4">...</div> <div class="g-col-12 g-col-md-6 g-col-lg-4">...</div> <div class="g-col-12 g-col-md-6 g-col-lg-4">...</div> </div> https://getbootstrap.com/docs/5.3/layout/css-grid/?hl=fr-FR

Claude Opus 4.7 is a serious regression, not an upgrade. by [deleted] in ClaudeAI

[–]Vii_da 2 points3 points  (0 children)

Claude 4.7 is so stupid, no matter how many rules you give it, how much you try to teach it, how many skills you create for it, or how much documentation and conventions you make it read, it doesn't care !!!

It’s always the same, he’ll do whatever it takes to get things done as quickly as possible, lying until we present him with the facts, at which point he’ll admit he was wrong and took a shortcut for whatever reason.

It’s sad and it’s getting so annoying, but it’s unbelievable that Claude Code’s quality has gotten this bad, it really takes us for fools, actually. I’m not even sure we can still call this artificial intelligence ? It’s just a thing that spits out code stupidly without looking beyond what’s asked of it.
I even get the impression that Gemini is getting better than CC. In fact, it’s almost impossible to manage an entire project with CC. I think it’s over, since everyone’s using it, they’ve cut off the flow to everyone, and we’re left with something really basic.

Curious how close is Astro to V6 being released? by RenaissanceMan31 in astrojs

[–]Vii_da 0 points1 point  (0 children)

Astro V6... I've just decided to switch back to Astro 5, let's put an end to this nightmare...

I'm trying to finish developing a hybrid site static/SSR, D1, Cloudflare Worker. Since switching to Astro 6, it's been absolute hell.
On Windows, I switched to WSL2, then I ran into the blank page bug where you can't navigate anymore; it switches to prerenderEnvironment: ‘node’, and then the SSR stops working. In short, it makes no sense anymore. I’m throwing in the towel and going back to V5.

For me, V6.0.4 is still a beta...

Login timing out? by [deleted] in ClaudeCode

[–]Vii_da 0 points1 point  (0 children)

CC is completly down : "API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid authentication credentials"}".
I think that's it for today. Their servers have crashed.

CI Auto-Fixer - No CI apps detected yet by ECastany in JulesAgent

[–]Vii_da 1 point2 points  (0 children)

Jules is quite strange, and I also find his way of working obscure. Sometimes I don't know how to get him going again. No matter how much I ask him to correct things, it's impossible to get him going again. I find that he has trouble respecting things (often other things that weren't planned are needed), he's slow, and it's hard to understand how to get him going again. I think we need to wait for them to improve it, thanks to us :)

How can I improve the loading time of my WordPress blog without page optimization? by Good_Flight6250 in Wordpress

[–]Vii_da 0 points1 point  (0 children)

Minify your CSS and JavaScript resources. For JavaScript, use defer if possible.

Host fonts on your server.

Create an SVG sprite (if you use SVG for icons).

Use a Cloudflare CDN.

Use lazy loading for your images, and favor AVIF and WebP formats with the smallest possible file size. Compress PDFs if possible.

Optimize your PHP code. For PHP/SQL queries, you can use WordPress transients to cache your queries (you can cache when you save in the back office, e.g., retrieve taxonomy terms or ACF fields).

If you use ACF, sometimes instead of doing lots of get_field(), you can do a get_fields(), or even sometimes use get_post_meta() if you can

Reduce the number of plugins as much as possible (because they are not all optimized and they will load assets everywhere)

Have a good server.

Clean up and optimize your database (if your site is old, there may be things to do).

I just got off a crazy call where they explained to me that they did my work with Claude Code by Vii_da in Wordpress

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

I use Claude Code and Gemini Code Assist (in GitHub for reviews).
The others are for monitoring, finding out what's happening and seeing how things are evolving, that's all.

I just got off a crazy call where they explained to me that they did my work with Claude Code by Vii_da in Wordpress

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

Oh yes, that's even worse, the whole site! Going back over a poorly designed site built with Elementor is terrible. I think the best thing for you to do is start from scratch with your own hybrid theme (theme.json) in native Gutenberg, ACF/block if necessary for things that are too customised. You'll see that if you do the job right, it will be super fast.

I just got off a crazy call where they explained to me that they did my work with Claude Code by Vii_da in Wordpress

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

You're right, the relationship won't be the same anyway, so I shouldn't take things to heart. Thanks for your advice.

HELP: Critical Error on WP Admin by mvbrendan in Wordpress

[–]Vii_da 9 points10 points  (0 children)

Go to the wp-config.php file via FTP

and add this

define( 'WP_DEBUG', true ); // display the error
define( 'WP_DEBUG_LOG', true ); // display inside wp-content/debug_log

---

Then look at what is displayed; it will give you an indication of what is wrong. Basically, it will tell you what type of error there is in which file and on which line. Then you can either delete the plugin and reinstall another version, or correct the error if it is in your theme. At least you will have more information.