Questions tagged [stack]

0

votes
0

answer
8

Views

How to stack columns of a time series data in python

I have a dataframe containing time series feature. In that, I would like to stack 5 features from this dataframe, each of shape(129,300). to extract one feature alone I use: Feature=df.iloc[:,start:end] #df is the dataframe containing the complete dataset This retreives me that particular channel o...
hakuna_code
0

votes
0

answer
10

Views

Subset-AVG - Finding a subset of List Which Matches Known Rational Number

I've asked this on math overflow and used comments to clarify/overstate my question. I hope it has the intended effect and doesn't come off as jarring. I'm attempting to find what subset of numbers reach a known average. I have a list of known values, negative and possible decimals. They look somet...
Raymond Johnson
1

votes
0

answer
6

Views

Title not working on react-navigation createStackNavigator

I'm using createStackNavigator inside createBottomTabNavigator from react-navigation in my app. I want to have a title on my screen. Following React Navigation's tutorial I've implemented it this way: createBottomTabNavigator( { Home: createStackNavigator( {screen: HomePage, navigationOptions: () =...
Can Poyrazoğlu
1

votes
1

answer
75

Views

Is there a way to do a circular stack?

Good afternoon ! I am trying to make some sort of circular stack. It should be like a normal LIFO stack, but without an apparent limit. Instead of hitting it's max capacity it should eliminate or jump over the first element introduced at that moment in time ! For example: Let's say we have a stack w...
bleah1
1

votes
2

answer
56

Views

How to use -v to see a list of the files searched for in Haskell Stack

I have some Haskell code below. -- | Determine the prime factors of a given positive integer. module P36 where import Data.List import Data.Numbers (primeFactors) prime_factors_mult :: Integer -> [(Integer, Int)] prime_factors_mult = map encode . group . primeFactors where encode xs = (head xs, leng...
Ynjxsjmh
0

votes
0

answer
8

Views

AWS LambdaLogger - FULL Java stack trace log to CloudWatch? (not just including i.e: java.lang or com.amazonaws)

Whenever my Amazon AWS Lambda logs (using LambdaLogger) an Exception to its CloudWatchLogs, there is either no stack trace (just the Exception itself) or the stack trace does not include my Lambda's custom Java code from where the Exception was thrown. How can I get my AWS Lambda (in uploaded JAR) t...
cellepo
0

votes
0

answer
4

Views

pillar.get and defaults.get returns null value with nested dicts in Salt

In my pillar, I'm attempting to populate a value from a nested dict in defaults.yaml: rippled: version: 1.2.2 tags: - {{ salt['defaults.get']('rippled:version') }} I can access the top dict via the CLI, however it doesn't return the nested value, and returns null in the config which I'm building: sa...
relik
0

votes
0

answer
4

Views

Configure filebeat to control how often logs are read and to ignore old logs

I have a prospectors setup in my filebeat.yml roughly as follows: filebeat.propectors: - type: log paths: - /tmp/log/typeA*.log pipeline: 'pipelineA' fields_under_root: true fields: logtype: TYPEA - type: log paths: - /tmp/log/typeB*.log pipeline: 'pipelineB' fields_under_root: true fields: logtype:...
1

votes
2

answer
391

Views

How to Convert StackFrame Collection to String?

I have a IEnumerable frames for store some custom StackFrame. I want to convert that to the string type like StackTrace.ToString() format. for example: at TestStackTrace.Form1.button2_Click(Object sender, EventArgs e) in d:\Programming\temp\TestStackTrace\TestStackTrace\Form1.cs:line 66 at System.W...
Behzad
1

votes
2

answer
920

Views

Unable to connect docker container to logstash via gelf driver

Hi guys i'm having trouble to send my server container logs to my ELK stack. No input is sent to logstash so i'm unable to set kibana index for collecting logs. I think my problem is in the port settings. Here is the docker-compose yml for the LAMP stack (only the server service): version: '3' servi...
1

votes
1

answer
99

Views

how to know a c program's stack overflows?

i am simulating a problem(3d Ising Model) in c but when the problem size gets larger the program stop and the below error appears : Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) in the program I have a recursive function that does all the works, i suspect that the error is...
mehrdad
0

votes
0

answer
7

Views

stack converting to postfix from infix only half works

first I want to start by saying I have read all the posts on here related and it still did not help my answer. my code is working for some of the equations but not all. I hav changed the || to && and back, rearranged the order of if statements tried adding an extra 'pop' but I still can't get this t...
Steven Anderson
1

votes
1

answer
234

Views

What are benefits of running ELK stack on Docker over running it on VM

I'm learning ELK stack. I wonder, why would people run it on Docker? If I understand everything correctly, it would have to have some directory of a host OS mapped to be persistent over resets of the image. Meanwhile, running just VL with installed docker would be persistent anyway. Why should I use...
Kowalski Paweł
1

