Loading JSON stream from Logstash to Elasticsearch
Vote count: 0 I'm trying to load JSON stream (lines of json objects file) through logstash to elasticsearch. Some of my json object field contains unicode as you can see below. {"status_link": "https://www.facebook.com/asia/videos/1118055131588324/", "num_loves": "4", "num_sads": "0", "num_wows": "0...
replace a string if it Contains Format in c#
Vote count: 0 Good Mo ing Together, I´m dveloping a Quality Management software to show Errors of a Provisioning tool. therfore I read all errors from an XML and group them but there are errors like: "Forcedtime 1.08.2016 17:51:00 is in the past" is it possible to find Date-Values like this in a str...
How to exclude specific directories for dist-gzip / dist-zip?
Vote count: 0 Background: Automake provides different types of distributions. After reading the docs "What Goes in a Distribution" I know how to include extra directories in general. But I'm not sure about the best way to exclude directories in this list for a single rule. This is the part in curren...
gradient angular js not responding
Vote count: 0 i am trying to use gradient for my charts with angularjs1 using angular-chart.js version 1.0.0 but it seems that fillcolor does not recognize gradient here is my code down below var app = angular.module('starter', ['ionic', 'ngCordova', 'chart.js', 'ionic-modal-select']).controller('gr...
Factorial program using recurrsion returning wrong value
Vote count: 0 I am trying to calculate factorial using recursion but my program is retu ing wrong value. I am unable to understand the recursion functionality. Please help me in understanding how recursion works. My code is as follows: #include <stdio.h> #include <math.h> int main() { //code int T,N...
Jasmine Karma test for $scope.$on
Vote count: 0 I have written test case for $scope.$on but this time I came to a little difficult scenario. Here is the $on function: $scope.$on('x', function (eventName, eventData) { var details = _this.details; if (eventData.title !== details.title) { retu ; } if (details.item1) { someFactory.funct...
wwv_flow.g_f01.count not working in apex5 oracle
Vote count: 0 I am ru ing below piece of code on button click but nothing is inserted in dummy_tbl table. DECLARE vRowNumber number; BEGIN FOR ii IN 1..wwv_flow.g_f01.count LOOP vRowNumber := WWV_Flow.g_f01(ii); insert into galaxy_apex.dummy_tbl values(vRowNumber); END LOOP; COMMIT; END The call rea...
generate xsd and set feilds as required in JAX-WS
Vote count: 0 The following is an implementation of the specification outlined in the above picture. @WebService @SOAPBinding(style = Style.DOCUMENT) public interface WithdrawService { @WebMethod public Response withdraw( @WebParam(name="CORPCODE") String corpcode, @WebParam(name="SERVCODE") String ...
TransferClient returns no error message after failed operation
Vote count: 0 I have been trying to use TransferClient in C++ from the official SDK following the tests in the SDK. But when I run the following code, I don't get a human readable string. Ideas? TransferClientConfiguration transferConfig; transferConfig.m_uploadBufferCount = 20; static const char* A...
How does pagination work in web like stackoverflow
Vote count: 0 Let's say there're eight items in the database from C to J, C D E F G H I J, and I want 5 items per page. I will get C D E F G if I go to page 1 and H I J if I go to page two. While I'm in page one seeing C D E F G if the database is updated to A B C D E F G H I J and I go to page two,...
How to decode(utf-8) a string in python3?
Vote count: 0 I am ru ing this code on python3. I encoded the data using .encde('utf_8') while accepting from the server. But now I want to decode it in order make it human readable. All1 = soup.findAll('tag_name', class_='class_name') All2 = "".join([p.text for p in All1]) str = "1",All2.encode('ut...
Find 2d data points which fall within certain area
Vote count: 0 I have a large set of data which represents coordinates on a two dimensional plane. What would be an effective and efficient method to find all of the x,y pairs that fall within a certain radius based around a given point? (Any tips for storing the data that would make processing it ea...
Separate Money Currency from Numbers in PHP
Vote count: 0 From this given value, I have: $valueDollar = US$400.00; or $valueEuro = EU€400.00; How can i separate the characters from number. The output will be look like this: Array ( [0] => US$ [1] => 400.00 ) asked 25 secs agoAmboom Let's block ads! (Why?)
Duplicate items gridview inside expendablelistview
Vote count: 0 i need to show 2 column textview using gridview inside expandablelistview.But when i select group one the child item retu many duplicate item.I want to remove the duplicate items.I've tried to find a solution but i am ca ot find the solution.How can i solve this? Expandable Adapter pub...
i am new in windows 10 universal app
Vote count: 0 i faced an error while developing my app, when i used facebook sdk get this error> Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings. this is ...