title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
WooCommerce third-party gateway isn't working on order-pay page
<p>I have a third-party payment gateway which works fine on the Checkout page. When the user clicks the Pay button, it actually returns a Javascript command as the redirect, which then opens up a modal iframe to my payment gateway, like so:</p> <pre><code>public function process_payment( $order_id ): array { inclu...
3
2,072
Laravel post form error
<p>I'm having a problem for the first time when i submit a form.</p> <p>When i submit the form it doesn't go to post route and i don't know why.</p> <p>my post route is that:</p> <pre><code> Route::post('/app/add-new-db', function() { $rules = array( 'name' =&gt; 'required|min:4', 'file'...
3
1,457
Reproduce OxMetrics' ARFIMA model in R
<p>I am working to reproduce some results from OxMetrics (<a href="http://www.timberlake.co.uk/software/oxmetrics.html#ox-pro" rel="nofollow">Ox Professional version 7.10</a>) in R, but I am having a hard time figuring out exactly I get the right specification in R. I do not expect to get identical estimates, but somew...
3
2,002
JS/jQuery: When prepending a dynamic element, how to force the container div to extend upwards instead of downwards?
<p>If you've noticed, it seems that when <code>prepend()</code> is used, the additional elements get piled at the top but the container div is extended downwards. </p> <p>Comparing with FB's load previous message, you will notice that elements are loaded on top of each other but your <strong>view does not change</stro...
3
1,263
How can I save to file label() output in R?
<p>There is a list of objects, in data variable.</p> <p>I call (library: Hmisc):</p> <p><code>label(data)</code></p> <p>Output: </p> <pre><code>$SubsID NULL $SubsID_RN NULL $responseid NULL $Wave 2014 2013 2012 "2014" "2013" "2012" $Country Hong Kong Taiwan Chile Singapore New Ze...
3
1,209
Bundle install failure for an existing ruby app. I suspect libv8
<p>I have the rather unfortunate position of inheriting a rails app from a previous developer. I have the joy of both trying to learn ruby and picking apart the old code to fix what's broken. I don't have any means for contacting the former developer, nor do I have much knowledge of the app other than that it uses rub...
3
1,488
Mobile got hanged while uploading images from gallery in android
<p>I want to upload images from gallery to make it as my profile image.But my mobile got hanged for few seconds and after that, it comes to normal mode and uploads the image with some delay.Can anyone please help me to avoid hanging and upload the image quickly.</p> <p>Here is my code.</p> <pre><code>public void res...
3
3,861
How can have multirows Footer in Datatables?
<p>I want make two rows at my footer datatables. First row of footer for sum columns and second row of footer for search columns.</p> <p>This is my code in javascript</p> <pre><code>$(function () { $('#ntable1 tfoot th').each( function () { //for search columns in footer var title = $(this).text(); ...
3
2,798
connect signal emitted from c++ to qml Connections
<p>I am emitting a signal from c++ and trying to fetch the values using Connections in qml. The codes are compiling however, due to some unknown reason qml is not able to recognise "<strong>OnSomethingHappened</strong>" and signal emitted from c++ is "<strong>somethingHappened</strong>".</p> <p>I know there can be oth...
3
1,855
Object TypeScript
<p>I want to send data from a form in VueJS with Axios. But i don't know how to write my object before send it</p> <p><strong>View :</strong></p> <pre><code> methods: { createPost() { let autorData = { nom: this.nom, } let postData = { titre: this.titre, auteur: autorD...
3
1,275
DELETE ROW command is getting skipped without any ERROR
<p>I have two tables, table1 has multiple rows with data, while table2 is empty.</p> <p>I m trying to perform a simple INSET into and DELETE command in php to add the selected row from table1 to table2 and at the same time DELETE the selected row from table1</p> <p>But here, it gets inserted to table 2 and doesn't ge...
3
1,825
Multiple different calls to same activity issue
<p>I have a simple application with which iam displaying weblinks in webviews. i have two webViews one for links i want to open in portrait or in landscape</p> <p>my code works well when i have only a single intent call and handling only one in the requested activity</p> <p>now from my mainActivty i am sending the in...
3
2,241
Linked List, Stuck on file management
<p>I am trying to read from a file called data.txt. and store it into a LL which looks like this</p> <pre><code>Quanta 2 New 2 Ready 2 A 1 3 B 3 4 C 5 6 D 7 9 </code></pre> <p>I would like to read that file, one line at a time, storing each line at a node in a LL, e.g A 1 3, will be at one node.</p> <p>The desired ...
3
2,791
VBA No resultset from stored procedure that backups database
<p>I need to execute a stored procedure that make some changes to a specific database and back it up at the same time. For some reason, when the backup code is active, in VBA's recordset I don't get any row but the backup is effectively created. </p> <p>The recordset comes closed and Err.Description is "Operation is n...
3
3,484
plotting input data in simmr and being able to change colors of food sources and consumer group data
<p>regarding stable isotope analysis based on package simmr. I am interested in plotting the input data but chosing my own colors for food sources and consummer data. The example for multiple groups in the help section automatically choses the colors.</p> <p>I would like to know if anyone can help me understand how ...
3
4,746
"Standard" Windows fix does not resolve SSL issue. Why?
<p>I am having issues running a app locally with gcloud on a windows 10 machine. I get the following error:</p> <pre><code>C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (Faraday::SSLError) from C:/...
3
1,357
Zxing QR Reader doesn't take focus again
<p>I have made an App using <strong>zxing library for QR reader</strong>.</p> <p><strong>My problem is</strong> When the SCAN activity starts it takes focus of whatever is in the view finder and then refuses to take focus again if placed on anything else. Please help.</p> <h2>main class</h2> <pre><code>public class ...
3
2,690
Errors during bundle install
<p>All of a sudden I've been getting the following error when trying to do a bundle install.</p> <pre><code>/Users/Ken/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /Users/Ken/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/vendor/thor/core_ext/hash_w...
3
1,031
Trie Tree. Unable to access memory
<p>I am a beginner at C++ and am have some issues with 2 separate errors. Unable to access memory and stack overflow.</p> <p>This is my implementation for a Trie Tree, using pointers, of words containing characters a-z. When running tests, I can successfully add several hundred, or even thousands of nodes without issu...
3
1,490
Twisted upload muliple files key error
<p>I'm attempting to write a Twisted Webserver in Python 3.6 that can upload multiple files but being fairly new to both Python and things Web I have ran into an issue I don't understand and I also do not find any good examples relating to multiple file upload.</p> <p>With the following code I get</p> <pre><code>from...
3
1,645
Shift contents of array using parameters in C++
<p>I have been playing around with a bit of code for the past few weeks. The code is a display of the number 1. I want to essentially create a dot matrix style print out, where the 1 is continuously shifted to the right. Here is where I am so far:</p> <pre><code>#include &lt;iostream&gt; using namespace std; /* use fu...
3
1,285
C++ on Solaris: How to cope with "Formal argument" wrongly passed error?
<p>I am trying to compile the SMT solver Z3 (Version 4.5.0) from Microsoft Research on a Solaris 10 (Sparc) with Solaris Studio 12.3 (and this is due to constraints that I cannot change, so please do not hint to gcc/g++).</p> <p>I already had to make some (more or less trivial) code changes in order to come to the err...
3
1,245
what's wrong with this simple code(objective c)?
<p>i want to download some webpages ,but this example code seems doesn't work. it prints "begin download" and then exits,why the delegates method does not be executed? what's wrong in the example code? thanks</p> <pre><code>main.m #import &lt;Foundation/Foundation.h&gt; #import "Test.h" int main(int argc, const cha...
3
1,037
Wcf request is always coming with null parameters
<p>I am trying to call through a REST request in SOAPUI a WCF service running in localhost from Visual Studio. My problem is that the request is coming with its properties to null. Here is the JSON of the request:</p> <pre><code> { "request":{ "order":{ "uuid":"FEAEBDE7-8328-4E39-99F3-CD83F7405...
3
6,139
function getClientOriginalName() on null Laravel
<p>Im trying to use Dropzone in my french laravel app (latest version) When I save my form I get the error</p> <blockquote> <p>Call to a member function getClientOriginalName() on null I try to see if my request sent something with dd() but I get null</p> </blockquote> <p>This is my function on the controller</p...
3
3,035
Changing launcher activity when the app is launched second time onwards android
<p>I am developing an android app where I have a launcher activity that takes the user's email id. When the user enters his email id he is redirected to another activity that asks for another user authentication in a <code>WebView</code>. After the user is successfully authenticated from this activity, the further exec...
3
1,218
Why is my modified Pol01 running in batch mode works for all polarized photon states except for left circularly polarized photons?
<p>I am attempting to use Pol01 example to examine the angular distribution of initially polarized photons Compton scattering off G4_Si.<br /> I have had to include several lines of code in the SteppingAction.cc which will print out information like, for example, the Compton scattering angle and the photon's final kine...
3
1,803
How to open an uploaded file in another template - Django?
<p>my django app acts as an emailing service, emails that are sent are view-able and it's possible to send html emails. How do I display the html emails on the view-mail page rather than just displaying the name of the file ? (the following is the mail-view for an html email): <a href="https://i.stack.imgur.com/Pzdt4.p...
3
3,097
Reaching the end of an array with a sequence of odd/even jumps
<p>I'm trying to understand a Python solution to a programming puzzle that seems to use dynamic programming. I am able to follow most of the solution, but I'm struggling a bit to really formalize the solution.</p> <p>The problem is stated as follows:</p> <blockquote> <p>You are given an integer array <code>A</code>...
3
1,103
NoMethodError in Admin::ApartmentPostsController#create
<p>I am using active admin for my admin panel in Ruby on Rails website. I have this code on my ApartmentPost resource.</p> <pre><code>ActiveAdmin.register ApartmentPost do permit_params :title, :max_stay, :min_stay, :bed_configuration, :number_of_guests, :features, :description, :admin_user_id,...
3
1,202
Recursive join count - Oracle
<p>I have this Oracle db structure (something like forum, ok):</p> <pre class="lang-sql prettyprint-override"><code>CREATE TABLE sections ( section_id INTEGER NOT NULL , parent_section INTEGER NULL , section_name VARCHAR2(256) NOT NULL , section_desc VARCHAR2(1024) NULL ...
3
1,082
How pagination works which is fetch from api in Nativescript
<p>I am not getting the concepts of how pagination works in load more requested data from json api. Even i am getting the data of first page but for remaining pages not getting. If I am using the two api for paging and fetching data but still not getting. Any one help me clear this concepts please..</p> <p>main-view-m...
3
1,773
FTPS connection not closing properly (powershell script)
<p>I use <a href="https://gist.github.com/pbrumblay/6551936" rel="nofollow noreferrer">this function</a> to send a file via FTPS with a PowerShell script. It is a Filezilla Server. It works fine, the file is written on the server, but the connection is not closed properly.</p> <p>I get the following error :</p> <pre><c...
3
2,062
pyzmq Segmentation fault on large .recv()
<ul> <li>edited - I think I wrongly pointed the blame at pyzmq - I actually was running in a QThread and upon suggestion worked on a full working example - not using QThread and I do not see any issues. I'm going to drop my working example for anyone who may want to reference this example. </li> </ul> <p>I'm attempti...
3
1,730
Excel (macro): understanding code - get unique values (rows & cols) to use in macro
<p>(First, I understand that <a href="https://stackoverflow.com/questions/15799172/use-vba-to-get-unique-values-for-use-within-vba">this</a> may work well for me - I'm trying to understand what's going on with a piece of code from somewhere else.)</p> <p>I have a macro connected to buttons to hide columns and rows in ...
3
2,689
php mail attachment - error - how to debug
<p>I search and try different methods to produce a php mail with an attachment, which is saveable with the Client (Outlook). It doesn't work porper and I don't know why?</p> <p>If the script send the mail with this code:</p> <pre><code> $result = mail($mail_to, $subject, $headers); </code></pre> <p>I got an emai...
3
1,298
Procedure don´t run correctly
<p>I create simple procedure who insert data from one table to another table. When I press execute It only mark as successfull but it don´t do any. But If I get a piece of code and press executed, it runs correctly: there are an images of what occur:<a href="https://i.stack.imgur.com/CCULh.png" rel="nofollow noreferrer...
3
1,040
firestore can't get doc id QuerySnapshot.docChanges has been changed
<p>I'm trying to get doc id. I can't find any other way to get this data except for snapshotChanges() method which is throwing me error. I don't see any mistakes in code and I can't find any similar problems on forums. When I use valueChanges() there is no problem with getting data. </p> <p>Error in console</p> <p><a...
3
2,803
Trying to match email address and error message in non-delivery report
<p>I'm attempting to write a csharp app which parses NDRs (non-delivery reports) sent when an email is un-deliverable. The goal is to unsubscribe email addresses from our mailing lists which are no longer valid.</p> <p>I've managed to write code which connects to our exchange server using the exchange web services API...
3
1,606
How do I add transitions between images in an array
<p>Just wanted to know how I could add any transitions, like crossfade or slider, between each image in the array when I click the next button and the previous button. I thought of using JQuery but I've no idea how to implement it into this script was given this and told to add transitions between images for homework. ...
3
5,244
Unity IAP - how to restore my Android purchases
<p>I made an Android payment system with IAP and it is currently registered in the App Store. However, a customer paid for the product and used it, but when I turned on the app again, the payment disappeared and the payment was proceeded again, and the window said, &quot;It's an item I already have,&quot; and I couldn'...
3
7,101
asmack-android-8-4.0.6.jar issue for XMPP connection
<p>I am using asmack-android-8-4.0.6.jar as library for xmpp ,i was able to connect with earlier versions of asmack lib ,but with this new latest lib i am getting below exception,please help me out how to enable SSL authentication using latest asmack lib , I don't find connConfig.setSASLAuthenticationEnabled(true); met...
3
2,021
JQuery Ajax data sent time 500 Internal Server Error
<p>index.php</p> <pre><code>&lt;?php $path = "uploads/"; $image = ""; ?&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;link rel="stylesheet" type="text/css" href="css/imgareaselect-default.css" /&gt; &lt;script type="text/javascript" src="scripts/jquery.min.js"&gt;&lt;/script&gt; &lt;scrip...
3
3,031
i need to output the final part of my JAVA program which is just a game over string , how can i insert it?
<p>these is my program i need to output &quot;game over&quot; if the user enter the string no instead of yes, right now it only works with the yes but i dont know how to add the other option the game is suppose to ask the user for a seed , then for a number from 1 to 100 and then the user has to guees the number, once ...
3
1,412
Extract data from Wikidata using PHP
<p>I have used Faker to generate persons and I want to do the same thing using Wikidata. By getting names, date of birth, gender, first paragraph and other specified similar data. In addition being able to avoid duplicates by checking existing persons (e.g Q4926) I have fetched before. Wikidata Query = <a href="https:/...
3
1,576
All words used to used to train Doc2Vec model appear as unknown
<p>I'm trying to make an unsupervised text classifier using Doc2Vec. I am getting the error message of &quot;The following keywords from the 'keywords_list' are unknown to the Doc2Vec model and therefore not used to train the model: sport&quot;. The rest of the error message is super long but eventually ends with &quot...
3
1,276
Pass data recycler adapter to other activity using Firebase
<p>Image : </p> <p><img src="https://i.stack.imgur.com/sCByV.jpg" alt="enter image description here"></p> <p>I am using Firebase for video status android application, and using recycler view but Firebase daat will not pass first activity to another (second) activity, how I can solve this problem (error)<br> error Mod...
3
2,199
Initialize values of an array that is within a struct
<p>I have a struct called <code>member</code>. Within <code>member</code> I have a <code>std::string</code> array called <code>months</code> that I would like to initialize to default values. This is how I am doing it currently:</p> <pre><code>template &lt;typenameT&gt; ...
3
1,043
I have a Verilog code and the issue is that I need to C bit to go HIGH at the same time as B_G2 and that is done at the else statement
<p>The issue is that I need C bit to go HIGH at the same time as B_G2 and that it is done at the else statement.</p> <p>Here is the code that I have so far:</p> <pre><code>module lightcontrol(clk, R,C, A_CAR, B_CAR, lightsA, lightsB, cnt); `define A_G2 3'b000 `define A_Y 3'b001 `define B_G1 3'b010 ...
3
1,231
Asymmetrik FHIR mongo: partial patient stored
<p>I'm running <code>node-fhir-server-mongo</code>.</p> <p>I'm trying to create a patient:</p> <pre><code>curl -X PUT &quot;http://localhost:3000/4_0_0/Patient/example1&quot; -H &quot;application/fhir+json&quot; --data &quot;@patient.json&quot; </code></pre> <p>My <code>patient.json</code> is:</p> <pre class="lang-json...
3
3,892
Filtering a dataframe based on numerical values in a column
<p>I am trying to filter the rows in a dataframe based on the values of a column. If the numerical value is above 2, then it takes those rows, if it is below 2 it should not take those rows. Sample dataframe</p> <pre><code>| Number | Machine Name | Number of jobs| |:-------|:------------:| -------------:| | One | ...
3
1,260
How to use Big Decimal in Jav ATW
<pre><code>package SI; import java.awt.*; import java.awt.event.*; import java.lang.*; import java.math.*; import java.math.BigDecimal; import static oracle.jrockit.jfr.events.Bits.doubleValue; import static oracle.jrockit.jfr.events.Bits.floatValue; import static oracle.jrockit.jfr.events.Bits.intValue; public class...
3
2,418
ListView Renderer view cell text moves towards right on grouping
<p>I have used a renderer for my listview because groupheader used to get stuck on scrolling. After using the rendered the scroll issue got fixed but </p> <ul> <li>The viewcell text got aligned towards the right on Load.</li> <li>As you scroll the aligning issue did not appear.</li> </ul> <p>How to align the viewcell...
3
3,897
How to automatically call for a next iterator inside a loop
<p>I recently started scripting and am having difficulties with nested loops. I'm not getting the first iterator object from the first loop as an input to the second to run properly.</p> <p>The problem itself is quite simple. I would like to change the second item (‘20’) on row 1 in my data to a number from the range ...
3
1,159
Why the params go through the function when i use junit?
<p>I want to test the controller of java-end,so I need a params from web which is request for the controller.But I am confused of map&amp;json,and the params I made is cannot use.</p> <p>the key code:</p> <pre><code>public Object updateListLoggerUser(@RequestBody Map&lt;String, Object&gt; params, Model model, HttpSer...
3
1,271
Issue while making HTTPs request from Hololens to Azure OCR service
<p>We are migrating an application from UWP to Unity, in which we are trying to access azure OCR services from Unity . While making a https request from unity we are getting the below error (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 45)</p> <pre><code>Exception thrown at 0x7787A0CB in Ey...
3
1,422
Storing HTML Form input as an Object using a Constructor class and a dynamic variable name (Plain JS)
<pre><code>&lt;form id="projectForm" onsubmit="return ptitle.value = new Project(this);"&gt; &lt;div class="form-row"&gt; &lt;label for="ptitle"&gt;Title: &lt;/label&gt; &lt;input type="text" id="ptitle" name="ptitle"&gt;&lt;br&gt; &lt;/div&gt; ...
3
1,047
Exception Unhandle System.IndexOutOfRangeException
<p>This code is about viewing a published consultation schedule. Unfortunately I'm stuck with the if statement. The error occurs at line : If dr("Lecturer") = ComboBox2.SelectedItem Then || I'm using a combobox to display the data from a database, which means there is a list of items in the combobox, and I will select ...
3
16,151
Why am I getting "Document is empty" when I preview in Jasper studio book mode?
<p>I use Jasper Report studio to design the report using the book template, I'm sure a single report is ok, but when I preview the merged report, I found that an empty document is returned, showing &quot;Document is empty&quot;, the following is the code of the main page. Please help me!</p> <pre class="lang-xml pretty...
3
2,493
Node.js ffmetadata incorrect codec parameters
<p>I'm making a song downloader app in Node.js. I managed to get everything to work, the app downloads the song and downloads its artwork (image). So I have the mp3 file and jpg file. The only problem is attaching the jpg file to the mp3 file.</p> <p>I'm using the ffmetadata node.js module. I downloaded and installed ...
3
1,436
change JDK version in octave on mac
<p>Octave 3.8.2, OS X 10.10.4</p> <p>I used</p> <pre><code>ml_jar_version=javaMethod('getProperty','java.lang.System','java.version'); ml_jar_version=['Java ' ml_jar_version]; </code></pre> <p>to check the java version and I got</p> <pre><code>ml_jar_version = Java 1.6.0_65 </code></pre> <p>However, I want Octave ...
3
1,049
Element type is invalid. Expected string
<p><a href="https://i.stack.imgur.com/NqNVk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NqNVk.png" alt="enter image description here"></a></p> <p>When I try this code it shows this strange error. And most interesting part is that there was not any change in render method. It worked perfectly unl...
3
1,208
how to code to get facebook friend list in ios7
<p>Hi am using following code</p> <pre><code>-(IBAction)FacebookFriendBtnClk:(id)sender { ACAccountStore *accountStore = [[ACAccountStore alloc] init]; __block ACAccount *facebookAccount = nil; ACAccountType *facebookAccountType = [accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; /...
3
1,307
Bluehost MySQL and phpmyadmin select sql service.php running slow while insert, delete, and update commands works instantly
<p>I am using crud commands in an app and my commands for insert, delete and update in sql work instantly. The select query in my php file called service loads in a few hours. I was wondering what was causing this. It doesn't really make since to me considering the other commands work instantly. Besides it not loading ...
3
1,136
Why gstreamer with vaapih264enc shows "context pad peer query failed"?
<p>I would like to use hardware encoding to compress a raw video file using gstreamer and vaapi. I am getting <code>Could not initialize supporting library</code>, which does not allow encoder to open. Possibly <code>context pad peer query failed</code> is the root cause for this. But I am not sure. I use the following...
3
2,405
Find how many times "Index" appers in array
<p>I'm trying to find out if "Index" exist in my array, and second then count how many time it does appear.</p> <p>Nothing of what I'm trying is working, this is the best attempt i've made, but cant turn my head around this.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="...
3
1,557
Heroku database error on production: PG::UndefinedTable Error
<p>Every time I run the app on Heroku, this is what comes out of the logs:</p> <pre><code>2018-04-15T22:51:12.806576+00:00 app[web.1]: I, [2018-04-15T22:51:12.806420 #4] INFO -- : [cd1ed367-c720-4568-ac03-a3b1bec4fc1b] Started GET "/patients" for 112.205.217.139 at 2018-04-15 22:51:12 +0000 2018-04-15T22:51:12.808307...
3
1,925
Python Crash Course -Alien Invasion -Game Ending Error
<p>I am working on the Alien Invasion project at the end of Python Crash Course 2nd Edition and I am having a problem with my game ending after the user runs out of lives. The game is supposed to end after all 3 lives are lost but when that happens for mine the aliens continue to move off the bottom of the screen. Ther...
3
7,883
Finding all object indices satisfying testing function, like array.findIndex() but more than first index
<p>I have an array of objects:</p> <pre><code>var data = [{"district":"201","date":"Wed Apr 01 2020","paper":671.24,"mgp":36.5}, {"district":"202","date":"Wed Apr 01 2020","paper":421.89,"mgp":44.2}, {"district":"203","date":"Wed Apr 01 2020","paper":607.85,"mgp":67.36}, {"district":"201","date":"Sun Mar 01 2020","pap...
3
1,132
Can anyone help to open this word file please
<p>I am getting some problem to open a word file which showing corrupted, I recovered file but it also giving me unreadable format. Anyone please help me on this issue.</p> <p>It showing this format ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ...
3
1,150
Woocommerce product subtitle is misplaced
<p>Hey everyone I hope you can help me with this. I created 2 subtitles with ACF for my products (subtitle and subtitle_2) I want them to appear underneath my Product title (duh!!) on both my product page, and my homepage/shop (in the product "little box").</p> <p>So far I managed to have them appear on the product pa...
3
1,266
django DB2 inspectdb failure :'NoneType' object is not subscriptable
<p>my dev environment is in python 3.6 and virtualenv(virtualenv 15.1.0) and with dependencies below: django 2.2 ibm-db 3.0.1 ibm-db-django 1.2.0.0</p> <p>as i used "(env_django2) λ python manage.py check", it return "System check identified no issues (0 silenced)." that is no problom.</...
3
2,186
How to maintain script tag position on webpage?
<p>I am using a script tag to add a widget to my Next.js app. I have create a section component for this widget but when I run the app it renders below my footer but it is supposed to render above as a section component. Can someone help me out with this, please?</p> <p>Below you will see the screenshot of the issue, m...
3
1,423
How to make images fill my carousel slides
<p>I am trying to fit my images into the slides.</p> <p>Below is my example code and screenshots:</p> <pre><code>&lt;div className=&quot;relative h-24 w-20 sm:h-44 sm:w-100 md:h-44 md:w-60 flex-shrink-0&quot;&gt; &lt;Carousel showThumbs={false}&gt; {imgSrc?.map((url, index) =&gt; ( &lt;div className=&quot;h...
3
1,236
Plotly animation with factors
<p>Converting a num vector to factors yields unexpected results in a plot_ly animation.</p> <blockquote> <p>If frame is a numeric variable (or a character string), frames are always ordered in increasing (alphabetical) order; but for factors, the ordering reflects the ordering of the levels <a href="https://plotly-b...
3
1,032
Android expandable list: how to add different layout for layout groups
<p>My problem is while clicking on the groups at first position it shows the child properly but when I click next group item the application crashes.</p> <pre><code>@Override public View getChildView(final int i, int i2, boolean b, View v, ViewGroup viewGroup) { if (v==null) { LayoutInflater inflater = (L...
3
2,612
How to redirect to new screen for each dynamic grid view content?
<p>I have one grid view, and i am showing data from my database. So like say, if I have 6 titles.Then my grid view will be 6 (boxes ). Whenever I press each grid view title [ box ]. I need to redirect to separate 6 screen. How to do that?</p> <p>So if I press my first title in my grid view. That is <code>Orders</code>...
3
1,952
Scrapy Xpath construction producing empty brackets on dynamic site
<p>I am trying to create a spider via scrapy to crawl a website and extract all links for specific stores. Ultimately, the spider would then use those store links to extract pricing information. The site is designed to break down store information into States and Regions. I have been able to extract all sub links for t...
3
1,043
Making WebMQ Synchronous
<p>I'm trying to make WebMQ act synchronously in MULE in order to turn the message queue into a REST api for an internal project. Unfortunately, I know very little about MULE.</p> <p>After a good bit of work, I started understanding the Request-Reply scope and tried to use the WMQ Connector with it, only to find out ...
3
2,401
How many iterations of the Mandelbrot set for an accurate picture at a certain zoom?
<p>I have implemented the mandelbrot set algorithm in Java which I am using to make an animation of zooming into the set. My problem is that the algorithm is performing very slowly since I have it set such that the maximum number of iterations is high (1000) so that clarity will be preserved when zooming in closely. Ho...
3
1,067
Java: Setting TLSv1.2 in https.protocols not working
<p>I am using <code>Java 7</code> with tomcat and trying to make an API call to paypal which only support <code>TLSv1.2</code> . Since <code>java 7</code> doesn't use <code>TLSv1.2</code> by default, I read somewhere and add <code>-Dhttps.protocols=TLSv1.2</code> in command line parameters in <code>catalina.sh</code>.<...
3
1,288
Calculate Balance in Date range - PouchDB
<p>i am working on small billing application<br> i want to calculate the opening balance for the date range</p> <p>i have following fields in docs of pouch db data base</p> <p>date:2021-08-01 <br> sale:800<br> invest:500<br> expense: 100<br></p> <p>i want to calculate the opening balance by date range using pouchdb</p>...
3
1,979
Product Combination of variables by loop in R with data table
<p>I have an initial table in R including 7 variables as shown below:</p> <pre><code>library(data.table) Data&lt;-data.frame( ID=c(1,1,1,2,2,2,3,3,3,4,4,4), CP1 =c(1,0,0,1,0,0,1,0,0,1,0,0), CP2 =c(0,1,1,0,0,1,0,1,0,0,0,0), CP3 =c(0,0,0,0,0,0,0,0,0,0,0,1), PR1 =c(1,1,0,0,0,0,0,0,0,0,0,0), PR2=c(0,0,1,0,0,0,0...
3
2,306
deletes everything from the database,the getRef() method does not work because i cant put my dialog inside the FirebaseRecyclerAdapter
<p>RETRIEVADATA CLASS</p> <p>package com.dikolobe.salesagent;</p> <p>public class RetrieveData extends AppCompatActivity implements View.OnClickListener,OnNoteClickListener{</p> <p>private static final String TAG = &quot;&quot;;</p> <pre><code>private FirebaseRecyclerAdapter&lt;Product, ViewHolder&gt; firebaseRecyclerA...
3
12,521
cannot generate sources after switching os
<p>i recently switched from Ubuntu to Windows 10 and i can't generate sources any more. the relevant section of my pom.xml is as follows</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt; &lt;artifactId&gt;cxf-codegen-plugin&lt;/artifactId&gt; &lt;version&gt;${cxf-codegen-plugin.v...
3
2,185
Exit code -11 after installation of Vim auto completion plugin YouCompleteMe with MacVim (Vim version 8.1)
<p>I'd like to install the auto completion plugin YouCompleteMe for Vim.</p> <p>I followed the instructions of the installation guide at <a href="https://github.com/Valloric/YouCompleteMe/blob/master/README.md#full-installation-guide" rel="nofollow noreferrer">https://github.com/Valloric/YouCompleteMe/blob/master/READ...
3
2,266
Returning customize Array value
<p>I have a sample of code that returns each value in an array, in order. I have used <code>forEach()</code>. Is there any way to return value in customize array. </p> <p>I made some function for split <code>text-area</code> value to all textarea and query using text string. I am able to success. But Some Problem. Bel...
3
1,559
How to reference more than one controller in one view (CakePHP)
<p>I am building an application in CakePHP (I have been using this for a couple of months in a new job, and took over this project from the previous employee, so my understanding is limited).</p> <p>This application has several database tables, the ones involved in this problem are Centres, Softwares and Categories.</...
3
6,103
Method not found: GraphQL.ExecutionOptions.set_NameConverter in netcoreapp2.2
<p>I need to integrate GraphQL in NetCoreApp 2.2 <code>&lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;</code> (I can't upgrade to NetCore 3 for other reasons).</p> <p>PS. We have another project in .Net Core 3.1 and we can use <em>GraphQL.Server.Transports.AspNetCore.SystemTextJson</em> and we don't have ...
3
1,060
Getting errors when concatenating features to Keras Functional API with multiple inputs
<p>Where would I insert features I've extracted from the training set to use in the model? Would I just concatenate with layers.concatenate([])? EX: I've calculated the semantic similarity of headline and document. I want to that feature as an input in the model.</p> <p><strong>Info:</strong></p> <pre><code>embedded_se...
3
1,172
Google App Engine and Java org.reflection library - Error during the scan procedure
<p>I'm trying to setup a <code>ConfigurationBuilder</code> for the library <code>Reflections</code>, which use the following configuration:</p> <p>I'm using the library through a <a href="http://mvnrepository.com/artifact/org.reflections/reflections/0.9.10" rel="nofollow">Maven dependency</a></p> <pre><code>&lt;depen...
3
3,794
R: Cleaning up a wide and untidy dataframe
<p>I have a data frame that looks like: </p> <pre><code>d&lt;-data.frame(id=(1:9), grp_id=(c(rep(1,3), rep(2,3), rep(3,3))), a=rep(NA, 9), b=c("No", rep(NA, 3), "Yes", rep(NA, 4)), c=c(rep(NA,2), "No", rep(NA,6)), d=c(rep(NA...
3
1,041
Issues populating dictionary with float values from Excel Pandas
<p>I'm using an excel spreadsheet to populate a dictionary. Then I'm using those values to multiply the values of another data frame by reference, but it gives me errors when I try. I decided to make the excel spreadsheet out my dictionary to avoid errors, but I haven't been successful. I'm doing this because the dicti...
3
1,171
Doing a jQuery Ajax submit, but it doesn't work
<p>I am trying to do a ajax post request, to also read a JSON response from the URL, but if I click the button nothing happens. What could be wrong with my HTML code or is it the Javascript? The function <code>submitRegister</code> is empty at the moment.</p> <p>Javascript:</p> <pre><code>$('#registerForm').submit(fu...
3
1,335
ABAddressBookGetPersonWithRecordID return nil
<p>My app stores the AddressBook recordIds of Contacts with the same name and later tries to present the addresses to the user to select the desired person. However, when I use the stored recordIds with ABAddressBookGetPersonWithRecordID, it returns nil. The code below represents the code project - I have "copied" the ...
3
1,204
Complicated Query + Pagination Script
<p>Problem 1: Pagination on my script is not working. After 20 entries, it only shows the most recent 20 entries and doesn't split them into different pages. Code is below:</p> <p>Problem 2: I am using the same pagination script for something else and over there it splits correctly but on the next page it shows the...
3
3,808
Combining PCH, PDB, and Zi leads to puzzling C2859 compile error with VS2017
<p>I have a project that doesn't currently use precompiled headers, but I'd like to make it do so, as I've demonstrated that it leads to real compilation speed improvements in the project.</p> <p>I'd also like to use <code>/Zi</code>, so I can capitalize on the parallel build benefits associated with <code>/Zf</code>,...
3
2,841
How to keep the rails nested resource route url when model save fails?
<p><strong>Summary:</strong></p> <p>I have a nested attribute. I go to route:</p> <pre><code>/customers/:id/credit_cards/new </code></pre> <p>On the create action, save fails, code does </p> <pre><code>render :new </code></pre> <p>This pushes the URL to:</p> <pre><code>/credit_cards/new </code></pre> <p>How do ...
3
1,029
UICollectionView How to implement horizontal align scrolling
<p>I have a <code>UICollection</code> which is implemented and works, however I cannot achieve the scrolling I want.</p> <p>Here is a picture of my <code>UICollectionView</code>, I have resized the grey cell to <code>250</code> by <code>250</code>. </p> <p><a href="https://i.stack.imgur.com/QHoWc.png" rel="nofollow n...
3
1,147
Is there any way to stop and then start a discord.py bot without having to restart the whole py file?
<p>According to discord.py's discord server as well as their docs you'd need to restart the whole py file after using 'bot.close()' since it disconnects from their api. Unfortunately I'm trying to create a launcher and it wouldn't really be ideal to restart the whole launcher to restart the bot, does anyone know any 'h...
3
1,096