title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to draw a line in arkit based on CLLocation in iOS Swift? | <p>I am trying to use <code>ARKit</code> for outdoor navigation. I have used <code>mapbox</code> for AR navigation and used <code>mapboxarkit</code> and <code>mapboxDirection</code> cocoapods.</p>
<p>The nodes are shown as paths. I am able to show paths as dotted shperes or planes but am not able show them as lines. H... | 2 | 1,388 |
Why does Activemq with ZooKeeper fail with NullPointerException upon stopping LevelDB service? | <p>I have a ZooKeeper cluster with 3 instances and Apache ActiveMQ 5.9.1 cluster. The ZooKeeper cluster starts fine, but ActiveMQ gives the following NullPointerException:</p>
<pre><code> WARN | SASL configuration failed: javax.security.auth.login.LoginException: No
JAAS configuration section named 'Client' was found ... | 2 | 1,209 |
show a div and go to the anchor | <p><strong>Hello</strong></p>
<p>Is there any way to let this code work!
I am trying to show the DIV (slidingDiv) and go to the selected ANCHOR (#anchor-01 + #anchor-02 + #anchor-03)...
This code let me only go to the first line in the DIV.
So please, how can jump/scrool to the exact anchor?
THanks</p>
<pre><code><... | 2 | 1,205 |
JSON and jQuery Live Search | <p>I've been stuck on this issue for days with my jQuery/JSON based live search I'm building for an online store. Using <a href="http://www.tipue.com/drop/" rel="nofollow">Tipue Drop</a> open source I am able to get results when using their test JSON but cannot seem to get it to read mine. I have a JSON file <a href="h... | 2 | 2,894 |
Set the appropriate language_in option | <p>I have been using com.samaxes.maven minify maven plugin of version 1.7 to minify my js files. when i m trying to build my app. I am getting the error- ERROR: Parse Error. IE8(and below) will parse trailing commas in array and object literals incorrectly. I f you are targeting newer versions of JS, set the appropriat... | 2 | 1,950 |
How to connect server by quickfix using private key | <p>Im connecting to server using FIX protocol 4.4.
Previously i used username and password for authentication.</p>
<p>Below is my configuration file</p>
<blockquote>
<p>[DEFAULT]<br> ConnectionType=initiator<br> HeartBtInt=30<br>
ReconnectInterval=30<br> ResetOnLogout=Y<br> ResetOnDisconnect=Y<br>
FileStorePath... | 2 | 1,279 |
Cannot connect Android device to database using XAMPP | <p>I'm trying to connect an android device to a database using XAMPP</p>
<p>MySQL and Apache is working properly</p>
<p>This is <strong>UpdateDatabase.java</strong></p>
<pre><code>public class UpdateDatabase extends ListActivity {
private ProgressDialog pDialog;
//192.168.1.254 - IP of the server(laptop)
private s... | 2 | 3,616 |
Unable to get correct image when converting SVG to PNG using Imagick | <p>I've got SVG HTML code generated by <code>svg.js</code> library. Using PHP's <code>Imagick</code> I want to convert SVG HTML to PNG.</p>
<p>PHP:</p>
<pre><code>$svg = '<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg id="SvgjsSvg2552" xmlns="http://www.w3.org/2000/svg" version="1.1" width="1500"... | 2 | 11,217 |
java.net.ConnectException:Failed to connect to /10.0.2.2:443 | <p>I am working on an android app that requires user authentication. I am using localhost phpadmin for server and database connexion. The app so far has 1 login activity that imports a php url to connect to localhost. If everything works fine the app is supposed to show an alertDialog saying that login was successful. ... | 2 | 2,546 |
How to compare two NSMutableArrays? | <p>I'm new to iOS development and having trouble comparing two <code>NSMutableArray</code>. </p>
<p>One of them (<code>appDelegate.array</code> in code) contains data coming from a database and another one (<code>dataArray</code> in code) contains data coming from a server response. </p>
<p>Now I want compare each el... | 2 | 2,586 |
"Access is denied due to invalid credentials" REST API error. How to solve? | <p>I followed the documentation <a href="https://www.ibm.com/watson/developercloud/personality-insights/api/v3/?java#introduction" rel="nofollow noreferrer">here</a>: and <a href="https://console.bluemix.net/services/personality_insights/b6ccc311-635d-4f19-ae1d-7f6ba9312b29?paneId=gettingStarted&ace_config=%7B%22re... | 2 | 1,532 |
How can I show three data in one chart? (flutter/fl_chart) | <pre><code>class BottomChart extends StatefulWidget {
final List<String> number;
const BottomChart({this.number});
@override
_BottomChartState createState() => _BottomChartState();
}
class _BottomChartState extends State<BottomChart> {
List<Color> gradientColors = [
const Color(0xf... | 2 | 1,813 |
isSelected method always returns false | <p>I'm using isSelected for a checkbox.
The debugging shows that the method returns false nevermind if it's selected or not.</p>
<p>The part from the xml :</p>
<pre><code> <CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
... | 2 | 1,155 |
STRING cannot be resolved or is not a field | <p><strong>ERROR :</strong>
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
STRING cannot be resolved or is not a field,NUMERIC cannot be resolved or is not a field,BOOLEAN cannot be resolved or is not a field,BLANK cannot be resolved or is not a field. I am using below code.</p>
<pre><co... | 2 | 1,387 |
PyQt load function on startup (qml loader) | <p>Hi i have the following problem :</p>
<p>this is my working code </p>
<pre><code>import sys
from PyQt5.QtCore import QObject, QUrl, Qt
from PyQt5.QtWidgets import QApplication
from PyQt5.QtQml import QQmlApplicationEngine
import os
import vlc
from time import sleep
# define VLC instance
instance = vlc.Instance()
... | 2 | 2,121 |
Parse.com Segue from Tableview Cell to Detail Image View | <p>I am trying to get a table view loaded with data from a Parse backend to push a detail view with an image (PFFile) associated with the data in the table. I can get the data to load into the table fine but when segueing to new view controller the app crashes. Here is code from my PFQueryTableViewController implementa... | 2 | 1,880 |
Fixed height inside container-fluid and row Bootstrap Grid | <p>I only use bootstrap gris system on my page.
I'm trying to fix the height of an element inside a countainer and in a row.</p>
<pre><code><div class="container-fluid firstcontainer">
<div class="row">
<header scroll ng-class="document.body.scrollTop > 100 ? 'fullNav' : ''" class="header... | 2 | 1,075 |
Glide.js api issue | <p>I am creating a slider using Glide.js plugin. I did everything like is said in documentation. In html i have:</p>
<pre><code><div class="slider" id="paintSlider">
<ul class="slides">
<li class="slide paint">
<span><img src="img/glowna_tlo.jp... | 2 | 1,122 |
Push Notification not working in iOS 8 using Parse.com | <p>i have a code that works in iOS 7, i receive all the Push Notifications.</p>
<p>When implementing the new iOS 8 Push Notification using Parse.com, i can't make it work.</p>
<p>Here is the code:</p>
<pre><code> - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launch... | 2 | 1,506 |
Flask Heroku app can't connect to Redis Queue | <p>My flask app works perfectly locally but when I deploy it to Heroku, it can't connect to the Redis Queue. </p>
<p>THis is the exception I get:</p>
<pre><code>2015-04-06T09:01:45.586197+00:00 app[web.1]: Traceback (most recent call last):
2015-04-06T09:01:45.586189+00:00 app[web.1]: [2015-04-06 09:01:45 +0000] [9] ... | 2 | 2,889 |
File upload path not working in <a href="path" target="_blank"> element | <p>I am trying to display a file using the a href="block".</p>
<p>I am using Spring MVC to upload a file.</p>
<p>Following is my upload Code for HTML :-</p>
<pre><code> <form method="POST" action ="uploadDocument.htm" enctype="multipart/form-data">
Please select your resume to upload : (.pdf, .doc , .docx)&... | 2 | 1,102 |
NSURLConnection and JSON Data | <p>I am stuck with something crazy. I used <code>ASIHTTPRequest</code> to receive my data from a web service and everything worked fine. I switched to using a <code>NSURLConnection</code> and I am receiving the same data and parsing it the same way but my code won't recognize the data with the <code>NSURLConnection</co... | 2 | 1,480 |
ClassNotFoundException: ObjectServiceDescriptor in OSGi | <p>I am trying to develop a simple java program that calls DFS web services and I get this runtime error:</p>
<pre><code>Caused by: com.emc.documentum.fs.rt.impl.servicemodel.ServiceModelException: Service descriptor class not found: "java.lang.ClassNotFoundException: com.emc.documentum.fs.services.core.client.ObjectS... | 2 | 12,857 |
How do I stop my ObjectDataSource from binding twice? | <p>This has been covered a couple of times, without a suitable answer:</p>
<ol>
<li><a href="https://stackoverflow.com/questions/2641156/objectdatasource-firing-twice-or-on-its-own">ObjectDataSource firing twice, or on its own</a></li>
<li><a href="https://stackoverflow.com/questions/651293/objectdatasource-created-tw... | 2 | 1,230 |
Android (Xamarin) gridlayout in linearlayout | <p>I'm working on an android application where the main menu looks something like this:</p>
<p><a href="https://i.stack.imgur.com/WZC2v.png" rel="nofollow noreferrer">Main menu</a></p>
<p>To do this, I'm using a linearlayout to seperate the screen 40/60 - accomplished using layout_weight for the height.</p>
<p>Then,... | 2 | 1,432 |
Recording and playing, but the sound is not coming? | <pre><code>package com.Project_recording;
import java.io.File;
import java.io.IOException;
import android.app.Activity;
import android.media.MediaPlayer;
import android.media.MediaRecorder;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.view.... | 2 | 1,995 |
Can not execute stored procedure with nHibernate | <p>Firstly, I'm sorry for asking this question AGAIN when there are several resources that (theoretically)
explain it. I've listed the references I used at the bottom of this question, hopefully they will
help someone else if nothing else.</p>
<p>I am trying to execute a simple stored proc on an oracle 11 database. ... | 2 | 1,759 |
how send array to controller use ajax? | <p>I have a datatable with checkboxes, and a validation button that allows filling the table ITEMS [] by an array, I want to send this array to my controller with ajax. please, help.</p>
<p>Here is my <strong>datatable</strong>:</p>
<pre><code> <div id='form2'>
<h3>form group 2</h3>
<h4&g... | 2 | 1,855 |
Implementing LoG blob detector in python and openCV | <p>I'm trying to implement an LoG blob detector according to the algortihm in wikipedia:
<a href="https://en.wikipedia.org/wiki/Blob_detection#The_Laplacian_of_Gaussian" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Blob_detection#The_Laplacian_of_Gaussian</a></p>
<p>I'm using Python and openCV and I'm using... | 2 | 1,971 |
Pass Edit Text Content To RecyclerView in Next Activity | <p>I am passing the <code>EditText</code> values from one activity to another Activity that contains <code>RecyclerView</code>. But i got a problem which remains Unsolvable for me.</p>
<p>My <code>main.xml</code> contains <code>Edit text</code> field and add <code>Button</code>. On click of add <code>Button</code> the... | 2 | 2,557 |
pecl install gnupg, could not extract the package.xml | <p>I am having problems installing a package with pecl. My system runs Gentoo Linux. It does not accept the package that I am trying to install.</p>
<pre><code># pecl install gnupg
downloading gnupg-1.3.3.tgz ...
Starting to download gnupg-1.3.3.tgz (19,141 bytes)
......done: 19,141 bytes
could not extract the package... | 2 | 1,119 |
Keeping date intervals from overlapping and consistent with trigger in Oracle +11g | <p>Assume that I have the following:</p>
<pre><code> CREATE TABLE test (
id NUMBER(10)
, valid_from DATE
, valid_to DATE,
PRIMARY KEY (id, valid_from)
);
INSERT INTO test (id, valid_from) VALUES (1, '01/JAN/1900');
INSERT INTO test (id, valid_from) VALUES (1, '01/JAN/1901');
INSERT ... | 2 | 5,201 |
T-SQL query to flag repeat records | <p>I have a table that will have 500,000+ records.
Each record has a LineNumber field which is not unique and not part of the primary key.
Each record has a CreatedOn field.</p>
<p>I need to update all 500,000+ records to identify repeat records.</p>
<p>A repeat records is defined by a record that has the same LineNu... | 2 | 2,235 |
Cannot redeclare class error with CodeCoverage and Composer | <p>I'm getting an error with PHPUnit Code_Coverage when using Composer's autoload.php as the bootstrap file. I've created my own boostrap.php file and simply include each file individually and everything works fine. Have I stumbled onto a Composer bug, or am I making an error somewhere?</p>
<p>// Edit: I'm using the n... | 2 | 1,472 |
Navigation Drawer breaking layout | <p>Trying to add a Navigation Drawer which is breaking my layout. The main layout has some buttons, an Edit Text box and a Listview. The drawer also has a list view. When I add the drawer, the Listview on the main layout takes on a grey colour and takes over the entire screen. The drawer however, works as expected. </p... | 2 | 2,460 |
Unity mid air movement with velocitychange | <p>I have made a script for player movement in a 3D game in Unity.
I like how the movement works, but when I jump while moving, the player keeps moving in that direction at the same speed till it falls to the ground, which is the expected behavior for this script.
But I want to be able to move the player in the air sli... | 2 | 1,080 |
git fsck: duplicateEntries: contains duplicate file entries - cannot push to gitlab | <p>We have a big git repository, which I want to push to a self-hosted gitlab instance.</p>
<p>The problem is that the gitlab remote does not let me push my repo:</p>
<pre><code>git push --mirror https://mygitlab/xy/myrepo.git
</code></pre>
<p>This will give me this error:</p>
<pre><code>Enumerating objects: 138356... | 2 | 1,228 |
Set Grid Columns Width=Auto and MaxWidth | <p>is it possible to set a <code>Gridcolumn</code> that the behavior is like this. The <code>Width</code> is Auto but the Max is 140. In this Column there are many Labels and depending on the Userlanguage the Content changes. So I want to set a maximum Width. Like this it doesn't work:</p>
<pre><code><Grid.ColumnDe... | 2 | 1,288 |
Align tables to be centered on mobile | <p>How can I align these tables to centered when it hits mobile?</p>
<p>I need to do this without media queries to support the Gmail mobile app.</p>
<p>The HTML code is from an actionrocket codepen, but i don't know what will make the tables centered on mobile with breaking the desktop view</p>
<p><a href="http://co... | 2 | 8,463 |
TextView not wrapping to multiline | <p>I have a <code>TextView</code> inside a <code>LinearLayout</code> which displays only a part of its text without wrapping to a newline and cannot understand why. It doesn't even show the ellipsis somewhere.</p>
<p>The <code>TextView</code></p>
<pre><code> <TextView
android:layout_width="match_parent"... | 2 | 1,032 |
Allowed memory size of 134217728 bytes exhausted (tried to allocate 4294967296 bytes) Looked at answer? Still not working | <p>Recently I've been trying to code a simplistic login system for my website, with a lot of errors I have been facing it seems to be going back and forth in unsurety for what to do.</p>
<p>The error message that I am receiving is <code>Allowed memory size of 134217728 bytes exhausted (tried to allocate 4294967296 byt... | 2 | 1,066 |
csv row and column fetch | <p>So working on a program in Python 3.3.2. New to it all, but I've been getting through it. I have an app that I made that will take 5 inputs. 3 of those inputs are comboboxs, two are entry widgets. I have then created a button event that will save those 5 inputs into a text file, and a csv file. Opening each file eve... | 2 | 1,164 |
Why does Python crash when my PyQt window becomes inactive/is resized? | <p>While playing around with different ways to show a webcam feed (obtained using imageio/ffmpeg) in a PyQt4 window, I stumbled upon <a href="https://stackoverflow.com/a/22355028">this answer</a>. After implementing this in Python 2.7 as an <code>ImageDisplayWidget</code> class (as summarized below), everything seems t... | 2 | 1,183 |
How to Setup SFTP with Publickey and Password on Ubuntu | <p>I am having difficulty setting up "SFTP Only" login with two factor authentication of "Public Key" and "Password".</p>
<p>I am running on Ubuntu 16 and using openssh-server.</p>
<p>Regular users are able to log in successfully using a Public Key and Password. However, my "SFTP Only" users are getting errors loggin... | 2 | 2,504 |
SQLite: Difference between java/jdbc-sqlite and python/sqlite3 | <p>I'm currently working on desktop application implemented in java(7) that, among other things, manages a large number of data records in a sql-database. There are only a few tables, but they contain a large number of records. I need to do complex queries on a single table but no complex join operations.</p>
<p>So fa... | 2 | 3,694 |
How to get field name instead of foreign id in django | <p>In my django app, i have four model tables linked using foreign keys, the problem is, when i make a query for any model table, the fields that are linked through foreign keys are returned as id's instead of the name.</p>
<p>My way does not work.</p>
<p>My <strong>customers models.py</strong> file</p>
<p><em>1st mode... | 2 | 1,759 |
NoClassDefFoundError joda DateTimeFormat using aws-kinesis on hadoop cloudera | <p>I got a strange error running aws kinesis on hadoop (CDH 5.5.1).</p>
<p>I can reproduce the error with this simple class :</p>
<pre><code>import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.kinesis.AmazonKinesisClient;
import org.apache.hadoop.conf... | 2 | 3,947 |
Build Circular Percentage chart | <p>I want to build response SVG circular chart, I have succeeded up to some extent.</p>
<p>HTML</p>
<pre><code><div>
<p class="Project_Analytics_Heading text-center">
Time per Application
</p>
<svg viewBox="0 0 36 36" class="circular-chart">
... | 2 | 1,388 |
Send all the aggregations as text with Watcher (ElasticSearch) | <p>I'm configuring right now Watcher to search in the access logs and see how many error is so far and send it to a slack account.
Well, the problem that I have is because I can't know how many aggregations I will have when the query is done and in my configurations is something like "hardcoded" to send just like 5 at... | 2 | 1,603 |
Warning Message: Column 'labels' is of unsupported type function | <p>I have this list column called "labels" that i'm unlisting to get a readable data frame. Everything is working well locally but when i run this on AWS shiny server it's throwing me this error below. I can share additional code snippets but wanted to get pointers on this error first, what could this be? </p>
<p>Warn... | 2 | 1,911 |
How to to get a DataPager to switch to new ListView datasource? | <p>I have a single ListView with a DataPager that loads datasource 'A' within an UpdatePanel. Datasource 'A" is loaded on Page_Load.</p>
<pre><code>if (!IsPostBack)
{
GetBookmarks(0);
}
</code></pre>
<p>An OnClick event outside the ListView can change the ListView datasource to 'B'; and toggle between 'A' and 'B'... | 2 | 3,742 |
Tkinter Image Viewer Method | <p>I am an atmospheric scientist, struggling through python (2.7 using PIL and Tkinter) in an attempt to create a simple image viewer that will display some of the forecast products we eventually produce. I would like to implement a start, stop, forward, backward, and loop button. The loop button and its associated cal... | 2 | 1,156 |
Prim's Algorithm Implementation in Java | <p>I'm trying to implement Prim's Algorithm in Java using for my graph HashMap + LinkedList and a class Edge which contains the connected vertex and the weight:</p>
<pre><code>adjacencyList = new HashMap<T, LinkedList<Edge<T>>>();
</code></pre>
<p>My idea was, starting from a given vertex:
1)save al... | 2 | 2,085 |
LINQ query performance issue when fetching data from db in MVC Razor | <p><strong>Problem Statement:</strong>
I'm trying to bind Multi-table data from db to view using Linq query which is taking more time.I'm having around 10000 records in db.Someone suggested to use the IQueryable instead of IEnumerable,but does it affect my current code(In both View and Controller)?? Or without using th... | 2 | 4,093 |
GAE NDB AttributeError model instance has no attribute | <p>I have a Google App Engine NDB model called 'Bin'. <strong>I have modified the properties for 'Bin' and deleted all data entries that correspond to the older model.</strong> My goal is to query for all bins and access the attribute 'label' inside a GAE Endpoints function. However, when querying and iterating through... | 2 | 1,484 |
Invoke callback method | <p>I'm trying to make a nice AJAX interface, loosely adapted to Todd Motto's Atomic.JS (<a href="http://toddmotto.com/writing-a-standalone-ajax-xhr-javascript-micro-library/" rel="nofollow">http://toddmotto.com/writing-a-standalone-ajax-xhr-javascript-micro-library/</a>). My adaption isn't working, however. The problem... | 2 | 1,185 |
Why do i get the following error while running a java web application? | <p>I am following this tutorial
<a href="http://netbeans.org/kb/docs/web/quickstart-webapps.html" rel="nofollow">http://netbeans.org/kb/docs/web/quickstart-webapps.html</a></p>
<p>and as mentioned i have created two jsp pages.My index.jsp page looks like this</p>
<pre><code>%@page contentType="text/html" pageEncodin... | 2 | 2,238 |
Drop Down Div Stay Visible on Hover jQuery | <p>I have a drop down div (.drop-down) that has a display none but slides down on another div (.nav-divs) hover. I want to be able to have .drop-down stay visible when I hover over it but currently it flickers terribly on hover. Im sure there is a really simple solution but I am fairly new to jQuery. Help would be grea... | 2 | 1,061 |
Unknown thread crashed with unknown flavor | <p>I have an app which performs these basic functions:</p>
<ol>
<li>Retrieving data from server</li>
<li>Storing it locally</li>
<li>Showing the data stored at local to user</li>
</ol>
<p>This app works as expected on iPhone device, but when one of the customers tried to use the same build on iPad 1, it crashed for h... | 2 | 12,694 |
ftp mput sends only four file - ubuntu | <p>I wrote a bash script and i am running it with cron in ubuntu 12.04 for every minute.</p>
<p>Here below you can see my ftp upload script:</p>
<pre><code>#!/bin/sh
HOST='192.168.10.40'
USER='user1'
PASSWD='Oo123456'
FILE='CAM_1_*'
DIR='SecImg'
UP='..'
cd /home/user1/Masaüstü/BBTCP/
chmod 777 $FILE
ftp -v -n ... | 2 | 1,204 |
Importing Outlook contacts into a SharePoint application page | <h1>Background</h1>
<p>I've written a feature to make it easier for users to e-mail a document, <a href="https://stackoverflow.com/questions/1139873/can-i-easily-add-a-send-to-friend-or-email-this-feature-to-a-sharepoint-list">like this SO question</a>. I've implemented the solution according to <a href="https://stacko... | 2 | 1,125 |
Swift 3 - Custom button (image and text) only draws correctly if there's no outlet? | <p><strong>EDIT: Although I accepted an answer that helped me get the buttons drawn correctly at runtime, I still have other issues. The root of which, I suspect, is the issue of <strike>why giving my custom button an outlet interferes with how it is drawn. I still need to know why this is.</strike> (see my answer belo... | 2 | 1,917 |
How to render a HTML page form NodeJs API? | <p>**After running http-server, I try to get to URL- <a href="http://127.0.0.1:8080" rel="nofollow noreferrer">http://127.0.0.1:8080</a> - but instead of what I write, I get
"Node.js v8.11.4/ ecstatic server running @ 127.0.0.1:8080"` every time I try. </p>
<p>But index.html file opens when clicked directly from the... | 2 | 1,384 |
Interactive filter in HTML table multiselect | <p>I am creating an HTML table dynamically from JSON objects. I am trying to create a filter for one of the table columns. It works fine but I cannot make it work with a multiselect function. </p>
<p>I tried adding this line:</p>
<pre><code>$('.One1').multiselect();
</code></pre>
<p>in my script, in different places... | 2 | 2,882 |
References to mutables (e.g., lists) as values in Python dictionaries - what is best practice? | <p>It is possible to map a dictionary key to a value that is a reference to a
mutable object, such as a list. Such a list object can be changed by invoking
a list method on the reference, and the changes will be reflected in the
dictionary. This is discussed in:</p>
<ul>
<li><a href="https://stackoverflow.com/questi... | 2 | 1,146 |
backbone collection fetch subtitute $.ajax | <p>I'm trying to understanding backbone code. I read this
<a href="http://addyosmani.com/blog/building-spas-jquerys-best-friends/" rel="nofollow">http://addyosmani.com/blog/building-spas-jquerys-best-friends/</a></p>
<p>then I plan to change this</p>
<blockquote>
<pre><code> if (this._index === null){
$.aj... | 2 | 1,351 |
Getting top 3 values from multi-index pandas dataframe | <p>I have a multi-level grouped pandas dataframe which looks something like this:</p>
<pre><code>date AccountNum ProgramName Duration
2017-11-12 12345 program1 200
program2 300
program4 100
... | 2 | 1,609 |
How to find the first n minimum values from a column in R? | <p>I have a command like this which finds a minimum value in column e$V2.</p>
<pre><code>EQTLs<-s[s$POS==as.numeric(e[tail(which(e$V2 == min(e$V2)), 1),1]),]
</code></pre>
<p>Instead I would like to find the first 10 minimum values as oppose to this one.</p>
<p>I tried this but it didn't work:</p>
<pre><code>EQT... | 2 | 1,573 |
Java hashCode() differs in different executions of same object creation | <p><strong>Basic information:</strong>
I have a MyCustomObjectGenerator that generates MyCustomObject . This object (should be) is always created with identical values. This object contains mutch code, interfaces, enums, sub-classes ..., so I keep it simple here. All objects or implementations of interfaces override th... | 2 | 1,573 |
Inverse String.Replace - Faster way of doing it? | <p>I have a method to replace every character except those I specify. For example, </p>
<pre><code>ReplaceNot("test. stop; or, not", ".;/\\".ToCharArray(), '*');
</code></pre>
<p>would return </p>
<pre>
"****.*****;***,****".
</pre>
<p>Now, this is not an instance of premature optimization. I call this method quit... | 2 | 1,077 |
AngularJS : Directive : Animate sliding pages and postpone controller binding | <p>I'm trying to figure out how to postpone the default controller binding and only apply it from within the directive, once the specific animation (custom - not the angularjs one) has been performed on the DOM element with the content. The fiddle to what I'm trying to accomplish is here, although it does replace the c... | 2 | 1,955 |
java.lang.IllegalStateException:The specified child already has a parent. You must call removeView() on the child's parent first | <p>Making small tasker for android in kotlin language I bumped into an issue with navigation.
When I press "add" button on the main screen (ListFragment) i want my app to navigate to another screen(CreateTaskFragment) where user will be able to create a task, but instead, android studio give me such a stack trace:</p>
... | 2 | 3,542 |
Scanning integers into a 2D arraylist? | <p>Ive tried different variations but I have no idea how to get this to work. Im trying to get the user to input co-ordinates that loops based off a number the user chooses, but the scanner doesnt seem to work very well with the 2d array.</p>
<p>Edit: Added the rest of the code to clarify what im trying to achieve, I ... | 2 | 1,410 |
SQLAlchemy: Multiple Inheritance with dynamic 'association_proxy' creator function | <p>I am currently trying to create the following database schema with SQLAlchemy (using ext.declarative):</p>
<p>I have a base class <code>MyBaseClass</code> which provides some common functionality for all of my publicly accessible classes, a mixin class <code>MetadataMixin</code> that provides functionality to query... | 2 | 1,100 |
Reducing buffer size used by an SQL (Oracle performance tuning) | <p>I am trying to reduce the buffer size used by an SQL.
Below is the explain plan.</p>
<p>Looking at the explain plan I tend to focus on line 3 below</p>
<pre><code>3 NESTED LOOPS Cost: 1,407 Bytes: 11,902,228 Cardinality: 276,796
</code></pre>
<p>Because the cost is jumping from 55 (at line 2) to 1407</p>
... | 2 | 3,042 |
Generating a Certificate for signing Universal Windows Platform (UWP) Apps | <p>I'm trying to generate a certificate suited for signing a Microsoft Universal Windows Platform (UWP) application. I have one certificate that works that I self-signed and one issued by my company's internal certificate Authority based on a CSR (certificate request) file that I crafted and submitted to them. </p>
... | 2 | 1,062 |
Undoing Whitebox.setInternalState in a @AfterMethod without setting original state | <p>I have a class which I cannot easily use a dependency injection to mock due to an obligatory implementation of an interface - in a nutshell, for that reason I will be using Whitebox and my concern here is not related to the design, instead it is just to figure out how to properly "tearDown" the behavior caused by Wh... | 2 | 1,121 |
Error creating bean with jetty | <p>I am having issue when start web application with Jetty, but when i start it with Tomcat-07 there is no such issue,</p>
<p>Error : </p>
<pre><code>org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'hbmSessionFactory' defined in ServletContext resource
[/WEB-INF/applicat... | 2 | 3,507 |
MySQL left join subquery null join | <p>Ok, so I have a fairly detailed SQL query, I have 2 tables, the first table contains homework data. The second table contains a record for each student in a class the homework is set for.</p>
<p>I want to count some data on the second table, where certain conditions are met, for example, how many students the homew... | 2 | 1,473 |
How To Import and Display Excel (.xlsx) File to Blazor WASM Client Side (Without Uploading to Server) | <p>Like the title says. Lots of examples online for uploading files to backend but I'm after verification client side/offline followed by an upload of data only (no files). In theory, anything that runs on .Net5 should be able to run in WASM at a close performance. I'm trying to unload those hefty operations to clients... | 2 | 2,330 |
Populate tableview in swift | <p>I have this result after parsing XML result.</p>
<p>When I do a <code>println()</code> I get the result perfectly like this</p>
<pre><code>{
description = "Suzuki SX4 - BB71521";
deviceID = 359710042040320;
}
{
description = "Chevrolet Tahoe Noir - Demonstration";
deviceID = 359710042067463;
}
{
des... | 2 | 1,763 |
How to obtain overlapping patterns with Python finditer? | <p>I'm using a python script that is searching for a pattern in a fasta file. It is working very well but it does not return overlapping strings. Unfortunately, I'm interested in potential overlapping strings. Since I'm not a programmer (I'm just trying to learn Python), I was wondering if someone could modify the scri... | 2 | 1,363 |
Fit FULL image in 612x612 size for Instagram while keeping ratio | <p>I want to be able to fit any FULL image in a 612x612 UIImage for Instagram integration in my app. But i don't want any of the sides cut or anything. I want the full image weather its in landscape or portrait to fit fully in a 612x612 image. What im after is just like you can set an image content mode to aspect fit i... | 2 | 2,760 |
jQuery Slider and Uncaught TypeError in Wordpress | <p>I'm a bit clueless regarding my <a href="http://tympanus.net/Tutorials/ElasticSlideshow/" rel="nofollow">FullWidth Image Slider</a> in combination with the Openstrap Wordpress theme. </p>
<p>When the function is loaded, I always get this error:</p>
<pre><code>Uncaught TypeError: undefined is not a function
</code>... | 2 | 6,027 |
creating an updating jqgrid table from websocket source | <p>I am struggling a bit with where to start, I am in the process of doing a websocket project, I have the server coded which pushes messages in realtime to a websocket client running jQuery and HTML5. I have set the server up to pass across JSON messages like the below.</p>
<pre><code>{"timestamp":"2015-01-12T17:22:4... | 2 | 2,675 |
How to Submit a Contact Form and Not Redirect to Another Page | <p>I can't find anyone asking a similar question - I built a simply contact form and when I click submit, it takes me to the page on which the php for sending the message is written. I was wondering how I could make this not happen and instead just display a "thank you" message underneath the submit button, or somethin... | 2 | 1,140 |
How can I both horizontally and vertically center two divs inside another div? | <p><br />
What I am trying to do should look like this:
<br />
<img src="https://i.stack.imgur.com/eD6lE.jpg" alt="horizontally/vertically aligned inner divs">
<br />
...but my <code>inner_top</code> div (with the <em>red</em> background) is <em>not</em> <strong>horizontally-centered</strong>, and ends up looking like ... | 2 | 1,238 |
Problems about installing a gcc-6.* on CentOS-6.5 | <p>Morning everyone, glade for your attention.</p>
<p>I am a newbie and got a problem when installing gcc-6 on my whole new centos-6.5 host which made me going crazy.</p>
<p>As you known, the default gcc version on CentOS-6.5 is 4.4.7 and not support c++11, so I tried to install a latest one.</p>
<p>After installing... | 2 | 7,539 |
Robot Framework: Getting build error for missing Jar | <p>I have started learning Robot Framework (with Java & selenium lib) and was trying to write a simple test case in it. Could you please help me with it.
I have copied tools jar in the mentioned lib and also in the dependancy
But still did not work
Following is the error</p>
<p><strong>Failed to execute goal org.r... | 2 | 1,586 |
how to get the latitude and logtitude from the result of Location.getCurrentPositionAsync() in react-native | <p>this is my code for get device's current location. </p>
<pre><code>import React, { Component } from 'react';
import { Platform, Text, View, StyleSheet, FlatList } from 'react-native';
import { Constants, Location, Permissions, MapView } from 'expo';
export default class Home extends Component {
state = {
... | 2 | 1,228 |
Using Turf with Leaflet | <p>I've made a leaflet map and was trying to implement turf.
As a quick test, I just wanted to put a buffer around one of my markers. But somehow I can still only see the two markers on my map. I basically followed the steps from this document. <a href="https://lib.dr.iastate.edu/gis_tasksheets/3/" rel="nofollow norefe... | 2 | 1,375 |
Why would an empty rails process have different memory footprint each time it starts up? | <p>We've been trying to figure out how to reduce the boot-up memory footprint of our rails app by identifying memory-hungry gems and finding alternatives or solutions.</p>
<p>But there's one behavior on OS X that I find baffling.</p>
<p>With a brand new generated rails app (<code>rails new memoryusage</code>), with n... | 2 | 3,715 |
Render Component in loop, use Index in method of child component (VueJS) | <p>I have two components where some exchange of props takes place. Props is the whole todo array, which is updated by a click on the button with the "addTodo" method. Passing the array down to the child works fine. I can display the props dynamically in my p-tags, but it seems to be not possible to use it my the method... | 2 | 1,559 |
Angular 1.5 - Tree shaking with webpack & babel 6 | <p>I am using angular 1.5 with express in a very old project. now I need to revamp it (not rebuild).</p>
<p>I was adding some webpack optimisations and transferring it to client side rendering angular application and separating server code with client code.</p>
<p>My end goal is - to make a complete workflow using we... | 2 | 2,624 |
primefaces selectCheckboxMenu empty selected list | <p>I'm trying to get selected values from a selectCheckboxMenu, but always the selection list is empty. this's my jsf form:</p>
<pre><code><h:form id="form">
<p:dataTable id="singleDT" var="user" value="#{roleBean.users}"
rowKey="#{roleBean.users}" r... | 2 | 2,530 |
create image with HTML content using PHP GD library | <p>I am new in PHP GD library. Basically, my requirement is to create an image using HTML content. HTML content might have HTML tags like b, i, img etc (include all available HTML tags).
We will also have to set font-name, font size, font-color, font-weight and x-y position of HTML element. All HTML tags need to be ren... | 2 | 2,118 |
Expression tree to create dynamic Where clause throwing error related to params | <p>I've got a list of lists of conditions being sent up from the client. I need to take this list and create a dynamic where clause to be executed by EntityFramework. </p>
<p>Each condition has an operator, an attribute, and a right-hand-side value. </p>
<p>Each list of conditions need to be ANDed together.</p>
<... | 2 | 2,617 |
Way of getting control handle from TMessage | <p>Is there anyway to get the control handle or other information with i can indentify a control having only TMessage variable? Question is Delphi related.</p>
<p>the thing im doing is that im hooking several controls wndproc with one function and i need to find what control message is that.</p>
<p>code:</p>
<pre><... | 2 | 5,297 |
How can I center captions in PerlMagick? | <p>Using ImageMagick on the command line I can say</p>
<pre><code>convert -background '#0000' -fill white -stroke black -strokewidth 3 -gravity center -pointsize 78 -size 568x1000 caption:'Lorem ipsum etc etc' -trim +repage out.png
</code></pre>
<p>And produce the output I'm looking for. What I'd like to do is the s... | 2 | 1,089 |
How to make a simple VS extension install and work correctly in VS 2019, VS 2017 and VS 2015? | <p>I used VS 2019 to develop a simple extension. When I debug it (i.e. exp hive) it works both for VS 2019 and VS 2017. I could not figure out how to add VS 2015 to the startup menu, i.e. here:</p>
<p><a href="https://i.stack.imgur.com/mIQUp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mIQUp.png"... | 2 | 5,603 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.