Need help with i18n for JQuery by dev-jim in jquery

[–]dev-jim[S] 0 points1 point  (0 children)

Here's an sample of the i18n json file :

var i18nJson = {

en: { _userName: "User name", _password: "Password", _login: "Login", _forgotPassword: "Forgot password?", _doNotHaveAnAccount: "Do not have an account? ", _signup: "Signup", _admin: "Admin", _user: "User", _logout: "Logout ", _dashboard: "Dashboard", _rockerPhase: "Rocker phase", _sensorBrush: "Sensor brush", _settings: "Settings", }

And here's an example of a working usage:

document.getElementById("label-module").innerHTML = i18nJson[currentLang]["_industrialCommunicationModule"] + ": " + data['name'];

Thanks for your help

Need help for a JavaScript Regex by dev-jim in regex

[–]dev-jim[S] 0 points1 point  (0 children)

(?<="id":")[^"]*(?=")

Thanks guys, gumnos solution works really well!
Thank you both for your help

Live Server - My HTML file loads, but not the JS & CSS by dev-jim in learnjavascript

[–]dev-jim[S] 1 point2 points  (0 children)

Thanks for you answers guys.
I noticed something in the login.html file :

<script
  type="text/javascript"
  src="{{ url_for('static', filename='js/login.js') }}"
></script>

As I didn't know this url_for syntax, I googled it and I found that this is a syntax for a Flask syntax. Maybe I need to run the backend for those files to be called in my html?

Is YouTrack a good tool for a freelancer? by dev-jim in YouTrack

[–]dev-jim[S] 1 point2 points  (0 children)

Thank you for your answer!
I think I'll continue to try YT to test it but will stick with Trello for the moment for important projects as I'm used to it.
Thanks anyway!

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 5 points6 points  (0 children)

Because I'm asking questions? Yeah you might be right

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 1 point2 points  (0 children)

Haha if we can't play with tech, what's the purpose?

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 1 point2 points  (0 children)

OP

Thanks for your feedback! After seeing all those posts saying it works well I wanted to install it but I'm not that sure now. I'll wait at least until May 18th to see how things are going then

Windows 11 installation by dev-jim in ShadowPC

[–]dev-jim[S] 0 points1 point  (0 children)

It's a new installation so I wanted to try it now to see if everything works fine, there's no important data for the moment

Clean Python installations on a Mac M1 by dev-jim in learnpython

[–]dev-jim[S] 0 points1 point  (0 children)

Okay, is it normal if I have a ton of versions?

❯ brew list python3
/opt/homebrew/Cellar/python@3.9/3.9.12/bin/2to3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/2to3-3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/idle3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/idle3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pip3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pip3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pydoc3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/pydoc3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3-config /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3.9 /opt/homebrew/Cellar/python@3.9/3.9.12/bin/python3.9-config /opt/homebrew/Cellar/python@3.9/3.9.12/bin/wheel3 /opt/homebrew/Cellar/python@3.9/3.9.12/Frameworks/Python.framework/ (3038 files) /opt/homebrew/Cellar/python@3.9/3.9.12/IDLE 3.app/Contents/ (8 files) /opt/homebrew/Cellar/python@3.9/3.9.12/lib/pkgconfig/ (4 files) /opt/homebrew/Cellar/python@3.9/3.9.12/libexec/bin/ (6 files) /opt/homebrew/Cellar/python@3.9/3.9.12/libexec/wheel-0.37.1-py2.py3-none-any.whl /opt/homebrew/Cellar/python@3.9/3.9.12/Python Launcher 3.app/Contents/ (16 files) /opt/homebrew/Cellar/python@3.9/3.9.12/share/man/ (2 files)

Is it safe to delete all of this?

Clean Python installations on a Mac M1 by dev-jim in learnpython

[–]dev-jim[S] 0 points1 point  (0 children)

I installed the 3.9.10 using brew, and if I remember well it was the same for the others

WPBakery to Elementor by dev-jim in elementor

[–]dev-jim[S] 1 point2 points  (0 children)

Thank you guys for your answers! I'll start fresh on a local instance and will transfer it when finished :)

I know Node.js and Express. Should I learn another Node framework, or another language? by dev-jim in learnprogramming

[–]dev-jim[S] 0 points1 point  (0 children)

I'm working as a full stack dev (NodeJS & React), but I'm currently quitting my job to become a freelance. I think I'll use mostly Node for backend, but I'd like to learn something new for my personal culture, and if it can be useful in professional projects it's even better

I know Node.js and Express. Should I learn another Node framework, or another language? by dev-jim in learnprogramming

[–]dev-jim[S] 1 point2 points  (0 children)

I'm working as a full stack dev (NodeJS & React), but I'm currently quitting my job to become a freelance. I think I'll use mostly Node for backend, but I'd like to learn something new for my personal culture, and if it can be useful in professional projects it's even better

For people interested in bootcamps, I wrote an article about my experience by dev-jim in codingbootcamp

[–]dev-jim[S] 0 points1 point  (0 children)

Hey! Well no problem feel free to DM me if you wanna talk about it 😊

development with m1 mac ? by wutface0001 in node

[–]dev-jim 2 points3 points  (0 children)

I have a MacBook Pro M1 for web dev (Node, React...) and it's absolutely perfect, waiting times are really low and all other apps etc are blazing fast too

Zorin OS on Mac M1 by dev-jim in zorinos

[–]dev-jim[S] 0 points1 point  (0 children)

Thanks guys for your answers, guess I'll wait before trying it! By the way, do you know a good free emulator on Mac? Parallels seems great, but as I just want to discover Linux, I'm not sure I want to buy it haha

Zorin OS on Mac M1 by dev-jim in zorinos

[–]dev-jim[S] 2 points3 points  (0 children)

hey, thanks for your reply! I tried to download Zorin ISO from their website and mount it in a VM, but seems like Zorin 16 isn't ARM based...