Peter Peter

16459 questions
1

votes
0

answer
186

views

Websocket communication works with localtunnel but not ngrok

I created a little multiplayer game to learn how Python's asyncio worked. I tested everything on localhost first -- everything worked. I then used ngrok to expose my localhost so I could play with some friends. However, every time they connected through ngrok, their client never updated. The client...
Peter Wang
1

votes
1

answer
184

views

“Italic” does not work in UILabel in Xcode -iOS

I am trying to design a view as attached, however, my label text is not 'Italic' as I have already set in label attribute. Tried to find solutions, but seems like all is programmatically adjustment. Is there anything I miss out to config 'Italic' in storyboard directly?
Peter Guo
1

votes
0

answer
47

views

Retrieving UserAuth data from Firebase in an Ionic project

I'm struggling to retrieve UserAuth data from firebase and presenting it on a list. I managed to put it there, but I can't get it back. I'v been around so many diffrent tutorials and tested a lot of code :( Are there any suggestions to this issue? My code looks like this. It's probably totally wrong...
Peter Bundgaard
1

votes
0

answer
104

views

UITextfield respond return UIViewNoIntrinsicMetric

I've added a UITextfield to a view, but when i run the app and press the textfield i get following error: error: returned 0 width, assuming UIViewNoIntrinsicMetric What causes this to happen? Custom UIView Code let rightBottomView = UIView() rightBottomView.isUserInteractionEnabled = true rightBot...
Peter Pik
1

votes
2

answer
610

views

powershell copy-item doesn't copy when filter is used

I'm trying to copy files using copy-item. Specifically, I want to copy files with a particular extension that are within a folder or its subfolders to another location, and to retain the subfolder hierarchy. I've tried using -filter and -include to specify the file extension, but no files are copied...
Peter
0

votes
0

answer
3

views

Is there a shorter workaround to reduce the number of AsyncTask in my Room DataBase Repository

I am trying to simplify the number of lines for my codes in the repository. Currently there is a lot of repetition in my codes. Many of the solutions online only involves inserting once into the table. I need to do insert() on many tables. I want to reduce the repetition for writing the same inner A...
Peter
1

votes
0

answer
75

views

How to set camera of android device as source type for javascript?

So, I am making an AR-application and have some basic code which runs fine on a pc-browser. The piece of code that activates the webcam is the following: //handle arToolkitSource var arToolkitSource = new THREEx.ArToolkitSource({ // to read from the webcam sourceType : 'webcam', }) When I use an...
Kanerva Peter
1

votes
1

answer
28

views

Nullable Guid Parameter in RAW method Codefluent Entities

I have a RAW method for an entity that has GUIDS as parameters. LOADONE (Guid CwObjectGuid, Guid CountryGuid) RAW With the corresponding body: SELECT * FROM dbo.Bid WHERE Bid_CwObject_Guid = @CwObjectGuid AND ((Bid_CountryGuid = @CountryGuid) OR (@CountryGuid = '00000000-0000-0000-0000-000000000000...
Peter de Bruijn
1

votes
0

answer
78

views

How to insert data frame value into Mongodb in R

How to insert data frame value into Mongodb in R, I'm using below code to insert but i'm getting error val is my data frame. My Insert Query is mongo1$insert(val) But i'm getting Below error Error: No method asJSON S3 class: table
jhon peter
1

votes
0

answer
43

views

how to get best order to resolve dependencies

I have a series of nodes that have dependency relations. (a:Foo)-[:DEPENDS_ON]->(b:Foo) Each node can depend on 0 or more other nodes and there are no loops. I need a query to return all the node in the best order to process the nodes before processing the nodes that they are dependent on. I know...
Dread Pirate Peter
1

votes
0

answer
25

views

Redirect to https and sub dir on apache2

I have a bolt application installed and want to do 2 things with my .htacces: 1st) Redirect to the /public/ folder, since bolt displays an error otherwise. 2nd) Change all incoming requests to https:// Seperatly I get them to work, individually I get either: 404, installation error or missing files...
Peter
1

votes
3

answer
1.4k

views

odoo 11 accounting fiscal periods

i just installed odoo 11 CE and managed to get the accounting features by activating in the user settings. However the most important functions to create fiscal periods and to close a fiscal year properly seems to be completely missing. If this is the case and this is only available in the enterpri...
Peter
1

votes
0

answer
86

views

Connect BLE device from F#

Since F# is not (yet) supported by .net native compiler, is there another process to connect a BLE device from an F# application? As far as I can see, 32feet uses UWP, and all other examples I found are also based on UWP. And as far as I know, UWP is based on the .net native copmpiler.
Peter Siebke
1

votes
1

answer
45

views

How to keep the server client connection on

