Discover our articles by categories
CSS
HTML
Javascript
JQuery
Linux
MySql
Node.JS
PHP
Raspberry Pi
React.JS
Swift
Symfony2
And more...
Popular article this week
Unlocking a Tesla with a Completely Drained Battery
If you own a Tesla and push the limits a bit too far by driving with a 0% battery, you may find yourself in a situation where the car's battery is so drained that it remains locked, depleted, and inaccessible. This occurs when the high-voltage battery of the vehicle is so empty that the low-voltage...
Latest articles
How to Reactivate the Mini Video Player in the Arc Browser ?
If you've been using the new Arc browser, recently made available for Mac, you've probably noticed the very interesting Mini Player feature. This feature allows you to continue watching a video while browsing other pages, appearing as a small floating video player. In the latest version, you can minimize the Mini Player to listen to audio only, which can be handy in certain situations, such as when listening to music on YouTube. However, it can sometimes be challenging to figure out how to...
How to Execute a Function in the Main View from a View Presented Modally with Swift
In some cases, it can be useful to execute a function that resides in the code of the main view of an application from a view presented modally. For example, this might be necessary in a search system where you have a simple search field in the main view and several advanced search fields in the second view. In such a scenario, since the results are displayed in the main view, you need a way to send the search between the two views. Here's how to achieve this using a protocol and a...
Unlocking a Tesla with a Completely Drained Battery
If you own a Tesla and push the limits a bit too far by driving with a 0% battery, you may find yourself in a situation where the car's battery is so drained that it remains locked, depleted, and inaccessible. This occurs when the high-voltage battery of the vehicle is so empty that the low-voltage battery also becomes discharged. The Low-Voltage Battery: The low-voltage battery, located just below the windshield under the front hood, powers auxiliary components of the vehicle, such as the...
How to easily reset all structured values with Struct in Swift ?
If you're programming in Swift, it's likely that you're using structured variables with the Struct tool. You may have already wondered how to easily reset all the values of these structured variables without having to manually change each value in your code. Using a Mutation Function in Struct One of the most convenient methods is creating a function directly within the structure itself, like this: struct Recherche { var titre: String? var age: Int? mutating func reset() { ...
How to use Internet Explorer mode in Edge to open incompatible pages ?
Since Microsoft abandoned Internet Explorer, many users have encountered compatibility issues with certain web pages using their current browser. This can be particularly inconvenient when you need to access a web interface of an older device that is only compatible with Internet Explorer. Fortunately, Edge, Microsoft's web browser that replaced Internet Explorer, offers a feature to load web pages in Internet Explorer mode. In this article, we'll explain how to use it. Opening a Page in...
Easily add a dual-slider to your HTML forms
When designing HTML forms, you may quickly find yourself limited by the basic form elements provided. For example, if you use sliders with the <input type="range"> element, they only allow the use of a single slider per element. However, there may be times when you need a field with two sliders to select a minimum and maximum value, such as for choosing a price range in a search form. Double Slider Field This is a problem I faced and for which I developed a solution to easily create a...
Postfix : Fixing email sending issues to Gmail due to IPv6
If you are unable to send emails to Gmail addresses from your server and you encounter the following error, it is likely a configuration issue if you have both IPv4 and IPv6: Our system has detected that this message does 550-5.7.1 not meet IPv6 sending guidelines regarding PTR records and 550-5.7.1 authentication. To resolve this issue, it's quite simple. 1 - Connect to your server via SSH and use the following command to check the connection protocol used by Postfix: postconf inet_protocols If...
How to install Magic Lantern on a Canon camera
If you have a Canon DSLR camera, you may be tempted to install Magic Lantern, a small software that adds many interesting options to your camera in addition to the built-in features. Magic Lantern allows you to do things like simulate an intervalometer for automatic time-lapse photography, record videos in RAW format instead of the default H.264 compression, and more. It's important to note that installing Magic Lantern is not an official process, and there's no guarantee that it won't cause...
Avoiding slowdowns of a JavaScript counter on an inactive tab
If you're trying to create a Javascript counter that increments every second, you may notice that it works correctly when you're on the active tab but experiences slowness when the tab is not active. This can lead to a desynchronization between the counted seconds and real-time. Here's a simple method to address this issue You can use Date.now() to get the number of milliseconds elapsed since January 1, 1970. Here's an example code snippet: var tsDepart = Date.now(); var secondes = 0; var timer...
Finding and Stopping a Lingering Node.js Instance
If you've been playing around with Node.js, you've probably run a Node.js file and left it running in the background. You may be accustomed to using the shortcut ctrl + c (cmd + c) or ctrl + z (cmd + z) to suspend or stop its process. However, if you've closed the terminal with your SSH connection in the meantime, you won't find your session where you had launched your Node.js file. Nevertheless, it remains active. To find and stop the corresponding process, here are the commands to use: ps aux...
Show the rest of articles