title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Add button to an HTML page using Javascript | <p>I'm trying to modify the HTML markup of a page in order to add some button using JavaScript.</p>
<p>Below you can find a "snippet" (quite long, I apologize, but I really need you to get the structure of the page) of the page I am trying to modify.</p>
<p>My JavaScript code is inserted by a browser extension (I can... | 0 | 1,709 |
Remove text padding in Button view | <p>I would like to remove the padding around text in Button view.
The first screenshot is the result I would achieve, and the second one is the state of the art.</p>
<p><img src="https://i.stack.imgur.com/ZXJBn.png" alt="enter image description here"></p>
<p><img src="https://i.stack.imgur.com/Yy3nT.png" alt="enter i... | 0 | 1,085 |
Getting user location every n minutes after app goes to background | <p>I am trying to implement the suggestions given in <a href="https://stackoverflow.com/questions/6347503/how-do-i-get-a-background-location-update-every-n-minutes-in-my-ios-application">this post</a>.</p>
<p>Unfortunately the steps are not clear to me. I tried implementing those suggestions, but the backgroundTimeRem... | 0 | 1,612 |
How to query Many-To-Many SQLAlchemy | <p><a href="https://i.stack.imgur.com/P6LZu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/P6LZu.png" alt="enter image description here"></a></p>
<p>Import <code>Flask</code> and <code>SQLAlchemy</code> modules first:</p>
<pre><code>from flask import Flask
from flask_sqlalchemy import SQLAlchemy
</code></p... | 0 | 1,238 |
Google Places autocomplete Android - Not working | <p>I am new to Android App development.
I followed <a href="http://examples.javacodegeeks.com/android/android-google-places-autocomplete-api-example/" rel="nofollow">this toturial</a> to write a simple Google Places autocomplete Android App, but it does not return any suggestions when I start typing in the app; it giv... | 0 | 2,927 |
Making file transfer more efficient Java | <p>I have two wireless computers connected to an N wireless router. Each of these PCs are connected at between 108-150Mbps. </p>
<p>Theoretically, I should be able to transfer at 13.5MB/s to 18.75MB/s, under the absolute best of conditions.</p>
<p>The first computer (that is sending), uses a very fast SSD, which is a... | 0 | 1,191 |
java.lang.IllegalArgumentException: argument type mismatch | <p>I want to populate a list of strings from a form.</p>
<p>My form bean:</p>
<pre><code>public class TaskForm extends ActionForm{
List<String> task = new ArrayList<String>();
public List<String> getTask() {
return task;
}
public void setTask(List<String> task) { ... | 0 | 1,546 |
AutoMapper Project().To() and sorting a child collection | <p>I have an object graph that I'm loading from a database using EF CodeFirst and AutoMapper into DTOs:-</p>
<pre><code>public class Foo
{
public int Id { get; set; }
public virtual ICollection<Bar> Bars { get; set; }
}
public class Bar
{
public int Id { get; set; }
public int FooId { get; set; }
publ... | 0 | 1,060 |
Convert SOAP to a virtual Restful service? | <p>Is there a way to use my SOAP web service(spring-ws, java) as a XML based RESTful service virtually?</p>
<p>I don't want to re-write whole my SOAP web service into RESTful from scratch in java, but I need to access it through iphone using REST, which they already have easy native support.</p>
<p>XMLGateway, Proxys... | 0 | 1,825 |
Trying to use a buffer in VHDL - not working | <p>My code produces the following error when compiling:</p>
<p>ERROR:HDLCompiler:439 - "E:/ELECTRONIC ENGINEERING 2/DIGITAL/Resit_Year/Assignment_7_seg/4_Bit_Counter/Bit_Counter/counter_tb.vhd" Line 47: Formal port count_out of mode buffer cannot be associated with actual port count_out of mode out
ERROR:Simulator:777... | 0 | 1,613 |
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/a2424901/public_html/index.php on line 35 | <pre><code><?php
session_start();
require_once 'facebook.php';
$app_id = "418907881455014";
$app_secret = "36389d2c4caaf6de86982cb87686a494";
$redirect_uri = 'http://gooogle12.comuf.com';
$facebook = new Facebook(array(
'appId' => $app_id,
'secret' => $app_secret,
'cookie' => true
))... | 0 | 1,206 |
bundle failing - Can't find the PostgreSQL client library (libpq) | <p>I think I have tried all the suggestions I could find regarding this issue. Still not working for me.</p>
<p>When I try to bundle ...</p>
<pre><code>$ bundle
...
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ru... | 0 | 1,077 |
Mysql Trigger Loop for query result with many rows | <p>hi i have a database with many tables and foreign keys like this</p>
<pre><code>CREATE TABLE IF NOT EXISTS `articulos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(63) NOT NULL,
`contenido` text NOT NULL,
`normas_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AU... | 0 | 1,185 |
Blueimp Jquery File Upload : Doesn't show thumbnail preview image | <p>I used <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow noreferrer">Blueimp jQuery File Upload</a> in my Rails application. When user select files, I want to show thumbnail of the image and the name of the image before uploading files to server.</p>
<p>I have been referring the <a href="http://... | 0 | 2,213 |
Check for duplicates in JSON | <p>I have a json object:</p>
<pre><code> var object1 = [{
"value1": "1",
"value2": "2",
"value3": "3",
},
{
"value1": "1",
"value2": "5",
"value3": "7",
},
{
"value1": "6",
"value2": "9",
"value3": "5",
},
{
"value... | 0 | 1,061 |
Configure WCF Client to consume a WCF Service using HTTP GET | <p>I have a WCF Service which allows only HTTP GET requests:</p>
<pre><code>[WebInvoke(Method="GET", ResponseFormat=WebMessageFormat.Json)]
public string GetAppData()
</code></pre>
<p>The service is exposed using webHttpBinding</p>
<pre><code><system.serviceModel>
<bindings>
<webHttpBinding>
... | 0 | 1,084 |
Escaping strings for gsub | <p>I read a file:</p>
<pre><code>local logfile = io.open("log.txt", "r")
data = logfile:read("*a")
print(data)
</code></pre>
<p>output:</p>
<pre><code>...
"(\.)\n(\w)", r"\1 \2"
"\n[^\t]", "", x, re.S
...
</code></pre>
<p>Yes, logfile looks awful as it's full of various commands</p>
<p>How can I call <code>gsub</c... | 0 | 1,307 |
AdMob: Missing required XML attribute adUnitID | <p>I'm new to the ad stuff, and I can't get it working.
I've done what's stated at <a href="http://code.google.com/intl/nl-NL/mobile/ads/docs/android/banner_xml.html" rel="nofollow noreferrer">http://code.google.com/intl/nl-NL/mobile/ads/docs/android/banner_xml.html</a>.</p>
<p>This is my main.xml:</p>
<pre><code><T... | 0 | 1,065 |
Implementing Simple SeekBar in android | <p><strong>Filters.java</strong></p>
<pre><code>public class Filters extends Activity implements OnSeekBarChangeListener{
private SeekBar PRICEbar,DISTANCEbar, RATINGbar; // declare seekbar object variable
// declare text label objects
private TextView PRICEtextProgress,DISTANCEtextProgress, RATINGtextProgr... | 0 | 1,713 |
Spring MVC - HTTP Status 500 - Servlet.init() for servlet loginDispacher threw exception | <p>I have made a simple program but getting following error. I am using Eclipse Kelper and Tomcat 7.0. Tried a lot of things, but nothing is working for me :(</p>
<blockquote>
<p>HTTP Status 500 - Servlet.init() for servlet loginDispacher threw
exception</p>
<hr>
<p>type Exception report</p>
<p>mess... | 0 | 4,923 |
Creating java code to prompt user for password and allow only 3 attempts then quit the programme | <p>I have been experimenting with trying to get the code below running WITHOUT using a break statement (but i can't figure it out)</p>
<pre><code>import java.io.*;
import java.util.*;
public class Password
{
public static void main (String [] args)
{
final String PASSWORD = "Test";
for (int p... | 0 | 1,128 |
How to correctly read decoded PCM samples on iOS using AVAssetReader -- currently incorrect decoding | <p>I am currently working on an application as part of my Bachelor in Computer Science. The application will correlate data from the iPhone hardware (accelerometer, gps) and music that is being played.</p>
<p>The project is still in its infancy, having worked on it for only 2 months.</p>
<p>The moment that I am right... | 0 | 2,837 |
docker.errors.DockerException: Error while fetching server API version | <p>I want to install this module but there is something wrong when I try the step <code>docker-compose build ...</code></p>
<p>I tried to update the Docker version and restart Docker many times. But it didn't work.</p>
<pre><code>git clone https://github.com/uhh-lt/158.git
cd 158
docker-compose build
</code></pre>
<pre... | 0 | 1,413 |
Module RCTEventEmitter is not a registered callable module (calling receiveTouches) | <p>When i try to run the app after some changes i get this error.
What i'm doing wrong ? </p>
<blockquote>
<p>Module RCTEventEmitter is not a registered callable module (calling
receiveTouches)
__callFunction
C:\Users\Andrea Zani\Documents\WORK\weatherApp\node_modules\react-native\Libraries\BatchedBridge\M... | 0 | 2,716 |
JAVA ldap error NO_OBJECT | <p>I'm in trouble with this error when I change a password or update user's info.
I've tried so many codes that are similar each others, but I still got the error.
The problem can be a bad CN definition, but should be correct in my case and I'm really sad about this because I cannot face the problem.</p>
<ul>
<li>Conn... | 0 | 1,186 |
Get JSON result with GET request and parameters with Alamofire | <p>This is my url String with paramaters.
<a href="http://api.room2shop.com/api/product/GetProducts?categoryId=22&filter=2&pageNumber=1" rel="nofollow noreferrer">http://api.room2shop.com/api/product/GetProducts?categoryId=22&filter=2&pageNumber=1</a> through which I am getting my JSON data. I have AFWr... | 0 | 1,417 |
c# XML Schema validation | <p>I have a nice XML file like this:</p>
<pre><code> <?xml version="1.0" encoding="utf-8" ?>
<Assets Path="C:\Users\r3plica\Google Drive">
<Assetd>
<FileName>Boomerang - Error codes.xlsx</FileName>
<DisplayName>Boomerang - Error codes</Displ... | 0 | 2,648 |
What Java encryption algorithms should I use? | <p>I'm working on a program that needs to store binary information encrypted at rest. Unfortunately, I can't seem to find a resource that explains which encryption schemes are best for different applications.</p>
<p>Since encryption is complicated and I'm not an expert, I've decided to use a library called <a href="ht... | 0 | 1,212 |
PowerPivot DAX: Identify Max & Min Value per Group | <p>I am in need of identifying the maximum and minimum value per a defined group within a PowerPivot connected PivotTable.</p>
<p>Please reference the following base Excel table (posted via ASCII) that is linked to a corresponding PowerPivot table: </p>
<pre><code>-------------------------------------------------
Cus... | 0 | 1,759 |
C# Web - localhost:port works, 127.0.0.1:port doesn't work | <p>I just finished adding C# Web API components (Web API Models & Controllers) to a <code>localhost</code> copy of an existing project.</p>
<p>This Web API's GET-methods should be called from an Android app. In <a href="http://developer.android.com/tools/devices/emulator.html#networkaddresses" rel="noreferrer">thi... | 0 | 2,403 |
AJAX/PHP based upload with progress bar for large files | <p>I've been trying to create a non-flash upload panel which also shows a progress bar.
On our server we have PHP 5.3 (cannot upgrade to 5.4 for now, so the new upload progress feature cannot be used => <a href="http://php.net/manual/en/session.upload-progress.php" rel="nofollow">http://php.net/manual/en/session.upload... | 0 | 1,228 |
How to use access token with PHP SDK and retrieve user_activities parameter using fql? | <p>I was wondering how to use access token obtained by the getAccessToken() in PHP SDK
Following is my code snippet trying to display user email id as well as user activities :
When I run this code emAIL AND USER ACTIVITIES are blank how do I fix this?</p>
<pre><code> <?php
require '/home/vespanve/publi... | 0 | 1,723 |
Getting android.content.res.Resources$NotFoundException: exception even when the resource is present in android | <p>Please let me know where I am going wrong to get the error.</p>
<p>I am creating an app which have one of its activity to be only in landscape mode. So I added the following in <em>AndroidManifest.xml</em> file</p>
<pre><code><activity android:name=".LandScapeImageActivity" android:screenOrientation="landscape"... | 0 | 1,607 |
GraphQL ERESOLVE unable to resolve dependency tree when building my docker container | <p>Here are my files.</p>
<p>Here is I think the core of the problem.</p>
<pre><code>Could not resolve dependency:
npm ERR! peer graphql@"^0.12.0 || ^0.13.0 || ^14.0.0" from graphql-middleware@4.0.2
</code></pre>
<h1>docker-compose.yml</h1>
<pre><code>version: '3.7'
services:
apollo:
container_name: ap... | 0 | 1,202 |
How to parse an XML file and write in data then save it | <p>I am working on something like the following:</p>
<ol>
<li>An Excel sheet with some cells where the end user is asked to enter
required values; done </li>
<li>Code that read values entered in these cells
by end users; </li>
<li>Load an XML file; done </li>
<li>Parse it and then write the values retrieved from Exc... | 0 | 2,154 |
How to encode H.264 video using FFmpeg C API and then open the output with a media player? | <p>I'm trying to encode a H.264 video with the FFMPEG C API.
I have successfully compiled and executed the <a href="http://ffmpeg.org/doxygen/trunk/doc_2examples_2decoding_encoding_8c-example.html" rel="nofollow">decoding/encoding example</a> provided by FFMPEG.</p>
<p>The problem I'm facing is that the .mpg file (enc... | 0 | 1,612 |
Google Apps Script - Send Email based on date in cell | <p>I've looked around and have bits and pieces but can't put the puzzle together. I'm attempting to create a script that will run on a trigger configured to run daily. The trigger will be setup under Resources option in the editor.</p>
<p>Basically I'm looking for the script to capture a range of cells, identify a d... | 0 | 1,504 |
PHP pagination - next/previous button | <p>I'm trying to learn PHP pagination. So far I can paginate through numbers, but previous/next buttons are appearing on the left and right of each page number, <a href="https://i.stack.imgur.com/QXJMJ.jpg" rel="nofollow noreferrer">like this</a>. </p>
<p>Here is the code I am using to generate pagination:</p>
<pre><... | 0 | 1,924 |
Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: java.base doesn't "opens java.util" to unnamed module | <p>I have created a Cucumber feature file and steps file, then I have clicked "Run configurations" for feature file and I see the following in the console. How can I solve this problem?</p>
<pre><code>*Feature: Login into account
Existing user should be able to login to account using correct credentials
... | 0 | 3,147 |
How to use RestTemplate with application/octet-stream response type | <p>I am using a <a href="http://isbndb.com/api/v2/docs" rel="noreferrer">ISBNdB</a> to get info about the books.The reponse type is application/octet-stream. A sample json response I get looks as follows </p>
<pre><code>{
"index_searched" : "isbn",
"data" : [
{
"publisher_id" : "john_wiley_sons_inc",
"publ... | 0 | 1,162 |
Azure Container generates error '503' reason 'site unavailable' | <h1>The issue</h1>
<p>I have built a docker image on my local machine running windows 10</p>
<ol>
<li><p>running <code>docker-compose build</code>, <code>docker-compose up -d</code>and <code>docker-compse logs -f</code> do generate expected results (no error)</p>
</li>
<li><p>the app runs correctly by running <code>win... | 0 | 2,042 |
PHP script to extract artist & title from Shoutcast/Icecast stream | <p>I found a script which can extract the artist & title name from an Icecast or Shoutcast stream.
I want the script to update automatically when a song changed, at the moment its working only when i execute it. I'm new to PHP so any help will be appreciated.
Thanks!</p>
<pre><code>define('CRLF', "\r\n");
class s... | 0 | 4,087 |
cxf inbound and outbound message logging to the separate log file | <p>I looked up all messages but did not find a clear answer for that question.</p>
<p>How can I configure logging to log CXF inbound and outbound restful messages ?</p>
<p>I have the following setup.</p>
<ul>
<li><p>File org.apache.cxf.Logger with</p>
<pre><code>org.apache.cxf.common.logging.Log4jLogger
</code></pr... | 0 | 1,050 |
How to make ARM cross compilation on Mac OS X (error: invalid listing option `r' - cross compiling error) | <p>I'm trying to build a gcc cross compiler on Mac OS X, the target is <code>arm-elf-eabi</code>.</p>
<p>This is what I've done so far:</p>
<h3>Install gcc and environmental setup</h3>
<p>I tried not to use clang/llvm from Mac, so I used the gcc-4.8 from brew.</p>
<pre><code>brew tap homebrew/versions
brew install... | 0 | 1,170 |
How to add AnimatedTabControl in MahApps.Metro? | <p>I have started learning <code>MahApps.Metro</code>. I read the documentation and got a problem. How to add <code>AnimatedTabControl</code>?</p>
<p>I've included <code>ResourceDictionaries</code>:</p>
<pre><code> <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
... | 0 | 1,257 |
Heroku deployment failed because of sqlite3 gem error | <p>I just started the ruby.railstutorial.org book by Michael Hartl and have been working through the first chapter. I am using mac book OS X, Terminal, and Sublime Text. Everything has gone according to plan, up until it was time to test deployment to Heroku. I am able to connect to Heroku and run the <code>$ git push... | 0 | 1,189 |
How to use plot_trisurf | <p>After updating matplotlib version from 1.3.1 to 2.0.2, when I want to use plot_trisurf to generate a TIN by 3d-points, I got an incomprehensible results. My test code is following:</p>
<pre><code>import sys
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
from matplotlib i... | 0 | 1,110 |
Looping through a JSON array in Python | <p>I have the following data taken from an API. I am trying to access the restaurant name using a Python script and have the script display it. Here are my files:</p>
<p>test.py</p>
<pre><code>with open('data.json') as data_file:
data = json.load(data_file)
for restaurant in data:
print data ['res... | 0 | 1,149 |
RESTEasy Client + NoSuchMethodError | <p>I am trying to write simple RESTEasy client. Below given is sample code:</p>
<pre><code>Client client = ClientBuilder.newBuilder().build();
WebTarget target = client.target("http://localhost:8080/context/path");
Response response = target.request().post(Entity.entity(object, "application/json"));
//Read output in ... | 0 | 3,486 |
How do I send arbitrary JSON data, with a custom header, to a REST server? | <p>TL;DR -- How do I send a JSON string to a REST host with an auth header? I've tried 3 different approaches found one that works with anonymous types. Why can't I use anonymous types? I need to set a variable called "Group-Name", and a hyphen isn't a valid C# identifier.</p>
<p><strong>Background</strong></p>
<p... | 0 | 1,854 |
Unrecognized selector sent to instance using Storyboards | <p>I'm using storyboard for an iOS application, my storyboard looks like this: <a href="http://d.pr/7yAY" rel="noreferrer">http://d.pr/7yAY</a> (droplr url)</p>
<p>The problem is when I click the login button, I send the username captured to the events table view controller. To do that I use <code>prepareForSegue</cod... | 0 | 1,249 |
Custom Kendo UI Grid Footer - Update Dynamically | <p>I have a need to display a custom calculation in a Kendo UI Grid footer template. The built-in aggregates won't work for the business requirements. I have found a way to display results from a function in the footer template using code snippets shown below. The key points in this code are:</p>
<ol>
<li>A custom ... | 0 | 1,207 |
How to resolve error :the type does not appear to implement microsoft.practices.servicelocation.iservicelocator? | <p>I am new to MVC, i am following "<strong>PRO ASP.NET MVC 4 by Adam Freeman</strong>". I am currently working on its 6th chapter. In which i am learning how to use <strong>Ninject in MVC 4</strong> for Dependency Injection. I have created the application as described in the book. Now i am not getting why the followin... | 0 | 1,036 |
Publishing to Flash 9/10 with Flash Professional CC | <p>I recently upgraded to Flash Professional CC (Mac 10.8.4) and it no longer gives the option of saving to a version of Flash earlier than 10.3. But Google DoubleClick and other ad networks only allow versions up to 10.1. Some even restrict to version 9.</p>
<p>I tried following the directions for CS6 found in this... | 0 | 2,530 |
Trying to call a WCF service with a WebRequest | <p>I have a WCF service that needs to be called by a 3rd party app, posting some raw XML.</p>
<p>I am trying to test my service by constructing a simple WebRequest and making the request to the service.</p>
<p>Here's my service code:</p>
<p>Interface:</p>
<pre><code> [ServiceContract(Namespace = "http://test.myd... | 0 | 1,119 |
Reference Counting in C++ OO-Style | <p>I came accross an intriguing implementation of a base class on the <a href="http://www.parashift.com/c++-faq/ref-count-with-cow-hierarchy.html" rel="noreferrer">C++ FAQ</a> that, according to my naive understanding, could serve as an alternative to some of the smart pointer implementations (e.g. shared_ptr). Here's... | 0 | 1,378 |
How do I use AsYouTypeFormatter TextWatcher in Android App? | <p>I am trying to use the AsYouTypeFormatter from Google's libphonenumber with TextWatcher and am not sure if it's possible. I have been able to format the text as typed from an EditText field and output it in another EditText but not able to change the original EditText field directly (which is what I want). I know ab... | 0 | 1,617 |
php: session not working while running live on server | <p>I am working on a project of PHP. I have a strange error. My PHP project is working well on local server (WAMP server). But after hosting it on live server, it is not working.</p>
<p><strong>Problem:</strong> Session variable created on <code>Login.php</code> page is not passing value on <code>Report.php</code> pag... | 0 | 3,566 |
Video play on hover | <p>I have a selection of video thumbnails that I want to trigger to play/pause on hover. I have managed to get one of them to work, but I run into a problem with the others on the list. Attached is the fiddle of my code. There will be a div covering each html5 video so the hover needs to delegate to the video, which I'... | 0 | 1,976 |
R- delete accents in string | <p>I have a library with html files and in files_dep I have the list of them. I need to convert the text stored in them to a table, but the issue is that they have accents and ñ. I wrote this to read it and works ok.</p>
<pre><code>for (i in files_dep) {
text<-readLines(i,encoding="UTF-8")
aa<-paste(text, co... | 0 | 1,110 |
How to get selected value from autocomplete box using ajax | <p>I am able to display the data from database in a textbox using ajax autocomplete.<a href="https://i.stack.imgur.com/kyDpK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kyDpK.png" alt="enter image description here"></a></p>
<p>I have a requirement like we need to select a name from the names sho... | 0 | 2,534 |
Getting a connection timed out exception in webservices | <p>I am getting the following exception when I try to submit a request through webservice.</p>
<p>The stack trace is as below:</p>
<pre><code>Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection timed out: connect
at com.su... | 0 | 1,294 |
Play audio through upper (phone call) speaker | <p>I'm trying to get audio in my app to play through the upper speaker on the iPhone, the one you press to your ear during a phone call. I know it's possible, because I've played a game from the App Store ("The Heist" by "tap tap tap") that simulates phone calls and does exactly that.</p>
<p>I've done a lot of resear... | 0 | 2,245 |
react-native-keyboard-aware-scroll-view not working properly | <p>I am trying to use the react-native-keyboard-aware-scroll-view so the keyboard doesn't cover my inputs. </p>
<p>For some reason it always thinks there is a keyboard active I guess because it always compresses everything.</p>
<p>Attached is a picture of what is happening as well as the code. Any chance anyone has ... | 0 | 2,408 |
PyAudio failed to install on Windows 10 | <p>When I am trying to install PyAudio using</p>
<pre class="lang-none prettyprint-override"><code>pip install pyaudio
</code></pre>
<p>I get this error:</p>
<pre class="lang-none prettyprint-override"><code>C:\Users\pankajkaun>pip install pyaudio
Collecting pyaudio
Using cached https://files.pythonhosted.org/pack... | 0 | 1,330 |
Sorting (names) using Merge Sort | <p>having problem sorting repeated Strings, </p>
<p>and here's my code..</p>
<p>i successfully sorted the first array but in the second (with repeated strings) it seems not in orderly output, can you help me to trace whats wrong in my code..</p>
<pre><code>import java.util.*;
public class NewClass {
public stat... | 0 | 1,033 |
Jquery pass variable to post without form? | <p>In my superuser page for delete and modify my users I done in this way</p>
<pre><code><table>
<tr>
<td>USERID</td>
<td>NAME</td>
<td>AGE</td>
<td>DELETE</td>
<td>MODIFY</td>
</tr>
<?php
... | 0 | 1,198 |
Spring @Transactional not working | <p>I previously had a post on this issue that was resolved. However since rebuilding the project with auto wired beans and less XML configuration I find I am revisiting this issue. I have followed the way my previous project implemented this but it doesn't work. Can someone help me with why or what I should change to m... | 0 | 2,757 |
JSP and JSTL with the Onclick method | <p>I have 2 links. In a session i store some data. I want if a user click in a specific link to look into the session and if the appropriate value contained, to continue. Else an AJAX pop up block will appears. </p>
<p>JAVASCRRIPT pop up block</p>
<pre><code> function displaymessage(title,message,close)
{
r... | 0 | 1,067 |
Jenkins pipeline sh returnstdout not working | <p>I am attempting to use the returnStdout feature of the Jenkins pipeline sh command. defined here <a href="https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script" rel="noreferrer">https://jenkins.io/doc/pipeline/steps/workflow-durable-task-step/#code-sh-code-shell-script</a></p>
... | 0 | 1,598 |
Android Studio 1.0 failing build at dexDebug or dexRelease | <p>I recently upgraded from Android Studio 0.9.2 to 1.0 (including version 1.0.0 of the Gradle plugin) and I'm having an issue with building my project.</p>
<p>Whenever I build I get the following exception at the dexDebug or dexRelease step:</p>
<pre><code>UNEXPECTED TOP-LEVEL ERROR:
java.lang.OutOfMemoryError: ... | 0 | 2,557 |
I'm trying to use a simple webcam capture upload, upload isn't working? | <p>UPDATE: </p>
<p>This is the entire code, which I pretty much copied and pasted.</p>
<pre><code><!DOCTYPE HTML>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script language="JavaScript" type="text/javascript"></script>
<style&... | 0 | 1,481 |
NoClassDefFoundError: com/google/common/base/Preconditions, but Preconditions is in the .jar file in my runtime classpath | <p>I have a project that uses <code>ImmutableList</code> and <code>ImmutableSet</code> from Guava. It compiles just fine, but at runtime, with the same <code>-cp</code>, it gives this error message:</p>
<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Preconditions
at co... | 0 | 2,290 |
Using List<> as BindingSource in C# | <p>I'm trying to use a List<> of objects of my custom class as a source for ListBox. The problem is the instead of strings showing up as an item in my ListBox the whole string is broken down and individual chars are turned into ListBox items.
Below are my class and replication to ListBox. I store a list in another c... | 0 | 1,565 |
CPAN Perl modules installer not finding tar file | <p>It seems I have a configuration problem when installing Perl modules through CPAN and I don't know how to correct it:</p>
<pre><code>[root@ip JESSE]# pwd
/root/.cpan/sources/authors/id/J/JE/JESSE
[root@ip JESSE]# ls -l
total 240
-rw-r--r-- 1 root root 105464 Feb 20 11:39 CHECKSUMS
-rw-r--r-- 1 root root 9223 Apr... | 0 | 2,015 |
Java String Calculator | <p>I'm trying to make a simple calculator in Java which takes input in the form of a string and does a simple '+' and '-' operation.</p>
<p>Single digit inputs work but my problem is when i try to implement this for double digit</p>
<p>input string is: 5+20+5+11 <br>
list 1 = [5, 20, 2, 0, 5, 11, 1]<br>
list 2 = [+... | 0 | 1,738 |
ASP VB Upload Files, Don't use original file name! Use a URL Scheme to name uploaded files. | <p>Good Day Everyone!</p>
<p>I am working on a ASP VB Script that I found online for free. It works great on my web server but the solution will only use the original filename to save to the web server's directories. </p>
<p>I am looking for a ASP File Uploader Solution to where I can pass a URL:</p>
<p><a href="htt... | 0 | 9,080 |
Installed JSON module for Perl but cannot load it, Can't locate JSON.pm in @INC | <p></p>
<p>I installed <a href="http://search.cpan.org/~makamaka/JSON-2.90/lib/JSON.pm" rel="nofollow noreferrer">JSON</a> for PERL with command:</p>
<pre class="lang-none prettyprint-override"><code>sudo perl -MCPAN -e 'install JSON'
</code></pre>
<p>but I cannot use it, <code>use JSON;</code> causes to error:</p>... | 0 | 2,091 |
Native memory allocation (mmap) failed to map | <p>I have started facing Native memory allocation issue. I guess could be related with the -Xmx and -Xms settings. What is the recommended way to set this values ?</p>
<p>Currently I have: -Xmx13G -Xms6G </p>
<p>I read that is recommended to set same values but without any explanation of why.</p>
<p>The error I am g... | 0 | 1,212 |
Flask-SQLAlchemy Query Join relational tables | <p>I am building an app using Flask & SQLAlchemy. I basically have 3 tables: users, friendships and bestFriends:</p>
<p>A user can have many friends but only one best friend. So I want my model to be relational. 'One-to-many' for the relation between 'users' and 'friendships' & 'one-to-one' between 'users' and... | 0 | 2,361 |
not accessible in this context because it is 'Private' | <p>I'm writing some code for a calculator and I keep getting this error. I have the math functions in another class but the variables from form1 are not accessible. Below is my code.</p>
<p>I've also tried changing my Dim variables to public but that also doesn't work.</p>
<pre><code>Public Class Form1
'create a val... | 0 | 3,558 |
How to download a pdf file from browser using Excel VBA | <p>I am using the below code snippet to download a PDF file from a website.</p>
<pre><code>Option Explicit
Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" _
(ByVal pCaller As Long, _
ByVal szURL As String, _
ByVal szFileName As String, _
ByVal dwReserved As Long, _
... | 0 | 1,124 |
Wix Installer Error 2343 | <p>so I have been trying to develop this installer for my application. I decided to change my GUI to <code><UIRef Id="WixUI_InstallDir" /></code>. According to a tutorial that I was reading I also need to include <code><Property Id="WIXUI_INSTALLDIR" Value="TOP_LEVEL_DIR" /></code> if I use that GUI. But, s... | 0 | 2,036 |
Switching fragments within tab | <p>I'm creating an app that uses ActionBarSherlock. The app consists of three tabs, and in each of them, multiple screens are shown consecutively based on user input. I am able to switch Fragments between tabs, but the switching of fragments <em>within</em> tabs gives a problem. I've tried it like this:</p>
<p>In the ... | 0 | 1,895 |
Send Forget Password using E Mail in Asp.Net | <p>i am using a <strong>asp.net framework</strong> for sending a <strong>forget password</strong> through <strong>E-Mail</strong>.
but i think there's some problem in my code.
please help .
The <strong>button_click</strong> event code is give below.</p>
<pre><code> protected void frgtbtn_Click(object sender, Ev... | 0 | 1,085 |
How to add Markers on Map from geoJson with many points (Leaflet) | <p>I'm trying to add some markers on my map using a geoJson with Points, I'm following the leaflet <a href="http://leafletjs.com/reference.html" rel="nofollow">documentation</a> but it still saying:</p>
<blockquote>
<p>Error: Invalid GeoJSON object.<br>
throw new Error('Invalid GeoJSON object.');</p>
</blockquote>... | 0 | 1,236 |
npm ERR! No git binary found in $PATH | <p>I can't seem to get zenbot to install I am new to node.js, so please be kind. I am getting all kinds of error I do have git installed. I followed the install instructions and I really don't know where to start. I am a Java and C programming trying to cut my teeth on something new and learn through the bumps and brui... | 0 | 1,588 |
Freezing column in jqgrid is not working | <pre><code><%@ Page Language="C#" AutoEventWireup="true" CodeFile="Freeze.aspx.cs" Inherits="Freeze" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="serv... | 0 | 2,627 |
How to smooth the blocks of a 3D voxel world? | <p>In my (Minecraft-like) 3D voxel world, I want to smooth the shapes for more natural visuals. Let's look at this example in 2D first.</p>
<p><a href="https://i.stack.imgur.com/aG0PU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aG0PU.png" alt="No smoothing, circular smoothing, and bezier smoothi... | 0 | 2,141 |
Azure Websites - 502 - Web server received an invalid response while acting as a gateway or proxy server | <p>My web app is running fine on my local machine but when published to a Windows Azure Website, I get the following error on one of the controller action methods:</p>
<p>502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and i... | 0 | 3,919 |
NumPy won't install in Python 3.4.0 in Win7 | <p>I looked at a previous related post and the commenter said 'why don't you use the Windows installer?"</p>
<p>So I followed the link and downloaded <a href="https://pypi.python.org/packages/3.4/n/numpy/numpy-1.8.1-cp34-cp34m-macosx_10_6_intel.whl#md5=08043cc4eaa6267ac2f872924e11ae7c" rel="noreferrer">https://pypi.py... | 0 | 1,822 |
Getting form controls from FormController | <p>I need a way to loop through the registered controls of an AngularJS form. Essentially, I'm trying to get all the $dirty controls, but there's no array of the controls (the FormController has a number of different properties/functions in addition to containing the controls themselves - each as its' own object).</p>... | 0 | 1,312 |
Receiving NullPointerException while using Jasypt and Spring Security 3.1 | <p>I am trying to configure Jasypt with Spring Security. My configuration file looks like this:</p>
<pre><code> jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:8090/sample
jdbc.username=ENC(*****) where the *****=the salted username
jdbc.password=ENC(*****) where the *****=the salted ... | 0 | 2,453 |
Error parsing data org.json.JSONException: End of input at character 0 of - Android | <p>I'm developing a test Android application that must display some data from a mysql db.
Here my logs:</p>
<pre><code>05-22 17:10:56.865: E/JSON Parser(31648): Error parsing data org.json.JSONException: End of input at character 0 of
05-22 17:10:56.865: W/dalvikvm(31648): threadid=11: thread exiting with uncaught ex... | 0 | 7,173 |
How to prevent items from getting duplicated when scrolling recycler view | <p>I have created a row inside recycler view and inside that I have inflated two rows or more but when I scroll the items are getting used again.
I am not getting where to recycle view or remove them dynamically
I need a feed and their comments.For comments I need to inflate layouts to display them below feeds for whic... | 0 | 2,015 |
How to fire loadComplete after new row is added in jqgrid? | <p>I have a custom formatter that fire inside loadComplete of jqgrid. Need the same custom formatter to work when a row is dynamically added too. So i was thinking to call loadComplete() like any normal function. Custom formatter works well when grid is loaded, but does not take effect when a row is added later. </p>
... | 0 | 5,985 |
C program dice game | <p>I am in trouble with my dice game. I have a task:</p>
<p>The rules of the game are the following:
1. The player rolls the dice and adds up the face values.
2. If the first roll is a 7 or 11, the player wins.
3. If the first roll is a 2, 3 or 12, the player looses.
4. If the first roll is any other number, that sum ... | 0 | 1,192 |
How to fix "ssl module in Python is not available" in CentOs | <p>New Python 3.7.1 installation on GoDaddy VPS CentOs 7.
Attempt pip3 install virtualenv or python 3 -m pip install virtualenv and get:</p>
<p>pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.</p>
<p>openssl-devel installed and up to date</p>
<p>This question ... | 0 | 1,800 |
Excel VBA: How to copy entire range including hidden columns | <p>I'm looking for a VBA Macro to export data to a csv. I found <a href="https://msdn.microsoft.com/en-us/library/dd637097%28v=office.11%29.aspx#odc_office2007_taWorkingwithListsTablesPart1_CopyingTableListtoNewWorksheetCurrentWorkbook" rel="nofollow">this code</a>
which after some tweaking does a great job. However, w... | 0 | 3,463 |
scroll a full page height up or down with jQuery/Javascript | <p>I'm currently working on a site which requires something similar to this in terms of scrolling functionality: <a href="http://www.apple.com/iphone-5s/" rel="nofollow noreferrer">http://www.apple.com/iphone-5s/</a></p>
<p>I've look through the site's (apple's) code and of course, as I should have suspected, came up e... | 0 | 1,096 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.