Patrick

1

votes
2

answer
378

views

Show a contributor's number of commits and lines of code contributed

I would like to view a summary of my total number of commits and total number of lines of code which I have committed to a particular repository on GitHub. Is there any way to do this using either: GitHub, Git Shell on Windows, or another tool which easily works on Windows or in a web browser? Here...
Patrick Parker
1

votes
2

answer
514

views

Deploy Nuxt on shared hosting

I want to know if it is possible to deploy Nuxt app on a shared hosting. After running npm run build --spa it generated below file structure in the dist directory, but don't know how to go from here. nuxt dist
obi patrick
1

votes
1

answer
34

views

Exlude a row on Import-Csv

I have a question concerning Import-Csv in PowerShell. My script reads all *.csv files in my directory and writes it to my MS SQL database. So far so good, but I have a problem in these csv files. They all look the same like this: Header1;Header2;Header3 -----;-----;----- Data1;Data2;Data3 Data1;Da...
Patrick Sacher
1

votes
1

answer
44

views

How do I restrict an auto-generated route to accept only POST requests?

We have overridden Sonata's RegistrationController using Easy Extends. In our generated appDevProjectContainerUrlMatcher class, we now have the following lines: if ($pathinfo === '/password/reset') { return array ( '_controller' => 'Application\\Sonata\\UserBundle\\Controller\\RegistrationControll...
Patrick at work
0

votes
0

answer
17

views

Loop takes too long to replace values

I have a 9 mln line of code where I have to replace every ' . ' with the number in the line above. Meaning that if column 1 contains ' 7 ', the dot below should be replaced by that. But if column 3 contains ' 44 ', the subsequent values have to be replaced by 44 and so on. Problem: at the the moment...
Patrick Lombardo
0

votes
0

answer
10

views

making the most accurate data structure - mySQL

I am working in java and I need to make database for data. I have entity called Folder which has fields: int id String name Folder folder What is the best way to represent folder's reference to itself (Folder folder) in database? create table e_folder( f_id INT AUTO_INCREMENT, f_name VARCHAR(100)...
Patrick Jane
4

votes
0

answer
184

views

No HTTP request occurs when calling WCF Service from Silverlight client

While debugging an issue with an old Silverlight application, I narrowed down the problem to a particular WCF service call, which looks something like: _serviceClient.UpdateFooAsync(fooDto); This code hasn't been changed in years, and it has largely worked as expected. With one specific entity, howe...
Patrick
0

votes
0

answer
6

views

How to detect a click outside elements when 'click' event for elements existed

