Thomas thomas

13998 questions
1

votes
1

answer
161

views

knitr kable and “*”

I am trying to produce a table with a '*' as a value in a cell: --- title: 'Untitled' author: 'James Durant' date: 'November 7, 2017' output: pdf_document --- ```{r arthmatic, echo=FALSE} library(knitr) dfx
James Thomas Durant
1

votes
1

answer
766

views

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element while trying to click Next button with selenium

So Im trying to I click the next button using selenium, I've tried with the code below, but it ends in error. The element My code driver.find_element_by_name('submitNext').click() But then it outputs these errors Traceback (most recent call last): File 'C:/Users/thomas/PycharmProjects/test/mainapp/m...
Thomas
1

votes
1

answer
301

views

Is there any way to run Node.js in a <script> tag?

I would like to run Node.js in my webpage, the same way that you would with PHP or ASP.NET. The reason for this is I would like to use require()'d modules from NPM in my browser javascript, however vanilla JS doesn't seem to support this. Is there any way I can run Node.js in my tags? If not, would...
Thomas Jowsey
1

votes
2

answer
199

views

How to use dll for VB.net to C#

I have dll and sample code using VB.net. However I need to use functions in E5KDAQ.vb using the E5KDAQ.dll file on C#. May I know how to achieve that? Can anyone give any good examples on how to use it? E5KDAQ.vb Imports System.Runtime.InteropServices Imports System.Threading Imports System.text Imp...
Thomas Koh
1

votes
1

answer
172

views

Connect JMS queue using JNDI with Spring Boot

I had a hard time figuring out how to implement a Spring Boot JMS Listener, listening to an ActiveMQ queue within a JBoss application server. Therefore I choose to post a question and answer it with my final solution, hoping it could save some of you a few hours.
Thomas Joeisseint
1

votes
2

answer
167

views

Node callback style with promisify? “The 'original' argument must be of type function”

I'm using util.promisify in a Google Cloud Function to call IBM Watson Text-to-Speech, which returns a callback. My code works but I get an error message: TypeError [ERR_INVALID_ARG_TYPE]: The 'original' argument must be of type function The documentation says Takes a function following the common...
Thomas David Kehoe
1

votes
1

answer
92

views

Net Core MVC: Name Session does not exist in Current Context

I am receiving an error in the last line. How would I resolve this? Trying to convert Net 4.6.2 Project to MVC Net Core. Last Line Error: Name Session does not exist in Current Context. public class TransferPropertyOwnershipController : Controller { public ActionResult GetNewOwnerRecord(int ownerID...
John Thomas
1

votes
1

answer
56

views

Dynamic namespace variable in helm chart

I work with four teams that are using exactly the same environments that are set up in kubernetes namespaces. I have created helm charts to install those environments. Everything works fine but I have to create ingresses by hand because of the following format in hostname: .. The thing is I would li...
Thomas
0

votes
0

answer
16

views

Save values beyond control structures

Question: is there a way to 'store' values beyond control structures Disclaimer: the following code framework is without any true sense -> it's only for better understanding the question... the control structure could do 'anything' -> thats the reason why I don't wan't to return values like the str...
Thomas Meyer
0

votes
0

answer
5

views

Javascript scrape clean up - TMview

I scrape data for a database with a chrome extension, need assistance with a JavaScript clean up function. Output is a .xls file that i run a javascript thru to remove unwanted data. Current output I need to remove the the stand alone ' - ' in the rows that doesn't have any dates. i've tried this so...
Thomas
2

votes
1

answer
45

views

Use do.call + match.call in a user-defined function with lapply or with in R

I have written a wrapper around ftable because I need to compute flat tables with frequency and percentage for many variables. As ftable method for class 'formula' uses non-standard evaluation, this wrapper rely on do.call + match.call to allow the use of the subset argument (more details on my prev...
Thomas
1

votes
4

answer
743

views

Preventing or blocking cpu data cache loading

I'm tasked with evaluating various flavors of ARM processors (benchmarking), specifically System On a Chip (SOC). Some SOC's have a lot of data cache, others have little. Because of this, I'd like my program to block the data cache. I have written a Walking 1 test which accesses memory outside t...
Thomas Matthews
1

votes
2

answer
2.6k

views

Avoid line breaks in bootstrap button group

I've a bootstrap button group which includes a text between the buttons: @import url('http://twitter.github.com/bootstrap/assets/css/bootstrap.css'); @import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'); 2016 How to avoid the line breaks, such that the buttons...
Thomas W.
0

votes
0

answer
6

views

Update data when value changes Vue Js

I have quite a complicated situation and i'm not amazing at Vue so I need some help. I have a Firebase DB that gets an array (clients) and displays it. const clientsRef = db.ref('clients') firebase: { clients: { source: clientsRef, //data has been retrieved from firebase readyCallback: function() {...
Thomas Byy
1

votes
2

answer
1.1k

views

Pandas Dataframe - Get index values based on condition

I have a text file called data.txt containing tabular data look like this: PERIOD CHANNELS 1 2 3 4 5 0 1.51 1.61 1.94 2.13 1.95 5 1.76 1.91 2.29 2.54 2.38 6 2.02 2.22 2.64 2.96 2.81 7 2.27 2.52 2.99 3.37 3.24...
Neal Titus Thomas
1

votes
3

answer
154

views

How to bring GEdit to front using Java on Linux

Our Java/SWT-based application can launch user-editable third-party applications, e.g. editors. On Linux (CentOS 7, Gnome 3.28.2), when launching 'gedit', for example, it opens fine, but behind our application's window. The strange thing is, that when launching 'gedit ' from a Terminal (gnome-termin...
Thomas S.
1

votes
3

answer
53

views

How to use asyncstorage in ReactNative

I made localstorage in ReactJS that works well. But I want to use this code to React-native. I am confused how I can apply to This code is of ReactJs. ... componentWillMount(){ const contactData = localStorage.contactData; if(contactData){ this.setState({ contactData:JSON.parse(contactData) }) } } ....
James Thomas
1

votes
1

answer
101

views

Fast way to get Expression method call target

Given the following code line of code, Expression expression = () => target.ToString(); is there a fast way to obtain the target object? Below code works public object GetExpressionTarget(Expression expression) { MethodCallExpression methodCall = (MethodCallExpression) expression.Body; LambdaExpress...
Thomas Flinkow
1

votes
3

answer
43

views

Is it okay to connect all links of a node in a function create_new_node?

I am learning linked list and I am just wondering if it is good/ bad practice to connect all links of a new node with the function *create_new. From what i read online, they only the next link, but i want to make it connect the previous link as well. Here is my code: node *create_new (int new_data,...
Thomas D
0

votes
0

answer
3

views

Microsoft Outlook Add-In for non 365 Users

I have noticed that only a select few of Outlook add-ins show up in Outlook for mac add-ins section when you are using outlook with an email address hosted outside of Office 365. If I build an add-in, how would I go about getting my add-in to show up on this list as well as the main list in the AppS...
Thomas Boles
1

votes
2

answer
110

views

Symbol and Packages not found

I am trying to compile a Github repository, https://github.com/GrammarViz2/grammarviz2_src. However, when I run the application on CMD, I get the error- GrammarVizGUI.java:4: error: package net.seninp.grammarviz.controller does not exist import net.seninp.grammarviz.controller.GrammarVizController;...
1

votes
3

answer
49

views

Flutter - change appbar icon when receiving notification

I am using FirebaseMessaging to push notifications on my app. So I can handle these notification with this code : firebaseMessaging.configure( onLaunch: (Map msg) { print('onLaunch called'); }, onResume: (Map msg) { print('onResume called'); }, onMessage: (Map msg) { print('onMessage called : ' + m...
Thomas Nicole
1

votes
0

answer
167

views

Error loading wikidata on local blazegraph

I have installed locally wikidata and blazegraph following the instruction here : https://github.com/wikimedia/wikidata-query-rdf/blob/master/docs/getting-started.md The .munge get me 424 files as 'wikidump-000000001.ttl.gz' in data/split When I try to load one file on blazegraph I get an error :...
Thomas Scialom
1

votes
0

answer
42

views

SpriteKit game deployed from TestFlight may not display correct on iPhones

I’m having an issue with games I’ve been developing for iOS using SpriteKit The issue deals with when the games are deployed through TestFlight and installed on iPhone devices. On some phones the games will not display correctly. They will appear zoomed in from the center and be clipped at the e...
Tron Thomas
1

votes
1

answer
87

views

Change UISlider controller when Table row clicked

I want to create a UISlider that when a user selects a tableview row. It updates the min & max value moves the slider to a value set by a variable. The slider is in a different Viewcontroller then the tableview. I am passing the values to the slider using a struct (Posted below). At this point, I ca...
k.thomas
1

votes
1

answer
596

views

Excel 2013: Condition Formatting with “IF(AND)” and “ISBLANK” and Data Validation Values

I have a formatted table and would like to use conditional formatting to shade in cells in a column (G) based on the following conditions: Value in column (D) must say 'Pending Decommission'. The value is from a data validation list. If value does not match, do nothing. If the above is true, then ch...
Thomas Nguyen
1

votes
1

answer
212

views

React standalone bundle without react library inside

I have created standalone bundle which I include in React App. The App itself does not anything know about Extension Bundle (next XB) it load, but the XB does know about App and libraries it use inside. How to make App share library packages it compiled with to XB? I mean if the App compiled with Re...
Thomas Anderson
1

votes
0

answer
181

views

Use glob pattern to include controllers annotations routing with Symfony 4

I want to include all controllers for route annotation, giving a routes/annotations.yaml: controllers: resource: ../../src/{Site,Dashboard}/Controller/ type: annotation The glob component is not giving folders but null (whereas files exist). How can I use glob pattern in such way?
Thomas Decaux
1

votes
0

answer
233

views

How to determine confidence level in DialogFlow

When a user is responding to a question in DialogFlow, is there a way to obtain the confidence levels that was achieved for a specific phrase? Example: Q: What is the capital of Germany? A: Berlin I would like to read back how well the AI understood the user, e.g.: He said: 'Boerlin' ---> 87.3% conf...
Thomas Treutler
1

votes
0

answer
298

views

Docker for Windows - Install certificates using sn.exe / Strong Name utility

We have a Docker image that we use to build our Visual Studio solutions. This works great. Now we have some solutions that require a key. To install the key you use sn.exe, but Microsoft has gone through great lengths to make sure human input is needed, namely the password.. The image is based off F...
Thomas Rijsewijk
1

votes
0

answer
66

views

I am using NHibernate 4.0.0.GA to insert an XML value in Microsoft SQL Database but always getting errors for length of string.

I use an stored procedure for updating inserting data into database using Iquery. My code for inserting data is shown below .hbm.xml file: exec dbo.spInsertFiles :convertedDoc .cs file: IQuery query = this.Session.GetNamedQuery('InsertInvoiceDetails'); query.SetParameter('convertedDoc', convertedD...
Reshma Thomas
1

votes
3

answer
38

views

Using jQuery when to defer ajax processing

I have a list of 15+ ajax requests that need to be called in a specific order. I need each ajax call to wait until the previous function finishes before making the next call. This issue arises because my ajax call, has a direct callback that is also an ajax call. createCheckIn() { this.selectedLis...
Jeremy Thomas
1

votes
0

answer
47

views

How can I prevent the second forms submit button from removing data from the first form while using the the window.history.pushState function?

I was advised to use the windows.history.pushState function in order to be able to sustain the information the user enters into the text boxes and be able to use the browser's reload this page button if they elected to do so, this function works just fine with just one form, but I've added a second...
Thomas Roland
1

votes
0

answer
76

views

iText duplicates /Popup annotations when copying pages

When using the following code to copy annotated pages, iText 7.1.0 duplicates the /Popup annotation, the only difference between the 'original' and the duplicate being that one has a /Parent entry and the other doesn't. Unfortunately, the one without the missing /Parent is registered in the /Annots...
Thomas W
1

votes
0

answer
341

views

Azure webapp files loading slow

I have a problem with an Azure WebApp that is running very slow (loading times +3min with a cleaned cache). The web app is a single page application, so the first load is the biggest. Always On is enabled. The tier is currently at B2. An example of the slow loading The metrics of the application pla...
Thomas Nauwelaerts
1

votes
1

answer
50

views

Displaying individual data from a count query(mySQL/php)

I have a database called 'Telcel' and a table called 'calls' columns in my table are id,call_from,call_to,date_time,duration,network,cost,status I have the following code: $conn = mysqli_connect('localhost', 'daven', 'H3x^g0n', 'Telcel'); $query = 'SELECT id, COUNT(id), call_from,ROUND(SUM(cost), 2)...
Thomas Crown
1

votes
2

answer
818

views

What is the use of “items” property in MatMenu of angular/material2?

In the Angular material, MatMenu documentation https://material.angular.io/components/menu/api, the API has a 'items' property which is documented like an attribute of type QueryList to the MatMenu component. In the Angular documentation for QueryList, https://angular.io/api/core/QueryList, the live...
Paul Thomas
1

votes
2

answer
45

views

Nodejs: Loop not working only gives last id 5 times

I am new here and apologize if this is not right. So i am trying to loop through a json file in node. The file contains over 300000 entries where i need to get the id for each and then do something with that ID. my problem is that my code only return the last ID 5 times: const fs = require('fs'); co...
Thomas Petersen
1

votes
0

answer
409

views

Button inside of a google maps infowindow

Im trying to build a website where meteor lovers such as myself get a european map with all the meteor impacts over the last 200 years. when the map is initiated meteor icons will render into the map with the according information inside of a infowindow (after clicking on it) however, I wanted to ma...
Thomas
1

votes
0

answer
171

views

JPA multiple transactions - commit not handled properly after a rollback

I have the following code (simplified for the sake of the question) EntityManager em = EMF.get().createEntityManager(); TypedQuery query = em.createQuery... for(T result : em.getResultlist()) { try { em.getTransaction().begin(); // do some stuff, update the T object em.getTransaction().commit(); } c...
Thomas

View additional