Try
> import wmi
> conn=wmi.WMI(None)
> res = conn.Win32_PerfFormattedData_PerfDisk_PhysicalDisk()
> print res[0]
If it doesn't work, try:
def parse_input_file(in_filename): | |
with open(in_filename, 'r') as in_file: | |
first_line = in_file.readline() | |
nb_vid, nb_end, nb_req, nb_cache, capacity = map(int, first_line.split(' ')) | |
video_weight_line = in_file.readline() | |
video_weights = np.array(list(map(int, video_weight_line.split(' ')))) | |
datacenter_to_end_latency = np.ndarray(nb_end) | |
end2cachelatency = [] |
#include <iostream> | |
void test_const( int & a, const int & b){ | |
a = a + 1; | |
a = a-b; | |
} | |
int main(int argc, char *argv[]) | |
{ |
for (int l1=0; l1 < M_; l1++) { | |
for (int l2=0; l2< M_; l2++) { | |
float temp = (l1==l2 - inv_proba(l2)/z_norm) * inv_proba(l1); | |
J1(l1,l2) = temp; | |
} | |
} |
cat split/train.txt | trim | awk '{printf("cp /home/rudy/datasets/MSRC/MSRC_ObjCategImageDatabase_v2/Images/%s /home/rudy/datasets/MSRC/train/%s \n" , $1 , $1)}' | bash | |
cat split/Validation.txt |sed 's/.bmp/_GT.bmp/' | trim | awk '{printf("cp /home/rudy/datasets/MSRC/MSRC_ObjCategImageDatabase_v2/GroundTruth/%s /home/rudy/datasets/MSRC/GT_by_partition/val/%s \n" , $1 , $1)}' | bash |
\documentclass[parskip]{scrartcl} | |
\usepackage[margin=15mm,landscape]{geometry} | |
\usepackage{tikz} | |
\usepackage{keyval} | |
\usepackage{ifthen} | |
%==================================== | |
%emphasize vertices --> switch and emph style (e.g. thick,black) | |
%==================================== | |
\makeatletter | |
% Standard Values for Parameters |
-- Without the monkeypatching (standard nn) | |
rudy@rudy-Tower:~workspace/utc-caltech[master] | |
$ time luajit luatools/prediction.lua | |
data/res/divers-bignn/set09/V010.txt | |
real 1m1.162s | |
user 0m51.132s | |
sys 0m13.084s |
<Task commandLine="installDatadogAgent.cmd YOUR_API_KEY" executionContext="elevated" /> |
Try
> import wmi
> conn=wmi.WMI(None)
> res = conn.Win32_PerfFormattedData_PerfDisk_PhysicalDisk()
> print res[0]
If it doesn't work, try:
Get an api key from yo
Go to Datadog webhook integration page
Setup the parameters as follows
Url = http://api.justyo.co/yo/
{ | |
"To":"+1347XXXXXXX", | |
"From":"+1347XXXXXX", | |
"Body":"$EVENT_TITLE \n Related Graph: $SNAPSHOT" | |
} |