Justin A. Parr - Technologist

Technology, Strategy, Insights, and Tech Support

  • HOME
  • Quick Facts
  • CygUlarn Win32
  • About Me

Why the Sun does NOT track East-West

Posted by Justin A. Parr on May 19, 2020
Posted in: Math and Science. Leave a Comment

Why the Sun does NOT track East-West

(Most of the time)

 

We were brought up learning “the sun rises in the east, and sets in the west”, which is absolutely true.

Anyone with experience in the outdoors, including scouting, will probably have been told:

In the morning, follow your shadow to travel west.

In the afternoon, follow your shadow to travel east.

And… moss grows on the north sides of trees, etc…

 

HOWEVER….

That’s not always EXACTLY true…

 

About a year ago, I had a discussion about a road that runs north-south, and why the sun doesn’t track east-west.

It went like this:

Him: East is THAT way (points southwest)

Me: Um… No.  The road there runs north-south, so east is perpendicular to that road.

Him:  Well, I was always taught that the sun points east-west.

Me: That’s not exactly true, because the Earth is tilted on its access, causing certain parts of the Earth’s surface to be closer to the sun…

Him: I don’t believe all that…

Me:  It’s spring.  Go stand at the fence pole and walk from the fence to the house, following the sun’s path.  Then, do it again, same time of day, 6 months from now.

(To this day, we disagree on due east)

 

When I instinctively mentioned the Earth’s orbit, and the 23 degree tilt of Earth’s axis, I knew that to be correct, but I ended up dwelling on the actual mechanics.

So, here we go…

 

The Earth is tilted on its rotational axis by 23 degrees, relative to its orbital orientation around the sun.

 

As a result, over the course of a year, which is the Earth’s orbital period, that tilt causes the Earth’s orientation relative to its orbital plane to change.

In the winter and summer, if you were to slice through the center of the sun with a big knife, along the axis of the Earth’s rotation, the sun would be sliced vertically – perpendicular to the orbital plane, which is the path that the Earth follows as it orbits the sun.

However, in the spring and fall (and all other times), the Earth is canted with respect to the orbital plane, and thus if you were to slice through the sun’s center with a knife aligned with the Earth’s rotational axis, the sun would be cut at an angle with respect to the orbital plane.

 

In the summer, the Earth’s north pole is canted toward the sun.  From the sun’s perspective, its track is perfectly parallel to the Earth’s equator, which is perpendicular to the Earth’s rotational axis.

 

Likewise, in the winter, although the Earth’s north pole is canted away from the sun, the sun’s track is still parallel to the Earth’s equator.

 

In the spring and fall, the plane of the Earth’s rotational axis is tilted from the sun’s perspective.

 

In the spring, from the sun’s perspective, the Earth appears tilted to the right, causing the sun’s track to pass along a path that’s rotated counter-clockwise relative to the Earth’s equator and rotational axis.

 

Likewise, in the fall, the Earth is tilted in the opposite direction due to its orbit, and the sun’s track appears rotated clockwise relative to the Earth’s equator and rotational axis.

 

 

Thus, in winter or summer, the sun’s track follows a true east-west path.  At every other time, the Earth appears slightly tilted to the sun, causing the sun’s track to follow a northeast-southwest path in the spring, or a southwest-northeast path in the fall.

 

So, to all of you scouts out there…

  • In the winter or summer, your shadow points east-west.
  • In the fall, put the sun over your right shoulder to follow an east-west path.
  • Likewise, in the spring, put the sun over your left shoulder to follow an east-west path
  • When a map shows that a road runs north-south or east-west, it runs north-south or east-west, regardless of where the sun points.

 

Resume Tips – 2020

Posted by Justin A. Parr on May 7, 2020
Posted in: Other Stuff. Leave a Comment

Due to the economic impact of COVID-19 and other factors, there are a lot of people who are out of work right now.

As a hiring manager with over 20 years of management experience, I wanted to offer some resume tips…

Continue Reading

COVID-19 – The Truth About Masks (And Other Stuff)

Posted by Justin A. Parr on April 12, 2020
Posted in: Other Stuff. Leave a Comment

As I have become increasingly frustrated with misinformation in the media, I found it necessary to put this guide together.

Here is some factual information about the virus, what kinds of masks you SHOULD and SHOULD NOT wear, and additional safety measures that you NEED to take when out in public.

