Posts

elapsed + aggregate passing custom fields in Logstash -

i using elapsed plugin calculate time , aggregate plugin display it. added custom fields elapsed filter can see below: add_field => { "status" => "status" "user" => "%{byuser}" } one static other 1 dynamic coming event. on output of logstash display static values not dynamic one.. it displays %{byuser} dynamic one. task id , status fields works fine , got right values. any idea why? little bit more code elapsed { unique_id_field => "assetid" start_tag => "tag1:tag2" end_tag => "tag3:tag4" add_field => { "wasinstatus" => "tag3" "user" => "%{byuser}" } add_tag => ["customtag"] } grok input: grok { match => [ "message", "%{timestamp_iso8601:timestamp} %{number:assetid} %{word:event}:%{word:event1} user:%{username:byuser}...

java - Valid values for setFields in Google Drive API -

i've taken following code google documentation . public static void detectdrivechanges() throws ioexception { startpagetoken response = drive.changes() .getstartpagetoken().execute(); string savedstartpagetoken = response.getstartpagetoken(); system.out.println("start token: " + savedstartpagetoken); // begin our last saved start token user or // current token getstartpagetoken() string pagetoken = savedstartpagetoken; while (pagetoken != null) { changelist changes = drive.changes().list(pagetoken) .setfields("*") .execute(); (change change : changes.getchanges()) { // process change system.out.println("change found file: " + change.getfileid()); } if (changes.getnewstartpagetoken() != null) { // last page, save token next polling interval savedstartpagetoken = changes.getnewstartpagetoken(); ...

html - Scrapping using codeigniter and i need title and custom link -

<div id="archive_content_block"> <div class="row"> <div class="col-md-6 col-sm-6"> <div class="archive_cat_caption"> <h4>অর্থনীতি</h4> </div> <ul> <li><i class="fa fa-square-o"></i>&nbsp; <a href="http://67.227.189.112/~rtvnews24/economy/2126/বাধ্যতামূলক-করারোপের-প্রস্তাব-অর্থমন্ত্রীর"> <font style="color:rgb(33, 33, 33)">বাধ্যতামূলক করারোপের প্রস্তাব অর্থমন্ত্রীর</font> </a> </li> </ul> </div> <div class="col-md-6 col-sm-6"> <div class="archive_cat_caption"> <h4>খেলাধুলা</h4> </div> <ul> <li><i class="fa fa-square-o"></i>&nbsp;<a href="http://67.227.189.112/~rtvnews24/sports/2096/অস্...

batch file - Visual Studio Hangs After Adding Post-Build-Event -

i following this tutorial explains how attached post-build events project. this .bat file (tried , without d: rem d out): cmd echo parameter=%1 cd %1 rem d: copy wpffiledeleter.exe temp.exe "..\..\ilmerge.exe" /out:"wpffiledeleter.exe" "temp.exe" "microsoft.windowsapicodepack.dll" "microsoft.windowsapicodepack.extendedlinguisticservices.dll" "microsoft.windowsapicodepack.sensors.dll" "microsoft.windowsapicodepack.shell.dll" "microsoft.windowsapicodepack.shellextensions.dll" del temp.exe and added ilmerge.exe.config per tutorial (i getting unresolved assembly reference not allowed error): <configuration> <startup uselegacyv2runtimeactivationpolicy="true"> <requiredruntime safemode="true" imageversion="v4.0.30319" version="v4.0.30319"/> </startup> </configuration> but when build project in vs hangs messag...

php - remove unnecessary words from string -

i want remove words string make image alt tag more relevant. the problem is, if have phase this: barack obama @ restaurant in venice i want exit be: barack obama restaurant venice but had is: barack obamaa restaurantvenice code:- $a = array( ' @ ', ' in ', ' arriving ', ' ', ' leaving ', ' walks ', ' walking ', ' ' ); $str = 'barack obama @ restaurant in venice'; echo str_replace($a,"",$str); if use words without space in array result horrible: brck obm resturnt venice any ideas? you have add 1 space inside "" like below:- echo str_replace($a," ",$str); check here:- <?php $a = array( ' @ ', ' in ', ' arriving ', ' ', ' leaving ', ' walks ', ' walking ', ' ' ); $str = 'barack obama @ restaurant in venice'; echo str_replace($a," ",$str); output:- https://eval.i...

javascript - jQuery conflict causing woocommerce product images not to load -

i have script hide navigation @ point on homepage: jquery(document).ready(function() { jquery("#dot-nav").show(); //show div var topofothdiv = jquery("#hidedn").offset().top; jquery(window).scroll(function() { if(jquery(window).scrolltop() > topofothdiv) { //scrolled past other div? jquery("#dot-nav").hide(100); //reached desired point -- hide div } if(jquery(window).scrolltop() < topofothdiv) { //hide div jquery("#dot-nav").show(100); } }); }); however it's causing woocommerce product images not load. don't need script on woocommerce pages before attempt mess functions.php enqueue on homepage know how can solve this? i'm little more jquery novice apologise if need more context etc! the error raised, because cannot offset of hidden element, or element not exist. jquery not support getting offset coordinates of hidden elements or accou...

javascript - How to increase a variable"s value by 1 eveytime I fire a function -

this question has answer here: count functions calls javascript 4 answers how do have pos=0 , each time fire function pos+=10 , how store how many times fire in var you can following: var count = pos/10 thanks