Tutorials Index Page 15
How to Convert Int to String in Python [5 Methods with Examples]
Learn 5 ways to convert int to string in Python: str(), f-strings, format(), % operator, and repr(). Includes examples and performance comparison.
How to Change a DOM element's class with JavaScript
If you want to change element class using javascript you can try: document.getElementById("ElementId").classList.add('NewClass') to add a new class. Alternative methods are remove and contains. Check here for more examples and alternatives using jQuery or coe for older browsers.
What is the correct way to return JSON content type?
Here we explain the proper MIME types to return for Json. You must know that returning the wrong MIME type could compromise the security of your application. We also cover which is the proper way to return a JSONP.
SQL: INNER JOIN vs OUTER JOIN Explained
For beginners when learning JOIN it's a common error to ignore different types of JOIN. Some junior developers could use a wrong JOIN that looks like correct when it's not the case. Make sure you learn differences between LEFT JOIN and RIGHT JOIN
How to check if an element is hidden in jQuery?
To check if an element is hidden use: $(element).is(":visible");
How can I concatenate strings in Bash?
Check here some string concatenation examples using bash. Lean how to program bash and manipulate strings, in this case using concatenation. We propose different approaches to solve the problem with bash.
How to Call an external command with Python?
We show how to use python to call an external program or command. We show examples with python 2 and 3
Windows Batch: Shutdown, Restart & Logoff Commands
Complete guide to Windows shutdown commands in batch files. Learn shutdown /s, /r, /h, /l, remote shutdown, scheduled tasks, and PowerShell alternatives.
How to include a JavaScript file in another JavaScript file?
In most programming lenguages is very common to include functions or classes from another file. In javascript seems to be different while handling includes, here we review how to do require or import files with javascript.
Javascript: How to set/get current URL?
Learn how to change the current url using javascript. Also learn how to get the current URL. We will explain the location object with more details, this object allows to change the query, hostname, port and more without parsing the url.