Takeaways from the “California Driver Handbook 2017”

In this article, I share with you my notes from the “California Driver Handbook 2017“. Perhaps it will come in handy when you are preparing for the driving test in California:

Notes:

  • Speed limit
    • The maximum speed limit on most California highways is 65 mph. You may drive 70 mph where posted. Unless otherwise posted, the maximum speed limit is 55 mph on a two-lane undivided highway and for vehicles towing trailers.
    • California has a “Basic Speed Law.” This law means that you may never drive faster than is safe for current conditions. For example, if you are driving 45 mph in a 55 mph speed zone during a dense fog, you may be cited for driving “too fast for conditions.”
    • The speed limit in any alley is 15 mph.
    • Business or Residential Districts: The speed limit is 25 mph, unless otherwise posted.
  • Stopping and safe distance
    • At 55mph, it takes about 400 feet to react and bring the vehicle to a complete stop, and at 35mph, it takes about 210 feet.
  • Pedestrians, bicyclists
    • Pedestrians, bicyclists, or other vehicles alongside you may experience sudden strong winds when passing or being passed. Slow down and pass safely, and pass only at a safe distance (typically 3 feet or more for bicyclists).
  • Blind Intersections
      The speed limit for a blind intersection is 15 mph. An intersection is considered “blind” if there are no stop signs at any corner and you cannot see for 100 feet in either direction during the last 100 feet before crossing.
  • Near animals
    • If you see a stray animal in your path, slow down or stop if it’s safe. Do not swerve as you may lose control of your vehicle and cause an accident.

Continue reading

Batchography: How to check if your Batch file script is running as an Administrator

In chapter 4 of the Batchography book, I illustrate 3 methods that you can use to check if your Batch file script is running as an Administrator.

In this blog post, I will share with you the method entitled “Using known commands that fail to run without elevated privileges” from the book.

The idea behind this method is to run commands that are known to fail and return a non-zero error code if they are not executed with administrative privilege.

The Batch script would then check the return code and act accordingly:

@echo off


:: 
:: The Batchography book by Elias Bachaalany
::


net session >nul 2>&1

if %errorlevel% neq 0 (
  echo Requires administrative privilege.
  goto :eof
)

echo Script starts here...

flower separator
batchography-good-resDo you want to master Batch Files programming?

Look no further, the Batchography is the right book for you.

Available in print or e-book editions from Amazon.com!

 

flower separatorYou might also like:

Introducing the “Batchography: The Art of Batch Files Programming” book

buy-from-amazonLong gone are the days when you had to use search engines to jump from one website to another in order to figure out the syntax or how to solve a problem using a Batch file script. The Batchography book is a boon for system administrators, build engineers, programmers and home users alike. It takes you on a journey of re-discovery of the lost art of Batch files programming. Whether you are an experienced user or new to the language, you will be surprised by the clarity and the abundance of the material presented in this book. With more than 140 scripting recipes, you will learn about things that you never thought were possible to achieve using the Batch files scripting language.

In the Batchography book, you will learn about:

  • The Basic concepts of Batch file scripting
  • Data structures: Arrays, Stacks, Sets, Maps
  • Multiline, compound and conditional statements
  • Function calls and repetition control structures
  • Files and strings manipulation techniques
  • Debugging and troubleshooting tips
  • Coding conventions and testing methodologies

Buy from Amazon:

Preparing for the Washington State Driving Test

Hello,

Today I am going to share with you some of the notes I compiled / prepared when I had to study in order to pass the driving test.

These notes are not comprehensive and may contain mistakes, please double check what you study while reading from the Washington Driver Guide Continue reading