You are currently browsing the category archive for the 'data' category.

Mostly solaris, probably similar on other *nix sytems….

Disk Stats

$ iostat -xnct 5
tty         cpu
tin tout  us sy wt id
3   42  45  1  0 54
extended device statistics
r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
0.4    3.8   11.6   23.5  0.0  0.0    2.1    1.1   0   0 c1d0
0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0
tty         cpu
tin tout  us sy wt id
187  180  54  4  0 43
extended device statistics
r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
0.8    6.4    5.0   80.2  0.0  0.0    0.1    1.1   0   1 c1d0
0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0

tty         cpu
tin tout  us sy wt id
14  277  50  1  0 49
extended device statistics
r/s    w/s   kr/s   kw/s wait actv wsvc_t asvc_t  %w  %b device
0.0    1.4    0.0   12.8  0.0  0.0    0.1    0.3   0   0 c1d0
0.0    0.0    0.0    0.0  0.0  0.0    0.0    0.0   0   0 c0t0d0

Sorry about the g33ky post, but i was looking for an example of how to use awk for this circumstance.  There’s probably another text-manipulation cli app to do the job, but i just wanted to use awk for this one.

Note: Solaris awk is known to be buggy. us the xpg4 version on all solaris boxes, or the “match” function wont work.

1 line of data set example:

20081210 133924638-0500 mmsrb owmmsrelay 193 46 46 Info;MMSRelayTxnLog(220/101)193:46:lc=Op ct=owmmsrelay op=MMBox_view.REQ ms=4.63 uid=114944517818131292 size=0 SrvcID=MMS AppID=”Openwave MMS Relay” AppHost=10.33.233.131 AppPort=8088 MsgID=AElADNwAEADBAC4KIe6D OrigIF=WEB RcptIF=WEB OrigAddr=”+19046219845/TYPE=PLMN” RcptAddr=”+19056219845/TYPE=PLMN” NumRcpts=1 EvTime=20081210133924 EvStatus=Success Folder=INBOX TrackID=AElADNwAEADBAC4KIe6D PeerHost=10.33.238.131 PeerPort=55476

Read the rest of this entry »

Have you ever taken the time to see exactly what the A to Z search on Google comes back with? We start by simply typing in a single letter on Google and seeing what the first return is. For the most part, we find a notable pattern, but with a few bizarre oddities:

  • Sometimes, an article on Wikipedia is referenced “ie, an article on the letter ‘b’ “
  • There are a few stock symbols
  • Many mathematical constants

Funny items

  • The letter “S” brought up Queen’s University… huh?
  • The letter R brought up a project that’s commonly referred to as the “S” project ;)
  • There’s a little bit of toilet humour under “P”

I thought of this article a while back, but seems like a good waste of time to me! Let’s begin!

Section 1 : A to Z

ALinks in HTML documents The destination anchor of a link may be an element within an HTML document. When the A element’s href attribute is set, the element defines a source

BB – Wikipedia, the free encyclopedia B is the second letter in the Latin alphabet. Its name in English is spelled bee or occasionally be (pronounced /biː/), plural bees.

Cthe speed of light = 299 792 458 m / s

DDOMINION RES NEW (NYSE)

43.38 -0.04 (-0.09%) 23 Apr 9:43am ET
Open: 43.42
High: 43.42
Low: 43.15
 
Volume: 121,193
Avg Vol: 2,889,000
Mkt Cap: 25.04B

E -

e = 2.71828183

Read the rest of this entry »

crazy_lotto_ticket.jpg

Answer: Pretty good and pretty bad.

You see, once in a while I’ll play Lotto6/49. It’s a Canadian game, doesn’t pay like the US lotteries, but I enjoy it. Sometime’s when I’m around a lotto machine, I’ll have an extra $2.00 and lust longingly after whatever jackpot amount they post in front of me. I’ll then turn to the man and say “Quick-pick, 6/49, no encore”.

That’s it. That’s my chance. I’m in, and so far, my odds of winning are way better than a few minutes ago. What was a 0% chance just became a .000000009% chance.

A “Quick-Pick” is a quick ticket that a machine prints. I don’t have to circle my numbers, fill in an examination, or anything. The computer picks 6 random numbers, from 1 to 49, and spits them out on a ticket.

It’s all so easy, and happens within 5 seconds. So I thank the man, he tips his hat, and I walk out to find something to do on a Monday night.

Read the rest of this entry »

SocialVibe