Jack-Jack

1

votes
2

answer
1.6k

views

Is there an text editor/IDE with EBNF/BNF support?

I will be writing a small grammar to parse a text file, the grammar can be a bit large so I want to read it with highlight. I know it's a bit off-question but find this using google is very hard. What else place is better than ask to this to a lot of experient programmers.
Jack
5

votes
3

answer
240

views

pointer value change C++ [duplicate]

This question already has an answer here: Can a local variable's memory be accessed outside its scope? 19 answers I'm relatively new too C++ programming. While I was working on a code about arguments passing with an array of character pointers. I encountered a problem where the value of my pointers...
Jack
0

votes
1

answer
21

views

How to call power shell script file by passing attributes in c#

How to call power shell script file by passing attributes in c#. I'm using below code to call ps1 file by passing inputs but getting error near invoke. error message: System.Management.Automation.CommandNotFoundException: 'The term 'Get-Childitem C:\Anand\samplemm.ps1' is not recognized as the name...
Jack
1

votes
1

answer
96

views

Space between <div> and a script

I would like to insert a space between the border and Google Custom Search box, like this (made with paint): but by default it's like this: How to?
Jack
3

votes
1

answer
54

views

pointer value change C++

I'm relatively new too C++ programming. While I was working on a code about arguments passing with an array of character pointers. I encountered a problem where the value of my pointers are changed after certain operations. Below is my code. #include using namespace std; void input(char* argv[], i...
Jack
1

votes
2

answer
832

views

Print a matrix in a text file

I want to plot a 3D plot (x,y,z) with gnuplot. In order to do so I thought of writing a matrix to a textfile using fstream in C++ and then according to this post get the 3D plot of a matrix of data using splot. Assuming that this is the right way to do that the data inside the text file should lo...
Jack
0

votes
2

answer
30

views

I am hoping to figure out how to create a list with the following set of stipulations

Please close question, it has been answered . I am attempting to resolve these components by getting inputs into the proper places and lists into the proper places. I have tried some code regarding lists but this has not amounted to the result I sought out. The below is what I believe to be the basi...
Jack Dorsey
0

votes
0

answer
12

views

Creating views from tables that have types in Oracle SQL Developer

I am working with the oe schema in oracle sql developer and I need to create a view that joins multiple tables, some of which have types or "nested" attributes. Is there a way to put those nested attributes into a different table or eliminate them entirely? I am a relative beginner and I cant seem...
jack lawn
1

votes
1

answer
1.1k

views

Send post request using OkHttpClient

I have an activity with 2 EditText. When the user is clicking on the Send button, I want to send EditText value to my server. i tried to make a POST request when the user clicking on the button. The problem is when the user is clicking on the button He get a error, and the application closing aut...
Jack
1

votes
1

answer
1.2k

views

Is there a type safe way to access store members in ngrx/store?

I've been going through the documentation for ngrx/store using angular2 https://github.com/ngrx/store https://github.com/ngrx/example-app The example app above implies i should access the observable members of the store using : counter: Observable; constructor(private store: Store){ this.counter = s...
Jack Murphy
1

votes
3

answer
1.5k

views

Google Tag Manager preview mode not working on click

This is not a problem with viewing the GTM console on my domain. When I click the "preview" button my GTM interface refresh, but it just won't go into preview mode! Never had this problem before and I've tried closed and opened chrome, disabled cache in devTools and tried it in incognito. Nothing of...
Jack Norberg
0

votes
1

answer
13

views

Angular ngFor calling a function which returns an Observable

I'm using a function to return an Observable then using the async pipe in the template however this results in thousands of network requests and crashes the browser. I'm sure it's pretty obvious however I'm new to Angular. I've created an example on stackblitz: https://stackblitz.com/edit/angular-mv...
Jack
1

votes
1

answer
1.4k

views

How to set up django with a postgres database in a specific tablespace?

What you'd expect:: settings.py DATABASES = { 'default': { 'NAME': 'db_name', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'USER': 'user', 'PASSWORD': 'password', 'HOST': 'host', 'PORT': '5432', 'DEFAULT_TABLESPACE': 'tablespace-name', } } When I use DEFAULT_TABLESPACE, I would expect that th...
Jack Ha
0

votes
0

answer
12

views

How can I generate the density information of vehicles in only SUMO?

This is my sumocfg file code in the SUMO program. updated.net.xml is network file which I write, and trips.trips.xml is just the vehicle mobility file. In https://sumo.dlr.de/wiki/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures, there is the density information format, but I don't know how ca...
jack han
1

