title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Create a count loop within XML and output | <pre><code><?xml version="1.0"?>
<!DOCTYPE xml>
</object> -<object type="host">
<property value="4" name="id"/>
<property value="briu065a" name="name"/>
<property value="2" name="port_count"/>
<property value="generic" name="type"/>
<property value="11111111111111... | 3 | 1,162 |
Cannot get content of specific div | <p>I've this html page. I'm trying to extract the following information of this div:</p>
<pre><code><div class="clearfix">
<div class="container left">
<div class="logo">
<a href="/teams/belarus/fc-bate-borisov/200/">
<img src="http://cache.images.core.optasports.com/so... | 3 | 1,210 |
fcgi + leveldb = core dump? | <p>in RHEL 5.7 x86_64, when fcgi and leveldb run together, max_open_files = 4000, it's getting a segmentation fault when client sent requests. How?</p>
<p>it would not happen when use mysql.</p>
<p>ulimit -n = 655360</p>
<p>gdb:</p>
<pre><code>Program received signal SIGSEGV, Segmentation fault.
[Switching to Threa... | 3 | 2,004 |
Liquibase hibernate annotation warning when running diff maven goal | <p>I am using liquibase with hibernate to generate diff based on JPA entities. However when I run diff maven goal I get the following warning: <strong>Namespace of the [javax.xml.bind.annotation.XmlSchema] annotation does not match [http://www.hibernate.org/xsd/orm/hbm]. Processing bindings will probably fail.</strong>... | 3 | 4,495 |
Trouble with solution for programmatically cropping a picture to a square | <p>I'm trying to write code to make it so that the camera takes square pictures only from my app on an iPad. I found a solution on here which I translated from Objective-C to Swift, but after I take a picture with the code, the "Use Photo" and "Retake" buttons won't respond to touch unless I rotate the iPad 90 degrees... | 3 | 1,278 |
One C++ application can not open 2 SQLite databases in one thread on linux? | <p>I actually seem to have problem with this (only on linux, described <a href="https://stackoverflow.com/questions/8019485/invisiable-sigsegv-on-linux-that-does-not-happen-on-windows">here</a> with stacktrace like</p>
<pre><code>==11682== at 0x0: ??? // Here goes the error=(
==11682== by 0x4D49BE: sqlite3_free ... | 3 | 1,192 |
Beginner question about SCSS here in this Codesandbox | <p>I have this React Javascript <a href="https://codesandbox.io/s/react-file-viewer-master-mzijq?file=/src/components/file-viewer.jsx" rel="nofollow noreferrer">Codesandbox</a> that usese SCSS.</p>
<p>I wonder if you look at this file <a href="https://codesandbox.io/s/react-file-viewer-master-mzijq?file=/src/components... | 3 | 2,599 |
How can I create instances of a unity class in order to have multiple instances of the class running simultaneously w/o interrupting each other | <p>I am working on a city builder game and trying to create a crop growing system. This issue is with 2 different scripts, a placement manager and a farm timer. The placement manager class detects mousedown events and will setTile to my farm tilemap based off of the click location and the selected tile. The farm timer ... | 3 | 1,292 |
JPA LIKE and and IN clause | <p>New to JPA, I have two entity and a joining table like below -</p>
<pre><code>@Entity
@Table(name = "classes")
public class ClassDao {
@Id
@GeneratedValue
private Long id;
@Column(nullable = false)
private String title;
@Column(length = 5120)
private String description;
... | 3 | 1,465 |
Place a button and its div with one command | <p>Currently, I have a <code>button</code> class which lets me place a clickable button inside a sentence, and a <code>div</code> class which lets me add content to the button which I placed at the end of the paragraph containing the sentence.</p>
<p>This is an example of how I use them</p>
<pre><code>Try to click &l... | 3 | 1,091 |
How to load an image having its URI? | <p>I'm having a really hard time trying to figure out how to load an image when I have its URI.
The app works in the following manner: </p>
<p>I'm checking in the SQLite database whether a user exists and then I'm starting DescriptionActivity (code below). If the user had already been added to database I want to get t... | 3 | 2,924 |
Managing persistent navigation views (MVVM, WPF) | <p>I'm slowly learning MVVM in WPF. I code a GBA game editor. The editor consist of a main window (Editor.xaml) and depending which editor is selected in the menu, I'd like to display the corresponding persistent view (that is not destroyer when switching).</p>
<p>I'm trying to get working the TabControlEx class found... | 3 | 7,119 |
rake assets:precompile not working on heroku - foundation and heroku failing | <p>I already tried different versions of rails-sass but this did not help.</p>
<p>Rails with Foundation fail to upload on Heroku:
Precompiling assets failed.</p>
<p>Any suggestions on how to resolve this?
Bootstap is also giving me the same error.... </p>
<pre><code>marc@marc-ThinkPad-W510:~/Projects/provisio... | 3 | 6,693 |
How to append/display/render data to page on click | <p>I want to get the data from the API and display it on my index.html page. What's the best way in doing this? looking for multiple ways, that be jquery or data binding with angular. I can't seem to figure out a function to display the data I get. I'm fetching two different datas from two different players and I want ... | 3 | 1,492 |
Filter through dynamically inserted td elements | <p>I am trying to filter through dynamically inserted "td" elements in the table element within the HTML. I want the user to be able to type in text within the filter input field and if the text matches any of the td elements text content I want to those td elements displayed. I created the "filter"... | 3 | 3,288 |
How to extract an attachment from an email to a shared drive that is in a google sheets? | <p>currently I have a google script that runs every x times on my Gmail which retrieves all attachments according to of the label.
I enter the email addresses and the path of the folder via a <code>getFolderByName</code> in a google sheets but the problem is that this does not work if the folder is on a shared drive.</... | 3 | 2,247 |
Everything matches but I still get "Bad state: field does not exist within the DocumentSnapshotPlatform" | <p>So i'm pretty lost trying to get my app to fetch not only the desired text from firestore but also the image i placed there. I know the error "Bad state: field does not exist within the DocumentSnapshotPlatform" implies that either I'm missing field or there's something wrong with at least one of those fie... | 3 | 4,803 |
How can i enable/disable the DropDownButton according to the condition in Flutter? | <p>I am new in flutter and i am making leave application in that I have create two DropdownButton. In that one DropdownButton for <strong>From Date Half Leave:</strong> and Second one for <strong>To Date Half Leave</strong>. I am showing Same Item list in both DropdownButton.
Problem is that when i select same item fro... | 3 | 3,903 |
Using an update statement for a Access database (Vb 2008) | <p>I'm trying to create an update statement for my program that will update a database using SQL based on the data the user inputs, unfortunately I have the problem that I can only update one at a time and sometimes no of them work. If any help could be given it will be much appreciated.</p>
<pre><code>Private Sub btn... | 3 | 1,248 |
How to implement UITableView search functionality | <p>My iPhone application has a UITable View implemented with search functionality in it. The values in the table are grouped into sections from A-Z. Whenever a user tap on particular cell in the table it loads a detail view controller which gives all the values of that particular user. Now my problem is whenever I sear... | 3 | 1,670 |
AWS EB - Significant issues getting SSL to work on re-terminated HTTPS behind application load balancer | <p>EDIT 3:</p>
<p>The answer is I'm an idiot and left a listener on port 443 that redirected manually to the environment url.</p>
<p>EDIT 2:</p>
<p>It appears that my DNS records are not set correctly which is causing the site to be marked unsafe despite the certificate being indeed valid. Possible solution (related sy... | 3 | 3,297 |
my Django website style broken after configure aws S3 storage | <p>My website index.html style broken after I configure aws S3. I added following code in my settings.py:</p>
<pre><code>AWS_S3_ACCESS_KEY_ID = "my_key"
AWS_S3_SECRET_ACCESS_KEY = "my_key"
AWS_STORAGE_BUCKET_NAME = "my_bucket_name"
AWS_S3_CUSTOM_DOMAIN = '%s.s3.amazonaws.com' % AWS_STORAGE... | 3 | 1,261 |
how do you increment a variable in an insert by picking the last id from another table at each row? | <p>Statement mysql / mariadb:</p>
<p><code>max(so_id) 1</code>: obviously always returns the same number incremented the first time!</p>
<pre><code>INSERT INTO sottoc
(so_idgru, so_idconto, so_id, so_code, so_name)
(SELECT cust_idgru, cust_idconto,
(SELECT max(so_id)+1
FROM sottoc
WHERE ... | 3 | 2,739 |
Passing Arguments as Ref type deduction | <p>i my settings looks like:</p>
<pre><code>class Base
{
public:
virtual void eval(const Ref< const Matrix<float,Dynamic,1>> in, Ref<Matrix<float,Dynamic,1>> out) = 0;
virtual void eval( const Ref< const Matrix<float,Dynamic,Dynamic,RowMajor>> inp, Ref<Matrix<float,D... | 3 | 1,024 |
Image not store in sqlite | <p>I made one demo which stores an Image to the database. Currently I am not getting any error but my image is not store in sqlite database.
Please see the below code and tell me where is my mistake. </p>
<p><strong>DBManager class</strong></p>
<pre><code>sqlite3 *sqlite3DatabaseObject;
sqlite3_stmt* sqlite3Statement... | 3 | 1,272 |
Adding Single Quotes Around A Scalar Variable | <p>I have a stored procedure in which I am trying to execute a @cmd variable which is a BACKUP database command. When I run the stored procedure (which is in a job through the reporting agent) I get an error with the 'C:' in my path, I believe because the path is not encased in quotes. How can I encase the @Filename va... | 3 | 1,411 |
how to update data using before route update in vuejs | <p>i'm trying to update the list of products under a categories each time i click the {{category.type}} in my browser when i'm on the category.ID routes, if i click on the category it doesn't update</p>
<p>this is the error i get each time i click a new category on the category.Id page</p>
<pre><code>vue-router.esm.js?... | 3 | 1,051 |
Javascript Array of Object: filter by multple AND conditions | <p><strong>My mocked data:</strong></p>
<pre><code>[
{
"id": 1,
"first_name": "Suzy",
"last_name": "Pinnell",
"email": "spinnell0@utexas.edu",
"gender": "Agender",
"image": "http://dummyima... | 3 | 1,354 |
AttributeError: 'member_descriptor' object has no attribute 'roles' | <p>I wrote the code but it causes this error:</p>
<p>none
Ignoring exception in command <nextcord.application_command.SlashApplicationCommand object at 0x0000016447A4AB80>:
Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\nextcord\application_command.... | 3 | 1,103 |
Express server with passport-twitchtv can't get the login to work from my angularjs client | <p>I'm absolutely certain that I am missing something fundamental here but I am lost as to what to try next.</p>
<p>I have built an express application using passport-twitchtv based on the sample application here: <a href="https://github.com/johnkernke/passport-twitchtv/tree/master/examples/login" rel="nofollow">https... | 3 | 1,757 |
Not sure What I am missing? Getting data null | <p>I am trying to write data from website to excel , But in my write data method , I am getting 10 null values instead of actual values. </p>
<p>Code is here :</p>
<pre><code>import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.hssf.us... | 3 | 1,490 |
Android Studio: Parsing Multiple Nested JSON arrays | <p>I am working on a project that parses JSON data from the Google Civic API and displays it to the user. First, the data will be displayed in a recycler view, showing the office name, candidate photo, candidate name and candidate party for each person participating in the election. According to the JSON response, the ... | 3 | 8,985 |
Tic Tac Toe using Binary Search Tree(C) | <p>I have implemented Tic Tac Toe using binary search tree in C.But,unfortunately it is not running.I am encountering a run time error like the </p>
<blockquote>
<p><strong>.exe file stopped working</strong>.</p>
</blockquote>
<p>On the other hand the code successfully compiled.
It would be very grateful if somebod... | 3 | 3,870 |
Unknown column in where clause? | <p>My code:</p>
<pre><code>drop table if exists HSstudents;
create table HSstudents
(
HSsID int,
vNAAM text,
aNAAM text,
LT int,
GM float
);
insert into HSstudents values (1, 'Thomas', 'Jansen', 18, 7.0);
insert into HSstudents values (2, 'Jesse', 'Bakker', 19, 6.5);
insert into HSstude... | 3 | 1,131 |
Exploding Entire JSON File in PySpark | <p>I am trying to normalize (perhaps not the precise term) a nested JSON object in PySpark. The actual data I care about is under <code>articles</code>. The schema is: </p>
<pre><code>df = spark.read.json(filepath)
df.printSchema()
root
|-- articles: array (nullable = true)
| |-- element: struct (containsNull = ... | 3 | 5,192 |
How to perform complex query on aggregated fields in ElasticSearch | <p>I am trying to figure out how to perform a complex query in elastic search, let say I have the following table of data:</p>
<p><a href="https://i.stack.imgur.com/7j9qn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7j9qn.png" alt="enter image description here" /></a></p>
<p>Which I got from the f... | 3 | 2,137 |
webrtc native API 'vectorDrawable' & 'Task' error when sync build.grandle | <p>First at all: I copy and paste these question from my 'off topic' post into android enthusiast. Someone suggest me to ask here for these.</p>
<p>I try to install on my lollipop device AppRTCMobile example containing on official repo.</p>
<p>i find a first little error on grandle.build file (not closing
"}").Actu... | 3 | 2,005 |
OWL Ontology: how to write a complement class definition? | <p>The reasoner fails to classify classes under a class A that is defined as a complement of another class B.</p>
<p>I have created a minimal OWL ontology example (based on the famous pizza example) in protege 5 to illustrate this problem.</p>
<p>There are two pizza classes: Americana and Soho, the former with meat t... | 3 | 2,311 |
Capture all live HTTP header data | <p>I'm not seeing that this is possible using Requests module, but maybe I'm missing something...</p>
<p>I need to be able to capture all the live HTTP header data that, for example, a Firefox plugin such as the creatively named <a href="http://livehttpheaders.mozdev.org/" rel="nofollow">Live HTTP Headers plugin</a></... | 3 | 1,542 |
Google App Engine Cannot seek video html5 | <p>I served video using <code>blobstoreService.serve(blobKey, response);</code>
<br>
On localhost, video can be seeked. But there is execption throw</p>
<pre><code>WARNING: IOException thrown while closing Closeable.
org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:787)
at org... | 3 | 1,596 |
Zend Framework 1.12 - Plugin by name 'Paginationcontrol' was not found in the registry | <p>I have got error messages when i m load view all student controller </p>
<pre><code>An error occurred
Application error
Exception information:
</code></pre>
<p>Message: Plugin by name 'Paginationcontrol' was not found in the registry; used paths: Admin_View_Helper_: /home/aiengine/public_html/zend/psc_app_final_4/... | 3 | 5,110 |
Having trouble with the gcc -I flag | <p>I'm sure this is something embarrassingly simple but I can't get gcc or clang to use a custom include directory.
I'm using Linux Mint. The project lives in a directory called <code>morg</code>.</p>
<p>This is the mind blowing code I have at <code>morg/src/main.c</code></p>
<pre class="lang-c prettyprint-override"><c... | 3 | 1,942 |
Dockerfile cannot run a container using "docker-compose-up --build" command | <p>Dockerfile cannot run a container using "docker-compose-up --build" command</p>
<p>When I run Dockerfile using the "docker-compose up --build" command, the file not found is output, and the container is not running.</p>
<p>Dockerfile, docker-compose.yaml, directory and result is below.</p>
<p>Doc... | 3 | 4,638 |
INDEX / MATCH / VLOOKUP Assistance | <p>The below table is the first 29 rows in an XLSX I'm working on, which basically aims to calculate the costs of exported call data.</p>
<p>The data in the table below is the result of population from a PowerShell script, which combines Rate Data from a CSV (to calculate call charges) with Call Data from the customer'... | 3 | 3,830 |
Job build- failed-Defining Jenkins pipeline | <p>As a beginner to Jenkins pipeline. I'm defining a simple Jenkins pipeline(Declarative syntax) through classic UI but when I run the pipeline it show an error.don't know what went wrong and couldn't find any helpful answer on google as yet.</p>
<blockquote>
<blockquote>
<p><strong>This is my project git hub pr... | 3 | 4,260 |
Ionic 4 - Keep tabs visible in my whole application | <p>I have an application with 3 tabs (Home, About, Contact).
I have a menu that contains an item link to "News", this page displays a list of news. The Home page displays the list of news also.</p>
<p>I want the tabs to be visible in the News and News Details section.</p>
<p>If I navigate to news detail from the home... | 3 | 2,089 |
Image registration and focus stacking | <p><strong>Background:</strong>
I am looking to align images for a focus stacking application using a smartphone. Links to images:</p>
<p>First in stack: <a href="https://i.stack.imgur.com/QEFjJ.jpg" rel="nofollow noreferrer">1</a>, Last in stack: <a href="https://i.stack.imgur.com/nZJbo.jpg" rel="nofollow noreferrer... | 3 | 1,919 |
How to remove certain xticks or yticks in a a matplotlib subplot? | <p>I am plotting multiple plots using subplot.</p>
<p><a href="https://i.stack.imgur.com/BDskJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BDskJ.png" alt="enter image description here"></a></p>
<p>I would like to remove all yticks except for those on the left, and all xticks except for those on... | 3 | 2,202 |
Subclassed fragment onCreateView | <p>for the sake of not duplicating the code I've decided in my program to create a <code>BaseFragment</code> (which extends <code>Fragment</code>) to hold for some boilerplate data and provide proper handling of pause/resume, as well as the <code>newInstance(String myPram)</code> method. Long story short: The role of t... | 3 | 1,620 |
Extra argument in call error Swift | <p>I'm getting the error "extra argument in call" from my httpGet(request) and I'm not sure why. I've looked at several stack exchange solutions and it seems like I'm doing everything that the solutions are suggesting. <a href="https://stackoverflow.com/questions/32809294/extra-argument-error-in-call-compilation-error-... | 3 | 1,032 |
C#: How do I stop a timer in the middle of a tick | <p>I set a timer in form1(windows form) to tick every second</p>
<pre><code>private void Form1_Load(object sender, EventArgs e)
{
Timer.Interval = 1000;
Timer.Start;
}
</code></pre>
<p>In the timer.tick event, I set it to stop after a certain number of ticks.</p>
<pre><code> private void Timer_Ti... | 3 | 1,913 |
On hovering first child component is extending downward while other component are extending upward | <p>Here is my code:</p>
<p>HTML</p>
<pre><code><!-- .our-service-section -->
<section class="our-service-section" style="background-image: url('assets/img/our-service-bg.png');">
<div class="container-fluid">
<div class="row">... | 3 | 4,284 |
Conversion of row elements in a column in pandas dataframe | <p>Problem :</p>
<pre><code> df['bua']
0 Built-up Area 97 Sq Yards
1 Built-up Area 85 Sq Yards
2 Built-up Area 80 Sq Yards
3 Built-up Area 100... | 3 | 1,251 |
How can I put UTF8 value to web.xml? | <p>I'm thinking to put some UTF-8 words into <code>web.xml</code> as <code>env-entry-value</code>, but somehow that will cause my war become not deployable to my server. A case of my setting that causes deployment failure look like below.</p>
<pre><code><env-entry>
<description>Msg text</description&... | 3 | 1,048 |
How do you create a $batch Microsoft Graph API request using a PowerApps Custom Connector? | <p><strong>Overview:</strong></p>
<p>I want to make a batch request in PowerApps using a Custom Connector to Graph API.</p>
<p>In my PowerApp, I made a variable that contains valid JSON.</p>
<p>I made a Custom Connector with an action that makes the batch request. In the Test tab, I can paste the JSON from my PowerApps... | 3 | 1,034 |
Using Tabs on Website, how to make fields required on active tab? | <p>Currently I am building a website. On this particular page an Admin can edit the users of the system. I have this page layout setup into tabs. I want to make it to where if you are on the active tab before the submit button is pressed it makes sure all those fields on that tab are filled in.</p>
<p>I can not set th... | 3 | 1,950 |
Boostrap BS3 navbar Clic Dropdown-Submenu | <p>I'm using <code>Bootstrap BS3</code> in order to build my <code>Django website</code>. I'm writing <code>dropdown-submenu</code> which works on <a href="http://www.bootply.com/nZaxpxfiXz#" rel="nofollow noreferrer">http://www.bootply.com/nZaxpxfiXz#</a></p>
<p><a href="https://i.stack.imgur.com/85uTq.png" rel="nofo... | 3 | 3,716 |
Django slow query performance improve | <p>I'm using Django with Postgres and have the following tables:</p>
<pre><code>class Person(models.Model):
person_id=models.IntegerField(primary_key=True)
name = models.CharField(max_length=500, blank=True)
description = models.ManyToManyField('descriptions.Description', through='DescriptionPersonUser')
... | 3 | 2,361 |
will_paginate can't convert Fixnum into Hash error | <p>Everything is pretty much simple:<br>
But It makes me crazy (</p>
<p>Controller: </p>
<pre><code>@p = Product.paginate(:page => 1, :per_page => 10)
</code></pre>
<p>view:</p>
<pre><code><%= will_paginate @p %>
</code></pre>
<p>error: </p>
<pre><code>Showing d:/Sites/stockox/app/views/catalog/inde... | 3 | 4,344 |
how to predict quality of data? | <p>I'm very sorry if I'm wording this wrong in advance but I have a large dataset and I am trying to analyze it, but most of the data is not correct and need some help figuring out how to select the correct data. </p>
<p>Here's some more information to clear it up more. For example I have the following:</p>
<pre><cod... | 3 | 1,732 |
Apache Nifi - Not able to start Ni-Fi Instance | <p>Whenever I execute run-nifi command,<strong>I am not able to start my nifi instance</strong> as I am getting the java.lang.RuntimeException: java.io.EOFException </p>
<pre><code> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowService': FactoryBean threw excep... | 3 | 3,458 |
JSF 2.0 Error at startup | <p>I have a problem configuring my JSF page.
I used to use JSF in a software project, but that was some time ago. Now I need it for a private project and have a huge problem starting my JSF page.
Because it was some time ago i used it last, I decided to follow a tutorial to start. It was <a href="http://help.eclipse.o... | 3 | 1,530 |
Having a problem with the follower system, I am following myself in Django and also this error shows ValueError at /accounts/users/2/accept_follower/ | <p>Hey guys I am trying to send a follow request through the django notifications and the person at the other end will be either accepting or rejecting the request. But I have a problem that when the person at the other end accepts the request, this error is showing</p>
<pre><code>ValueError at /accounts/users/2/accept... | 3 | 1,988 |
Im am getting undefined with mapstatetoprops | <p>I am trying pass logged data from my redux actions to the front end but keep getting user.name of null or undefined. </p>
<p>This is the front end where I am simply trying to get user.name to appear so that it says Hi user.name(name of persons account).</p>
<pre><code> import React, { Component } from "react";
im... | 3 | 2,513 |
innerHTML returns different content Angular 9 | <p>When I use innerHTML some tags are added to the dom, I don't modify the string so I don't know where they come from.</p>
<pre><code>processInitialDocumentResponse(doc: Document) {
this.footnotes = doc.footnotes;
console.log(this.footnotes)
}
</code></pre>
<p>Console log result:</p>
<pre><code><p>Especial par... | 3 | 2,659 |
Android String.format() Crash with no reason | <p>I am having a strange crash/error that happened without changing anything.
I am using Volley for network requests and i have a separate class with my URL end points.</p>
<p>I am using <code>MY_REQUEST_URL + myparam=%s</code> as the link and in the volley request i am using <code>String.format(EndPoints.MY_REQUEST_... | 3 | 1,483 |
Resolving `vertical-align: middle` for images + radio with this self contained example | <p>This question has been asked <a href="https://stackoverflow.com/q/28180543/704972">many</a> <a href="https://stackoverflow.com/q/1832016/704972">times</a> <a href="https://stackoverflow.com/q/13509883/704972">before</a>.</p>
<p>The common answer is that it's sufficient to style with <code>vertical-align: middle</co... | 3 | 1,116 |
JSR-380 - Bean Validation of Nested Object and FieldError ObjectName | <p>I have a very precise request. Imagine I have the following basic model :</p>
<pre><code>@ValidStudent
public class Student {
private String firstName;
private String gender;
private List<@ValidCourse Course> courses;
}
public class Course {
private String title;
private LocalDate date;
... | 3 | 1,332 |
Facebook app at localhost | <p>I tried to implement facebook login in local,i used below code in my website</p>
<pre><code><html>
<head></head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
status : true, // check login ... | 3 | 1,113 |
Simple camera animation has lots of flickering | <p>I am new to 3D and animations in WPF. I have been trying to create a very simple scene made of a floor and 2 cubes (well, 3D rectangles, rectangular prisms, whatever that is called). This scene has a perspective camera which I am trying to animate (I basically want it to fly around the scene).</p>
<p>The code is ve... | 3 | 1,230 |
Simple-html-dom list ordering nested without class | <p>i am literally stuck with getting these ul/li elements in one row.
Only first li has class, others are in another ul but without class or id. i tried multiple searches and loops, but can't get it right.
Below results returns too many rows where elements don't fit together.</p>
<p>Can someone help me?</p>
<p>idealy t... | 3 | 1,680 |
Is there a better way to get the product of values from all column combinations from two dataframes? | <p>I have two dataframes :</p>
<pre><code> (A0, B0, C0) (A1, B1, C1) (A2, B2, C2)
Item0 6 6 4
Item1 2 3 9
(D0, E0) (D1, E1)
Item0 3 3
Item1 7 5
</code></pre>
<p>I would like to get the product betwee... | 3 | 1,098 |
Using API Values as props to change State in React | <p>I'm using API Values primaryKey to change data represented on Click, but the function doesnt seem to work. and No Errors are thrown. I'm unable to find whats going wrong here.</p>
<p>What I'm trying to do here is - By default the table outputs multiple stocks with multiple columns for each , when clicked on button... | 3 | 1,476 |
PlaySound() keeps playing my .wav after WM_DESTROY and a DrawText Issue | <p>I am experimenting on Windows 7 64 bit OS with win32 API.When i run my Program on debug mode my window appears but i have 2 bugs. Firt things first here is my api code modified from Charles Petzold book Ch3:</p>
<pre><code>#include<Windows.h>
#include<mmsystem.h>
LRESULT CALLBACK HandleMyWindowsCla... | 3 | 2,254 |
Sending response of multiple api calls from action to view file in react js with redux | <p>I am beginner to React JS and Redux and have got stuck in a problem. I have to call a login api and if that return success I need to call another api using axios to get user details. Following is my function in action doing it:</p>
<pre><code> export const login = (username, password) => (dispatch) => {
retu... | 3 | 1,771 |
how to use spannable vertical axes for bar chart in VEGA(only) not vegalite? pls copy below code in vega editor | <p>while working on VEGA charts in my recent react project, I m facing difficulty in adding scrollbar/spanning to the charts!</p>
<ul>
<li>pls note its VEGA and not VEGA-LITE.</li>
<li>need to act on vertical axis only</li>
<li>change the axis if possible</li>
<li>clearly it should be scrollable for larger data entry t... | 3 | 2,895 |
Neo4j : Performance issue | <p>We are using Neo4j 3.4 Enterprise Edition as our application’s data store. It is running on EC2 instance with an 8 core CPU and 16GB RAM.</p>
<p>We have uploaded these datasets :</p>
<ol>
<li>Sales: Consists of facts like Dollars, Discount, Volume and Price per Volume etc., visualized against dimensions Brand, Wee... | 3 | 1,122 |
Having trouble converting external Windows Crypto API calls from C# to F# | <p>I've got some working C# code to work with some Windows API calls (based on <a href="https://github.com/brianary/scripts/blob/master/Get-CertificatePath.ps1#L64" rel="nofollow noreferrer" title="Gets the physical path on disk of a certificate's private key.">my Get-CertificatePath.ps1 PowerShell script</a>), but... | 3 | 2,856 |
Groupby and random sample based on a column value | <p>I have a dataframe which I want to groupby by <code>grp1, grp2</code> columns and then make random samples from every group based on the column <code>how_many</code>.</p>
<p>This is my sample data</p>
<pre class="lang-py prettyprint-override"><code> grp1 grp2 how_many val
0 a 1 2 2993
1 ... | 3 | 1,026 |
AssetManager textures giving black rectangles | <p>I got to that point when I have to replace all <code>new Sprite(texture)</code> with <code>new Sprite(manager.get(imgPath,Texture.class))</code> in order to optimize sprites creating and do all the loading before starting the game.</p>
<p>The problem is that when I use a common AssetManager to load all textures I g... | 3 | 1,230 |
loading dataset data to DropDownList c# | <p>i have this dropdownlist in my popup function that does not load the data i want, i have breakpointed and confirmed that i get the data i want, but for some reason, the dropdownlist is still empty.</p>
<p>C#:</p>
<pre><code>protected void Page_PreRender(object sender, EventArgs e)
{
var nodes = _administration... | 3 | 3,787 |
descendant constraint conditional on top-level ancestor in XML Schema 1.0 | <p>I would like to have a descendant element conditional on the top-level ancestor type. Is it possible to model that relationship in xml schema 1.0? If so, how?</p>
<p>Below is my desired structure/validation behavior:</p>
<pre><code><a1>
<b>
<c>
<d/> -- allowed if ancestor is a1
... | 3 | 1,147 |
Fix offset points to grid in MATLAB | <p>I have points that are mostly on a 3d grid. The spacing is known in all cases (spacing = 0.2,0.2,0.25) but the start/end coordinates can be different in each case.</p>
<p>There are a few points that are slightly offset from the grid.</p>
<p>e.g. an offset point in the z direction
1,1,0.75; 1,1,1; <strong>1,1,1.1</... | 3 | 1,087 |
Why a Private Key of Certificate needed at Client Application While Consuming a WCF Service? | <p><strong>Scenario</strong> </p>
<p><strong>X.509 Certificate:</strong> a certificate is provided by the organization for server-client authentication. That certificate serves both purpose server and client authentication.</p>
<p><strong>WCF Service:</strong> a WCF service is hosted in IIS up and running on a dev se... | 3 | 2,787 |
Next Palindrome SPOJ (PALIN) | <p>While solving the NEXT PALINDROME question on SPOJ. I have considered for every possible case and wrote the code. But it is showing WA(Wrong Answer). I am not getting my mistake or any possible case where my code won't work.
Below is my code.</p>
<p>Please help me out.</p>
<p>Thank You.</p>
<pre><code>#include<... | 3 | 1,656 |
Why does Socket.io emit empty events at random intervals? | <p><a href="https://i.stack.imgur.com/eR6o5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eR6o5.png" alt="enter image description here"></a></p>
<p>I have an application that runs on Nodejs and Socket.io</p>
<p>The events 2, 3 seen in the image are empty events that socket.io server keeps emittin... | 3 | 1,470 |
How to update dataframe with bokeh callback? | <p>I’m trying to recalculate the distance between two coordinates, one is given through 2 TextInput classes and the other is in a dataframe. I want to resolve this issue in order to select the data based on proximity conditions, maybe select options, but none of that can work unless the distance is dynamically updated ... | 3 | 1,197 |
PyTorch: Sizes of tensors must match on 2 input neural network | <p>I am attempting to recreate a 2 input neural network from this article: <a href="https://towardsdatascience.com/moving-from-keras-to-pytorch-f0d4fff4ce79" rel="nofollow noreferrer">https://towardsdatascience.com/moving-from-keras-to-pytorch-f0d4fff4ce79</a> <br/></p>
<p>I have copied the network described in the pos... | 3 | 1,778 |
Testing Spring Controller POST method after adding Spring Security on Kotlin | <p>I'm developing a Spring Boot application with Kotlin.
I recently added Spring Security as a dependency and now I'm not able to test my Controllers anymore.</p>
<p>This is my controller:</p>
<pre><code>@RestController
@RequestMapping("/users", produces = [MediaType.APPLICATION_JSON_UTF8_VALUE])
class UserController... | 3 | 1,395 |
c++ matrix overloading not working | <p>Cannot figure out what's happening.
Why is operator overloading not working in this code ?</p>
<pre><code>class matrix
{
protected:
int matrix1[5][5],matrix2[5][5],resultmatrix[5][5];
int m,n,p,q,i,j,k,l;
public: matrix()
{
}
void getdata();
//double determinat;
... | 3 | 1,689 |
Woo-Commerce Product Query with Multiple Arguments | <p>I am trying to Query Woo-Commerce products based on the following </p>
<p>Featured
Popular
Promotional
Free</p>
<p>I was working to show them in isotop so I have to get all products and give specifiq tag based on my query to make filter. I was confused if I can make 4 Query as I have 4 different arguments / param... | 3 | 5,982 |
Using sidebarLayout with fillPage | <p>I tried to use <code>sidebarLayout</code> with <code>fillPage</code> in order to fit the plot to full window-size. Below is my attempt but it seems that not working. How could I correct my code to make it work? </p>
<p>Thank you in advance. </p>
<pre><code>library(plotly)
if (interactive()) {
ui <- fillPage(... | 3 | 1,025 |
combining 2 queries into 1 so output is on single row | <p>I'm trying to combine the output of both the below queries so they output on one row any help you can provide will be very much appreciated.</p>
<p>Query 1:</p>
<pre><code>select FLT_NUM, SCH_DEP_DATE, sum (GROSS_WGT) as UWS_GROSS_WGT, sum (NETT_WGT) + SUM(BULK_WGT) as UWS_NETT_WGT
from
(select distinct
... | 3 | 1,155 |
Accessing three static arrays is quicker than one static array containing 3x data? | <p>I have 700 items and I loop through the 700 items for each I obtain the item' three attributes and perform some basic calculations. I have implemented this using two techniques:</p>
<p>1) Three 700-element arrays, one array for each of the three attributes. So:</p>
<pre><code> item0.a = array1[0]
item0.b = array2... | 3 | 2,882 |
search within an array with a condition | <p>I have two array I'm trying to compare at many levels. Both have the same structure with 3 "columns.</p>
<p>The first column contains the polygon's ID, the second a area type, and the third, the percentage of each area type for a polygone.</p>
<p>So, for many rows, it will compare, for example, ID : 1 Type : aaa %... | 3 | 1,142 |
What's possibly the reason that ajax success event is not being invoke in IE? | <p>I came along with a problem in IE, AJAX success event is not being invoke after link is successfully tweeted in twitter. I have this code:</p>
<pre><code>jQuery(document).ready(function () {
jQuery('#tbookmarklet').twitterbutton({
url: myshareUrl,
title: myTitle,
layout: 'none',
ontweet:function... | 3 | 1,058 |
Filling a PrimeNG table with an array | <p>I'm new to Angular and PrimeNG and currently I'm stuck trying to fill a table. There are not errors in the console so probably I'm just missing stuff, but I can't figure out what. Here is the code:</p>
<p>In the component.ts</p>
<pre><code>...
columns: Column[] = [];
first = 0;
rows = 20;
tasks = [
{
id: ... | 3 | 1,763 |
Templated operator overload does not compile if OpenCV headers are included | <p>I'm trying to overload the left shift operator <code><<</code> for a custom class, using a template and <code>std::enable_if</code> to use a single overload declaration & definition for both console / print output and file writing:</p>
<p><code>Foo.hpp</code>:</p>
<pre><code>#include <iostream>
#incl... | 3 | 1,064 |
Calculating Average and median on Monthly data and convert in htmltable R | <p>I have a DF:</p>
<pre><code>my_data <- read.table(text =
"ID Date1 T1 Date2 Val1
A-1 '2018-01-10 15:05:24' A 2018-01-15 10
A-2 '2018-01-05 14:15:22' B 2018-01-14 12
A... | 3 | 2,409 |
How to add merge fields to a MailChimp List using the 3.0 API and the Subscribe call | <p>I have been trying to get a form to post the Name, Job Title, Company and email to a List on MailChimp. I have seen and attempted some solutions I have seen in the Github Repository and SO but none have worked as intended. The form pushes the email to the list just not the other 3 fields. I am also not very familiar... | 3 | 1,082 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.