title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How can I add horizontal swipe to a TabActivity? | <p>I have seen some similar posts here, but I haven't found any answers. I want to add a swipe gesture to my tab activity, so that I'm able to change tabs with the gesture. </p>
<p>Here's my code: </p>
<pre><code>public class Domiciliaria extends TabActivity
{
@Override
public void onCreate(Bundle savedInsta... | 2 | 1,823 |
Chef-solo can't find cookbook with Vagrant and Windows | <p>I'm attempting to manage a windows web server with the chef 'iis' cookbook and vagrant. </p>
<p>When I attempt to run chef-solo, it throws an error that the cookbook is not found. </p>
<p>The error message:</p>
<pre><code>sowens-MBP:vagrant-windows sowen$ vagrant provision
==> default: Running provisioner: che... | 2 | 1,479 |
Why a VSTS build definition when "getting resources" creates a repository with no branches and detached? | <p>I have created a build definition in VSTS. I want to run a powerShell script right after the "get sources". </p>
<p>While "getting sources" phase I can see that some branches are being created:</p>
<pre><code>From https://domain.visualstudio.com/_git/main
* [new branch] develop -> origin/develop
... | 2 | 4,278 |
Essential matrix estimates movements in a wrong axis | <p>I'm trying to estimate the pose of a monocular camera but when I use the recoverPose function I'm getting most movements along z axis while I'm only moving the camera horizontally. In my aplication we need to recover the pose so that we can generate a 3D model of the recorded scenario.</p>
<p>Actually we are using a... | 2 | 1,823 |
Using google maps API v3 | <p>I am trying to get the distance between two location using Google Mps API following <a href="https://stackoverflow.com/questions/10906805/finding-streets-get-their-coordinates-and-calculating-distances-between-marker">this post</a>. I also found the <a href="http://jsfiddle.net/foxwisp/vQGMr/1/" rel="nofollow norefe... | 2 | 1,839 |
Unable to Store the image for the second time in to the firebase storage | <p>I created a simple application in which the user can browse through his/her gallery and after selecting the image option for cropping the image appears for that I have used some image crop library which was available on GitHub.
All works fine I am able to crop the image and upload it after that image appears into th... | 2 | 3,352 |
The variable is being used without being initialized C++ | <p>I have tried looking for an answer and fixing this myself but I have failed.
I'm attempting to create a program that executes a letter guessing game. Please be advised that this IS homework. However, I'm not looking for answers, I am looking for insight. After executing this program I'm getting the error "The variab... | 2 | 1,603 |
Atmosphere: Multiple Clients for Managed Service | <p>We have an embedded Jetty 9 application that we are trying to add Amosphere support to. The goal is to provide real-time data to AngularJS-based web application. We are using Atmosphere 2.1.3 (though we did try 2.2.0-SNAPSHOT as well).</p>
<p>The issue right now is that while the application works perfectly with on... | 2 | 1,384 |
Emails with event invite generated by MVC application not synced with calendar in outlook.com | <p>I am creating ASP.NET MVC5 application. One functionality is to send emails with event invitations. In Gmail client such generated email works fine. But in outlook.com even if the email has correct buttons - accept/tentative/decline - clicking on them won't sync that into the calendar itself.</p>
<p>I took some ins... | 2 | 1,132 |
Using typescript Exclude with generic type | <p>A routine update of dependences in my TypeScript-based Nodejs project has caused me to receive TypeScript compilation errors in a generic class used to manage <a href="https://mongoosejs.com/" rel="nofollow noreferrer">mongoose</a> models. I've narrowed the problem down to what seems to be an issue with TypeScript h... | 2 | 1,099 |
Minecraft spigot plugin, multiple args to string | <p>I'm trying to make plugin where player can change sign with command <code>/signeditor2 edit <Line-number> <text that can have spaces></code>
But I just can't figure out how to do it.
This is my code but when i use it it only type on the sign first word of the message.
How can I connect all args after the... | 2 | 2,425 |
Maximize consumption Energy | <p>There are three types of foods were provided i.e. meat, cake and pizza
and N different stores selling it where, <strong>i can only pick one type of food from
each store</strong>. Also I can only buy items in A, B and C numbers where 'A' means, Meat from total 'A' number of different stores (see example). My task is... | 2 | 1,355 |
learning curve Sklearn | <p>I was trying Random Forest Algorithm on <a href="https://www.kaggle.com/c/boston-housing" rel="nofollow noreferrer">Boston</a> dataset to predict the house prices <code>medv</code> with the help of sklearn's <a href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html" rel="... | 2 | 1,428 |
How to retrieve the TLS root CA certificate using Indy and OpenSSL | <p>is it possible to retrieve the TLS root CA certificate from a server using Indy and OpenSSL? I already posted this in the (German) Delphi-Praxis <a href="http://www.delphipraxis.net/190534-indy-openssl-komplette-zertifikatskette-im-client-ermitteln.html" rel="nofollow">http://www.delphipraxis.net/190534-indy-openssl... | 2 | 1,851 |
Why does my update throw a hibernate ConstraintViolationException? | <pre><code>CREATE TABLE GUSERPRO
(
USER_NAME VARCHAR2(20 BYTE),
SYSTEM VARCHAR2(8 BYTE),
PROCESS VARCHAR2(8 BYTE),
LOGIN_TIME NUMBER,
LOGIN_DATE DATE,
LOGOUT_TIME NUMBER,
LOGOUT_DATE DATE,
TOTAL_ELAPSED NUMBER,
TOTAL_LOGINS NUMBER
)
TABLESPACE ERIP_D
PCTUSED 0
P... | 2 | 2,644 |
Parsing spanish text and saving it in a db | <p>I'm parsing a web page written in spanish with <a href="http://scrapy.org" rel="nofollow">scrapy</a>. The problem is that I can't save the text because of the wrong encoding.</p>
<p>This is the parse function:</p>
<pre><code>def parse(self, response):
hxs = HtmlXPathSelector(response)
text = hxs.se... | 2 | 1,133 |
Android Progress Bar stops working in the middle | <p>I am working with ASYNTask. And I have used a custom progressbar. It stops working after sometime of spinning, and after that a blank(black colored) screen comes for 2 secs and then my UI for the next screen loads on.</p>
<pre><code>public class LoginActivity extends Activity {
/** Variable define here. */
... | 2 | 12,976 |
Java NIO ByteBuffer.put null pointer exception | <p>its my first post so go easy on me :). I'm working on refactoring some connectivity code to use non-blocking IO and am running into a null point exception when calling byteButter.put(byte[]) or byteBuffer.put(byte[],index,length). The exception is occurring on this line </p>
<blockquote>
<p>localBuffer.put(send... | 2 | 1,122 |
iOS GCM GCMPubSub Unsubscription Error 7 - Unknown Error | <p>For GCM topic messaging, whilst trying to unsubscribe from a topic I'm getting the following in my log (see code below)</p>
<pre><code>Failed to unsubscribe from topic /topics/testTopicName: Error Domain=com.google.gcm Code=7 "The operation couldnβt be completed. (com.google.gcm error 7.)"
</code></pre>
<p>Now, I'... | 2 | 1,275 |
return the first longest string consisting of n consecutive strings taken in the array in c# | <p>I got this question in my interview:</p>
<p>I got an array strarr of strings and an integer k. My task is to return the first longest string consisting of k consecutive strings taken in the array.</p>
<p>Rules:n being the length of the string array, if n = 0 or k > n or k <= 0 return "".</p>
<h1>Exam... | 2 | 1,336 |
How to set the configuration properties for Mosquitto in c++? | <p>I am writing mosquitto code for consuming the message after subscribing to a particular topic. Now I want to set different configuration for mosquitto like </p>
<pre><code>autosave_interval 100
persistence true
persistence_location /var/lib/mosquitto/
persistence_file mosquitto.db
</code></pre>
<p>But I have no id... | 2 | 1,618 |
Creating HTML Refresh Button that only refreshes info in a HTML Table on webpage | <hr>
<p>UPDATE: Sorry, forgot to include some of the code (face-palm). I included it in with the initial code provided so everything will be clear. I'm really new to this stuff so please forgive me for not having the time to learn jsfiddle right now (I know what it is and does though).</p>
<p>I have figured out th... | 2 | 1,837 |
Parsing and invalid value for D3.js sankey | <p>I am currently trying to create a simple Sankey diagram using D3.js. I have gotten most of the way, but setting the height and y-axis is proving to be a challenge. Specifically, the error returned is the following:</p>
<blockquote>
<p>Error: Problem parsing d="M15, NaNC479, NaN 479, NaN 943, NaN" Error:
Invalid... | 2 | 1,537 |
JWT decode() must be of the type array error | <p>Here I have some slim PHP code which is log in and a function to check whether it decode the JWT that store in the header. </p>
<pre><code>$app->post('/login', function ($request, $response) {
$input = $request->getParsedBody();
$settings = $this->get('settings'); // get settings array.
$sql = "SELECT id,... | 2 | 1,031 |
linking to a radiobutton value, data is not binding, asp.net c# | <p>hi i need to modify my code a little bit. i have a page with a radio button list and a textarea. the textarea is populated when a users makes a radio button selection. </p>
<p>also, when a user makes a radio button selection the url will hold an extention in the url to show which selection index number they have se... | 2 | 1,287 |
How do I allocate memory to my char pointer? | <p>My assignment is to allow the user to enter any input and print the occurrences of letters and words, we also have to print out how many one letter, two, three, etc.. letter words are in the string. I have gotten the letter part of my code to work and have revised my word function several times, but still can't get ... | 2 | 1,485 |
Refresh Single View Controller in Container View | <p>I need help refreshing a single view controller in a container view by passing a variable value to it. I have a storyboard which contains a view controller with a container view. See the following image:</p>
<p><a href="https://i.stack.imgur.com/KKgEp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.c... | 2 | 2,030 |
Magento : Pagination missing in custom collection | <p>I am facing a problem in pagination while displaying a custom collection of products . As I am darn new to Magento please bear with any naivety in my understanding.</p>
<p><strong>Objective :</strong> I want to display Other products from same category on the Product view page and also leveraging the infinite scrol... | 2 | 7,129 |
How to navigate through modal pages in Xamarin.Forms using Fresh.MVVM | <p>I was trying to push a modal page in my xamarin forms app using MVVM when pressing a button. I already know how to use navigation stacks, but no idea how to do it with content pages as modal pages, I have tried multiple things, especially, calling the PushPageModel method.</p>
<p>This is the last thing I have tried... | 2 | 1,373 |
Android Textview background takes on layout background colour | <p>I have set the background of a RelativeLayout to the colour black. Unfortunately, all the EditText's within my layout have now also turned black (so that I can't see the text as the text is black). Obviously I could change the text colour, but that's not what I want. I can't work out how to get the EditText's back t... | 2 | 2,107 |
SQL: efficiently append incremental number to string, avoiding duplicates | <p>I have a set of records (table [#tmp_origin]) containing duplicate entries in a string field ([Names]). I would like to insert the whole content of [#tmp_origin] into the destination table [#tmp_destination], that does NOT allow duplicates and may already contain items.</p>
<p>If the string in the origin table does... | 2 | 1,029 |
Not updating discriminator when property type changes | <p>I've got an entity that has a property that's an abstract type. This creates a one-to-one relationship that uses table-per-hierarchy inheritance. Everything seems like it's working correctly.</p>
<p>I can create an Item and set the <code>Base</code> property to <code>ConcreteOne</code>; everything saves correctly. ... | 2 | 1,748 |
how can I sort out a missing required positional argument | <p>In my case this is the error I get when I run the code:</p>
<pre><code>TypeError: __init__() missing 1 required positional argument: 'Screen'
</code></pre>
<p>Now usually this is easily fixable but for some weird reason I can't seem to solve the problem. I use to have a perfectly fine piece of code but now that I ... | 2 | 1,789 |
sort array of objects alphabetically c++ | <p>I am enrolled in an Object Oriented programming class and am using code::blocks as my IDE. We have a project that requires to pass an array of objects ( a Libray book array with private names and titles) into a sort array that will sort the titles or authors alphabetically. I have all the components working as they ... | 2 | 1,568 |
Angularjs : Dynamically created tab does not get active/selected | <p>I have the below angularjs code which creates tabs by pressing the new button. But the newly created tab does not get active or selected after creation. Always the one before the last one get active !
Anyone knows what is wrong? </p>
<p>plnkr : <a href="https://plnkr.co/edit/1329tgGonObRQ6Drk75A?p=preview" rel="no... | 2 | 2,155 |
Scala parser combinators, failure on end of line | <p>I am trying to build an interpreter for the <a href="http://en.wikipedia.org/wiki/Icon_%28programming_language%29" rel="nofollow">Icon programming language</a>, in Scala. Right now I am working on setting up a parser for it.</p>
<p>The code I have written so far is:</p>
<pre><code>package interpreter
import scala.... | 2 | 1,573 |
Android cannot start android class that extends activity from another activity | <p>I couldn't find any help that would work for me so this is a particular case scenario of starting an activity.
I have a project in which i have the class MrNom</p>
<pre><code>public class MrNomGame extends AndroidGame {
public Screen getStartScreen() {
return new LoadingScreen(this);
}
</code><... | 2 | 2,745 |
Lifetime issue with Actix Web | <p>I'm implementing middleware with Actix-web and having an issue with lifetime that I couldn't figure out.</p>
<pre><code>extern crate actix_web;
use actix_web::actix::{Actor, Addr, Context, System};
use actix_web::middleware::Middleware;
use actix_web::{http, server, App, HttpRequest, Responder};
use std::collectio... | 2 | 1,491 |
Code alignment in one object file is affecting the performance of a function in another object file | <p>I'm familiar with data alignment and performance but I'm rather new to aligning code. I started programming in x86-64 assembly recently with NASM and have been comparing performance using code alignment. As far as I can tell NASM inserts <code>nop</code> instructions to achieve code alignment.</p>
<p>Here is a fun... | 2 | 3,089 |
Why doesn't TypeScript complain about an incorrect return type? | <p>Please consider this example:</p>
<pre class="lang-js prettyprint-override"><code>// all properties in Item should be optional, this is by design
type Item = {
id?: number
name?: string
}
interface WithVersion {
version: number
}
export type ResultType =
& WithVersion // #1 try to remove it
... | 2 | 1,421 |
Newest version of readr gives error :Error in app$vspace(new_style$`margin-top` %||% 0) : attempt to apply non-function | <p>I've seen a thread about my issue on stackoverflow and reddit but all the solutions I read are not working for me. I have the latest version of readr and R but I still get the same error when using the function <code>read_delim</code>. I also have tidyverse installed.</p>
<p>Has anyone managed to find another soluti... | 2 | 1,659 |
Fullcalendar - can't get events to show asp.net | <p>I'm trying to implement fullcalender but I can't get the exemple data to show. I have been following <a href="https://www.codeproject.com/Articles/874283/Event-Calendar-in-ASP-NET-MVC-and-Entity-Framework" rel="nofollow noreferrer">this guide</a>.</p>
<p>I get no errors but the events doesn't show in the calendar. ... | 2 | 2,345 |
Data parsing in mqtt broker | <p>I have a python code which is used to receive data from mqtt subscriber.The message from mqtt subscriber is send as strings based on the strings received i am manipulating the results.
But the code is hitting only at the else case every time.</p>
<pre><code>
import paho.mqtt.client as mqtt
MQTT_ADDRESS = '19... | 2 | 1,272 |
Can't read NSUserDefaults data between views | <p>Disclaimer: major noob</p>
<p>I'm writing an arithmetic flash card app as a learning project. I have a UITabViewController with the bottom tab bar that toggles between a few different views. Everything works okay until I try to set NSUserDefault boolean values in the Settings view controller and try to read those v... | 2 | 3,604 |
Azure Automation Invoke-Sqlcmd : Login failed for user '<token-identified principal>' | <p>I want to run an automation runbook to create a new database for each user and add them as a db_owner on their databases, but after I run the script I got this error <code>"Invoke-Sqlcmd : Login failed for user '<token-identified principal>'. At line:94 char:14 + ... Invoke-Sqlcmd -ServerInstance $databas... | 2 | 1,307 |
python selenium 'send_keys' is not consistently functioning | <p>I have a script that will open eBay and automate the buying process, and it worksβ¦ for a while. After a series of loops, it randomly starts to skip sending data to text fields. The script will always runs perfectly the first time, but sporadically between the 2nd or 10th iteration,it will break; it hasnβt gotten pas... | 2 | 1,369 |
the ReadLine doesnt wait for input | <p>I have a socket client sending text to a socket server but the ReadLine doesnt seem to wait to receive a line before proceeding. Here is the of the server receiving the text:</p>
<pre><code>public void run() {
try {
serveurSocket = new ServerSocket(PORT_ID);
connexionSocket = ser... | 2 | 1,130 |
Efficient Matrix multiplication in RISC-V | <p>I am struggling with matrix multiplication in RISC-V</p>
<p>Input is 128*128 matrix with unsigned short integer entry</p>
<p>I've wrote a naive one</p>
<p>The goal is to reduce the clock cycles</p>
<p>β’ Below 20,000,000 cycles (2%)
β’ Below 18,000,000 cycles (2%)
β’ Below 16,000,000 cycles (2%)
β’ Below 14,000,000 cycl... | 2 | 1,215 |
How to actually step by step debug in VSCode AWS Sam Local Lambda Functions | <p>Hey guys anyone here had success breakpointing a lambda function ran locally with visual studio code and nodejs8.10? I wonder if it's because my project is typescript.
I've followed <a href="https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-debugging-nodejs.html"... | 2 | 1,347 |
how to obtain alphablending in wince 6.0? and how to erase background image in wince 6.0? | <p>How to obtain a alphablend image in wince 6.0 for a particular child window for n number of times?
for example if i have a vol bar graph window which is for volume increase & decrease which is changed on click of vol+ or Vol- button so if i want to keep vol bar graph window as an alphablend image in wince 6.0 th... | 2 | 1,050 |
Partial view on button click | <p>I have Controller: </p>
<pre><code>public ActionResult Index(string Activites)
{
var item2 = (from o in frh.Dates orderby o.Date1 select o.Date1).ToArray();
int lenght = item2.Count();
string[] data = new string[lenght];
DateTime[] data3 = new DateTime[lenght];
object[] data2 = new object[leng... | 2 | 2,717 |
Inheritance, Generics, and Protocols in Swift | <p>I have a generic class of the form:</p>
<pre><code>class BaseClass<T> {
var prop: T
...
}
</code></pre>
<p>I then have multiple subclasses of the form:</p>
<pre><code>class SubClassOne: BaseClass<SomeSubClass> {
...
}
class SubClassTwo: BaseClass<SomeOtherSubClass> {
...
}
</cod... | 2 | 1,121 |
Angular subscribe to login service and get special field from logged in user | <p>I've got boolean field in user model and I need to open a modal window on the login page right after the user pressed <em>submit</em> and got info from server after I checked user.user_on_test field and open modal only if it's true. Can you please help me to extract this info from response?</p>
<p>This is my user.s... | 2 | 1,232 |
Argument passed to Zend\Form\Form::setInputFilter() must implement interface InputFilterInterface, null given | <p>Well, greeting everybody, i was just following along the zend framework 2 example code for creating an album management app (<a href="http://framework.zend.com/manual/2.0/en/user-guide/forms-and-actions.html" rel="nofollow">http://framework.zend.com/manual/2.0/en/user-guide/forms-and-actions.html</a>) but ran into t... | 2 | 6,359 |
Stored procedure to update rows if exists | <p>I have a stored procedure that I am running to insert values if they don't exist and update if they do. I have a table where the data is coming from</p>
<pre><code>Table1
Name (nvarchar)
Data (int)
Timestamp (datetime)
</code></pre>
<p>The data looks like this</p>
<pre><code>Name1 5 2016-11-16 09:46:... | 2 | 1,070 |
GitLab: Job do not return after script is executed, instead fail by timeout after 1 hour | <p>In my .gitlab-ci.yml i have the following job:</p>
<pre><code>init_db:
stage: build
script:
- cd database-migration
- "mvn clean install exec:java"
</code></pre>
<p>The database-migration gets executed. The code for it looks like this:</p>
<pre><code>public static void main( String[] args ) {
doSo... | 2 | 1,209 |
Getting npm ERR! errno 199 when running Protractor with cucumber framework | <p>I am new to JavaScript and Protractor both, I am using Protractor with cucmber js.
I am getting issue is below code :</p>
<pre><code>Then(/^I verified all pages visible to logged in user$/, () => {
var expVisibleNavPages = 'Home,Applications,Programs,Reports,Admin Tools,a';
var NavLinks = element.all(b... | 2 | 1,270 |
Delphi call a function in anonymous thread? | <p>I have to call a function in a anonymous thread in a while</p>
<p>my sample function is like this, just for print output:</p>
<pre><code>function processPureTmFrame(rowFrame : string;tmDataGroupRef:string ):string;
TThread.Synchronize(nil,
procedure
begin
form2.Memo1.Lines.Add( tmSlitFrame... | 2 | 1,053 |
google maps event listener only running once | <p>I am opening a modal on click to show a google map. As the site is responsive I added an event listener to make sure the map is centered on window resize. All of this works, but the event listener only runs on the initial modal open. If I close the modal and open it up again the listener no longer works/runs and ... | 2 | 1,048 |
Make three tabs fill width of container | <p>I am trying to make three "tabs" fill the entire width of a larger container div, but the width always falls a few pixels short, or if I increase the width of the tabs, the last is pushed onto a lower level. Also, would <code>li</code> elements be more appropriate for building these tabs? I'm using bootstrap if so i... | 2 | 2,803 |
Maven tomcat plugin - cannot invoke Tomcat manager | <p>I'm trying to deploy my web app on Tomcat 7 with Maven (version 3.3.3), but I'm getting the exception listed in the title.</p>
<p>I've tried many solutions but no one works for me.</p>
<p>I had:</p>
<ol>
<li><p>Edited <code>tomcat-users.xml</code> ($CATALINA_HOME/conf/tomcat-user.xml):</p>
<pre><code><tomcat-... | 2 | 2,815 |
Parse output from a process that updates a single console line | <p>Greetings stackoverflow members,</p>
<p>in a BackgroundWorker of a WPF Frontend i run <a href="http://sox.sourceforge.net/" rel="nofollow">sox</a> (open source console sound processing tool) in a <code>System.Diagnostics.Process</code>. In that same way i use several other command line tools and parse their output ... | 2 | 1,171 |
Why my Location return null for the first attempt? | <p><strong>While I install my app first time its always return null Location but IF any other app use location then I re- run the app then my app can get my location address. How can I update location successfully from the first run?</strong> </p>
<p>//here is my code</p>
<pre><code>public class UserinfoActivity exte... | 2 | 2,120 |
What exactly does invalid literal for int() with base 10 mean? | <p>I am writing a movie sentiment analysis and in the code I am getting one error and that is: invalid literal for int() with base 10. The code reads a separate text file containg movie reviews with its score. ex) 4 This movie was great. Thanks for the help! Edit: the error appears here: line 38 score = int(lineSplits[... | 2 | 1,471 |
NSURLSession Fails With SSL Page Using TLS 1.2 | <p>I'm using NSULConnection to send data to a webservice over SSL. The server is signed with a wildcard certificate (*.mydomain.com). The certificate is using RES SHA256 and TLS 1.2 and is signed by a CA. I'm trying to send my data using the following code:</p>
<pre><code>NSMutableURLRequest *req = [[NSMutableURLReque... | 2 | 2,118 |
NGINX 403 Forbidden at Root | <p>Setting up a site on AWS Lightsail using the Linux/NGINX install from Bitnami.</p>
<p>The root folder (/opt/bitnami/nginx/html) contains <strong>index.html</strong> as default, everything runs just fine. However, swapping that index file out for <strong>index.php</strong> returns 403 in chrome and logs the followin... | 2 | 2,030 |
How to use distcc to preprocess and compile everything remotely only? | <p><strong>Background:</strong></p>
<ul>
<li>I have a 128-core server which I would like to use as a build server. </li>
<li>I have a bunch of client machines which work with a not-so-new and not-so-powerful PC. <em>(Can't upgrade! Not in my control.)</em></li>
</ul>
<p><strong>What I did:</strong></p>
<ul>
<li>I fo... | 2 | 1,174 |
@Value works without configuring static PropertySourcesPlaceholderConfigurer | <p>I am trying to understand the behaviour of @PropertySource annotation when not using @Autowiring and Spring Environment class. I am trying to use @Value to inject values from a properties file at runtime. From the book that I am reading and from the online sources it is required to have a static bean - PropertySourc... | 2 | 1,672 |
jQuery dataTable 1.9.4 fnReloadAjax gives "TypeError: k is undefined" error | <p>JQuery dataTables are used extensively in our web app, and usually they don't give a problem. But there's this one that has this bug where during the execution of fnReloadAjax, it gives the error "TypeError: k is undefined", which is coming from the dataTables.js line where "fnServerData:function(e,j,m,k)" occurs. H... | 2 | 1,048 |
Oracle JDBC Clob insert issue ORA-00942 | <p>I am reading a set of fields from an Oracle source and insert retrieved data into another Oracle Source, when I attempt to insert into clob area, I happen to experience "java.sql.SQLException: ORA-00942: table or view does not exist" exception, all the fields are inserted successfully but the clob area. The below I'... | 2 | 1,630 |
How do I combine multiple pandas dataframes into an HDF5 object under one key/group? | <p>I am parsing data from a large csv sized 800 GB. For each line of data, I save this as a pandas dataframe. </p>
<pre><code>readcsvfile = csv.reader(csvfile)
for i, line in readcsvfile:
# parse create dictionary of key:value pairs by csv field:value, "dictionary_line"
# save as pandas dataframe
df = pd.D... | 2 | 1,129 |
alternative to long list of nested ifelse statement with multiple conditions | <p>I have the following data frame</p>
<pre><code> structure(list(FY = c("2015-2016", "2015-2016", "2015-2016",
"2015-2016"), YEARMN = structure(c(2015.25, 2015.25, 2015.25,
2015.25), class = "yearmon"), BRAND = c("3M CAR CARE", "CAR CARE 3M",
"CAR CARE 3M", "CAR CARE 3M"), variable = structure(c(1L,
2L, 3L, 4L... | 2 | 1,028 |
Creating ZIP File in PHP coming up with Browser errors, not Script errors | <p>I created a code to backup an entire website & automatically download it on a single click. Here is what my code looks like:</p>
<pre><code>if (file_exists("file.zip")) {
unlink("file.zip");
}
$folder_array = array();
$file_array = array();
function listFolderFiles($dir){
global $folder_array;
global $fil... | 2 | 1,141 |
OpenCV C++ Flann IndexParams and SearchParams error | <p>Opencv 3.2 C++. I am creating a method that can take any set of keypoint descriptors and use any of the matching algorithms as specified by the user. When I try to build my code I get the following errors. </p>
<ol>
<li>cv::flann::IndexParams::~IndexParams(), referenced from:</li>
<li>cv::flann::SearchParams::Searc... | 2 | 1,038 |
Violation of PRIMARY KEY constraint 'PK_ | <p>hi am trying to write a code in which i need to perform a update but on primary keys how do i achieve it
i have written the following code: kindly look at it let me know where m wrong</p>
<pre><code> Protected Sub rgKMSLoc_UpdateCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles... | 2 | 3,585 |
Converting JSON file to data.frame in R | <p>I have a file which contain event data(click data of users interaction with app) in JSON format, I need to convert it in data frame. I used this:</p>
<pre><code>require(RJSONIO)
result <- fromJSON('events_data.json',nullValue = NA)
result <- do.call(rbind,lapply(result,data.frame,stringsAsFactors=FALSE))
</co... | 2 | 1,344 |
How to check "IF any one or all buttons are clicked" in jquery | <p>I want to enable and disable a button using jquery.</p>
<p>As per my code I have few sets of "Accept" and "Reject" buttons and 1 "Authorize" button, so as per logic, when all "Accept" button are "Accepted" the "Authorize" button should be enabled and if even 1 Reject button is clicked, the Authorize button should ... | 2 | 1,745 |
GLSL - unable to access second index of a SSBO array for multiple lights | <p>In my application I add two lights. One at (0,0,2) and the second one at (2,0,0). Here's what I get (the x,y,z axes are represented respectively by the red, green & blue lines):</p>
<p><a href="https://i.stack.imgur.com/vhYTD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vhYTD.png" alt="cub... | 2 | 1,989 |
Zend Framework problem with autoloader | <p><strong>it's all in index.php</strong></p>
<pre><code>/* Define site root */
defined('DOCUMENT_ROOT') ? null : define('DOCUMENT_ROOT',realpath(dirname(__FILE__)));
defined('SITE_ROOT') ? null : define('SITE_ROOT',realpath(dirname(DOCUMENT_ROOT.'../')));
// Define path to application directory
defined('APPLICATION... | 2 | 1,789 |
What is the best way to run background task in react native? | <p>I am building an app where in user have to enter a time and a simple function will trigger on each day at that particular time. This can be handled when the app is in foreground. But when the app is in closed state. That is not using, I cannot find an efficient way to execute that function.</p>
<p>Added the minimal... | 2 | 1,025 |
Auto-sizing multiple TextBox(es) within a DockPanel | <p>I was hoping someone could help me out here. I have 2 textboxes and a button within a dockpanel and I would like to get the 2 textboxes to stretch and shrink based on window size. </p>
<p>I have a dockpanel which contains a bunch of menu buttons on the left and within this dock I have another dock with 2 textboxs ... | 2 | 1,659 |
Npm install on cpanel server for Vue Nuxt application is not working? | <p>I am trying to run npm install in the cpanel terminal for a project but it gives me errors.</p>
<p>Firstly I enter the virtual environment in the cpanel terminal as described by cpanel when you create a node application with the interface. I write the command "source /home/mywebhotel/nodevenv/mydomain.com/10/bi... | 2 | 1,881 |
Tensorflow conv3d_transpose *** Error in 'python': free(): invalid pointer | <p><strong>EDIT</strong> opened issue: <a href="https://github.com/tensorflow/tensorflow/issues/3128" rel="nofollow">https://github.com/tensorflow/tensorflow/issues/3128</a></p>
<p>I'm trying to use the newly added <code>conv3d_transpose</code> created <a href="https://github.com/tensorflow/tensorflow/pull/3049" rel="... | 2 | 6,430 |
npm install -g fibers fails on Azure Web App | <p>Using the console on <a href="https://portal.azure.com/" rel="nofollow">https://portal.azure.com/</a></p>
<pre><code>> npm install -g fibers
D:\home\site\wwwroot\programs\server
gypBuild failed
npm ERR! fibers@1.0.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fibers@1.0.5 ... | 2 | 8,888 |
OpenAPI 3.0 - How to avoid adding "value" key when including examples by ref | <p>With OpenAPI Is there a way to include examples by reference with the $ref: tag that doesn't not require adding the "value" key?</p>
<p>See examples I've added to the petstore.yaml:</p>
<pre><code>openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://pe... | 2 | 2,405 |
How to override a sync function to run async code | <p>I'm looking to define a new connection as shown here: <a href="https://udsoncan.readthedocs.io/en/latest/udsoncan/connection.html#defining-a-new-connection" rel="nofollow noreferrer">https://udsoncan.readthedocs.io/en/latest/udsoncan/connection.html#defining-a-new-connection</a></p>
<p>However, I want to call async ... | 2 | 1,105 |
WPF - MVVM - UserControl binding | <p>I'm trying to realize a simple example of a UserControl, showing in a TextBox the current DateTime, updated four times each second.</p>
<p>I create a simple user control:</p>
<pre><code><UserControl x:Class="UC.TestUC"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
x... | 2 | 1,546 |
Angular-cli and Ckeditor4 custom build | <p>I'm setting my own CkEditor4 build and i need to access it from my Angular-cli application. I have no idea how to access to the ckeditor.js file which is in my Angular project.
I don't want to use the CDN.</p>
<p>I checked the documentation provided by CKEditor: <a href="https://ckeditor.com/docs/ckeditor4/latest/g... | 2 | 1,799 |
Using an external class for handling bar code scanner input? | <p>I'm building a basic Point of Sale application and I've been looking for ways of having my main POS JFrame listen for bar code input. I found this code (slightly modified) posted by Cyrusmith, which looks like what I want but I don't know how to implement it in my JFrame. It looks like its intended to be a separate ... | 2 | 1,233 |
Returning a HashMap collection with simple property keys in QueryDsl | <p>In Querydsl, I would like to return a simple <code>Map<String, Object></code> collection. I imagine there's a simple way to do it. I've used QMap, but it returns keys as fully qualified properties instead of simple properties.</p>
<p>So instead of items looking like this using a QMap collection:</p>
<pre><... | 2 | 1,130 |
Recyclerview doesn't resize after rotate screen | <p>I have a Recyclerview populated with items inserted by the user. I'm implementing the funtionality of rotation, because when i turn the device, the recyclerview shows empty. </p>
<p>Debugging the app, i already check the integrity after and before the rotate and the ArrayList have the same size. I think that the pr... | 2 | 3,239 |
Scrollview and OnClick handlers not working when view is cleared and re-created | <p>I'm having an odd problem and I am not sure where the issue is.</p>
<p>I have an XML file which contains two linear layouts, only one is visible at a time depending on what setting has been used. Both views are dynamically generated and set an on click listener and onlongclicklistener. </p>
<p>Below is the XML lay... | 2 | 5,308 |
CMake setup advice for complicated build process (including externalProject) | <p>I have an application with a mildly complicated build process, and as a bit of a newb to CMake, I was wondering if anyone could provide me with any pointers.</p>
<p>At preset, the application consists of a single executable, built from a source tree provided in the src and include folders.</p>
<p>It requires a few... | 2 | 3,311 |
Place a background image just below the navbar bootstrap-4 Beta | <p>I want to place a background image just below the navbar with <strong>full height</strong>. If I remove Bootstrap class <code>fixed-top</code>then background image automatically start below the navbar. In this situation what should I do? How can I achieve this task?
<div class="snippet" data-lang="js" data-hide="f... | 2 | 1,240 |
C++ Filling an 1D array to represent a n-dimensional object based on a straight line segment | <p><strong>READ FIRST:</strong> I have rewritten this question with the help of a friend to be hopefully more specific in what is required. It can be found <a href="https://stackoverflow.com/questions/3004054/c-how-to-generate-the-set-of-cartesian-product-of-n-dimensional-tuples">here</a></p>
<p>I'm not very clear on ... | 2 | 1,194 |
Using timestamps for range selection | <p>Hello I have dataframe that is organized like the example below. I have a timestamp, a grouping variable, and several variables with numeric values per timestamp. </p>
<pre><code># dput of subset of data
structure(list(TIMESTAMP = structure(1:15, .Label = c("1/1/2012 11:00",
"1/1/2012 12:00", "1/1/2012 13:00", "1/... | 2 | 1,454 |
Maven is not picking up my 3 new properties | <p>My main class references a <code>Settings.java</code> class, and running maven w/o referencing the new properties it works fine when I do:</p>
<pre><code>mvn assembly:assembly
</code></pre>
<p>If I reference a new property, I get this error:</p>
<pre><code>[ERROR] /Users/.../service.java:[41,58] cannot find symbo... | 2 | 1,643 |
Make images to video using FFMPEG on android not working | <p>I built ffmpeg 2.5.4 with libx264 and am using these commands but they are giving error...<br>
On previous version of ffmpeg they were working fine...</p>
<p>Here is the command i am using to convert images to video</p>
<pre><code> String[] ffmpegCommand = {
"/data/data/uk.org.humanfoc... | 2 | 1,059 |
CoreAnimation:[EAGLContext renderbufferStorage:fromDrawable:] was called from a non-main thread | <p>In my Music Application When I am trying to show Ad (I'm using Triton SDK), Sometimes App is crashing and giving me this error:</p>
<p><strong>CoreAnimation: [EAGLContext renderbufferStorage:fromDrawable:] was called from a non-main thread in an implicit transaction! Note that this may be unsafe without an explicit... | 2 | 1,746 |
Regarding loading items to the spinner using volley library | <p>I am trying to load items to the spinner inside my <code>MainActivity</code> toolbar.Inside <code>MainActivity</code> there is a fragment called <code>HomeFragment</code>. And that fragment contains <code>SlidingTabLayout</code> and once I click different tabs I need to load different data sets to the above mentione... | 2 | 1,971 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.