Kévin

0

votes
0

answer
4

views

Incorrect syntax near \ and GO with user creation loop

I'm hitting a syntax issue with my antislash and dynamic sql exec and was wondering what the easiest way is to correct this loop to denote the \ and whatever other special chars are appearing in my dynamic sql in the below user login creation loop: DECLARE @Domain AS VARCHAR(50) = 'WidgetFactory\' D...
Kevin Henzel
1

votes
1

answer
170

views

Are TCP setup times this slow (1 second), typically?

My scenario is that I have a hundred small text files that I want to load, parse, and store in a DLL. Clients of the DLL are transient (command line programs), and I would prefer not to reload the data on every command line invocation. So, I thought I would write a Windows server to store the data a...
Kevin
1

votes
1

answer
730

views

Django form.errors not showing up in template

I have refrenced this stackoverflow page and tried to display my forms error on the html template. I did: {% if form.error %} {% for field in form %} {% for error in field.errors %} {{ error|escape }} {% endfor %} {% endfor %} {% for error in form.non_field_errors %} {{ error|escape }} {% endfor %}...
Kevin Hernandez
1

votes
1

answer
134

views

Electron / jquery Adding a loading animated.gif to a new opening window (Animation stops)

I have an electron project which opens a new window (an index.html file) In the opening new window at the body, I have added the animated.gif $( document ).ready(function() { // code for loading stuff here.. $('#loading').hide(); }); Then the rest of the body will load and the .gif is replaced. My p...
Kevin Porche
1

votes
1

answer
340

views

Dart - How to order datetime objects?

Using Flutter/Dart (newbie). I need to store users results in a game (score, time and name). I presume a GameResult class is the way to go? I then need to order on each users results on date/time (newest to oldest) to display a results table. How can I order on datetime values?
Kevin Dev
1

votes
1

answer
57

views

TestCafe / Multiple repository project

I have my TestCafe page models grouped together in different project repositories. When I try to use these page model repositories/packages in the main project that has the tests, I get various different errors. The latest error I get when I try to run a test that makes use of a page model in a diff...
Kevin Sikora
1

votes
2

answer
29

views

Alternating background colors on ListView.builder

I have a ListView.builder generating ListTiles from a List. I would like to achieve an alternating color like you would a typical list. Is there a Flutter official way to do this? Or I'm stuck with doing something like ListView.builder( ... itemBuilder: (...) { return ListTile .. title: Container(...
Kevin
1

votes
1

answer
21

views

Return in method just showing undefined. How to get the callback?

I have a method with a forEach loop. This works fine and shows a result list. Here is the code: test() { os.cpus().forEach(el => { if (el.model.search('Intel') === 0) { return el.model.match(/i(.*)-/)[1]; } }); } The forEach has a return and the method return undefined. I know I need to do a callbac...
Kevin Porche
80

votes
3

answer
5.2k

views

Why do these snippets of JavaScript behave differently even though they both encounter an error?

var a = {} var b = {} try{ a.x.y = b.e = 1 // Uncaught TypeError: Cannot set property 'y' of undefined } catch(err) { console.error(err); } console.log(b.e) // 1 var a = {} var b = {} try { a.x.y.z = b.e = 1 // Uncaught TypeError: Cannot read property 'y' of undefined } catch(err) { cons...
Kevin Askin
1

votes
1

answer
22

views

generate a special matrix (max value of column sum is minimum) with given number of column from a vector

Recently I come across such as a question: given a vector, one need generate a special matrix with given number of column. It should be pointed out that if the elements in the vector is not enough to fill in the generated matrix, then put 0 in the last row in the generated matrix. For the generated...
Kevin
1

votes
1

answer
3.1k

views

Executing a shell script that requires sudo from a web app

Given that the web application doesn't have su privileges, I'd like to execute a shell script that requires sudo. I'd also like to avoid having the user input the password. What are my options? This is basically what I'm trying to do. Wicket Application (Form for changing the IP) @Override protected...
Kevin D.
0

votes
0

answer
4

views

multiple Gateways on different ports of the same istio-proxy deployment not working as expected

1. Install Istio (1.0.2) kubectl apply -f https://raw.githubusercontent.com/knative/serving/master/third_party/istio-1.0.2/istio-crds.yaml kubectl apply -f https://raw.githubusercontent.com/knative/serving/master/third_party/istio-1.0.2/istio.yaml 2. Create two Deployments and their corresponding Se...
Kevin
1

votes
3

answer
4.5k

views

How do you find the FQDN of the local host in GO (golang)?

How do you find the FQDN of the local host in GO (golang)? BTW: net.LookupAddr() doesn't work on Windows. So that's not an option.
Kevin Bailey
1

votes
1

answer
5k

views

Open link from <a href> with HtmlUnit Java

I have an html file that has this part: NAME How can I open this link on href with HtmlUnit? My code: final WebClient webClient = new WebClient(BrowserVersion.INTERNET_EXPLORER_11); final HtmlPage page1 = webClient.getPage("file:\\" + newrfile); final HtmlSubmitInput button = form.getInputByName...
Kevin Rhema Akhwilla
0

votes
2

answer
27

views

c++ pointer issue involving delete operation

Here's a problem, and I am supposed to figure out what the bug is. #include struct Node { int data; Node* next; }; void foo(Node* n) { delete n->next; } Node* create(int x, Node* n) { Node* n1 = new Node(); n1->data = x; n1->next = n; return n1; } int main(void) { Node* n1 = create(1, NULL); Node*...
kevin zhang
0

votes
0

answer
18

views

Challenging Recursion Question - Tree Nodes Representing Processes

Thank you for reading this thread. I have a challenging question regarding using tree nodes to represent system processes. Below is what my code has to print out when the tree nodes of the below processes are already connected like below, 1000   1001     100101       10010101      ...
Kevin Lu
0

votes
0

answer
6

views

Python - How to generate dictionary of classes in module?

I got a project structure like this: Project some_module __init__.py baseclass.py class1.py class2.py ... where class1, class2 ... etc are subclass of baseclass. Now I want to generate a dictionary of class names and class objects (not instances). e.g. {"class1": } Currently I can get classes from o...
Kevin Fang
1

votes
1

answer
1k

views

Why does HttpURLConnection not send the HTTP request

I would like to open an URL and submit the following parameters to it, but it only seems to work if I add the BufferedReader to my code. Why is that? Send.php is a script what will add an username with a time to my database. This following code does not work (it does not submit any data to my databa...
Kevin S
0

votes
0

answer
4

views

Error: validation failed: no matches for kind “EtcdCluster” in version “etcd.database.coreos.com/v1beta2”

kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system calico-node-mnfg4 2/2 Running 0 6d18h kube-system calico-node-v6ldm 2/2 Running 2...
Kevin Riordan
1

votes
2

answer
1.2k

views

How to search an element in array using node.js in mongodb?

In mongodb there is a document like below, { "_id": ObjectId("57443657ee5b5ccc30c4e6f8"), "name": "Kevin", "email": "[email protected]", "password": "$2a$13$iZ0PhuY6VlBF6qC9rUredrG39Fw5pEKkIh.VCLiGsLPZMKYveyzey", "mobile": "9980896745", "__v": NumberInt(0), "ocassionTypes": [ { "occasiontype": "An...
Kevin
1

votes
1

answer
1.8k

views

Markdown Table not working (kramdown)

code Its working perfectly in the atom md preview but it outputs terribly in Github hosted jekyll website? My posted md file online: https://kevin-do.github.io//aztec-parking/ Could someone please help?
Kevin Do
1

votes
1

answer
857

views

Adding Dependency to stack Project?

After running: stack new my-project cd my-project stack setup stack build I would like to add the Conduit library as a dependency. I edited the generated, via stack new, stack.yaml to have: extra-deps: - conduit-1.2.10 Then, I modified the my-project.cabal from: executable my-project-exe hs-source-...
Kevin Meredith
1

votes
1

answer
40

views

How to receive incoming json data posted from outside

I want to receive json formatted posted data to my controller. Actually it's used for paypal payment webhook call issue. I already attached a json data example. Please advice me "FormCollection" is good idea to access that json or whats the best practice for this situation? Json: {"menu": { "id"...
Kevin himch
1

votes
1

answer
176

views

Does Kubernetes support ejabberd?

I can run ejabberd service on docker swarm. Do I Deployment a ejabberd service on kubernetes ? YML for swarm: version: "3.3" services: ejabberd: image: ejabberd/ecs:18.03 networks: - backend ports: - 5222:5222 - 5269:5269 - 5280:5280 volumes: - ./ejabberd/database/:/home/ejabberd/database/ - ./ejab...
Kevin Lin
1

votes
3

answer
76

views

Excel CSV output appearing wrong after calling Python File

Currently struggling with the following output in .csv where their is various random character within the is the players names and values where there shouldn't be (I've given a picture below of the output) I'm wondering where I'm going wrong in the code where I'm struggling to eliminate the random...
Kevin Carmody
1

votes
3

answer
114

views

Issue in index upgrading eXist-db version 2 to 4.5

I am in process of upgrading and testing a large installation and have hit one issue I cannot understand. I have a large collection of documents in which my index is created as follows: In my version 2 installation this works perfect. A query returns only element in the list (p, li, h1, h2, h3). It...
Kevin Brown
1

votes
2

answer
56

views

Div resize according to increase in other div css only

I have these two divs. The inner div needs to make the outer div resize as the div fills up with words. Simply the outer div should resize as the content of the inner div increases. Note: The inner div increases height upwards hence the outer div should also increase upwards Check out this fiddle h...
Kevin Robert
0

votes
0

answer
13

views

Flask Docker container says it cant locate module “Flask”

This is my DockerFile: FROM ubuntu:latest RUN apt-get update -y RUN apt-get install -y python-pip python-dev build-essential COPY . /app ENV HOME=/app WORKDIR /app RUN pip install -r requirements.txt EXPOSE 8000 ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8000", "-w", "4", "app:app"] Everything builds sm...
Kevin Hernandez
1

votes
2

answer
530

views

jQuery highlight td if it's not the same as another td on the same row

What I need to do is add a class to the first column td if the data inside matches the data inside of the third column td on the same row. http://jsfiddle.net/rUssu/ html table firstsecondthird 012 343 679 javascript/jquery var cPrice = $('th').filter(':contains("first")'); var cDefault = $('th').f...
Kevin
1

votes
1

answer
1.7k

views

Combining Multiple Should and Must Queries as Subqueries

Is it possible to merge two different bool filters? For example given the following documents: | Name | Location | |=====================|==========| | Bordeaux Red Wine | France | | Bordeaux Red Wine | France | | Bordeaux White Wine | France | | Niagara Red Wine | Canada...
Kevin Sylvestre
2

votes
1

answer
22

views

How to web scrape past complex login page using javascript?

I am trying to using javascript to login to a webpage, however, the page gives an error saying "username/password field is empty" even though the text is clearly inputed. Here is how I enter the username/password using javascript. document.getElementById('username').value='TestUsername'; document.g...
Kevin Lynch
0

votes
0

answer
26

views

Adding INItemXRef to Global Search with Inventory Item

I am trying to add INItemXRef's Alternate ID to the global search for Inventory Item profiles. This is a 1:many relationship since there can be various vendors and units of measure with different Alternate ID's. Per Acumatica, I have tried replacing the NoteID for Inventory Item with a match with jo...
Kevin
1

votes
2

answer
2k

views

What is the difference between a Join Query and Embedded Entities in Solr DIH?

I am trying to index data across multiple tables using Solr's Data Import Handler. The official wiki on the DIH suggests using embedded entities to link multiple tables like so:
Kevin
1

votes
1

answer
1.4k

views

Linq to Entities - using group by for many-to-many tables

I would appreciate any assistance in determining the proper way to utilize Linq to Entities for my application. Specifically, when working with multiple many-to-many tables, I am having difficulty understanding grouping. The simplified database design is: http://imageshack.us/a/img443/5863/entitydes...
Kevin Wasie
1

votes
3

answer
902

views

Call popViewController from Class Method

I'd like to go back to my root view from within a class method of view 1. When in an instance method of view 1, i would just say [self.navigationController popViewControllerAnimated:YES]; but since self doesn't apply in a class method, I am wondering how to accomplish this. Pertaining to the illustr...
Kevin_TA
1

votes
1

answer
1.5k

views

fulltext index - mysql

We have a full text index set up to use for searches on a website (mysql/php). The searches work great most of the time, but we keep running into these strange errors. For example: 1) This works: "Chinese Wok" 2) This doesn't: "First Wok" My assumption is that the 2nd doesn't work because: a) It k...
Kevin
1

votes
2

answer
257

views

Searching through a file structure to count items in a subfolder

I am having an issue with trying to make a list by searching through a file structure. Was trying to make a basic c# console program that would just run and do this. My structure is organize like the following. My Network \ X1 \ Users \ (many many user folders) \ Search for a specific sub folder \...
Kevin
1

votes
2

answer
788

views

changing file name of image on upload?

Hi i'm using this script to upload a photo and store it in a directory. It works perfect and even resizes the photo but i am wanting to call the image '_default.jpg' upon upload or when it's stored in the folder. I've been trying a few things but nothing seems to work. It currently generates a rando...
Kevin Reeves
1

votes
2

answer
148

views

Remove elements in a chart generated with highchart

I'm working on a new website using highchart. But I have a little issue with how it looks / is setup. I'm wondering if it is possible to remove the legend "Tokyo, New York, Berlin, London" on the right side of the image? I would like to add a discription myself, and remove the existing one. Any Su...
Kevin Jolan
1

votes
2

answer
3.1k

views

Facebook PHP API getLogOutUrl() not working

I have a logout button on page.php that serves as a link, and when clicked, directs the the user to logout_facebook.php. The issue is that the log out never occurs, but instead just directs the user to the Facebook homepage. How do I fix this? Sample Code
Kevin Karimu

View additional

Смотреть фильмы онлайн бабушка легкого поведения 2 фильм бесплатно