title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
FragmentStatePagerAdapter Fullscreen Bitmap out of memory Android | <p>I'm working on a Galaxy S and I followed <a href="http://developer.android.com/training/displaying-bitmaps/index.html" rel="nofollow">Displaying Bitmaps Efficiently
</a> to display a set of images from a GridView in a separate Fullscreen Activity.
I implemented the FragmentStatePagerAdapter and an AsyncTask but I s... | 2 | 7,174 |
How to change fields.One2Many view in odoo 12? | <p>i trying to create fields.One2Many for my invoice module, i create two different module, one called ms_produk and another called invoice, then for the ms_produk i use as master product, which serve CRUD for item and have a table named "ms_produk_ms_produk"</p>
<p>here is my ms_produk model looked like :</p>
<pre><... | 2 | 2,917 |
org.apache.maven.plugins:maven-compiler-plugin Failed | <p>After one day effort and reading many topics about that, I have still the problem! I use Debian 8 jessie and used the below command to install maven:</p>
<pre><code>apt-get install maven
</code></pre>
<p>and this is th result of this command: <code>mvn -version</code></p>
<pre><code>Apache Maven 3.0.5
Maven home:... | 2 | 12,599 |
How to move image slowly with animation when appending the image to <td> tag | <p>I am trying to find a way to move image from one cell to other cell using animation.<br>
I know how to do it using the <code>animate()</code> function according to:<br>
<a href="https://stackoverflow.com/questions/7957962/jquery-to-animate-image-from-left-to-right">jQuery to animate image from left to right?</a> </... | 2 | 1,028 |
My while loop prints menu twice | <p>I wrote this program called soccer team roaster. It stores player's jerseys number and player rating. And then does what ever the user wants to do with it within the menu option. But for some reason the menu option keeps on printing twice. I've been informed that its because when I ask for the int input for <code>Pl... | 2 | 2,401 |
Codeigniter Image Upload On Registration Form | <p>Hi guys I am new to Codeigniter and new to the MVC webdesign, and I've been trying to implement this image upload into my registration form with no success. </p>
<p>In another page where the user edits his profile i've added it successfully but for the life of me i can't add it to this register form. It's not uploa... | 2 | 1,865 |
CookComputing XML-RPC.NET C# Client: How to fail gracefully on invalid input? | <p>I have a MS Visual C# 2010 XML-RPC client app that uses the CookComputing.XmlRpc library. It works very well when it receives well-formed input. Here are the essential code elements:</p>
<pre><code>using CookComputing.XmlRpc;
...
public interface IXml : IXmlRpcProxy
{
[XmlRpcMethod]
MyRespon... | 2 | 1,142 |
WPF datagrid won't sort despite setting CanUserSort and SortMemberPath | <p>I have a DataGrid with an ItemSource set to an array of objects. The template column is set to a checkbox which is bound to the boolean IsChecked, and the rest of the columns are text columns set to strings. Despite setting SortMemberPaths and CanUserSort on the text columns, I'm still unable to sort any columns in ... | 2 | 1,418 |
PHP Scraping company data using Guzzle | <p>I'm trying to audit a vast amount of company data from companycheck.co.uk my current script appears to be looping the first 10 results from only the first page. I had the script gather more than 10 results at one point, but this caused a fatal error after around 600 results (not a timeout error, but a connection err... | 2 | 2,406 |
how to set zoom level dynamic in xamarin form map | <p>I want to set zoom level in map dynamically in <code>Xamarin Form Map</code> when its loading. I am trying to use the <a href="https://developer.xamarin.com/samples/xamarin-forms/WorkingWithMaps/" rel="nofollow noreferrer">Working with Maps</a>. The zoom level is working in the code on slider value change.</p>
<pre... | 2 | 1,522 |
Implementing search bar and getting 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference error | <p>I am new to android studio and I have been trying to implement a search bar onto my app and I've come across a building error. It install's fine but when I try to open the app on my phone shows "application has stopped". </p>
<p><strong>Logcat (Errors):</strong></p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: ma... | 2 | 1,565 |
Using a RenderControl on a RenderForm on a SharpDX Project | <p>I am currently trying to implement a button on top of a <code>RenderForm</code>, but upon using a <code>RenderControl</code>, the <code>RenderForm</code> becomes a white canvas without anything.</p>
<p>I tried offloading everything to another class and using the same <code>RenderTarget</code>, but that didn't work ... | 2 | 1,198 |
Querying JSONB. Sequelize Op.In throws Error: Invalid value | <p>I have a postgresql JSONB field named "config".</p>
<p>Example of a value in the field "config"</p>
<pre><code>{
"rewards":{
"policyA":[
{
"enforcedDate":"some-date",
"anotherKey":"some-val"
},
{
"enforcedDate":"some-date-2",
... | 2 | 1,463 |
unused `static inline` functions generate warnings with `clang` | <p>When using <code>gcc</code> or <code>clang</code>, it's generally a good idea to enable a number of warnings, and a first batch of warnings is generally provided by <code>-Wall</code>.
This batch is pretty large, and includes the specific warning <code>-Wunused-function</code>.</p>
<p>Now, <code>-Wunused-function</... | 2 | 1,113 |
LLVM: Instruction does not dominate all uses - No control flow | <p>I implemented a function pass which iterates over basic block instructions and tracks all instructions that have a type of IntegerTy.</p>
<p>Here is the snippet of the pass that does it:</p>
<pre><code>if (!I->isTerminator()){
Type::TypeID datatype = I->getType()->getTypeID();
if (datatype == llvm::Ty... | 2 | 1,062 |
Webbit websocket ws:// connection works but wss:// handshake fails silently without any error? | <p>Upgraded Webbit to 0.4.6 to use the new SSL support but immediately realized that all wss:// handshakes are failing silently and I don't have any errors to show for it. Chrome only reports a "success" for a response without a HTTP code or any other headers. I check server logs and it doesn't even register an "open" ... | 2 | 1,197 |
Different sizes in JavaFX on different screens | <p>I've been struggling to make my JavaFX application size properly on different devices. I think it happens because of different resolutions on the screens. I'm doing all the development on my Macbook Pro Retina 13, which has a resolution of <code>2560x1600</code>, while the window looks different on my Windows deskto... | 2 | 5,553 |
Android/Java creating a helper class to create graphs | <p><strong>Goal:</strong></p>
<p>To create a helper class for graph generation</p>
<p><strong>Background:</strong></p>
<p>I have 3 fragments that each collect some sensor data (accelerometer, gyroscope, rotation) and plots a graph using GraphView. Here is what the code looks like for one of those fragments (this cod... | 2 | 5,514 |
I cannot start a new project | <p>I wanted to test your project so I followed instructions listed here : </p>
<p><a href="http://jhipster.github.io/creating-an-app/" rel="nofollow">Installing JHipster</a></p>
<p><a href="http://jhipster.github.io/creating-an-app/" rel="nofollow">Creating an application</a></p>
<p>At the last step : </p>
<p><code... | 2 | 1,057 |
Build android failed processDebugResources gradlew cdvBuildDebug | <p>I am using ionic framework, until now for months the command <code>ionic build android</code> worked great, and now i see this message:</p>
<p><img src="https://i.stack.imgur.com/FlxRG.png" alt="Error Command Prompt"></p>
<p>I really don't know what is the problem, i searched so much and tried many things.. Thank ... | 2 | 4,236 |
Webpack missing loader for bootstrap | <p>I'm trying to use bootstrap through webpack and have installed it using npm. I want to use it in my react project so I've done the below settings but I keep getting the below error:</p>
<p>main.js</p>
<pre><code>import React from 'react'
import 'bootstrap/dist/css/bootstrap.css'
const Main = () => (
<div... | 2 | 1,057 |
Understanding DataBinding in Windows Phone Develpment | <p>I'm having a little trouble understanding Data Binding.
I am trying to learn <code>Windows Phone 8</code> Development.</p>
<p>I am trying to understand some sample code here.</p>
<p>In the <code>MainPage.xaml</code> he defines the <code>DataContext</code>:</p>
<pre><code><phone:PhoneApplicationPage.DataContext... | 2 | 1,829 |
Need help updating old Kinect SDK code. | <p>We have been having trouble with finding up to date tutorials for the Kinect SDK 1.8. All of the tutorials that we have found online are for an older version of the SDK. If anyone could help, would someone please tell us what version of the Kinect SDK this code is written in and how to update the code to the latest ... | 2 | 1,982 |
error 405 web.py | <p>I got an error 405 as you can read, here is my code and my guess of what's wrong. The code is pretty basic, they are 3 files, main.py, blog.py, and form.html. As additional info: this code uses sessions, a subapp, and templates.</p>
<p>main.py --</p>
<pre><code>import web
import blog
urls = (
"/blog", blog.app_... | 2 | 1,089 |
MultiDexTestRunner does not work with MultiDexApplication | <p>I'm using:</p>
<ul>
<li>Android Studio 1.1.0 </li>
<li>Gradle 2.2.1 </li>
<li>Android Plugin for Gradle: 1.1.0</li>
</ul>
<p>We have recently moved to Android Studio and we are trying to make our instrument test work. However when I run the test, it gives me error </p>
<p>Running tests
Test running startedTest r... | 2 | 1,651 |
Access violation error in matlab | <p>I am trying to run the following matlab code in matlab 2016: <a href="http://pastebin.com/q42xhMfw" rel="nofollow">http://pastebin.com/q42xhMfw</a> which uses the following C++ compiled code (compiled using mingw64 compiler): <a href="https://github.com/rajatsaxena/IISc_Neuroscience/blob/master/Miscellaneous/mexAdap... | 2 | 5,754 |
Dependency injection in a CommandLineRunner failed | <p>I would like to develop a "batch" with Spring Boot. I have a class that implements a <code>CommandLineRunner</code> who need a <code>@Service</code> class.</p>
<p>Here is the code :</p>
<pre><code>@SpringBootApplication
public class CarmindBatch implements CommandLineRunner {
@Inject
private VehicleDataBa... | 2 | 2,470 |
"Could not load type" from app.config | <p>I've got a functioning program I inherited that works as a service at the moment. All that service does is call a method in another class, so I'm trying to write a winform project I can run so I can work on itit. I've copy+pasted the app.config file over and changed the name of the project over to servicetester,... | 2 | 1,177 |
JavaFX ListProperty filter for combobox | <p>I have a ListProperty in which I load the application operator list from the database. I would like to display only the operators that have an active status in a ComboBox.</p>
<p>I have tried to filter it when the ListProperty is modified, but when I only update the operator status it doesn't work. I have also trie... | 2 | 4,939 |
How to convert MailAttachment to MimeKit Attachment | <p>We have to rework how we're sending emails since we are using Amazon SES. In the past, we were using smtp but can't do that in this case. The class that needs updated has taken in a MailMessage object and used smtp to send it. So I'm trying to rework the method to be able to continue to accept the MailMessage obj... | 2 | 1,425 |
How to know if a specific notification has been sent in laravel | <p>I am building a site where users can buy a plan for whatever estimated time they require. After they buy the plan I created a middleware to check when the plan is almost finished (70% into the plan) then send a notification . Now the issue is I am trying to find out if the Notification in question has already been s... | 2 | 1,158 |
Could not find resource for path in JAX-RS with RESTEasy | <p>I created a maven project with archetype as maven-archetype-webapp, and then for exposing my application as a rest webservice i'm using RestEasy, however after implementin the rest application i'm unable to acces the URL created by me.
Please guide me in what i'm doing incorrectly. Thanks for reading the question.</... | 2 | 3,510 |
Haskell performance implementing unix's "cat" program with Data.ByteString | <p>I have the following Haskell code, implementing a simple version of the "cat" unix command-line utility. Testing performance with "time" on a 400MB file, it's about 3x slower. (the exact script I am using to test it is below the code).</p>
<p>My questions are:</p>
<ol>
<li>Is this a valid test of performance?</li>... | 2 | 1,365 |
Jquery UI Dialog with AngularJS | <p>I'm learning AngularJS, I searched in google but can not find even a solution to my problem.</p>
<p>I am using jQueryUI for dialog, bootstrap for CSS and I want AngularJS for events and queries to the database.</p>
<p>I have the following files:</p>
<p>index.html</p>
<pre><code><!DOCTYPE html>
<html lan... | 2 | 2,076 |
C# Anonymous type foreach loop, a better way? | <p>I have this simple <code>foreach</code> loop of an anonymous type and I'm wondering if there is a way to make it more efficient. </p>
<p>If it loops through 155 items, it takes about 20 seconds to complete. I've omitted some of the other properties it's setting on the <code>boAsset</code> object, but nothing specia... | 2 | 1,622 |
Update Command in Datagridview to database | <p>i've been working so far with my database issue, i can't proceed with a new module for the reason that i can't update my database through datagridview</p>
<p>can somebody check on my codes why i can't update my database in datagridview using a button click?</p>
<p>here's how i had my datagrid content:</p>
<pre><c... | 2 | 1,288 |
How to access Quickbooks Invoice Line Items using php api | <p>am trying to access the line items of the invoice in quickbooks using php api,</p>
<p>so that i could do some manipulations on it.....</p>
<p>am able to get the invoice data when i do this...</p>
<pre><code><?php
$Invoice = $InvoiceService->findById($Context, $realmID, $InvoiceID);
pr($Invoice);
?>
</cod... | 2 | 9,688 |
How to calculate accuracy for Multiclass - Multilabel classification? | <p>I am working on a multilabel and multiclass classification framework, I want to add matrices for multilabel and multiclass accuracy calculation.</p>
<p>Here is demo data :</p>
<pre><code>predicted_labels = [[1,0,0,0,1],[1,0,0,0,1],[1,0,0,0,1],[1,0,0,0,1],[1,0,0,0,1],[1,0,1,0,1]]
true_labels = [[1,1,0,0,1],[1,0,... | 2 | 1,229 |
How to display an Error message when logging in fails in Reactjs | <p>How to display an Error message when logging in fails in Reactjs.
I want to display the alert message 'Invalid Username or Password, Please try again.' when the user logs in fails on the page. How can I do that in Reactjs?</p>
<p>the code:</p>
<pre><code> login.js
export default function LogIn() {
let history... | 2 | 1,034 |
Setting the names of each tab of viewpager | <p>At the moment I have seven tabs that I are intially just blank, i.e. <code>""</code>. Those values would be changed to the values of a <code>String[]</code> array that I am passing through a method call shown below</p>
<p>So I have method like this in one of my classes:</p>
<pre><code>CustomTabAdapter customTabAda... | 2 | 1,470 |
Android Studio - Sliding Tabs appear below action bar instead of on action bar | <p>I've created a set of sliding tabs with view pager to put into my activity_main.xml. In the project the tabs show below the action bar as if they are divided.</p>
<p>I'd like to have them look like they are a part of the action bar.</p>
<p>What should I edit in my code to accomplish this?</p>
<p><a href="http://i... | 2 | 6,822 |
When running Celery with Django's manage.py command, it returns a strange error | <p>When I run the following command, it produces the following error:</p>
<pre><code>% python manage.py celeryd -l INFO ~/Workspace/django-projects/project/src
Traceback (most recent call last):
File "manage.py", line... | 2 | 1,089 |
Nested Repeater using XMLNodeList | <p>I am stuck on a problem. I think I am probably close to the solution but can not seem to get there. I have an XMLDoc that is loaded from a stored Proc, into a dataset and the xml is pulled from it, (don't think I can change any of this part). The XML looks like this:</p>
<pre><code><data>
<datanode>... | 2 | 1,759 |
WPF: Show Tooltip message on custom DataGrid cells when IDataErrorInfo | <p>I'm pretty new to WPF but I've read a lot on it as well as MVVM in the last couple if days.
My WPF displays a DataGrid with custom column templates (using the NumericUpDown Controls from Xceed WPF Toolkit). Three of the columns contain the decimal coordinates of a 3D vector. I use IDataErrorInfo to make sure the vec... | 2 | 1,333 |
How to prevent user to set the value of the session id cookie used by pyramid_beaker? | <p>I have a pyramid application using pyramid_beaker. Here is my configuration:</p>
<pre><code># Options For Sessions and Caching:
session.type = file
session.data_dir = %(here)s/../../data/sessions/data
session.lock_dir = %(here)s/../../data/sessions/lock
# Session Options:
session.key = session_id
session.secure = f... | 2 | 1,024 |
Trying to implement carousel same as airbnb.com | <p>I would like to learn bootstrap and I started to play around airbnb.com html file. I did ctrl-s to get all the files and open html file to edit it. I got the airbnb files because I like the way that images are shuffling (can we call this carousel?)</p>
<p>So, first thing I did, I changed the pictures that are show... | 2 | 2,139 |
Hibernate delete child when parent is getting updated in same transaction | <p>I have defined two entities Customer and SalesOrder in my domain model with oneToMany relationship from customer to salesOrder.
Below code deletes the sales order: </p>
<pre><code>SalesOrder salesOrder = salesOrderRepository.findByOrderNumber(orderNumber);
if(null != salesOrder){
Customer customer = salesOr... | 2 | 1,864 |
unable to convert yaml string to json string using java | <p>I want to convert a <code>yaml</code> string to a <code>json</code> string by using "jyaml", kindly some one help me to resolve this</p>
<p>YAML string :-</p>
<pre><code>Korea: www.gozoculture.com: default: jhfjfjfj www.5plus5.gov.mt: default: jhfjfjfj www.ces.gov.mt: default: cesDefault user5: ... | 2 | 1,570 |
AUTOCOMPLETE EDITTEXT | <p>I have an edittext and a recyclerview. I want anytime a user enters character "@" as the first character of a new word in edittext, the recyclerview pops up just above the edittext. If the user continues to type after character "@", we are supposed to filter through the recyclerview items to match whatever the user ... | 2 | 1,409 |
Unable to fill List Layout in App | <p>I'm attempting to write my first android app and am having a little
problem with filling a List Layout from a DB.</p>
<p>The project itself is here: </p>
<p><a href="http://code.google.com/p/biofuelsfinder/" rel="nofollow noreferrer">http://code.google.com/p/biofuelsfinder/</a></p>
<p>However the specific code I'... | 2 | 1,694 |
Set different color for each bars using ChartJS in Angular 4 | <p>I'm very new to angular and I'm using ChartJS to plot a bar graph in my Angular 4 application. I want different colors for each bars. I did like what they say here <a href="http://www.chartjs.org/docs/latest/" rel="nofollow noreferrer">http://www.chartjs.org/docs/latest/</a>, but its not wokring</p>
<p>Here's my ht... | 2 | 1,040 |
Google Cloud Build can't find kubernetes deployment when updating image | <p>I'm trying to set up a CI pipeline using Cloud Build. My build file builds and pushes the Docker images, and then uses the <code>kubectl</code> builder to update the images in a kubernetes deployment. However I'm getting the following error:</p>
<pre><code>Error from server (NotFound): deployments.extensions "my-ap... | 2 | 1,089 |
Need to implement swipe left and right in webview in android | <p>I an developing an app which shows the contents from database into webview.</p>
<p>In first screen i have index where user select an item and it opens the content in the webview. currently i have two buttons to go to next or previous item.</p>
<p>Now i want to replace buttons with swipe left/right to go to next or... | 2 | 1,295 |
How to force another control to validate when a drop down's choice changes | <p>I have a WPF application with a dialog that is displayed to edit some settings. The dialog contains, among other things, a <code>ComboBox</code> and a <code>TextBox</code>. The <code>ComboBox</code> has two choices in it. The contents of the <code>TextBox</code> need to be validated when one of those two choices ... | 2 | 2,062 |
glutKeyboardFunc calling function not working | <p>I am trying to call a function, only when "spacebar" is pressed. Its key code is 32.</p>
<pre><code>#include <GL/glut.h>
#include <GL/glu.h>
#include <GL/gl.h>
#include <cmath>
#include <iostream>
#include <string.h>
using namespace std;
GLuint window, View1;
void Display_Mid_... | 2 | 1,693 |
magento cron schedule not working, no heartbeat | <p>I have inherited a magento site and the cron schedule does not work. It was set in magento with */5**** and the same in cpanel. I installed AOE Scheduler and all the emails that had been stuck in the queue came through but now I just get a message "Last heartbeat is older than XX". If I run the scheduled tasks manua... | 2 | 1,407 |
Are attributes and properties with dashes supported in Polymer? | <p>I can make a <a href="http://www.polymer-project.org/" rel="nofollow">Polymer</a> checkbox using the following html:</p>
<pre><code><polymer-element name="role-checkbox1" attributes="ariachecked" on-click="{{clickHandler}}">
<template>
<style>
:host::after {
... | 2 | 1,082 |
SWIG: 'module' object has no attribute 'Decklist' | <p>I'm having one hell of a time with SWIG, due in part to the lack of good C++ examples to learn from. I finally got my first program to compile with SWIG, but am having troubles running it. Let me just get right to the code...</p>
<p>setup.py:</p>
<pre><code>#!/usr/bin/env python
"""
setup.py file for SWIG examp... | 2 | 1,519 |
Position icons on same line as text | <p>I want to make icons to be on the left side and the text right next to them.<br>
In my code, the icons are above the text.</p>
<p>How can I make them organized and near the text without everything to get messy?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<di... | 2 | 11,079 |
EditText.SetOnClickListener | <p>PatientInfo.Java</p>
<pre><code>public class PatientInfo extends Activity {
private Spinner locationSpinner;
Calendar myCalendar = Calendar.getInstance();
EditText edittext = (EditText) findViewById(R.id.DateTextEdit);
DatePickerDialog.OnDateSetListener date = new DatePickerDialog.OnDateSetListener() {
... | 2 | 1,132 |
Swift Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffeedbbaff8) | <p>I am trying to get a pod to work.
It is from here:</p>
<pre><code>https://github.com/Ahmadalsofi/SOTabBar
</code></pre>
<p>I get no errors until runtime, where I get a long list of what seems like a thread loop of sorts.</p>
<p>Images:</p>
<p>1.Tread Stack</p>
<p><img src="https://i.stack.imgur.com/haejX.png"><... | 2 | 1,248 |
Why do getWidth() and getHeight() return 0 before paintComponent() is called? | <blockquote>
<p><em>Edit:</em> <strong>I have solved the underlying problem.</strong> I used <code>SwingUtilities.invokeLater()</code> to solve the issue. My <a href="https://stackoverflow.com/questions/16615957/when-does-a-jtabbedpane-component-get-its-size">other question</a> provides more information for those who... | 2 | 1,218 |
Flutter, flutter_localization and testing (pass only one test if i try mock localization) | <p>I write simple project for catch my problem</p>
<p><a href="https://gist.github.com/imigalkin/5ecddacec27e160d0017a63d4a14a1b0" rel="nofollow noreferrer">https://gist.github.com/imigalkin/5ecddacec27e160d0017a63d4a14a1b0</a></p>
<p>If i run tests in this project separately they pass. But if i try to run all the te... | 2 | 1,445 |
How could I make a menu dropdown on click | <p>how could I make my menu drop down when i click on it instead of hover?
I want to be able to click on .logo and have the ul dropdown. and to also hide the menu when i click on it again. The div inside .logo is just a triangle pointing down.</p>
<p>html code:</p>
<pre><code><div id='Logo_dropdown'>
<ul>... | 2 | 1,654 |
jQuery append elements not working with autocomplete | <p>jQuery newbie here, I have a table with 2 rows in, the input elements in these rows are set to autocomplete, this works perfectly.</p>
<p>I have an 'add line' button that when clicked, jQuery appends a new line onto the table, this also works perfectly but the problem is that the autocomplete does not work on the a... | 2 | 1,502 |
Servlet age calculator gives wrong results | <p>I have a problem here, I am trying to calculate the no of months, weeks, days, hours, minutes and seconds of a person based on the person's age. I am using an HTML form to get the data (name and age) and send it to a servlet to calculate the above results. The problem is that the results seem to be accurate when the... | 2 | 1,383 |
Python calling method from super class via child class not working as expected | <p>I have extended <code>pygame.Rect</code> with my <code>Ball</code> class. When I use <code>nstanceOfBall.colliderect()</code> (line 66), no errors are thrown, yet it never returns true. Any insight into why <code>colliderect</code> isn't working for my Ball instances?</p>
<pre><code> import sys, pygame
impo... | 2 | 1,359 |
How to configure the Visual Studio Code Debugger for Chrome | <p>I'm unable to get the Visual Studio Code Debugger for Chrome running propertly in my environment. I was able to install and set a basic configuration</p>
<pre><code>{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch ... | 2 | 2,941 |
Load Data into Dynamically created Tabs using jQuery AJAX and PHP | <p>My situation is as follows:</p>
<p>PHP script retrieves data from a database. This information is shown in the first tab. This tab will always stand and can not be closed. This is fine, see me code.</p>
<pre><code>try {
print '
<div class="clientTabs">
<ul class="nav nav-tabs" id="navTabs">... | 2 | 2,886 |
ErrorException: 'Trying to get property of non-object' while sending a POST request from Angular 5 Service to Laravel 5.4 API | <p>I am trying to access data from a Laravel API for my Angular front-end.
To receive the required data, I have to send an 'id' as POST to the url which in turn queries the database and returns the result as JSON.
USING POSTMAN and other API tester tools, I have verified that the endpoint is working correctly.
WHEN I t... | 2 | 1,528 |
s6 overlay s6-svc supervisor not listening | <pre><code>root@0cd6bfb7e363 app]# s6-svc /etc/services.d/uwsgi/
s6-svc: fatal: unable to control /etc/services.d/uwsgi/: supervisor not listening
[root@0cd6bfb7e363 app]# s6-svc -r /etc/services.d/uwsgi/
s6-svc: fatal: unable to control /etc/services.d/uwsgi/: supervisor not listening
</code></pre>
<p><strong>howeve... | 2 | 1,273 |
Android Pending Exception | <p>My app is a hybrid html5 + JS + android which run in webview and communicate so much with Andorid through JS interface.</p>
<p>I got some report that it fails after 2 second on some devices. I added ACRA so I can get reports, but I didn't get any thing.</p>
<p>So I tried to test it myself, To raise an exception I ... | 2 | 1,259 |
Heroku + docker + nginx every request returns 500 | <p>I deploy my docker container to Heroku hosting. Container contains nginx and static files, created by webpack on contained-build stage.
root directory is /data/www with index.html, style.css, style.css.map, bundle.js, vendor.bundle.js and directories with assets(images/ etc)</p>
<p>my nginx conf:</p>
<pre><code>w... | 2 | 1,250 |
How to have a SELECT query prepared in CQL using Python3? | <p>Like I can prepare <code>INSERT</code> query, how can I prepare <code>SELECT</code> query in CQL-Python?
INSERT statement:</p>
<pre><code>insert_sql = self.session.prepare(
(
"INSERT INTO {} ({}, {}, {}) VALUES (?,?,?)"
).format(
self.table_name, "id", "versi... | 2 | 2,649 |
React Search bar fetch api | <p>I'm comparatively new to ReactJs</p>
<p>I've already implemented routing. What I need to do next is to make an auto complete search bar which will automatically suggest country name. And when finally the user inputs the country name some data associated with that particular country will be shown on the page</p>
<p><... | 2 | 1,229 |
Null pointer exception in gui of jmeter | <p><a href="http://i.stack.imgur.com/ZNUwx.png" rel="nofollow">Please click here for the jmeter test plan</a></p>
<p><a href="http://i.stack.imgur.com/M3rEH.png" rel="nofollow">Please click here for the jmeter log file</a> I am trying to hit the server by JUnit Request using Jmeter, but i am getting the followig error... | 2 | 6,794 |
ReferenceError: algoliasearch is not defined | <p>I'm trying to build and Algolia system with instantsearch.js from algolia but when I run this code I get an error of "ReferenceError: algoliasearch is not defined". Is it because I'm missing some imports?
How do I fix this?</p>
<p>index.html</p>
<pre><code><!DOCTYPE html>
<html>
<head>... | 2 | 1,129 |
Firing Command from Buttons within Combobox using MVVM Light | <p>I am having a problem with a custom ComboxBox firing events. The idea is to have the combobox bound to a collection of items with an Edit and Delete button in-line with each item. I can make the click event work using code-behind, but the command binding seems to do nothing. </p>
<pre><code> <ComboBox Sele... | 2 | 1,307 |
PHP CLI "Out of memory" error on VPS server running CentOS with cPanel | <p>I'm running Symfony2.1 on a hosted virtual server running CentOS with cPanel. Everything runs fine except that I can no longer use Symfony CLI commands. I'm getting this:</p>
<pre><code>Fatal error: Out of memory (allocated 20185088) (tried to allocate 71 bytes)
</code></pre>
<p>error (for example when I try to ru... | 2 | 1,039 |
SES problems with IIS 7.5 and ColdFusion 10 | <p>I've got a site built using <a href="http://www.coldbox.org/" rel="nofollow">ColdBox</a> and am trying to remove the /index.cfm/ from the URL. I have this working great on ColdFusion 9 running on IIS7 using the below web.config file, but can't for the life of me get it to work on CF10/IIS7.5. The rewrite module is i... | 2 | 2,973 |
Why QResizeEvent & QWidget::size gives different when fullscreen? | <p>The question is from <a href="https://stackoverflow.com/a/52151020/3308570">https://stackoverflow.com/a/52151020/3308570</a>.
(contains an example to reproduce the problem)</p>
<p>I'm trying to get the widget size when it shows fullscreen. At first, I took the size from <code>QResizeEvent::size</code>. But the size... | 2 | 1,157 |
ViewDataBinding causes crash resuming app after activity.finish(), NPE on access to mRebindRunnable during view attachment | <p>Crash surfaces after successfully launching an activity, inflating a fragment w/ data binding. After pressing the back button at the root level, the app (properly) goes through an <code>activity.finish()</code> but keeps the application instance in the background.
Upon relaunching, the app crashes at some point afte... | 2 | 2,380 |
React BarChart using D3 scrollable X-Axis | <p>I am currently trying my best to implement a bar chart that allows the user to scroll on the x-axis while the Y-Axis remains in place. I am using React as my framework.</p>
<pre><code>export default [
{ activity: 'Main Idea and Detail', value: 90, color: '#2A78E4' },
{ activity: 'Character and Plot', value: 80,... | 2 | 1,509 |
Expected unqualified-id before numeric constan Arduino | <p>I'm attaching my rfid MFRC522 to my Arduino when I get this error:</p>
<pre><code>Arduino: 1.6.6 Hourly Build 2015/09/18 03:38 (Windows 7), Board: "Arduino/Genuino Uno"
sketch_mar11b:34: error: expected unqualified-id before numeric constant
sketch_mar11b.ino:36:10: note: in expansion of macro 'SS_PIN'
sketch_ma... | 2 | 1,261 |
Trying to automate arm64 build on Docker Hub | <p>From what I understood, it is possible to build an arm64v8 image on the Docker Hub infrastructure (that use amd64). According to this <a href="https://github.com/docker/hub-feedback/issues/1261#issuecomment-491479416" rel="nofollow noreferrer">thread</a> it can be done using Qemu.</p>
<p>So I added a <code>pre_buil... | 2 | 3,046 |
custom php api with json_encode & json_decode not returning json string | <p>I've recently written a custom API for inserting data into my database from multiple websites across different servers... But it's having some issues and I don't know what it could be...</p>
<p>Here is a sample of excerpt of my API code..</p>
<pre><code>if (function_exists($_GET['method'])) {
// function ... | 2 | 2,251 |
how to put the value from a datatable in double quotes | <p>I have a data table DT with 3 column col1,col2,col3.</p>
<p>I wrote the below code</p>
<pre><code>Boolean fst = true;
string q = Convert.ToString('"');
foreach (DataColumn co in DT.Columns)
{
if (fst)
{
... | 2 | 1,117 |
Sending files via TCP/IP | <p>i'm trying to send a file via TCP/IP using a C++ program on windows. The send and the reception works fine. but in the received file two commas appear after every 40 character. If I send for example :</p>
<pre><code>123456789
123456789
123456789
123456789
123456789
123456789
23456789
123456789
123456789
123456789
1... | 2 | 1,098 |
Exception : Foundation.You_Should_Not_Call_base_In_This_Method | <p>I am trying to implement IDtech Unimag card reader. I have already got the c# binding library for UniMag native code. To create the unimag object I am writing below given code.</p>
<pre class="lang-cs prettyprint-override"><code>_uniMagReader = new uniMag ();
//_uniMagReader.ReaderType = BrushfireUniMagBinding.Um... | 2 | 2,480 |
OPC UA Secure Connection C# | <p>I am trying to establish a secure connection using OPCUA Client wiht a Beckhoff Server. I get an error Control Certificate is not trusted. Any suggestions on how to proceed from here? </p>
<pre><code>public bool connect(string url) {
// TODO implement security
// select the best endpoint.
En... | 2 | 1,416 |
How to create JSONObject for Ext.data.JsonStore in JAVA? | <p>This my ExtJS code to show my records in grid.</p>
<pre><code> var remoteProxy = new Ext.data.ScriptTagProxy({
url : 'hastanebilgilerinigetir'
});
var recordFields = [
{ name : 'hid', mapping : 'hid'},
... | 2 | 3,345 |
Java applet works in appletviewer, Safari and Firefox, but not Chrome | <p>OS: Mac OS X 10.7.3
Chrome: 19.0.1051.0 canary
Java: 32-bit and 64-bit version of Java SE 6</p>
<p>Directory structure:</p>
<ul>
<li>page.html</li>
<li>Test.jar
<ul>
<li>META-INF
<ul>
<li>MANIFEST.MF</li>
<li>SELF-SIG.SF</li>
<li>SELF-SIG.DSA</li>
</ul></li>
<li>com
<ul>
<li>tyilo
<ul>
<li>Test
<ul>
<li>Test$1.cla... | 2 | 1,569 |
Trying to link object and text when dragging in v4 | <p>I have been trying to learn enough about <a href="https://github.com/d3/d3-drag" rel="nofollow noreferrer">d3.drag</a> to integrate it into a sankey diagram for v4 similar to <a href="http://bl.ocks.org/xaranke/9ada4c74a87b57ae7308" rel="nofollow noreferrer">this example</a>.</p>
<p>The start point was Mikes circle... | 2 | 1,346 |
Django LDAP authn backend: user authenticated but unable to login | <p>I have a strange issue with django ldap backend.</p>
<p>this is my configuration:</p>
<pre><code>AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',
'django.contrib.auth.backends.ModelBackend'
)
AUTH_LDAP_SERVER_URI = "ldap://XXXXXXx"
AUTH_LDAP_BIND_DN = "CN=Pti Release,OU=Service-Accounts... | 2 | 3,885 |
FFmpeg iOS -> output file is invalid | <p>I'm using following library to convert mkv to mp4: <a href="https://github.com/SterlingOnLoop/FFmpegWrapper" rel="nofollow">https://github.com/SterlingOnLoop/FFmpegWrapper</a>. </p>
<pre><code>- (void)convertUsingFFmpegWrapper {
NSString *mp4Extension = @"mp4";
NSString *mkvExtension = @"mkv";
NSString... | 2 | 1,369 |
Google Maps marker and polyline color not rendered in IE7/8 | <p>I have a Google Maps v3 on my site that displays markers and polylines. Each set of markers + polylines have their own colors (red, yellow, blue, etc.). This works fine in FF/Chrome/Safari but not in IE7/8 (Work fine in IE9).</p>
<p>Here is what the markers look like in IE8/XP: <img src="https://dl.dropbox.com/u/11... | 2 | 2,588 |
jquery datepicker minDate not working in IE | <pre><code>$("#s_shipDate_from").datepicker({
dateFormat : "yy-mm-dd",
showButtonPanel: false,
showOn: "button",
buttonImage: "images/Cal.gif",
buttonImageOnly: true,
onSelect: function (dateText, inst) {
if($('#s_shipDate_to').val()!="")
{
... | 2 | 1,059 |
Text overlapping font awesome icon- happened only in mobile/tablet devices | <p>My website looks great on desktop. However, one of my form element - "Message" text is overlapping on my font awesome pencil icon when opening the form on mobile/tablet device.</p>
<p>Oddly, this error only showing up on tablet/mobile devices. It doesn't showing up in my responsive tools when I'm making sure everyt... | 2 | 5,808 |
Creating water with p5.js | <p>I'm trying to create some water effects in p5.js with waves and everything, but I can't seem to get the waves in the water to work. I am creating the waves off of <a href="https://gamedevelopment.tutsplus.com/tutorials/make-a-splash-with-dynamic-2d-water-effects--gamedev-236" rel="nofollow noreferrer">this</a> artic... | 2 | 2,168 |
How to write only one function to increment different counter variables in flutter? | <p>I'm trying to build a screen in flutter where,
I have three rows in a column, each consists of: </p>
<ol>
<li>text</li>
<li>IconButton(add icon)</li>
<li>text</li>
</ol>
<p>When I'm clicking on the add icon I need to increment a counter variable and display it as Text(third bullet point)</p>
<p>Checkout the scre... | 2 | 1,724 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.