votes
1

answer
162

views

Handling software updates in Docker images

Let's say I create a docker image called foo that contains the apt package foo. foo is a long running service inside the image, so the image isn't restarted very often. What's the best way to go about updating the package inside the container? I could tag my images with the version of foo that they'...
Jack Wilsdon
1

votes
4

answer
1k

views

Full screen an image inside a tableviewcell when tapped Swift

I want my image that is inside my table view cell to be full screened when tapped as prompted by a uigesturerecognizer. The problem is that my didSelectRowAt func does not recognize the postedimageidentifier. Use of unresolved identifier 'postedImage' How do I get around this issue? override func ta...
Jack Richards
0

votes
1

answer
16

views

How to fix this code: Output gives an error [duplicate]

This question already has an answer here: “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP 27 answers I want to display the output from the user input. Hi Guys, I need to display the output from the user input but it seem the output give...
Jack_N_Gel
0

votes
0

answer
3

views

Why would you want external-interrupt exiting?

For a VMM using Intel VT-x, why would someone want to set the external-interrupt exiting bit in the VMCS to 0 rather than use posted interrupts (assuming that the architecture supports both)? For example, if you set the external-interrupt exiting bit to 0, now interrupts that are destined for the ho...
Jack Humphries
0

votes
0

answer
5

views

Rerunning groups of tests in xunit for diferent program modes

