Vote count: 0 My logstash version is: # /opt/logstash/bin/logstash --version logstash 2.2.4 it is configured to receive input from port 5044 according to the filebeat file: /etc/logstash/conf.d/02-beats-input.conf input { beats { port => 5044 ssl => false ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt" ssl_key => "/etc/pki/tls/private/logstash-forwarder.key" } } I have set ssl to false as I am not using it but when I start the logstash service normally with systemctl it start and ...
ادامه مطلبVote count: 0 i'm developing a big shiny app whith lots of modules, and how to avoid writing a lot of callModule? asked 1 min agofung This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....
ادامه مطلبVote count: 0 My problem is pretty simple but elusive in nature. When you will load the index.php, (as localhost using xampp) you will be presented with a simple form. Now there are multiple elements on this form, and it's still a work in progress, so the possibility of multiple bugs is plausible. However, there's this one bug that's really aoying. THE PROBLEM: On changing the Due Date element, the content of the following input boxes changes due to the fact that they're bind with it. Now it won...
ادامه مطلبVote count: 0 I have some code and when it executes, it throws a NoReverseMatch, saying: NoReverseMatch at /my_url/ Reverse for 'my_url_name' with arguments '()' and keyword arguments '{}' not found. n patte(s) tried: [] What does this mean, and what can I do about it? asked 18 secs agoSayse 1 Answer Vote count: 0 The NoReverseMatch error is saying that Django caot find a matching url patte for the url you've provided in any of your installed app's urls. The NoReverseMatch exception is raised by...
ادامه مطلبVote count: 0 Recently when developing an iOS app, I encountered a problem that i need to have two view controllers to share some data, or even retrieve UI status from another view controller. To honor this feature, i defined and implemented delegate for view controllers. @protocol ViewControllerADelegate -(id)dataForSomePurposeForViewController:(ViewController *)viewController @end and then when pushing a new viewController(in ViewControllerA) class, I will set the currentViewController as dele...
ادامه مطلبVote count: 0 I am always wondering how to prove the correctness of a simple program. For example, a interview problem like First Missing Positive. The program looks like this: public class Solution{ public int firstMissingPositive(int[] A){ int i = 0; while(i < A.length){ if(A[i] != (i+1) && A[i] >= 1 && A[i]...
ادامه مطلبVote count: 0 The problem is taken from initializing and retrieving data from Firebase, however I will translate this to pseudo in order those who are not familiar could also contribue. Please consider the following code: ` //Given the following API (from Firebase) MyRemoteDBClass.asyncAuthenticate(initCompletedListener); MyRemoteDBClass.asyncDataFetch(fetchCompletedListener) // of course you have to authenticate before fetching the data Class MyClassA.init() { MyRemoteDBClass myRemoteDBClassIns...
ادامه مطلبVote count: 0 Does the below 2 lines of codes produce the same output? Uri.parse(BASE_CONTENT_URI.toString() + "/" + PATH_CARDS); BASE_CONTENT_URI.buildUpon().appendEncodedPath(PATH_CARDS).build(); asked 1 min agoKar Meng This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....
ادامه مطلبVote count: 0 I would like to write to kafka from spark stream data. I know that I can use KafkaUtils to read from kafka. But, KafkaUtils doesn't provide API to write to kafka. I checked past question and sample code. Is Above sample code the most simple way to write to kafka? If I adopt way like above sample, I must create many classes... Do you know more simple way or library to help to write to kafka? asked 1 min agouser4252489 Let's block ads!...
ادامه مطلبVote count: 0 I am very interested in AngularJs but I heard AngularJs is not good for SEO then why should we use it? I know that it has great features, performance and fast to develop applications but almost all businesses need perfect SEO. If it is not good in SEO then why people would choose AngularJS? asked 48 secs agouser2899728 Let's block ads!...
ادامه مطلبVote count: 0 I have defined this class: class numbers { private: int i{ 0 }; int j{ 0 }; public: int get_i() const; int get_j() const; void set_numbers(int, int); numbers(int x, int y); numbers(); }; Now in the int main(void) what is the difference between the following statements: numbers numberA; numbers numberA (); numbers numberA {}; numbers numberA (10,20); numbers numberA {10,20}; Basically I am confused between the use of () empty or otherwise vs {} empty of otherwise. Both of them seem ...
ادامه مطلبVote count: 0 i'm trying to find out the key of a xor encryption but something seems be wrong. the ecrypted file begins with this hex string: 78DF2B983C9428942894892CD8D6CFF4F8942895289428952894319428949BFD8F0289089D068DC556C458C25D94289428942894289428942894289428942894289428942894289C289428942894289428942894289428942894289428942894289428942894289428942894289428942894289428942894289428942894289428942894289428942894289428942894.. i know this is a zip comressed file. the zip header structure is so...
ادامه مطلبVote count: 0 I am following the git-flow workflow model for the version controlling. While I was working in a feature branch, someone else merged another feature branch to develop branch which contains some tree changes of the project. Now the project structure in my feature branch is different from the structure of the develop branch (eg: In my feature branch I am working in a file located in, "com.translators.components" . But in the develop branch the file is located in, "modules.com.transla...
ادامه مطلبVote count: 0 I have tried this two modules: https://www.npmjs.com/package/react-fullscreen https://www.npmjs.com/package/react-fullscreen-component Im using react-redux boilerplante, with webpack isomorphic tools, like this: app.use('/app', (req, res) => { .then(store => { res.send( 'n' + ReactDOM.renderToString( ) ) }) .catch(err => { res.status(err.code) res.redirect('/signin?error=true') }) }) asked 1 min agoRobsonsjre Let's block ads!...
ادامه مطلبVote count: 0 I'm taking a data structures class right now, and we have a programming assignment. One of the guidelines is to keep code 'modular,' about a page per module. We never used this term in my programming class, and I can't really tell if 'module' in this case refers to class, method, or some other concept. Is the concept of a module in Java established, and if so, what does it refer to? Thanks in advance. asked 26 secs agooldchemist Let's block ads!...
ادامه مطلبVote count: 0 What is the correct css for the list of results to show correctly? Here are the steps to view the results: 1) Navigate to http://mypubguide.com/good-pubs/east-region 2) Type "Hull" in the search input on the navigation bar and enter 3) Check: You see a list of results but the styling is incorrect, e.g., the anchor tag is not showing the text correctly and other elements look badly formatted. How I resolve this? asked 40 secs agoCaotaurus Let's block ads!...
ادامه مطلبVote count: 0 I'm trying to get the app attribution (app name) to display on all posts to Facebook from my app using the following code: -(void)shareToFacebook { if( [m_selectedPhotos count] > 0 ) { NSMutableArray *photos = [NSMutableArray array]; for( int i = 0; i < [m_selectedPhotos count]; i++ ) { NSNumber *selected = [m_selectedPhotos objectAtIndex:i]; if( selected.boolValue == YES ) { UIImage *selectedImage = [m_scrollView imageViewAtIndex:i].image; FBSDKSharePhoto *photo = [[FBSDKSharePhot...
ادامه مطلبVote count: 0 I am new in Haskell and I had started a little project.When I want to compile it, I always recieve the error: [1 of 1] Compiling Main ( src/main.hs, src/main.o ) src/main.hs:51:9: The type signature for ‘theDungeon’ lacks an accompanying binding Now I don't know what this error means or how I can fix it. Here is the source-code: import Prelude import qualified UI.HSCurses.Curses {-- DEFINE THE TYPES --} data Tile = Tile -- the tiles of the map {char :: Char ,isBlocking :: Bool ,pos...
ادامه مطلبVote count: -1 I was freely browsing to my /usr/local/bin/ folder and I wanted to test my brand new tree --noreport -fp command, and suddenly, I saw a program nammed thor so I wanted to know more about it.However it tus out that no one know about it on Google and I can't found any info on it. So I tried to run it and it look like a packet manager: sam1902$ thor -h Commands: thor help [COMMAND] # Describe available commands or one specific command thor install NAME # Install an optionally named T...
ادامه مطلبVote count: -1 In the context of a gif, what would be the purpose of this coding: {"loader.cfg":{"25":{"load":1,"send":1,"v":201605200632,"wait":1,"tid":7110,"executed":1},"35":{"load":1,"send":1,"v":201601120145,"wait":1,"tid":20010,"executed":1}..etc. (tagged as javascript but could be wrong) asked 1 min agoLdapman123 Let's block ads!...
ادامه مطلب