Please share this with others, and stay safe.

Continue Reading

COVID-19 – Tips for Working from Home

Posted by Justin A. Parr on March 25, 2020
Posted in: Other Stuff. Leave a Comment

In response to the COVID-19 threat, many companies are implementing a work-from-home policy for office workers.

Although working from home can keep you safe from a global pandemic, it can also be more challenging than it sounds.

Here are some tips and tricks for workers and employers, to help you maximize your time, and keep a remote workforce efficient.

Read on…

Continue Reading

COVID-19 – Don’t Forget About Crock Pot Recipes

Posted by Justin A. Parr on March 24, 2020
Posted in: Food and Cooking, Other Stuff. Leave a Comment

Crock pot recipes are a quick and easy way to feed the family.

Crock Pot Porkchops

    1. Combine pork chops and canned mushroom soup in a crock pot
    2. Cook for 3 hours or until internal temperature hits 170F
    3. Enjoy crock pot pork chops

There are dozens of crock pot recipes online.

Please stay safe.

COVID-19 – Easy Leftover Fried Rice

Posted by Justin A. Parr on March 24, 2020
Posted in: Food and Cooking, Other Stuff. Leave a Comment

Rice or pasta is an easy way to extend a meal.

In addition to how to cook Justin’s Perfect Rice®, here is my recipe for using last night’s meat or veggies as today’s Fried Rice

Please enjoy and stay safe.

 

Continue Reading

COVID-19 – No Bread? Make Tortillas

Posted by Justin A. Parr on March 23, 2020
Posted in: Food and Cooking, The Light Side. Leave a Comment

Stores are out of bread (and tortillas).

Tortillas are easy to make, and they last about a week if stored in an air-tight zip-top bag.

  • Combine 2 cups of flour, a pinch of salt, 3/4 cup of water, and about 3 tablespoons of fat (butter, lard, vegetable oil, olive oil)
  • Mix
  • Roll in to 1″ balls, and then flatten each ball in to a small disc
  • Use a floured tortilla press or a rolling pin on a floured surface to roll out each ball to 10″.
  • In a lightly-greased skillet on medium heat, cook each one on both sides for about 1 minute per side.

Makes 8-10 tortillas.

Here are things you can do with tortillas:

  • Quesadillas
    • Sprinkle some meat and other toppings on half of a tortilla
    • Sprinkle some cheese on it.
    • Fold in half
    • Grill or fry for 2-3 minutes per side, until the cheese melts and the tortilla is golden-brown on both sides
  • Fajitas / Street tacos
    • Cut your meat in to strips.
    • Grill or fry over high heat with onions and peppers
    • Steam some tortillas to warm them, or use a microwave tortilla warmer
    • Serve family-style with cheese, sour cream, pico, and other toppings
  • Nachos
    • Tear tortillas in to strips
    • Bake until crispy
    • Cover with chili, cheese and other toppings
    • Bake until cheese melts
  • Roll / wrap – makes an excellent substitute for a sandwich.  Lay out a tortilla, then stack on lunch meat, cheese, and other sandwich toppings, and simply roll it up.
  • Thin-crust pizza
    • Stack 2 tortillas, with some cheese sprinkled between them
    • on the top tortilla, spread some pizza sauce, spaghetti sauce, or whatever you have laying around
    • Sprinkle some cheese
    • Add toppings
    • Sprinkle some more cheese (do it, or you’re a communist)
    • Bake for 10 minutes until the bottom tortilla is crispy and the cheese is melted
  • Enchiladas.  I’m not quite sure how that works, but my wife does.  I’m sure you can google for a recipe.
  • Burritos
    • Lay out a tortilla
    • Fill with beans, rice, meat, cheese and other toppings
    • Fold carefully
    • Enjoy
  • Chimichanga
    • Take that burrito, and deep fry it

COVID-19 – The Layers of Stupidity Behind Toilet Paper Scarcity

Posted by Justin A. Parr on March 23, 2020
Posted in: Rants, The Light Side. Leave a Comment

Toilet paper isn’t scarce.  The raw material for toilet paper literally grows on trees.  To MAKE it scarce takes layers of stupidity, each with its own nuances.

Continue Reading

COVID-19 – Cheap Bidet

Posted by Justin A. Parr on March 22, 2020
Posted in: The Light Side. Leave a Comment

Not sure who all needs this, but here it is:

In the event that you run out of toilet paper…

Go to your local hardware store, and buy one of these:

This is a 1 gallon “garden lawn sprayer” that you can buy online for about $12, or it should be in your local big-box hardware store for about $16.

Note the angled wand…

After you buy a new one (DO NOT use the one from your garage), wash it out thoroughly.

When you go to the bathroom:

  1. Fill with warm water from the sink
  2. Close the lid, air-tight
  3. Pressurize by pumping the handle a few times
  4. Instant, portable bidet

This is cheaper than modifying your plumbing, and warmer than buying a bidet kit that connects to your toilet’s water supply.

Reduce PDF Size of a Scanned Document

Posted by Justin A. Parr on March 21, 2020
Posted in: Tech Support, Tech Tip. Leave a Comment

Reduce PDF Size of a Scanned Document

I recently had to e-mail a multi-page document – e-mail is that awesome 1990’s technology for submitting documents when the recipient doesn’t have a secure file transfer server – only to find that the attachment size was too large.

I scanned in three separate multi-page documents and then used pdfSAM to combine them all in to a single, 9-page PDF document.

Are you with me so far?

The final file size was over 80 meg!

I didn’t think anything of it, until my e-mail server complained about the attachment size.

After a little bit of thinking…

  • I had used xsane, a GUI front-end for SANE.
  • Where Windows has TWAIN, Linux has SANE. 

    Connecting a scanner to a PC pre-TWAIN used to be a kludge, and TWAIN was the answer: a manufacturer-independent hardware interface and driver standard that provides a scanner user interface, and also allows third-party programs to access any TWAIN-compliant scanner via a standard Application Programming Interface (API).

    SANE works like TWAIN, but separated in to two pieces:  front-end and back-end.  The back-end drivers allow the OS to talk to the scanner hardware, and provides generic access to other applications (like the TWAIN API).  This allows any of several SANE front-end user interfaces to access any SANE back-end, even across a network.  Very cool stuff, and there is even a SANE shim for Windows that provides TWAIN services, while using SANE on the back-end.
  • As my print server is a Raspberry Pi (Linux) and my main PC is Linux, it made the most sense to set the Pi up as a SANE back-end server.
  • I scanned all three multi-page documents using xsane, as mentioned, which allows you to scan a multi-page document and then save it as a single file.
  • While poking around a bit, I noticed that the intermediate format for xsane’s multipage applet is TIFF.
  • Like most other computing standards from the 1980’s, TIFF just isn’t very good, especially compared to modern file formats that use much better compression algorithms. 

    Unfortunately, TIFF was developed as a standard file format for scanners, which means that any time you’re dealing with scanners (or, oh lord, fax machines), be prepared to deal with TIFF, despite the fact that it’s a completely obsolete standard.  I mean, while we’re at it, let’s just fire up the 1200 baud modem and a copy of Telix, and we can XMODEM some TIFF files, shall we??

So it became clear that xsane / sane was just saving a bunch of TIFF files, and then copying them straight in to the PDF.

It turns out that Linux has a built-in command to split a PDF apart:

pdftoppm file.pdf imagefilename -png

This will create an image file for each page of the PDF, stored in PNG format.  For example, if file.pdf is 5 pages, you will get:

imagefile-1.png
imagefile-2.png
...
imagefile-5.png

These can then be recombined using ImageMagick’s convert:

convert imagefile-*.png newfile.pdf

As predicted, the resulting file was around 20 meg – 25% of the original file size.

Internally, PDF probably stores the images as TIFF, but in either case, the round trip through the PNG format is what affected the compression.

PNG performs “filtering” or normalization of the image before it’s compressed, and thus, the resulting image is “more compressible”, and the artifact of this process is that going back to TIFF (or any other format) makes the older compression algorithms perform more efficiently with the normalized image data, resulting in a much smaller file size.

Moral of the story:

If you have a huge PDF (or any kind of source image), try converting to PNG and then back again, which might make the original compression more efficient.

Other options:

  • Subsample the document down to a lower resolution.  I scanned at 300 DPI, but my next option if that didn’t work was going to be to subsample the document down to 150 DPI, which would result in a 4x file size reduction.
  • Go from color to grayscale or black-and-white.  Going grayscale from color usually results in about a 4x reduction in file size, and black and white from color might result in readability issues, but can save 16x or greater from the file size.

Posts navigation

