River IQ

Image

transfer files widow to Linux

  Ashish Kumar      other February 14, 2020

riveriq_copytoedge.bat@echo off set timestamp=%DATE:/=-%_%TIME::=-%C:\"Program Files (x86)"\WinSCP\WinSCP /script="E: iveriqrtifactscopytoedgeconfig iveriq_copytoedge.txt" /log="E: iveriqloggingcopytoedgeconfig%timestamp%.log" riveriq_copytoedge.txt# Being intended for interactive session, we are not enabling batch mode# Connectopen sftp://testuser:password123@testserver.riveriq.com/# Synchronize paths provided via environment variablessynchronize remote E: iveriq estsourcedatacleansedDataconfig /data/home/riveriq/testsource/data...

Read more
Image

How to remove new lines within double quotes

  Ashish Kumar      other February 14, 2020

!/usr/bin/perluse warnings;use strict;use Path::Tiny; use Text::CSV;use Time::Piece;use File::Path qw( make_path );use diagnostics;use Try::Tiny;#use File::NCopy;use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rmove dirmove);use Time::HiRes qw( time );my $start = time();my $date = localtime->strftime('%Y%m%d');my $feed_date = $date;if(exists($ARGV[3])){  $feed_date = $ARGV[3];}# build source directory path ==>my $source_feed_dir = $ARGV[0];my $source_feed_dir_path = path($source_feed_dir);# process i.e. current date ...

Read more
Image

Facebook Page Analytics

  Ashish Kumar      other September 23, 2018

Facebook Insights has helped us determine the tastes and interests of our customer demographics.     OverviewThis section provides a snapshot of the last seven days of your Pages performance. It focuses on 3 core areas:·         Page Likes: Total and new likes for your Page·         Post Reach: Total number of unique people who were shown your Page and posts·  &...

Read more
Image

Page Insights and Post Insights Matrices mapping

  Ashish Kumar      other September 22, 2018

/{object-id}/insightsFacebook Insights is a product available to all Pages and Apps on Facebook using the Insights dashboard. This object represents a single Insights metric that is tied to another particular Graph API object (Page, Post, etc.). This object is returned by the following edges:/{page-id}/insights/{metric}/{post-id}/insights/{metric} Key Metrics.Column Name(Page Level) Metrics Name Lifetime Total Likes page_fans Daily New Likes page_fan_adds_unique Daily Unlikes ...

Read more