+ 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
+
+
+
- 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.
-
-
- Free software directory
- - a collaborative catalog of free software
- Cidr.xyz
- - when you're setting up network and you don't want to die over subnet
- tables [3]
- Lack rack
- - nice hack that I use for my servers
- Installing Wine on Linux
- - this is tricky task for many distros, so I use this nice tutorial
- CloudTube
- - one of many free (software) instances for youtube.com
- Floppydisk.com
- - new and refurbished floppies for okay prices [3]
- Which JDK?
- - neat website when you want to install alternative Java Dev Kits
- JAR Download
- - Java libraries packed in .jars so you can manage them by hand
- Perl monks
- - best place to seek help and wisdom in Perl
- Web buttons
- - here is list of 4000+ web buttons from Cyber Vanguards website
- More Web buttons
- - another set of 4000 web buttons, this time from Deadnet
- Web 3 is going great!
- - website that monitors all failures of this stupid bubble [3]
- WinWorld
- - online museum/library of vintage software
- UESP Wiki
- - everything I ever needed for TES III Morrowind I found here [2]
-
-
-
- And here are some good readings I found on the Web. I am not necessarily
- a fan of authors, but I consider these specefic blog posts to be
- worth your time.
-
+ software
+ Free software directory
+ - a collaborative catalog of free software
+ WinWorld
+ - online museum/library of vintage operating systems
+ Infocom catalog
+ - every Infocom text adventure ever
+ KolibriOS
+ - operating system on 1,44MB floppy
+ AtariAge
+ - hub for enthusiasts of Atari PCs and consoles
+
+
+ programming
+ Which JDK?
+ - neat website for navigating alternative Java Dev Kits
+ SDKman
+ - must have tool for every JVM based project
+ MVN repository
+ - Java libraries packed in .jars
+ Perl monks
+ - best place to seek help and wisdom in Perl
+ Rosetta Code
+ - solutions for many tasks in many languages [2]
+ Git cheat sheet
+ - feel free to laugh, but I use this a lot [PDF]
+
+
+ tools & tutorials
+ Cidr.xyz
+ - when you don't want to die over subnet tables [3]
+ Broken link checker
+ - it does, exactly what it says [3]
+ Installing Wine on Linux
+ - this is tricky task for many distros
+
@@ -47,14 +47,14 @@
My name is
David
and
- This is my personal Web space which I don't really need, but it is
- nice to have one.
+ This is my personal web space, 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.
+ or you can stay here and watch this alien dance.
-
+
-
+
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
@@ -63,22 +63,25 @@
+ Ack Ack Ack Ack Ack!
+
+
+ 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.
+
+
+
+
+------------------------------------------------------
+Earth | Time | Date |
+------------------------------------------------------
+Silicon Valley | | |
+Boston | | |
+London* | | |
+Tokyo | | |
+
+------------------------------------------------------
+Mars | Time | Date |
+------------------------------------------------------
+Jezero Crater | | |
+Gale Crater | | |
+Olympus Mons* | | |
+Tharsis Tholus | | |
+Conv. Prime Meridian | | |
+
+
+
+------------------------------------------------------
+* 0 offset time zone
+
+
+
+
+ The idea was to create the most humanly readable modification of the
+ Darian calendar
+ 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.
+
+
+ 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
+ any 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.
+
+
+ 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.
+
+
+
+
+
+
+
+
+
+
+
diff --git a/php/time.php b/php/time.php
new file mode 100755
index 0000000..dfcc234
--- /dev/null
+++ b/php/time.php
@@ -0,0 +1,116 @@
+";
+ //echo "Data valid to time: ". $current_time . " ";
+}
+
+ 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; }
+?>
diff --git a/rss.xml b/rss.xml
old mode 100644
new mode 100755
index 77e5cee..ee7bf6d
--- a/rss.xml
+++ b/rss.xml
@@ -5,10 +5,46 @@
https://www.dpolakovic.space
Some obscure thoughts caught on the Web.en-us
- Mon, 8 Jan 2024 16:00:00 GMT
- Mon, 8 Jan 2024 16:00:00 GMT
+ Sun, 18 Aug 2024 17:00:00 GMT
+ Sun, 18 Aug 2024 17:00:00 GMT60
+
+ Daily life of Stormtrooper
+ https://dpolakovic.space/blogs/star-wars-galaxies
+ "You seen that new BT-16?"
+ Mon, 10 Feb 2025 17:00:00 GMT
+ https://dpolakovic.space/blogs/pics/sw5.jpg
+ 100% 0
+
+
+
+ The Phantom Menace is good
+ https://dpolakovic.space/blogs/phantom-menace
+ An inevitable STAR WARS rant.
+ Sun, 18 Aug 2024 17:00:00 GMT
+ https://dpolakovic.space/blogs/pics/starwars26.jpg
+ 100% 1
+
+
+
+ Y292B bug
+ https://dpolakovic.space/blogs/y292b
+ We're doomed! Again...
+ Wed, 26 Jun 2024 17:00:00 GMT
+ https://dpolakovic.space/blogs/pics/bug.jpg
+ 100% 0
+
+
+
+ Reproducing the printer hack of Windows 95
+ https://dpolakovic.space/blogs/windows-95-printer-hack
+ Start me up!
+ Fri, 12 Apr 2024 16:00:00 GMT
+ https://dpolakovic.space/blogs/pics/deskjet710c.jpg
+ 100% 5
+
+
Let's play Zork
https://dpolakovic.space/blogs/zork
diff --git a/test.php b/test.php
index ef85ced..6fbf846 100755
--- a/test.php
+++ b/test.php
@@ -6,11 +6,12 @@
???
-
+
+
-
+
@@ -19,7 +20,6 @@
-
@@ -47,7 +47,7 @@
+ ?>
+
+
+ my @long_string = 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+