Thomas thomas

13976 questions
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
1

votes
1

answer
34

views

Apache redirection on https with or without “www”

I have a problem on my dedicated server when it comes to redirecting the url. My domain name is rented from OVH, and I installed Apache 2 on my dedicated server to manage my site. I use let's encrypt to have the https protocol. I would like that when I enter one of these addresses to access my site,...
Thomas
1

votes
0

answer
93

views

Ordered Isoline Calculation from 3D Triangular Surface in MATLAB

I need to extract the isoline coordinates of a 4D variable from a 3D surface defined using a triangulated mesh in MATLAB. I need the isoline coordinates to be a ordered in such a manner that if they were followed in order they would trace the path i.e. the order of the points a 3D printer would foll...
M.Thomas
1

votes
2

answer
618

views

Should Laravel Eloquent Model observer events return the object?

For example namespace App\Observers; use App\Models\User; class UserObserver { public function saving(User $user) { $user->epoch = time(); $user->save(); // or even this return $user; // should I do this or not? } } I cannot find any good documentation about the model events when they are called...
Thomas
1

votes
1

answer
85

views

Trying to overwrite Ajax response in div on every submit

I have some code here that submits a drop down menu via Ajax $('.myForm2').on('submit', function(e) { e.preventDefault(); $.ajax({ type: 'POST', url: 'submissionVAT.php', data: $('.myForm2').serialize(), success: function(server_response) { $('.result').html(server_response); } }); }); in the file s...
Thomas Evans
1

votes
1

answer
231

views

WP Contact Form 7: Submit Form to two different URLs

i am trying to build a Form with the WP Contact Form 7 Plug-In, which submits its result to two different Forms on other pages (depending on which of the two submit buttons is clicked) Here the content of the CF7-Form in the Backend: [date* arrival] [date* departure] [number* occupants] [submit '...
Thomas Christoph
1

votes
1

answer
248

views

Docker nginx and php-fpm with wkhtmltopdf

In the php-fpm container is wkhtmltopdf installed. Images are not displayed when I create a PDF. The problem is probably that the container cannot resolve the development domain (myapp.test). But I'm not sure if that's the problem. Does somebody have any idea?
Thomas Müller
1

votes
0

answer
96

views

Rectangle Packing - Subset

I'm working on an algorithm that figures out how to pack rectangles into a larger rectangle. I am aware this is similar to the rectangle packing problem but my particular problem has a few quirks; namely the rectangles that I'm fitting only have a defined height, the width can (and should) vary such...
Thomas Cook
1

votes
0

answer
80

views

QueryRenderer partial caching with STORE_THEN_NETWORK

I've got an app that uses: {children} and I've got two routes: with a query renderer foo Foo: query on RootQuery { viewer { ...NavBar_data ...Foo_data } } and Bar: query on RootQuery { viewer { ...NavBar_data ...Bar_data } } I'm currently using dataFrom='STORE_THEN_NETWORK' but that only works when...
Thomas Grainger
1

votes
1

answer
40

views

Passed Value after Filtering is 0 - Primefaces

I'm using currently Primefaces 6.1 and i got following Datatable: So the filtering just works fine, it shows me the right result. But if i use the commandButton after filtering, the passed value I get is always 0. To clarify i got my Bean already ViewScoped and Serialized and my Button sets an Value...
Thomas Stachl
1

votes
3

answer
292

views

VBA Excel Copy Column to other worksheet with offset

I found this piece of code which does 99% what i need. Procedure description: In my workbook there is one SQL Sheet with named columns, based on the Column Header I have to loop through all other sheets (variable from 10 to 50 sheets) in the workbook where the Column Header has the identical name, a...
Thomas Strickner
1

votes
1

answer
48

views

Show summary if php loop?

I have a loop that looks like this: /* For Loop for all sheets */ for($i=0;$iChangeSheet($i); foreach ($Reader as $Row) { //variables here $query = 'INSERT INTO schools ( //code here )'; if ($mysqli->query($query) === TRUE) { echo ' New record created successfully '; } else { echo 'Error: ' . $query...
Thomas
1

votes
0

answer
124

views

Set input frame rate in pygame.Camera

I am trying to get an input stream from a webcam on OS X self.capture = pygame.camera('/dev/video{}'.format(camera), (640, 480), 'RGB') I get an error (see below), but there are 2 pieces of information that I can not really stitch together. On first sight, it looks like I do not have the correct cam...
Thomas Hubregtsen
1

votes
1

answer
145

views

How to resolve neo4j error (Parameters Must be a JSON Map) when attempting to make an REST API Cypher query in Java

I am currently attempting to perform a Cypher query with my neo4j database as part of an Android Studio application I have made to get started and practise using the REST API. The code for which is shown below: public class MainActivity extends AppCompatActivity { private TextView userText; private...
Thomas Morgan
1

votes
1

answer
89

views

Apache Spark circuit breaker

Using Apache Spark 1.6.2 in Hadoop YARN cluster. Some (simple) queries can consume lot of resources, I see our developers running SELECT * FROM DB against a 1To file! Hence, it takes a long time and 'block' all YARN resources for a moment (and crash most of the time after a few hours ...). I am wond...
Thomas Decaux
1

votes
0

answer
302

views

Spring Batch Remote Partitioning - Sometimes Master Step completes before all partition step completes

I have encountered an issue with Spring Batch Remote Partitioning jobs where the master step completes before all partition (slave) step completes. This happens randomly (most of the time the master step finishes after all partition step completes). Please let me know if I am missing anything in my...
Thomas George
1

votes
0

answer
46

views

Impossible to access docker private registry on gitlab

I'm trying to set Continuous integration with gitlab and a private docker registry. I've followed the whole tutorials to set it up, I managed to set the registry tab on the left in a project environment but when I click on this tab, gitlab brings me immediately an error 500. I use gitlab as a docker...
Thomas
1

votes
0

answer
43

views

c# - Different XmlArrayItem-Attributes for derived classes

I know that I can specify xml-element-names for list-elements when using XmlSerializer via the XmlArrayItem-attribute. This however only works for lists, which are fields (or properties). Is there a way to set this for any list? Example: [XmlInclude(typeof(Foo1)), XmlInclude(typeof(Foo2))] public a...
Thomas
1

votes
0

answer
35

views

Selenium assert new line error

I'm quite new to selenium and I was trying to test a given feature of my application. I've got a multiline input in which I enter the following: bla bla bla foo bar Which, once read by selenium is translated to bla bla bla\r\nfoo bar in the .feature file, i've got the following scenario: Scenario:...
Thomas Ayoub
1

votes
1

answer
64

views

I keep getting the wrong numbers from my program

I am trying to write a program where the user inputs 2 dates and the program calculates the days in between (without using any of the calendar classes) and prints the results, but I keep getting crazy numbers that make no sense. When I tried to make it calculate 5 days it printed the results of 333...
Thomas P
1

votes
1

answer
679

views

Apache 2.4 mod_dav_svn configuration file

I am trying to Setup Server dictated configurations on my Subversion repository which is served by an Apache 2.4 server. Based on the information I found one has to alter the SVN configuration file on the server but which one is used by the mod_dav_svn module of the Apache Server? I already tried di...
Thomas Grieger
1

votes
0

answer
48

views

Applying colours to a flat shaded mesh

I am attempting to make procedurally generated low-poly terrain and to colour the mesh I've decided to use vertex colouring. To generate the colours, I use the following code: Color[] colourMap = new Color[size * size]; for (int y = 0; y < size; y++) { for (int x = 0; x < size; x++) { colourMap[y *...
Thomas Upson
1

votes
2

answer
60

views

Trying to figure out how the best way to use TSQL to retrieve current date but have a time value hard coded for select queries [duplicate]

This question already has an answer here: Set time portion of a datetime variable 6 answers Currently I am looking for a way to avoid hard coding date values for select queries I seek to automate. Ideally my queries will run daily on a report server, so I want the day to change automatically but I...
Thomas

View additional