votes
3

answer
43

Views

Is it possible to allocate structs on the stack with its definition hidden in a source file?

I have the following header file: struct StackList_s; typedef struct StackList_s StackList_t; // From here I add in the method signatures And the following source file: struct StackList_s { integer_t count; struct StackListNode_s *top; // Here begins the linked list // Some other members that store...
LeoVen
1

votes
1

answer
36

Views

Is the difference between programming model wrt Program Counter and Stack Pointer in case of Assembly?

Processor model I ● Registers  PC – Program Counter  Single data register (accumulator) without name  We will use symbol A to describe operations on this register ● Stack with an unspecified implementation ● Data specified by name or value  More realistic model will...
user366312
0

votes
1

answer
5

Views

In React or React Native, setting a color to an SVG

Can you set a prop that normally takes a hex color to an SVG? In React Navigation, the active background (the color of the tab behind the tab icon/text) needs to be an SVG, not a hex color like this: tabBarOptions: { activeTintColor: colors.white, activeBackgroundColor: , inactiveTintColor: colors....
Perry Hoekstra
1

votes
0

answer
17

Views

how to sync data from mongodb to elastic search with python

I am currentlt using Monstache connector for sync mongodb elastic search. is there any other recommended connector for sync. Architecture: Angular7 Elastic Search Mongo DB Phython Pycharm. is there any other soultion apart from this. https://rwynn.github.io/monstache-site/.
Mohamed Sahir
1

votes
0

answer
407

Views

I want to pass props to stackNavigator inside tab navigator

I am trying to pass props from login screen to the whole app because every fetch request depend on user credentials so how can I achieve this. routeConfig file: export const sendStack = StackNavigator({ send:{ screen:Send, }, confirm:{ screen:ConfrimPay, } }); export const transactionStack = StackNa...
mohamed aldie
1

votes
1

answer
36

Views

Make 2 modules in 1 project

I have a mean-stack project. In my index.js, I have in the end router.get('*', function(req, res) { res.sendfile('./views/index.html'); }) module.exports = router; Now I want to treat all the webpages matching https://localhost:3000/1/addin/* by ./views/addinIndex.html, where I expect to refer to di...
SoftTimur
1

votes
0

answer
267

Views

Why can I load a module in GHCi, while Atom can't find it?

I'm using Haskell with Stack and Atom on Windows 10. Sometimes, I like to just write a stand-alone .hs file to play around with various things. When I do that, I prefer to interact with it using GHCi. Usually, I start it from Git Bash: $ stack ghci --color never From here, I can add modules: Prelude...
Mark Seemann
1

votes
0

answer
46

Views

How to add tarball (Cardinality package) to dependency with stack?

I have mylib library package and myapp application. I want to use Cardinality package in mylib which is available only as tarball. So, I added to mylib stack.yaml: packages: ... - location: https://hackage.haskell.org/package/Cardinality-0.2/Cardinality-0.2.tar.gz extra-dep: true Then I add to mylib...
Paul-AG
1

votes
1

answer
129

Views

Fasm declare structure in stack

I cant declate the structure in the stack rightly in fasm for some reason. Here is the problem, let's say i have this structure: struct IMAGE_SECTION_HEADER _Name db IMAGE_SIZEOF_SHORT_NAME dup (?) union PhysicalAddress dd ? VirtualSize dd ? ends VirtualAddress dd ? SizeOfR...
StrawberryMilk
1

votes
1

answer
1.6k

Views

NodeJS - FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed

I am having this problem... I am using Windows 7 and Chrome. I have tried this solution: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory But didn't work. Also tried this other: Devextreme : FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory...
URKA
1

votes
0

answer
101

Views

MongoDB - aggregating data between two collections

My application is a reservation system that uses full calendar API. The calendar has a seller and a customer that are routed to view the same calendar and see the same events. The seller creates resources on the calendar and the customer can see the same resources and book them on his end. My goal:...
asus
1

votes
2

answer
93

Views

Stack Overflow during Binary Search

I am using binary search to find a balance point between the planets. The method binaryBalance takes in Arraylist of planets which is an object with displacement and mass property. It also takes in the displacement of two planets between which I am trying to find a balance point of. Double x is the...
Maeror
1

votes
1

answer
348

Views

Logstash, how to use grok patterns coming from event data

I have an ELK stack deployed on kubernetes used to collect containers' data. Among all the rest, it is using a grok filter to parse the actual log line based on a pattern. My wish is to be able to setup this pattern by using an annotation in the kubernetes pod. I added an annotation called elk-grok-...
whites11
1

votes
1

answer
612

Views

Docker stack deploy postgresql slave container restart in few minutes

Run this YML with docker stack in swarm. Docker stack file to create Postgresql master/slave setup with 2 slaves. The slave container will restart in few minutes repeat and repeat.... How to fix it ? docker stack deploy -c docker-stack-postgresql.yml post docker-stacl-postgresql.yml version: '3' ser...
Kevin Lin
1

votes
0

answer
35

Views

Changing Heroku app command when directly pushing docker image

I'm building a docker image locally and pushing it directly to Heroku using docker tag registry.heroku.com// docker push registry.heroku.com// as explained here. The reason for doing it this way is to be able to use stack's docker integration, which seems promising. I set it up using the following...
jorgen
1

votes
1

answer
60

Views

Stack and Heap addresses in Objective-C

I did a lot of research about memory allocation in Objective-C and I've read a lot of articles and blogs about this stuff but I stil have some unclear moments. I know that object types stores in heap and primitive types in stack, but may you please explain to me a little bit more about listed exampl...
G. David
1

votes
0

answer
30

Views

Relation based search with elasticsearch / kibana

I'm running a software where a client-application communicates with a backend-service. In order to be able to track what the client does I want to analyze my logs in the backend. Therefore I've setup an ELK stack in the backend. Setup and application behaves as follows: a) filebeat delivers logfiles...
BK_
1

