Going Deep Mac OS

So you've got your the new OS X Lion and you are using a Macbook pro or Macbook Air?

If this video has helped you, Do consider buying me a coffee at: DeepLearning series Ep 5.1: DeepFakes on Mac OS Catalina. This was Apple’s attempt to get people interested in their products in 2010. They promised an intuitive operating system that people will use in any situation. Apple delivered its promise with the features that Lion brought. This is the best operating system if you look to use your MacBook for multitasking while working. A deep scan will immediately begin on your Mac hard drive. The lost or deleted files will be scanned in a while. Once the scan is over, the lost contents would be displayed, and the users can select their lost content and tap on 'Recover' to restore them to their Mac.

We all know that one of the more important features of a laptop is its battery capacity, it makes no sense to have a laptop that only last for an hour on batteries, another important thing now a days, is that we all want our laptops to be 'always on' I mean, like our phones, always in standby just like an iPad.

And, as you may have notice this are opposite features, if you have it always on you will loose battery and if you save battery, it will not wake up as fast as you may want it to do it.

Now, let's understand a little bit the differences between sleep and hibernate:

Sleep mode

In sleep mode the computer tries to cut the energy from all computer's components like hard disks, display and others, and only keeps the power to the RAM, as there is where the current settings are stored.

In this mode the wake up time is really short (just a pair of seconds) but the power is still draining as RAM is working.

Going Deep Mac Os 11

Mac

Hibernate mode

Double diamond game. In this mode, the operating system is going to copy the RAM contents to the hard disk, and will shut the computer off, when you want it to wake up, it will boot from this image saved on the disk, and will restore the computer the last state it has before going to hibernate.

Enough, let's now see how we can be sure we have the best of both worlds with our Macbook.

Let's see the current state of the power management settings.

You should see something like this:

There are three parameters that we want to check here:

From the man page:

hibernatemode takes a bitfield argument defining SafeSleep behavior. Passing 0 disables SafeSleep altogether, forcing the computer into a regular sleep.

Going Deep Mac OS

standby causes kernel power management to automatically hibernate a machine after it has slept for a specified time period. This saves power while asleep. This setting defaults to ON for supported hardware. The setting standby will be visible in pmset -g if the feature is supported on this machine.

And:

standbydelay specifies the delay, in seconds, before writing the hibernation image to disk and powering off memory for Standby.

With hibernatemode in '3' we have the default settings, which means that the computer will use sleep and not hibernate, as the default when the lid is closed, but because standby is set to ON, the computer will wait standbydelay seconds, before switching from sleep to hibernate

As you can see this is great, as you can now close the lid of your laptop, and you have n seconds to go back to it, and still have a fast 'boot' time, but if you stay away more than that, it will go into hibernate mode, and will save your battery.

You can change the time you want your laptop to wait before going into hibernate mode with this command:

Change 1200 to the number of seconds you want it to wait in sleep mode before going to hibernate mode.

If you need to set you laptop in sleep mode and turn on the standby mode (They should be on, as those are the default), enter these commands.

and:

With those settings, I have a laptop that waits for me in sleep mode for 30 minutes, after that, it better goes to hibernate as it may take longer for me to return to work :).

One last note:

Going Deep Mac Os X

If you forget to close the lid, the sleep parameter will dictate when your computer is going to go to sleep, that setting is in minutes, so in my case it will wait for 10 minutes on, and then if there is no activity on the keyboard or mouse, it will go to sleep for 30 minutes and finally to hibernate.

It’s very easy to install Go on Mac OS. Let’s get started.

1. Download Go Mac OS Installer Package

Go to the GoLang download page: https://golang.org/dl/ and download the Mac OS installer package.

2. Run the Installer Package to Install Go on Mac

Open the Mac OS installer package and follow the steps. There are no configurations and options to choose from, so it’s a straight forward installation.

3. Verifying Go Installation by checking its version

https://englishdoc-free-betmeaningcbbinshangrila.peatix.com. What does low variance mean. Launch the terminal and run the go version command and it should print the GoLang version.

Going Deep Mac Os Download

Congratulations! GoLang has been successfully installed on your Mac OS.