title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
What is the purpose of ui-helper-hidden-accessible in an unordered list? | <p>Judging by the class name and the jQuery UI CSS source, the <code>ui-helper-hidden-accessible</code> class appears to be a way of hiding an element while still making it accessible.</p>
<p>What I don't understand is what purpose it serves in this particular case. I tried searching SO and Google for reasons to use t... | 0 | 1,163 |
java.io.EOFException: End of input at line 1 column 1 | <p>My <code>Retrofit</code> should recieve a List of Bookmarks, and everything worked while I was using <code>WAMP</code> server. When I changed server to external (nothing else changed, just ip address of the server and retrieving of everything else works) I have an error:</p>
<pre><code> java.io.EOFException: End of... | 0 | 3,692 |
com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting to connect | <p>I assumed this question was asked several times but I had to reask it again. Because solutions provided for this question did not give me an exact answer to get rid of this bloody error.</p>
<p>I use <code>mongo-java-driver-2.12.4</code> and <code>mongo.jar</code> when I try to insert document to db I get following... | 0 | 1,069 |
SQLite Performance Benchmark -- why is :memory: so slow...only 1.5X as fast as disk? | <h2>Why is :memory: in sqlite so slow?</h2>
<p>I've been trying to see if there are any performance improvements gained by using in-memory sqlite vs. disk based sqlite. Basically I'd like to trade startup time and memory to get extremely rapid queries which do <em>not</em> hit disk during the course of the application... | 0 | 1,860 |
Access UIView width at runtime | <p>In Swift, how do I get the width (or height) at runtime, of a UIView that's created programmatically using auto layout constraints?</p>
<p>I've tried <code>view1.frame.size.width</code> and <code>view1.frame.width</code>, but both return <code>0</code>.</p>
<p>I've been following an auto layout tutorial by <a hre... | 0 | 1,183 |
Angular App running on nginx and behind an additional nginx reverse proxy | <p>I'm currently trying to create a reverse proxy for two Angular apps.
I want the apps to be both accessible through the 443 port of the docker host with SSL enabled (like <a href="https://192.168.x.x/app1" rel="noreferrer">https://192.168.x.x/app1</a> and <a href="https://192.168.x.x/app2" rel="noreferrer">https://19... | 0 | 1,106 |
Microsoft Graph 401 Unauthorized with access token | <p>Unable to get data from the the Microsoft Graph API.</p>
<pre><code>private String getUserNamesFromGraph() throws Exception {
String bearerToken = "Bearer "+getAccessToken();
String url = "https://graph.microsoft.com/v1.0/users";
String returnData = null;
try {
URL apiURL = new URL(... | 0 | 1,229 |
Raspberry Pi UART serial wont work | <p>I am trying to send/receive data over serial connection (GPIO UART pins) between a Raspberry Pi (B model, raspian wheezy) and an STM32F4 board.</p>
<p>To setup the serial port, i followed all the stepts found in several tutorials like:
<a href="http://elinux.org/RPi_Serial_Connection#Preventing_Linux_using_the_ser... | 0 | 1,344 |
Android Studio getting "Must implement OnFragmentInteractionListener" | <p>I'm getting a throw that says "Must implement OnFragmentInteractionListener, and I already have it...</p>
<p>I've looked at every question asked here, and no one helped me.</p>
<p>Could anyone please help me?</p>
<p>ERROR:</p>
<pre><code>FATAL EXCEPTION: main
Process: com.example.android.navigationdrawer, P... | 0 | 3,205 |
Unable to Start Tomcat 7.0 in Eclipse Indigo | <p>I've to start working on a web-app project for which I've Eclipse Indigo and Tomcat 7.0 installed. The environment also has JRE 7, Android SDK in it. But whenever I start the server, it gets timed out!</p>
<p>Moreover, I'm able to start the server outside Eclipse and sucessfully execute a web app in the browser. Bu... | 0 | 1,133 |
Access C++ function from QML | <p>I'm trying to make a little program with Qt. I have a <code>main.cpp</code> with the following code:</p>
<pre><code>#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"
Q_DECL_EXPORT int main(int argc, char *argv[])
{
QScopedPointer<QApplication> app(createApplication(argc, argv));
... | 0 | 1,272 |
Issue with NoClassDefFoundError error in a web environment Spring/Wicket/Derby/Jetty | <p>I am trying to build a simple JDBC Spring Template application, the web framework I am using is wicket and under the jetty 6 web server (through the Jetty Maven Plugin). Also, I am building the app with Eclipse.</p>
<p>For some reason, I am getting a NoClassDefFoundError with the Derby jdbc class. I am assuming I... | 0 | 3,311 |
How to make HTML table expand on click? | <p>I am rendering HTML table with the help of JavaScript. I have made the table successfully, but now I have one requirement to show some new data in a row like on click expand row</p>
<p>Table functionality:</p>
<ul>
<li>I am populating my table Some brand wise each brand has some items inside them, which I want to ... | 0 | 15,264 |
How to solve "Expected a value of type 'int', but got one of type 'String'" in Flutter | <p>I have a local JSON file which looks like this:</p>
<pre><code>[
{
"1": [
{
"mode": "text",
"value": "text exapple1"
},
{
"mode": "latex",
... | 0 | 1,258 |
ERROR: You must give at least one requirement to install -- when running: pip install --upgrade --no-binary hdbscan | <p>I am trying to install hdbscan in my PC which runs Windows 10 and has installed Python 3.6. </p>
<p>My first attempt failed:</p>
<pre><code>(base) C:\WINDOWS\system32>pip install hdbscan --user
Collecting hdbscan
Using cached https://files.pythonhosted.org/packages/10/7c/1401ec61b0e7392287e045b6913206cfff050... | 0 | 14,268 |
Java Garbage Collector - Not running normally at regular intervals | <p>I have a program that is constantly running. Normally, it seems to garbage collect, and remain under about 8MB of memory usage. However, every weekend, it refuses to garbage collect unless I make an explicit call to it. However, if it nears the maximum heap size, it will still garbage collect. However the only reaso... | 0 | 1,272 |
npm run dev script error | <p>I'm trying to follow a tutorial and i continue running into an error with has to do with the script. </p>
<p>I've restarted the tutorial to try to make sure I didn't miss anything however I've hit the same road block. I'm on a mac in pycharm.</p>
<p>So far in the tutorial (its off of udemy)we have installed the we... | 0 | 1,520 |
TypeError: __init__() takes 1 positional argument but 2 were given | <p>I am develop a simple rest api using Django 1.10
When I run my server and call app url I get an error:</p>
<blockquote>
<p>TypeError: <code>__init__()</code> takes 1 positional argument but 2 were given</p>
</blockquote>
<p>GET /demo/ HTTP/1.1" 500 64736</p>
<h1>Traceback</h1>
<pre><code>Environment:
Request M... | 0 | 1,139 |
How do you use FirstOrDefault with Include? | <p>This works fine:</p>
<pre><code>return Members
.FirstOrDefault(m => m.Agreement.Equals(agreement));
</code></pre>
<p>But this throws an exception if it doesn't find a match:</p>
<pre><code> return Members
.Include("Files")
.FirstOrDefault(m => m.Agreement.Equals(agreement) ... | 0 | 2,636 |
Node events.js:174 throw er; // Unhandled 'error' event | <p>I get an error when requesting an API and it crashes on any win server. Can anybody help, please?</p>
<p>This is part of my code:</p>
<pre><code>app.get("/js/2806/api/products/getAllDrugs", (req, res) => {
const connection = getDBConnection()
const queryString = "SELECT * FROM tbl_drug";
connect... | 0 | 1,145 |
I am getting "code challenge required" when using IdentityServer4 | <p>I am trying to redirect to IdentityServer for authorization, and getting "code challenge required" in redirect URL.</p>
<p>An error message shows <strong>invalid_request</strong> with code challenge required, and also my redirect url <a href="http://localhost:44367/signin-oidc#error=invalid_request&error_descri... | 0 | 4,006 |
Why is my code not CLS-compliant? | <p>I've got errors when I build my project:</p>
<blockquote>
<p>Warning as Error: Type of 'OthersAddresses.AddresseTypeParameter' is not CLS-compliant C:...\Units\OthersAddresses.ascx.cs</p>
</blockquote>
<pre><code>public Address.AddressTypeEnum AddressTypeParameter
{
get
{
retu... | 0 | 1,324 |
"invalid_grant error processing request" while making a reddit bot | <p>Im making a reddit bot that replies something to a specific comment.</p>
<p>But Im getting this error : invalid_grant error processing request</p>
<p>and I can't find the solution.</p>
<p>here is my code, Im using Python.</p>
<pre><code>import praw
import time
import config
def login():
r = praw.Reddit(use... | 0 | 1,044 |
Error: symbol(s) not found for architecture x86_64, collect2: ld returned 1 exit status | <p>I have been struggling for a while with an issue on Qt.</p>
<p>Here is my code:</p>
<p>hexbutton.h:</p>
<pre><code>#ifndef HEXBUTTON_H
#define HEXBUTTON_H
#include <QPushButton>
#include <QWidget>
#include <QIcon>
class HexButton : public QPushButton
{
Q_OBJECT
public:
HexButton(QWidg... | 0 | 2,055 |
Problem running tests with enabled preview features in surefire and failsafe | <p>I'm trying to migrate a project to Java 12, with <code>--enable-preview</code>.</p>
<p>I added <code>--enable-preview</code> in compiler settings:</p>
<pre><code> <plugin>
<artifactId>maven-compiler-plugin</artifactId>... | 0 | 3,158 |
JPA - Increment a numeric field through a sequence programmatically | <p>I have a JPA 2 web application (Struts 2, Hibernate 4 as JPA implementation only).</p>
<p>The current requirement is to add a (non-id) numeric sequential field, filled for certain rows only, to an existing entity. When inserting a new row, based on a certain condition, I need to set the new field to <code>its highe... | 0 | 2,513 |
AngularJS Two-way Data Binding in Nested Directives | <p>Please let me know if you need more information or want me to clarify anything. I have tried a lot of different things to figure this out but haven't found a solution.</p>
<p>I'm relatively new to angularJS and I am trying to build an app with several layers of data. I have some basic user information stored in th... | 0 | 1,476 |
PyTorch: DecoderRNN: RuntimeError: input must have 3 dimensions, got 2 | <p>I am building a DecoderRNN using PyTorch (This is an image-caption decoder):</p>
<pre><code>class DecoderRNN(nn.Module):
def __init__(self, embed_size, hidden_size, vocab_size):
super(DecoderRNN, self).__init__()
self.hidden_size = hidden_size
self.gru = nn.GRU(embed_size, hidden_size, ... | 0 | 2,100 |
Django /admin/ Page not found (404) | <p>I have the following error:</p>
<pre><code>Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/admin/
Raised by: nw.views.post_detail
</code></pre>
<p>But I can enter in example to <a href="http://127.0.0.1:8000/admin/nw/" rel="nofollow noreferrer">http://127.0.0.1:8000/admin/nw/</a><... | 0 | 1,719 |
Using shared_from_this in templated classes | <p>I have a resource manager that, like Andrei Alexandrescu proposed in the book Modern C++ Design, follows a policy based design. I am having trouble though, because my resource manager needs to be able to provide references to itself to the managed resources by <code>shared_from_this()</code>.</p>
<p>I built a minim... | 0 | 1,321 |
Material UI Table not being responsive while using example Responsive Drawer | <p>I have created a web app with the base coming from the Material-UI Example on a <a href="https://material-ui.com/demos/drawers/#responsive-drawer" rel="noreferrer">responsive drawer</a></p>
<p>I am trying to get a table to resize responsively to the screen width, but, for some reason, the <code>ResponsiveDrawer</co... | 0 | 5,840 |
Finding files with Perl | <h2><a href="http://perldoc.perl.org/File/Find.html" rel="noreferrer"><code>File::Find</code></a> <strong>and the</strong> <code>wanted</code> <strong>subroutine</strong></h2>
<p>This question is much simpler than the original title ("prototypes and forward declaration of subroutines"!) lets on. I'm hoping the answer,... | 0 | 1,148 |
lsync configuration for using non-root logins | <p>I have searched for > 5 days, tried numerous tricks and tips and even tried to get the author of lsync to help but all in vain.</p>
<p>I have 2 Red Hat 6.3 web servers that need to sync up their image directories when an image is uploaded. We can't control which server it gets uploaded to but it does not get loade... | 0 | 1,832 |
Adding scikit-learn (sklearn) prediction to pandas data frame | <p>I am trying to add a sklearn prediction to a pandas dataframe, so that I can make a thorough evaluation of the prediction. The relavant piece of code is the following:</p>
<pre><code>clf = linear_model.LinearRegression()
clf.fit(Xtrain,ytrain)
ypred = pd.DataFrame({'pred_lin_regr': pd.Series(clf.predict(Xtest))})
<... | 0 | 1,055 |
Spring-Boot @Autowired in main class is getting null | <p>I want to connect to a Sonic Broker Topic and Listen for any incoming XML message. I did something like below;</p>
<p>Application.java</p>
<pre><code>@SpringBootApplication
@ComponentScan({"com.mainpack", "com.msgpack.jms"})
@EnableJms
public class Application extends SpringBootServletInitializer {
@Autowired
pri... | 0 | 1,625 |
Building OpenCV as static libraries | <p>Maybe I'm missing something but I'm not able to build the static libraries of opencv.</p>
<p>Setup: </p>
<p>Kubuntu 12.04</p>
<p>gcc 4.6.3</p>
<p>make 3.81</p>
<p>cmake 2.8.7</p>
<p>opencv 2.4.6.1 (last available on site)</p>
<p>I do all the job manually. I tried with cmake-gui with no more success.</p>
<p>I... | 0 | 1,789 |
Angular Material Table Dynamic Columns without model | <p>I need to use angular material table without model, because I don't know what will come from service.</p>
<p>So I am initializing my <code>MatTableDataSource</code> and <code>displayedColumns</code> dynamically in component like that :</p>
<p><strong>TableComponent :</strong></p>
<pre class="lang-ts prettyprint-over... | 0 | 1,733 |
window.URL.revokeObjectURL() doesn't release memory immediately (or not at all)? | <p>I'm making an html interface to upload images on a server with Drag & Drop and multiple selection files. I want to display the pictures before sending them to the server. So I first try to use <code>FileReader</code> but I have had some problems like in <a href="https://stackoverflow.com/questions/6217652/html5-... | 0 | 1,241 |
An algorithm to calculate probability of a sum of the results happening | <p>The algorithm I'm talking about using would allow you to present it with x number of items with each having a range of a to b with the result being y. I would like to have an algorithm which would, when presented with the values as described would output the possibility of it happening.</p>
<p>For example, for two ... | 0 | 2,517 |
Custom Error Handling with Rails 4.0 | <p>I'm building a Ruby on Rails api using Ruby 2.0 and Rails 4.0. My app is almost solely a JSON API, so if an error occurs (500, 404), I want to capture that error and return a nicely formatted JSON error message.</p>
<p>I've tried <a href="https://coderwall.com/p/w3ghqq">this</a> and also:</p>
<pre><code>rescue_fro... | 0 | 1,378 |
java.lang.StackOverflowError: stack size 8MB | <p>I am using <a href="https://github.com/500px/500px-android-blur" rel="nofollow">this library</a> to blur the area beneath my layout in android.
I am getting stackoverflowerror and activity crashes when the blur view is called. Please help.
Thanks.</p>
<p><strong><em>Here is the code with logcat</em></strong></p>
<... | 0 | 4,829 |
How to disable SSL certificate checking with Spring RestTemplate? | <p>I am trying to write an integration test where our test launches an embedded HTTPS server using <a href="http://www.simpleframework.org/" rel="noreferrer">Simple</a>. I <a href="https://www.sslshopper.com/article-how-to-create-a-self-signed-certificate-using-java-keytool.html" rel="noreferrer">created a self-signed ... | 0 | 3,003 |
RFCOMM without pairing using PyBluez on Debian? | <p>I am trying to create an RFCOMM server process with Python that can be used without the need for pairing. Initially, I grabbed the two example scripts from the PyBluez documentation:</p>
<p>Server:</p>
<pre><code># file: rfcomm-server.py
# auth: Albert Huang <albert@csail.mit.edu>
# desc: simple demonstrati... | 0 | 1,355 |
How to use Exception Handling in Selenium Webdriver? | <p>The Scenario is as follows:
When the code <strong><code>driver.get(url);</code></strong> runs, if the URL is not able to access (if server is not reachable) then it should throw an exception that server is not reachable and the code should stop executing the next line </p>
<pre class="lang-java prettyprint-override... | 0 | 1,608 |
PIC Interrupt driven UART with circular buffer at high baud rate | <p>I am trying to read from a sensor with PIC 18f4550 at baud rate=38400. With a FIFO Circular buffer, I am able to store data from the sensor to an array. </p>
<p>The sensor will respond to a request command and return a measurement of 15 bytes (<strong>the same as the circular buffer I created</strong>). I have to g... | 0 | 1,074 |
Sending form using Ajax - Spring MVC | <p>I have problems with sending my form using Ajax.</p>
<p>Here is form:</p>
<pre><code><form method="POST" id="add-card-form" action="${pageContext.request.contextPath}/card/add" class="form-horizontal">
<select name="type" class="form-control">
<c:forEach items="${cardTypes}" var="cardType">
... | 0 | 1,676 |
Changing background-color property of a class with javascript/jQuery | <p>This seems like a simple problem but nothing nothing is fixing it. I'm trying to dynamically change the background-color (from white or pink to green) on some text with javascript/jQuery but for some reason it's not working. The text is styled with a CSS class called ".novice".</p>
<p>Here's the CSS. It's simple. I... | 0 | 2,300 |
GDB Cannot insert breakpoint, Cannot access memory at address XXX? | <p>I wrote a really simple program:</p>
<pre><code>ebrahim@ebrahim:~/test$ cat main.c
int main() {
int i = 0;
return i;
}
</code></pre>
<p>And the I compiled it with <code>-s</code> for <em>stripped</em> mode:</p>
<pre class="lang-none prettyprint-override"><code>ebrahim@ebrahim:~/test$ gcc -s main.c -o f3
e... | 0 | 1,441 |
How to zoom a textview in android? | <p>Can anyone guide me to perform zoom in&out operations on multiple views in android ? I need to perform zoom in&out operations on touch of image, text views . What should be my parent layout? Here is the code to zoom an image on touch of imageview. How do i zoom a textview? Please help me. </p>
<pre><code> ... | 0 | 1,303 |
The source attachment does not contain the source for the file Layoutinflater.class | <p>I'm trying to write an android application that uses google maps api version 2.<br>
In Debug the application crashes when it executes the instruction:</p>
<pre><code> setContentView(R.layout.activity_poi_map);
</code></pre>
<p>This is the error:</p>
<blockquote>
<p>the source attachment does not contain ... | 0 | 2,575 |
justify-content: space-between failing to align elements as expected | <p>I needed to use flexbox to center my navigation and hence I came up with the following:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.navbar-brand > img {
width: ... | 0 | 2,507 |
Converting XML file to another XML file using XSLT | <p>XML file 1:</p>
<pre><code><?xml version="1.0"?>
<rentalProperties>
<property contact ="1">
<type>House </type>
<price>420</price>
<address>
<streetNo>1</streetNo>
<street>Wavell Street</street&g... | 0 | 1,292 |
GridView.setOnItemClickListener is not working | <p>I have been suffering with one problem since 2days.I have a grid view in that i need to display images.When I click on grid item it has to go to next activity.I am able to display images in gridview but the thing is when I click on that item it is not responding..(OnItemClickListener is not working).I couldn't able ... | 0 | 1,702 |
JSF FacesContext#addMessage is not displayed | <p>In my <a href="https://stackoverflow.com/questions/10367152/jsf-authentication-cannot-intercept-error-messages">previous question</a> I had the problem of displaying validation messages from a Login form. That issue is now solved, but this time I am not able to display a custom message with <code>FacesContex#addMes... | 0 | 1,149 |
Restful API service | <p>I'm looking to make a service which I can use to make calls to a web-based REST API.</p>
<p>Basically I want to start a service on app init then I want to be able to ask that service to request a url and return the results. In the meantime I want to be able to display a progress window or something similar.</p>
<... | 0 | 3,022 |
Whenever gem 'failed to load command: rake' | <p>looking for some help.</p>
<p>I am running a rails app (v3.2.5) with the <code>whenever</code> gem (v0.9.7) and <code>rake</code> (v11.2.2). I am also doing this in a docker container image <code>ruby:2.3</code> (<code>cron</code> was installed and <code>bundle install</code> was ran)</p>
<p>Here is my <code>sched... | 0 | 1,524 |
React native :Unable to resolve module Indeed, none of these files exist: | <p>I'm following <a href="https://medium.com/@farid12ansari7/floating-title-or-placeholder-text-input-field-react-native-5fb5932669d" rel="noreferrer">this medium article</a> to use <code>FloatingTitleTextInputField</code> in my react-native project</p>
<p>below is my project structure</p>
<p><a href="https://i.stack... | 0 | 1,321 |
jboss eap-6.1 Failed to process phase POST_MODULE of deployment \"education.war\" | <p>Used hibernate, spring mvc. Files:</p>
<p>web.xml</p>
<pre><code> <web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<... | 0 | 2,798 |
Js Date object to python datetime | <p>I am working with dhtmlxscheduler and I am sending dates to the django server for processing.</p>
<p>Dhtmlxscheduler provides me with the following date object, the methods provided start from the second line below:</p>
<pre><code>end_date: Sat Nov 19 2011 01:00:00 GMT-0500 (EST)
__proto__: Invalid Date
constructo... | 0 | 1,180 |
How to create Select List for Country and States/province in MVC | <p>Hi I am new to MVC and even asp.. </p>
<p>I want to create a form in MVC. With the help of some examples I am able to create TextBoxes, but I now I don't understand how to create Select List./</p>
<p>I tried searching many examples for implementing Select List in MVC, but I am not able to understand.</p>
<p>I hav... | 0 | 1,941 |
how to bind control to json model in sapui | <blockquote>
<p>why can't i use these <code>sap.ui.getCore().setModel(oModel) and
this.getView().setModel("oModel","someModel")</code> in functions other
than life cycle hooks of controller in sapui5.</p>
<p>I am trying to bind model to the controls of my view without giving it
an id. so i want to make a ... | 0 | 1,494 |
Hibernate - ManyToOne & Inheritance / JOINED / mappedBy | <p>I have some problems with inheritance mapping. Here my database structure:</p>
<p><img src="https://i.stack.imgur.com/9PPZS.png" alt="enter image description here"></p>
<p>And associated entities:</p>
<h3>AbstractEntity:</h3>
<pre><code>@MappedSuperclass
public abstract class AbstractEntity<ID extends Seriali... | 0 | 1,161 |
Connection.Start().Done() SignalR Issue | <p>I am designing a real-time document editor web application similar to google docs using SignalR connections. </p>
<p>It is working ok i.e. when I am writing in one editor in a browser, text is being displayed on the other open browsers I have. The only problem I have is that when at first I write some text it is no... | 0 | 1,525 |
save arraylist in shared preference | <p>I am storing values in <code>ArrayList</code> and pass it to using bundle to next <code>Fragment</code>, and there I set values to my <code>TextView</code>, till here it works fine, now when go to another page and proceed to app and come back again to that <code>Fragment</code>, my all data goes, so I am trying to s... | 0 | 2,807 |
JdbcTemplate query close database connection | <p>I use jpa with hibernate. I have following method:</p>
<pre><code>@Transactional
public void myMethod(){
...
firstJDBCTemplateQuery();
secondJDBCTemplateQuery();
...
}
</code></pre>
<p><code>firstJDBCTemplateQuery</code> works, but it closes connection to database. When second <code>secondJDBCTempolateQuery</code... | 0 | 7,450 |
Cannot insert explicit value for identity column when IDENTITY_INSERT is set to OFF. (Entity Framework Core) | <p>I'm getting this error when I attempt to add a new entity into the Database. The entity name is <code>DestuffedContainer</code>. The definition of this entity and related entities is below:</p>
<p>DestuffedContainer:</p>
<pre><code>[Table("DestuffedContainer")]
public class DestuffedContainer
{
public long Des... | 0 | 1,674 |
Android Resources - which resolutions should go into the hdpi, ldpi, mdpi and xhdpi directories | <p>I'm trying to write an application that will work well on all screen sizes, for that I have my graphic designer produce images that are in the requested dpis for each directory (Low density (120), ldpi, Medium density (160), mdpi, High density (240), hdpi, Extra high density (320), xhdpi) however, they want to know ... | 0 | 1,055 |
Setting up a TCP/IP Client and Server to communicate over a network | <p>I am trying to learn a little about socket programming and I have stumbled across TcpListener and TcpClient to use as I read they are slightly easier for beginners.
The basic jist of what I want to accomplish is to have a small form that can be run on my laptop and another laptop on the same network and for them to ... | 0 | 3,168 |
java - The process cannot access the file because it is being used by another process | <p>I have a piece of code that monitors a directory for addition of files. Whenever a new file is added to the directory, the contents of the file are picked and published on kafka and then the file is deleted. </p>
<p>This works when I make a single request but as soon as I subject my code to 5 or 10 user request fro... | 0 | 1,120 |
Save streaming data to a WAV file using NAudio | <p>I want to save the incoming stream data to a WAV file on my hard disk drive. How can I change the code below to be able to record the stream into a valid WAV file?</p>
<p>From the demo <a href="http://naudio.codeplex.com/SourceControl/changeset/view/a2092ffde43a#NAudioDemo/Mp3StreamingDemo/MP3StreamingPanel.cs" rel... | 0 | 2,089 |
Signature trust establishment failed for SAML metadata entry | <p>In order to fetch metadata from a remote source, I defined an <code>ExtendedMetadataDelegate</code> bean as follows:</p>
<pre><code>@Bean
@Qualifier("replyMeta")
public ExtendedMetadataDelegate replyMetadataProvider() throws MetadataProviderException {
String metadataURL = "https://ststest.mydomain.it/Federatio... | 0 | 1,382 |
How to Style Template field in Grid View (aspx page and CSS attached) | <p>i am trying to style my second column "mentor name" as i used css it give style to whole Grid i also tried "control styl css class = (some other css file)" and "item styl horizontal align=right" and also change property align = right by using # in css file but template field do not allow "id" to implement css my .a... | 0 | 1,109 |
Angular 4 : how to pass an argument to a Service provided in a module file | <p>I'm calling to you for help on what method to use here : I have tested many things to solve my problem and I have at least 4 working solutions, but I don't know which one(s) would be the best and if some of them work only because of a side effect of something else I did and should not be used...</p>
<p>I couldn't f... | 0 | 2,149 |
How to create new PyQt4 windows from an existing window? | <p>I've been trying to call a new window from an existing one using python3 and Qt4.</p>
<p>I've created two windows using Qt Designer (the main application and another one), and I've converted the .ui files generated by Qt Designer into .py scripts - but I can't seem to create new windows from the main application.</... | 0 | 1,189 |
Flutter RenderFlex overflowed by 15 pixels on the right inside Column Widget | <p>I created a custom ListTile which should have two score centered in the middle and information on the left and right of this (<a href="https://i.stack.imgur.com/6daCP.png" rel="noreferrer">screenshot</a>).</p>
<p>The information on the left can have arbitrary length and should use TextOverflow.ellipsis when it's to... | 0 | 2,924 |
nginx error:"location" directive is not allowed here in /etc/nginx/nginx.conf:76 | <p>When i restart the nginx with, sudo service nginx restart,</p>
<p>Iam facing with this error,</p>
<p>Restarting nginx: nginx: [emerg] "location" directive is not allowed here in /etc/nginx/nginx.conf:76
nginx: configuration file /etc/nginx/nginx.conf test failed</p>
<p>This is my nginx.conf file:</p>
<pre><code>... | 0 | 1,042 |
Trying to connect to ASPX site using CURL? | <p>I am trying to log into this url:</p>
<pre><code>http://www.kalahari.com/marketplace/default.aspx
</code></pre>
<p>The two fields that are being submitted are labelled:</p>
<pre><code>ctl00$ctl00$ucMarketPlaceSupportNavigation$txtMPTopSignInEmail
ctl00$ctl00$ucMarketPlaceSupportNavigation$txtMPTopSignInPasswordTe... | 0 | 3,272 |
Firefox not refreshing select tag on page refresh | <p>I've run into a problem where I have a select tag that the user would use to select a brand of phone and the page using jquery would then just display those phones.</p>
<p>Thanks to the help of the people on stack overflow this now works great on every browser but firefox. For some reason when I refresh the page the... | 0 | 1,376 |
Implementing Vue draggable with cards? | <p>I am trying to implement <code>vuedraggable</code> with Vuetify Cards but for some reason the drag and drop doesn't work when the cards are in a single row but works when they are in a column. </p>
<p>Check out this working <a href="https://codesandbox.io/s/youthful-shockley-g608z?file=/src/components/Parent.vue" r... | 0 | 1,050 |
Umarshall JSON object with underscore and camelCase fields between Jackson and JAXB | <p>Using JAXB (2.2) and Jackson (1.9.13), I have trouble unmarshalling the following JSON object to my POJOs</p>
<pre><code>{
"userId": "foo",
"group_id": "bar"
}
</code></pre>
<p>Note that the payload contains both a camelCase and an underscore field.</p>
<p>The POJO generated by xjc for my XML schema is as f... | 0 | 1,189 |
Error installing CMake in a docker container. Could not find PROTOBUF | <p>Hi I am trying to build a docker image that runs openpose. It goes all well until I have to compile the source I am giving...</p>
<p>I run the Dockerfile below and it throws the following error:</p>
<pre><code>CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NO... | 0 | 1,362 |
SupportMapFragment.getMap() on a null object reference | <p>After trying just about everything, I cannot seem to getmap without pulling a null object reference. I am trying to inflate a google mapfragment into a fragment, however each time I do so I always keep a getmap null object .</p>
<p>Here is my code</p>
<p>I'm desperate for any help at this point, I've tried just ab... | 0 | 5,594 |
EXIF orientation tag value always 0 for image taken with portrait camera app android | <p>I have a camera app in portrait mode which takes pictures from both front and back end cameras.I am saving the image in my sd card and try to find the corresponding exif value which gives 0 always.But i am getting the the expected exif orientation value for the other images stored in the device(like downloaded pictu... | 0 | 2,774 |
GoogleMaps does not load on page load | <p>I can't get my map running using the GoogleMaps API V3. The map does not load. I would expect the map to appear in the div with the id <code>gisMap</code> but in the Chrome Debugger I get the message: </p>
<pre><code>Uncaught InvalidValueError: initMap is not a function
</code></pre>
<p><strong>Javascript</strong>... | 0 | 1,929 |
Hibernate Criteria Api Subqueries | <p>I am currently working on a project to transfer some legacy jdbc select statements over to using Hibernate and it's criteria api.</p>
<p>The two relevant table columns and the SQL query looks like:</p>
<pre><code>-QUERIES-
primaryId
-QUERYDETAILS-
primaryId
linkedQueryId -> Foreign key references queries.prima... | 0 | 1,264 |
cordova Android requirements failed: "Could not find an installed version of Gradle" | <p>I'm trying to build a Cordova Android project using the most recent tools. I followed the instructions <a href="https://cordova.apache.org/docs/en/latest/guide/cli/" rel="noreferrer">here</a>:</p>
<pre><code>$ cordova create myApp com.myCompany.myApp myApp
$ cd myApp
$ cordova platform add android@6.2.1 --save
$ co... | 0 | 1,689 |
Checking if textarea is empty in jQuery | <p>Here's my code:</p>
<pre><code>if ($('#inputName').val() && $('#inputEmail').val() && $('#inputInstrument').val() && $('#inputFee').val() $('#message').val() != '')
{
alert('success');
}
else
{
alert('fill in all fields');
}
</code></pre>
<p>If I take out... | 0 | 1,388 |
Error in web.config | <p>I am getting following error when running an ASP.NET application:</p>
<pre><code>Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your config... | 0 | 3,101 |
Jenkins slave JNLP4- connection timeout | <p>I see this error in some of the Jenkins jobs</p>
<pre><code>Cannot contact jenkins-slave-l65p0-0f7m0: hudson.remoting.ChannelClosedException: Channel "unknown": Remote call on JNLP4-connect connection from 100.99.111.187/100.99.111.187:46776 failed. The channel is closing down or has closed down
</code></pre>
<p>I... | 0 | 1,846 |
Consumer/Producer with pthreads having waiting times | <p>I am trying to implement a slightly modified version of Consumer/Producer program with a code i I picked on the internet. It is as follows with my own modifications:</p>
<pre><code> /*
* Solution to Producer Consumer Problem
* Using Ptheads, a mutex and condition variables
* From Tanenbaum, Modern Operating... | 0 | 1,479 |
React: Losing ref values | <p>I am using two components and I am using this pattern: child component should stay isolated as much it can - it is handling its own validation error. Parent component should check for errors which have dependencies between children. So, in my case: <code>password</code> field and <code>password confirmation</code> f... | 0 | 1,067 |
Ng-animate does not add the ng-enter and ng-leave classes | <p>This is my first project working with Angular and i have some troubles with ng-animate. I did a couple of tutorials and in the tutorials i got everything working fine. Now i'm using Angular for a project and i just can't get ng-animate to work properly. The classes such as "ng-enter" and "ng-leave" are not added to ... | 0 | 1,134 |
Problem deploying Axis2 in Tomcat | <p>I am trying to install Axis2 in a servlet container (Tomcat) by using <a href="http://axis.apache.org/axis2/java/core/docs/installationguide.html#servlet_container" rel="noreferrer">this</a> link. But after succesfully following all the steps and after starting tomcat I am not able to see the index file for Axis2. I... | 0 | 1,559 |
Errors when I try to migrate in Django2 | <p>I have a problem (at least I think). I am new in all this, so I apologize If I ask something stupid.
I have some site, which is working normally. When I try to make migrations ( <code>python manage.py makemigrations</code>), everything passed ok, I got the message of how many models new I have, etc. But, when I run... | 0 | 1,443 |
WPF/MVVM Load an UserControl at Runtime | <p>i know that there a many articles about my problem but i cant find a solution.
I am new in WPF - MVVM and i try to understand the MVVM-Logic.
So i made a little project to understand that.
For my later apps i want to load UserControls dynamicly to my Window.</p>
<p>In my StartView i have a Binding to the StartViewM... | 0 | 1,505 |
Jenkins pipeline : select nodejs version (+ python version) | <p>I'm facing an issue with a Jenkins pipeline in a Jenkinsfile.
I have 4 different nodeJs versions on my Jenkins instance. I would like to choose which one I'm going to use in my pipeline, but official plugin examples (<a href="https://wiki.jenkins-ci.org/display/JENKINS/NodeJS+Plugin" rel="noreferrer">https://wiki.je... | 0 | 1,546 |
How can I solve the connection problem during npm install behind a proxy? | <p>I followed the instruction:
<a href="https://www.electronjs.org/docs/tutorial/first-app" rel="noreferrer">https://www.electronjs.org/docs/tutorial/first-app</a></p>
<p>I typed <code>mkdir</code>, <code>cd</code> and <code>npm init</code>. They all worked well. One file named <code>package.json</code> appeared.</p>
... | 0 | 1,302 |
Redis sentinel not connect to master: Error: READONLY You can't write against a read only slave? | <p>I have this <code>redis replication</code> with <code>sentinel</code> architect:</p>
<p>5 servers: <code>.1</code>, <code>.2</code>, <code>.3</code>, <code>.4</code> and <code>.5</code></p>
<ul>
<li><code>.1</code>: nodejs app, redis master, redis sentinel</li>
<li><code>.2</code>: nodejs app, redis slave</li>
<li... | 0 | 1,887 |
Xamarin.Forms: Creating a SearchBar and search on a ListView | <p>Good Day everyone. I'm currently doing an application that allows the User to CRUD record of an Customer and save it on a database.
All the created records are displayed on a ListView.</p>
<p>What I want to do is to create a SearchBar that allows me to search Customer Records that is inside my ListView. In a separa... | 0 | 2,198 |
Should I use Perl's conditional ? : operator as a switch / case statement or instead of if elsif? | <p>Perl has a <a href="http://perldoc.perl.org/perlop.html#Conditional-Operator" rel="nofollow noreferrer">conditional</a> operator that is the same a <a href="http://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html#Conditional-Expressions" rel="nofollow noreferrer">C's conditional operator</a>. </p>
<p>To refresh,... | 0 | 2,113 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.