I have a program which can run in three modes, each of which have somewhat different operational logic, and a different data set. I am adding unit testing to this project using XUnit, and would like to have a set of tests that fires once for each of the program modes. I could do this using [InlineDa...
Jack
1

votes
2

answer
47

views

how to give a certain td a class name with javascript?

In a foreach loop in php, a list of rows with its td is created. In 1 of these rows, the folder has the name tmp. Is it possible to give that td a class hidden so that the folder is not visible? This is how the foreach produces my html: tmp Jan 31 '19 1.2 Kb .png /// So: the td in which the anchor...
Jack Maessen
1

votes
1

answer
38

views

Finding average of vector

I've only recently start programming and I've got this task to create a vector, ask the user for input values which are then appended to the vector and then the average is taken of the values entered. Right now, what I have is this: #include #include #include using namespace std; int main() { vector...
jack.man31
1

votes
2

answer
3.5k

views

Add class in drop area (file input) when dragging an external image over (dragenter) in Vue.js

I've built a simple Drag & Drop image preview over the file input in Vue. It's works fine but when the image is dragged over the dropzone I want to add a class so it will highlight the area, which it already does when you hover over it. HTML: Drop image here or click to select {{ help }} Remove Java...
Jack Barham
3

votes
5

answer
130

views

Instantiate a variable in Kotlin only if it is a null?

Lets say, I have a variable: var myObject : MyObject? = null it should be cleared in some place : myObject?.clear myObject = null and should be definitely non-nullable in a place of usage. In Java I can do something like this: private MyObject getMyObject(){ if(myObject == null) { myObject = new My...
Jack Jones
7

votes
1

answer
129

views

Intuition for “run” function of monads

I'm learning about monads in Haskell, I understood why they are useful, I understood in general what bind, join, return do. I also looked at basic usage examples for the basic reader / writer / state / list / maybe monads. Still, being a beginner, I still don't feel I have a grip on what the "run" f...
jack malkovick
1

votes
3

answer
1.8k

views

Correct permissions for Bitnami / EC2 WordPress

I'm trying to find the correct permissions setup for a WordPress site running on Bitnami / EC2. Right now, my /apps/wordpress/htdocs directory is set to daemon:bitnami. With this setup the site works, but I can't install or update plugins. I also can't edit anything over FTP. The FTP user is "ubuntu...
Jack Arturo
1

votes
3

answer
11.1k

views

Some Hybris first time use after installlation isues

[2015-10-13:2043] Here is a screen shot of the intalled extensions... ========= I think there is a problem with the initialisation script.. ========= I have now installed hybris5.6.0.2: I have now been able to run the Hybris Administration Console [localhost:9001] I have logged in. I have ran t...
1

votes
1

answer
286

views

XSD: define complex element with attribute and other child elements

I want to define an element like this: jack With this below I could define attribute id of element A: Actually it's not correct, the XSD above defines an element hi. I don't know how to discard the base attribute of element. And with the XSD below I could define the inside element : Could I combine...
JACK M
1

votes
2

answer
1.5k

views

Python: Opening a program in a new terminal [Linux]

I am writing a bootstrap program that runs several individual programs simultaneously. Thus, I require each sub-program to have its own terminal window, in a manner that gives me the ability to start/stop each sub-program individually within the bootstrap. I was able to do this on Windows using Pope...
Jack
1

votes
2

answer
965

views

how to run Spark job on specific nodes

For example my Spark cluster has 100 nodes(workers), when I run one job I just want it be ran on some 10 specific nodes, how should I achieve this. btw, I'm using Spark standalone module. Why Do I need the above requirement: One of my Spark job needs to access NFS, but there are only 10 nodes were...
Jack
1

votes
3

answer
43

views

Angular JS comment directive does not function properly

The following code does not seem to print the text out from the directive defined: app.directive("devComment", function(){ return{ restrict : "M", replace : true, template : " A comment made this print to html " }; });
jack
1

votes
1

answer
1.2k

views

How to return a value from Cudafy c# GPU calculation?

My Issue Hey, so I'm making this simple calculation to find the sum of sins between 0 and 100 degrees(as I use it as a benchmark for my systems), the calculation isn't the problem my issue is that I am new to Cudafy and I am unsure on how to properly pass in and return values so that it can be print...
Jack Maxwell
1

votes
2

answer
957

views

How do i give a non root user access to docker when using docker-dind?

I'm trying to run a Go CD agent using docker-dind to auto build some of my docker images. I'm having trouble getting the user go to have access to the docker daemon. When I try and access docker info I get the following: [go] Task: /bin/sh ./builder.shtook: 2.820s [START] [USER] go [TAG] manual G...
Jack Murphy
0

votes
0

answer
7

views

Call to web service from Sql Server - SSL issue

I am using a stored proc to call a web service running on another machine from SQL Server using sp_OACreate/sp_OAMethod... Worked fine until I added SSL certificate to web server hosting web service. Now SQL Server can't make the call. Any ideas? I have added the certificate to the local SQL Server...
Jack Walker
0

votes
0

answer
4

views

How to make a trainable initial state for a RNN in Tensorflow?

I am gonna write a bi-RNN by myself but I encounter such problem that I don't know how to make a trainable initial state. Part of my code is followed. # Inputs self.input_X = tf.placeholder(tf.float32, [batch_size, None, embedding_size]) self.input_Y = tf.placeholder(tf.float32, [batch_size, classes...
Jack Wang
1

votes
2

answer
181

views

bootstrap 3 glyphicons show text on hover

in my html I got Bootstrap glyphicons with the following code: is it possible to show some text on hover on it as it is done with img tag. Tried to add alt attribute but it did not work. Maybe there are some polifills for this (tooltips) or smth like that? Bootstrap-3 is used. Thank you.
Jack
1

votes
2

answer
43

views

Protractor looping of value in sendKeys(index)

How is possible to send value to sendKeys(value) in loop? I tried the different options to figure out it but no luck. Numbers.ts export const Numbers = { 1: '777', 2: '777', 3: '777' }; Texts.ts export const Texts = { 1: '111', 2: '222', 3: '333' }; Code.ts public async readFromFile(): Promise { co...
Jack
1

votes
2

answer
58

views

Encode character columns as ordinal but keep numeric columns the same

I have a data frame like the following: test = {"viral": "pos", "Status": "positive", "Age": 59, "score": 5} test2 = {"viral": "neg"} df = pd.DataFrame.from_dict([test, test2]) I want to encode the character columns (viral, Status) as ordinal numbers, but leave the numeric values alone. Desired outp...
Jack Arnestad
1

votes
2

answer
44

views

Can java only use ReentrantLock to guarantee non-violate variable become visible among thread

The question is: a++ operation is visible to other thread? Thread thread = new Thread(new Runnable() { @Override public void run() { for (; ; ) { lock.lock(); try { //a++ operation is visible to other thread???? a++; } finally { lock.unlock(); } } } });
jack
1

votes
2

answer
51

views

Netlogo - dynamically choose the different global variables

I am modelling a warehouse queuing system. The main agents are the parcels and sorting machines. Parcels are pulled from a specific named buffer queue (e.g. q-1,q-2, q-3...q-n) by the sorting machines for sorting. I do not want to model the buffer queue as agents, instead I would like to represent t...
Jack
1

votes
1

answer
315

views

Helm: Passing array values through --set

i have a cronjob helm chat, i can define many jobs in values.yaml and cronjob.yaml will provision my jobs. I have faced an issue when setting the image tag id in command line, following command throw no errors but it wont update jobs image tag to new one. helm upgrade cronjobs cronjobs/ --wait --set...
Jack

View additional