I am creating a Angular directive, please help me how can detect each event for 'click' elements and 'click' outside elements in Angular(7). @Hostlistener ('click', ['$event']) onClick(){} for clicking elements(button here) @Hostlistener ('document:click', ['$event'] outClick(){} for click anyway in...
patrick
1

votes
2

answer
33

views

Load a fragment inside another fragment in Android [duplicate]

This question already has an answer here: Fragment Inside Fragment 13 answers Im trying to implement Autocomplete from Google Maps SDK. I have found a guide where it uses a Fragment to show the bar where you can search for an address with autofill functionality. My problem now comes when trying to...
Patrick Vibild
0

votes
0

answer
4

views

Admob ads will not show real ads but will show test ads

So for about a week my real ads were working. I was finishing up my app and went to upload to the app store. I had to change my bundle ID and team to my account linked to the developers program to be able to upload to the app store. I got the error that it was no longer linked to admob or firebase b...
Patrick Katz
1

votes
0

answer
222

views

How to interactively update IPywidgets container (VBox, HBox)?

When I try to update a container that contains other dynamically created container it doesn't change. I tried different options but in the current one I defined the variables holding the containers before the update function and call this function whenever a change occurs: history_array = [] fig_arr...
Patrick
1

votes
1

answer
43

views

Is it possible to apply a different horizontal color gradients to each line of text using CSS

There are several examples of applying a horizontal color gradient to a body of text. However, the technique used in each of these examples is to make the background have a gradient, and then make the text clear, and then the text will have the gradient. Examples include Is it possible to set hor...
Patrick J Fitzgerald
1

votes
1

answer
86

views

When my stopwatch updates with setInterval, it blinks, how to make it smooth?

Hi i made a stopwatch in javascript and every time it updates, it deletes, and then after a second appears again and deletes. So every second it appears and disappears, making it blink. How can i make it appear until the next second updates, making a smooth transition. Here is my code: function Game...
Patrick
1

votes
0

answer
112

views

Batch Print email attachments in order by date

Issue: Hello, I have a macro, which saves me for a lot of clicking, but in the end not so much time, when it all comes down to it. The code allows me to mark everything within any mail folder. It will print the attachments within the email. After this the error starts. Whenever I press this button,...
Patrick S
1

votes
1

answer
237

views

Missing wildcards in S4 snakemake Object in R

I'm running a workflow with a main Snakefile including rules from the rules folder and calling rscripts from those included rules. Here are a few lines and their specific files: Snakefile: samples = pd.read_table('samples.csv', header=0, sep=',', index_col=0) rule extract: input: 'summary/umi_expres...
Patrick Roelli
1

votes
1

answer
246

views

Excel VBA loop through cells to find Conditional Formatted cells and copy paste on other sheet

My issue: I want to loop through a range, and whenever it finds a conditional formatted cell, it should copy the cell to the left to the cell to the right of it. And then afterwards paste it into an other worksheet. My code loops through the cells easily, but doesn't copy the information, and paste...
Patrick S
1

votes
1

answer
49

views

One timezone in Angular 2+ without pipes

In our project we deploy an angular 5 project in a docker container with httpd. When debugging locally in VsCode in Windows10 we see the time displayed correctly using the correct NL timezone (GMT+1). When deploying in our Linux hosted docker instance, we see the time as UTC (because of the default...
Patrick Peters
1

votes
1

answer
138

views

TYPO3 and IOS: can't open the page

My situation: I have 10 typo3-websites running on two servers: First Server (apache with php 5.6.32): typo3 versions: 6.2.3, 6.2.4 and 6.2.14 Second Server (apache with php 7.0.26): typo3 versions: 7.6.14 and 8.7.1. I'm not able to open the page on an iPhone or iPad with osx 10.x or above. I tes...
patrick
1

votes
0

answer
32

views

Keras RNN - ValueError when checking Input

I recently got a Nvidia Card and wanted to try LSTM-Models with the new GPU-Support. Sadly I do not know much about LSTMs. And I build this little model to test it: import pandas as pd from keras.models import Sequential from keras.layers import Dense, LSTM, Dropout from sklearn.model_selection impo...
Patrick.H
1

votes
0

answer
19

views

range between minimal input and maximal input in python

I have to make function where by inputting minimal and maximal 'lasting of the movie', client gets printed out every movie whose lasting is in that range. Now, when I input (as a minimal) two-digit number and (as a maximal) three-digit number, it always says that 'No movie was found', but for exampl...
Patrick Jane
1

votes
1

answer
48

views

How to create a simple help page for an Excel VBA add-in

I have created a small add-in for my client. It adds 2 buttons to the toolbar and works OK. Now I'd like to add a third button to display the version number and a small help text (15 lines). I wonder what is the easy way to do this. Options I can think of: Insert (copy) a sheet with the help & versi...
Patrick Honorez
1

votes
0

answer
100

views

Grid Lines Are too Wide in Density Plot

I have implemented a density plot in R using ggplot2 (updated version): library(ggplot2) densityplot
Patrick Bucher
1

votes
1

answer
304

views

Material-UI-Next Single Line Grid List doesn't have a horizontal scrollbar like it does in the example component

https://material-ui-next.com/demos/grid-list/#single-line-grid-list If I copy and paste this code into my project I get the same grid list sans the horizontal scrollbar. I can still scroll with touch controls in dev tools or click my mouse wheel, but that scrollbar is important for my project. Anyon...
Brian Patrick
1

votes
1

answer
39

views

Using ctypes to overwrite an accessable struct from a library

I want to use a C-library in Python, I use ctypes to do that. I defined the struct that I want to access in the library, I want to create multiple instances of these structs in my Python program and overwrite the struct in the C-library with one of the instances, let it calculate and then overwrite...
Patrick
1

votes
1

answer
23

views

In R: ordering values from 2 DF columns for use in ratio for each row

I want to calculate ratios for each row in a data frame using values from two columns for each row. The data are anatomical measurements from paired muscles, and I need to calculate a ratio of the measurement of one muscle to the measurement of the other. Each row is an individual specimen, and ea...
Patrick Kelly
1

votes
1

answer
194

views

Tokbox Share System sound during screen sharing

I am trying to create a screen sharing app through Tokbox but I am not able to share the system audio. Instead, it is using the microphone to share the audio. Can you please suggest if it is possible to share system sound (like music etc.) rather than microphone?
Patrick S
1

votes
1

answer
615

views

How can I take a screenshot (View) with a TouchableHighlight?

The Error has been resolved as per your guidelines. But still can not take and save the screeshot of the desired ViewShot, where it has a react image. I need to take and save the screeshot in the memory of my device. Can you tell me if I'm on the right track or would I have another way to do it? Tha...
Dagson Patrick
1

votes
0

answer
57

views

Why does C++ StandardLayout disallow mixed access specifiers?

I hear often this is for backward compatibility with C. But C does not have access specifiers, so how can they break compatibility? And a related question, why do mixed access specifiers allow the compiler to change the order of the members of a struct in memory?
Patrick Fromberg
1

votes
0

answer
183

views

Trigger Input Step in Jenkins via HipChat

I can find tons of information in the internet about integrating HipChat in a scripted Jenkins pipeline. So that works fine for me. But how can I post a status message to HipChat that contains an element to trigger an action back in Jenkins? Currently I have input steps in Jenkins to approve a deplo...
Patrick T
1

votes
1

answer
122

views

Passing IDataObject to IAssocHandler::Invoke in C#

I want to rebuild a OpenWith context menu. So far i use the SHAssocEnumHandler to retrieve all possible applications for a given file extension. Now i want to call the Invoke method of an chosen AssocHandler. This method needs a pointer to a IDataObject to call the application with the given Objec...
Patrick
1

votes
1

answer
39

views

Progress bar cant reset after submitting form using ajax

Hi Good afternoon please help me i have a problem in my progress bar. my progress bar wont reset after submitting the form and i used ajax for inserting data i want to reset my progress bar after triggering the submit button. i used the progress bar for password.here is my code in progress bar: my s...
Patrick Dimaano
1

votes
3

answer
77

views

“Double free or corruption” error inside this function?

Below is my function. It runs correctly once, then when it is called a second time it causes an error telling me 'double free or corruption'. I tried adding the +1 inside the malloc() as other posts have suggested, even though I am not storing null-terminated strings but arrays of integers. It did n...
Patrick
1

votes
0

answer
55

views

Rspec response changes inbetween calls

I'm using the below line of code to check that a controller renders a response with parameters expect(controller).to receive(:render).with('orders/order_pickup/layout', {:locals=>{:state=>'pickup'}}) But when I run the rspec test, I get... Diff: @@ -1,2 +1,2 @@ -['orders/order_pickup/layout', {:loca...
Patrick Stetz
1

votes
0

answer
47

views

How to link to local file download in HTML?

I'm using this tag: link With the download atribute to make a download link files from my local network (tiff images) but the downloaded file is a .tiff file containing the HTML code of my page. I noticed that the link returned from my page is prefixed by address of my django: http://127.0.0.1:8000/...
1

votes
1

answer
46

views

How should I register my Sonata application's new admin class?

I am using the Sonata admin bundle to build a backend for a blog. I have created a new Post entity and used sonata:admin:generate to generate an admin class called PostAdmin. This admin class extends AbstractAdmin. So far so good. In accordance with https://sonata-project.org/bundles/doctrine-orm-a...
Patrick at work
1

votes
0

answer
47

views

undefined service for RestComm GMLC v1.0.66

I have successfully set up Restcom GMLC after going through some issues (Restcomm gmlc configuration issue no local SSN is present for primary Address) Now the link beween the GMLC and the STP is up. When i open the jss7-management console i have the error on the screen When i try a map ati request...
NDZIE Patrick Joel
1

votes
1

answer
302

views

How to validate results of Android DevicePolicyManager#isAdminActive vs failure to activate device manager

I'm facing an interesting situation which I don't know how to resolve. When a user is signing into my app for the first time as an Android for Work user, I am obliged to make sure that the app is registered as a device manager. I check whether this is the case by calling DevicePolicyManager#isAdminA...
Patrick Brennan
1

votes
0

answer
49

views

node.js gmail api ignoring query string

I am using the gmail api for node.js as follows: gmail.users.messages.list({auth: oauth2Client, userId:'me', q: 'from: [email protected]',}, (err, response) => { console.log(response)}; The query string is being ignored and I am getting my entire inbox of message id's back. The query string works a...
Patrick Clark
1

votes
0

answer
358

views

Specify README to show in gitlab

I have forked a project in gitlab. After cloning my fork, I did something like this: mv README.md README-OLD.md touch README.md echo 'some content for my new readme' >> README.md git add README.md git commit -m 'New readme' git push origin master In GitLab, I refresh my project's page expecting to s...
Patrick at work
1

votes
1

answer
27

views

Show number of new records on page

I want to display the exact number of new entries (records) on my page of my phpmyadmin database after reloading the page. I looked online but couldn't find anything usefull. Maybe someone can help me. This is the code for the page: Verzoekpagina DJ
Patrick van den Hurk

View additional