Entries by

Alfred Noyes, The Torchbearers

We glorified wars. Blind and bloodthirsty kings marched to their thrones with epic music. Why have you not glorified this noblest of wars? The war of those who fought to find the light, yet could not even dream of the victory they helped win, the silent explorers, the lonely pioneers, the prisoners and exiles, the martyrs of truth who passed the torch [of science] from generation to generation… Alfred Noyes, Torchbearers, The Observatory

Making the Site Suitable for Arabic

In this article, I'll explain how to translate a website from right to left for Arabic or similar languages. First, we'll add the JavaScript functions and then use a single line of code to translate it from right to left. This JavaScript code translates Bootstrap's CSS rules from right to left. It's necessary to write separate CSS rules for our own custom CSS rules. For example, we can create a file like styleAr.css and specify the website language […]

Freehand Map Polygon

This project is a map polygon project with freehand drawing functionality. I used mapbox.js for the map and leaflet.freedraw.js for the freehand drawing. You can also use leaflet.js if you prefer. Live Preview Page GitHub Page Freehand Drawing Feature When you freehand draw, a Javascript function retrieves and encodes the array containing the polygon's coordinates. This encoded array is sent via a GET request. GET […]

Eta Carinae

When discussing Eta Carinae, the word "monster" inevitably comes to mind. It's such a monster that some media articles have stated that its demise would also bring about the demise of life on Earth. Some newspapers have reported that gamma rays from Eta Carinae would burn our atmosphere and end life on Earth. In the worst-case scenario, the gamma rays released during a potential eruption […]

Responsive Table Creation

Everyone uses tables on their websites, but they look terrible on mobile devices. Even if you set the table width to 100%, it will shrink to a certain extent, and the text will be very small. It&#039;s completely useless. In this article, I&#039;ll show you how to create a responsive table. HTML Codes: A simple example of table code. <table>    <thead>      <tr>        <th>First Name</th>        <th>Last Name</th> […]

Finding the Days of the Week with PHP

Hello friends. Today, I needed to find the days of each of the five weeks, including the current week. You can use the code I wrote to get the days you want. The logic is simple. You only need to know the DateTime class. I simply collect the weekdays in an array. I set the $lastDay variable to Friday and update it three days in the future at the beginning of the loop. This way, I find Monday, and every […]