I have used an existing node.js code to receive data from a GPS device. The code is functional but has one flaw. Ideally we want to keep the server-client connection alive. But it appears the connection is closed and then is opened very frequently. When I run the following code, the output is like...
Peter Lian
1

votes
0

answer
33

views

What on-going maintenance do I need to do for a reference repo that uses git lfs?

I have setup a git reference repo on our jenkins server using --mirror (we only have one remote). Documentation I have read indicates that I will periodically need to run git fetch --all in the reference repo and I have setup a maintenance job to do that. However, in order to populate the lfs di...
Peter McEvoy
1

votes
1

answer
71

views

Order of Value.CreateBatch

Can someone please confirm or correct my understanding of the order of values when using Value.CreateBatch instead of MinibatchSource? Assuming the CTF equivalent is: |x 1 2 3 |x 4 5 6 |x 7 8 9 Would a batch of size 3 become (a) 1 2 3 4 5 6 7 8 9 or (b) 1 4 7 2 5 8 3 6 9? My current perception is (a...
Peter
1

votes
0

answer
656

views

SpringBoot response charset errors

i got some problems with my SpringBoot REST Controller. This simply does a http GET call to our database and should return a simple String / json. when i call the URL simply in my browser or via my angular 3 app, the response has some charset errors and i don't know, how to fix them. I suggest, it i...
Peter
1

votes
0

answer
143

views

OData V4 attribute routing not using the right action

i am experiencing a problem with attribute routing in OData V4. I have a simple Customers model class and a Controller, which has 2 Get methods. However, whenever i try to GET a specific Customer like /Customers(7) , it always uses the second Get method to get all customers, but never breaks into th...
Peter
1

votes
1

answer
570

views

Tableau won't import csv

I am using Tableau 10.5 and I am trying to import csv data which is a basic step. But for some reason it won't, it just says 'Loading Data' with the icon spinning round and round. The csv file is quite small too.
Peter Zhang
1

votes
2

answer
116

views

Finding local maxima within an array with conditions [JS]

I'm struggling to find a solution the following code challenge that meets all of the requirements and could use some help: var ex1 = [5, 5, 2, 1, *4*, 2, *6*, 2, 1, 2, 7, 7]; // {pos:[4,6], peaks:[4,6] } var ex2 = [3, 2, 3, *6*, 4, 1, 2, *3*, 2, 1, 2, 3]; // {pos:[3,7], peaks:[6,3]} var plateau = [1...
Peter Jacuzzi
1

votes
1

answer
43

views

Insert data in XML tag

I want to modify this XML file to add additional inner tag. I tried this: void r742srui doc = Nokogiri::XML(....file...) doc.children.each do |node| if node.name == 'payment_transaction' span = Nokogiri::XML::Node.new 'moto', doc node.add_child(span) end end And I get this result: .... ...... How I...
Peter Penzov
1

votes
0

answer
430

views

How to get an App for a very limited and known audience approved on the App Store?

Based on this stackoverflow answer, which recommends going through the App Store when targeting a small set of known users (the specific example is a set of contractors for a small company, but to avoid getting sidetracked by the Enterprise program, lets assume they are members of the local minigolf...
Peter
1

votes
0

answer
200

views

JavaFX animated polygon artifacts

I'm working on a small game in JavaFX where I move polygons using a PathTransition. I encountered an issue that I just could not find a fix for: when moving the polygons they sometimes leave a trace of artifacts behind: artifacts This doesn't really happen regularly (but only when moving left or rig...
Peter Pan
1

votes
1

answer
425

views

Using jquery animation to control jackpot html spin

I am using below code to match user spin. It is working but my problem is when the winner match a number the spin rotation still end in a specific circle before adding the style for the circle that win. My question, Is there anyway I can make the spin rotation slow down and fall on the winner, so it...
Peter
1

votes
1

answer
30

views

SQL transpose multi column table without aggregation

I have a dataset in the format; And need to it in the format; I have had various attempts at pivot and unpivot for the last week but am not a real programmer and know when to ask a grownup for help. The database is running on MSSQL 2012 and the dataset will consist of 14 Mode_Antibiotics, ModeQualif...
Peter Harris
1

votes
0

answer
206

views

Bazel fails to run command, by hand it works. How to debug?

I am trying to compile tensorflow in a bit difficult environment (Centos 6.2 with a load of 'own' compilations). A lot of problems I have solved already, but the one baffling me is a SWIG error. I run with '--verbose_failures' and I can see the command that bazel tries to run: (cd /home/../.cache/ba...
Peter Smit
1

votes
0

answer
49

views

Running Get-WinEvent with hashfilter from directory - exeption in some cases

when running Get-WinEvent -FilterHashtable @{Path='U:\test\SavedSecurity.evtx';ID='4624';} with no admin-rights everything works fine. Even Get-WinEvent -FilterHashtable @{Path='U:\test\SavedSecurity.evtx';} with no filters works fine. But running Get-WinEvent -FilterHashtable @{Path='U:\test\SavedS...
Peter Core
1

votes
1

answer
119

views

OpenCv Template Matching - Unexpected masking result

I am trying to match a template with transparency in a scene with OpenCv v3.3.0 I am using the Java example code from the official documentation. My test case looks like this: Scene: Template with transparency: Template mask (masked the transparency layer to black): Matching result (red border marks...
Peter Winzer
1

votes
1

answer
344

views

Building OData EF Model with dynamic data structure

is it possible to create an EF model on the base of a dynamic structure? F.e. i have a Customer, which can have custom fields defined by the administrator of the system. Based on that the customer related custom fields table, is being altered and a new column is added for the new defined field. Is...
Peter
1

votes
2

answer
657

views

jquery timepicker not showing in modal window

I am new to posting questions, if any mistakes apologies in advance. I am unable to get jquery timepicker to appear in the modal window (it appears behind the window), was wondering if anyone had any suggestions on how to resolve this. This is the link in jsfiddle [https://jsfiddle.net/Lrqcczde/2/]...
Peter
1

votes
0

answer
96

views

Flickering while removing blur css class with jQuery

I've got a problem, my img element is blurred with CSS3, after refreshing the website I'd like the image to remove the blur class from it with jQuery. Everything works fine, however, there is a strange flicker while removing the blur class. The problem's visible on Chrome. I've already tried: -webki...
Peter
1

votes
0

answer
31

views

Dependency caused MalformedParameterizedTypeException

I't trying to deploy WAR package in Wildfly 11. Using these POM dependencies I get errors during startup: org.glassfish javax.faces 2.3.3 provided javax javaee-web-api 8.0 provided org.jboss.weld.servlet weld-servlet 2.4.5.Final jar com.sun.el el-ri 1.0 provided commons-logging commons-logging 1.2 j...
Peter Penzov
1

votes
1

answer
161

views

EXDATE recurrence setting being ignored

Using the PHP Client Library, I'm trying to create a weekly recurring event that will skip on days when we are closed for business. I'm passing these parameters to make a new Google_Service_Calendar_Event object that gets passed to Google_Service_Calendar::events->update(). $params = array( 'summary...
Peter Li
1

votes
1

answer
3k

views

Angular 5 Custom-Error-Handler: Display Error-message

I'm trying to create an error-handler for Angular 5. If an error is fired through my CustomErrorHandler, the frontend should be updated. The problem is that nothing changes, after the variable is updated. error-handler.service.ts import {ErrorHandler, Injectable} from '@angular/core'; import {Subje...
Peter Horitzer
1

votes
0

answer
38

views

How do I rotate a 3D object relative to its orientation using quaternions?

As a learning experience, I'm trying to build a simple 3D game without any libraries. I've managed to figure out rendering (for the most part), and I've gotten 4D matrix transforms to work well enough. I'm having trouble rotating my player object relative to its own orientation; I want to build an a...
Peter N Wood
1

votes
1

answer
1.9k

views

Run a SSIS Package outside of SSDT (2017)

I have searched multiple forums and found question similar, but doesn't match my environments. Problem: Cannot execute a package within a package Error: To run a SSIS package outside of SQL Server Data Tools you must install st_Check_Files of Integration Services or higher. SQL Server 2017 info SSMS...
Dan Peter
1

votes
0

answer
181

views

UserManagerExtensions methods changing System.Security.Principal.WindowsIdentity

we are using Identity 2 with MVC 5 for our web project. Requirement is to be able configure impersonated user for web application in web.config like so We implemented custom UserManager and configured authentication like this: public partial class Startup { public void ConfigureAuth(IAppBuilder app)...
Peter Kavecansky
1

votes
0

answer
75

views

Default App Engine version not working

I use the version in app engine to deploy multiple versions of my services. At this moment these are dev, load and live. I develop on my dev version and when I'm done I deploy to live. When I access my endpoints I use dev-dot-(myservice)-dot-(myapp).appspot.com. This works without problems. Now the...
Peter Fortuin
1

votes
1

answer
531

views

Django ModelForm with ManyToManyField showing all possible objects

I need your help with this. I tried to find the solution for a couple of days, but no luck so far. Here is the set up: There can be several projects, tasks and people can be assigned to projects, a person can be assigned to several tasks, and the same task can be assigned to different people. No pr...
Peter B
1

votes
0

answer
53

views

Is it possible to zoom in/out the text editor in Xcode 9.1 using the trackpad?

I'm editing a simple python script in Xcode. When using TextEdit, I can zoom in/out using the trackpad by pinching with two fingers. Can a similar behaviour be achieved in Xcode without using: cmd+ or cmd- ?
James Peter McConnell

View additional