Let’s make the world a better place!
Let’s make the world a better place!
Let’s make the world a better place!
  1. Be Joyful and Radiant (smiles really are contagious)
  2. See the Good in Others (focus on the good in people or everyone will disappoint you)
  3. Better Yourself Each Day (worry about improving yourself, not others)
  4. Always Forgive (holding on to past wrongs, only makes the hurt worse)
  5. Be Humble (there’s always someone smarter than you to learn from)
  6. Strive for Unity (we’re stronger together than we are apart)
  7. Be Kind to Everyone (kindness is like food to the hungry and water to the thirsty)
  8. Be Grateful (don’t live your life in discontent)
  9. Fight for Justice (defend the downtrodden, stand up for what is right)
  10. Finish What You Start (perseverance leads to greatness)

Don’t you think if we all practice even one of these principles, the world will be a better place?

https://www.facebook.com/notes/danilo-stern-sapad/my-7-rules-for-living/10151925227189165
October 15, 2013


This is a very short tutorial on how to fix the dreaded “Backup and Sync has encountered a fatal error, and will now terminate.” error when installing and then opening on macOS. I’ve had this issue with macOS Mojave, High Sierra, and Sierra. None of the solutions I found online fixed this issue. This is how I fixed it.

Go to your folder and delete by moving it to your Trash.

Download and Install : https://www.google.com/intl/en-GB_ALL/drive/download/backup-and-sync/

Open up the Terminal application in or if…


This is a simple guide on how to set up name-based virtual hosts in Apache on Mac OS X 10.10 Yosemite. This tutorial is intended as a supplement to my article, How to setup Apache, PHP & MySQL on Mac OS X 10.10 Yosemite. If you know what you’re doing this guide should also work for Leopard, Snow Leopard, Lion, Mountain Lion, and Mavericks with minor changes as the setup hasn’t changed much since I originally wrote about this in 2009.

What are virtual hosts used for?
In the case of this tutorial we will create a virtual host to let…


This is a tutorial on how to set up Apache 2.4, PHP 5.5, and MySQL 5.6 on Mac OS X 10.10 Yosemite. This tutorial is a good reference for PHP developers who want to set up a local MAMP development environment. I should note I mainly program in Scala these days, but PHP is a really popular and useful programming language to know.

If you know what you’re doing this guide should also work for Leopard, Snow Leopard, Lion, Mountain Lion, and Mavericks with minor changes as the setup hasn’t changed much since I originally wrote about this in 2007.


For those of you who didn’t learn your lesson in, “The No BS Guide To Getting Things Done,” here is something further to waste your time reading. Hopefully, this will point you in the right direction (or maybe not). Oh, and guess what? It’s incomplete. Why? Time management is a waste of time.

Now, you can read the rest of this drivel or smarten up already and get to work!

I’m a person who reads time management books to put off doing my work…


Step 1: Stop reading this and do what you need to do!

If you’re still reading this stop! Seriously, quit wasting your time with blogs and other distractions and just . Focus, focus, focus. Productivity books, articles, audiobooks, manifestos, etc. are all major timesinks (i.e. significant wastes of time). I wouldn’t even know what that term meant if I took my own advice!

.

Goodbye and good luck.

PS: If you insist on wasting your time or simply feel this article is lacking (it’s not) read my incomplete blog entry entitled, “Time management is a waste of time!


The following command will remove all files in a directory where it is executed as well as that particular directory’s subdirectories:

find . -name ‘*.DS_Store’ -type f -delete

Why would you want to remove files? The files store Finder-specific preferences concerning the display of each of your folders. Removing these files is an easy way to reset your display preferences. Also, if you’re moving files between your Mac and another operating system such as Windows or Linux these files can cause unexpected problems and should be removed prior to transfer.

This command works on Mac OS X…


This a very simple guide on how to change a file’s “date modified” and “date created” attributes on Mac OS X I wrote back in May 2009. Since then these directions have been updated for Mac OS X 10.10 Yosemite.

Date Format Key:
YYYY — The year (the first two digits/century can be omitted).
MM — The month of the year, from 1 to 12.
DD — The day of the month, from 1 to 31.
hh — The hour of the day, from 0 to 23.
mm — The number indicating minutes, from 0 to 59.

How to change…


This is a further supplement to my posts “Decoding eval gzinflate base64_decode” and “Decoding eval gzinflate base64_decode str_rot13” originally published on my blog back in May 2007.

To decode files that look roughly like this:

<?php $_F=__FILE__;$_X=’encoded text’;eval(base64_decode(‘pointless crud’)); ?>

Just copy the text in between:

<?php $_F=__FILE__;$_X=’

and

 ‘;eval(base64_decode(‘encrypted junk’)); ?>”;

Then paste it into the $contents variable in the code below:

<?php
$contents = "in-between text goes here (e.g. 3e4jf+jFTYhf=)";
$contents = base64_decode($contents);
$contents = "<textarea rows=\"6\" cols=\"25\">".strtr($contents, "123456aouie", "aouie123456")."</textarea>";
echo $contents;
?>

Execute the code by saving it as a file (e.g. decode.php) and visiting…


This is a supplement to the PHP snippet I shared describing how to decode code obfuscated using eval(gzinflate(base64_decode(‘encoded text‘))); and was originally posted on my Tangential Musings blog back in November 2006.

The following code snippet is a simple PHP class found at the post by macosbrain entitled, “Decode Function: eval gzinflate base64_decode str_rot13.”

Contrary to this post’s title, the class is capable of decoding the following functions that are commonly used for obfuscating PHP code:

  1. eval(gzinflate(base64_decode(
  2. eval(gzinflate(str_rot13(base64_decode(
  3. eval(gzinflate(base64_decode(base64_decode(str_rot13(
  4. eval(gzinflate(base64_decode(str_rot13(

Prior to decoding something with this script make sure to remove any comments or code that’s not encoded (i.e. …

Danilo Stern-Sapad

Entrepreneur, Technologist & Product Guy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store