votes
1

answer
441

Views

Converting from SQL to elasticsearch query

Elasticsearch noob and need help with a query. I have the following SQL query that I need to convert to a query to Elasticsearch SELECT COUNT(*) FROM table WHERE Message LIKE '%Communication has failed.%' AND [Date] > CONVERT( CHAR(8), GetDate(), 112) + ' 07:40:00' AND [Date] < CONVERT( CHAR(8),...
flalar
1

votes
0

answer
260

Views

Third time's the charm - Nondeterministic Stack / GHC

I've been trying to install the package text using Stack inside an Ubuntu VM. The funny thing is - it doesn't the work the first time (Stack stops with a segfault), it doesn't work the second time (an internal GHC error) but it works the third time. The VM is set up using the following Vagrantfile....
theindigamer
1

votes
0

answer
36

Views

Cycle navigation between stacks - React Native

I want to know how can I make a navigation in React Native using React navigation between three stackNavigators in a cycle (stacksNavigators call each Other). I am using React Native 0.44.3, React 16.0.0-alpha.6 export let AStack = StackNavigator({ A: { screen: ecranA, navigationOptions: { title: 'S...
Marwa
1

votes
0

answer
474

Views

How to protect Docker (data-only) volumes from deletion?

I use to create Docker (data-only) volumes like this: docker create -v /data/--name data-container busybox Then I use these volumes in docker-stack setups, transfer them to different hosts, export them to read out logs, do backups, ... But from time to time it happens that someone (accidentally) cle...
Datz
1

votes
0

answer
32

Views

How to deal with a minion “already deleted from tracker”?

When running salt '*' test.ping -s --out json I get the following output (reduced to just a few typical cases, the ellipsis covers the same cases) Minion sent222 did not respond. No job will be sent. (...) minion sent005 was already deleted from tracker, probably a duplicate key (...) { (...) 'sent...
WoJ
1

votes
2

answer
98

Views

Stack sub Stack creation

How to create a stack within a stack? Like [[1 2 3][3 4 5][6 7 8]] So there are three substacks like [123], [456], [789] which sit within a main stack. How do I create it with stack build in function in Java?
Rima Sur
0

votes
0

answer
6

Views

Uploading CSV Files To MongoDB | Reading From CSV File

I am currently working on a project based on MEAN FULL STACK that requires uploading a CSV file from a personal space to MONGODB by a general user and then reading the uploaded CSV file from mongoDB and then displaying it to the front-end using html and css. I am unable to figure out how to upload...
1

votes
1

answer
95

Views

Backtracking in Python with Stack Pop

I'm using backtracking to get permutations of non-duplicates nums list. E.g nums = [1, 2, 3], the output should be '[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]. I'm stuck on pop elements out from recursively stack. Anyone can help me what's the problem of my code. Thanks. class Solution(object...
Jonathon.lau
1

votes
0

answer
62

Views

Saltstack result of Orchestrate run via email

I was trying to find ways to get results of an Orchestrate run via email. I have salt reactor setup right now which sends me alerts in case any job fails using SMTP. What setup should I have so that I receive an email when orchestration run starts and when it ends or in case of failure. There is a h...
Himanshu Jain
1

votes
1

answer
542

Views

Pillar jinja error on iteritems

Having issues iterations via pillar data and jinja template. I took most of the template from a working salt/pillar installation but now failing to work in new environment. I have tried several different syntaxes with the implementation of the iteration but still get same error. ServerName: Data fa...
UMBC Developer

View additional questions