Loading JSON stream from Logstash to Elasticsearch
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
17:44
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#
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
15:53
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?
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
15:53
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
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
15:53
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
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
13:12
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
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
13:12
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
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
13:12
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
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
11:20
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 ...
Android - Passing an ArrayList of Custom Objects to Another Activity
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
11:20
Vote count: 0 So, I've been struggling on this for a while and have searched on here for hours without finding anything that really helped. I have a custom class Streak. When the user creates a new Streak in my Main Activity, I want for that streak to be added to a list of total streaks, which I wou...
TransferClient returns no error message after failed operation
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
11:20
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 to search child documents with the same parent id in Elasticsearch?
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
10:01
Vote count: 0 mapping: { "mappings": { "branch": {}, "employee": { "_parent": { "type": "branch" } } } } documents of branch: { "index": { "_id": "london" }} { "name": "London Westminster", "city": "London", "country": "UK" } { "index": { "_id": "liverpool" }} { "name": "Liverpool Central", "city": ...
How does pagination work in web like stackoverflow
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
10:01
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?
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
10:01
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
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
9:00
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...
Hwo to upgrade python3.2 to python3.5 on ubuntu12.04 with apt-get
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
9:00
Vote count: 0 On My Ubuntu, apt-get install python3 installs python3.2. Even though I installed python3.5 with apt-get install python3.5, It just install another python3.5 not to upgrading python3. (It means there are two python version3 python3 and python3.5) At the first I remove python3(python3.2...
Separate Money Currency from Numbers in PHP
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
9:00
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?)
Unity: Pitching a vehicle up/down causes flips during transformation
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
8:00
Vote count: 0 I'm making a space game, and to pitch a spaceship, you have to click on a UI 'dial' (circle) to set the desired 'pitch' angle (IE you click ~45degrees above the x axis on a circle to pitch upwards by 45 degrees etc) The same for rotating left and right, and rolling left and right. Rota...
react-native init AwesomeProject throws error babel
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
8:00
Vote count: 0 enter image description here react-native init AwesomeProject An error asked 33 secs ago温凡超 Let's block ads! (Why?)
Duplicate items gridview inside expendablelistview
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
8:00
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
◷
تاریخ انتشار:
1395/5/14
|
ساعت:
6:54
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 ...