title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Mifare Classic Authentication failure on some devices until the tag has been read with the Mifare Classic Tool | <p>I'm trying to read user data from sector 0 block 1 of Mifare Classic cards in a Xamarin Forms Android app. On most devices it works perfectly every time, but on a Unitech EA510 the authentication consistently fails UNLESS I first read the card using the Mifare Classic Tool (<a href="https://play.google.com/store/app... | 3 | 1,648 |
Scraping listed HTML values using scrapy | <p>I can't seem to figure out how to construct this xpath selector. I have even tried using nextsibling::text but to no avail. I have also browsed stackoverflow questions for scraping listed values but could not implement it correctly. I keep getting blank results. Any and all help would be appreciated. Thank you.</p>
... | 3 | 3,644 |
Bootstrap 4.4 carousel control buttons are in increct position | <p>I wrote a simple Carousel page based on the official documentation.<br>
Reference link: </p>
<blockquote>
<p><a href="https://getbootstrap.com/docs/4.4/components/carousel/#with-controls" rel="nofollow noreferrer">https://getbootstrap.com/docs/4.4/components/carousel/#with-controls</a> </p>
</blockquote>
<p>But... | 3 | 2,240 |
Unclear errorreport from RRDTool graphing script | <p>When one version of a set of scripts runs, which apply RRDTool, you try more of the same .....</p>
<p>Made a version of the lua-script, which now collects power/energy-info, and the related file create_pipower1A_graph.sh is a direct derivative of the errorfree running sh-file described in <a href="https://stackover... | 3 | 1,164 |
VC++ : Enumerate the list of virtual key codes along with scan codes for all the possible key combinations | <p>I would like to enumerate the list of all possible key combinations supported by the current keyboard layout (with virtual key codes, scan codes and their Unicode values). To map the remote user inputs to keys in order to simulate them.</p>
<p>I was expecting an API like <a href="https://developer.apple.com/documen... | 3 | 1,446 |
JavaScript mousedown only works on second click | <p>I want the buttons to change their color when they're clicked (a darker shade on mousedown and their original color on mouseup) and it works but only on the second click. Why is that? And how can I fix this?</p>
<p>Button id's are 1 through 10 (button1, button2...)</p>
<pre><code>document.getElementById('main').ad... | 3 | 1,363 |
Can I define a static map as a function argument in the actual function call? | <p><strong>UPDATE:</strong> I just did some benchmarking of the core conversion logic for various solutions. Here are the CPU times in <em>nanoseconds</em> for a single iteration, averaged out of five million iterations on <a href="http://melpon.org/wandbox/" rel="nofollow">Wandbox</a>:</p>
<p>8 - switch statement</p>... | 3 | 1,434 |
How to listen events with Node.JS & Socket.io | <p>I am making online game server with Node.js, but I am stuck at event listening.</p>
<p>In table.js I wanna listen to "test" emit from client. But it looks nothing.</p>
<pre><code>var socket = io.sockets.connected[socket_id]
socket.on("test", function (d) {
console.log(d)
})
</code></pre>
<p>I am emit from tabl... | 3 | 4,868 |
For loop sending wrong value- twig | <p>I am trying to read different results from different entities in one twig page.
The first loop sends the right results but the second one sends the data from the first loop (Article)</p>
<p>twig code to read Article :</p>
<pre><code> {% for article in article %}
<div class="item"&... | 3 | 5,435 |
MySQL Query: get all matches from the matches table along with the name of the team from the teams table given that when … | <p>I have the following table structures:</p>
<p>matches:</p>
<pre><code>+-------------------+---------------------------+------+-----+-------------------+-----------------------------+
| Field | Type | Null | Key | Default | Extra |
+------------------... | 3 | 1,047 |
when i open new page from appBar tabs, bottombar not hiding. Flutter | <p>I'm try to open some page from appbar tabs. I expect when i click the listView item, it will return a new page. It is return a new page but bottom bar not hiding. How can i fixed it? Maybe screenshots will help.<a href="https://i.stack.imgur.com/POolg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co... | 3 | 1,288 |
Installing extensions into Selenium Grid (remote driver) under local Python 3 to a remote server running under docker | <p>I have changed the title of this post to make it easier to find, and have solved the issue. See my answer below.</p>
<p>OLD TITLE - Selenium Grid 4.0.0.Beta-1 Docker driver crashes my python app when adding chrome extensions when Selenium local does not</p>
<p>I have hunted high and low for a recent answer and trie... | 3 | 1,287 |
Conan not respecting compiler.libcxx abi setting | <p>I have the following conan profile:</p>
<pre><code>$ conan profile show default
Configuration for profile default:
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=11
compiler.cppstd=20
compiler.libcxx=libstdc++
build_type=Release
[options]
[conf]
[build_requires]
[env]... | 3 | 1,247 |
Angular to Node to Backend API - Multer file upload, req.file is undefined | <p>I have this setup in my application -</p>
<p>angular 7 --> node server --> springboot API.</p>
<p>There are some pages on the angular app that sends a json to the API. There are others that needs to send an uploaded image file. I'm unable to send the uploaded image to the node server and API. My code snippet is gi... | 3 | 1,856 |
Double Saving after AJAX-Call | <p>i have a weird problem by saving a record with AJAX and Rails. I want to save a record by using drag'n drop with jQuery Sortable (<a href="http://jqueryui.com/sortable/#connect-lists" rel="nofollow">http://jqueryui.com/sortable/#connect-lists</a>). The saving is working fine... nearly. the same record, which should ... | 3 | 2,446 |
what is most efficient code to sign-extend large integers? | <p>I am writing a code library in x86-64 assembly-language to provide all conventional bitwise, shift, logical, compare, arithmetic and math functions for <code>s0128</code>, <code>s0256</code>, <code>s0512</code>, <code>s1024</code>, <code>s2048</code>, and <code>s4096</code> signed-integer types and <code>f0128</code... | 3 | 1,763 |
IIS Application Pool randomly recycles | <p>Running multiple .netcore applications on our servers.
We see random recycles on the application pools with the message</p>
<blockquote>
<p>Sent shutdown HTTP message to process 'PID_NUMBER_HERE' and received
http status '202'.</p>
</blockquote>
<p>Sometimes there is an accompanying</p>
<blockquote>
<p>"App_off... | 3 | 2,024 |
SP-API PUT Item request from NetSuite | <blockquote>
<p>I am trying to call sp-api put item request and below is my code</p>
</blockquote>
<pre><code>var amz_url = "https://api.amazon.com/auth/o2/token",
grant_type = "refresh_token",
refresh_token = "{refreshtoken}",
client_id = &q... | 3 | 4,677 |
Is it possible to call the Nikon SDK from Swift? | <p>I am trying to interface with a Z series camera using the Nikon SDK, which I assume provides a C interface (Maid3.h, Maid3d1.h). I have included the MAID headers in the bridging header.</p>
<p>Bridging-Header.h</p>
<pre><code>#include "Foundation/Foundation.h"
#include "Maid3.h"
#include ... | 3 | 4,716 |
Error (command 'gcc' failed with exit status 1) when trying to install OpenDR | <p>I am a python beginner and I'm currently trying to run smpl, however I need to download OpenDR to do so. I have installed homebrew and command line tools and checked that I have gcc downloaded. I am pretty stumped at this point on how to proceed. I attached the full error code I am receiving. Any help at this point ... | 3 | 8,337 |
Combine different CTE json objects together | <p>I am having difficulties grasping the concept of combining two CTE json objects together. The data from the two are matched by a field WOID, which is the “workOrderID” in this json. I do not know the correct way of going about this.</p>
<p>Needed Results:</p>
<pre><code>{
"header": {
"In... | 3 | 3,342 |
PuLP integer programming: solver returns 'Undefined' for anything beyond toy example | <p>I am trying to find an integer programming formulation for the following problem: </p>
<p>Sort a list of items according to 2 criteria, represented by the following cost: </p>
<ul>
<li>'Positional cost': dependent on the position of the item in the list</li>
<li>'Neighbour cost': dependent on two items being posit... | 3 | 2,279 |
Items will not fill page and become responsive when zooming out | <p>When I zoom out in my browser, the items in <code>#workspaceMain</code> like <code>#pagename</code>, <code>#toolbar</code>, #content and #tabs will not fill the remainder of the screen space in #workspaceMain even though I have set all widths to 100%. The <code>#workspaceMain</code> width has been set to 70% to acco... | 3 | 4,984 |
How to observe conversations in iOS app powered by Firebase Realtime Database? | <p><strong>=====================</strong></p>
<p><strong>I thought about it for a while and proposed a potential solution at the end of the question, do you think it's feasible?</strong></p>
<p><strong>=====================</strong></p>
<p>I'm using Firebase Realtime Database to support chatting in my iOS app. I hav... | 3 | 1,494 |
Partial Pop up display if we use overflow : hidden | <p>We are Displaying <strong>text</strong> inside <strong>container</strong> as below :</p>
<p><a href="https://i.stack.imgur.com/NTjrt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NTjrt.png" alt="enter image description here"></a></p>
<p>Onclick Text, We are doing below things :</p>
<p>1.Allow... | 3 | 5,475 |
setting entity data adds to existing ones instead of replacing all existing values on Patch request | <p>I have this code in my ObjectServiceService. Every time I send a patch request, it adds to existing items and then it will have duplicates.</p>
<p>For example, at first I have items A, B, C. I send a patch request where I have removed ObjectServiceJob "C", so the request would contain A and B. After the request goe... | 3 | 1,132 |
how to dynamically load dropdownlist based on selection of a previous list with multiple lines | <p>Hi there I've been trying to figure this one out. I have 6 fields. Style, Color, Size, Description, SKU and Unit Price. I'm trying to get it so when you choose style from a dropdownlist the color dropdownlist then filters throught the database and displays the colors based on the style, the size then filters based ... | 3 | 4,661 |
How to write Stateful and Time-based rules in Drools? | <p>I'm trying to write a rule based engine using Drools. The rules go like this:</p>
<p>Rule "Alarm": If the status is "Alarm" then send notification right away.</p>
<p>Rule "Warning": If the status is "Warning" then save the device ID in memory and wait for 5 minutes. If another message with the same device ID and s... | 3 | 1,996 |
How to use microsoft graph api for assigning role to the user in azure ad | <p>I have created below role in the <code>app registration manifest</code>:</p>
<pre><code>"appRoles": [
{
"allowedMemberTypes": [
"User"
],
"displayName": "Student",
"id": "d1c2ade8-98f8-45fd-aa4a-6d06b947c66f",
... | 3 | 2,355 |
Numpy SVD gives infinite singular values for array with finite elements | <p>I've run into this problem (infinite singular values despite finite entries in an array) several times for relatively small arrays with dimensions around 100 by 100. The arrays are large enough that I've struggled to see a pattern. I give a working example below that I found by rounding the values in one of my matri... | 3 | 1,607 |
Error in Maven when it tries to resolve dependencies, could not be resolved | <p>I want to include some libraries from ping federate in my maven, I have the jars and I imported in a lib folder. I have the information in .m2 but when I run my pom with Maven says me the next:</p>
<h2>This is my error:</h2>
<pre><code>[ERROR] Failed to execute goal on project identity.provider.attributevalidator:... | 3 | 2,953 |
How do i display category for each post in codeigniter | <p>I want to display category to each of my posts. Through tutorials, I was able to create <code>MY_Model</code>, but i am unable to display category on each post.</p>
<p>This is my post model:</p>
<pre><code><?php
class Post_m extends MY_Model
{
protected $_table_name = 'posts';
protected $_order_by = 'pu... | 3 | 1,985 |
PHP - Read and write the same file hangs | <p>I'm trying to use FFMPEG to make some works with video on the server, and something I need to do is to get the progress of the process. </p>
<p>I searched a little and I found <a href="https://stackoverflow.com/questions/11441517/ffmpeg-progress-bar-encoding-percentage-in-php">this solution</a> which tells to write... | 3 | 1,481 |
Insertion function into AVL tree won't insert | <p>I am working on an avl tree with strings as keys. The print statements indicate that the insert is happening but in the testing function it reports that the left and right nodes of the root remain null.</p>
<p>Here is my avl tree code:</p>
<pre><code>#include "AVLAdt.h"
void printVal(node * toPrint){
printf("... | 3 | 1,063 |
Stay logged in cookie doesn't work | <p>I try do... <a href="https://stackoverflow.com/questions/5082846/java-ee-6-how-to-implement-stay-logged-in-when-user-login-in-to-the-web-appli">Stay Logged in</a></p>
<p>This is my method for add cookie...</p>
<pre><code>public static void addCookie(HttpServletResponse response, String name, String value, int maxA... | 3 | 1,972 |
How to render YUV data by using DirectX11 or DirectX12 | <p>I have a C++ dll project where YUV data has been processed by using directX9 in an IDirect3DSurface9. Then this surface has been passed to the WPF side by a callback function to render it from WPF side by using D3DImage. But rendering FPS is very slow, near around or below 30 FPS. But we are expecting 50~60 FPS.</p>... | 3 | 2,692 |
How to modify the plot sizes in shiny app? | <p>I built a shiny app which present several plot types. However, the plots are cut from the top, and they are too wide. I tried modifying the width and height in the <code>plotOutput</code> function, did not work.</p>
<h4>My code:</h4>
<pre><code>ui <- fluidPage(theme = shinytheme('united'),
titlePanel(title = h3... | 3 | 3,762 |
Using np.split_array and then saving each split into dataframes | <p><a href="https://stackoverflow.com/questions/59817359/appending-data-to-a-dataframe-but-changing-rows-after-certain-of-columns">Appending data to a dataframe but changing rows after certain # of columns</a></p>
<p>The above is my previous post, where I attempted to convert 1800 row x 1 column dataframe into 300 row... | 3 | 1,652 |
Show View Returning Error: undefined method `each' | <p>I researched this topic here on Stack Overflow but I still can't seem to figure out what I'm doing wrong. </p>
<p>My show.html view file is throwing this error:</p>
<pre><code>undefined method `each' for #<Advertisement:0x007fce42676a70>
</code></pre>
<p>when I'm clicking on my individual ads within my brow... | 3 | 1,103 |
Android onclickEventListener exception | <p>I have the following code</p>
<pre><code>public class StartingPoint extends ActionBarActivity {
int counter;
Button add, substract;
TextView display;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_starting_point);
co... | 3 | 1,378 |
How transform multiple columns in 2 | <p>I have a dataframe like this way:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ColumnA</th>
<th>ColumnB</th>
<th>Group A</th>
<th>Group B</th>
<th>Group C</th>
</tr>
</thead>
<tbody>
<tr>
<td>2000</td>
<td>monkey</td>
<td>12000</td>
<td>4500</td>
<td>1500</td>
</tr>
<tr>
<td>2000</td>... | 3 | 1,126 |
Cannot navigate to different screen using FCM onMessage | <p>I am trying to navigate to a different screen using <a href="https://pub.dev/packages/get" rel="nofollow noreferrer">Get</a> when a user taps on the notification triggered from the onMessage function while the app is on foreground. So far I have not been able to do that.</p>
<p>Here's what I have done so far:</p>
<p... | 3 | 1,568 |
Problem in getting this output using Join in SQL Server | <p>I want to show a output like this,</p>
<pre><code>+------------+--------------+---------------------+---------------+-----------+--------------+-----------+
| segment_id | segment_name | segment_description | tot_questions | tot_marks | marks_obtain | neg_marks |
+------------+--------------+---------------------+-... | 3 | 1,902 |
Angular 5 with bootstrap | <p>I am working on Angular 5 , while running my application I am getting error,<a href="https://i.stack.imgur.com/ICqpu.png" rel="nofollow noreferrer">Angular error</a></p>
<p>Can you please help me to solve this issue? Thanks in advance.</p>
<p>This is work in progress code so few imported modules are not used in b... | 3 | 1,777 |
Migrating from Mysql to Cassandra Spring boot | <p>I am totally new to Cassandra, this is the very first time, never used it before, so far we have been using Spring Boot and MySql as our DB, but now we are planning to migrate our database to Cassandra with the minimum code or no change.
here is a sample demo of code that we have been using.</p>
<p>config class</p>
... | 3 | 2,890 |
Spring Boot 1.5.13 - QueryDSL Query ClassNotFoundException? | <p>I am using Spring Boot 1.5.13 with QueryDSL and whenever I issue a call to a controller I get the following <code>ClassNotFoundException</code></p>
<pre><code>Caused by: java.lang.ClassNotFoundException: api.model.QAddress
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_121]
at java... | 3 | 1,177 |
npm install mongoose : errors out with node-gyp error | <p>I'm having difficulty installing the Mongodb (native driver) or Mongoose (which requires and extends it), and it keeps erroring out here: </p>
<hr>
<p>I have tried rolling back my version of node to 0.10.x using nvm, that didn't do it. </p>
<pre><code>brianboyko@Boyko-Linux ~/boykofork $ npm install --save mongo... | 3 | 1,369 |
Python IRC/Skype Bridge spamming messages | <p>I've tried so many ways the past week or so to try to get this to work.
I've managed to get Skype2IRC to work in another script, and not spam IRC or anything. It was good. Just on message status, send message to IRC. That part I can get down easily. However, the part going from IRC to Skype is where I'm having issue... | 3 | 1,050 |
Model is invalid - probably something's wrong with association | <p>I want to create app for my own usage.
I want to encourage my kids to eat more vegetables and fruits by creating a game. Game should have players, snacks and date. Every time, when game is created it should randomly assign selected in game snacks to selected in game players. When player eat randomly assigned snack, ... | 3 | 4,837 |
Filtering in vue.js not modifying datatable | <p>I have been struggling for some days trying to filter some data in vue.js.</p>
<p>I have a search input in my website:</p>
<pre><code> <div class="search-wrapper panel-heading col-sm-2">
<input class="form-control" type="text" v-model="search" place... | 3 | 1,776 |
Set TV Menu Button To Go Back One Screen | <p>My Apple TV app lists a collection of PDFs, and clicking one draws it on the screen. For some reason, though, it exits the app completely when someone hits the <kbd><</kbd> / <kbd>Menu</kbd> button on the Apple TV Remote. What is going on to cause it to do that?</p>
<p>Up first is the code where it pulls up the l... | 3 | 5,086 |
items scroll over toolbar | <p>I'm new in android development and i'm trying to create scrolling layout with items on its collapsingtoolbarlayout.I have a following layout</p>
<pre><code><android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">... | 3 | 2,270 |
Multi-threading to display game score while game loop is running in Python? | <p>I want score to based on time passed in the game. To do this I want to have two loops running simultaneously. The game loop, and the score loop, which adds 1 to the score every 1.5 seconds. When I run the program, the score does not appear. Am I using multi-threading properly? Is that the best way to do this? For si... | 3 | 1,379 |
How to stop dialog title text from shrinking when positive button text gets shorter? | <p>I want to create an AlertDialog whose title text and message changes each time the user clicks on the positive button as they work through a series of steps.</p>
<p>It all works ok except that when the user gets to the third and final screen the size of the title text shrinks! This appears to be because the string ... | 3 | 2,475 |
sequential selection in period | <p>In my program i need to create a work time schedule</p>
<p>I have a list of personnel's like this</p>
<p><a href="https://i.stack.imgur.com/x0dRr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x0dRr.png" alt="list of agents"></a></p>
<p>everyone have a "Turn number" that indicate which one sho... | 3 | 1,342 |
How do i align photos | <p>I've tried to play with the % but the photos keep clipping each other instead of sitting side by side.Im just trying to get each photo to sit next to each other horizontally.Any ideas on what im doing wrong?
Ps im new to coding so if this is a easy fix my bad</p>
<p>Snippet:</p>
<p><div class="snippet" data-lang=... | 3 | 1,028 |
lightbox video popup for youtube channel video | <p>When I click on the image video popups but does not play i.e. shows only loading symbol.</p>
<p>My js code is</p>
<pre><code>function showVideoList(channelid, rows, maxnumbervideos, apikey) {
try {
var videoinfo = JSON.parse(getJSONData("https://www.googleapis.com/youtube/v3/sear... | 3 | 2,006 |
Trouble with Apache POI excel export | <p>I am trying to use <code>Apache POI</code> to export a <code>SQLite</code> database into an .xlsx or a xls. It seems to have no trouble getting to the table but right after that <code>XSSFWorkbook workbook = new XSSFWorkbook();</code> throws an error. It does suggest that I close <code>workbook</code> but that does ... | 3 | 1,196 |
Why do I get 'c50 code called exit with value 1' in R? | <p>I am using RStudio 2021.09.0 "Ghost Orchid" Release for macOS.</p>
<p>I am learning to use to C5.0 algorithm in R. For this I am following <em>'Machine Learning in R'</em> by Brett Lantz. The dataset I am using is a modified version of one relating to loans obtained from a credit agency in Germany.</p>
<p>... | 3 | 4,039 |
javascript classes access function of object | <p>This is my first time using javascript classes . I am using classes to return an html form . When the form is submitted I want to show an alert box that says " "submitted" . I have a problem doing this with classes as my submit function is not recognised .</p>
<pre><code>export default class Contact e... | 3 | 1,122 |
How do I convert JSON hierarchical tree data into a two dimensional table using jq? | <p>I have a <strong>hierarchical</strong> tree of JSON data as per the example below, and I need to convert this into a two dimensional table in text format, with the semantics of SQL join.</p>
<p><em>Note: there are answers to the question "How do I convert data in a two dimensional JSON array into a two dimensional ... | 3 | 1,026 |
DIV is visually getting nested in previous DIV | <p>Either I am staring at my screen for way too long and just can't see it or I can't tell what what I am doing wrong. </p>
<p>This should be pretty straight forward, but the <code>id="parkEntrances"</code> title DIV is getting positioned in the <code>id="featureDisplay"</code> above it. So as the Amenities are liste... | 3 | 1,536 |
Simultaneously create attributes and edges (if same attr. exists) in NetworkX | <p>After creating nodes in NetworkX, I would like add edges between nodes if both nodes have (at least) one overlapping same attribute.
It seems to be a problem that not all nodes contain the same number of attributes - could this be the case, and if so, how should I solve it?</p>
<pre><code>import networkx as nx
from... | 3 | 1,465 |
Multiple referenced dimensions using same intermediate dimension | <p>SQL Server 2008 R2</p>
<p>I've got a fact table that links to a dimension. That dimension has multiple date_ids for different dates, start, end etc. So in the dimension usage screen there are various incarnations of the date dimension linked to the measure group as referenced dimensions. </p>
<p>It seems that t... | 3 | 1,263 |
Listview inside SherlockFragment On Load. Layout not inflating | <p>Here is my sample setup </p>
<p>Splashscreen --> Points to Mainactivity --> 2 tabs (Tab1 , Tab2)
I need to inflate a listview in the Tab1.</p>
<p><img src="https://i.stack.imgur.com/WFau1.png" alt="Listview"></p>
<p>Here are my codes.</p>
<p>From the Splashscreen (<strong>Works Ok</strong>)</p>
<pre><code>prote... | 3 | 1,590 |
Specifiy which date is labelled first on x-axis | <p>I have the following data:</p>
<pre><code>structure(list(Month = structure(c(17744, 17775, 17805, 17836,
17866, 17897, 17928, 17956, 17987, 18017, 18048, 18078, 18109,
18140, 18170, 18201, 18231, 18262, 18293, 18322, 18353, 18383
), class = "Date"), Return = c(0.1, 0.4, 0.5, 0.2, -0.5, 0.2,
4, 0.3, 0.1,... | 3 | 1,086 |
VueJs page gives 404 on refresh with django | <p>I build VueJs app and copy all static files to django static folder and copy vuejs index.html to django templates folder
but when refresh page it raise 404
here is my index.html</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>FMS</title>
&l... | 3 | 1,446 |
QTreeWidgetItem destructor and QTreeWidgetItemIterator validity | <p>Why does deleting a QTreeWidgetItem* automatically advance iterators associated with the same QTreeWidget? This behavior does not appear to be <a href="http://doc.qt.io/qt-5/qtreewidgetitem.html#dtor.QTreeWidgetItem" rel="nofollow noreferrer">documented</a> anywhere that I looked. I would expect that after deletin... | 3 | 2,270 |
Popovers dissapear on 'onClick' event | <p>I've implemented few popovers and I try to trigger them thourgh a function which is called by onclick event.
I have no idea why, but they dissappear in a second.I actually managed to get them work fine when checking each one, but when user press "submit" button, it disappers.
any idea how and
HTML:</p>
<p><div cla... | 3 | 1,937 |
Android Toolbar how to save state? | <p>What is the correct way of saving android.support.v7.widget.Toolbar state?</p>
<p>I was expecting it should be saved out of the box. Ids are set in xml, but still does not work.</p>
<p>I have tried things bellow, but it does not work.</p>
<p>Do I have to save everything manually by getter and setters? Or do I mis... | 3 | 1,552 |
how to make selected option using enum in laravel? | <p>this is my code, how to make the selected option value in the edit form using enum data in the database? this is not working it just view the select option, not with id-data</p>
<p>this the code blade</p>
<pre><code> <!-- Modal edit -->
@foreach($daftar_pelanggan as $pelanggan)
<div class="m... | 3 | 4,385 |
android :filter is not working in costum gridview adapter | <p>i'm trying to make a simple app wish where i've got a gridview and a edittext and when i type in the edittext it filters the gridview enter code here</p>
<pre><code>class CostumAdapter extends ArrayAdapter<Personne> implements Filterable{
Costumfilter filter;
ArrayList <Personne> filterlist;
... | 3 | 2,683 |
Rss feed not working online | <p>I m working on a website which extracts news feed from my blog to the website. It workd fine in my localhost but when the content is online, the same code does not work. Here are my code.</p>
<pre><code> <?php
$i = 0; // counter
$j=0;
$des="";
$url = "http://lampsoftnepal.com/?feed=rss2"; // url to parse
$rss... | 3 | 1,038 |
Rewrite code using generate statement (Verilog HDL) | <p>I'm trying to rewrite this code using generate statements (Verilog HDL):</p>
<pre><code>integer j;
always@(posedge cpu_clk) begin
// ACCU_RST
if(RAM[3][7]) begin
RAM[3][7] <= 1'b0;
for(j = 10; j <= 15; j = j + 1)
RAM[j] <= 8'b0;
end
... | 3 | 1,612 |
macro executed when document is loaded | <p>After losing files from a HD, data rescue gave me back most of them, but with abstract names (such as file000123.xlsx). I need to rename them using cell values (client name, invoice ref).</p>
<p>I could make a Basic macro that works for this, if I open the files and start the macro myself for each one of those files... | 3 | 1,132 |
use a dataframe column value as column name | <p>I meet a problem.I has a dataframe as below:</p>
<pre><code> test_index test-item test_value
Serial_Number
SN_0 1 A A-0.1
SN_0 1 B B-0.1
SN_0 2 A A-0.2
SN_0 ... | 3 | 1,063 |
Burst Mode of Request with EventHub and Async | <p>i am trying to send a audio file(<code>wav</code>) from a <code>IoT</code> Device to <code>Eventhub</code>. As <code>Eventhub</code> has size restriction of 64Kb per message ,each message is chunked into a <code>7kb</code> byte array and sent to <code>Eventhub</code>. i am trying to achieve maximum send rate <em>[no... | 3 | 1,136 |
How to fix 'ReferenceError: hello is not defined' when it is | <p>I'm trying to code a game and I want to make it so that when you click a button, it increases the number. My game is like a mining game and you click to get ores and at the top right is a box which tells you what you are mining and you can see what you are mining, except when I click the mine button, it comes with t... | 3 | 3,494 |
How to split a row into % deciles? | <p>Up until now i have sorted everything according to the value of my variable so for example if i have a row of <code>n</code> numbers I would have picked the numbers that lie between <code>a</code> and <code>b</code>. What i in fact need to do is find the %a and %b. </p>
<p>I have been using this:</p>
<pre><code>a ... | 3 | 1,542 |
Using Graphviz with Clion in Windows | <p>I'm new to using external libraries in C so this could be a very silly mistake. I get reference errors when I try to run the below program using the provided CMakeLists.txt. Can anyone see what the issue is? </p>
<p>CMAKELists.txt</p>
<pre><code>cmake_minimum_required(VERSION 3.6)
project(Learning)
set(CMAKE_CXX_... | 3 | 1,460 |
Select specific duplicate database values and display the count | <p>I've tried a million different ways, and this is probably something super simple, but I can't get it figured out.</p>
<p>I have a database that displays several different columns (name, age, gender, breed, player, etc.)</p>
<p>What I would like is to include a line that states "We have ___ number of female charact... | 3 | 2,359 |
Form is no defined error on CakePHP observefield functionality | <p>I´m gettin "Form is no defined" (firebug) on this line:</p>
<pre><code>new Form.Element.EventObserver('TareaProyectoId', function(element, value) {new Ajax.Updater('TareaHitoId','/cake/tareas/update_region_select', {asynchronous:true, evalScripts:true, onComplete:function(request, json) {Effect.Appear('popularlist'... | 3 | 1,089 |
W3CEPRJaxbBinding_jaxb22.xml; lineNumber: 20; columnNumber: 162; Unexpected <bindings> appears at line 20 column 162 | <p>I am trying to update my maven SpringBoot application with the latest Java 17 and every dependency to the latest version.</p>
<p><strong>cxf-codegen-plugin</strong> started to throw interesting exception which I don't really understand, and cannot find any proper solution to solve it:</p>
<pre><code>org.apache.maven... | 3 | 5,925 |
hibernate: catch exception while saving invalid ltree column | <p>I have an entity that has a column of type <code>ltree</code> and this type has rather narrow character acceptance so exceptions occur. now I need to be able to catch them. this is how I'm saving the entity:</p>
<pre><code>@Component
@AllArgsConstructor
class TransactionalVersionSaver {
private final DocVersion... | 3 | 5,742 |
Xamarin.iOS MT2002 Failed to resolve BindingImplAttribute on Xamarin 11.9.1 | <p>Xamarin.iOS app build in AppCenter fails with the following error.</p>
<pre><code> MTOUCH : error MT2002:
Failed to resolve "System.Void.ObjCRuntime.BindingImplAttribute::.ctor(ObjCRuntime.BindingImplOptions)"
reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065"
</c... | 3 | 10,975 |
Maven : Packaging and Dependency Resolution | <p>My Maven project Project1 has only one dependency which is the Utils(which is again my local Maven project). I have to distribute my project as a Standalone jar to be used in a client application. I used the following maven assembly plugin to generate the fat jar.</p>
<pre><code> <plugin>
&... | 3 | 1,866 |
Seaborn Barplot Date Axis not formatable | <p><a href="https://i.stack.imgur.com/prw1U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/prw1U.png" alt="enter image description here"></a></p>
<p>How would one adjust the date formatting of a seaborn x axis? I usually use</p>
<pre><code>ax.xaxis.set_major_formatter(mdates.DateFormatter('%b %Y')... | 3 | 1,180 |
transform xml to alto xml using c# | <p>Hello again fellow programmers.</p>
<p>I have a task where i need to convert the xml output of of omnipage18 to xml alto format.</p>
<p>as of now, i'm using c# and linq to read the xml.</p>
<p>but i don't know if the output is correct.</p>
<p>i found a php code where it converts the <code>abby finereader sdk xml... | 3 | 1,280 |
Find overlapping data in a list | <p>I am trying to find some overlapping data in this list.</p>
<p>I do not have a way to group this.</p>
<p>How can I get the results as shown below?</p>
<p>Data in table:</p>
<pre><code>PLAN_MIN PLAN_MAX
220554 229079
220554 229079
2210A5 2210A5
2210A8 2210A8
2220A5 ... | 3 | 1,071 |
How to make configuration from an xml file for WCF service | <p>I am new here. I want create a WCF WebService using Visual Studio and use it in Xamarin Forms application. This is my ultimate goal. Now I created WCF Service project and starts IIS service on my Mac machine(Windows 8 OS). But When I run the code already given in project to check whether things are alright or not, I... | 3 | 1,100 |
Live Image from camera in GTK | <p>First: <br />
I am working on a dark-field microscopic tracking program. This program is old (2012), we got a new camera but this camera can´t be captured with a capture program. So I need to write a "capture program" for this camera with the SDK (Software development kit) from the company of the camera.</... | 3 | 1,250 |
Withdraw money from ATM | <p>I need to print out something like these.</p>
<pre class="lang-none prettyprint-override"><code>If the input is 60, then the output should be "Here is 3 $20 notes and 0 $50 notes."
If the input is 100, then the output should be "Here is 0 $20 notes and 2 $50 notes."
If the input is 120, then the output should be "H... | 3 | 1,127 |
facebook api login issue, token does not existe | <p>i'm using currently Facebook API php sdk login with a callback URL, the code in my local machine is working perfectly but when i put it on server and change the links to the new domain it doesn't work anymore, the the callback URL doesn't get any token from the app any help pls
this is my code</p>
<pre><code><?p... | 3 | 1,620 |
How to order error bars in ggplot2 on two conditions | <p>I am trying to order error bars in ggplot based on two columns. I have looked at some previously provided answers which were helpful for one column,but when I want to order on two I fail to obtain the intended result.</p>
<p>This code will fulfil my firstwish of ordering teh bars based on the first column (Outcome... | 3 | 1,403 |
Get data from promises with protractor | <p>I'm setting up a suite of e2e tests for an angular app using protractor. I'm following a page object model pattern detailed in this <a href="http://www.thoughtworks.com/insights/blog/using-page-objects-overcome-protractors-shortcomings" rel="nofollow">article</a>. I'm having trouble with a particular test that invol... | 3 | 1,046 |
Assign Numerical Value from Drop down for HTML5 form | <p>Trying to take my "Room Type" drop down and convert the values to be used in the form oninput formula. However, I'm having no luck finding anywhere that details the structure of a select box.</p>
<pre><code><form oninput="total.value = (nights.valueAsNumber * rmtp.valueAsNumber) +
((guests.valueAsNumber) *... | 3 | 1,562 |
Ggplot2 treating missing data for daily and hourly results as geom_line | <p>I am plotting a graph with both hourly and daily data. I want both lines to be a geom_line, but because there are NAs in the dataframe because of the hourly and daily nature of the data. The line for the daily data is not produced and I can only get it to plot with geom_point, which I don't want.</p>
<p>This is my c... | 3 | 1,756 |
How to find out if an item was dropped | <p>I created a form that allows drag and drop for images. So what I've done is that when a user drops an image then the
<code>$("#fileuploader").on('drop', function(e)</code> grabs the filename and then uses the <code>$(this).trigger('got-dropped', [filename_list]);</code>
to then pass on the filename to the <code>sav... | 3 | 1,351 |
Permission denial - permissions don't work | <p>I'm dealing with a weird permission issue.</p>
<p>I'm trying to read contacts, SMS and call logs and for that, I'm using these permissions in my Manifest:</p>
<pre><code><uses-permission android:name="android.permission.WRITE_CALL_LOG" />
<uses-permission android:name="android.permission.READ_CALL_LOG" /... | 3 | 1,565 |
Setting the UITableViewCell from a picker selection | <p>So far I have made a <code>UITableView</code> in a <code>HabitViewControlle</code> with a button to add a new cell. When the cell is tapped, a <code>detialViewController</code> is revealed. In this View their is a <code>textField</code>, that when tapped a <code>UIPicker</code> is launched. I want to set the title o... | 3 | 3,244 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.