title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How can I install the libwebsocket library in Ubuntu? | <p>I am trying to install the libwebsocket in my ubuntu .</p>
<p>so I downloaded the project <a href="https://github.com/warmcat/libwebsockets">https://github.com/warmcat/libwebsockets</a>
unzipped it and I followed the installation instruction.</p>
<p>I type the command cmake FH and get the following messages.</p>... | 0 | 1,929 |
Future exception was never retrieved | <p>I have a scraper (based on Python 3.4.2 and asyncio/aiohttp libs) and bunch of links (> 10K) to retrive some small amount of data.
Part of scraper code:</p>
<pre><code>@asyncio.coroutine
def prepare(self, links):
semaphore = asyncio.Semaphore(self.limit_concurrent)
tasks = []
result = []
tasks = [s... | 0 | 1,035 |
System.ArgumentException and System.ComponentModel.Win32Exception when getting process information | <p>When i try to write process' information to console i get System.ArgumentException and System.ComponentModel.Win32Exception. What causes this? How can i stop having those?</p>
<pre><code> Process processListe = Process.GetProcesses();
for (int i = 0; i < processListe.Count(); i++)
... | 0 | 1,585 |
Java Applet Error - IllegalArgumentException "adding container's parent to itself" | <p>I have to create an applet. The code I have written is as follows.</p>
<pre><code>import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
public class feedback extends JApplet
implements ActionListener
{
private JTextField login;
private JTextField email;
private JTextField comments;
... | 0 | 1,849 |
How to make clicking a menu button toggle show/hide of a menu sidebar component | <p>I have this three component app.js, header.js and menu.js. I'm trying to code when you click on menu button which is in header component it toggles (show/hide) menu component (menu-sidebar). Is it possible to make such communication in react with two components without jQuery? I tried with this tutorial but didn't s... | 0 | 2,394 |
Mysqli and Php with session login form keep fail | <p>When I hit my submit button to login nothing happens. I am just getting the same page, and not even an error. The connection to db should be fine. I have been looking at the code for 10 hours now, and I cannot figure out why. Does anybody have an idea?</p>
<p>dbconfic.inc.php:</p>
<pre><code><?php
$db_host ... | 0 | 1,695 |
jsdom: dispatchEvent/addEventListener doesn't seem to work | <p><strong>Summary:</strong></p>
<p>I am attempting to test a React component that listens to native DOM events in its <code>componentWillMount</code>. </p>
<p>I'm finding that jsdom (<code>@8.4.0</code>) doesn't work as expected when it comes to dispatching events and adding event listeners.</p>
<p>The simplest bit... | 0 | 1,051 |
Eclipse 4.2, Mac OS X 10.8 (ML), and Java 6 | <p>I'm trying to run Eclipse 4.2 (latest from website: eclipse-SDK-4.2-macosx-cocoa-x86_64) on Mac OS X 10.8 (Mountain Lion).</p>
<p>I have Java 7 installed, but I keep getting prompted to install Java 6. When I choose to forgo the install by clicking "Not Now", Eclipse exits.</p>
<pre><code>$ java -version
java vers... | 0 | 1,047 |
android - sharedpreferences return null value | <p>I'm trying to use sharedpreferences to check whether the user logged in before they start using the app. I save the username in shredpreferences when user log in.</p>
<p>Login.java</p>
<pre><code>public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.... | 0 | 1,265 |
WCF: The remote server returned an error: (413) Request Entity Too Large | <p>I have a wcf service</p>
<p>there is a method which gets base64 string to upload a file my file's size 100kb it may be larger in time</p>
<p>i got the error message: The remote server returned an error: (413) Request Entity Too Large
while try to get HttpWebResponse</p>
<p>this is my wcf service web.config</p>
<pre>... | 0 | 1,105 |
No suitable driver found for "jdbc:oracle:thin:@**** "oracle/jdbc/driver/OracleDriver"; | <p>here is my java code </p>
<pre><code>public static Map<String,String> propertyFileReader() {
Map<String, String> map=new HashMap<String, String>();
Properties prop = new Properties();
try {
InputStream inputStream = Util.class.getClassLoader().getResourceAsStream("jdbc.properti... | 0 | 1,803 |
Django 1.7 app config ImportError: No module named appname.apps | <p>I'm trying to setup a custom application configuration for one of my Django app called 'articles' following the documentation at <a href="https://docs.djangoproject.com/en/dev/ref/applications/" rel="noreferrer">https://docs.djangoproject.com/en/dev/ref/applications/</a>, but I keep getting <code>ImportError: No mod... | 0 | 1,435 |
Unable to stop Streaming in tweepy after one minute | <p>I am trying to stream twitter data for a period of time of say 5 minutes, using the Stream.filter() method. I am storing the retrieved tweets in a JSON file. The problem is I am unable to stop the filter() method from within the program. I need to stop the execution manually. I tried stopping the data based on syste... | 0 | 1,075 |
C# Deserialize JSON to List | <p>I have come across a problem I don't understand when trying to deserialize a JSON string (containing multiple objects) into a List. Here is the JSON.</p>
<pre class="lang-json prettyprint-override"><code>[
{
"id":2,
"name":"Race 1",
"raceDateTime":"2017-09-02T14:27:39.654",
"raceStart... | 0 | 1,218 |
How does one use Pytorch (+ cuda) with an A100 GPU? | <p>I was trying to use my current code with an A100 gpu but I get this error:</p>
<pre><code>---> backend='nccl'
/home/miranda9/miniconda3/envs/metalearningpy1.7.1c10.2/lib/python3.8/site-packages/torch/cuda/__init__.py:104: UserWarning:
A100-SXM4-40GB with CUDA capability sm_80 is not compatible with the current P... | 0 | 3,436 |
How to scroll a React page when it loads? | <p>I want to pass a value as the hash in the url (myapp.com#somevalue) and have the page scroll to that item when the page loads - exactly the behavior of using a hash fragment since the beginning of the internet. I tried using scrollIntoView but that fails on iOS. Then I tried just unsetting/setting window.location.ha... | 0 | 2,119 |
Android ExpandableListView with Checkbox, Controlling checked state | <p>Friends,</p>
<p>I am trying to write a application which use checkbox in ExpandableListView, I got a problem here which is maintaining checkbox state of the application, I got the example from <a href="http://mylifewithandroid.blogspot.com/2010/02/expandable-lists-and-check-boxes.html" rel="noreferrer">here</a> , m... | 0 | 2,322 |
still error Android: Unable to start activity ComponentInfo{/com.}: android.view.InflateException: Binary XML file line Error inflating class fragment | <p>I created first version of my application using Google Maps Android v1 API. But now When I released my application for second version, Google map stopped working. I think it's because of it's deprecated.</p>
<p>So now I'm trying to create sample Android application to use Google Map using this <a href="https://deve... | 0 | 1,531 |
Elasticsearch Java API Index Document | <ol>
<li><p>Downloaded .90.6, Unpacked, moved Elastic Search to /usr/share/elasticsearch (with chmod 777 -R permissions on centosx64 6.4), renamed cluster to <em>somethingstupid</em> and started server.</p></li>
<li><p>Installed plugins <a href="https://github.com/mobz/elasticsearch-head" rel="nofollow">ESHead</a> and ... | 0 | 1,511 |
Insert data in h2 database through data.sql file before performing unit testing in spring boot | <p>I want to perform unit testing in spring boot+ JPA. For that I created configuration file to create bean for dataSource, all hibernate properties, entityManagerFactory and transactionManager. Everything going perfect. Tables are getting created by model classes. but now I want to insert data in all tables of databas... | 0 | 1,222 |
Compilation error in Android Studio When making a simple Google Android Maps API v2 project | <p>Recently I migrated to the New <strong>Android Studio IDE</strong> based on IntelliJ</p>
<p>The Guides i followed were:</p>
<ol>
<li><p><a href="https://developers.google.com/maps/documentation/android/start" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/android/start</a> (<em>for
basi... | 0 | 1,218 |
Open PDF returned by REST Web Service | <p>I have a JAXB REST Web Service getting in request a POST of a JSON and should return a PDF document in response:</p>
<pre><code>@POST
@Path("getReceipt")
@Consumes({ MediaType.APPLICATION_JSON })
@Produces({ "application/pdf" })
public Response getReceipt(InputStream incomingData, @Context HttpServletRequest httpRe... | 0 | 1,659 |
Angular Error: 'Component 'X' is not included in a module...' when declared in a sub module | <p>I'm trying to consolidate my dialogs into an Angular module, but I'm getting a linting error in the IDE:</p>
<blockquote>
<p>Component 'X' is not included in a module and will not be available
inside a template. Consider adding it to an NgModule declaration.</p>
</blockquote>
<p>Despite this error the applicat... | 0 | 1,668 |
Trying to make simple PDF document with Apache poi | <p>I see the internet is riddled with people complaining about apache's pdf products, but I cannot find my particular usecase here. I am trying to do a simple Hello World with apache poi. Right now my code is as follows:</p>
<pre><code>public ByteArrayOutputStream export() throws IOException {
//Blank Document
... | 0 | 1,026 |
Could not extract response: no suitable HttpMessageConverter found for response type | <p>I am new with spring integration and working in spring integration http module for my project requirement. I am sending request from outbound gateway as a http client.
I am trying to initiate a request to the server and server should return me the message payload with my set values. I am converting object to ... | 0 | 5,766 |
MVC binding to model with list property ignores other properties | <p>I have a basic ViewModel with a property that is a List of complex types. When binding, I seem to be stuck with getting either the list of values, OR the other model properties depending on the posted values (i.e. the view arrangement).</p>
<p>The view model:</p>
<pre><code>public class MyViewModel
{
public in... | 0 | 2,261 |
How do I fix blurry text in my HTML5 canvas? | <p>I am a total <em>n00b</em> with <code>HTML5</code> and am working with the <code>canvas</code> to render shapes, colors, and text. In my app, I have a <em>view adapter</em> that creates a canvas dynamically, and fills it with content. This works really nicely, except that my text is rendered very fuzzy/blurry/stretc... | 0 | 1,324 |
How to connect CakePHP to a Postgres database? | <p>I'm just starting with CakePHP, I went through the blog tutorial without trouble but would now like to try it with a proper DBMS like postgres. I tweaked the database.php file to point to a database I created in my local postgres instance: </p>
<pre><code>class DATABASE_CONFIG {
public $default = array(
... | 0 | 1,095 |
best practice for specifying pronunciation for Android TTS engine? | <p>In general, I'm very impressed with Android's default text to speech engine (i.e., com.svox.pico). As expected, it mispronounces some words (as do I) and it therefore occasionally needs some pronunciation guidance. So I'm wondering about best practices for phonetically spelling out those words that the pico TTS en... | 0 | 1,356 |
How to add Animated Vector Drawable Animation? | <p>I am trying to animate a vector path to a different path in my android app for testing but its not working properly . no animation is displayed on screen and neither any animation is shown.</p>
<p><strong>My vector file is:</strong></p>
<pre><code> <vector xmlns:android="http://schemas.android.com/apk/res/an... | 0 | 1,131 |
How to display Woocommerce product price by ID number on a custom page? | <p>I'm trying to display a price of a product in Woocommerce, on a custom page.
There is a short code for that, but it gives product price and also adds an "Add to cart button", I don't want the button, i just want to get the price of a specific product by ID.</p>
<p>Is this possible?</p>
<p>Thanks.</p>
<p>CODE:</p>... | 0 | 1,250 |
Linking unmanaged C++ DLL with managed C++ class library DLL | <p>As in the question <a href="https://stackoverflow.com/questions/2637571/creating-simple-c-net-wrapper-step-by-step">Creating simple c++.net wrapper. Step-by-step</a></p>
<p>I am tring to use C++ classes in .NET
but I am having problems building in Visual Studio (2008).</p>
<p>I have an unmanaged class A (C++ comp... | 0 | 1,809 |
SFTP connection error with JSch: SSH_MSG_DISCONNECT: 11 Internal server error | <p>I was trying to retrieve a file from SFTP server - while connecting to this SFTP works with FileZilla - SFTP method.</p>
<p>For JSch I have tried this code using JSch </p>
<pre><code>JSch jsch = new JSch();
Properties config = new Properties();
config.put("StrictHostKeyChecking", "no");
config.put("PreferredAuthen... | 0 | 3,243 |
Get hidden field value in code behind | <p>How can I get the value of the hiddenfield in code behind?</p>
<pre><code> <telerik:RadRotator ID="RadRotator1" RotatorType="AutomaticAdvance" ScrollDirection="Up"
ScrollDuration="4000" runat="server" Width="714"
ItemWidth="695" Height="260px" ItemHeight="70" FrameDuration="1" Ini... | 0 | 1,325 |
How to use "css" in the "jsp" in Spring MVC project? | <p>I am working on a spring MVC project in which I am trying to use <code>css</code> style sheets by referencing it to design my JSP page. But somehow my css files are not being picked up once I hit my method in the controller..</p>
<p>Below is my JSP file -</p>
<pre><code><html>
<head>
<link rel="styl... | 0 | 2,497 |
Using angularJS with requireJS - cannot read property 'module' of undefined | <p>I had started writing an app using angularJS. After a few weeks, I suddenly realized that I should have used require JS from the beginning to load my modules. Yes, I know, it was stupid. But it is what it is.
So I've tried to convert my code to suit requireJS now.</p>
<p>This is my main.js</p>
<pre><code>requirejs... | 0 | 1,382 |
how to get number input type from edittext android studio | <p>I have problem here,my java code is</p>
<pre><code>int num = Integer.parseInt(mark.getText().toString());
</code></pre>
<p>And my xml code is </p>
<pre><code>android. InputType="number"
</code></pre>
<p>But i am still getting error saying that <code>"invalid int ="""</code>
Can anyone help me..i really really ne... | 0 | 1,513 |
How call a redux action with an argument and access from the reducer? | <p>How can I call a <strong>setCounter</strong> action with a <strong>value</strong> argument from my component's render function?</p>
<p><strong>How do you access an action's argument in the reducer?</strong></p>
<pre><code>// File: app/actions/counterActions.js
export function setCounter(value) {
return {
typ... | 0 | 1,391 |
Get nested fields with MongoDB shell | <p>I've "users" collection with a "watchlists" field, which have many inner fields too, one of that is "arrangeable_values" (the second field within "watchlists"). </p>
<p>I need to find for each user in "users" collection, each "arrangeable_values" within "watchlists".</p>
<p>How can I do that with mongodb shell ?</... | 0 | 1,564 |
MappedListIterable is not a SubType | <p>I'm new to flutter and dart and trying to fetch data from firestore as a stream and feed to my ListView but I keep getting this error:</p>
<pre><code>type 'MappedListIterable<DocumentSnapshot, Product>' is not a subtype
of type 'List<Product>'
</code></pre>
<p>I have seen a couple of other posts on sta... | 0 | 1,731 |
Cannot find class [org.springframework.mail.javamail.JavaMailSenderImpl] for bean with name 'mailSender' defined | <p>I am writing a spring mail program:</p>
<pre><code>@Service("LeaveEmail")
public class LeaveEmail {
@Autowired
private MailSender mailSender;
@Autowired
private SimpleMailMessage alertMailMessage;
public void setMailSender(MailSender mailSender) {
this.mailSender = mailSender;
}... | 0 | 4,735 |
ASPNETCORE_ENVIRONMENT in Docker | <p>i have problems setting the <strong>ASPNETCORE_ENVIRONMENT</strong> variable running my project in a <strong>docker container</strong>. The problem is that the value is always <strong>set/overwritten to "Development"</strong>.</p>
<p>I have tried setting the environment variable in my <strong>Dockerfile</strong> us... | 0 | 1,667 |
How do I change the Action Bar Overflow button color | <p>First off I have read <a href="https://stackoverflow.com/questions/11425660/change-color-of-the-overflow-button-on-actionbar">Change color of the overflow button on action bar</a> but
I'm not able to get it to work. </p>
<p>I just want to have a simple theme: Action bar background blue and the buttons and text whi... | 0 | 1,168 |
The Microsoft.Office.Interop.Word assembly version is higher than referenced | <p>What is the cause of the following error:</p>
<blockquote>
<p>Error 12 Assembly 'Microsoft.Office.Interop.Word, Version=14.0.0.0,
Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'office,
Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
which has a higher version than referenced as... | 0 | 1,413 |
AttributeError: 'function' object has no attribute 'upper' | <p>When i run the given code i get the error</p>
<pre><code>Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python34\lib\tkinter\__init__.py", line 1533, in __call__
return self.func(*args)
File "C:\Users\Matthew\Desktop\Code\Functionised\encoder idea 2 GUI ATTEMPT.py", line 10, in en... | 0 | 1,157 |
Unity-How do I check if an object is seen by the Main Camera | <p>I'm doing this thing where an object is moving on a plane, and the camera is in the center of it. I got it so the camera rotates along with the mouse, and when the main camera sees the game object, it stops. So I was using the onbecamevisible() and onbecameinvisible() functions, but that applies to any camera, inclu... | 0 | 2,378 |
Difference between adjustResize and adjustPan in android? | <p>I tried to write a code which is used to re-size the UI components when <strong>soft-keyboard</strong> appears.
When I use <strong>adjustResize,</strong> it res-size the UI components and at the same time <strong>adjustPan</strong> gave me same output.
I want to know the difference between them and when to use eac... | 0 | 1,230 |
What is $$phase in AngularJS? | <p>I found this code snippet which is part of a angular directive someone wrote for bootstrap modal.</p>
<pre><code>//Update the visible value when the dialog is closed ... | 0 | 1,729 |
Creating a matrix from CSV file | <p>I've been working on Python for around 2 months now so I have a OK understanding of it. </p>
<p>My goal is to create a matrix using CSV data, then populating that matrix from the data in the 3rd column of that CSV file.</p>
<p>I came up with this code thus far:</p>
<pre><code>import csv
import csv
def readcsv(cs... | 0 | 1,057 |
Dropdown menu moves content | <p>My problem is quite simple but i don't know what i've done bad..</p>
<p>Dropdown menu on my site moves content.I've tried a z-index with absolute and relative position but it did not worked.Maybe i've screwed something up but right now i don't know what</p>
<p>Thanks for help and Greets</p>
<p><div class="snippet... | 0 | 2,089 |
The request sent by the client was syntactically incorrect.-Spring MVC + JDBC Template | <p>I am newbie to Spring MVC.
I was stuck by an error while running my project
<strong>Error-The request sent by the client was syntactically incorrect.</strong>
I have an entity class PatientInfo.
My jsp page is demo1.
My controller is Patient Controller.
The functionality i want to implement is Inserting values into ... | 0 | 5,959 |
CodeIgniter - adding comments to a post | <p>I'd like some help please. I have a post page that has the full post and below the post a small form for adding comments. The uri of the post page is: site/posts/1, so it is in posts controller, and the form action is <code>form_open(site_url('comments/add/'.$post->post_id))</code>.</p>
<p>This is my add() funct... | 0 | 1,269 |
My Algorithm to Calculate Position of Smartphone - GPS and Sensors | <p>I am developing an android application to calculate position based on Sensor's Data</p>
<ol>
<li><p>Accelerometer --> Calculate Linear Acceleration</p></li>
<li><p>Magnetometer + Accelerometer --> Direction of movement</p></li>
</ol>
<p>The initial position will be taken from GPS (Latitude + Longitude).</p>
<p>No... | 0 | 1,607 |
Bootstrap 3 Navbar Collapse menu at Left for left and right navbar items | <p>I have a Bootstrap 3 navbar with left nav items and right nav items (as shown below). </p>
<p><img src="https://i.stack.imgur.com/pCkke.jpg" alt="Left and Right nav items"></p>
<p>When collapsed, I want both the navbar-toggle (AKA the 'hamburger menu') and its items to be left aligned. </p>
<p>My code so far:</p... | 0 | 1,200 |
java.io.StreamCorruptedException: invalid stream header: 75720002 | <p>i am creating a server-client application where the server sends a pdf file to the all connected clients. The problem is i get this error and i searched for a solution but couldn`t get any. This is the error</p>
<pre><code> java.io.StreamCorruptedException: invalid stream header: 75720002
at java.io.ObjectInput... | 0 | 2,053 |
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997) | <p>I was playing with some web frameworks for Python, when I tried to use the framework <a href="https://docs.aiohttp.org/en/stable/" rel="nofollow noreferrer">aiohhtp</a> with this code (taken from the documentation):</p>
<pre><code>import aiohttp
import asyncio
#********************************
# a solution I found ... | 0 | 1,878 |
html side by side tables in email are forced under in Outlook 2007 and above | <p>I have just run into my first frustration with Outlook breaking my html emails.</p>
<p>I have a container table that is 640 px wide. In it is two 320px tables one align left, one align right.
They site side by side in ALL email clients except Word Engined Outlook (2007 and up).</p>
<p>THIS is the important part. I... | 0 | 2,299 |
if else statement in android | <p>I was new in Android and found some good tutorials on the internet, so I tried a simple activity with an <code>if-else</code> statement. I'm trying "correct and wrong" prompt/<code>Toast</code>:</p>
<pre><code>Button page1 = (Button) findViewById(R.id.button2);
page1.setOnClickListener(new View.OnClickListen... | 0 | 1,416 |
Delete List Item on right swipe react-native | <p>// Here I am trying to delete List item from Flat List .
Data is populating from JSON on Flat List now I have to delete particular list item data form list , for that I am using "Swipeout" . but getting error "Type error: undefined is not an object(evaluting this.2.viewNote.bind")<br>
Please help . Where am going ... | 0 | 4,000 |
Hibernate cannot simultaneously fetch multiple bags two Lists | <p>I have very strange situation. Before when I tried to fetch multiple collections by one try of HQL query I have not had this error. The Internet says that the problem can occur because of FetchType.LAZY, but I removed it and nothing change.</p>
<p>My entity from where I'm trying to fetch some data: </p>
<pre><code... | 0 | 2,106 |
How to force RecyclerView.Adapter to call the onBindViewHolder() on all elements | <p>I have a <code>VerticalGridView</code> that is using a <code>RecyclerView.Adapter</code> to populate the elements. I have discovered that the <code>onBindViewHolder()</code> method does not get called if the potential element is off of the viewport. Unfortunately, this is causing a <code>NullPointerException</code> ... | 0 | 1,253 |
High CPU load running php processes | <p>I have dedicate server with 3.1GHz single quad core CPU with 32 GB RAM.
It works as a web server and configured to:
Apache 2.4 + MPM Worker + Mod_fcgid</p>
<p>When I run top command, I see high CPU usage by PHP processes of website. Below is a snapshot</p>
<pre><code>Tasks: 193 total, 1 running, 112 sleeping, ... | 0 | 1,384 |
Can not squeeze dim[1], expected a dimension of 1, got 2 | <p>I have very simple input: Points, and I am trying to classify whether they are in some region or not. So my training data is of the shape <code>(1000000, 2)</code>, which is an array of the form:<br /><code>[ [x1,y1], [x2,y2],... ]</code><br />
My labels are of a similar form (Shaped <code>(10000, 2)</code>):<br />
... | 0 | 1,062 |
How to move an image around with arrow keys javascript | <p>I recently began developing a little javascript game, just for fun. The idea was that you controlled a little dot with the arrow keys (or awsd or i don't care what) within a box on the screen. Little rectangles would then randomly spawn on all edges of the box and progress across it. you have to avoid contact wit... | 0 | 2,052 |
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class com.sun.jersey.core.header.MediaTypes | <p>I'm trying to run a jersey client and facing this issue.</p>
<p>WS Class: </p>
<pre><code>import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@Path("/hello")
public class HelloWorldService... | 0 | 1,591 |
'Step Into' is suddenly not working in Visual Studio | <p>All of a sudden, I have run into an issue where I cannot step into any code through debugging in Visual Studio. The step over works fine, but it refuses to step into (<kbd>F11</kbd>) any of my code. This was working before, now all of a sudden it does not. </p>
<p>I've tried some things below, but I still had no su... | 0 | 1,746 |
How to make editable table using bootstrap and jQuery only? | <p>This is my bootstrap table.I want to insert data into table using jQuery only.On clicking a particular cell,a textbox should be open to enter data.I don't want to use any other plugin.</p>
<pre><code> <table class="table table-bordered">
<thead class="mbhead">
<tr class="mbr... | 0 | 1,538 |
Get id of TextView in Fragment from FragmentActivity in ViewPager | <p>I'm working with <code>ViewPager</code> with 3 <code>Fragments</code> and I want to change text of <code>TextView</code> in third page.</p>
<p>In that page I have a <code>Button</code>that when its pressed, go to SD images to select one. When done, returns to page and want to update <code>TextView</code> with path ... | 0 | 2,728 |
How to call a servlet from a jQuery's $.ajax() function | <p>I am trying to call a servlet from jQuery's .ajax() function.</p>
<p>At the moment I don't think I am even calling the servlet or passing paramaters to it, however lots of Googling doesn't seem to have helped. Any ideas?</p>
<p>This is my html:</p>
<pre><code><html>
<head>
<meta http-equiv="Content... | 0 | 1,186 |
node app fails to run on mojave: ReferenceError: internalBinding is not defined | <p>I've tried to unsuccessfully run a node app, which runs fine on both High Sierra and Windows 10, but fails on Mojave 10.14.1.
This is the error shown when running the gulp build_dev task:</p>
<pre><code>[23:44:42] Requiring external module babel-register
fs.js:25
'use strict';
^
ReferenceError: internalBinding is ... | 0 | 1,696 |
Wordpress Custom Post Types doesn't show in admin left sidebar menu | <p>I have a weird problem with one of my custom post type that doesn't show in left sidebar admin menu.</p>
<p>I declared 5 custom post types but the fifth doesn't show in left menu. Here it's the Clients post type that doesn't show. I made a lot of search about this, without success.</p>
<p>Thanks a lot for your hel... | 0 | 2,985 |
VS2017 installer - the package manifest failed signature validation | <p>I have VS2015 installed, and previously had VS2017 installed on this machine. Adding an extension on VS2017 seemed to completely break my install, so I figured the next thing to do would be to reinstall VS2017.</p>
<p>Oh how I wish I didn't.</p>
<p>The installer has been failing with "The package manifest failed ... | 0 | 2,857 |
CentOS 7 apachectl httpd.service fails to start | <p>I'm building <a href="https://github.com/devopsgroup-io/catapult-release-management" rel="nofollow">https://github.com/devopsgroup-io/catapult-release-management</a> and every once in a while trying to <code>apachectl start</code> an error of:</p>
<p>Job for httpd.service failed. See 'systemctl status httpd.service... | 0 | 1,112 |
Angular 5 formGroup formControlName issue with select options | <p><strong>Update</strong></p>
<p>We are using Angular5 and we have a form that is constructed using FormGroup and then binded using formgroup and formControlName. </p>
<p>On initial load everything is populating correctly in all input fields. After closing the modal and then clicking on another record populates all ... | 0 | 6,429 |
Javascript slide in slide out div | <p>I'm trying to create a replica of this site:</p>
<p><a href="http://liko0312.wix.com/wildfireimages" rel="nofollow">http://liko0312.wix.com/wildfireimages</a></p>
<p>I've made it to slide in and out from the same direction using CSS and placing the div outside with 100% and then bringing it in with 0, very much a ... | 0 | 3,450 |
How do you apply a style to only one div in the HTML? | <p>I had working code until I tried to make the style.css page apply only to a certain div on the index.html file. This is the current code I have: <a href="http://codepen.io/anon/pen/LEXxeM" rel="nofollow">http://codepen.io/anon/pen/LEXxeM</a></p>
<p>All that I did (which made it stop working) was completely wrap the... | 0 | 3,224 |
Nullable object must have a value. VB.NET | <p>I need help. I'm having problem in my program. This is my code on my Business logic layer.</p>
<pre><code>Function Load_ItemDetails(ByVal ItemID As String) As Items
Dim objItemEnt As New tblitem
Dim objitem As New Items
Try
Using da = New DataAccess
objItemEnt = da.Load_ItemDetails(I... | 0 | 1,131 |
How to correctly bind checkbox to the object list in thymeleaf? | <p>My domain model consist of an <code>Employee</code> and <code>Certificate</code>. One Employee can reference/have many certificates (one-to-many relationship). The full list of certificates could be get from the <code>certificateService</code>. </p>
<p>To assign some special certificate to the employee I used <code... | 0 | 2,062 |
Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name defined in class path resource | <p>There was a mySql DB connection in my application, i need to crate another connection for different mySql DB for that i replicate the already created connection's steps with some different name in order to create the new mySQL DB connection but im facing the following exception, can any one help me by giving some hi... | 0 | 3,297 |
java.lang.ClassNotFoundException: org.hibernate.engine.transaction.spi.TransactionContext | <p>I am developing <code>Spring MVC Hibernate</code> Integration example. In this example I'm using <code>Spring 4.1.9.RELEASE</code> and <code>Hibernate 5.1.0.Final</code>. If I downgrade Hibernate version to <code>4.3.5.Final</code> then it works. Now inorder to use hibernate 5 what else configuration do I need to ch... | 0 | 6,360 |
jQuery.Deferred exception: Cannot read property 'on' of undefined TypeError: Cannot read property 'on' of undefined | <p>I know there are many questions related to this problem. I have read them all but I am not still able to fix my problem. I am getting this error:</p>
<blockquote>
<p>jQuery.Deferred exception: Cannot read property 'on' of undefined TypeError: Cannot read property 'on' of undefined<br>
at initCustomDropdown ... | 0 | 11,070 |
Xcode 5 and phonegap: linker errors on building for device but not for simulator | <p>Our phonegap app builds fine for the iphone simulator but generates linker errors when building the app on an iphone. the only thing that changed was installing testflight and a test app.</p>
<p>We already removed testflight and the test app, but the linker errors remain.</p>
<p>Any ideas on how to fix this?</p>
... | 0 | 1,254 |
ASP.NET MVC - Displaying a list of items which each have a list of items | <p>I hope this is the best way of explaining this...</p>
<p>I have 3 view objects: School, Courses, and Classes. Each school has multiple courses, and each course can have multiple classes (think of a course as a program of study, with classes being the actual classes). In my main View, I display all schools, and cl... | 0 | 2,776 |
AddressSanitizer:DEADLYSIGNAL when trying to use a user input | <p>here is the code that i have:</p>
<pre><code>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
#include <assert.h>
#include <time.h>
const int Win = 0, Lose = 1, Draw = 2;
const int Rock = 0, Paper = 1, Scissors = 2;
int in... | 0 | 1,481 |
How to reset Password Using PHP Codeigniter | <p>Am working on a Password reset system whereby the user who forgot his password can request for password reset link by submitting his email used in registration. I successfully create the email, it sent the link and I test the link by clicking on it. The link went through and load the reset page but my problem is how... | 0 | 2,639 |
Installation failed with message Error: android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space | <p>I was getting the message </p>
<pre><code>> Installation failed with message Failed to establish session.
</code></pre>
<p>so following some responses to the problem I disabled Instant Run and I started getting</p>
<pre><code>> Installation failed with message Error: android.os.ParcelableException: java.io.... | 0 | 3,068 |
TypeError: Failed to execute 'fetch' on 'Window': Invalid value | <p>I've tried to use fetch to call from backend using react, without libs (such as Axios). So I created this function:</p>
<pre><code>export function api(url, method, body, isHeaderContentType,isRequestHeaderAuthentication,header, succesHandler, errorHandler) {
const prefix = 'link';
console.log("url:",prefix+url);
co... | 0 | 1,635 |
faultString: java.lang.IllegalArgumentException: argument type mismatch | <p>I am trying to give web service call using Axis genrated stub.</p>
<p>It is running giving below exception when it tryies to get respons.</p>
<p>and when i view my response message using :</p>
<pre><code>String responseMsg = stub._getCall().getMessageContext().getResponseMessage().getSOAPEnvelope().toString();
</... | 0 | 2,088 |
jQueryUI autocomplete 'select' does not work on mouse click but works on key events | <p><strong>JS/JQuery:</strong></p>
<pre><code>$this.find('input').autocomplete({
source: "/autocomplete_tc_testcasename",
minLength: 2,
focus: function(e,ui){
$(this).val(ui.item.label);
return false;
},
select: function(e, ui) {
console.log("Selected: "+ui.item.value);
... | 0 | 1,161 |
File Upload to aws S3 Laravel 5.1 | <p>I am getting the Following Error:</p>
<blockquote>
<p>FatalErrorException in FilesystemManager.php line 179: Class
'League\Flysystem\AwsS3v3\AwsS3Adapter' not found</p>
</blockquote>
<p><strong>Code:</strong></p>
<pre><code>//Composer.json
"require": {
"php": ">=5.5.9",
"larave... | 0 | 1,492 |
Vite / Vue 3 : "require is not defined" when using image source as props | <p>I switched from the Vue CLI to <a href="https://vitejs.dev/" rel="noreferrer">Vite CLI</a>, and from the Composition API of Vue 3 to <a href="https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup" rel="noreferrer">SFC Script setup</a> API.</p>
<h3>How it previously worked for me</h3>
<p>When I was using th... | 0 | 1,084 |
how to set unread notification count in NavigationView of DrawerLayout? | <p>I have created one <a href="https://developer.android.com/reference/android/support/design/widget/NavigationView.html" rel="noreferrer">NavigationView</a> inside <a href="https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html" rel="noreferrer">DrawerLayout</a> using <a href="http://andro... | 0 | 1,104 |
How should I use GCD dispatch_barrier_async in iOS (seems to execute before and not after other blocks) | <p>I'm trying to synchronize the following code in iOS5:</p>
<ol>
<li>an object has a method which makes an HTTP request from which it
gets some data, including an URL to an image</li>
<li>once the data arrives, the textual data is used to populate a
CoreData model</li>
<li>at the same time, a second thread is dispatc... | 0 | 1,103 |
Symfony 3.4 - Make sure annotations are installed and enabled | <p>I am trying to implement a forgot password feature to an existing Symfony app. So fare I have the password request done. The user puts in it's email and an email is sent with a token. The return URL looks like this:</p>
<p>/intranet/password-change/f74eab6dca8b5ed6fd46e7893221254b655f94799589e0b83c</p>
<p>Normally a... | 0 | 1,636 |
Segmentation faults occur when I run a parallel program with Open MPI | <p>on my previous post I needed to distribute data of pgm files among 10 computers. With help from Jonathan Dursi and Shawn Chin, I have integrate the code.
I can compile my program but it got segmentation fault. I ran but nothing happen </p>
<p><code>mpirun -np 10 ./exmpi_2 balloons.pgm output.pgm</code></p>
<p>The ... | 0 | 5,178 |
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit. .POST_MODULE | <p>Help!
I want deployed im have this error:</p>
<blockquote>
<p>22:50:45,854 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./opciondefensa.UndertowDeploymentInfoService: org.jboss.msc.service.StartException in serv... | 0 | 6,774 |
Set custom layout in popup window in android | <p>I have a problem with popup window. I want to create popup window with my own layout.
This is code:</p>
<pre><code>public class PopupWindowView extends PopupWindow{
PopupWindow popup;
boolean click = true;
LayoutParams params;
RelativeLayout mainLayout;
TextView tv;
LinearLayout layout;
... | 0 | 2,107 |
Spring Issues: Error creating beans and Injection of autowired dependencies failed | <p>So i'm trying to learn spring and i've been reading a lot of tutorials and trying copying some code from a project that I have in a flash drive.</p>
<p>I already set up tomcat and it works find but i'm still having some problems here.
The thing is I can normally access a controller's action from my browser without ... | 0 | 8,459 |
How to map function address to function in *.so files | <p>backtrace function give set of backtrace how to map it with function name/file name/line number?</p>
<pre><code>for ex:-
backtrace() returned 8 addresses
./libtst.so(myfunc5+0x2b) [0xb7767767]
./libtst.so(fun4+0x4a) [0xb7767831]
./libtst.so(fun3+0x48) [0xb776787f]
./libtst.so(fun2+0x35) [0xb77678ba]
./libtst.so(fun... | 0 | 1,718 |
composer update without dependencies | <p><a href="https://i.stack.imgur.com/PKlCN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PKlCN.png" alt="enter image description here"></a>I am using yii2 framework since last few weeks. But now I am getting some issues with composer itself.</p>
<p>Just for info, I am using ubuntu 14.04</p>
<p>W... | 0 | 1,128 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.