Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

Thursday, May 26, 2016

Warm Humid Evening Simple and Sinister

Warm Up Original Strength Reset
  • Cross Crawl - 20 per side
  • Crocodile Breathing - 2 minutes
  • Head Nods - 20 reps
  • Rolling - 3 reps left and right first leading w/ legs then arms
  • Rocking - 20 reps
  • Crawling - 4 minutes
I didn't want to work out. My hips have been pretty achy the last couple of days. But then again I haven't done an OS Rest for a couple of days, nor done my kettlebell practice. I've got to remember that Movement Is Medicine! I feel better now, left hip still hurts some but right one feels good.

I ended up crawling four minutes. I crawled slowly because as I said my hips were aching but I wanted to cover my normal distance. It just took twice as long. Total warm up time 14 minutes.

I wasn't sure I was going to do my kettlebell practice, but I started listening to the Strength Matters Podcast as I was leaving work to help get me in the mood for training. By the time my warm up was done I had listened to an inspiring episode and started in on the interview of Pat Flynn. There was no way I could not train. Plus the OS Reset had loosened me up pretty well.

I did one more set of two hand swings at 53 lbs. than last time. I slowed down on the Get Ups. Maybe it was the heat. The whole kettlebell routine took me 20:05, which was really on 25 seconds longer than Monday but it felt like a struggle during the last 2 or 3 sets of get ups.

I've also gotten nearly 9k steps today as well as doing 52 push ups in Grease the Groove fashion of 13 sets of 4 reps spread through the day.



Wednesday, May 25, 2016

Asking Bad Questions

There are no stupid questions but there bad ones, IMHO. 

Someone who shall remain nameless, just asked me some bad questions about Saltstack. I hope by sharing this I can help you guys out as you’re learning about Saltstack in particular, or another tool like git or systems administration/devops in general or really anything.

He started off politely which is good.

**********: (13:11)
Hey Charles, gotta minute for Salt question?
Charles Baker: (13:11)
Shoot
**********: (13:13)
first - do you know if the salt modules for "parted" and "extfs" are installed?
Second - can you tell me how to run a module command locally?
I tried "salt-call parted.partition.list /dev/xvdb" but get module "parted" not available.

The above is only okay. He did tell me exactly what he tried in the 2nd question. But he had already made an assumption about the root cause in question 1st. BTW, these are not the worst questions I've ever received, but they pushed me over the edge.

Charles Baker: (13:13)
What environment are you in?
********** (13:14)
Staging

Above is a bad question on my part, I started to buy into his idea that there was something wrong with the Saltstack masters. I should have started with the next question, as I looked at the documentation myself to be sure I understood what was wrong, if anything.

Charles Baker: (13:15)
Did you look at the documentation for the parted module?
**********: (13:16)
yes - it's not very helpful to me.doesn't say how to run that from a minion, just a master.Also, i'm still not certain the module is installed on the master
Charles Baker: (13:16)

The above question isn’t really his fault. I don’t think anyone in Cloud Operations at my current gig has had Saltstack training except me and I had that on my previous job. But it does show a fundamental lack of understanding about Saltstack. I think it’s kinda’ unfair to expect that everyone can pick up a complex tool like Saltstack and learn it on their own. However, the question is good in that he admitted that the documentation wasn’t helpful to him.

**********: (13:16)
i guess i could try to install the module on the minion, but don't knkow how to do that either

The above is not good troubleshooting technique. It’s “try something, even something I don’t know how to do, and hope it solves my problem."

Charles Baker: (13:17)
Try to run the command with the proper syntax first
Charles Baker: (13:17)
The command syntax from the master is nearly the same as for salt-call
Charles Baker: (13:18)
Except you don’t have to specify a target, ‘*’, for example
**********: (13:18)
[root@******** ~]# salt-call parted.partition.list /dev/xvdb
Module 'parted' is not available.

He repeats the same command, obviously not having paid attention to command line example I linked to above.

Charles Baker: (13:19)
Look at the documentation
Charles Baker: (13:19)
you’re not calling it correctly
**********: (13:20)
ah - it is trying to be smart.should just use partition.list, not parted.partition.list
Charles Baker: (13:20)
Yes, exactly like it is in the document
**********: (13:21)
Tx

And here is what the proper syntax and execution looks like.

[ec2-user@******* ~]$ sudo salt-call partition.list /dev/xvda1
[INFO    ] Executing command 'parted -m -s /dev/xvda1 print' in directory '/root'
local:
    ----------
    info:
        ----------
        disk:
            /dev/xvda1
        interface:
            unknown
        logical sector:
            512
        model:
            Unknown
        partition table:
            loop
        physical sector:
            512
        size:
            32.2GB
    partitions:
        ----------
        1:
            ----------
            end:
                32.2GB
            file system:
            flags:
            number:
                1
            size:
                32.2GB
            start:
                0.00B
            type:
                ext4
[ec2-user@******** ~]$


Be willing to be vulnerable. Admit that you don’t know something rather than assuming something is wrong with the tool. Ask clear, precise questions. For example:

Got a minute?I tried the following command and it didn’t work as I expected it to work (provide output or a screenshot). I also looked at the documentation but I’m not sure I understand it. The example commands seem to be illustrating what you do on the Saltstack master and not on a minion with salt-call. Can you help me understand what is going wrong?

One of my best recommendations is to read the old, long and somewhat pedantic but still relevant "How To Ask Questions The Smart Way". Another good read is "How To Become A Hacker". 

Thursday, March 20, 2014

Essential DevOps References

Just a quick list of some books that I think are essential to putting your mind in the DevOps way of thinking. No particular order. I'll add some other references soon. Like podcasts, websites, etc.
If you force me to pick three to start with I would read: The Phoenix Project,  Lean Start Up and The Year Without Pants. In that order. They are not technology specific. However, they will change the way you think about IT work.

Tuesday, October 15, 2013

Subtle Breakage in Saucy Salamander

All of a sudden, after what have become daily dist-upgrades on my part as the release of Ubuntu Saucy Salamander approaches, my VPN connection stopped working. I try to connect to VPN and get an error "no valid secrets". Also, I couldn't edit the VPN connection. Some googling lead me to "gray button for saving “editing VPN connection” in Ubuntu 12.04"  It didn't exactly match my situation, I'm running 13.10 already, but it was close enough for me to figure out what to try. I made the following change:

[chbaker@reacher:polkit-1/actions]$ diff -u ORIGorg.freedesktop.NetworkManager.policyORIG org.freedesktop.NetworkManager.policy
--- ORIGorg.freedesktop.NetworkManager.policyORIG 2013-10-07 05:57:03.000000000 -0400
+++ org.freedesktop.NetworkManager.policy 2013-10-15 16:50:56.724445415 -0400
@@ -86,7 +86,7 @@
     <message xml:lang="uk">Правила системи забороняють вмикання або вимикання з’єднань з мережею на системному рівні</message>
     <message xml:lang="zh_CN">系统策略阻止启用或禁用系统网络</message>
     <defaults>
-      <allow_inactive>no</allow_inactive>
+      <allow_inactive>auth_admin</allow_inactive>
       <allow_active>yes</allow_active>
     </defaults>
   </action>
@@ -940,4 +940,4 @@
     </defaults>
   </action>
 
-</policyconfig>
\ No newline at end of file
+</policyconfig>
[chbaker@reacher:polkit-1/actions]$
After logging out and back in my VPN connection works again. I think there are other mis-configurations in Saucy Salamander (13.10), too. For example the date and time are no longer being displayed in my taskbar. Also, when I go to the time date settings all the clock options are grayed out and I can't edit them. This is really quite disappointing since 13.10 is slated for release in just two days. I can live w/o the date and time in my task bar, but no way I can work remotely without VPN.
 

Wednesday, December 7, 2011

My Must Have MacOS X Extras

So, when I started my new job I was issued a shiny new MacBook Pro 13. I asked for recommendations for must have free or open source software from some of my Mac savvy friends. Below is my current list of third party FOSS software that I use daily or frequently.


  1. iterm2 - I haven't even begun to scratch the surface on all it's capabilities.
  2. F.lux - Good for the eyes ;-)
  3. Dropbox - Important files from any location.
  4. KeePass - I love it for it's cross platform goodness. I run it on Linux, Windows, MacOSX & Android. I keep the database available to all via DropBox.
  5. ClipMenu - Just started using this. I'm a long time user of Parcellite clipboard manager in Linux land.
  6. Time Out - Helps me remember to take short breaks throughout the day. I generally use Workrave on other platforms.
  7. Chicken of the VNC - Nice way to access a GUI session via either TightVNC or X11VNC running on my CrunchBang (#!) Linux workstation when I'm not in the office. Course I mainly just ssh in from iterm2.
  8. Chrome - I know studies show Safari is faster on MacOS X, but I use chrome on Linux and Windows so why not here, too?
Given all that, what's the best way to keep all of those and a few other less crucial tools up to date? On my Debian or Ubuntu based systems it's just a matter of doing a `sudo apt-get update && sudo apt-get upgrade' (or dist-upgrade). Voila' all my software is upgraded. I remember back in the day reading about Fink and ports for Mac OS X. Anyone using them? Got other suggestions?

No Progress Yesterday

I didn't do anything toward my website building goal yesterday, Friday 04 March 2022. I'll pick it up again today.