#ProgrammingTip

AveshostAveshost
2025-03-27

Are you looking to host your Flask application on cPanel but unsure where to start? We’ve put together a comprehensive step-by-step guide to help you deploy your app smoothly!

With this guide, you’ll have your Flask app up and running in no time! 🚀

🔗 aveshost.com/blog/how-to-deplo


The Ultimate Guide to Deploying a Flask Application on cPanel
Mohammad Rafigh - Techmohammadrafigh@fosstodon.org
2024-10-30

JavaScript (or V8/Chromium?) Magic:

If you want to sort an array like this:

```
[1, 2, 3].sort((e1, e2) => -1);
```

It will result in a reversed ordered array in Chromium (V8) because e1 is actually the second element and e2 is the first element!
The Firefox implementation looks more natural to me, because it orders arguments in the correct order.

#JavaScript #TypeScript #ProgrammingTip #WebDevelopment

Rick //steaq
2023-09-25

🕹️🎮 tip: In GDScript, when you're done with a node, use the 'queue_free()' to destroy a node. It differs from 'free()' in that it is called the next frame and is therefore generally safer. Keep it up devs!

Laurent ThomasLauLauThom@qoto.org
2022-12-06

A small #ProgrammingTip: rather than coding complex string parsing routines when working with filepaths. Use existing built-in methods such as :

  • python : os.path.dirname(myPath) / os.path.basename(myPath)

  • java : Paths.get(myPath).getParent() / getFileName()

  • #imagej macro : ` File.getDirectory(myPath) / File.getName(myPath)`

I have seen it in a number of different users that I think it’s worth mentioning ;)

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst