The Western Users of SAS Software 2016 conference is over. I have been to a lot of SAS conferences, but WUSS is always my favorite because it is big enough for me to learn a lot, but small enough to be really friendly. I’m already excited about next year’s conference in Long Beach, September 20-22. […]![]()
You’ve got 10 minutes to present your analysis
A good data analyst has to be focused, methodical, creative, rigorous, analytical and more when doing their work. If that is not enough, when presenting their work the wisdom of a philosopher may be required. It seems the requirements do not stop. The analyst is wise to remember the words […]
The post You’ve got 10 minutes to present your analysis appeared first on SAS Learning Post.
Where will the ‘union vote’ matter most in the upcoming election?
In the past, a large percentage of US workers have been union members, and the unions could exert a big influence on elections. How powerful are the unions these days, an where do they wield the most influence? Let’s map it out… In 1954, almost 35% of US workers belonged to […]
The post Where will the ‘union vote’ matter most in the upcoming election? appeared first on SAS Learning Post.
Use Slack bot to monitor the server
from slackclient import SlackClient
from subprocess import getoutput
import logging
import time
message_channel = '#my-server-001'
api_key = 'xoxb-slack-token'
client = SlackClient(api_key)
if client.rtm_connect():
while True:
last_read = client.rtm_read()
if last_read:
try:
parsed = last_read[0]['text']
if parsed and 'status' in parsed:
result = getoutput('pstree')
result += '\n\n' + getoutput('free -h')
client.rtm_send_message(message_channel, str(result))
except Exception as e:
logging.error(e)
time.sleep(1)
systemd or other tools to daemonize it. No matter where and when I am, I enter status at the #my-server-001 channel on my phone, I will instantly get the result like – systemd-+-accounts-daemon-+-{gdbus}
| `-{gmain}
|-agetty
|-cron
|-dbus-daemon
|-fail2ban-server---2*[{fail2ban-server}]
|-login---bash
|-nginx---nginx
|-postgres---5*[postgres]
|-python---sh---pstree
|-redis-server---2*[{redis-server}]
|-rsyslogd-+-{in:imklog}
| |-{in:imuxsock}
| `-{rs:main Q:Reg}
|-sshd-+-3*[sshd---sshd---bash]
| `-sshd---sshd
|-2*[systemd---(sd-pam)]
|-systemd-journal
|-systemd-logind
|-systemd-timesyn---{sd-resolve}
|-systemd-udevd
`-uwsgi---uwsgi---5*[uwsgi]
total used free shared buff/cache available
Mem: 2.0G 207M 527M 26M 1.2G 1.7G
Swap: 255M 0B 255M
The Analytics Experience – virtually anywhere
Analytics experts and decision makers are taking over Las Vegas Sept. 12-14 while attending Analytics Experience. Whether you are in Vegas or need to participate from the luxury of your sofa or office, read on for help to stay connected and be a part of it all. Watch Live There […]
The post The Analytics Experience – virtually anywhere appeared first on SAS Learning Post.
Can you name all the SAS colors?
Anybody can come up with a list of simple colors, such as red, green, and blue. If you’re a bit more color savvy, you might even throw in indigo, magenta, and fuchsia. But what about more obscure names such as cornsilk, mistyrose, and midnightblue? This blog post will help you […]
The post Can you name all the SAS colors? appeared first on SAS Learning Post.