title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
m2eclipse Missing Artifact | <p>I am trying to get started with Maven and m2eclipse but I keep getting missing artifact errors:</p>
<p><img src="https://i.stack.imgur.com/lo5Uu.png" alt="enter image description here"></p>
<p><code>log4j</code> is in my local repository. I have m2eclipse set up to use an external installation of Maven although I ... | 2 | 1,333 |
Connect to a socket in C++ and Boost Asio in conditional case | <p>I have an application which acts like a client which uses Boost Asio in order to connect to a server.
It works good, but i'd like to change its behavior.</p>
<p>At the moment, when i start it, the application immediately try to connect to the server and if this not happens (because the server is down) then the appl... | 2 | 1,517 |
Google Custom Search API for android ,class not found | <p>I need to search google and get back results using my android app. I tried using Google custom search API. It worked fine in java in my desktop. But the same code gives</p>
<blockquote>
<p>09-07 02:03:25.101: E/dalvikvm(959): Could not find class 'com.google.api.services.customsearch.Customsearch', referenced ... | 2 | 1,306 |
CloseableHttpClient.execute freezes once every few weeks despite timeouts | <p>We have a groovy singleton that uses PoolingHttpClientConnectionManager(httpclient:4.3.6) with a pool size of 200 to handle very high concurrent connections to a search service and processes the xml response.</p>
<p>Despite having specified timeouts, it freezes about once a month but runs perfectly fine the rest of... | 2 | 2,687 |
How should I handle having a entities property be non-nullable while the column is nullable? - EF Core | <p>The database has nullabble columns, which I was told it was safe to assume would never have null data in them. The entity framework code was modeled under this assumpion. Some customer databases, however, I have found do in fact have the occasional null value in these columns. Entity Framework proceeds to blow up in... | 2 | 2,039 |
How to get an attachment from GET request with JavaScript? (REST) | <p>I have a web page with a table which generates once from a XMLHttpRequest. The response includes a JSON with some text and associated links to three attachments that may or may not be there, so I have to loop through those to store variables and create links, like so:</p>
<pre><code>function drawWITable(tableObjArr... | 2 | 3,561 |
Tensorflow 1.5 on Raspberry Pi3 | <p>I followed these instructions to compile tensorflow:
<a href="https://github.com/samjabrahams/tensorflow-on-raspberry-pi/blob/master/GUIDE.md" rel="nofollow noreferrer">https://github.com/samjabrahams/tensorflow-on-raspberry-pi/blob/master/GUIDE.md</a></p>
<p>I pulled the newest bazel (0.9.0)from github and compile... | 2 | 1,747 |
Using Scanner.in with java Applet | <p>so please excuse any informalities.</p>
<p>I've successfully calculated the areas and volume of a cylinder using scanned values for the radius and height, but now want to build an applet which gives a graphical representation of the cylinder whilst showing the values below.</p>
<p>I've done half of this: I've buil... | 2 | 1,027 |
Most efficient row multiplication with matrix in Pandas | <p>Suppose I have a matrix as such </p>
<pre><code>df = pd.DataFrame(randint(2,size=(3,9)))
df.values
array([[0, 1, 0, 1, 1, 1, 0, 1, 1],
[1, 0, 1, 1, 1, 1, 0, 0, 1],
[0, 0, 0, 1, 0, 0, 1, 1, 0]])
</code></pre>
<p>Again; each row in this example represents three 3D coordinates, that need to rotated by, ... | 2 | 1,078 |
FileUpload and Form Submit | <p>Consider a form with a fileUpload component. The user selects some files using the fileUpload component, then submits the form, reasonably thinking that the selected files are implicitly submitted with the form but they are not. The Primefaces <code>fileUpload</code> component requires the user to upload the files a... | 2 | 1,824 |
View pager with expandable listview not working properly in collapsing toolbar | <p>I am implementing collapsing tool bar with tab layout, and i used expandable list view inside view pager. code works perfect but when i scroll upside it will not showing all the data in expandable list view but it only shows whatever loaded on first time <a href="http://i.stack.imgur.com/HiGmv.png" rel="nofollow">en... | 2 | 1,891 |
Get file size from media folder in Umbraco using XSLT | <p>Below is a part of my Umbraco xslt where I am outputting a PDF file link and the size of the file. The problem I am having, is targetting the size attribute of the media file. The size attribute has the alias of umbracoBytes.</p>
<p>I just seem to not be able to target this.</p>
<p>So all I am outputting at the mo... | 2 | 1,456 |
Swift Appending Coordinates into Array and Adding to Map | <p>My intentions of this app is to allow the user to input the any set of coordinates in one tab of a tab controller, and in another tab, the coordinates will be placed in a pin with an annotation. </p>
<p>The method I have been trying to implement is to use a global array that appends the input coordinates and called... | 2 | 1,166 |
Slick: CRUD extension: How to encapsulate implicit mapping:BaseColumnType[T] | <p>There is the following API for Slick CRUD (Slick-2.1.0, Scala-2.11.4):</p>
<pre><code>trait HasId {
type Id
def id: Option[Id]
}
trait HasIdColumn[E <: HasId] {
def id: scala.slick.lifted.Column[E#Id]
}
trait SlickExtensions {
val driver: scala.slick.driver.JdbcProfile
import driver.simple._
t... | 2 | 1,459 |
viewmodels and unobtrusive validation mvc3 | <p>I'm unable to get unobtrusive validation to work using custom viewModels representing abstractions of my EF generated classes.</p>
<p>As try as I might, the validation is not firing on form submission for the property <code>Name</code> in my City entity. I believe it is has something to do with the different models... | 2 | 1,149 |
Cannot start Sonatype Nexus3 service when running docker Windows image | <p>I'm new to docker and I'm trying to get Nexus3 running in a windows container.</p>
<p>My machine is running Windows 10 and I'm using:
Docker CE Version 17.03.1-ce-win12 (12058)
Channel: stable
d1db126</p>
<p>I have the following DockerFile content.</p>
<pre><code>FROM microsoft/nanoserver
#FROM microsoft/windowss... | 2 | 1,379 |
Can I use require with webpack for external files? | <p>I want to import some static files that may not exist. I want to modify these external static files and to load them in my app, but Webpack gives 'module not found'</p>
<p>My folder structure looks like this in dev:</p>
<ul>
<li>src
<ul>
<li>static
<ul>
<li>config
<ul>
<li>cfg.json</li>
<li>folder1
<ul>
<li>fi... | 2 | 1,092 |
Building a small Go program for MIPS with no hardware floating point (softfloat required) | <p>I have small program written in go that I'm trying to cross compile to get working on a MIPS architecture machine. I've been trying to cross compile using the XGO cross compilation library but have had limited success getting my program to run (<a href="https://github.com/karalabe/xgo" rel="nofollow noreferrer">http... | 2 | 1,127 |
HTTP Status 404 - The requested resource is not available. =>the servlet exists in web.xml | <p>I receive the error "HTTP Status 404 - /Servlet/NotaControllerServlet</p>
<p>type: Status report
message: /Servlet/NotaControllerServlet
description: The requested resource is not available" </p>
<p>when I try to run my webApp. Here is my code:</p>
<p><strong>1. NoteDAO</strong></p>
<pre><code>package DAO;
impor... | 2 | 3,231 |
Send Gmail SMTP email on Cloud Foundry Node.js? | <p>I have this code below which works local but when I deploy to <code>api.cloudfoundry.com</code>, there is no email sent at all. Can you help me to understand why? Is it because Cloud Foundry prevent some port?</p>
<pre><code>var port = (process.env.VMC_APP_PORT || 3000),
host = (process.env.VCAP_APP_HOST || 'lo... | 2 | 1,143 |
How do I implement camera changing from front to back camera | <p>Below is the code for the camera section, I tried adding in a boolean to detect when the front camera is activated but I receive an error. </p>
<pre><code>import UIKit
import AVFoundation
class MainCameraCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var myView: UIView!
var captureSession = AVC... | 2 | 1,446 |
Binding Universal Image Loader to Xamarin solution | <p>I' ve been trying to use Universal Image Loader by Nostra13 in Xamarin.Android project.
In My solution I created new JavaBinding Project according to Xamarin docs. I'm In Visual Studio 2013</p>
<p>I 've added theese lines to Metadata.xml according to <a href="https://forums.xamarin.com/discussion/1156/adding-androi... | 2 | 1,371 |
SQL to SELECT last 4 Financial Quarters | <p>I'm learning SQL and I have this horrible looking query to select the last 4 financial/fiscal quarters and how many quarters ago they were. </p>
<ul>
<li>This is using Australian financial year (June - July)</li>
<li>The Financial Year 2018 is July 2017 to June 2018</li>
<li>FinancialQuarterID is structured like YY... | 2 | 1,469 |
Django PyTest - Database access not allowed Error even with django_db and fixtures? | <p>I am learning PyTest in django and I encountered problem that I cannot solve.</p>
<p>I am getting this error:</p>
<pre><code>____________________________________________________________________________________________________________ ERROR collecting prices_tool/tests/test_views.py __________________________________... | 2 | 1,159 |
Symfony collection field type within a collection field type: add / remove elements | <p>i've got a problem regarding the symfony collection field type.
Working with one collection type (adding, removing items) is clear due to the cookbook entry of symfony for working with collection field type. For me, the problem appears when i want to add / remove items to a collection type within a collection type. ... | 2 | 2,217 |
Spring Boot with JDBC: Nested Object Modelling | <p>i have the following TableStructure in a PostgreSQL DB which is supposed to be the DB Backend for my WebApp:<br /><br />
<b>init_db.sql</b>
</p>
<pre><code>CREATE TABLE article (
id integer NOT NULL,
name character varying NOT NULL,
type_id integer NOT NULL
);
CREATE TABLE article_type (
id integer ... | 2 | 1,277 |
Can't install zbar on windows | <p>I know there is already a question about this but it didn't work for me. </p>
<p>When I do </p>
<pre><code>pip install zbar
</code></pre>
<p>it returns this</p>
<pre><code> Collecting zbar
Using cached https://files.pythonhosted.org/packages/33/54/cc5819efc9ee7e34b60b41e1d2d4753b6dd0c26a41c9a552611f66aa106e... | 2 | 1,461 |
Validation on UITextField and phone number in iOS | <p>I have created 2 text Fields (Username and Phone number) when I executed my code, only text1(username) is getting executed. i got alert view, in the same way, i tried to give alert view that is text2(phone number) it must allow numeric numbers,
but in my code unable execute second if statement-text2 (phone number) ... | 2 | 1,054 |
Android XML Error inflating class TextView | <p>All the text view in my <code>xml</code> file causing the crashing my app. I am new to android. My app have no action bar.
The logcat error is pointing to every <code>textView</code> in xml.
Please tell me where things are going wrong? If you need more information please comment. Help help help help</p>
<pre><code>... | 2 | 3,537 |
SonataAdminBundle batch update | <p>I'm trying to create a feature in the admin dashboard, I have a <code>products</code> table and I want to create these batch features:</p>
<p><strong>Price Update</strong></p>
<p>Select one or more products, click on Price Update, show the products selected with the current prices, in a form with an input text cal... | 2 | 1,883 |
Firebase Phone Number Authentification IOS Error: Optional("Token mismatch") | <p>Hi I have follow the tutorial for the phone number auth in swift , this is my code:</p>
<pre><code>import UIKit
import FirebaseAuth
class SignInViewController: UIViewController {
@IBOutlet weak var number: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
let myColor : UIColor = UIColor.wh... | 2 | 1,254 |
Incorrect hotspot for I-Beam cursor in Windows 7? | <p><strong>The Problem</strong></p>
<p>On windows, the coordinates returned for a "mouse button down" event seem to be slightly wrong for an I-Beam cursor. Basically, the x-coordinate is always two pixels left of where it should be.</p>
<p>I've written a very simple win32 program to demonstrate the problem. All it do... | 2 | 1,573 |
Structured-Data > Microdata > Schema > Article > Author Itemscope > Properties > Google Validation Error | <p>I am developing my own site locally. This is my first site so I am a relative 'noob'.</p>
<p>I have begun the process of marking up my site with the microdata format using the schema.org vocabulary.</p>
<p>I am using Google's structured data tester to test my microdata markup. </p>
<p>On a webpage I have marked u... | 2 | 1,334 |
Cannot access docker daemon in gitlab runner using Kubernetes executor | <p>I setup my Gitlab instance using Kubernetes to deploy and also to do my CI using the Kubernetes cluster. <strong>Kubernetes is managed by Gitlab</strong>, so I did never touch the kubernetes by myself. <strong>Gitlab installed</strong> the four available packages: Helm Tiller Ingress, Cert-Manager, Prometheus and Gi... | 2 | 1,612 |
Shiny/DT: column & top filter for datetime column show wrong values | <p>I am having bit of trouble to figure out why my <strong>column and filter</strong> for datetime column shows the wrong date and time.</p>
<p>My data looks like this (<code>dput</code> <strong>is in shiny code below</strong>):</p>
<pre><code> DATUM NUMMER
1 2017-03-29 00:00:02 19
2 2017-03-29 ... | 2 | 1,469 |
Delphi 2010 : Fast ScreenShot using DirectX | <p>everyone.
I am developing a application using screenshot.
Using Bitblt(StretchBlt) function gives me black screen image sometimes</p>
<pre><code>procedure CaptureScreen_4(const FileName: string);overload;
var
nScreenWidth,nScreenHeight: integer;
ScreenDc,hCaptureDC: HDC;
bmp: TBitmap;
begin
nScreenWidth := ... | 2 | 1,174 |
Oauth2 / Password flow / check permission for a specific entity | <p>The main data information and information in my API is linked to a project(Entity),
What is good approach for password flow: to manage specific permission linked to a project with spring security and OAuth2?</p>
<p>In this application you have <strong>5 micro service</strong>:</p>
<ul>
<li>UAA microservice : the a... | 2 | 1,378 |
PHP Class best practices and class structures | <p>I'm currently creating a simple CMS for my small website in PHP5. This is my first 'larger' project in PHP. First I'm creating the needed classes that would simplify me the work a little bit, and there I'm stuck. I need your opinions about the following function inside my <code>UserInfo</code> class:</p>
<pre><code... | 2 | 1,118 |
Shopify Site Freezing on iPad / Safari | <p>I've come across an obscure (but serious) bug that seems to affect any and all Shopify stores when viewed on an iPad with the default Apple Safari browser.</p>
<p>Most "reported bugs" (eventually) turn out to be problems with code that was added or changed to modify or customize a theme. This happened to me just 2... | 2 | 1,137 |
Django Model Object to Javascript Array | <p>This question was asked a few times before, but I'm unable to get results after following the answers. I have a Django model. I convert the model to a JSON string:</p>
<pre><code> from django.core.serializers.json import DjangoJSONEncoder
from django.core import serializers
from .models import MonthDat... | 2 | 3,324 |
Make CSS Selector (first-child) work in Behat 3 with Sahi Driver | <p>I was just wondering if you could point out where the problem is here, if it's Behat, the CSS selector, or the Sahi Driver.</p>
<p>We have just upgraded to Behat 3 and are using Sahi Driver (most recent open source version). We have found that any Behat test that uses the pseudo-element <code>first-child</code> now... | 2 | 1,594 |
How to real time preview change of Video recorder on camera like Vigo Video Hypstar | <p>I want to change the Surface preview bottom overlay with gif or image <a href="https://play.google.com/store/apps/details?id=com.ss.android.ugc.boom&hl=en" rel="noreferrer">Like Vigo</a></p>
<p>Like this</p>
<p><a href="https://i.stack.imgur.com/iKfYN.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/i... | 2 | 1,295 |
Making a HTML month day date today week through CSS | <p>I am working on an inhouse analytics reports page and in need of time generated records. My inspiration is how Google Analytics is doing it.</p>
<p>The first thing is having it Hourly, Day, Week, Month and the second thing is to show it in between dates.</p>
<p>I am hoping to show these options in a drop down form... | 2 | 1,708 |
Gatsby - Adding meta tags for SSR using react-head/react-helmet doesn't work on dynamically created pages | <p>I've been researching this problem for a week now and still stumped. I have a website that uses Gatsby with Prismic, and i've got 2 different types of pages: static and dynamically created pages. Static can include pages like homepage, contact us page, about us page, etc. Dynamic can include blog posts, services pag... | 2 | 2,773 |
Java Excel POI stops after multiple execution by quartz | <p>I'd like to have a couple of insights on this.</p>
<p>I have a program that reads and writes from a database to an excel file. It's execution is based on a timer using Quartz api and triggered every tuesday of the week. The problem is, when i tested it by scheduling it to execute the job every hour, the program sud... | 2 | 1,889 |
Bootstrap-Vue Modal: How to open different modals in an V-For rendered list? | <p>I am using Bootstrap-Vue Modals to open an "Edit" modal when clicking the "Edit" button that is attached to each item I have rendered in a list from v-for rendered list.</p>
<p>Each time, however, when I click on the edit button, it opens all of the modals, stacked on top of eachother with the la... | 2 | 1,050 |
Getting a System.Error when attempting to Sync using batching in Sync Framework | <p>I am writing an n-tiered application that uses the Sync Framework v2.1 in combination with a WCF web service. My code is based on this example: <a href="http://code.msdn.microsoft.com/Database-Sync-SQL-Server-7e88adab" rel="nofollow">Database-Sync</a></p>
<p>Syncing seems to work without a problem. But, when I add ... | 2 | 4,504 |
DebugDiag Message Thread Does Not Appear to be Waiting on the Remote Server to Respond | <p>We have a C# Windows service that runs a process that is split into multiple tasks. Most of the tasks contact a web service using WCF to perform work against a database. The service's tasks are run in multiple threads.</p>
<p>A customer opened a support case with us saying the Windows service was occasionally fai... | 2 | 2,986 |
Permission Denied: Verifying Hadoop dfs | <p>Even though this question is going to be an exact replica of another, I am still willing to ask it - since none of the other similar questions (and answers) on StackOverflow and AskUbuntu have helped me out. I am a total newbie, and trying to learn Hive from a TutorialsPoint tutorial.</p>
<p>I've followed the insta... | 2 | 1,084 |
Cookies are not stored in android Webview API 21 and up | <p><strong>Background</strong>:</p>
<p>I am experiencing a very confusing behaviour with android <code>Webview</code>s in API 21 and up when <strong>testing in real devices</strong>. </p>
<p>I have a local <code>HTML5</code> application (inside assets folder) with the following functionality</p>
<ul>
<li>Login (2 st... | 2 | 1,110 |
How to Image button create circle in list view in android? | <p>I developing android app .and i used in custom list view .but i want to store profile image button create round shape .how to possible and big image blur in devices how to set original image size set in android . my xml code in below . please help me!!!</p>
<p>Thanks!!!</p>
<p>I want to look like this!!!</p>
<p><... | 2 | 1,340 |
No connection adapters were found? | <p>I am trying to open scrape all urls in a csv file. Then open the csv file and read each url opening each url to search and grab the Source info, Author, and License info. Then need to follow the respected gitlink to see if there is a license file or not. If there is a license file download and save it to csv file.</... | 2 | 1,123 |
Java GUI not showing anything | <p>I am new to Java and I am creating a Gui. I don't have any error but when I ran the main nothing is shown.
I can not understand why. Can please someone help?</p>
<p>Here is my code of the GUI: </p>
<pre><code>import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.Border;
publi... | 2 | 1,738 |
Creating a polynomial from Int text file. | <p>I'm reading in a .txt file to create polynomials. I am having trouble actually printing the polynomials (after they've been put into the linked list). I'm not really sure how to go about 'linking' the linked list and the polynomial method... </p>
<p>Text File: </p>
<pre><code>P1 = 3 5 1 -1 0 8
P2 = 5 6 2 -1 1 7 0 ... | 2 | 2,357 |
Swift - ReloadData doesn't call CellForRowatIndexPath | <p>I'm kind of a swift noobie trying to load my JSON data from my server into my UITableView, but when I call the ReloadData method nothing seems to happen (while it should be calling CellForRowatIndexPath as far as I know). I've tried some solutions that I found (like putting it in the main thread), but those didn't d... | 2 | 1,876 |
Composer custom package error : Skipped branch develop, Undefined index: name | <p>I am trying to load a small package I made from a remote git repository but i'm still getting the same error whatever I do.</p>
<p>Here is the code of the local composer I am running :</p>
<pre><code>{
"require": {
"kdyby/fake-session": "^2.0",
"monolog/monolog": "^1.19",
},
"repositories": [
{
... | 2 | 1,105 |
How do i restart a console game? | <p>I'm new to programming and i started with c#. So i followed a tutorial on making a simple game in console. <a href="https://www.youtube.com/watch?v=o1c7PYHhmow" rel="nofollow noreferrer">Here's the tutorial</a>. And when i finished the tutorial i was left with a decent game but it wasnt polished. The game doesn't re... | 2 | 1,556 |
"cannot allocate memory in static TLS block" in a Python Flask application | <p>I've searched online but haven't found anything that fixed my issue. I'm writing a web app in Flask using Python, but after transferring my data to a new computer and recreating the virtual environment, I'm no longer able to use Flask's built-in development web server. I'm getting the traceback below. I can't tell i... | 2 | 1,866 |
Django Admin panel not working with https | <p>I have a Django project which I just deployed using Apache and mod_wsgi, which seemed to be working perfectly. I then changed the Apache config file to allow HTTPS and now my admin site is not working (though the regular site does work with both http and https).</p>
<p>First, if I go to <a href="http://www.example.... | 2 | 2,478 |
Simple paint application: Referencing Cairo Context on mouse movement | <p>I am attempting to use Cairo with GTK# to create a simple painting application. The feature that is giving me trouble is the one of drawing a line between two points. After clicking on the drawing area, a line should appear, and follow the cursor until the mouse button is released, at which point the drawing area is... | 2 | 3,153 |
Ocelot not passing websockets to microservice | <p>I'm trying to connect to SignalR hubs using Ocelot as proxy. SignalR is plugged in microservice that gateway passing through websockets traffic. Negotation via HTTP request is executed successfully, but further communication via websockets seems to be lost. I don't have an idea what is going on, especially that comm... | 2 | 1,498 |
Show div only if specific other divs have been clicked | <p>I am new to jQuery (this is my second attempt). I looked for answers via Google and StackOverflow and I have tried quite a few but have yet to figure out the last part of my problem. Any help or guidance is most appreciated.</p>
<p>What I want to do is have a bunch of images(apple, pumpkin, candle, etc) that when c... | 2 | 2,095 |
p:wizard with a progress bar | <p>I would like to create a registration form with two PrimeFaces components: <a href="http://www.primefaces.org/showcase/ui/panel/wizard.xhtml" rel="nofollow noreferrer">Wizard</a> and <a href="http://www.primefaces.org/showcase/ui/misc/progressBar.xhtml" rel="nofollow noreferrer">Progress Bar</a>. For the backing bea... | 2 | 4,866 |
Undefined reference to class::function | <p>I've been doing C programming for uni and in my spare time I'm moving onto c++ and am trying to start with classes in seperate files and whatnot, but I'm getting some problems when trying to make my project. I'm using the following makefile</p>
<pre><code>EXEC = main
OBJS = main.o Bunny.o Name.o Board.o
CC = g++
C... | 2 | 1,526 |
I2C Read/Write Issue with RTCC caused by PIC24HJ256GP610/610A Differences? | <p>I'm having problems with the I2C module on the PIC24HJ256GP610A. My code (see snippet below) runs perfectly fine on the PIC24HJ256GP610 [note: not 610A]. I'm using the I2C bus for communicating with a DS1374 RTCC. But on the 610A, it gets stuck when polling the ACKSTAT bit when trying to write a value to the RTCC wi... | 2 | 1,526 |
EmbeddedModelField in custom user model | <p>I'm using django-mongodb-engine to make a site.</p>
<p>I have a custom user model that looks like this:</p>
<pre><code>class User(AbstractUser):
trigrama = models.CharField(max_length=3, unique=True)
external_email = models.EmailField(unique=True)
phone_number = models.CharField(max_length=20, unique=T... | 2 | 1,523 |
PHP file upload wrong file name encoding | <p>Im doing a webpage and have a problem with file upload, that changes the file name umlauts into a weird name.</p>
<p>For example when i upload a file called "töö.docx" and look at the name in the uploaded folder, it shows me this "tƶƶ.docx". </p>
<p>When i call out the name of the file in index.php it shows me t... | 2 | 1,092 |
What to put in try{}catch{} block for AsyncStorage in React Native | <p>I am new to React Native and databases in general. I am currently trying to make a class that gets the user's current position (latitude and longitude) and turns that into a url for Google Maps to be stored it in a database. However, whenever I try to compile my code, I get the error. It also shows me that error for... | 2 | 1,763 |
retrieve SQLite rows by rowid efficiently | <p>I am using the C interface to SQLite and have some basic questions about the rowid field and how to efficiently retrieve data from an arbitrary set of rows with known rowids. I actually have several related questions, so I will call them out in bold as I go. But the main questions I have are at the end.</p>
<p>I ha... | 2 | 2,331 |
Different linkage for extern "C" vs. extern "C" { } in C++ | <p>I realize that, at first sight, my question <em>might seem</em> an obvious duplicate of one of the many questions here related with the <code>extern</code> keyword, but I was unable to find <strong>any answer</strong> talking about the difference between extern "C" and extern "C" { }. On the contrary, I've found sev... | 2 | 2,085 |
Changing boolean value with React Bootstrap checkbox and hooks | <p>Trying to change the isVegan object (nested boolean) with React Bootstrap checkbox and hooks. I can access the object without any issues (e.g. checkbox is checked if isVegan is true), but have been unable to modify the state. As you can see in the Redux dev tools (image link included), the isVegan object is passed t... | 2 | 5,376 |
AngularJS Circular dependency found: $http <- Auth <- AuthInterceptor <- $http <- $templateRequest <- $compile | <p>I am learning Angular from a book, and am getting the following error in my Chrome console...</p>
<p><strong><em>"Circular dependency found: $http <- Auth <- AuthInterceptor <- $http <- $templateRequest <- $compile"</em></strong></p>
<p>Here is the code from the relevant files..any help would be gre... | 2 | 2,262 |
dompdf word-break on chars with different style | <p>I'm trying to render text with dompdf. It should look exactly like in the browser. That works, as long as the characters of the words are not formatted:</p>
<p>With HTML like:</p>
<pre><code><span style="color: #000000; font-family:'opensans'">
<p style="font-size: 30.57465524239px;">
This ... | 2 | 1,034 |
Prestashop 1.7 renderform by admincontroller error | <p>for my module i need to generate a form with helper. I found nothing with my error on the web so... I post again something... </p>
<p>Here my AdminYoutubeHomeController</p>
<pre><code><?php
class AdminYoutubeHomeController extends ModuleAdminController
{
public function __construct()
{
$this-&... | 2 | 2,311 |
Editablegrid mysql binding not updating | <p>I am using editablegrid with mysql. It binds and display data to my grid. However when I try to edit or update the grid it fails to do so. </p>
<p>Below is the some of the code of my loaddata,</p>
<pre><code>$grid->addColumn('CertificateNo', 'CertificateNo', 'integer', NULL, false);
$grid->addColumn('ID', '... | 2 | 1,221 |
Loading external packages in Common Lisp with SLIME on Debian | <p>I'm using SBCL 1.0.56 on Debian squeeze, with cl-swank/slime
1:20120420-2 (Debian version number). These are all the current
versions in unstable.</p>
<p>I've been having problems with loading third party CL packages. The
documentation for using CL on Debian (and indeed the more general CL
usage documentation on Li... | 2 | 1,582 |
Adding custom styling to Bokeh Tabs widget | <p>Is there a way to add custom styling to the bokeh tabs widget, Specifically I want to change the font size and color for title property under each Panel widget. I have tried a variety of different ways to add styling to the tabs widget on the project I am working on but nothing seems to work. I have tried with this ... | 2 | 1,744 |
'ng-bind-html-unsafe' doesn't display anything | <p>I'm displaying a string that has HTML code in it from the JSON.
Please check the 'Name' property in the 2nd object.</p>
<p>However, when I use 'ng-bind-html-unsafe' it doesn't display anything.</p>
<p>I've used ngSanitize as well.</p>
<p>Could you please help me figure out what's wrong with my code?</p>
<p><div ... | 2 | 1,295 |
How to do a join query on a dataset that has multiple tables using VB.NET | <p>I'm reading two XML files into one dataset. I do this by reading my first xml file into a dataset, read my second xml file into another dataset and I then merge the two datasets into one dataset. I'm not sure if this is the best and most efficient way to do this.</p>
<pre><code>xmlFilePath = "C:\RESUSCITATION_INFUS... | 2 | 2,660 |
html <select> jquery mix it up not working ios | <p>Hello I'm using jquery mix it up plugin for a portfolio section of a web. Everything is ok. But I builded a select option menu for mobile devices only (using bootstrap classes hidden-xs and visible-xs). In normal browser works ok, but in iphone not working. I can select option but nothing happen. Mix it up effect no... | 2 | 1,620 |
Semaphores and threads in C | <p>Program should take 3 filenames as parameters, create 2 threads, first thread reads from first file, second thread reads from second file, and they both write to the third file. Ultimately they should alternate writing each line from the file they are reading to the third file. When I run the program they don't real... | 2 | 1,653 |
Binary XML file Line: Error inflating class io.vov.vitamio.widget.CenterLayout | <p><strong>main.xml</strong></p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<io.vov.vitamio.widget.CenterLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/video_root"
android:layout_width="match_parent"
android:layout_height="match_parent"
... | 2 | 1,207 |
How to get all remote repositories of a maven project hierarchy? | <p>I'm redirecting all maven repository access to an Artifactory with the following <code>~/.m2/settings.xml</code>:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.ap... | 2 | 1,854 |
GLFW 3: How to get delta of the mouse scroll wheel with ScrollCallback (LWJGL 3) | <p>I am following <a href="https://www.youtube.com/watch?v=PoxDDZmctnU&list=PLRIWtICgwaX0u7Rf9zkZhLoLuZVfUksDP&index=19" rel="nofollow noreferrer">this tutorial</a> on 3D game development with LWJGL and OpenGL. And in the series, the instructor is using LWJGL 2 while I'm using LWJGL 3 with GLFW. And in a certai... | 2 | 1,080 |
jQuery Datatable - server side processing data pagination using Php | <p>i have a problem with jquery datatable pagination (Server side processing).</p>
<p>For example i have a <code>24</code> records in database. The count is displaying correctly and total pagination also displaying correctly. </p>
<p><img src="https://i.stack.imgur.com/WTihs.png" alt="enter image description here"> <... | 2 | 1,225 |
Raspberry Pi freezes during runtime, ACT light goes solid green | <p>I am trying to create a media panel program that displays a picture slideshow. The codes uses pygame to load and display the images. </p>
<p>The Pi will lock up about an hour or so into the runtime and will not respond to any input. The green LED for ACT is solid green during this lock up and blinking during norm... | 2 | 1,937 |
SocketTimeOutException when using okhttp android in broadcast receiver | <p>I need to send data to server for every 3 minutes. I am using alarm Manager to trigger for every 3 minutes and I am using asynctask in broadcast receiver but I am getting error as SocketTimeoutException in okhttp. How to solve this. I checked method in okhttp but I can't find a method mOkHttpClient.setConnectTimeout... | 2 | 1,491 |
Problems in setting up my own Stanford CoreNLP server: | <p>I'm setting up my own stanford parser server following the tutorial in <a href="http://stanfordnlp.github.io/CoreNLP/corenlp-server.html" rel="nofollow">http://stanfordnlp.github.io/CoreNLP/corenlp-server.html</a>. However, when I paste the example code, it comes out an error:</p>
<pre><code>Exception in thread "Th... | 2 | 1,101 |
ng-click not working in google map angularjs? | <p>i have two stores in database and am trying to get stores in google map marker is pointing that two stores.i have ng-click in that info window to pass id here ng-click is not working is there any idea to pass id through ng-click
<div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre c... | 2 | 1,410 |
Swift, Label not refreshing while in callback function | <p>I want to change/reload my label on activity indicator while i am running on the loop.
But it is not reloading because of “self.netUtil.callWebservice(urlStr) {(data)” i presume.</p>
<p>My code is below
—————————————</p>
<pre><code> if netUtil.isConnectedToNetwork() == true
{
self.showActivityIndic... | 2 | 1,412 |
change style of an HTML page element that was loaded dynamically into a DIV via Jquery and AJAX | <p>I have a an ajax call that loads an HTML page into a div via Ajax. Once the page is loaded into the div is it possible to manipulate the content of the HTML page that was loaded. For instance, once the page is loaded into the div I would like to style one of the images with the ID "1" to have a 1 pix border around i... | 2 | 1,312 |
Powershell: unexpected return value from function, use of $args to access parameters | <p>Ok, I have coded for quite a while in different, but I am not getting Powershells concept of a function return?....</p>
<p>I am very new to Powershell, so I am sure I am missing something very basic. </p>
<p>I have the function below:</p>
<pre><code>function plGetKeyValue ([string] $FileName, [string] $SectionNa... | 2 | 1,714 |
Soap web servive access in iphone iOS | <p>I need help for access web service in iOS (for below web service code). i try to implement soap web service to access web service but it returns false result. I give username and password directly and try to access, but its required base64 encrypted string for access this service (for example user name will be give... | 2 | 1,778 |
Eager load a multiple indexes relationship with Laravel 5 | <p>I'm currently working on a project where I have to use a 10 years old database which is badly constructed.
Anyway I have two tables: one for the products and one for their colors. Every product is identified by a reference and every color is identified by its own reference + its product's one.
For instance I have a ... | 2 | 1,103 |
How to store python objects in Cython C++ containers? | <p>I would like to port an existing <a href="/questions/tagged/c%2b%2b" class="post-tag" title="show questions tagged 'c++'" rel="tag">c++</a> library with <a href="/questions/tagged/cython" class="post-tag" title="show questions tagged 'cython'" rel="tag">cython</a> to Python, with the C++ library empl... | 2 | 1,030 |
AdMob consent form not showing up? | <p>I don't understand why the Google-rendered consent form is not showing up. It says that it loads successfully, but then it doesn't show up. (I am in Europe, so my location is not a problem). I have tried both on simulators and real devices, I have manually selected only 12 ad providers.</p>
<p>Here is the code in q... | 2 | 1,601 |
Scale JavaScript renderer graph to print | <p>I'm generating several plots with the JavaScript renderer, configured to fit in the available width. Relevant code looks like this:</p>
<pre><code><div id="sales-plot">Loading...</div>
</code></pre>
<pre class="lang-css prettyprint-override"><code>#sales-plot{
width: 30%;
height: 275px;
}
</c... | 2 | 1,127 |
RadioButton symbol not resolved in Android Studio | <p>I'm getting a "cannot resolve symbol variable" on <code>maleButton</code>, on the bottom where the femaleSelected is. I've defined the <code>RadioButton</code>s in <code>onCreate()</code>. I thought <code>onCreate()</code> was <code>protected</code>, and that's why I couldn't access the buttons. But changi... | 2 | 1,297 |
transmission-daemon web interface | <p>I'm set up transmission-daemon on my remote server.
But I can't to make RPC (web interface) work.</p>
<p>//Ubuntu server 10.04.3 LTS</p>
<p>Here is my config </p>
<blockquote>
<p>/var/lib/transmission-daemon/info/settings.json</p>
</blockquote>
<pre><code>{
"alt-speed-down": 50,
"alt-speed-enabled": fa... | 2 | 1,237 |
Using ExtractTextPlugin with WebPack 2.2.0 RC3 throws errors | <p>I'm trying to upgrade an AngularJS (Angular 1) application using WebPack 2.1.0 beta 8 to WebPack 2.2.0 RC3 but I'm having issues with the ExtractTextPlugin.</p>
<p>I started from the following, working, setup:</p>
<pre><code>module: {
...
loaders: [{
test: /\.(css|less)$/,
loaders: ExtractTextPlugin.ex... | 2 | 1,817 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.