title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
java.security.NoSuchAlgorithmException: Signature MD5WITHRSA implementation not found | <p>I'm having problems on a Websphere server 8.5
with
Java version = 1.6.0, Java Runtime Version = pap6460_26sr8fp7ifx-20151008_01 (SR8 FP7)</p>
<p>The code that fails is:</p>
<pre><code> Security.addProvider(new BouncyCastleProvider());
Signature sign = Signature.getInstance("MD5withRSA", "BC");
</code></pre>
... | 1 | 1,146 |
write a test to change prop of a child component | <p>*********************Updated*********************************************</p>
<p>I have a DialogBox component that I am trying to test out. I am trying to set the 'value' prop of a child component(TextInput) inside the DialogBox. I have tried almost everything but nothing seems to work. Can some one help me?</p>
<... | 1 | 2,681 |
EditText focus disappears, when the barcode scanner reads the barcode | <p>I need to read a barcode for an application. I am using trigger barcode scanner for this. Communication is via USB.</p>
<p>As you know, barcode scanners work like keyboards. When the device reads the barcode, it tries to write the value to the input that has focus. And the user presses the trigger, the barcode scan... | 1 | 1,213 |
Store images in to sqlite database | <p>I know this question was asked by many people and there are several discussions and arguments on "Why to use sqlite,use FMDB,core data" etc.. to store or insert images in database.But please do understand my problem that I am very much used to sqlite3 and I am unable to go with core data or some other db.Also I am j... | 1 | 1,078 |
Xcode: Problem with section in tableview | <p>i'm beginner in coding in Xcode.
What i want to get is a tableview load from plist with section.
And my problem is to place correctly row in my section.</p>
<p>In my plist, i've the name of my section in each entries, but i don't know how to get these information. So i add manualy by code the name of my two section... | 1 | 3,079 |
How to replicate the nextjs getStaticProps() function for all pages without having to repeat all pages | <p>How can I replicate the nextjs <code>getStaticProps()</code> function for all pages without having to repeat all pages?</p>
<p>These are my pages and my layout component. I wanted to add a global function to all pages, is that possible? Can you add a global <code>getStaticProps</code> function?</p>
<p><strong>index.... | 1 | 3,804 |
django.db.utils.IntegrityError: column "color_set_id" contains null values | <p>app.models.py</p>
<pre><code>class ColorSet(models.Model):
color = models.CharField(max_length=50, verbose_name='Color', default='', blank=True, null=True)
code = models.CharField(max_length=50, verbose_name='Code of color', default='', blank=True, null=True)
class Meta:
verbose_name = 'Color'
... | 1 | 1,535 |
server does not have an epr for the wsdl epr - Axis2 | <p>I have been trying to find out the exact reason for the error and this looks like a common error to many of them using Axis but i could not able to fix them with any thing which i was able to find on net.</p>
<p>I am able to see my service at </p>
<pre><code>http://localhost:8080/axis2/services/listServices. when ... | 1 | 1,187 |
How to join two or more DataFrames in pandas, python | <p>I've trying to join 3 dataframes, however I'm having problems to do it. Let me show the scenario.</p>
<p>I have 3 dataframes:</p>
<p>First: <strong>Country</strong></p>
<p>just two columns: <strong>Country_ID, Country_Name</strong>
Primary Key: <strong>Country_ID</strong> </p>
<p><strong>Country_ID</strong> | <... | 1 | 1,652 |
Encoder crash on Adreno GPU while encoding from Surface | <p>I've been struggling with this issue for more than a week, and most likely it is a bug in the <strong>Qualcomm GPU/hardware video encoder</strong>. Since we are pressed to release the application, and their developer forums did not provide any feedback, I am posting it here too, hoping that someone is able to provid... | 1 | 1,070 |
How to draw a graph in chart control with mouse | <p>My task is to draw a graph in chart control using mouse and retrieve the (X,Y) points from the Graph. </p>
<p>I tried of drawing a graph with mouse.
Here is the normal Graph looks like.<img src="https://i.stack.imgur.com/YN4t5.jpg" alt="enter image description here">
After drawing with mouse, it looks like : <img s... | 1 | 1,090 |
Extracting IP addresses from a file | <p>I'm trying to extract IP addresses from an <code>asp</code> file in Python, the file looks something like this:</p>
<pre><code>onInternalNet = (
isInNet(hostDNS, "147.163.1.0", "255.255.0.0") ||
isInNet(hostDNS, "123.264.0.0", "255.255.0.0") ||
isInNet(hostDNS, "137.5.0.0", "255.0.0.0") ||
... | 1 | 1,614 |
Visual Studio ASP.NET Core 1.0 project can't compile | <p>Help. I can't compile my project from VS 2015, apparently something went wrong when installed/uninstalled of the project packages with NuGET.</p>
<p>Every time I want to build, I get the following errors:</p>
<blockquote>
<p>Unexpected end of content while loading JObject. Path 'dependencies',
line 60, positio... | 1 | 1,394 |
Socket.IO throwing Type Error | <p>I have a simple NodeJS server that uses bcrypt, mysql and socket.IO, that works as a gateway for a mysql database and a chat server. This server connects to the client using Socket.IO client, and sends requests to the server using Socket.IO events. However, the registration event throws a <code>Type Error : undefine... | 1 | 1,459 |
Multiple users database connection pooling in JBoss AS/Wildfly | <p>I'm working on web application, that need access to postgresql database.</p>
<p>For some reason, i need to establish individual connection, for every authenticated user.</p>
<p>My current datasource setup looks like this:</p>
<pre><code><datasource jndi-name="java:jboss/ds" pool-name="ds-pool" enabled="true"&g... | 1 | 1,048 |
Trying to set hidden input's value to toggle between True and False in JavaScript | <p>I am attempting to toggle the value of hidden inputs between true and false by users clicking on table cells. I am able to successfully assign event handlers to the cells, and get their values. My toggling function (<code>true_switch</code>) appears to always return false, however, and I can't be sure if it actually... | 1 | 1,463 |
how to mute/unmute pause/unpause audio and video in twilio video call | <pre><code>init: function(config){
var that = this;
that.CONFIG = config;
that.video = Twilio.Video;
that.CONFIG.videoCall = true;
that.CONFIG.audioCall =true;
that.CONFIG.audioCallTrackCount =0;
that.CONFIG.videoCallTrackCount =0;
//alert message instance
that.ALERT_MESSAGES = Obj... | 1 | 4,263 |
How to write pcap file from scratch, decorticating libpcap functions? | <p>I've got this code which is working fine to write a pcap file (with just the Ethernet protocol for the test) with libpcap:</p>
<pre><code>struct ethernet {
u_char mac1[6];
u_char mac2[6];
u_short protocol;
};
int main() {
pcap_t *pd;
pcap_dumper_t *pdumper;
pd = pcap_open_dead(DLT_E... | 1 | 1,590 |
Cannot Install ruby-oci8 on Ubuntu 12.04LTS | <p>I execute</p>
<pre><code>$ bundle install
</code></pre>
<p>For my rails application... (3.2.8)</p>
<p>Right when it gets to ruby-oci8 ...</p>
<pre><code> Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/ubuntu/.rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
checkin... | 1 | 1,301 |
Pandas group by then count & sum based on date range +/- x-days | <p>I want to get a count & sum of values over +/- 7 days period of a column after the dataframe being grouped to certain column</p>
<p>Example data (edited to reflect my real dataset):</p>
<pre><code>group | date | amount
-------------------------------------------
A | 2017-12-26 04:20:20... | 1 | 1,613 |
WinAPI Get access to another application's controls | <p>I need to get list of all controls from win calculator (calc.exe) and press buttons on calc from my application.
I tried code injection and now could execute my code from calc application. In the example it sends msg box:</p>
<pre><code>#define PROC_NAME _T("calc.exe")
#define MAX_READ 128
#include <windows.h&g... | 1 | 1,157 |
Could not allocate space for object '<temporary system object: 422212632707072>' in database 'tempdb' because the 'PRIMARY' filegroup is full | <p>I am trying to execute this statement but I got this error:</p>
<blockquote>
<p>Could not allocate space for object '' in database 'tempdb' because the 'PRIMARY' filegroup is full. Create disk space by deleting unneeded files, dropping objects in the filegroup, adding additional files to the filegroup, or setting... | 1 | 1,698 |
BitmapFactory decodeFile FileNotFoundException | <p>I have an app where you can select images from the gallery or Photos folder on the device. The selected file's paths are stored in an Intent so they can be passed around between Activities. I access the paths via intent.getDataString().</p>
<p>Once i have all the selected paths to the images, i store them in an Arr... | 1 | 1,923 |
Subscribe to topic with Stomp Client but i don't get any notification don't work React Native and work on Angular | <p>I want to subscribe to the topic with <code>SockJS</code> and <code>Stomp Client</code> I put the subscribe on the client inside <code>onConnect</code> function to make sure that the Client is connected, This my configuration for:</p>
<pre><code>import getEnvVars from "./environment";
import { socketUrl } ... | 1 | 1,920 |
Flaw in checking HTTP 500 error HttpUrlConnection Java | <p>My issue is with <code>status != 200</code> , when I run this script (3) different times, it'll print out the value for <code>if{}</code> (1) times, the <code>else{}</code> (1) time, and the <code>catch{}</code> another.</p>
<p>I am simply trying to just print out in the <code>if(status != 200 || showTitleAttr == n... | 1 | 1,564 |
How can solve this deprecationWarning? | <p>I want multi requests using aiohttp.
I was wrapping aiohttp like this, and i was test like this</p>
<p>my code</p>
<pre class="lang-py prettyprint-override"><code>import asyncio
from aiohttp import ClientSession as AioClientSession
class ClientSession(AioClientSession):
async def _get(self, session, url, par... | 1 | 1,446 |
Efficient random generator for very large range (in python) | <p>I am trying to create a generator that returns numbers in a given range that pass a particular test given by a function <code>foo</code>. However I would like the numbers to be tested in a random order. The following code will achieve this:</p>
<pre><code>from random import shuffle
def MyGenerator(foo, num):
o... | 1 | 1,209 |
ScrollView doesn't scroll in layout? | <p>I have in this order RelativeLayout / ScrollView / Relative Layout / Relative Layout and inside the last Relative Layout i have two Linear Layouts.</p>
<p>Don't know why this is happening. I have almost the same layout for other activity and it's working.</p>
<p>Here is the xml code:</p>
<pre><code> <?xml v... | 1 | 12,314 |
Class not found in aar | <p>I'm getting class not found exception in my Android library (aar) when GoogleApiAvailability is called.</p>
<pre><code> Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.GoogleApiAvailability" on path: DexPathList[[zip file "/data/app/com.myunityplugin.PushNotification... | 1 | 2,212 |
Error: The "from" argument must be of type string. Received undefined | <p>I am using webdriverIO v7 (latest stable version) and cucumber.<br />
I get that error: <code>Error: The "from" argument must be of type string. Received undefined</code><br />
This is the stack trace:</p>
<pre><code>2021-04-08T18:29:37.403Z ERROR @wdio/runner: TypeError [ERR_INVALID_ARG_TYPE]: The "f... | 1 | 1,941 |
Parse Nested XML using python | <p>I'm trying to parse Nested XML using python. Sample file format looks like this</p>
<pre><code><repositoryFileTreeDto>
<children>
<children>
<file>
<name> File1 </name>
<path> home/user1/File1.txt </path>
... | 1 | 1,865 |
jQuery disable enable button style | <p>I am trying to make a disable enable button style using jquery.</p>
<p>This is my <a href="http://codepen.io/shadowman86/pen/Buscf" rel="nofollow">DEMO</a> page from Codepen</p>
<p>In my demo you can see there is a blue color submit button . When you write something in input filed then button is active.</p>
<p>I ... | 1 | 1,498 |
python flask-security: encryption error "hash could not be identified" | <p>I'm using Flask-Security in a Flask project. Basically everything works, until I try to turn on password encryption. Basically I followed this: <a href="http://packages.python.org/Flask-Security/configuration.html" rel="nofollow">http://packages.python.org/Flask-Security/configuration.html</a>
Which led to me adding... | 1 | 1,856 |
Unable to update a particular record in table using servlet and jsp | <p>Hey guys I have created a jsp page for user where they can update their existing details and the record get updated in database on submit.</p>
<p>1.> <strong>Accountdetails.java</strong></p>
<pre><code>//Java Servlet program responsible for obtaining the user data and updating into database
package roseindia... | 1 | 4,265 |
My application with Spring Security don't go beyond login page | <p>I just started a project with uses Spring Security for authentication which uses Java configuration instead XML. That's my class SecurityConfig.java:</p>
<pre><code>@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
public void configure(Authenti... | 1 | 1,891 |
Generate and print a PDF with specific size in Android | <p>I'm working in an Android application, and I want to generate and print a PDF. But I'm having some trouble. I need to generate the <code>PDF</code> with 80mm of <code>width</code>, and the <code>height</code> may vary.</p>
<p>I'm trying this:</p>
<pre><code>public class PDFGenerator implements Runnable {
priva... | 1 | 1,214 |
Upload fails in PHP using Malsup's jQuery File Upload Progress Bar | <p>I am using <a href="http://www.malsup.com/jquery/form/progress2.html">Malsup's jQuery File Upload Progress Bar</a> for visualizing progress bar while uploading files to server. I am using it now at present. I have got the following doubts in this plugin:</p>
<p>1) File uploads even if the progress bar has not achie... | 1 | 1,460 |
Creating DLL that contains a ResourceDictionary | <p>I have created a new WPF-Project. After creating the project, I changed the project properties to <strong>outputtype = classlibrary</strong>. </p>
<p>Here is my file structure:</p>
<p><a href="https://i.stack.imgur.com/bBxJ1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bBxJ1.png" alt="enter i... | 1 | 1,435 |
A simple java client server program | <p>So I did this client server program in java for my college mini project. Note that this is just a small module of a big project I'm working on. I need a string to be sent from the client to the server. The server will return back the string as it is back to the client. (The code will be modified later such that the ... | 1 | 1,731 |
MongoDB.Driver.Builders how to group and get average | <p>We are using the C# MongoDB driver, and we would like to group on the Date part of a timestamp and get the average for that date. The problem is that we can't find the correct synthax for the group using the builders.</p>
<p><strong>This code shows how the group is made with BSON documents, but we find that synthax... | 1 | 1,463 |
WPF RichTextBox inside DataGrid format is messed up | <p>I need to use RichTextBoxes in a column of a DataGrid. This is done in xaml via</p>
<pre><code><DataGrid x:Name="ui_tblInputs"
Grid.Row="0" Grid.Column="2" Grid.RowSpan="3"
AutoGenerateColumns="False"
HeadersVisibility="Column"
CanUserSortColumns="F... | 1 | 1,158 |
Converting a regular Maven project to a Spring Boot project | <p>My supervisor asked me to convert an old Maven project we have lying around into a Spring Boot project such that we are able to access the project's backend via RESTful interaction (before that the project's backend was only accessible via a console interface).</p>
<p>So, first I added a simple Spring Boot applicat... | 1 | 5,484 |
When adding events to FullCalendar they are duplicated - multiple calls made to add event without cause | <p>I am using FullCallendar and Jquery. I made a google calendar like interface and pull events from a json file. When a user clicks on a day a div opens for them to enter info click add event and the event is added. On the second click when the user clicks add event two events are added, one on the first clicked day a... | 1 | 1,113 |
React JS Webpack failure for Node SASS | <p>below code is my <code>webpack.config.dev.js</code>.</p>
<p>I got the webpack config after running <code>npm run eject</code> as you might already know.</p>
<p>I installed <code>node-sass</code> and <code>sass-loader</code> packages.</p>
<p>I included the webpack build configuration.</p>
<p>When I run <code>npm ... | 1 | 8,821 |
NoReverseMatch django 1.4 admin | <p>I migrated a project from 1.1 to 1.2, then to 1.3, all of this, flawlessly. However, when I moved the version up to 1.4, I keep getting a </p>
<pre><code>NoReverseMatch at /admin/<app_name>/<model_name>/
Reverse for 'app_list' with arguments '()' and keyword arguments '{'app_label': ''}' not found.
</co... | 1 | 2,275 |
How do I make an API call using createSlice | <p>I struggling to understand where I make async calls when using createSlice from redux-tookkit. I tried following the docs but got lost with all of the TypeScript stuff. (Im not using TS) I have a Login component: </p>
<pre><code>import React, { useState } from "react";
import { useSelector, useDispatch } from "reac... | 1 | 1,154 |
Change color of Text inside List view in android | <p>I have to change color of multiple selected items (Text views) in List view. What I am doing here is, when user selects items from list views, color should be change to BLUE and when user deselects items, color should change to by default color (here Black). I have been through few tutorials and implemented one litt... | 1 | 1,614 |
Repainting widgets in QT | <p>I have a piece of code that initializes an instance of a QWidget, puts it inside a layout and invokes the animation. All of that is happening in the loop. I've encountered a problem of each iteration drawing the animation at the same time, completely ignoring QThread::usleep(). Is there a way to clean the layout the... | 1 | 1,447 |
Google Cloud Pub/Sub Node.js Sample: TypeError: Cannot read property 'on' of null | <p>I'm using GCP and I want to use Cloud Pub/Sub. I got this error below when I tried Node.js sample. Does anyone knows how to fix it?</p>
<pre><code>/private/tmp/pubsub/pubsubsample.js:26
subscription.on('error', onError);
^
TypeError: Cannot read property 'on' of null
at /private/tmp/pubsub/pubs... | 1 | 1,201 |
Certificate issued by cert manager reads as "issued by: cert-manager.local" instead of Let's Encrypt and does not work | <p>When I browse my website from Chrome, it says that the certificate is invalid, and if I check the details, this is what I see:</p>
<pre><code>Issued to:
Common Name (CN) test.x.example.com
Organization (O) cert-manager
Organizational Unit (OU) <Not Part Of Certificate>
Issued by:
Common Name (CN) ... | 1 | 5,505 |
CollapsingToolbarLayout collapsed title has bad position | <p>I have a straight forward CollapsingToolbarLayout.
It works fine so far but if I collapse the toolbar the title's position isn't centered vertically.</p>
<p>Here is my layout:</p>
<pre><code><android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="ht... | 1 | 1,610 |
Sending Emails without Intents in Android | <p>I'd like to send a message thru email without using intent. When I press the button, instead of <strong>"<em>Email was sent successfully</em>"</strong> is the toast message, it shows "<em>Email was not sent</em>" and it doesn't sending the email. Can someone help me regarding this matter?</p>
<p><strong>MainActivit... | 1 | 2,828 |
Array required but (class name) is found | <pre><code>import java.util.Arrays;
import java.util.Scanner;
class MixNumberWithUnit_AM{
String unit;
Mix_AM mixNumber;
public MixNumberWithUnit_AM (String str) {
String[] abc= parseUnit(str);
mixNumber= new Mix_AM(abc[0]);
unit = abc[1];
}
public static MixNumberWithUnit_AM positi... | 1 | 2,096 |
Download zip file from REST web service + AngularJS | <p>I am using REST jersey on server side and AngularJS on client side.</p>
<p>My requirement is to download the zip file requested by client for specific date range.</p>
<p>Server side code: //Time being I have hardcoded one zip file for testing</p>
<pre><code>@POST
@Path("/LogRange")
@Produces({MediaType.AP... | 1 | 1,077 |
Simple PHP SQL login troubleshooting | <p>I am trying to create a very basic PHP login by retrieving a registered username/password from a database. This is not ever going live and I am aware there is zero input validation. All I'm trying to do is select data from a database in a login.</p>
<p>Here is the login form on index.html:</p>
<pre><code> <t... | 1 | 1,038 |
Cordova - Refused to connect to api from device (Content Security Policy) | <p>I am working with Visual Studio's Tools for Apache Cordova.</p>
<p>When I build the app with Ripple, all is well. But when I build it to my android device, the app refuses to connect to my external API.</p>
<p>This is the error in the JavaScript Console log:</p>
<blockquote>
<p>Refused to connect to '<a href="h... | 1 | 1,084 |
Handle the closing of the workbench window in Java RCP application | <p>I'm writing an Eclipse RCP and I want to ask the user whether to backup the database when the application is closed. Doing it from the File>Exit menu was easy as I defined a command exit:</p>
<pre><code>public class ExitCommand extends AbstractHandler implements IHandler {
@Override
public Object execute(Execution... | 1 | 1,644 |
How do you implement action listener on listView? | <p>I have been struggling for days trying to find the proper way to implement an action listener to a ListView. What I really want to accomplish is to create a ListView and whenever the user clicks any item, the previous Activity will be switched. I am really new at this so please help me, I would really appreciate it ... | 1 | 1,301 |
Primary key integrity constraint violation with Hibernate and HSQLDB | <p>Good morning everyone</p>
<p>I am using HSQLDB with Hibernate. I have a situation where even if I set the primary key value, I am still getting an <code>integrity constraint violation: NOT NULL check constraint; SYS_CT_10346 table: NUMBERS column: PK</code>. As can be seen below.</p>
<pre><code>SEVERE: integrity c... | 1 | 4,250 |
SQL Server 2014: Re-Create System view master.dbo.spt_values | <p>On my test SQL Server 2014 installation, I was "cleaning" the master database.</p>
<p>With the following command, I was checking which <strong>user objects</strong> there are:</p>
<pre><code>SELECT
'DROP ' +
CASE
WHEN [sys].[all_objects].type IN ('AF','FN','FS','FT','IF','TF') THEN 'FUNCTION '
WHE... | 1 | 1,457 |
Why do I get SyntaxError when running a Python 3 script on Visual Studio Code? | <p>I was progressing through the exercises on <strong>Zed Shaw's Learn Python 3 the Hard Way</strong> but then on Exercise 6, I encountered a syntax error, which I am not able to figure out. I tried searching on Google, StackOverflow (other posts), but none of the solutions mentioned work for me.</p>
<p>The snippet of ... | 1 | 1,037 |
java.lang.NullPointerException at org.hibernate.ejb.criteria.predicate.ComparisonPredicate.render | <p>I have just added a predicate condition to my code, its resolving the column fine but not sure why its thowing error:</p>
<pre><code> ERROR com.sl.web.controller.AbstractController logError- Exception occur in Controller: null.
java.lang.NullPointerException
at org.hibernate.ejb.criteria.predicate.Comparison... | 1 | 4,109 |
Handling errors in Express.js in service / controller layers | <p>I am writing an application in Express.js with a separate controller layer and a service layer. Here is my current code:</p>
<p><strong>user.service.js</strong></p>
<pre><code>exports.registerUser = async function (email, password) {
const hash = await bcrypt.hash(password, 10);
const countUser = await User.co... | 1 | 1,042 |
WebGrid Helper pagination not working with .NET 4.5 MVC 4 | <p>I have upgraded an mvc3 project to mvc4 project and I have changed the target framework from .NET 4.0 to .NET 4.5 (I don't know if it's important to say).</p>
<p>Now, everywhere I use a webgrid helper, pagination is completely broken.
Indeed, update request is sent 4 times and the element with "displayClient" as Id... | 1 | 2,251 |
More extensive mangling terser-webpack-plugin? | <p>Is there a way to thoroughly mangle <code>vue</code> components that have been bundled with <code>webpack</code>?</p>
<p>When applying mangling via <a href="https://github.com/webpack-contrib/terser-webpack-plugin/" rel="nofollow noreferrer"><code>terser-webpack-plugin</code></a> with <code>mangle.properties</code>... | 1 | 1,206 |
IIS Rewrite rule with Angular routing | <p>I am building an application that is an ASP.NET MVC and Angular 1.x hybrid. I use MVC as a shell and then layered Angular on top of it. I did this for a couple of reasons. First, it provided me with the ability to create an HTML helper class for script references to support cache busting. Second, it allows me to... | 1 | 1,876 |
What's causing this Maven/JBehave error? | <p>I have a Maven project that produces a Mule Connector. It's basically a shell, so I started adding some BDD tests using JBehave. The first test I added does very little:</p>
<pre><code>public class FakeSteps extends Embedder {
@Given("I have something")
public void iHaveSomething() {
Syst... | 1 | 10,009 |
jQuery Uncaught TypeError with offset().left | <p>My code, visually anyway, works fine, but I keep getting "Uncaught TypeError: Cannot Read property 'left' of undefined" in my console. I have no clue what might be causing it. </p>
<p>Specifically, the error is showing up on the following: line: </p>
<pre><code>var left = $(this).siblings('li.active').offset().le... | 1 | 1,392 |
OnApplyTemplate is not being called | <p>I have a solution with 2 projects: Windows Phone App and a Windows Phone Class Library. The class library has a control called MessageBoxExtended which inherits from ContentControl. The project also has a Themes folder with a generic.xaml file. The file has the Build Action set to Page and it looks like this:</p>
<... | 1 | 2,433 |
IIS 7 and Entity Framework connection string | <p>I am using Entity Framework in ASP.Net project. It works fine in development server. But it throws exceptions in IIS 7. I am using SQL Server 2008 Enterprise as the backend.</p>
<pre><code>Entity Framework Connection String in the web.config follows
<connectionStrings>
<add name="NorthwindEntities" connec... | 1 | 1,047 |
JLabel html text ignores setFont | <p>I've just started porting my Swing app from OS X to Windows and things are painful with <code>JLabel</code>s.</p>
<p>I've noticed that the font specified to <code>setFont</code> is ignored if the label's text is HTML (this doesn't happen on the Mac). The HTML formatting is EXTREMELY useful for readability on compl... | 1 | 1,440 |
How to get XML response by using Retrofit in Android | <p>I want to parse XML response by using Retrofit, but i get null response
and i created model class for its each xml tag. i want to get all response print in logcat just like json response print by using <code>new Gson().toJson(response.body)</code>
response from web service- </p>
<pre><code><?xml version="1.0"?&g... | 1 | 1,204 |
Creating a popup like state using AngularJS ui-router | <p>I'm trying to create a state which acts like a popup, i.e it doesn't clear the current state, it just pops over it without completely destroying the current state (So that the user can gain access to it by dismissing the popup).</p>
<p>Heavily simplified, my applications routes is something like the following:</p>
... | 1 | 1,750 |
Rijndael: C++ encryption, C# decryption | <p>My situation: I'm rewriting a server in C# which was written in C++ for learning purposes. At some point the client will send a password to the server which is encrypted. They used the Rijndael encryption for the password.
You can find the original encryption class here:</p>
<p>Rijndael.h: <a href="https://github.c... | 1 | 1,374 |
MVC Add Record to Database | <p>Could somebody please help me add a record to a database?</p>
<p>I have created some base elements, but I'm struggling with the code for the AccountController. I would like for a user to enter the values for Stone and Pound via the form, and on posting add a record to the Weight table along with current Id of the l... | 1 | 1,510 |
How to disable protected mode for Excel file generated using Apache POI? | <p><a href="https://i.stack.imgur.com/YbVXF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YbVXF.png" alt="enter image description here"></a>I'd created excel report(.xls) using Apache POI. Whenever I open it, it's showing a message "PROTECTED VIEW: Office has detected a problem with this file. Edit... | 1 | 1,253 |
Howto draw text on a square with Android and OpenGL ES 2.0 | <p>I wanted to draw a square with <code>OpenGL ES 2.0</code> and put a dynamic text on it. I am trying to combine the instructions in <a href="https://stackoverflow.com/a/4336679/2039740">this</a> post (which I had to port to <em>OpenGL ES 2.0</em>) and the four lesson of <a href="http://www.learnopengles.com/android-l... | 1 | 7,282 |
Filter a custom Listview using Buttons (Android) | <p>I have a <code>Fragment</code> containing a custom <code>ListView</code> with custom <code>Adapter</code>. What I display in this list are some doctors which attributes are: <code>picture</code>, <code>name</code>, <code>age</code> and <code>gender</code>. </p>
<p><em>What I would like to do is filter the doctors b... | 1 | 1,103 |
ubuntu when core dump is not happening when program ran as root(sudo) | <p>when I ran a program which will cause the segmentation fault as root user , the core is not dumped.. I checked the ulimit -c and it is unlimited...But if I ran as a normal user the program is dumping the core.. </p>
<pre><code> suresh@suresh-desktop:~$ ulimit -c
unlimited
suresh@suresh-desktop:~$ ./main ... | 1 | 1,044 |
FAILED: setup-jack-server when building LineageOS | <p>I'm attempting to build LineageOS for the Moto Z (griffin) on a server, but the build crashes and burns 5 minutes out the gate. </p>
<pre><code>FAILED: setup-jack-server
/bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar... | 1 | 1,258 |
Responsive: Slides disappear on resize | <p>I'm using responsive breakpoints in my slide. On small screens, I'm showing 1 slide at a time. On large 2 (large means smaller than <code>990</code> pixels)</p>
<p>Example: I have breakpoints set to show 1 slide at a time on small screens and I disable the <code>slider</code> in large screen's. I have <code>8</code... | 1 | 1,066 |
Post request with axios and redux-thunk in a redux-form | <p>I can't figure how to make a post request with axios and redux-thunk so the action is dispatched after the query.</p>
<p>Here's my request module</p>
<pre class="lang-js prettyprint-override"><code>export default {
get: function (action, url) {
return (dispatch) => {
axios.get(`${ROOT_URL... | 1 | 2,075 |
Scala Editor in Eclipse doesn't work | <p>I installed the latest version of Scala IDE for Eclipse</p>
<p><a href="http://scala-ide.org/download/current.html" rel="noreferrer">http://scala-ide.org/download/current.html</a></p>
<p>Now I try to open a .scala.html file with the Scala editor and it says <code>Failed to create the part's controls</code> with th... | 1 | 3,252 |
jquery/javascript change color of text depending on day | <p>I am trying to make an 'opening hours' table that highlights the current day for the user.</p>
<p>HTML:</p>
<pre><code> <div id="Monday"> <h2> Mon</h2><h3>8am-9pm</h3></div>
<div id="Tuesday"> <h2> Tue</h2><h3>8am-9p... | 1 | 1,235 |
Python 3: "TypeError: cannot astype a datetimelike from [datetime64[ns]] to [int32]" - Jupyter Notebook | <p>Running into an issue with a jupyter notebook project I'm trying to get working on my Windows 10 machine, running Python 3. I get the mentioned error from this function:</p>
<pre><code>buy_per_min = (buy
.groupby([pd.Grouper(key='timestamp', freq='Min'), 'price'])
.shares
... | 1 | 2,195 |
Why did it fail to load ApplicationContext when doing JUnit Test? | <p>My project like this:</p>
<p><a href="https://i.stack.imgur.com/D2cpg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D2cpg.png" alt="enter image description here"></a></p>
<p><strong>LogDataDao.java:</strong></p>
<pre><code>package com.prince.javaexercise.dao;
import org.springframework.stereo... | 1 | 4,596 |
How can I use mongodb projections with Go and mgo? | <p>I am currently trying to extract a single object within a document array inside of mongodb.
This is a sample dataset:</p>
<pre><code>"_id" : ObjectId("564aae61e0c4e5dddb07343b"),
"name" : "The Races",
"description" : "Horse races",
"capacity" : 0,
"open" : true,
"type" : 0,
"races" : [
{
"_id" : Object... | 1 | 1,046 |
GridView inside a Fragment: getView is never called | <p>I have an <code>Activity</code> with a layout made of two <code>Fragment</code>. One of the fragments layout contains a <code>GridView</code>.</p>
<pre><code>public class PicturesGallery extends FragmentActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | 1 | 1,248 |
Gitlab CI run code quality not generate .json file | <p>I followed the <a href="https://docs.gitlab.com/ee/ci/examples/code_quality.html" rel="nofollow noreferrer">official guid</a> deploied a pipline to analyse my code quality. Although the pipline passed and the job successed, the json file didn't generated by docker. And these notis displaied: </p>
<blockquote>
<p>... | 1 | 1,691 |
How to style individual listView items in android? | <p>Sorry if this is a bit of a noobish question.
I am used to writing windows 8 apps in JS and CSS, and i am still not very good with java.</p>
<p>I am in the process of making my first android app (note taker).
I have a standard ListView defined in my xml like this:</p>
<pre><code><?xml version="1.0" encoding="ut... | 1 | 2,332 |
css - overflow: hidden in div nested inside display: table-cell | <p>I've got a problem with overflow in a div nested inside another div which has display: table-cell style. I'm not sure why content from #left-wrapper is not cropped (hidden) when it exceeds height of #left-wrapper. Thanks in advance for any advices. Fiddle link: <a href="http://jsfiddle.net/bpbHY/1/" rel="nofollow">h... | 1 | 1,234 |
Resolve coreference using Stanford CoreNLP - unable to load parser model | <p>I want to do a very simple job: given a string containing pronouns, I want to resolve them.</p>
<p>for example, I want to turn the sentence "Mary has a little lamb. She is cute." in "Mary has a little lamb. Mary is cute.".</p>
<p>I have tried to use Stanford CoreNLP. However, I seem unable to get the parser to sta... | 1 | 2,219 |
Using Cache in Play Framework | <p>I'm trying to implement a quiz application. The application loads the questions with ajax one by one. When a user clicks the 'to next question' button his/her answer is saved in cache. But when I debug, cache list is always null...</p>
<p>This code creates the first cache array:</p>
<pre class="lang-java prettypri... | 1 | 1,130 |
passing a parameter from a ImageButton to code behind | <p><strong>EDITED QUESTION</strong></p>
<p>I want to pass a variable, in this case 'name' containing the string bill, to a code behind method and use debug.print to see it</p>
<pre><code>string name = "bill";
<asp:ImageButton runat="server" id="DeleteButton" ImageUrl="Images/delete.jpg"
CommandArgument='<%# E... | 1 | 1,749 |
Remix error The transaction has been reverted to the initial state | <p>I am testing my smart contract on remix. While testing Start Airdrop function is running successfully but as I approach getAirrop function I receive error :</p>
<blockquote>
<p>transact to getAirdrop errored: VM error: revert. revert The transaction has been reverted to the initial state. Note: The called function s... | 1 | 2,640 |
Caused by: org.hibernate.exception.GenericJDBCException: Error asking dialect to register ref cursor parameter [5] | <p>When I execute the code below, I get the following error on line spq.execute(). Could you give me some tip about whats wrong, please?</p>
<pre><code>StoredProcedureQuery spq = emOracle.createStoredProcedureQuery("SDBANCO.PRC_CNS_SLD_JUD_BLOQ_DESBLOQ");
spq.registerStoredProcedureParameter(1, BigDecimal.class, P... | 1 | 1,612 |
AngularJS Content-Type header not added | <p>The following code sends a request and receives a response perfectly using CORS protocol. I would like to change the content-type header to be 'application/json' instead of 'application/x-www-form-urlencoded'. However, when I replace the content type with 'application/json' the request fails. When I inspect the requ... | 1 | 1,268 |
JMenuItem shortcuts Ctrl-C / Ctrl-V or Ctrl-Insert / Shift-Insert don't work anymore | <p>I have an older stand alone java swing-based app that uses JFrame with JMenuBar containing multiple Jmenu elements (with respective JMenuItem items).</p>
<p>After upgrading to the latest 1.6.0_41 (or 1.7.x) JVM on Windows (7 and vista) I've noticed that the menu item with the shortcut Ctrl-C (or Ctrl-Insert) doesn'... | 1 | 1,265 |
How to protect data protection key files with a certificate on Asp.Net Core 2 on debian/linux | <p>I'm trying to configuring data protection and to use the certificate to protect key files. Here is the MS documentation <a href="https://docs.microsoft.com/fr-fr/aspnet/core/security/data-protection/configuration/overview?tabs=aspnetcore2x" rel="noreferrer">Configuring data protection</a></p>
<p>Here is what I'm tr... | 1 | 2,160 |
JsonConverter not working as property attribute | <p>I have an object which contains a property with JsonConverter attribute. For data read and write, converter not working. The declared property is</p>
<pre><code>[JsonConverter(typeof(EpochDateTimeConverter))]
public DateTime CreatedOn { get; set; }
</code></pre>
<p>The EpochDateTimeConverter is</p>
<pre><code>pu... | 1 | 1,610 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.