title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
saving checkbox values in meta box and displayed on front-end (category page not post/page) in wordpress
<p>I have create multiple checkbox in meta box using this code </p> <p> <pre><code>add_action ( 'edit_category_form_fields', 'extra_category_fields'); function extra_category_fields( $tag ) { $t_id = $tag-&gt;term_id; $cat_meta = get_option( "category_$t_id"); ?&gt; &lt;tr class="form-field"&gt; &lt;...
2
1,586
Value of a child in firebase database showing null
<p>i usually work with firebase database like a constant 'Name' and a variable 'Value' but now according to my new project im trying to make both of it as variables which means that both aren't decided by me but the user... like this - <a href="https://ibb.co/cGh3qJ" rel="nofollow noreferrer">https://ibb.co/cGh3qJ</a><...
2
1,673
Hover to Expand One Div and Shrink Another In the Same Row
<p>I am working on a web site where there are 2 divs per row, each at 45%. I would like to set it so that if you hover over a DIV in a row, the other DIV in that row will shrink as the hovered DIV expands, and then they restore when hover leaves. The shrinking DIV could be either before or after the hovered DIV in th...
2
1,045
Django - 'function' object is not iterable - Error during template rendering
<p>So, I've been trying to create a user login. When I click submit on my login form, I get this error:</p> <pre><code>Exception Type: TypeError Exception Value: 'function' object is not iterable </code></pre> <p>Here's the full Traceback: <a href="http://dpaste.com/3D1B7MG" rel="nofollow">http://dpaste.com/3D1B7MG<...
2
4,674
Integrating Spring SAML as SP and SimpleSAMLphp as IdP (HoK profile)
<p>I am trying to get HoK profile work with Spring SAML as the SP and SimpleSAMLphp as the IdP.</p> <p>The SP gets the client certificate and then sends the following authentication request to the IdP without problem:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;saml2p:AuthnRequest AssertionCon...
2
6,167
padrino && websockets
<p>i'm looking for a way to open and use websockets from within a <a href="http://padrinorb.com" rel="nofollow noreferrer">Padrino</a> application. i know Padrino works with a single thread but i'm looking for a way to open websockets and share variables between its "onopen" "onclose" "onmessage" methods and Padrino co...
2
1,369
JNA - Use structure array as byref argument
<p>I know parts of this issue is covered by some posts here and I have looked at them and tested some but with no luck. I have this native method signature which should populate the provided <strong>CBadgeData structure array</strong> with results:</p> <pre><code>int elc_GetBadges(int nHandle, char* cErr, int* nRecCou...
2
1,052
kendo-ui mvc autocomplete does not display results
<p>I was able to get a working version using the js version <a href="http://dojo.telerik.com/@willtx111/oFolI/5" rel="nofollow noreferrer">dojo autocomplate</a> but I need it to work using the MVC version. I added <code>DataSourceRequest</code> in the controller as suggested below and changed a couple more items that g...
2
1,962
client server TCP IP program to download a file and list files in a directory on Ubuntu
<p>I don't know why it gets into a infinite loop and does not download the file when I try to execute that command line:</p> <p>./server 2000</p> <p>./client get filename localhost 2000 256</p> <p>I have two doubts. First one is why the list of files comes with some dots on it. Second one is why I can't download the...
2
3,072
Ruby unable to parse Json
<p><strong>The Problem</strong></p> <p>Trying to convert json file into a hash. I get parsing error. This has been driving me nuts for days. More confusingly that my code works on one computer, but that same exact code does not work on the other.</p> <p>I've used various contents of the JSON file itself. Even simple ...
2
1,484
Cytoscape cannot read property 'className' of null
<p>I am trying to integrate cytoscape in angular application.</p> <p>First of all I downloaded:</p> <pre><code>npm i --save ngx-cytoscape cytoscape @types/cytoscape </code></pre> <p>then I imported Cytoscape library into module</p> <pre><code>import { NgModule } from '@angular/core'; import { CommonModule } from '@...
2
1,418
Memory leak on boost thread pool
<p>i implemented a thread pool as described in this discussion <a href="https://stackoverflow.com/questions/22685176/boost-group-threads-maximal-number-of-parallel-thread">Boost group_threads Maximal number of parallel thread</a></p> <p>with one change i have a function which wait till all threads are finished:</p> <...
2
1,806
Pandas group by function is not grouping properly?
<p>I have a dataset that looks like :</p> <pre><code> NUM 80000 80001 80002 80003 80010 80011 80013 80023 CUSTOM_SITES NAME CC DD EE FF GG HH JJ KK X 0 0 0 181621 0 0 809 67 Y 0 0 0 1885 0 0 17 0 a Z 0 0 0 43 0 0 0 0 a T 0 ...
2
2,159
Graph can not be resolved to a type eclipse error
<p>I'm having a problem with eclipse where it says graph can not be resolved to a type, its really confusing. Its part of a college program i wrote with the help of a text book.The problem seems to be everywhere i have DistPar, sPath and vertex list. Can anyone help. </p> <pre><code>public class shortpa { public ...
2
2,410
Error in DataBinding cannot find symbol class
<p>I use databinding in my project and its working fine but today suddenly it give error <code>Error:(35, 13) error: cannot find symbol class AddPatientBinding</code> </p> <p>here my gradle.build:- </p> <pre><code> buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } ...
2
4,075
C# Serialize EventArgs to Xml
<p>I am trying to serialize an object that contains an EventArgs object. If I ignore the EventArgs object upon serialization, everything works fine, but if I don't put an <code>[XmlIgnore]</code> above it, the application crashes with the error message</p> <pre><code>System.InvalidOperationException was unhandled Me...
2
1,214
JAXB annotations for groovy attribute classes
<p>have a project set up like the following:</p> <pre><code>import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bin...
2
1,335
Hibernate JMX library ClassNotFoundException
<p>I have <code>hibernate-jmx-3.5.4-Final.jar</code> in <code>target/myapplication/WEB-INF/lib</code> which suppose to be the place where applications runs but there is error:</p> <pre><code>[RMI TCP Connection(3)-127.0.0.1] ERROR o.s.web.context.ContextLoader - Context initialization failed org.springframework.beans...
2
7,629
How to make Sudoku solver with backtracking algorithm go back?
<p>This weekend I worked on a Sudoku Solver (<a href="http://rubyquiz.com/quiz43.html" rel="nofollow">Ruby quiz</a>) based on a backtracking algorithm. The sudoku is loaded in an array <code>sudoku_arr</code> of 81 integers (9x9 grid) where 0's are empty spots. There is a <code>valid?</code> method which checks if the ...
2
2,940
document.write() and document.images[i].width fails in IE8!
<p>I'm using <code>document.write()</code> just to debug some code and found some very strange behaviour in IE8. Is it me, or is this a bug?!</p> <p>A page with just 4 <code>img</code> elements:</p> <pre><code>&lt;img src="img/one.jpg" width="100" height="75" alt="1st Demo Image" title=""&gt; &lt;img src="img/two.jpg...
2
1,446
Java Multi Threading, make a thread wait for another thread, or joining different thread
<p>this is my first time asking here. I have many times helped before when searching and always found this site. But now I can't found the answer for my problem. It has some kind of situation with many other question, but I can't found the one that's in my need.</p> <p>Okay, so I have class named player, farm, and lan...
2
1,599
Not able to load new module dependency in angular
<p>Im using appgyver and are not able to load new module. I get this error message: Failed to instantiate module legeApp due to:\n[$injector:nomod] Module 'legeApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the seco...
2
1,174
FFMPEG concat videos
<p>I am unable to concat two videos using FFMPEG. The command fails on the two special videos. </p> <p><strong>Video 1:</strong> First video is generated from the image using the following command:</p> <pre><code>ffmpeg -loop 1 -i 20150608_162807.jpg -c:v libx264 -t 3 -pix_fmt yuv420p out.mp4 </code></pre> <p>I trie...
2
3,031
Newtonsoft Json dynamic objects
<p>i am trying to access the values from ETH_MOD etc. inside a foreach to output the name like ETH_MOD and the last value. the problem is that the keys like ETH_MOD and ETH_LTG are dynamic. They change from time to time and also more new pairs are added. </p> <p>hope somebody understand my problem and can help ;)</p> ...
2
1,098
Spring Kafka - Transactionally publish message and commit record offset via the Listener Container fails on retry after transaction rollback
<p>I am using spring-boot &amp; spring-kafka (see pom.xml for specific versions) with Apache Kafka v2.0.1 and I am facing a weird issue when using transactions via Listener Container.</p> <p>The issue is raised when there is an error originated by Kafka while trying to publish new message on consume-process-produce cy...
2
6,953
Spring JNDI datasource - no qualifying bean of type [javax.sql.DataSource] found
<p>I've defined a JDNI resource in tomcat 7, but Spring is failing to inject it.</p> <p>Here's my META-INF/context.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;Context&gt; &lt;Resource name="jdbc/TyedArtDB" auth="Container" driverClassName="org.postgresql.Driver...
2
1,441
How to extract the last line from the wget command output?
<p><code>DRLAncillary_2014-01-25.tgz</code> file doesn't exist under the remote directory <code>CompressedArchivedAncillary</code>on FTP server host <code>is.sci.gsfc.nasa.gov</code>. </p> <p>If I use the wget command with <code>--spider</code> option to determine its existence, the following output lines are displaye...
2
1,728
how to parse laravel logs in fluentd
<p>Please help me with stackdriver logs in GCP. I'm using fluentd agent to send logs from server to GCP stackdriver logs. Main issue is that i can't split logs by levels (info, warning, error) and send in correct fromat. Here is my config for fluentd.</p> <pre><code>&lt;source&gt; @type tail format /^(?&lt;message...
2
1,357
Labeled ComboBox in Windows 10 Universal App
<p>similar to my Labeled TextBox, which issues are resolved in:</p> <p><a href="https://stackoverflow.com/questions/32512469/labeled-textbox-in-windows-universal-app">Labeled TextBox in Windows Universal App</a></p> <p>I got two issues in my Labeled Combobox, but first the Code:</p> <p><strong>Generic.xaml</strong>:...
2
2,170
GMap Api geocoder.getLatLng (address) function , Doesn't work good when call it within loop
<p>I'm trying this recursion function to find LatLng of 2088 diffrent addresses and replay me with only about 180 results . although all addresses are valid on google maps website .</p> <pre><code>function test(i) { if(i &gt;= jsArray.length){return;} var geocoder = new GClientGeoco...
2
1,682
get the three highest values in a TreeMap
<p>I am trying to find the three highest values in a TreeMap. I wrote a code that is kind of doing it, but I would like to ask whether you can suggest a more efficient way. Basically, I am saving each word of my text in a TreeMap along with the number of times it appears in the text. Then I am using a comparator to sor...
2
1,295
clang: error: linker command failed with exit code 1 (use -v to see invocation) when linking library in cmake
<p>I'm trying to link <a href="https://github.com/thp/psmoveapi" rel="nofollow noreferrer">this</a> library to my project, I'm using CLion as my IDE and CMake to link. I have tried to follow all kinds of tutorials but no result. Is there another way of doing this? I'm a beginner in C++ and I come from a more higher lev...
2
1,131
pass variables by parameters to be modified within the function
<p>I have a method that takes care of the logic of saving the values of the <strong>TextFormField</strong> fields in variables, of different <strong>Forms</strong>, but they do not save the value in the <strong>String</strong> variables that I pass through parameters, when the <strong>Forms</strong> are validated.</p> ...
2
4,236
How to disable gesture highlight animation on onGesturePerformed?
<p>I was doing similar gesture detection from vogella tutorial <a href="http://www.vogella.com/articles/AndroidGestures/article.html" rel="nofollow">here.</a></p> <p>My MainActivity is:</p> <pre><code> package com.example.gesturesaveopendocs; import java.util.ArrayList; import android.app.Activity; ...
2
1,132
Android requestFeature() must be called, NOT a Dialog
<p>First of all let me apologize, this is a long post with a wall of code, but I wanted to be thorough. </p> <p>I get an error in my <code>logcat</code> when I click the button to start this <code>fragment</code> in my program. It's stating I must "<em>requestFeature() before adding content</em>". I've exhausted all r...
2
5,106
how to speed up excel interop process in c#
<p>Here is my code. Please help me friends. This code can convert any text document to excel. But in large documents it takes so much time. How do i solve this?</p> <pre><code>Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; ...
2
1,593
Mariadb won't start after hard reboot
<p>While trying to repair a corrupted table which it stuck at optimizing stage for 12 hours, my smartness went ahead and rebooted the server</p> <p>After reboot mysql won't start<br> Running mariadb 10.1.20<br> Storage Engine AREA<br> RAM 32 gb<br> OS: Centos 6.7 </p> <p><strong>My.cnf</strong></p> <pre><code># ...
2
5,772
Angular2 rxjs/Subject import - can't load vendor/rxjs/index.js
<p>I haven't changed anything inside angular cli structure. I tried to import Subject from rxjs and create Subject object like this:</p> <pre><code>import { Subject } from 'rxjs'; @Injectable() export class GlobalService { nameChange: Subject&lt;string&gt; = new Subject&lt;string&gt;(); ... </code></pre> <p>and...
2
1,847
FOR XML EXPLICIT Parent ID not among open tags
<p>I am trying to craft XML to return to BizTalk from a SQL Server stored procedure that will make it easy for me to debatch the files based on an <code>Attribution_TIN</code> number in our database.</p> <p>I need the data formatted in XML that follows this structure:</p> <pre><code>&lt;ns1:Destination xmlns:ns1="XXX...
2
3,398
Not able to access phone number column through contact api (ContactsContract)
<p>I am trying to assign an contact cursor to an adapter. I am not able to access it.</p> <p><strong>It throws below error. Unable to start activity java.lang.IllegalArgumentException: column 'data1' does not exist</strong></p> <p>in line<br> *dataAdapter = new SimpleCursorAdapter(this, R.layout.contact_xml, cCursor,...
2
1,381
add border to every n column to an HTML table without CSS
<p>I am really new to HTML and I'd like to add a border to certain columns as a divider.</p> <p>I would like my table to have borders like this:</p> <pre><code>| Username | Round 1 | PR | Bonus | Round 2 | PR | Bonus | Total | Rank | ---------- --------- ---- ------- --------- ---- ------- ------- ------ | abc123 | ...
2
1,547
Removing space around wedge polar plots in Matplotlib
<p>I am starting to play around with creating polar plots in Matplotlib that do NOT encompass an entire circle - i.e. a "wedge" plot - by setting the <code>thetamin</code> and <code>thetamax</code> properties. This is something I was waiting for for a long time, and I am glad they have it done :)</p> <p>However, I hav...
2
1,559
javascript function does not take effect when trying to change display property
<p>I am quite a noob for javascript so sorry for this very basic question: So i've been looking around but found no answer for this very simple question (I strongly believe its not that hard but couldn't figured out why my code doesn't work). So i try to make an Image appear after I click on another image. This is simi...
2
1,875
style sheet not loading because of MIME
<blockquote> <p>Refused to apply style from '<a href="http://localhost:3001/css/style.css" rel="nofollow noreferrer">http://localhost:3001/css/style.css</a>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.</p> </blockquote> <p>I know this has been...
2
2,379
ReactNative 'React/RCTBundleURLProvider.h' file not found with react-native-fbsdk
<p>I installed react-native-fbsdk by fllowing instructions. <a href="https://github.com/facebook/react-native-fbsdk" rel="nofollow noreferrer">https://github.com/facebook/react-native-fbsdk</a></p> <p>However, I got the error in AppDelegate.m</p> <p>'React/RCTBundleURLProvider.h' file not found</p> <pre><code>#impor...
2
1,052
incorrect usage of union and limit
<p>I have a massive SQL Statement and after upgrading to MySQL 5.7 I get the following error:</p> <blockquote> <p>incorrect usage of union and limit</p> </blockquote> <p>This is the initial query: </p> <pre><code>SELECT tx_wbfincas_domain_model_finca.*, helper.* FROM tx_wbfincas_domain_model_finc...
2
1,498
How to store const array in class?
<p>My OOP-style C++ application has a method (used in many .cpp files), that get two parameters: pointer to array and array size:</p> <pre><code>bool SendData(unsigned char* data, size_t size); </code></pre> <p>I have some arrays, that will never changes. And I want to define them, or make a consts, or something else...
2
1,089
Why I can't build jar in Maven
<p>Already I checked all the advice about similar problems. Nothing works. Maybe someone has an idea of what the problem is? Below pom file and console with an error.</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ma...
2
1,034
Showing Grid View in popup Window
<p>I have a problem that I want to show a Custom <code>GridView</code> in Popup window with images and Text. Images are coming from webservice, but my adapter is unable to show the <code>GridView</code> Items. I don't know why? Please suggest me any solution regarding the same.</p> <p><strong>Code:</strong></p> <pre>...
2
1,867
Will apple reject my app on autolayout warnings?
<p>I made iPhone app targeting iOS 6</p> <p>My app runs very smoothly and there is no crash in the app during launch and anywhere in the app.. but my app shows some warnings related to <code>autolayout</code>. </p> <p>I tried a lot to solve this warnings but i didn't success..</p> <p><strong>Warnings in NSLog :</str...
2
1,066
why always LocationSettingsStatusCodes.SUCCESS even GPS turn off
<pre><code>if(!locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) { mGoogleApiClient = new GoogleApiClient .Builder(this) .enableAutoManage(this, 34992, this) .addApi(LocationServices.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) ...
2
1,062
android.database.sqlite.SQLiteException: near ")": syntax error (code 1)
<p>i check every thing many times but still i got this message</p> <pre><code>android.database.sqlite.SQLiteException: near ")": syntax error (code 1): , while compiling: CREATE TABLE location (_id INTEGER PRIMARY KEY AUTOINCREMENT, location_setting TEXT UNIQUE NOT NULL, city_name TEXT NOT NULL, coord_lat REAL NOT NUL...
2
1,060
how to use separate validation form in react js
<p>I am new to ReactJS.</p> <p>I want to separate the validation code from this file and move it to a new file that handles validation.</p> <p>When I am trying to send the props from the render method, it is showing the validation three or four times. I know this is not the right way to do this.</p> <pre><code>import R...
2
2,687
IIS reverse proxy configuration issues with MVC 5 app
<p>I cannot properly configure reverse proxy in IIS 8.5 for my MVC5 application. We use 3rd party application Tibco Spotfire WebPlayer 7.0.1 to integrate into our MVC webapp. To do so we use Javascript API to open report from WebPlayer and insert it into iframe. </p> <p>We have to configure reverse proxy to allow requ...
2
2,001
Shared elements and content transitions in Fragments
<p>I have the following problem:</p> <p>I'm trying to transition from <code>Fragment</code> A to <code>Fragment</code> B. There is a shared element between these fragments in the form of a <code>Button</code> and some other <code>View's</code> (see layout).</p> <pre><code>&lt;RelativeLayout xmlns:android="http://sche...
2
2,052
Using RoboGuice context injection with an AbstractThreadedSyncAdapter
<p>I am using RoboGuice 2.0b4 to wire up my Android application, which makes use of a SyncAdapter (derived from AbstractThreadedSyncAdapter) hosted in a regular service:</p> <pre><code>@ContextSingleton public class SyncAdapter extends AbstractThreadedSyncAdapter { @Inject private AccountManager accountManager...
2
1,516
Multiple response.WriteHeader calls
<p>I am new to go and have difficulty rendring templates. </p> <p>Here is my functions that are to generate template:</p> <p>base.html</p> <pre><code>//Render templates for the given name, template definition and data object func renderTemplate(w http.ResponseWriter, name string, template string, viewModel interface...
2
1,255
Anti aliasing label and transparent background (c# visual studio)
<p>If I have made a form with multiple labels (some dynamic labels) how can I add Anti aliasing to the labels and remove/ make the form background transparent.</p> <p>Also how do I make the form background invisible so its just the labels left?</p> <ul> <li><p>(I experimented with some stuff that are commented out in...
2
1,114
dynamics crm 2013 c# plugin update/change system user timezone in it's usersettings
<p><strong>hello, i need to create a plugin to update a new user -timezone immediately after it created, but i don't know how to update the timezone in the connected usersettings - which attributes (like TimeZoneCode) do i must change if i always want to change to time zone to the my country- paris? , and how to upda...
2
1,174
Bridge not yet loaded! thrown when using latest Wix React-Native-Navigation
<p>I was using RNN V1 and decided to update to the latest since I needed more customization, it updated to the V3-alpha. Don't know if this was a mistake from my part or not, if I prolly should go to latest V2 for more stability. Thing is, whenever I start my project on a different mac, it throws the following error:</...
2
2,803
Can't do a HTTP Post to a Web Service from my Android App
<p>I've been working on an app that uses both GET and POST requests to Web Services. The GET requests are no problems but the POST requests are killing me. I've tried 2 different scenarios in the code. The first looks like this...</p> <pre><code> HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost...
2
1,116
npm ERR! Cannot read properties of undefined (reading 'stdin')
<p>I have an error when running vue.js 3 with vite</p> <p><a href="https://i.stack.imgur.com/DGHPu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DGHPu.png" alt="1" /></a></p> <p>I added nodejs into Variable Environments before</p> <p>I have tried these things but not working</p> <ul> <li>using <co...
2
1,198
WebRTC video artifacts from iPhone X and iPhone 8
<p>I have an iOS WebRTC application (with EasyRTC wrapper). It worked with all iOS devices until iPhone X came out.<br> The problem is that video <em>from</em> iPhone X on other devices looks like this:</p> <p><a href="https://i.stack.imgur.com/TLT6P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/...
2
1,503
Tensorflow-serving docker container adds the GPU device but GPU has 0% utilization
<h3>Hi, I'm having issues with dockerized TF Serving seeing but not using my GPU.</h3> <p>It adds the GPU as device 0, allocates memory on it, but then loads the ML model into CPU device memory and runs inference using only the CPUs. GPU-util on nvidia-smi never leaves 0%.</p> <p>Could anyone help me figure out why thi...
2
4,279
Linked list QuickSort C
<p>I wrote some simple code that sorts a list that contains passwords, and frequency of usage of this password. The problem is, after reading the text file, the nodes are not connecting together. I can't understand why. It keeps only the last value.</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #in...
2
2,500
Spring boot JWT auth by user id
<p>I am in trouble I want login by mail(username) and password but method getName on Principal object must return user Id not user mail. I am trying with userDetails but i don't have any correct result.</p> <p>I've got two type of users: Specialist and Customer which implemented UserDetails interface.</p> <pre><code>...
2
4,349
Modbus4j in Android application
<p>I am using modbus4j in Android application. Before I tested it in java, and works fine. But in Android I have problems with the master.init(), it does not work. In the manifest I add permissions for Internet and Access network state. I have a code more or less like this:</p> <pre><code>// Perform action on click ...
2
1,193
Are there any issues with defining a custom hook inside of a component?
<p>I have a component that uses the same React hook multiple times, using a prop passed to the component inside of the hook. For this example, I'm using the <code>useCallback</code> hook with the <code>finish</code> prop, which is just another function to be called:</p> <pre><code>const Example1 = ({ finish }) =&gt; {...
2
1,993
How to send image frames from C++ to QML continuously
<p>I want to send image frames from C++ to a slot in my QML File continuously. Here I did the C++ coding only to get the image frame from the camera, but I need to send that image frame to QML using some method (signal slots,registry). And I need to know which QML elements can receive my image frames continuously and d...
2
2,687
Stream ftp file to browser
<p>I am trying to retrieve and stream a file to the browser from an ftp site.</p> <p>The error is:</p> <blockquote> <p>Warning: ftp_nb_get() expects parameter 2 to be string, resource given</p> </blockquote> <p>I know that it is a resource but how do I get around this?</p> <pre><code>if(isset($_GET['filename'])){...
2
1,053
java.io.IOException: failed to obtain lock on /usr/share/elasticsearch/data/nodes/0 when start k8s elasticsearch cluster pod
<p>When I start my elasticsearch cluster's pod in kuberntes(v1.15.2),pods log give this error:</p> <pre><code>OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. [2020-03-01T05:43:27,304][INFO ][o.e.n.Node ] [es-cluster...
2
4,553
how to make dropdown keep open on hover and disappear when leave it
<p>i really need help. i tried but it is still not working. i want to make a dropdown menu that will appear on hover and will disappear when leave that dropdown. </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js ...
2
1,099
CSRF verification failed (Django)
<p>I'm getting this error when trying to log in to my django app.</p> <pre><code>Forbidden (403) CSRF verification failed. Request aborted. You are seeing this message because this site requires a CSRF cookie when submitting forms. This cookie is required for security reasons, to ensure that your browser is not being...
2
2,071
php - paypal doesn't accept 'amount' I pass it
<p>First time on here, am having an issue with a website I am writing in php. I am trying to get Paypal to accept a single payment passing it the values below. I used their Create Button tool, and added a few extra fields. The $idTeacher field passes through to paypal perfectly, but the $MaxHourlyRate does not (they...
2
1,097
Sending video on server by multipart form data
<p>I have a problem with pushing video on the server. My API has two parameters in body: details and file and I must authorize it by token in header.</p> <p>At the beginning my file was prepared and exported to the URL that I am pushing to method. Next with details (string value) I am trying to prepare it to send on t...
2
1,303
How to retrieve data once a message is received by webSocket in C#
<p>I'm now facing a problem and here's what I want:</p> <ol> <li>After page is load, show a blank gridPanel implemented by EXT.NET</li> <li>Press a button named "Update" and then connect to WebSocket Server</li> <li>Once receive message from WebSocket server, retrieve list type data and display it on the gridPanel.</l...
2
3,080
How to prevent selecting value while enter key press in react-select
<p>I am trying to achieve to prevent the enter key selection while user has nothing typed and press the enter key. In current situation when user click on <code>react-select</code> and hit the enter key then its selecting the first value from the drop down, where user has nothing typed but still its selection first val...
2
1,308
SwiftUI: How to set the title for the toolbar on macOS 11?
<p>I have a SwiftUI app that has two columns and a toolbar. I'm trying to emulate the latest macOS applications and use the toolbar in the same way that Mail does, i.e. select a sidebar item and show that as the title of the window.</p> <p>Here is my code:</p> <pre><code>import SwiftUI var listItems = [&quot;Item 1&qu...
2
1,296
Error running any Pig job in HDP Hue Pig UI. Error: "Please initialize HIVE_HOME"
<p>When I attempt to launch a Pig Script Job from the Hue Pig UI the process starts a job and then the progress bar sits there for 1-3 minutes and eventually turns all red, with the only output being: "Please initialize HIVE_HOME."</p> <p>My Pig Script that I'm attempting to run is the one from the <a href="http://doc...
2
1,282
Using Random in Parallel.For
<p>My program performs many simulations, each of which calls for many random numbers to be generated. The serial method is straightforward and works. However, in my pursuit of parallelizing the work I believe I created a more straightforward method than what I could find. The other methods are somewhat dated and someth...
2
1,382
WordPress custom USer Profile Fields
<p>I fond some code only and cannot seem to make it work.</p> <p>I do not very much experience but my goal is to add additional fields in the user profile.</p> <p>Here's the code</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class...
2
3,412
mediaplayer.isPlaying always gets false
<p>I am currently working on Chat application. In this there is feature of sending voice notes. The sending and playing of voice notes is working fine. But the problem is that when I play the voice notes, the previous voice notes playing not stoping.. both are playing together.</p> <p>here is my code for playing voice...
2
2,607
Is this possible to do some annotation (like redaction) work on the image using asp.net web application?
<p>I have one Image editing work on the asp.net web page.Actually, the work is i have to select the area of the image and then draw some graphical object like black rectangle box on the selected portion of the image to hide the selected part of the image(Just Similar to Redaction Work).Finally have to save the editing ...
2
2,399
How to compare two structypes in Scala and change datatype of columns in Scala?
<p>I am trying to move data from GP to HDFS using Scala &amp; Spark.</p> <pre><code>val execQuery = "select * from schema.tablename" val yearDF = spark.read.format("jdbc").option("url", connectionUrl).option("dbtable", s"(${execQuery}) as year2016").option("user", devUserName).option("password", devPassword)....
2
1,176
how to debug a CommClosedError in Dask Gateway deployed in Kubernetes
<p>I have deployed <code>dask_gateway</code> 0.8.0 (with <code>dask==2.25.0</code> and <code>distributed==2.25.0</code>) in a Kubernetes cluster. When I create a new cluster with:</p> <pre><code>cluster = gateway.new_cluster(public_address = gateway._public_address) </code></pre> <p>I get this error:</p> <pre><code>Tas...
2
3,287
Update google spreadsheet automatically when a new file is added to google drive
<p>I need to get a google spreadsheet sheet updated when a new file gets added to a certain google drive folder.</p> <p>It needs to pull data such as 'name', 'date' and 'url link'.</p> <p>I've read somehwere that google sheet scripts won't let you add "new file" as event, so I will have to run it every 30 minutes, th...
2
1,792
Meteor crashing while building
<p>I am building a fairly rather simple Meteor project on Windows 8, and despite both re-installing meteor, and manually re-setting the library, after the app has run for a short time meteor crashes and will not restart. Meteor is also unable to run reset, and I haven't been able to identify exactly what it is that cau...
2
2,757
Get coordinates of country location using lookup_coords() function from rtweet package
<p>I have installed rtweet and when I want to collect tweets from a specific country other than USA, the package doesn´t collect any data. I have already installed the <strong>Geocoding API</strong>, <strong>Maps JavaScript API</strong> and the <strong>Geolocation API</strong> with the same API key from Google as an en...
2
1,348
Knockout custom binding handlers: $root is undefined
<p>I am using a Knockout Custom Binding handler (borrowed from <a href="https://stackoverflow.com/questions/17591216/creating-groups-with-knockout-js-foreach">Creating groups with Knockout.js foreach</a>). Within the nested markup, I'd like to reference an observable that is located on the root of the view model. Howev...
2
1,026
Vue JS Google OAuth Sign this.$gAuth.isAuthorized always return false
<p>This is the code I use to create a Google Client wrapper</p> <pre class="lang-js prettyprint-override"><code>var googleAuth = (function () { function installClient () { var apiUrl = 'https://apis.google.com/js/api.js' return new Promise((resolve) =&gt; { var script = document.createElement('script') ...
2
2,486
linq sql error : the text data type cannot be selected as distinct because it is not comparable
<p>I want to select all questions from the questions table that haven't been included already for a particular quiz. My question is why does the below code fail with the message :</p> <p><strong>The text data type cannot be selected as DISTINCT because it is not comparable. The data types text and text are incompatibl...
2
1,594
Ember js: Multiply two numbers to get total
<p>Building a mini quoting application. Not using Ember data or anything else right now, just trying to work with the raw data.</p> <p>Can't seem to multiply two numbers together to get a total for a specific item. Trying to multiply the rate and hours together to get the items total amount.</p> <p>My quote controlle...
2
1,967
Regular Expression High CPU
<p>We are encountering issues in our production environment with 100% CPU utilization and thread dump shows our "Black List" implementation stuck on following.</p> <pre><code>[11/14/13 10:12:42:745 CST] 0000000d ThreadMonitor W WSVR0605W: Thread "Thread-002" (0000003b) has been active for 604063 milliseconds and may...
2
1,760
send HTTP request failed in C#
<p>I use following URL in my chrome and it works fine: <a href="https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/62bea90c-9b0c-487b-8416-1a4d94772f99?subscription-key=29317e2237fb4b43a91959cadee6f143&amp;staging=true&amp;verbose=true&amp;timezoneOffset=480&amp;q=%E5%93%AA%E4%B8%AA%E5%9B%BD%E5%AE%B6%E8%8E%B...
2
1,340
Angular 5: How do I sort Observable alphabetically?
<p>I have a problem I can't figure out: I want to sort data in an Observable (I assume it is at least) alphabetically.</p> <p>What the code basically does is get the data from Firestore and display the startHour and startMinute variables it gets from the database inside an event title bar. That works fine. However, it...
2
5,303
Accessing pubmed abstracts using Entrez Utilities Web Service
<p>I use <a href="http://www.ncbi.nlm.nih.gov/entrez/eutils/soap/v2.0/DOC/esoap_java_help.html" rel="nofollow noreferrer">Entrez Utilities Web Service library</a> to access pubmed articles from my Java application (using pubmed identifier). Full working example how to use this tool was published by <a href="https://sta...
2
2,109
jQuery change <span> into <label> and add for="" with previous <input> id
<p>I have some jQuery to turn selected spans into labels.</p> <p>The problem I have now is that I need to add in the for="" so that it works as a button (I'm using radio buttons with the input hidden so it's just a box - therefore the label needs to have the id of the input in order to work). I know I need to create a...
2
1,078
iBooks: is it possible to use localStorage when importing a *.epub file?
<p>I'm trying to create a sample epub file that I can read in iBooks that will contain interactive content that iBooks will access via localStorage. I am able to get the localStorage piece working on the browser aok in chrome and firefox (not IE). </p> <p>I noted that the localStorage javascript bit does not work when...
2
1,808
How to get public IP from Ansible azure_rm_publicipaddress_facts module into a variable to use with add_host?
<p>I'm trying to set up a pipeline for Azure automation with Ansible, all working, except when I try to get the public IP address into a variable to use with add_host. Here is my example task:</p> <pre><code>--- - name: Get Public IP azure_rm_publicipaddress_facts: resource_group: '{{ my_resource_group }}' n...
2
1,100
Why I'm getting javax.mail.AuthenticationFailedException?
<p>Can someone tells me why the app throws this?</p> <pre><code>W/System.err: javax.mail.AuthenticationFailedException at javax.mail.Service.connect(Service.java:319) at javax.mail.Service.connect(Service.java:169) at javax.mail.Service.connect(Service.java:118) at javax.mail.Transport....
2
1,539