title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
WSO2 ESB demo "How to GET a Cup of Coffee the WSO2 Way" generates errors on use | <p>I'm attempting to use the ESB demo scripts outlined in "How to GET a Cup of Coffee the WSO2 Way" (<a href="http://wso2.com/library/articles/2012/09/get-cup-coffee-wso2-way/" rel="nofollow">http://wso2.com/library/articles/2012/09/get-cup-coffee-wso2-way/</a>). I have successfully deployed and verified that the App s... | 1 | 8,304 |
Dependency was not found using vuex | <p>I am following an online tutorial in which he uses vuex. I installed vuex as can be seen in my package.json dependencies. </p>
<pre><code>{
"name": "blabla",
"version": "1.0.0",
"description": "blablaa",
"author": "blabla",
"private": true,
"scripts": {
"dev": "node build/dev-server.js",
"start"... | 1 | 1,665 |
why do Client send a RST packet during TCP handshake? | <p>I am puzzled by issue which my client program can't establish TCP connection to remote web server. </p>
<p>[<strong>scene</strong>]</p>
<p>Client program based on ubuntu server 12.04 LTS. </p>
<p>192.168.1.118 (Client program) <-------TCP---------> sync.oncecode.com (web server)</p>
<p>[<strong>phenomenon</st... | 1 | 1,036 |
Load custom data from folder in dir Pytorch | <p>I am getting my hands dirty with Pytorch and I am trying to do what is apparently the hardest part in deep learning-> <strong>LOADING MY CUSTOM DATASET AND RUNNING THE PROGRAM</strong><-- The problem is this " too many values to unpack (expected 2)" also I think I am loading the data wrong. Can someone please ... | 1 | 1,657 |
ERROR:flutter/lib/ui/ui_dart_state.cc(157) Unhandled Exception: type 'Future<dynamic>' is not a subtype of type 'FutureOr<Null> | <p>I'm trying handle error from http request in showDialog and then throw an error but i'm facing this bug</p>
<p><strong>Error</strong></p>
<blockquote>
<p>E/flutter (18769): #13 TextInput._handleTextInputInvocation
package:flutter/…/services/text_input.dart:968 E/flutter (18769): #14
MethodChannel... | 1 | 1,319 |
How do I call this function in CodeIgniter controller? | <p>I've got this code, but I'm not sure I make it work:</p>
<pre><code>/**
* Function: youtube data grabber
*
* @description :
* @param $ : video code, url type (embed/url)
* @return : data array
* @author : Mamun.
* @last -modified-by: Mamun.
*/
if (! function_exists('youtube_data_grabber'))
{
... | 1 | 1,287 |
Pass credentials to run batch script on remote computer with PowerShell | <p>I've been working on a script that will loop through a list of computers, uninstall old AV software if it's present and install our new AV software if it's not present. The script does this by executing two files: one is a batch script (called Sophos-Installation.bat) that will check for the presence of the old AV s... | 1 | 2,428 |
VC++ 2010: Weird Critical Section error | <p>My program is randomly crashing in a small scenario I can reproduce, but it happens in mlock.c (which is a VC++ runtime file) from ntdll.dll, and I can't see the stack trace. I do know that it happens in one of my thread functions, though.</p>
<p>This is the mlock.c code where the program crashes:</p>
<pre><code>v... | 1 | 1,333 |
Tracking external changes to a database with LINQ-to-SQL | <p>Is there a way to get SQL Server 2005 to call back to a connected application, such that the connected application will know when a record in a table has had a field modified by another application using the same database?</p>
<p>A simple example would be two instances of the same application connecting to the same... | 1 | 2,052 |
Installing PECL Extension GnuPG with XAMPP & OS X | <p>I've so far been unable to install this extension on my OS X machine. I've had no issues on CentOS or RedHat.</p>
<p>I've built gpgme-1.3.0 from source.</p>
<p><code>sudo /Applications/XAMPP/xamppfiles/bin/pecl install gnupg</code></p>
<p>Relvant output:</p>
<pre><code>`sudo /Applications/XAMPP/xamppfiles/bin/pe... | 1 | 7,608 |
How to fix IOException in retrofit | <p>i have been working on android project that has node.js backend that communicate with database in sql server and IOException keeps showing to me:</p>
<pre><code>caused by java.io.EOFException: \n not found: limit=0 content=…
</code></pre>
<p>this is the whole stack trace:</p>
<pre><code>W/System.err: java.io.IOEx... | 1 | 4,046 |
angular 2 - http get returns empty array | <p>My Component code:</p>
<pre><code>products: Product[];
constructor(private productService: ProductService) { }
ngOnInit() {
this.productService.getProducts()
.subscribe(
(products: Product[]) => {
this.products = products;
}
);
}
</code></pre>
<p>My HTML Code:</p... | 1 | 1,388 |
Managing one to many entities in sonata admin bundle | <p><br>
Imagine you are developing a website using symfony2 and it's admin panel using Sonata Admin Bundle and of course imagine you have a class named Product which owns some Images. Image is also a class and you have set in Product a one to many relation-ship to Image class. So every image is owned by a product, so ... | 1 | 3,567 |
add loading before the result show, i use glide for my image display | <p>please construct my code, i want a loading image while the result is not ready..</p>
<p>i use glide for this code..</p>
<pre><code>imageView = (ImageView) rootView.findViewById(R.id.imageView);
Glide.with(getActivity()).load("http://joehamirbalabadan.com/android/android/imghome/index1.png").diskCacheStrategy(DiskC... | 1 | 1,197 |
"TypeError: Cannot call method 'match' of undefined" Morris JS in Angular JS directive | <p>I'm trying to make a directive in Angular JS to use a Morris JS graph, here's my code.</p>
<p>I'm getting an error in the console that point me to the "new Morris.Line({" line. What should I do? Thanks.</p>
<pre><code>Reporting.directive('ngMorrison', function() {
return {
//require: '^ngModel',
... | 1 | 1,608 |
ActionMailer not sending mail in Rails 3.1.1 | <p>I'm getting error in ActionMailer when my worker is trying to send email</p>
<pre><code>Errno::ECONNREFUSED
Connection refused - connect(2)
/Users/bhushan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/smtp.rb:546:in `initialize'
/Users/bhushan/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/smtp.rb:546:in `ope... | 1 | 1,283 |
org.scribe.exceptions.OAuthException: Response body is incorrect. Can't extract token and secret from this: 'Invalid request token' | <p>can someone help me with this code? Everything goes great till this point.</p>
<pre><code>Token accessToken = service.getAccessToken(requestToken, verifier);
</code></pre>
<p>After that I get this error.</p>
<blockquote>
<p>ERROR
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor-
Response body... | 1 | 3,938 |
Html Helper 'Action' is Undefined, Asp.NET Core 2.2 | <p>I am brand new to ASP.NET Core MVC. I'll preface this question by saying I have read the other similar questions, but they weren't exactly the same problem I am having.</p>
<p>I am trying to implement a dynamic left side navigation, where each of the buttons are loaded from my database.</p>
<p>When I call <code>@Htm... | 1 | 3,476 |
TypeError: Fetch argument array has invalid type numpy.ndarray, must be a string or Tensor. (Can not convert a ndarray into a Tensor or Operation.) | <p>
I am trying to reproduce the results in siaseme LSTM to compare the semantic similarity of two sentences from here :- <a href="https://github.com/dhwajraj/deep-siamese-text-similarity" rel="nofollow noreferrer">https://github.com/dhwajraj/deep-siamese-text-similarity</a></p>
<p>I am using tensorflow 1.4 & pyth... | 1 | 2,714 |
How to show AlertDialog in a fragment | <p>I'm a beginner in both Java and Android, please help.I want to put the Alert Dialog in a fragment but I ended up copying most of the code in the below class so both classes contains almost the same code. Could you tell me how can I separate the code without copying most of it in my Fragment class? </p>
<p>Thank you... | 1 | 1,317 |
Add a Windows Slave | <p>I have a Jenkins Master running on Linux and I want to add a Windows Slave.
Currently I am not able to start the slave:</p>
<p>1) Java Web Start</p>
<p>-> Java Web Start is removed in JDK 11 (and was never part of OpenJDK), so as we want to switch our Jenkins to run with openjdk11, this won't work anymore, so I di... | 1 | 1,459 |
Hazelcast Node failed to start | <p>I am working on a spring boot project(member1) that uses hazelcast as a cache. I have another project(member2) which i want to join as a member.
This is the configuration of the member1</p>
<pre><code>@Bean
public Config hazelcastConfig() {
Config config = new Config()
.setClusterName(&qu... | 1 | 10,589 |
How do I solve javac compiler error, "package com.sun.tools.internal.ws.processor.model does not exist"? | <p>I'm seeing a bizarre error when I do a Maven build, launched through Jenkins, using Java 6. I get errors during my test-compile phase, which are</p>
<pre><code>[ERROR] /scratch/jenkins/workspace/subco/subco/myproject/src/test/java/org/mainco/subco/ebook/mvc/ CorrelationUpdateControllerTest.java:[77,48] error: pac... | 1 | 6,090 |
Why is javascript files generated by dart is so huge? | <p>I have the following dart code:</p>
<pre><code>$ cat helloworld.dart
main() => print('Hello world!');
$
</code></pre>
<p>The javascript code generated by the dart compiler for the above code is as follows:</p>
<pre><code>$ cat helloworld.dart.app.js
function native_ListFactory__new(typeToken, length) {
ret... | 1 | 1,503 |
React TypeScript: How to call an api and set state each time the route changes | <p>useEffect fires perfectly each time I change the route, When I call the API from within useEffect, and then try to set state with the result I get the error <code>Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subs... | 1 | 1,102 |
The named parameter 'key' is required, but there's no corresponding argument.-in flutter app developing | <p>I'm getting this error called The named parameter 'key' is required, but there's no corresponding argument. I'm developing a simple BMI calculator app using flutter, android studio. didn't understand about the error I'm new to flutter. can anyone tell me what to do about this error? followed up this <a href="https:/... | 1 | 3,719 |
How to find which process is leaking file handles in Linux? | <h2>The problem incident:</h2>
<p>Our production system started denying services with an error message <strong>"Too many open files in system"</strong>. Most of the services were affected, including inability to start a new ssh session, or even log in into virtual console from the physical terminal. Luckily, one root ... | 1 | 1,234 |
Dynamically Update Side Menu in Ionic 2 | <p>I have a side menu in ionic 2 which I am trying to update after user logs in. I am using Events from ionic-angular. Here is what I have done.</p>
<p>app.component.ts</p>
<pre><code>import { Component, ViewChild } from '@angular/core';
import { Platform, Nav, AlertController, MenuController, Events } from 'ionic-an... | 1 | 1,752 |
S3 PUT doesn't work with pre-signed URL in javascript | <p>I have generated a pre-signed S3 URL in java for HTTP PUT method. </p>
<p>A slightly modified version of the URL:</p>
<p><code>https://s3.amazonaws.com/somebucket/pre-signed-url-key-2?AWSAccessKeyId=BKIAIQ6H5Z7BG6KZ2ZUA&Expires=1425617244&Signature=GWcRM5ZIrAKnMJBsxyfm%2F9fyuBk%3D</code></p>
<p>I know tha... | 1 | 2,625 |
JDK-9 won't let me use Strings: "java.lang.String is ambiguous"? | <p>A week ago, every project I had was working normally, but when I updated my Eclipse to the Oxygen version and installed JDK-9, things have come strange.
When I try to use Strings, after some time (more like every time I save the project) the compiler throws me an error for every String in my project.</p>
<hr>
<h2... | 1 | 10,034 |
Omnifaces exception on deployment on Tomcat 7 | <p>I'm trying to add Omnifaces 2.1 to a web application to use FullAjaxExceptionHandler and possibly other functionality in Omnifaces 2.1.</p>
<p>I've read and followed following post by BallusC and am still stuck:
<a href="https://stackoverflow.com/questions/18995951/how-to-install-and-use-cdi-on-tomcat/19003725#1900... | 1 | 2,963 |
How to connect Android emulator with local mysql database | <p>I want to connect mysql database locally with android emulator. I used http GET and POST methods for accessing data from Google Cloud SQL with app engine but i want to connect it with locally using phpmyadmin..</p>
<p>when i use following code it show Toast for connection failed</p>
<pre><code> String resul... | 1 | 1,428 |
Zeppelin LDAP authentication | <p>I am trying to enable LDAP authentication for Zeppelin. The configuration in shiro.ini looks like this : </p>
<pre><code>ldapRealm = org.apache.zeppelin.server.LdapGroupRealm
ldapRealm.contextFactory.environment[ldap.searchBase] = ou=abcIds,ou=abcPeople,o=abc
ldapRealm.contextFactory.url = ldap://hostnamte.co.com:... | 1 | 2,608 |
How to check user is logged in or not with phone authentication using firebase in flutter? | <p>Here, I'm authenticated through the phone number with OTP code using firebase but
after login succeeded, it navigated through home page but when I click on back
it drags me login Screen.</p>
<p>here, the code I have tried, but it doesn't work</p>
<pre class="lang-dart prettyprint-override"><code> @override
void... | 1 | 1,402 |
My jsp cannot find my servlet, giving me a 404 | <p>I am trying to submit a simple form for processing in a servlet, but I keep getting a 404 whenever I submit. The code compiles and deploys fine. I've been through just about every tutorial on the subject, so I understand that there is a lot of information out there about it. Any advice on which rookie mistake I a... | 1 | 1,208 |
jqGrid : "All in One" approach width jqGridEdit Class > how to set a composite primary key? | <p>How to set a composite primary key for a "All in One" approach (grid defined in JS file, and data using jqGridEdit Class in php file) ?
Please, for me a composite primary key of a table T, is a elementary primary key that is defined with some fields belong to this table T !</p>
<p>Here is my test, but i get no data... | 1 | 1,733 |
CakePHP 3 : select data from multiple table | <p>I have two tables <code>services</code> and <code>service_requests</code>. <code>service_requests</code> table has foreign key <code>service_id</code> referencing <code>services</code> table.</p>
<p>I have to select data from <code>services</code> and <code>service_requests</code> where <code>services.id = service_... | 1 | 1,361 |
How to save data by using SharedPreferences in a Fragment | <ol>
<li>I'm having a problem with saving data permanently. It should be simple, I'm sending data to another Fragment and it works perfectly, however, I have no idea how to save data.<br>
I tried something, but I was wondering if you could help me out. </li>
</ol>
<p>In my code, I'm sending a data to another Fragment ... | 1 | 1,373 |
Netbeans 9 Maven Resource Plugin Dependancy Could Not Be Resolved? | <p>I have a maven project that I was building in Netbeans 8 that compiled before moving to Netbeans 9. </p>
<p>Netbeans 9 is running Java 10 and so is my project (I changed this after moving to Netbeans 9) and the POM says that it is running version 10 as well.</p>
<p>When I try to build the project I get this error ... | 1 | 9,464 |
jQuery UI sortable and live() click problem -- need to click twice after sorting for click to register | <p>I have a table I'm using jQuery UI's "sortable" on. In the table, I have rows consisting of a "drag handle" to grab and reorder the table, and cells with clickable items, like this:</p>
<pre><code><table id="test-table">
<tbody>
<tr>
<td class="handle"><div class="ui-icon ... | 1 | 1,087 |
The correctness of creating a thread inside a loop | <p>I am not sure whether such code is safe or not. I need to read a name from the DB, and I need to use, say 10 threads, each one take a name, then inside the <code>run</code> it calls a function that needs this name as an argument. </p>
<p>Is 10 threads a suitable number for pc running Intel core i7 with 8GB RAM ?? H... | 1 | 1,043 |
XMLHttpRequest & FormData not submitting data | <p>I am trying to submit a form via ajax using the <code>post</code> method and a <code>FormData</code> object.</p>
<p>Here is a simplified version of the JavaScript:</p>
<pre><code>var form=…; // form element
var url=…; // action
form['update'].onclick=function(event) { // button name="update"
var... | 1 | 1,161 |
How to retrieve data and specific user data from the Firebase | <p>I am having problem in retrieving data from firebase. I have one root user's node and then inside that root I have one userID child node. Inside that child node I am storing user information according to its blood group.</p>
<p>Now, what I want is to fetch the name and email according to blood group, say fetch all ... | 1 | 1,070 |
A way to push buffered events in even intervals | <p>What I'm trying to achieve is to buffer incoming events from some IObservable ( they come in bursts) and release them further, but one by one, in even intervals.
Like this:</p>
<pre><code>-oo-ooo-oo------------------oooo-oo-o-------------->
-o--o--o--o--o--o--o--------o--o--o--o--o--o--o---->
</code></pre>
... | 1 | 1,119 |
Saltstack - Parsing YAML properties file to set Jinja variables - For loop | <p>I try to parse a propertie file with Jinja for setting variables.</p>
<p>I have mutiple categories and sub-categories in this file like :</p>
<ul>
<li>jboss_container
<ul>
<li>some properties</li>
<li>foobar</li>
</ul>
</li>
<li>jboss_datasource_install
<ul>
<li>datasource1
<ul>
<li>prop1</li>
<li>prop2</li>
</ul>
<... | 1 | 1,145 |
deadlock detected when trying to start server | <p>I have a simple application where I am using both django and django-rest-framework.</p>
<p>Quite often, when I try to start the local server (<code>python manage.py runserver</code>), I get the following exception:</p>
<pre><code>Watching for file changes with StatReloader
Exception in thread Thread-1:
Traceback (... | 1 | 1,632 |
Insert formula in each cell based on amount of rows | <p>Any help appreciated..</p>
<p>My Code</p>
<pre><code> /**
* Admin Excel Export Function().
*/
function work_record_export_admin(){
require('inc/php-excel.class.php');
$objPHPExcel = new PHPExcel();
$objPHPExcel->getActiveSheet()->setTitle('Work Record');
$objPHPExcel->setActiv... | 1 | 1,934 |
C++ Priority Queue Class with Linked List | <p>I am having two issues with my c++ code (The test file is below): </p>
<p>I can't seem to figure out why its not breaking out of the while loop, when running, its stuck on the loop "7 versus 325".</p>
<p>So it should go into the next node of temp, which would be null, and then jump into the section where it adds i... | 1 | 2,715 |
Symfony 4 "code": 401, "message": "Invalid credentials." jwt authentication error | <p>I'm trying to make a jwt authentication with Symfony 4 </p>
<p>I configured my project as follow </p>
<pre class="lang-yaml prettyprint-override"><code>// security.yaml
security:
encoders:
App\Entity\User:
algorithm: auto
# https://symfony.com/doc/current/security.html#where-do-use... | 1 | 2,492 |
Cannot open database, Login failed for user | <p>I'm running the nerddinner MVC application on visual studio, and the database is on sql server 2008. I was previously having problems with permissions, etc but I seemed to have these sorted.</p>
<p>I created a user - taraw in SQL Server Management Studio, and got this all working. I can log into it fine. </p>
<p>W... | 1 | 2,335 |
Dynamically add row to table in Angular | <p>I have a table and would like to dynamically add a row to that table. Below is my code!</p>
<pre><code><tr *ngIf="customer">
<td>4</td>
<td>
<input type="text" name="firstName" required minlength="2">
</td>
<td>
<input type="text" name="lastName" required... | 1 | 1,316 |
Q-learning in a neural network - Mountain Car | <p>So I've been reading about Q-learning and Neural networks. I believe I have the right idea for it however I would like to have a second opinion on my code for NN and updating with Q-values.</p>
<p>I have created a MatLab implementation of the Mountain Car problem and my neural net, I am using neural network toolbox... | 1 | 1,766 |
How to enable compression in a PHP app on heroku? | <p>I am running HTML5 Boilerplate compression in my .htaccess file on a heroku app. However, it doesn't seem to be working and none of the files are actually being compressed.</p>
<p>I added the heroku php buildpack with:</p>
<pre><code>heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php
<... | 1 | 1,167 |
request is missing from context | <p>I'm trying to use <strong>django-localeurl</strong> in one of my project, but following the docs I just get an Error. What I want, is make work this code in the template:</p>
<pre><code> {% load i18n %}
{% load localeurl_tags %}
{% get_available_languages as LANGUAGES %}
{% get_current_language as LA... | 1 | 1,347 |
Rails: Deploying to Heroku, Many Problems | <p>Trying to deploy my rails app to Heroku for the first time, I ran into many problems. The app crashed, and you can look at the logs in the image: <a href="https://i.stack.imgur.com/bsx1b.png" rel="nofollow noreferrer">http://i.stack.imgur.com/bsx1b.png</a>
<br>
<br>
Even worse, when I tried to look at my application... | 1 | 1,864 |
Adding Ajax.ActionLink to DataTable column while using server-side processing? | <p>Alright, so I was unable to find any posts with people trying to do this.</p>
<p>I have an MVC4 razor view which contains a jQuery DataTable with a list of Vendor data. In the 1st column I have added 3 buttons: info/edit/delete, which <strong>open a partial view in a hidden div</strong> to the right of the table. I... | 1 | 3,307 |
php calculator displaying code in webrowser | <p>I have been working on a OOP calculator in php however I have a problem: whenever I save it and run it in firefox it shows the code like this </p>
<p><img src="https://i.stack.imgur.com/uyBA5.png" alt="Image"></p>
<p>Stack overflow wants me to add some more description so blah blah blah blah</p>
<p>The code I hav... | 1 | 1,669 |
Attempted to call function from namespace | <p>Got this error, and don't understand it.. Thanks in advance for your help :D</p>
<p>Info :<br>
- Symfony 3<br>
- Ubuntu 15.x </p>
<pre><code>Attempted to call function "mcrypt_create_iv" from namespace "AppBundle\Controller".
</code></pre>
<p>Use and class :</p>
<pre><code><?php
namespace AppBundle\Controll... | 1 | 1,207 |
Android text layout question: two textviews, side-by-side, with different layout alignments and weights | <p>I'm still a bit of an Android noob, forgive me if this is simple and I'm just not seeing it.</p>
<p>There are two portions of text in a view that spans the entire width horizontally, but is only as high as one line of text. The left side must always be displayed in full, but should take no more horizontal space th... | 1 | 3,334 |
How to save binary file on client in jquery .post | <p>I have handler with this code:</p>
<pre><code> HttpRequest request = context.Request;
HttpResponse response = context.Response;
if (request["Type"] != null)
{
try
{
string resultFile = null;
string fileName = string.Empty;
int type = Convert.ToInt... | 1 | 1,572 |
Generating an SAS Token in Java to download a file in an Azure Data Storage container | <p>Trying to generate an SAS Token to access certain files in a Storage Account. I'm using the methods listed here:</p>
<p><a href="https://docs.microsoft.com/en-us/rest/api/eventhub/generate-sas-token" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/rest/api/eventhub/generate-sas-token</a></p>
<p>Now, th... | 1 | 1,255 |
Understanding build log for "Found conflicts between different versions of "Microsoft.WindowsAzure.Storage" that could not be resolved." | <p>The build log from Visual Studio 2017 (15.5.4) has left me stumped on how to get rid of the warning </p>
<blockquote>
<p>Found conflicts between different versions of "Microsoft.WindowsAzure.Storage" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to de... | 1 | 2,622 |
ng-dropdown-panel in ng-select - how to keep its custom styles even when appendTo="body" is used | <p>For demonstartions created a Stackblitz with almost an empty project with <code>ng-select</code> with no extra custom styles. And getting this issue of width of the <code>ng-dropdown-panel</code> when I am passing <code>appendTo="body"</code></p>
<p><a href="https://stackblitz.com/edit/github-byjnda" rel="nofollow ... | 1 | 1,123 |
Twitter POST problems using api 1.1 | <p>We've just changed to Twitter api 1.1, and now Tweeting doesn't work & returns an error "The remote server returned an error: (400) Bad Request." Researching on SO about this suggests that it's something to do with authentication, but we are sending the accessToken & secret which we've just got from the log... | 1 | 1,897 |
WinRT XAML and programmatically setting focus to TextBox - Why Focus doesn't stick? | <p>My Windows 8 XAML page contains two controls: Image and TextBox. When the user doubletaps Image, I want to move the focus to TextBox so that the virtual keyboard is automatically displayed. </p>
<p>The problem: The TextBox control correctly receives the focus, but only for 0.1 seconds. The focus then moves to somew... | 1 | 1,254 |
Ubuntu 14.04 Server: Apache2 issue with phpMyAdmin | <p>I have installed Apache 2, and it is working fine. I have installed PHP 7, and everything works fine, But when I install phpMyAdmin, Apache 2 stops working. When checking Apache 2, it even does not load the default page.</p>
<p>When I restart Apache 2, the following error comes up:</p>
<pre><code>root@ip-172-... | 1 | 2,355 |
How do I use pandas' rolling_std to consider two columns in its observation? | <p><strong>Data:</strong></p>
<pre><code>{'Open': {0: 159.18000000000001, 1: 157.99000000000001, 2: 157.66, 3: 157.53999999999999, 4: 155.03999999999999, 5: 155.47999999999999, 6: 155.44999999999999, 7: 155.93000000000001, 8: 155.0, 9: 157.72999999999999},
'Close': {0: 157.97999999999999, 1: 157.66, 2: 157.53999999... | 1 | 1,300 |
Jquery ajax request with async:true does not return value | <p>With async:set to false, the function is returning the correct value. However it blocks the browser. I've tried to add callbacks but it not returning the correct value!</p>
<pre><code>function find_route(array_bustops){
var myresults;
$.ajax({
type: 'POST',
async: tr... | 1 | 1,037 |
How do I get the position of a togglebutton that is clicked in a gridview? | <p>How do I get the position of the android togglebutton that was clicked in a gridview?</p>
<p>If I use the following example code I dont get a Toast message of the position.</p>
<pre><code>public class HelloGridView extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(... | 1 | 1,558 |
how to validate if string is date with jquery | <p>How to parse if string is valid date. I tried everything in the web, and nothing works. I know that the question is asked multiple times before, but even in the threads that say they solved the problem, does,not work for me. I start to asking myself is there a way at all.
I will send my code here. I have three text ... | 1 | 1,158 |
Setting header Authorization for https get request in Java | <p>I'm working on a client that consumes a rest API with header Authorization. I'm getting a hard time getting to work adding http header authorization. I'm using the code below:</p>
<pre><code>package com.javap;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONPa... | 1 | 1,187 |
WCF Timeout Error - Even after increasing the values | <p>My client keep complaining that they are receiving Timeout error but I don't see a trace file generated on my side. Can anybody tell me how to fix this?</p>
<p>I already increase the receiveTimeout to 15 minutes (00:15:00). I did this both on WCF service side and on the client side. My service is not a long running... | 1 | 1,804 |
delta lake - Insert into sql in pyspark is failing with java.lang.NoSuchMethodError: org.apache.spark.sql.catalyst.expressions.Alias | <p>Dataproc cluster is create with image <code>2.0.x</code> with delta io package <code>io.delta:delta-core_2.12:0.7.0</code></p>
<p>Spark version is 3.1.1</p>
<p>Spark shell initiated with :</p>
<pre class="lang-sh prettyprint-override"><code>pyspark --conf "spark.sql.extensions=io.delta.sql.DeltaSparkSessionExte... | 1 | 2,894 |
Avro Schema and Arrays | <p>In C# I can define these two POCOs to define generations </p>
<pre><code>public class Family
{
public List<Person> FamilyMembers {get; set;}
}
public class Person
{
public string FirstName {get; set;}
public string LastName {get; set;}
public List<Person> Children {get; set;}
}
</code></pre>
<p>I am a... | 1 | 2,299 |
Why can't I source my vimrc after installing vundle? | <p>I'm trying to get my Vim to update on the fly after editing vimrc. So I followed the instructions at <a href="http://vimcasts.org/episodes/updating-your-vimrc-file-on-the-fly/" rel="nofollow">Vimcast</a> which basically source vimrc every time you hit save.</p>
<p>But that doesn't work for some reason (when I save ... | 1 | 1,273 |
ESP8266 for Arduino IDE (xtensa-lx106-elf-gcc) and std::map linking error | <p>Is it possible at all to use map with ESP8266 for Arduino package?</p>
<p>Here is my code:</p>
<pre><code>#include <map>
typedef std::map<int, int> Items;
void setup() {
Items items;
items[2]=5;
//items.emplace(4,5);
}
void loop() {
}
</code></pre>
<p>Here is compilation/linking erorrs:</p>
... | 1 | 1,742 |
c++ pointer being freed was not allocated error | <p>I am practcing c++'s new/delete, hashfunction and linked.</p>
<p>I made a practice by myself.</p>
<p>I have a struct which is </p>
<pre><code>typedef struct student
{
int id;
string fName;
string lName;
student * nextStudent;
}Student;
</code></pre>
<p>Then in main function, I define an array of... | 1 | 1,047 |
Styling RSS feed using XSLT, issues with CDATA tags | <p>I am styling an RSS feed but having an issue with the following part:</p>
<pre><code><description>
<![CDATA[
<img src="http://l.yimg.com/a/i/us/we/52/34.gif"/><br /> <b>Current Conditions:</b><br /> Fair, 73 F<BR /> <BR /><b>Forecast:</b><BR /> Sa... | 1 | 1,423 |
JQPlot Hide Lines from Legend Click | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/14201911/dynamic-flot-graph-show-hide-series-by-clicking-on-legend-text-or-box-on-graph">Dynamic Flot graph - show hide series by clicking on legend text or box on graph</a> </p>
</blockquote>
<p>I am using JQP... | 1 | 1,960 |
JPA OneToMany list does not find mappedBy property which should be inherited | <p>We currently work on some requirements where we have to add some similar Entities (Pictures of cars, of pets, holiday pictures, …) which all belong to one owner (Person) to the database. We don't directly link the byte array, but work with references. Later on maybe a lot more of picture types are added so to keep c... | 1 | 3,351 |
Python TypeError: __init__() got multiple values for argument 'master' | <p>Trying to build a GUI in Python at the moment, and I'm stuck at this part in particular. Every time I try to run my code it just throws the error <code>TypeError: __init__() got multiple values for argument 'master'</code>. I can't seem to find where I'm passing it more than one value, and it's got me scratching my... | 1 | 1,183 |
Initialize with a parameter | <p>Here is my code, I want to know how put my for-loop limit (IE 8) has a parameter in my constructor, so I could build this view with a specific number of line? And then, how to initialize such view ?</p>
<p>Thank you!</p>
<pre><code>Ext.define('Prototype.view.FoodPanel', {
extend: 'Ext.Panel',
alias: 'widget.foodpa... | 1 | 1,309 |
NullPointerException in new Intent | <p>I'm trying to send a message from the <code>Service</code> and I receive an error</p>
<blockquote>
<p>Error at com.spynetstation.MediaService.notif(MediaService.java:162) </p>
</blockquote>
<p>which points to this line in the <code>Service</code>:</p>
<pre><code>Intent notificationIntent = new Intent(ctx, Medi... | 1 | 4,556 |
Getting System.Windows.Markup.XamlParseException while trying to run WP8 app | <p>I am writing Windows Phone 8 application and using MVVM light. I have written ViewModel and Model class of WP8 app into seperate PCL project.</p>
<p>While using Expression Blend it properly populate design time data. But when I try to run app in emulator it get following error. Could you please help me in figuring ... | 1 | 1,697 |
Opengl GL_QUADS produces error 0x506 | <p>I have some code in OpenGL to render a YUV image onto an OpenGL viewport. The program works without a problem when running on nvidia cards, but it generates an error when running over the Intel HD 3000, which sadly is the target machine. The point where the error is generated is marked in the code.</p>
<p>The shade... | 1 | 2,874 |
Data in Flask web app not updating [Python] | <p>I have a flask app that fills a html table with data that it gets from a <code>Pickle</code> file in the <code>static</code> folder. I have an external application that updates that Pickle file once a minute.</p>
<p>The <code>views.py</code> file opens up that Pickle file and loads the data, which is then sent to a... | 1 | 1,280 |
No package 'xkbfile' found when build vscode on Ubuntu | <p>I'm building VS Code from source on Ubuntu 18.04.2 LTS.
While running </p>
<pre><code>yarn run watch
</code></pre>
<p>as instructed on <a href="https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run" rel="noreferrer">https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run</a> and... | 1 | 1,398 |
Change Kubernetes nginx-ingress-controller ports | <p>I installed Minikube v1.3.1 on my RedHat EC2 instance for some tests. </p>
<p><strong><em>Since the ports that the nginx-ingress-controller uses by default are already in use, I am trying to change them in the deployment but without result. Could please somebody advise how to do it?</em></strong></p>
<p><strong>Ho... | 1 | 1,054 |
Angular Reactive Form Select dropdown has an empty option | <p>I'm having a reactive form with dropdowns. I'm showing user's selected dropdown items in the form. Values are getting from API. There are several drop-downs are generating and in every dropdown there's an empty option(blank item). But from the API side ,there are no blank items are coming. This is what I tried. Can ... | 1 | 1,205 |
pyvmomi - Listing of all VMs | <p>I have a lot of VM (dispatch with 2 hosts) and I would like to list all of them.</p>
<p>TO do that, i use this:</p>
<pre><code>atexit.register(connect.Disconnect, self.si)
content = self.si.RetrieveContent()
children = content.rootFolder.childEntity
for child in content.rootFolder.childEntity:
if has... | 1 | 6,105 |
Async execution of a long-running stored procedure via a webservice | <p>I have a SQL Server stored procedure responsible for manipulating a large amount of data that takes anywhere from 15 seconds to several minutes to run. I am trying to execute it asynchronously using an async MVC action invoked by a request from a desktop UI client. I seem to be doing everything exactly the way .NET ... | 1 | 1,417 |
NSMutableSet Set Minus Set Not Working | <p>I must be missing something fundamental - hopefully someone can point it out to me.</p>
<p>I have two NSSets. Set A contains 40 NSNumber values and set B contains 20 NSNumber values. Set A contains all of set B's 20 values plus 20 other values not shared by the sets. </p>
<p>What I'd like is to do: NSSet *newSet =... | 1 | 1,467 |
JSF: Attribute of session scoped managed bean becomes null | <p>I am playing with JavaEE 7 and tried to write a webapp with a simple login mechanism.</p>
<p>There is an EJB entity class persisted with JPA called <code>User</code> holding data about users. In the WAR, a session scoped managed bean called <code>UserManagedBean</code> is responsible for tracking the current user, ... | 1 | 2,396 |
Generate xlsx file with POI in a zip | <p>I export data in an xlsx files with the POI Api and added they're in a Zip file. When I open the zip I do not have any xlsx files but three directories (docProps, xl and _rels) and 1 file [Content_Types] xml. I think it's the xlsx file's description, but I don't understand why.</p>
<p>Code : </p>
<pre><code>public... | 1 | 1,054 |
JQuery UI datepicker is not working in Razor WebGrid edit mode | <p>I'm trying to implement MVC 4 WebGrid in my application. In edit mode, I want to apply JQuery UI datepicker in textbox.</p>
<p>In Javascript
</p>
<pre><code>$(function () {
$('.edit-mode').hide();
$('.edit-reg, .cancel-reg').on('click', function () {
var tr = $(this).parents('tr:first');
... | 1 | 3,142 |
Codeigniter, PHP constructor - missing argument even if it is present | <p>I am getting such a warning:</p>
<pre><code>A PHP ERROR WAS ENCOUNTERED
Severity: Warning
Message: Missing argument 1 for User_model::__construct(), called in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\CI_PP\system\core\Loader.php on line 303 and defined
Filename: models/user_model.php
Line Number... | 1 | 1,663 |
Table header fixed, scrollable body horizontal and vertical, variable cell width | <p>I realize this question has been asked quite a bit on Stack Overflow; however, after looking through a number of them, I believe my question has one more requirement. I want to transform a regular html table, into a table that can be scrolled both vertically and horizontally, while the header is fixed. The table in ... | 1 | 5,530 |
iPhone App rejected due to UIRequiredDeviceCapabilities | <p>This is twice that I am getting this message from apple for the reason of rejection. </p>
<hr>
<p>From <code>Apple</code></p>
<p>2.3 - Apps that do not perform as advertised by the developer will be rejected</p>
<p>2.3 Details</p>
<p>We attempted to review your app but were unable to install the app on iPhone. ... | 1 | 2,092 |
PHP: fopen failed "HTTP Request Failed", but response header has a status code 200 | <p>I have a PHP script, that should connect to a proxy, chosen from a proxy list and download a file. Some of the proxies (out of 200-400 working ones) work perfectly, but others don't, and I cannot find out why.</p>
<p>Here the code that connects through the proxy:</p>
<pre><code> $proxy = determine_proxy ($proxy... | 1 | 1,517 |
Unable to start activity with java.lang.NullPointerException on Fling | <p>When I am trying to fling example this error faced. with java Null pointer exception.
<strong>My java code</strong></p>
<pre><code>public class LearnCount extends Activity {
private FlingGallery mGallery;
public boolean onTouchEvent(MotionEvent event) {
return mGallery.onGalleryTouchEvent(event);
}
private... | 1 | 9,996 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.