https://docs.timescale.com/v0.12/api#chunk_relation_size_pretty
SELECT chunk_table, table_size, index_size, total_size FROM chunk_relation_size_pretty('meas_time_data');
import os | |
from PIL import Image | |
import piexif | |
import glob | |
import pathlib | |
def copyMetadata(srcImgPath, destImgPath): | |
# Open the source image | |
srcImg = Image.open(srcImgPath) |
# this script get links from a directory listing web page and downloads the files from it | |
import urllib.request | |
from urllib.parse import urljoin | |
from bs4 import BeautifulSoup | |
import requests | |
import os | |
import argparse | |
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Files.aspx.cs" Inherits="Files.FilesPage" %> | |
<%@ Import Namespace="System.Collections.Generic" %> | |
<%@ Import Namespace="System.IO" %> | |
<%@ Import Namespace="Files" %> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Contents of <%= path %></title> | |
<style type="text/css"> |
function inWords(numIn) { | |
var inWordsSub = function(num) { | |
var a = ['', 'One ', 'Two ', 'Three ', 'Four ', 'Five ', 'Six ', 'Seven ', 'Eight ', 'Nine ', 'Ten ', 'Eleven ', 'Twelve ', 'Thirteen ', 'Fourteen ', 'Fifteen ', 'Sixteen ', 'Seventeen ', 'Eighteen ', 'Nineteen ']; | |
var b = ['', '', 'Twenty', 'Thirty', 'Forty', 'Fifty', 'Sixty', 'Seventy', 'Eighty', 'Ninety']; | |
var n = ('0000000' + num).substr(-7).match(/^(\d{2})(\d{2})(\d{1})(\d{2})$/); | |
if (!n) return; | |
var str = ''; | |
str += (n[1] != 0) ? (a[Number(n[1])] || b[n[1][0]] + ' ' + a[n[1][1]]) + 'Lakh ' : ''; | |
str += (n[2] != 0) ? (a[Number(n[2])] || b[n[2][0]] + ' ' + a[n[2][1]]) + 'Thousand ' : ''; | |
str += (n[3] != 0) ? (a[Number(n[3])] || b[n[3][0]] + ' ' + a[n[3][1]]) + 'Hundred ' : ''; |
https://docs.timescale.com/v0.12/api#chunk_relation_size_pretty
SELECT chunk_table, table_size, index_size, total_size FROM chunk_relation_size_pretty('meas_time_data');
https://wiki.postgresql.org/wiki/Disk_Usage
https://stackoverflow.com/questions/18907047/postgres-db-size-command
SELECT nspname || '.' || relname AS "relation",
pg_size_pretty(pg_total_relation_size(C.oid)) AS "total_size"
FROM pg_class C
ssh
(no extension) in the sd cardwpa_supplicant.conf
and save it in the sd cardcountry=in
Each measurement is given an Id and queries are assigned to them Queries will have placeholders for time range Measurement Id will not have spaces
id | name | query_string | date_type |
---|---|---|---|
1 | WR_DAY_PEAK_DEMAND | select date_key, peak_demand_met from REPORTING_UAT.regional_availability_demand where date_key between {start_time} and {end_time} order by date_key | date_key |
2 | WR_DAY_PEAK_S |
oxyplot hover tooltip https://stackoverflow.com/questions/34867357/chart-plot-points-show-tool-tip-in-oxyplot
oxyplot official docs http://docs.oxyplot.org/en/latest/introduction/index.html
simple oxyplot example http://navjodh.com/general-programming/using-oxyplot-library-with-c/
# -*- coding: utf-8 -*- | |
""" | |
Created on Sun Aug 12 19:22:37 2018 | |
@author: Nagasudhir | |
https://ashishpython.blogspot.com/2013/11/how-to-connect-one-computer-to-another_1.html?m=1 | |
https://www.howtogeek.com/howto/16196/how-to-disconnect-non-mapped-unc-path-drives-in-windows/ |