users with different text colors in browser settings.
*/
-@font-face{
- font-family: "noto-serif";
- src: url('noto-serif.regular.ttf');
-}
-@font-face{
- font-family: "noto-serif";
- src: url('noto-serif.bold.ttf');
- font-weight: bold;
-}
-@font-face{
- font-family: "noto-serif";
- src: url('noto-serif.italic.ttf');
- font-weight: 100;
-}
+/* I love this font. */
+@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@450;700&display=swap');
body {
background-color: #e8cba9;
color: #000000;
- font-family: noto-serif;
+ font-family: 'Noto Serif', serif; /* Set font to Noto Serif */
+ font-size: 18px;
}
table {
width: 100%;
margin: 0 auto;
text-align: justify;
+ line-height: 1.25;
+}
+
+.less {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 100vh;
+ margin: 0;
}
.content img {
}
.content img.bee-gifs {
- max-width: 95px;
+ max-width: 105px;
}
.hide-link {
/* this is class for anybrowser button to appear far right */
.gif-buttons {
float: right;
+ line-height: 1;
}
.dir {
.code-block {
background: #efdac3;
border: 1px solid #ddd;
- /*border-left: 3px solid #f36d33; */
border-left: 3px solid #b38265;
color: #666;
page-break-inside: avoid;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
- overflow: auto;
+ overflow-x: auto; /* Enable horizontal scrolling */
+ white-space: nowrap; /* Prevent text wrapping */
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
}
+
.terminal-block {
background: #000;
border: 1px solid #000;
line-height: 1.6;
margin-bottom: 1.6em;
max-width: 100%;
- overflow: auto;
+ overflow-x: auto; /* Enable horizontal scrolling */
+ white-space: nowrap; /* Prevent text wrapping */
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
+ white-space: pre-wrap;
}
.what-is-this {
<html lang="en">
<head>
<meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="viewport" content="width=600, initial-scale=1.0">
<title>dpolakovic.space</title>
<link rel="icon" href="./Pictures/dot.png">
<link rel="stylesheet" href="./Styles/styles.css">
<li><a href="https://dpolakovic.space">About</a></li>
<li><a href="https://dpolakovic.space/blog.php">Blog</a></li>
<li><a href="https://dpolakovic.space/dir.php">Web directory</a></li>
+ <li><a href="https://dpolakovic.space/mars-clock.php">Mars clock</a></li>
<li><?php serverStatus() ?></li>
</ul>
</nav>
<p>
<h2>Blog</h2>
<i> Some obscure thoughts caught on the Web.</i>
- <a class="banner" href="https://dpolakovic.space/rss.xml">
- <img src="./Pictures/rss2.png" alt="link to rss.xml file">
- </a>
<br>
<br>
+ After eating and breathing, expressing opinions on the internet is the
+ most important human need. Here are some of mine that occupied my mind
+ for more than few seconds. Also, if you want to stay up to date with this
+ blog, you can subscribe to its RSS feed
+ <a class="banner" href="https://dpolakovic.space/rss.xml">
+ <img src="./Pictures/rss2.png" alt="link to rss.xml file">
+ </a><br><br>
+ </p>
+
<?php
printBlog2("./rss.xml");
?>
<!-- footer -->
<footer class="footer">
- Copyright <?php printYear() ?> David Polakovic -
+ Copyright <?php printYear() ?> David Polakovic -
+ Content of this web is licensed under
+ <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <br>
This site is javascript and cookie free. The source code is available
<a href="https://git.dpolakovic.space/?p=my-website;a=tree">here</a>
under
- <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.<br>
- Content of this web as well as photo of me with box on the head is licensed
- under
- <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.
</footer>
<br><br>
</body>
<html lang="en">
<head>
<meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="viewport" content="width=600, initial-scale=1.0">
<title>dpolakovic.space</title>
<link rel="icon" href="./Pictures/dot.png">
<link rel="stylesheet" href="./Styles/styles.css">
<li><a href="https://dpolakovic.space">About</a></li>
<li><a href="https://dpolakovic.space/blog.php">Blog</a></li>
<li><a href="https://dpolakovic.space/dir.php">Web directory</a></li>
+ <li><a href="https://dpolakovic.space/mars-clock.php">Mars clock</a></li>
<li><?php serverStatus() ?></li>
</ul>
</nav>
<i> Let's explore the Web. </i>
<br>
<br>
- Since the online space is vast and still expanding, it is good practice for
- surfers to share links between each other in web directories like this one.
- So here are links I thought you might find useful.
+ The online space is vast and still expanding. Sadly, not thanks to
+ the users but rather spam bots and focus black holes - the social networks.
+ Therefore it's good practice for surfers to share links between each other
+ in "web directories" like this one. So here are links I thought you might
+ find useful.
</p>
- <p>
- <div class="dir">
- <a href="https://directory.fsf.org/wiki/Main_Page">Free software directory</a>
- - a collaborative catalog of free software<br>
- <a href="https://cidr.xyz/">Cidr.xyz</a>
- - when you're setting up network and you don't want to die over subnet
- tables [3]<br>
- <a href="https://wiki.eth0.nl/index.php/LackRack">Lack rack</a>
- - nice hack that I use for my servers<br>
- <a href="https://wine.htmlvalidator.com/">Installing Wine on Linux</a>
- - this is tricky task for many distros, so I use this nice tutorial<br>
- <a href="https://tube.cadence.moe/">CloudTube</a>
- - one of many free (software) instances for youtube.com<br>
- <a href="https://www.floppydisk.com">Floppydisk.com</a>
- - new and refurbished floppies for okay prices [3]<br>
- <a href="https://whichjdk.com/">Which JDK?</a>
- - neat website when you want to install alternative Java Dev Kits<br>
- <a href="https://jar-download.com/">JAR Download</a>
- - Java libraries packed in .jars so you can manage them by hand<br>
- <a href="https://perlmonks.org/">Perl monks</a>
- - best place to seek help and wisdom in Perl<br>
- <a href="https://cyber.dabamos.de/88x31/index.html">Web buttons</a>
- - here is list of 4000+ web buttons from Cyber Vanguards website<br>
- <a href="https://www.deadnet.se/88x31/">More Web buttons</a>
- - another set of 4000 web buttons, this time from Deadnet<br>
- <a href="https://web3isgoinggreat.com/">Web 3 is going great!</a>
- - website that monitors all failures of this stupid bubble [3]<br>
- <a href="https://winworldpc.com/home">WinWorld</a>
- - online museum/library of vintage software<br>
- <a href="https://en.uesp.net/wiki/Main_Page">UESP Wiki</a>
- - everything I ever needed for TES III Morrowind I found here [2]<br>
- </div>
- </p>
- <p>
- And here are some good readings I found on the Web. I am not necessarily
- <i>a fan</i> of authors, but I consider these specefic blog posts to be
- worth your time.
- </p>
- <div class="dir">
- <a href="http://catb.org/~esr/writings/hacker-history/hacker-history.html">A brief history of Hackerdom</a>
- by Eric S. Raymond<br>
- <a href="https://lukesmith.xyz/articles/the-parable-of-alien-chess/">The Parable of Alien Chess</a>
- by Luke Smith<br>
- <a href="https://qntm.org/models">Modelling time travel in fiction</a>
- by qntm<br>
- <a href="https://drewdevault.com/2023/08/29/2023-08-29-AI-crap.html">AI crap</a>
- by Drew DeVault<br>
- <a href="https://blog.danieljanus.pl/2019/10/07/web-of-documents/">Web of Documents</a>
- by Daniel Janus<br>
- </div>
+ <p>
+ <b>software</b><br>
+ <a href="https://directory.fsf.org/wiki/Main_Page">Free software directory</a>
+ - a collaborative catalog of free software<br>
+ <a href="https://winworldpc.com/home">WinWorld</a>
+ - online museum/library of vintage operating systems<br>
+ <a href="https://eblong.com/infocom/">Infocom catalog</a>
+ - every Infocom text adventure ever<br>
+ <a href="https://kolibrios.org/en/">KolibriOS</a>
+ - operating system on 1,44MB floppy<br>
+ <a href="https://atariage.com/index.php">AtariAge</a>
+ - hub for enthusiasts of Atari PCs and consoles<br>
+ </p>
+ <p>
+ <b>programming</b><br>
+ <a href="https://whichjdk.com/">Which JDK?</a>
+ - neat website for navigating alternative Java Dev Kits<br>
+ <a href="https://sdkman.io/">SDKman</a>
+ - must have tool for every JVM based project<br>
+ <a href="https://mvnrepository.com/">MVN repository</a>
+ - Java libraries packed in .jars<br>
+ <a href="https://perlmonks.org/">Perl monks</a>
+ - best place to seek help and wisdom in Perl<br>
+ <a href="https://rosettacode.org/wiki/Category:Programming_Tasks">Rosetta Code</a>
+ - solutions for many tasks in many languages [2]<br>
+ <a href="https://opensource.com/sites/default/files/2022-04/OSDC_cheatsheet-git-2022.4.7.pdf">Git cheat sheet</a>
+ - feel free to laugh, but I use this a lot [PDF]
+ </p>
+ <p>
+ <b>tools & tutorials</b><br>
+ <a href="https://cidr.xyz/">Cidr.xyz</a>
+ - when you don't want to die over subnet tables [3]<br>
+ <a href="https://www.deadlinkchecker.com/">Broken link checker</a>
+ - it does, exactly what it says [3]<br>
+ <a href="https://wine.htmlvalidator.com/">Installing Wine on Linux</a>
+ - this is tricky task for many distros<br>
+ </p>
+ <p>
+ <b>other</b><br>
+ <a href="https://lkml.iu.edu/hypermail/linux/kernel/">Linux Kernel Mailing List</a>
+ - this is my preferred instance<br>
+ <a href="https://wiki.eth0.nl/index.php/LackRack">Lack rack</a>
+ - nice hack that I use for my servers<br>
+ <a href="https://www.floppydisk.com">Floppydisk.com</a>
+ - new and refurbished floppies for okay prices [3]<br>
+ <a href="https://brisray.com/web/webring-list.htm">Webring list</a>
+ - pick a community and meet fellow netizens<br>
+ <a href="https://www.gutenberg.org/">Project Gutenberg</a>
+ - my go to place to get books online<br>
+ <a href="https://www.av8n.com/physics/thermo/">Av8ns thermodynamics</a>
+ - thermodynamics reference page<br>
+ <a href="https://www.swpc.noaa.gov/">Space weather prediction center</a>
+ - check before you plan your trip to Mars<br>
+ <a href="https://en.uesp.net/wiki/Morrowind:Morrowind#Quest_Information">UESP wiki</a>
+ - everything I ever needed for Morrowind [1, 3]
+ </p>
+ <br>
+ <hr>
<p>
Some of these websites contains "allergens"<br>
[1] - advertisements,
<!-- footer -->
<footer class="footer">
- Copyright <?php printYear() ?> David Polakovic -
+ Copyright <?php printYear() ?> David Polakovic -
+ Content of this web is licensed under
+ <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <br>
This site is javascript and cookie free. The source code is available
<a href="https://git.dpolakovic.space/?p=my-website;a=tree">here</a>
under
- <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.<br>
- Content of this web as well as photo of me with box on the head is licensed
- under
- <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.
</footer>
<br><br>
<html lang="en">
<head>
<meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="viewport" content="width=600, initial-scale=1">
<title>dpolakovic.space</title>
<link rel="icon" href="./Pictures/dot.png">
<link rel="stylesheet" href="./Styles/styles.css">
<li><a href="https://dpolakovic.space">About</a></li>
<li><a href="https://dpolakovic.space/blog.php">Blog</a></li>
<li><a href="https://dpolakovic.space/dir.php">Web directory</a></li>
+ <li><a href="https://dpolakovic.space/mars-clock.php">Mars clock</a></li>
<li><?php serverStatus() ?></li>
</ul>
</nav>
My name is
<a href="./Pictures/david.jpg" class="hide-link">David</a>
and <?php randomSentence() ?>
- This is my personal Web <i>space</i> which I don't really need, but it is
- nice to have one.
+ This is my personal web <i>space</i>, which I don't use very often, but
+ when I do, it usually takes up too much of my free time.
You can check out some of my blogs, browse my mostly abandoned git server
- or you can stay here and watch this alien dance.<br>
+ or you can stay here and watch this alien dance.<br><br>
<center>
- <img src="https://community.cloudflare.steamstatic.com/economy/image/i0CoZ81Ui0m-9KwlBY1L_18myuGuq1wfhWSIYhY_9XEDYOMNRBsMoGuuOgceXob50kaxV_PHjMO1MHaEqgckptOivAmoEkqmyZW5qXRauqb6baY4c6XDCDbJmbwiseI9Hn_nwkQl4m7SnNmtcGXXMFGipBGxow/?allow_animated=1" alt="cool dancing alien" class="bee-gifs">
+ <img src="https://community.cloudflare.steamstatic.com/economy/image/i0CoZ81Ui0m-9KwlBY1L_18myuGuq1wfhWSIYhY_9XEDYOMNRBsMoGuuOgceXob50kaxV_PHjMO1MHaEqgckptOivAmoEkqmyZW5qXRauqb6baY4c6XDCDbJmbwiseI9Hn_nwkQl4m7SnNmtcGXXMFGipBGxow/?allow_animated=1" alt="if you don't see any alien here, you might have blocked steam.com domain" class="bee-gifs">
</center>
- </p>
+ </p>
<p>
I no longer use social media, so if you want to contact me,
you are likely to reach me via email. I read my mailbox quite often
</p>
<p>
<center>
- <a href="mailto:email@dpolakovic.space">email at dpolakovic dot space</a>
+ <a href="mailto:email@dpolakovic.space">email@dpolakovic.space</a>
+
+ <a href="./gpg.html">fetch my GPG key</a>
- <a href="./gpg.html">(my public GPG)</a>
+ <a href="https://emailselfdefense.fsf.org/en/">(how to use GPG keys?)</a>
</center>
- </p>
+ </p>
+ <br>
<p>
- <a class="gif-buttons" href="https://fsfe.org/about/about.en.html">
- <img src="./Pictures/fsfe-button.png" alt="GIF button: support for FSFE">
+ <a class="gif-buttons" href="https://en.wikipedia.org/wiki/Glider_(Conway%27s_Game_of_Life)">
+ <img src="./Pictures/glider2.png" alt="the glider">
</a>
- <a class="gif-buttons" href="https://emailselfdefense.fsf.org/en/">
- <img src="./Pictures/pgp-now.png" alt="GIF button: PGP set up guide">
+ <form action="https://www.paypal.com/donate" method="post" target="_top" class="gif-buttons">
+ <input type="hidden" name="hosted_button_id" value="FZ7CVXEDL3TY6" />
+ <input type="image" src="./Pictures/donate2.png" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
+ </form>
+ <a class="gif-buttons" href="https://git.dpolakovic.space/?p=my-website;a=tree">
+ <img src="./Pictures/sanehtml.png" alt="GIF button: html and php only">
</a>
- <a class="gif-buttons" href="https://anybrowser.org/campaign/index.html">
- <img src="./Pictures/any.png" alt="GIF button: any browser campign">
- </a>
- <br>
<br>
</p>
</main>
<!-- footer -->
<footer class="footer">
Copyright <?php printYear() ?> David Polakovic -
+ Content of this web is licensed under
+ <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <br>
This site is javascript and cookie free. The source code is available
<a href="https://git.dpolakovic.space/?p=my-website;a=tree">here</a>
under
- <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.<br>
- Content of this web as well as photo of me with box on the head is licensed
- under
- <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.
</footer>
<div class="what-is-this">
<center>
--- /dev/null
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=600, initial-scale=1.0">
+ <title>dpolakovic.space</title>
+ <link rel="icon" href="./Pictures/dot.png">
+ <link rel="stylesheet" href="./Styles/styles.css">
+ <?php require_once('./php/config.php'); ?>
+ <?php require_once('./php/time.php'); ?>
+ <link rel="author" href="mailto:email@dpolakovic.space">
+ <meta name="description" content="personal website and git server">
+ <meta name="author" content="David Polakovic, 2023">
+
+ </head>
+ <body>
+
+ <!-- show pictures (banner) on top of the page -->
+ <div class="banner">
+ <p>
+ <img src="./Pictures/dpolakovic.png" alt="simple">
+ <img src="./Pictures/dot.png" alt="website">
+ <img src="./Pictures/space.png" alt="banner">
+ </p>
+ </div>
+
+ <!-- navigation bar -->
+ <nav class="nav-bar">
+ <ul>
+ <li><a href="https://dpolakovic.space">About</a></li>
+ <li><a href="https://dpolakovic.space/blog.php">Blog</a></li>
+ <li><a href="https://dpolakovic.space/dir.php">Web directory</a></li>
+ <li><a href="https://dpolakovic.space/mars-clock.php">Mars clock</a></li>
+ <li><?php serverStatus() ?></li>
+ </ul>
+ </nav>
+
+ <!-- page content -->
+ <main class="content">
+ <p>
+ <h2> Mars clock </h2>
+ <i> Ack Ack Ack Ack Ack!</i>
+ <br>
+ <br>
+ It was my friend Peter who got me into timekeeping "nerding". He is a devoted fan
+ of Mars colonization and author of few articles about timekeeping on other
+ celestial bodies. He inspired me to make a simple app to help me (and you!)
+ to see what time it is on other places in our Solar system.
+ </p>
+ <p>
+ <div class="terminal-block" style="white-space: pre;">
+<?php title() ?>
+------------------------------------------------------
+Earth | Time | Date |
+------------------------------------------------------
+Silicon Valley | <?php timeEarth(-8) ?> | <?php dateEarth(-8) ?> |
+Boston | <?php timeEarth(-5) ?> | <?php dateEarth(-5) ?> |
+London* | <?php timeEarth(0) ?> | <?php dateEarth(0) ?> |
+Tokyo | <?php timeEarth(9) ?> | <?php dateEarth(9) ?> |
+
+------------------------------------------------------
+Mars | Time | Date |
+------------------------------------------------------
+Jezero Crater | <?php timeMars(10) ?> | <?php dateMars(10) ?> |
+Gale Crater | <?php timeMars(6) ?> | <?php dateMars(6) ?> |
+Olympus Mons* | <?php timeMars(0) ?> | <?php dateMars(0) ?> |
+Tharsis Tholus | <?php timeMars(-3) ?> | <?php dateMars(-3) ?> |
+Conv. Prime Meridian | <?php timeMars(-9) ?> | <?php dateMars(-9) ?> |
+
+
+
+------------------------------------------------------
+* 0 offset time zone
+ </div>
+
+ </p>
+ <p>
+ The idea was to create the most humanly readable modification of the
+ <a href="https://en.wikipedia.org/wiki/Darian_calendar#Calendar_layout">Darian calendar</a>
+ On contrary to the original, the epoch starts on UTC 00:00 11th April,
+ 1609 (invention / first use of telescope) with year 1, not year 0. Aditionaly, the time zone with zero offset was chosen not
+ conventionally (the first landing spot / prime meridian) but rather by matching the
+ converted time with actual daylight on the Red Planet.
+ </p>
+ <p>
+ As you can see, the Mars clock is not autoupdating itself like traditional clock,
+ because I didn't want to DDOS myself nor invade your client with
+ <i>any</i> scripting. It is also not very usefull extraterrestrially,
+ so I made a portable version which you can fit on your Raspberry
+ Pi or any device running Java. It runs in GUI mode and terminal as well.
+ </p>
+ <p>
+ <center>
+ <a href="https://git.dpolakovic.space/?p=mars-clock;a=blob;f=mars-clock.jar;h=2460a6a73d6994cad06b76d4e9dd862eb4bc75c6;hb=refs/heads/master">Download</a>
+ (12.7kb) /
+ <a href="https://git.dpolakovic.space/?p=mars-clock;a=tree;h=refs/heads/master;hb=refs/heads/master">Source code</a>
+ </center>
+ </p>
+ <br>
+ <br>
+ <hr>
+ <p>
+ <i>
+ Mars clock is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE like aerospace engineering, tax payments and/or time travel.
+ </i>
+ </p>
+ <br>
+ </main>
+
+ <!-- footer -->
+ <footer class="footer">
+ Copyright <?php printYear() ?> David Polakovic -
+ Content of this web is licensed under
+ <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <br>
+ This site is javascript and cookie free. The source code is available
+ <a href="https://git.dpolakovic.space/?p=my-website;a=tree">here</a>
+ under
+ <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.
+ </footer>
+ <br><br>
+
+ </body>
+ </html>
--- /dev/null
+<?php
+
+function title() {
+ global $time_t;
+ $current_time = date('H:i:s', $time_t);
+
+ echo "Mars clock 1.0 (PHP version)<br>";
+ //echo "Data valid to time: ". $current_time . "<br>";
+}
+
+ function timeEarth($offset) {
+
+ $dateTime = new DateTime("now", new DateTimeZone("UTC"));
+
+ // Modify the timezone using the provided offset
+ $timezoneName = sprintf("Etc/GMT%+d", -$offset);
+ $dateTime->setTimezone(new DateTimeZone($timezoneName));
+
+ // Print the formatted time
+ echo $dateTime->format("H:i");
+
+}
+
+ function dateEarth(int $offset) {
+ // Create a DateTime object for the current date
+ $dateTime = new DateTime("now", new DateTimeZone("UTC"));
+
+ // Modify the timezone using the provided offset
+ $timezoneName = sprintf("Etc/GMT%+d", -$offset);
+ $dateTime->setTimezone(new DateTimeZone($timezoneName));
+
+ // Print the formatted date
+ echo $dateTime->format("d-m(M)-Y");
+}
+
+function get_time_m(){
+ $time_t = time(); // Get the current Unix timestamp
+ $darian_zero = strtotime("1609-04-11 00:00:00");
+ $time_m = ($time_t - $darian_zero) / 1.02749125;
+
+ return $time_m;
+}
+
+function timeMars($offset) {
+
+ $time_m = get_time_m();
+ $time_m = $time_m - ($offset * 3600);
+
+ $hrs = floor(($time_m % 86400) / 3600);
+ $min = floor(($time_m % 3600) / 60);
+
+ echo sprintf("%02d:%02d", $hrs, $min);
+}
+
+function dateMars($offset) {
+
+ $time_m = get_time_m();
+ $time_m = $time_m - ($offset * 3600);
+
+ $time_m_days = $time_m / 86400;
+ $year = 1;
+
+ while ($time_m_days >= 668) {
+ if (($year % 2 == 1) || ($year % 10 == 0)){
+ $time_m_days = $time_m_days - 669;
+ } else {
+ $time_m_days = $time_m_days - 668;
+ }
+ $year++;
+ }
+
+ $month_name = ["Sag", "Dha", "Cap",
+ "Mak", "Aqu", "Kum",
+ "Pis", "Min", "Ari",
+ "Mes", "Tau", "Ris",
+ "Gem", "Mit", "Can",
+ "Kar", "Leo", "Sim",
+ "Vir", "Kan", "Lib",
+ "Tul", "Sco", "Vri"];
+
+ $month_lengths = array_fill(0, 24, 28); // Default: 28 days per month
+ $month_lengths[5] = $month_lengths[11] = $month_lengths[17] = $month_lengths[23] = 27; // Adjust for special months
+
+ // Check for leap year condition (every odd year and every 10th year)
+ $is_leap_year = ($year % 2 != 0 || $year % 10 == 0);
+ if ($is_leap_year) {
+ $month_lengths[23] = 28; // 24th month has 28 days in leap years
+ }
+
+ // Find the month and day
+ $mth = 1;
+ $remaining_days = $time_m_days; // Work with a copy of $time_m_days
+ while ($remaining_days >= $month_lengths[$mth - 1]) {
+ $remaining_days -= $month_lengths[$mth - 1];
+ $mth++;
+ }
+
+ $mth_abv = $month_name[$mth - 1];
+
+ // The remaining days are the day of the month
+ $sol = $remaining_days + 1;
+
+
+ echo sprintf("%02d-%02d(%s)-%s", $sol, $mth, $mth_abv, $year);
+
+}
+
+
+
+
+
+
+
+
+function test() { $test = strtotime("1609-04-11 00:00:00"); echo $test; }
+?>
<link>https://www.dpolakovic.space</link>
<description>Some obscure thoughts caught on the Web.</description>
<language>en-us</language>
- <lastBuildDate>Mon, 8 Jan 2024 16:00:00 GMT</lastBuildDate>
- <pubDate>Mon, 8 Jan 2024 16:00:00 GMT</pubDate>
+ <lastBuildDate>Sun, 18 Aug 2024 17:00:00 GMT</lastBuildDate>
+ <pubDate>Sun, 18 Aug 2024 17:00:00 GMT</pubDate>
<ttl>60</ttl>
+ <item>
+ <title>Daily life of Stormtrooper</title>
+ <link>https://dpolakovic.space/blogs/star-wars-galaxies</link>
+ <description>"You seen that new BT-16?"</description>
+ <pubDate>Mon, 10 Feb 2025 17:00:00 GMT</pubDate>
+ <image>https://dpolakovic.space/blogs/pics/sw5.jpg</image>
+ <pos>100% 0</pos>
+ </item>
+
+ <item>
+ <title>The Phantom Menace is good</title>
+ <link>https://dpolakovic.space/blogs/phantom-menace</link>
+ <description>An inevitable STAR WARS rant.</description>
+ <pubDate>Sun, 18 Aug 2024 17:00:00 GMT</pubDate>
+ <image>https://dpolakovic.space/blogs/pics/starwars26.jpg</image>
+ <pos>100% 1</pos>
+ </item>
+
+ <item>
+ <title>Y292B bug</title>
+ <link>https://dpolakovic.space/blogs/y292b</link>
+ <description>We're doomed! Again...</description>
+ <pubDate>Wed, 26 Jun 2024 17:00:00 GMT</pubDate>
+ <image>https://dpolakovic.space/blogs/pics/bug.jpg</image>
+ <pos>100% 0</pos>
+ </item>
+
+ <item>
+ <title>Reproducing the printer hack of Windows 95</title>
+ <link>https://dpolakovic.space/blogs/windows-95-printer-hack</link>
+ <description>Start me up!</description>
+ <pubDate>Fri, 12 Apr 2024 16:00:00 GMT</pubDate>
+ <image>https://dpolakovic.space/blogs/pics/deskjet710c.jpg</image>
+ <pos>100% 5</pos>
+ </item>
+
<item>
<title>Let's play Zork</title>
<link>https://dpolakovic.space/blogs/zork</link>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>???</title>
<link rel="icon" href="./Pictures/dot.png">
- <link rel="stylesheet" href="./Styles/styles.css?v=1.1">
+ <link rel="stylesheet" href="./Styles/styles.css">
+ <?php require_once('./php/config.php');?>
<link rel="author" href="mailto:email@dpolakovic.space">
<meta name="description" content="personal website and git server">
<meta name="author" content="David Polakovic, 2023">
-
+
</head>
<body>
<p>
<img src="./Pictures/dpolakovic.png" alt="simple">
<img src="./Pictures/dot.png" alt="website">
- <img src="./Pictures/space.png" alt="banner">
</p>
</div>
</p>
<p>
<?php
-function isWebsiteOnline($url) {
+function isWebsiteOnline2($url) {
$timeout = 2; // Set a timeout value in seconds
$ch = curl_init($url);
$websiteUrl = "https://git.dpolakovic.space";
-if (isWebsiteOnline($websiteUrl)) {
+if (isWebsiteOnline2($websiteUrl)) {
echo "Git server status: Online";
} else {
echo "Git server status: Offline";
}
-?>
+ ?>
+ <p>
+ <div class="code-block">
+ my @long_string = 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+ </div>
+
+ </p>
+ <p>
+ <img src="https://c.tenor.com/qKwcziL1dhAAAAAi/alien-dancing.gif" alt="cool dancing alien" class="bee-gifs">
+ </p>
+ <p>
+ <form action="https://www.paypal.com/donate" method="post" target="_top">
+<input type="hidden" name="hosted_button_id" value="FZ7CVXEDL3TY6" />
+<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
+<img alt="" border="0" src="https://www.paypal.com/en_SK/i/scr/pixel.gif" width="1" height="1" />
+</form>
+ </p>
+ <p>
+ <center>
+ <img src="./Pictures/6brickcombo.png"/>
+ </center>
+ </p>
+
+
+ <a href="https://www.dpolakovic.space/Mars24.jar">DOWNLOAD NOW</a>
-
- </p>
</main>
<!-- footer -->
- <footer class="footer">
- copyright 2023 David Polakovic
- - content of this web is licensed under
- <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>
- - <a href="https://git.dpolakovic.space/?p=my-website;a=tree">this site is free software</a>
+ <footer class="footer">
+ Copyright <?php printYear() ?> David Polakovic -
+ Content of this web is licensed under
+ <a href="https://creativecommons.org/licenses/by-nc-nd/3.0/">CC BY-NC-ND 3.0</a>.
+ <br>
+ This site is javascript and cookie free. The source code is available
+ <a href="https://git.dpolakovic.space/?p=my-website;a=tree">here</a>
+ under
+ <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GPLv3 license</a>.
</footer>
</body>