← Older Entries
Newer Entries →
  • Search!

  • Temperature at Casa de Parr

  • Recent Posts

    • Javascript Text-tris
    • R.I.P Charlie Kirk
    • Bad Design – Dell Latitude 7450 Laptop…Thing
    • Security Cameras – A Double-Edged Sword
    • Top Reasons Why Vegas Sucks Now (2024 Visit)
    • Excel – Number of Sundays – A better Answer
    • Cache Busting using Javascript
    • Javascript Calculator
    • Gatetrilogy Saga: The Front Gate Part III, The Final Gate Opener
    • The Dangers of Old Code – A Cautionary Tale
  • Topics

    • Analyses and Responses (27)
    • Good Design – Bad Design (35)
    • IT Management (1)
    • Justinisms (8)
    • Main Page (1)
    • Math and Science (31)
      • Computer Science (1)
    • Other Stuff (40)
    • Quick Facts (7)
    • Rants (18)
    • Tech Support (61)
      • Food and Cooking (10)
      • Tech Recommendations (12)
      • Tech Tip (7)
      • Wordpress Stuff (3)
      • Zen Cart Stuff (1)
    • The Light Side (37)
  • Links

    Log in or Register to post comments

    RSS Feed
    https://justinparrtech.com/JustinParr-Tech/feed

    View my LinkedIn Profile
    http://www.linkedin.com/in/justinparr

    About Me
    Justin A. Parr

    Who is Jill Parr
    Find out here.

  • Older Posts

    • September 2025 (2)
    • August 2025 (1)
    • July 2025 (1)
    • June 2025 (1)
    • February 2025 (1)
    • August 2024 (1)
    • May 2023 (1)
    • April 2023 (3)
    • January 2023 (1)
    • December 2022 (2)
    • November 2022 (2)
    • September 2022 (1)
    • August 2022 (3)
    • June 2022 (2)
    • March 2022 (1)
    • January 2022 (2)
    • December 2021 (1)
    • July 2021 (1)
    • May 2021 (1)
    • March 2021 (1)
    • February 2021 (2)
    • November 2020 (4)
    • October 2020 (1)
    • September 2020 (1)
    • August 2020 (1)
    • July 2020 (1)
    • June 2020 (1)
    • May 2020 (2)
    • April 2020 (1)
    • March 2020 (8)
    • February 2020 (2)
    • January 2020 (1)
    • November 2019 (2)
    • August 2019 (3)
    • July 2019 (1)
    • June 2019 (1)
    • April 2019 (1)
    • February 2019 (3)
    • January 2019 (1)
    • December 2018 (1)
    • November 2018 (1)
    • October 2018 (2)
    • September 2018 (1)
    • August 2018 (2)
    • July 2018 (1)
    • June 2018 (1)
    • April 2018 (1)
    • February 2018 (2)
    • January 2018 (2)
    • December 2017 (1)
    • November 2017 (2)
    • August 2017 (2)
    • July 2017 (1)
    • March 2017 (1)
    • February 2017 (2)
    • January 2017 (1)
    • December 2016 (5)
    • November 2016 (3)
    • September 2016 (5)
    • August 2016 (2)
    • April 2016 (1)
    • March 2016 (3)
    • February 2016 (2)
    • January 2016 (7)
    • December 2015 (3)
    • November 2015 (1)
    • October 2015 (3)
    • August 2015 (5)
    • July 2015 (3)
    • June 2015 (2)
    • May 2015 (4)
    • April 2015 (4)
    • March 2015 (3)
    • February 2015 (4)
    • January 2015 (8)
    • December 2014 (8)
    • September 2014 (1)
    • August 2014 (1)
    • July 2014 (2)
    • June 2014 (4)
    • May 2014 (1)
    • April 2014 (2)
    • March 2014 (3)
    • February 2014 (5)
    • January 2014 (1)
    • December 2013 (2)
    • October 2013 (2)
    • July 2013 (3)
    • April 2013 (1)
    • October 2010 (1)
    • August 2010 (1)
    • July 2009 (1)
    • April 2009 (1)
    • November 2008 (1)
    • October 2008 (1)
    • September 2008 (1)
    • May 2008 (1)
    • March 2008 (1)
    • January 2008 (1)
    • June 2005 (1)
    • May 2005 (4)
Proudly powered by WordPress Theme: Parament by Automattic.