title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Bluetooth library and Tkinter not playing nice | <p>I am using the Python bluetooth module with Tkinter to create an app where users can choose to connect to Bluetooth. Selecting the Bluetooth button should trigger a buffer screen, which scans for BT names and addresses, and then displays the menu where the user can select what Bluetooth device they can connect to. C... | 3 | 1,672 |
Use Moshi to deserialize generic type with child that can be of different types too | <p>I have to work with a server that sends these responses for any request:</p>
<p>For OK:
HTTP 200</p>
<pre><code>{
"jsonrpc": "2.0",
"id": null,
"result": {
"data": {
"exp": 1635637589,
...
...
... | 3 | 1,241 |
How can I bypass website visit_shared_page? | <p>So, I would like to visit a website with a proxy, but the targeted site has a visit_share_page, which shows my real ip and uid. How can I bypass that?</p>
<p>This is the code:</p>
<pre><code>import pyuser_agent
import requests
from itertools import cycle
import random
from requests_html import HTMLSession
import jso... | 3 | 1,123 |
Not sure where in code to place storageRef.downloadURL | <p>After updating Firebase to Version 4 and correcting all 200 errors, I am left with 2 warnings which make my app crash. I looked up this error and tried the resolution with no success:</p>
<pre><code>storageReference.downloadURLWithCompletion()
</code></pre>
<p>I must be doing it wrong:</p>
<pre><code>func setUse... | 3 | 1,355 |
datatable not create correct value when using date to calculate | <p>I have a <code>data</code> and want to create some new columns based on original <code>data</code>. </p>
<pre><code>Time1 Time2 value number
2015-01-01 NA 1724 1
2015-01-01 2015-01-03 2946 1
2015-01-01 2015-01-03 -2946 -1
2016-12-09 NA ... | 3 | 2,411 |
Flutter firestore shared preference double type data issue | <p>In my flutter app, When users sign up and I need to save double type "height" data and I am using <code>SharedPreferences</code> for this but I have an issue.</p>
<p>This is my <code>SharedPreferences</code> code:</p>
<pre><code>static Future<bool> saveUserWeightSharedPreference(double userWeight) as... | 3 | 1,348 |
glog doesn't compile on Windows with MinGW | <p>It seems that glog doesn't compile on Windows with MinGW. Cmake configuration and generation is OK, but when I start the mingw32-make.exe -j10 command, I get a lot of errors related with ambiguity declarations.</p>
<p>This is the complete cmake configure and generate command output:</p>
<pre><code>D:\INSTALL\Develop... | 3 | 8,328 |
Offline production build in Angular 9 | <p>In angular 6, When I executed <em>ng build --prod</em> I got a bunch of files in my dist project folder and index.html that had </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-html lang-html prettyprint-overri... | 3 | 1,636 |
how to check internet connection on button tap in ionic? | <p>i'm trying to check for an internet connection once the login button is tapped but so far when the button is tapped, the app doesnt go through the next page but it also doesnt display the alert box. how to do it in ionic/angularjs? here's my code: </p>
<pre><code> if (navigator.onLine) {
userFactory.getUser(use... | 3 | 1,317 |
What is the difference between "void function()" and "void *function()"? | <p>I knew the <code>void *function()</code> is the pointer which point to a function but I don't know how different they work and when we use <code>void *function()</code>?
I did some research in assembly to compare how they work behind the scene and look like they are same.
Here is the c++ code:</p>
<pre><code>void *... | 3 | 1,660 |
How can I Monitor External files in Java | <p>I have a <code>.exe</code> file, It takes <code>.txt</code> file as a Input and it returns <code>.txt</code> files as outputs.</p>
<p>I have 2 folders names are <code>InputFiles</code> and <code>ExeFolder</code>.</p>
<p><code>InputFiles</code> folder have so many number of input files, which files are passing as ... | 3 | 2,562 |
How to implement the allowance functionality in the transferFrom method of the ERC-20 standard? | <p>As the title says, I'm implementing ERC-20 token from scratch and I am stuck implementing allowances. I want to enable a user who is sending tokens to another user to spend the allowances other users gave him / her (assuming the user doesn't have enough tokens himself / herself).</p>
<p>My code is below; <strong>can... | 3 | 1,315 |
Failed Run MSBuild while install dlib in python | <p>I'm trying to load a facial recognition project, but when I install dlib I get an error. But when i install other packages it's fine. I only get this error message when installing dlib and face-recognition packages</p>
<pre><code> Preparing metadata (setup.py) ... done
Building wheels for collected ... | 3 | 1,747 |
Packaging interdependent Cython extensions | <p>I have written 3 Cython extensions, and I would like to package them in a tidy way that I can distribute to coworkers to use in Python, without them needing a C compiler installed.</p>
<p>Directory structure is:</p>
<pre><code>myproject\
|---- setup.py
|---- gamma-source\
| |---- eta.pxd
| |---- eta.pyx
| ... | 3 | 1,419 |
Very slow query, what can I do to improve? | <p>I have a problem with this query which was auto generated from the backend framework I am using.
The query is slow and causing issues with my script.</p>
<p>UPDATE: After following @The Impaler's answer, the problem is fixed for my initial query, the execution time went from 30s to 300ms.</p>
<p>The only problem is... | 3 | 4,339 |
Is there any mistake in this code to make memory leak? | <p>I tried more than a time but every time gives the same error.</p>
<pre><code>Fatal error: Out of memory (allocated 507510784) (tried to allocate 16384 bytes) in ..(location)..\accounts.php on line 51
</code></pre>
<p>The function</p>
<pre><code>public function getUser($userBase, $allowID = true, $allowUName = tru... | 3 | 1,114 |
How to set the searchBar as the global focus for Siri on the Search Page? | <h2>Description</h2>
<p>In my tvOS application, I have a search page with on top a <code>Search Bar</code> and under a <code>Table View</code> with the eventual list of results.</p>
<p>While we are focusing the <code>searchBar</code> and the user presses the voice for Siri, the results get inserted into the Search Ba... | 3 | 1,108 |
Conditional Search in XML Python | <p>I have a xml file <code>Orders.xml</code> (excerpt follows):</p>
<pre><code><?xml version="1.0"?>
<ListOrdersResponse xmlns="https://mws.amazonservices.com/Orders/2013-09-01">
<ListOrdersResult>
<Orders>
<Order>
<LatestShipDate>2015-06-02T18:29:59Z</LatestS... | 3 | 2,675 |
MongoDB Aggregation with $or and $and | <p>I have the following MonogoDb collection</p>
<pre><code>ShiftMgmt.shiftSchema = new mongoose.Schema({
assignedUser: { type: mongoose.Schema.Types.ObjectId, required: true, ref: 'users' },
shiftType: { type: mongoose.Schema.Types.ObjectId, required: true, ref: 'shiftTypes' },
team: { type: mongoose.Schema... | 3 | 1,843 |
Navigation Tabs doesn't display the right output | <p>recently i want to use bootstrap navigation tabs on my laravel project, everyhing went good except the navigation tabs. it display all the result instead per category, and i don't know how the script works on navigation tabs in order to display the result by its category. This is the line of the navigation tabs:</p>... | 3 | 3,157 |
Is this the correct way to handle forms in two pages? | <p>I have an <code>index</code> page which contains a simple form; if the form validation fails the index page is reloaded with errors if not then the action related to the page forwards the request to another action related to page <code>success</code>. The <code>success</code> page uses the form submitted to create a... | 3 | 1,086 |
Changing CSS background dynamically with jQuery | <p>I want to change the background image of a fixed div when you hover over another div. I can change other properties but it won't let me override the image URL once set.</p>
<p>I want the product-preview's background-image to change dynamically when hovered over another div.</p>
<p>I tried combining multiple method... | 3 | 1,186 |
WordPress Custom Sub Menu, Custom Sizing Issue | <p>I'm having some difficulty figuring this one out. I'm trying to customize my nav bar in Wordpress so that when I hover over the Sub-menu, the Sub-Sub menu starts at the top, regardless of which Sub-menu I'm hovering over.</p>
<p>Amazon's menu structure is a great example of what I am looking to do. Regardless of wh... | 3 | 5,570 |
ASP.NET Checkbox control in the Repeater is always unchecked | <p>I have problem with my own created User control. If I click on the checkbox the <code>Checked</code> property is always <code>false</code>, why ?</p>
<pre><code><%@ Control Language="C#" AutoEventWireup="true" EnableViewState="true" CodeBehind="MyCtrl.ascx.cs" Inherits="MyCtrl" %>
<asp:CheckBox ID="attrCb... | 3 | 1,481 |
How to properly send mutliple http requests to different servers at a certain time? | <p>My current problem is that I have to send MULTIPLE http requests that are stored individually in an array to MULTIPLE servers at a certain time:</p>
<p><strong>EX:</strong> array[0] = "<a href="http://.../" rel="nofollow">http://.../</a>", array[1] = "<a href="http://.../" rel="nofollow">http://.../</a>"</p>
<p>Ex... | 3 | 1,337 |
Result from CTE query not sorted by Level, why? | <p>Update:
I asked the question because the result does not look like how it is executed... which is explained here:
<a href="http://msdn.microsoft.com/en-us/library/ms186243(v=sql.105).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms186243(v=sql.105).aspx</a></p>
<p>Well I have another question...
If I... | 3 | 2,417 |
For rows with the same A, B, C values, how to select only "earliest" row (specified by column D) within a given time range? | <p>I currently have a query (simplified below):</p>
<pre><code>SELECT name, node, points, <bunch of other fields>,
DATE(snapshot_date) AS snap_date,
HOUR(snapshot_date) AS snap_hour,
CASE
WHEN MINUTE(snapshot_date) IN (5, 6) THEN 0
WHEN MINUTE(snapshot_date) IN (35, 36) THEN 30
END AS snap_mins,
f... | 3 | 1,179 |
How to reset the value of a double, int, float etc after an "Incorrect" input by the user | <p>My question is in relation to my line of code resembling an ATM. The current balance being <code>10000</code>, What i have written shows a message to the user that if they withdraw over the given balance that it is <code>Insufficient balance</code>. However the balance continues to change thus when <code>Inquiring b... | 3 | 1,187 |
Not able to receive notification from firebase in swift3 | <p>I am not able to receive the notification from firebase. I have updated all pods and also uploaded the APNs Certificates for production. In Xcode i am managing the provisioning profile automatically and also enabled push notification, Remote notification(inside Background modes) in capabilities. Notification is enab... | 3 | 1,223 |
What does this Entity Framework Core exception mean? | <p>To setup the exception message here is some code.</p>
<p>In my Repository class I have the following code:</p>
<pre><code>public async Task<CoverLetterBank> GetCoverLetterBankAsync(int clBankID)
{
IQueryable<CoverLetterBank> query = BankContext.CoverLetterBanks.Include(c => c.CoverLetters).Inclu... | 3 | 1,449 |
Trouble building FB.api query | <p>OK so I'm working on a Facebook Group Feed that loads more results, but I'm having trouble building the initial query for it all to work.</p>
<p>In the first <code>if</code> statement below, you can see where I put the parts of the query into variables and then call the function, passing those variables. This all w... | 3 | 1,108 |
Jquery file not loading | <p>I am a bit confused... I can load a javascript file when its above another jquery file in the tag however when its below other jquery files it doesn't load.</p>
<p>When I put it above the jquery.min.js file its loads fine but when its below it fails to load.</p>
<p>Im thinking there is something wrong with my jqu... | 3 | 3,161 |
Python Text based game Error while debugging | <p>I am working on a text-based game for a Python class I am taking. I keep running into the same error and I am not sure what it is that it's wanting me to do. I am sure it is something simple, but I am not understanding. Below is the code I have so far and the error I am getting. Any help is appreciated.</p>
<pre><co... | 3 | 1,030 |
Scraping data from clicked links on page then moving to next page & repeating in CasperJS | <p>I'm struggling to get a casperjs to move on to the next page after it has recursively worked through the links on the page. </p>
<p>I can get it to take data from each page and move through the pages, or click on each link on a page, but I can't get it doing both.</p>
<pre><code>var utils = require('utils');
var ... | 3 | 2,015 |
Centered, equal width, columned items using flexbox | <p>I have a column of 4 items. All the items have different widths due to different content. Using flexbox, Does anyone know how I can make all the items the same width as the largest item while keeping them all centered please?</p>
<p>Here's what I have at the moment.</p>
<p><div class="snippet" data-lang="js" data-... | 3 | 1,075 |
JavaFX PickResult with SubScene gives wrong distance | <p>I am writing a program which uses simple 3D graphics and I have made it to a point where I need to drag objects with mouse. I have figured out how to do so <a href="https://stackoverflow.com/questions/28731460/javafx-moving-3d-objects-with-mouse-on-a-virtual-plane">here</a>, but unfortunately PickResult is acting we... | 3 | 2,778 |
sending data to event handler when the event is called programmatically | <pre><code> protected void Page_Load(object sender, EventArgs e)
{
Team T = new Team();
string[] TLeaders = T.GetAllTeamLeaders(Session["USER_EMAIL"].ToString(), Session["ProjectID"].ToString());
for (int i = 0; i < TLeaders.Length; i++)
{
System.Web.UI.HtmlControls.HtmlGenericControl cr... | 3 | 1,236 |
Cascading and Reveal for Java | <p>I am making a Java Mine Sweeper program. So far everything is going well except for the cascading and reveal. I keep on getting StackOverFlowError. Can someone take a look and help me? Thanks!</p>
<pre><code>public static char[][]revealCell(int xbox, int ybox, char blankboard [] [], char RevealedBoard [][]){
... | 3 | 1,646 |
How works the event DrawColumnCell from delphi 7? | <p>I'm using this event (DrawOnColumnCell) for put a datetimepicker in a DBGrid, more precice in a field called "fechaprobablealta". This grid have a client datasource that have a providerDataSet and this take data from a SQLDataSet.
I can draw a datetimepicker good until that i tried update the clientdataset... | 3 | 1,287 |
Angular2 routing issue | <p>I am trying to run an Angular2 beta sample that uses deep routing, but <code>route.navigate()</code> doesn't work and if i use routeLink it works on the same route</p>
<pre class="lang-ts prettyprint-override"><code>@Component({
templateUrl: './app/templates/main-menu.component.html',
directives: [RouterO... | 3 | 1,415 |
How to reduce cpu usage during data transfer on TCP ports realtime | <p>I have a socket program which acts like both client and server.</p>
<p>It initiates connection on an input port and reads data from it. On a real time scenario it reads data on input port and sends the data (record by record ) on to the output port.</p>
<p>The problem here is that while sending data to the output ... | 3 | 1,391 |
android app crashing and list view not showing | <p>Every time I try to run the application with the list view in a location in crashes or when i get it working the list view doesnt show up iv tried changing where the list view comes ie after the first frame layout under the fullscreen content and after the frame layout full screen content controls and still cant get... | 3 | 4,126 |
Selecting a field in MongoDB that was passed from a data context | <p>My app generates a table using <code>#each events</code>.</p>
<p>There are 4 event tickets per row (each row represents an event) and when you click on, for example, the first ticket, this is what's executed:</p>
<pre><code>Template.displayEventsTable.events({
"click .buyTicket1": function () {
buyEventTicke... | 3 | 1,101 |
Fill Font-awesome icon with CSS only | <p>I want to add animation to my Font-awesome Heart icon, i want to have a wave effect on hover and click.</p>
<p>And it should be empty otherwise not black, like the <code>far fa-heart</code>.
But i don't know how, and i've been on this for hours</p>
<p>I have this for now</p>
<p><div class="snippet" data-lang="js" da... | 3 | 1,363 |
How do I solve the Missing Artifact problem in pom.xml | <p>I am starting a simple aws dynamoDB test in java. of course there are imports like this</p>
<p><code>import com.amazonaws.services.dynamodbv2.AmazonDynamoDB;</code></p>
<p>So to resolve this, I declare my project to be Maven nature and add a dependency which looks like this in pom.xml</p>
<pre><code>`<project ... | 3 | 1,271 |
Hibernate deletes collection elements on transaction commit | <p>I can't find out why hibernate tries to delete collection elements after transaction commit. And I even didn't ask it to do so.</p>
<p>Any ideas?</p>
<p>Technical details are posted below.</p>
<p>Hibernate dialect:</p>
<pre><code> org.hibernate.dialect.SQLServerDialect
</code></pre>
<p>Entity class:</p>
<pr... | 3 | 1,288 |
Function called by pthread_create breaks when a value is assigned to the struct passed to it | <p>am brand new to C. I have a little program which is intended to solve find the dot product of a large 2d matrix with itself using pthread. Now when the function assigned to the pthread is called and the struct passed as a variable is accessed, the program breaks and stop working. I don't really know what am doing wr... | 3 | 3,219 |
deleteRowsAtIndexPaths freezes the UITableView | <p>I've got an <code>UITableView</code> with Core Data. </p>
<p>When I insert new records or update an existing record everything goes well and the <code>UITableView</code> updates automatically, but when I delete a record the <code>UITableView</code> freezes until the <code>UIView</code> is reloaded.</p>
<p>Does any... | 3 | 1,281 |
in kotlin why is my recyclerview not scrolling | <p>I am new to recycler views and beginning with Room databases. I am working on this app that lets the user enter records into Room database. The user enters the info and it gets stored. The top part of the screen is the data entry and the bottom is the recycler view where the records are displayed. Everything is fine... | 3 | 4,240 |
return true from javascript then form continue to submit | <p>i have php page and javascript, the page is contact us form and before submit button there is captcha when form submit it checks captcha if it validate return true else alert and create again captcha but it doesn't work when it return true after that nothing happen</p>
<pre><code><?php
$action=$_REQUEST['action... | 3 | 1,795 |
Hover event does not target children | <p>I have a simple navbar and when a user hovers over a <code><li></code> tag it must turn red. When the user removes their cursor it must turn grey. It works but not properly. Inside <code><li></code> tags I have <code><Link></code> provided by <code>react-router-dom</code> and when I target <code>&l... | 3 | 1,117 |
#include/scope issues with graph implementation | <p>graph.h:</p>
<pre><code> #include<vector>
#include<unordered_map>
#include<iostream>
#include<queue>
#include<string>
#include"movie.h"
#include"actor.h"
class Graph {
private:
/*Member Variables*/
std::unordered_map<std::string,std::vector<Movie*&... | 3 | 1,515 |
Passing 2D jagged array to webservice | <p>I have webservice wrote in C# whichc allows me to communicate between two systems. I'd like to one of methods accept <code>ClassName[][]</code> as one (and only) parameter.
This method is defined as follows:</p>
<pre><code>namespace WebService
{
public enum DocumentType { documentType1, documentType2, documentT... | 3 | 2,771 |
Getting Response 500, on Skype for business android sample app | <p>I have meeting url which works on both the MAC desktop client and the web client, but when I use this url on the <a href="https://github.com/OfficeDev/skype-android-app-sdk-samples/tree/master/GuestMeetingJoin" rel="nofollow">skype for business sample app's GuessMeetingJoin</a> app, I get a response 500 error, below... | 3 | 7,340 |
How to add openCV files in "include" folder in JNI using Eclipse | <p>I am implementing the following project:
<a href="https://github.com/matthill/darwinwallet" rel="nofollow">https://github.com/matthill/darwinwallet</a>
I am getting the following error when I am executing a OpenCV android project in Eclipse:</p>
<pre><code> jni/jni_recognizer.cpp:2:33: fatal error: opencv2/core/... | 3 | 4,340 |
Trying to make a try catch continuously loop until service resumes | <p>I basically have a method that is checking a service constantly in a different thread. This works fine, but I need to make a check so that if the host closes, it keeps trying until service is resumed.</p>
<p>I thought this would work</p>
<pre><code>private void GetTankLevels()
{
Service1Client ... | 3 | 1,619 |
scala udf is not running in snowpark | <p>I have created and registered temporary udf in snowflake using snowpark scala. My code is attached below. I am getting error when I try to run this code.
I am assuming there is something else to do with snowflake udf. Any leads would be of great help</p>
<pre><code>session.udf.registerTemporary("lookupFromArray... | 3 | 1,835 |
Django Error: TemplateDoesNotExist at /trade/confirm/ | <p>When a user clicks a button in a form, I am sending a POST request in a form with <code>action="{% url 'trade-confirm' %}"</code>. The method that is called, <code>insert_transaction</code>, is working correctly. But when that method is finished it goes to <code>confirmed-trade/<int:pk>/</code>, whic... | 3 | 1,377 |
Unable to Invoke Custom task referring WCF Service function through MSBuild | <p>I am facing problem while invoking task from MSBuild -
Below are the details what I have done -</p>
<p>1)I have C# WCF project having few services running. I hosted these services on Local Host.Service "<a href="http://localhost:59605/HotfixDatabaseAccess.svc" rel="nofollow noreferrer">http://localhost:59605/Hotfix... | 3 | 2,153 |
change data grid based on combobox selection WPF | <p>I am trying to populate a datagrid based on the selection from a combobox, I am new to wpf so I am not sure if my issue is the the databinding or what. Here is my VM:</p>
<pre><code>namespace WasteTracker
{
public class MenuItemViewModel : INotifyPropertyChanged
{
DataSource data = new DataSource();
priv... | 3 | 3,036 |
Copying the same data in sql, from source table to target table using merge is read as different data but it is the same json source parsed in sql | <p>I have a JSON String that I parsed out to fit my requirement, no problem doing it and it comes as I want it and I load that to my source table then I use merge to load my target table. this JSON string hasn't been changed for my source table it parse and truncate and load to my source table every time I run the proc... | 3 | 1,229 |
AngularJS Textarea If data Is loading | <p>I have a textarea that relies upon a dropdown menu to populate. When the dropdown is changed, a file is pulled and the contents are loaded to the textarea.</p>
<p>While the textarea is loading, it just says <code>[object Object]</code>. I'd like it to be a bit nicer than that. Something like 'Loading...'.</p>
<p>I... | 3 | 1,229 |
Counting array in JSON object javascript | <p>According to <a href="https://stackoverflow.com/questions/1439969/javascript-counting-array-of-objects">this question</a>, I did not found the answer of how to count the array in this JSON object.</p>
<pre><code>[{"dataSymbol":"21135103","isHoliday":false,"isIPO":false,"l... | 3 | 1,480 |
Jquery function only works on second click | <p>I have site writen i ASP.NET. In my menu i have a login button, which looks like this: <code><a href="#" id="loginClick" class="popup-link-1" onclick="test()">Log Ind</a></code></p>
<p>This should open a popup, using Jquery. My problem is that the method im calling only works after the second click. the... | 3 | 1,431 |
Web2py this not working with Google App Engine (GAE) | <p>I'm having trouble using the web2py on google app server (gae).
The error is giving when I insert the url <code>localhost:8080</code> in browser is:</p>
<pre><code>rafael@rafael-debian:~/rafael/google_appengine$ python dev_appserver.py ../web2py/
INFO 2015-03-20 03:38:20,075 sdk_update_checker.py:229] Checking ... | 3 | 1,646 |
Upgrading android studio broke my flutter build (macOS) | <p>Ive just upgraded my android studio and its broken my flutter build process. I now get this error trying to build previously working projects. My andriod studio setup at the end. Appreciate any help with this.</p>
<p>FAILURE: Build failed with an exception.</p>
<p>What went wrong:<br />
Execution failed for task ':a... | 3 | 1,567 |
SSRS ReportingService2010 SOAP Call returning HTML, not SOAP XML | <p>I'm trying to make a SOAP call to the SSRSReporting SOAP service, and receive a SOAP response in XML format. I am trying to use <a href="https://github.com/hooklift/gowsdl" rel="nofollow noreferrer">go-wsdl</a> to generate a SSRS SOAP API, however it seems that its "not working" in Go. I want to list the children us... | 3 | 1,061 |
How to make this menu occupy all the remaining space's width? | <p>There is a menu :</p>
<pre><code><div id="divmenuppal"> // this the menu
<ul class="dropdown">
<li class="menuppal"><a href="#">Administration</a>
<ul>
<li><a href="#">Artificial Turf</a></li>
... | 3 | 9,205 |
python3.6: can i use (\\u\w\w\w\w) to remove all unicode from tweet json | <p>I was doing some twitter mining, and pulled the json of tweets into python3 via pandas</p>
<p>before processing further, i noticed alot of the data was not consistent/clean or even useful to me (for now)
so i used regex to make the string of tweet messages consistent or delete the offending item</p>
<p>below is th... | 3 | 1,085 |
Managing an Item from Listview created by code | <p>I'm learning a lot these days reading posts on stackoverflow, got all my doubts away on java programing with eclipse, but i started to make my custom codes and i got stuck on a situation, i created a clickable listview on code and i want to change the item's text size and align toward the listview layout, any tips? ... | 3 | 1,223 |
how to enter data enter by user in form in mysql database | <p>I have already created database and table in it.But it is showing an error "input data failed"</p>
<p>the code of reg form is as follow
Code of form login2.php:</p>
<pre><code><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login Form</title&... | 3 | 2,048 |
Jquery tabs cookie use existing script | <p>May be this is not so hard to do but no from JS background so hard to understand for me. I am trying to store selected tab in cookie so if page refreshed still it will display selected tab earlier.</p>
<p>I am already using list grid layout for my website and also have cookie set and works fine. I am posting cookie... | 3 | 1,230 |
Is there a way to vectorize Renko calculations in python? | <p>Okay, right now I use <code>df.iterrows()</code> in chunks to loop through each minute and compare with the previous Renko close. However, this takes a long time. I keep thinking is there a way to vectorize and backtest faster. Cause I will be backtesting on tick data which means millions of rows.</p>
<p><a href="ht... | 3 | 2,393 |
How to use a variable in Adobe's pdf embed API as URL-value? | <p>I use the Adobe PDF Embed API (<a href="https://www.adobe.io/apis/documentcloud/dcsdk/docs.html?view=view" rel="nofollow noreferrer">https://www.adobe.io/apis/documentcloud/dcsdk/docs.html?view=view</a>) to display pdfs within modals on a site of mine.
As I want the modals to only change in one tiny detail (the file... | 3 | 1,458 |
Struts2 Error when Deploying java.lang.NoSuchMethodError: 'java.lang.String org.apache.logging.log4j.util.PropertiesUtil.getStringProperty | <p>I'm creating a basic Struts2 webApp and getting this error when I deploy to Tomcat 10. Has anyone seen this?</p>
<p>How can I solve this?</p>
<pre><code>java.lang.NoSuchMethodError: 'java.lang.String org.apache.logging.log4j.util.PropertiesUtil.getStringProperty(java.lang.String[], java.lang.String, org.apache.loggi... | 3 | 1,226 |
Error 'Could not open a connection to SQL Server' while upgrading database with codefluent pivot runner | <p>We use the pivot runner to update our databases. Since a year we regularly receive error message below. The database server is available, and is hardly used by other processes. After restarting, the same message usually reappears several times, but not always with the same action. As soon as we have managed to updat... | 3 | 1,120 |
Add phone numbers to the same contact Android | <p>I used a piece of code </p>
<pre><code> String DisplayName = "XYZ";
String MobileNumber = "123456";
String HomeNumber = "1111";
String WorkNumber = "2222";
String emailID = "email@nomail.com";
String company = "bad";
String jobTitle = "abcd";
ArrayList < ContentProviderOperation > ops = new ArrayLi... | 3 | 1,747 |
Use xml comment to generate formatted html output | <p>I'm trying to generate a nicely formatted html document from the comments that I have in an xml file. At present I have an xml file that is used to generate an html list of the xml tables. In order for me to add comments about the tables I am manually adding the comments into the output html file.</p>
<p>I would li... | 3 | 2,099 |
why does drawing a circle in the northern hemisphere result in an oval? | <p>I know there is probably some geographical/mathematical/Projection reason, but why does my circle result in a oval polygon? i am trying to draw a circle from a point.</p>
<p><a href="https://i.stack.imgur.com/hZTVu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hZTVu.jpg" alt="code" /></a></p>
<p... | 3 | 1,384 |
SpringBoot: Running application using Maven "mvn clean compile exec:java" works fine but creating jar using "mvn clean install" throws error | <p>I am getting the below exception which I try to run my spring boot application using <code>"java -jar jarname.jar"</code> command.</p>
<p>When I run the application using "<strong>mvn clean compile exec:java</strong>" it runs without any exceptions but after creating the jar using "<strong>mvn clean compile -DskipT... | 3 | 2,538 |
How can I create dynamic input sliders with react? | <p>I am trying to create a modal component for my application and my modal needs a slider to dynamically scale the image in the modal based on the user's input. I am done creating this modal and it looks like this: <a href="https://i.stack.imgur.com/ynFYv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.c... | 3 | 1,937 |
How to override the response body of AuthenticationFailure using AbstractPreAuthenticatedProcessingFilter? | <p>I'm using a Custom Filter to make the request Authetincation. Configuring the <code>AutheticationFailureHandler</code>, I want put the message error content, but it is attached to a existent default content, my goal is put together on the same body or just a new one.</p>
<p>Handler impl.:</p>
<pre><code> protected v... | 3 | 1,831 |
Multithreading Jobs from Queue - Too Many Jobs? | <p>Say I have a large queue, something like 10,000 objects. I want to make a threadpool with 5 worker threads, each one removing an item from the queue and working on it, until the queue is empty.</p>
<p>My worry is that using the set up I've seen in various places, I end up creating 10,000 jobs immediately, but execu... | 3 | 1,203 |
Php fpdf page orientation bug | <p>I have problem with fpdf page orientation.
Part of my code:</p>
<pre><code> $pdf=new PDF_MC_Table();
$pdf->AliasNbPages();
$pdf->AddPage('L','A3');
$pdf->SetWidths(array(50,200,50,50,50));
$pdf->SetFont('Arial','B',10);
if(!empty($ow)){
... | 3 | 1,655 |
Grids is bootstrap seem to be over lapping | <p>I have a grid system set up and working fine but the column in the centre seems to be bleeding into the one on the right. I cannot seem to figure out why. The column on the right needs to have a greater height than the rest of the page. As you can see from the highlighted text in the image the column on the right is... | 3 | 3,036 |
Make Literal Object have Parameters? | <p>Currently I'm using Javascript to display animals and their info on a HMTL Page.</p>
<p>Currently its showing the Image of a bunny and info like this:</p>
<blockquote>
<p><em>BUNNY IMAGE</em><br>
<strong>Age Range:</strong> 3 months - 2 Years<br>
<strong>Max adopt:</strong> 1-2<br>
<strong>Bonded Pairs:</s... | 3 | 2,226 |
'strtoll' and many others "not a member of 'std'" | <p><code>strtoull</code>,<code>strtof</code>,<code>strtold</code>,<code>vsnprintf</code>,<code>wcstoll</code>,<code>wcstoull</code>,<code>wcstof</code>, and <code>wcstold</code> are not members of 'std.' The problem is I don't use any of these functions. I didn't even know they existed. they are in file <code>basic_s... | 3 | 1,513 |
Retrieving data from SQLite in Unity3D | <p>I'm Having a problem with my query</p>
<p>HighScoreGrammarI</p>
<p>-- getting data from sqlite</p>
<pre><code> private void GetGrammarIScore()
{
highScores.Clear();
using (IDbConnection dbConnection = new SqliteConnection(Connection))
{
dbConnection.Open();
us... | 3 | 1,143 |
How to create a flatlist with infinite scroll with local data? (Possible useState misuse) | <p>I have a problem trying to create a FlatList with infinite scroll using local data. I want the list to load 20 different elements every time it reaches the bottom. Here is the list:</p>
<pre><code> <FlatList
contentContainerStyle={styles.airportLatestSearchlist}
... | 3 | 1,119 |
WPF and powershell, need to know how to add style to a control element | <p>I am having some trouble setting the style to a groupbox control element. </p>
<p>I have some XAML code that has styling defined at the top of the code. i am looking for a way to add the styling already defined to an element that i am creating dynamically. </p>
<p>Here is my styling section:</p>
<pre><code><... | 3 | 2,136 |
Why is cURL doesn't behave the same as the web browser | <p>I'm using cURL to fetch a website. I can get the login page and use cURL to login sending the credential details over a POST Form successfully. When I try to get the next page which is done using GET (as my web browser reports it in the Network Section of debugging utilities, the web browser show me the page you nor... | 3 | 1,727 |
Issues with JustMock and Large Test Runs | <p>Ok so I have an issue with JustMock that I am hoping that someone here can help me with.
I have a class with several test methods(something like 80). Each of these methods when run independently will pass with flying colors. However I have some methods that when run as part of a larger test run (say the whole clas... | 3 | 1,419 |
How does jqGrid dynamically populate the list of options based on status data? | <p>I am currently using jQgrid to draw a list and data is being retrieved through Ajax. I'm getting the list back normally, and there's nothing wrong with it. </p>
<p>My problem is that I have to dynamically populate the <strong>list of options</strong> based on the <strong>status value</strong> I'm getting.</p>
<p><... | 3 | 1,135 |
Inverting a bitmap in Embarcadero C++Builder | <p>The same problem happens in Borland C++Builder 6 and Embarcadero C++Builder 2010.</p>
<p>When I try to invert an image, the form freezes for about 5 seconds and nothing happens. When I click again, the image is inverted within a blink of an eye, and again, again...</p>
<p>To reproduce, create a form with a <code>TIm... | 3 | 1,365 |
Import an Excel file into an Access database | <p>I have written some code to import data from an Excel file into an Access database. The code starts with choosing a directory and then clicking a button to import.</p>
<p>This are the fields that I have to import into the database: </p>
<pre><code>dataid - ID
name - NAME
company - COMPANY
phone - PHONE NUMBER
... | 3 | 2,255 |
Heroku Deployment Problem with status code 127 and node.js | <p>I am trying to deploy my app on Heroku with node.js. App is running fine on my local but when I try to deploy it on Heroku it gives the following error:</p>
<pre><code>2022-03-13T00:12:16.474210+00:00 heroku[web.1]: Starting process with command `bin/boot`
2022-03-13T00:12:17.528943+00:00 app[web.1]: bash: bin/boot:... | 3 | 1,613 |
Why does the container of this text so much wider than it should be? | <p>I am building an effect for a website and I wanted to add a typewriter-like effect. The code looks like this.</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-css lang-css prettyprint-override"><code>typed-out {
... | 3 | 1,635 |
(WCF) The caller was not authenticated by the service | <p>I have created WCF service + client and deployed the service to another PC. Service is running. But when I execute client in debug mode through Visual Studio I get the error: The caller was not authenticated by the service.
Both PCs, client and server are on the same local net. </p>
<p>Server side (service)</p>
<p... | 3 | 1,618 |
Can't get the selected number from contactProperty | <p>After spending many hours troubleshooting, searching and trying out some answers on StackOverFlow. I couldn't get this to work properly, I need to be able to select any number that a contact have, but I always get <code>CNLabelPhoneNumberMain</code> or in some cases <code>CNLabelPhoneNumberMobile</code> even when se... | 3 | 1,160 |
Clear Radio Button on ng-disabled | <p>Below is how I a implemented my code which I modified from <a href="https://stackoverflow.com/questions/47497259/ng-repeat-hiding-radio-button-based-on-other-radio-answers-selected/47498129#47498129">Ng-repeat hiding radio button based on other radio answers selected</a>. What I need help with is clearing the radio ... | 3 | 2,295 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.