title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Can't bind to 'routerlink' since it isn't a known native property using angular2-webpack-starter | <p>I have problem using Angular2 Router, and I can't work it out.</p>
<p>This is my index.html</p>
<pre><code><html lang="">
<head>
<title>Angular2 Webpack Starter by @gdi2990 from @AngularClass</title>
...
<script src="https://code.angularjs.org/tools/system.js"></script>
... | 1 | 1,294 |
PHPMyAdmin access denied using wamp | <p>When I try to connect on my DB using PHPMyAdmin, I now get this error:</p>
<pre><code>#1045 - Access denied for user 'root'@'localhost' (using password: NO)
</code></pre>
<p>Whereas it worked well for many months...<br/>
The fact is that there IS a password to connect, but PHPMyAdmin doesn't use it.<br/>
I tried ... | 1 | 1,414 |
how to extract element name and documentation from xsd using mxslt and put data into HTML table? | <p>I have a big problem and i'm not even sure if solution exists for my problem...
So the problem is:
I have a <strong>xsd</strong> file, and I need to create <strong>XSLT</strong> which will create html table
with 2 columns: the first column is for all elements names (4 example xs:element name="xxxxx") from my xsd ... | 1 | 1,592 |
Tomcat: change port from 8080 to 80 not working | <p>I have a tomcat server running on DigitalOcean VPS. The <code>server.xml</code> file looks like this:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<Listener classNa... | 1 | 9,307 |
Custom Editor Inheritance in Unity | <p><strong>SOLVED</strong>, the fix is in the code</p>
<p>I have some class that I want to create custom editor for, but I can't make it work.</p>
<p>I classes inherit from each other, and I want that the editor for the base class would be applied to all the sub classes editors</p>
<p>I have tried to use <code>[Cust... | 1 | 1,073 |
kendo switch button in asp.net mvc | <p>I have a kendo switch button, like this:</p>
<pre class="lang-html prettyprint-override"><code><div class="col-md-2 form-group">
<input id="euro-switch" aria-label="euro Switch" />
</div>
</code></pre>
<p>and this is the jquery:</p>
<pre class="lang-js prettyprint-override"><code>$("#euro-sw... | 1 | 1,315 |
WPF DataGrid: ColumnHeaderStyle ContentTemplate is not shown in full height until after resizing | <p>This might be a bug in the WPF Toolkit <code>DataGrid</code>.</p>
<p>In my Windows.Resources I define the following <code>ColumnHeaderStyle</code>:</p>
<pre><code><Style x:Name="ColumnStyle" x:Key="ColumnHeaderStyle" TargetType="my:DataGridColumnHeader">
<Setter Property="ContentTemplate">
... | 1 | 3,710 |
"em is not defined error" when trying to run doctrine command | <p>I've just setup a ZF2 project and configured it all for Doctrine2 without issue. It works and simply gives me an error now as it cannot find the database table I am trying to query.</p>
<p>Entity is also setup correctly, all as per <a href="http://www.jasongrimes.org/2012/01/using-doctrine-2-in-zend-framework-2/" r... | 1 | 1,024 |
sending php excel as attachment using php mail | <p>I have the following: </p>
<pre><code>$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
ob_start();
$objWriter->save("php://output");
$xlsData = ob_get_contents();
$xlsData1= "data:application/vnd.ms-excel;base64,".base64_encode($xlsData);
ob_end_clean();
//Require for mailing ... | 1 | 1,255 |
Flex/DataGrid: update each row dataProvider is changed | <p>In a DataGrid, how can I force data() of all itemRenderers on visible rows to be called when I've made an update to the dataProvider. </p>
<p>I'n the following the Grid isn't updated after pressing doSomething. If I have a large list the update is done when scrolling down and then back up again, or in the case of t... | 1 | 2,326 |
Enable CORS for tomcat applications with credentials support | <p>I have a simple GWT application running from IIS on my server. I am trying to test HTTP requests to tomcat running on the same server. However, since both the application servers are running on different ports, my browser (chrome and firefox) treats the requests as a CORS request.</p>
<p>To enable tomcat to accept ... | 1 | 1,853 |
Google AI Platform: Unexpected error when loading the model: 'str' object has no attribute 'decode' [Keras 2.3.1, TF 1.15] | <p>I am trying to use the beta Google Custom Prediction Routine in Google's AI Platform to run a live version of my model.</p>
<p>I include in my package <code>predictor.py</code> which contains a <code>Predictor</code> class as such:</p>
<pre><code>import os
import numpy as np
import pickle
import keras
from keras.mod... | 1 | 1,629 |
install needed shared library debian | <p>XeroxPhaser3100 MFP has only 32-bit drivers.
I want to use it with CUPS on my openmediavault (NAS) based on Debian. The OS is 64bit.</p>
<p>I install drivers like in this manual <a href="https://wiki.archlinux.org/index.php/Xerox_Phaser_3100MFP" rel="nofollow">https://wiki.archlinux.org/index.php/Xerox_Phaser_3100M... | 1 | 12,663 |
How to insert DBnull to nullable DateTime field asp.net c# | <p>I need to insert null into a class field datetime?
this is the class:</p>
<pre><code>public class TimeData{
public int TD_ID { get; set; }
public int UD_ID { get; set; }
public DateTime? TD_start { get; set; }
public DateTime? TD_end { get; set; }
public DateTime? timestemp ... | 1 | 1,325 |
Lerna always lists all packages ready to publish when running workflow of Github actions | <p>Lerna does not correctly detect packages change during running workflow of Github actions.</p>
<ol>
<li><p>If I make none packages related changes, commit and run<code>lerna updated</code>locally. it tells me <strong>No changed packages found</strong> which is correct and expected.</p></li>
<li><p>If I make package... | 1 | 1,126 |
Include generated code by flex and bison | <p>I'm working with Flex and Bison in C++. I am learning to use these tools and the best way to start is by performing a simple calculator. Once generated the application (the executable) from my calc.y and calc.l files, I can run the .exe file and use it, but now I want to include it in a file c ++ to use it in my app... | 1 | 1,386 |
Correct way to create IF statement using data from mqtt callback | <p>I'm trying to trigger an action using the output of the callback function in my code. Basically, I will have a door sensor on "reedTopic" which needs to report "OFF" before allowing the payload for "topic" to be sent. The "topic" payload is a toggle for a garage door opener so the data from the "topic" will always r... | 1 | 1,657 |
jsp:include , performance, modularization, alternatives and best practices, Part 96 | <p>This is a follow-up to the 'overhead of jsp include' question below:</p>
<p><a href="https://stackoverflow.com/questions/1479218/jsp-performance-using-jspinclude">JSP Performance using jsp:include</a></p>
<p>In our application, developers have 'modularized' jsp fragments by heavy use of "jsp:includes" for "common"... | 1 | 2,177 |
Using Javascript D3 library, how replace data in selection of rects? | <p>I have an array of objects with a count and date object. Using them to create a selection of rects on a time scale. Works great. But I want to use a slider from jQuery UI to allow the user to narrow the results to a part of the full range and see the finer details better. But I have not been able to figure out h... | 1 | 2,469 |
How do I access MySQL as a Service on Kubernetes? | <p>I have the following deployment...</p>
<pre><code>---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-data-disk
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql-deployment
labels:
app: mys... | 1 | 1,389 |
Compiling a basic openCL program error: unresolved includes inside cl.hpp | <p>I am new to coding in openCL and am following the tutorial found here: <a href="https://www.marcusbannerman.co.uk/index.php/research/teaching-resources/77-supercomputing-on-graphics-cards-an-introduction-to-opencl-and-the-c-bindings.html" rel="nofollow">https://www.marcusbannerman.co.uk/index.php/research/teaching-r... | 1 | 3,685 |
Adding a new component instance in Vue via a button click returning error | <p>Just to preface this whole thing-- I'm not even sure that the way I'm going about this is the most correct way to do it. Basically, I need to add an instance of a Vue component when the user clicks a button, expanding. I used <a href="https://forum.vuejs.org/t/add-component-to-dom-programatically/7308/4" rel="nofoll... | 1 | 2,194 |
returning multiple stored procedure result sets from a cfc | <p>I am trying to convert some pages from my app to use cfc's, and one page uses a stored procedure to retrieve a couple sets of data.</p>
<p>Now when I access the results, they act just like a if I used a <code><cfquery></code> tag, and all of the functionality that gives. So now I am trying to use this same s... | 1 | 2,580 |
Typescript: *.ts is not a module | <p>I've just installed a self-made npm library on my project. </p>
<p>npm is able to generate every artifacts and I've published them. So, now I'm able to use the services I've made: <code>UsersApi</code>.</p>
<p>The package structure is:</p>
<pre><code>ts
│───configuration.ts
│───index.ts
│───variables.ts
│
└───api... | 1 | 3,171 |
Simple multiplayer game development with socket.io | <p><strong>Multuplayer game with socket.io - Make the bigger word from letters</strong></p>
<p>How need to works my game:</p>
<ol>
<li><p>user click on stop and then they get a letters to create a bigger word than other player DONE!</p></li>
<li><p>when user cretate a word then click to"submit" button and send to ser... | 1 | 1,905 |
Rails 5.2.0 images.attach results in InvalidSignature error | <p>I am upgrading to Rails 5.2.0 and attempting to use ActiveStorage to save images from a data feed. In <code>development.rb</code> I have <code>config.active_storage.service = :local</code> and the model has <code>has_many_attached :images</code> and <code>storage.yml</code> has the default <code>:local</code> setti... | 1 | 3,335 |
Can't call EJB from FLEX (BlazeDS) | <p>Right now I'm playing with Flex and Java integration and trying to access EJB3 methods by clicking Flex button but it's giving me null pointer error.</p>
<p>Here is what I have in my code:</p>
<p>[Controller:] </p>
<pre><code>public class homePageController {
@EJB
CategoryFacadeRemote categoryFacade;
... | 1 | 1,049 |
Error, Must specify valid information for parsing in the string, when using EF Core Value Conversion | <p>Based on the EF Core docs (<a href="https://docs.microsoft.com/en-us/ef/core/modeling/value-conversions" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/ef/core/modeling/value-conversions</a>), I'm trying to use EF Core's new Value Conversion on an enumeration. I want to save the enumeration as a string i... | 1 | 1,256 |
Tables using Perl CGI.pm | <p>I am trying to create a table using CGI.pm. The table would contain results from
querying a database. The array final contains record numbers on which the queries will
be executed. The results for each record should be in a separate row. The result
of each query on the record should form a column in the row. Using ... | 1 | 1,393 |
Jackson to deserialize Joda LocalDate from ISO DateTime | <p>I am using Angular date picker to send my MVC controller a date, using a Javascript Date object which is an ISO date/<strong>time</strong>.</p>
<p>On deserializing <code>java.util.Date</code> it works like a charm and Hibernate will care about cutting that <code>Date</code>time to a plain Date when inserting record... | 1 | 1,624 |
JSP JasperException | <p>So I have an SQL query and I want to select data from a database but I am getting a strange exception I do know less about it. Note that I am new to JSPs.</p>
<p>I have this file called selectform.jsp where I want to take data from a database and display it in a table:</p>
<pre><code><%@ page import="java.io.*,... | 1 | 5,231 |
.ToList() thread-safe | <p>I've have the following situation:</p>
<ul>
<li>There is only one thead which only adds items to a list</li>
<li>Multiple threads which can read the items.</li>
</ul>
<p>I know when we directly expose the list, I will ran into concurrent modification while enumerating.</p>
<p>But when I call <code>.ToList()</code... | 1 | 1,166 |
java.net.SocketException: sendto failed: EPIPE (Broken pipe) while sending byte[] | <p>I am trying to upload video recorded through android mobile. but while sending video as byte[] to server I am getting below error :</p>
<pre><code> 01-20 13:03:18.250: E/SaveMedia-response(4393): java.net.SocketException: sendto failed: EPIPE (Broken pipe)
</code></pre>
<p>Here is how I am trying to upload video ... | 1 | 2,242 |
rails 3: carrierwave default_url bug, not using the right version | <p>Hi I'm trying to get different versions of the default image to work for my avatar_uploader. I've had this working before with 2 version but not that I've added 4 versions there seems to be a bug that I can't figure out. When I reference my :small version's default image it displays the :large version's default. I'v... | 1 | 1,891 |
Angular FormGroup custom validator not triggered on button click | <p>I am using reactive forms Angular 4 and added a custom validator addressValidation to the form group - addressGroup.
I am updating all fields to mark as touched on submit click. Looks like the custom validator addressValidation doesn't trigger eventhough I marked all fields as touched. I tried marking the formgroup... | 1 | 6,821 |
Async SqlAlchemy with FastAPI: Getting single session for all requests | <p>I have recently migrated a REST API coded with FastApi to the new SQLAlchemy 1.4+ Async Version.
My app compiles correctly and the database seems to setup just fine. The problem appears when I try to execute multiple requests, an error appears that seems to indicate that the same session is being used for all my req... | 1 | 3,383 |
Programatically creating Custom EditText with Drawable | <p>I have created a CustomeEditText using <a href="https://stackoverflow.com/a/13135554/4294399">this answer</a> in my android application for assigning a drawable click on the right Drawable.</p>
<p>The class is given below.</p>
<pre><code>public class CustomEditText extends EditText {
private Drawable drawableRi... | 1 | 4,061 |
After trying various optimzers, model simplification running more iterations, when fitting GLMMs, R still produces warning messages | <p>I am trying to fit GLMM's to my data using the glmer function available in R's lme4 package.
The data is available at:
<a href="https://onedrive.live.com/redir?resid=1B727FC7180E87DF%21118" rel="nofollow noreferrer">https://onedrive.live.com/redir?resid=1B727FC7180E87DF%21118</a></p>
<p>I keep getting warning mess... | 1 | 1,241 |
Making objects observable | <p>I've been looking into JavaScript frameworks such as Angular and Meteor lately, and I was wondering how they know when an object property has changed so that they could update the DOM. </p>
<p>I was a bit surprised that Angular used plain old JS objects rather than requiring you to call some kind of getter/setter s... | 1 | 2,214 |
PdfBox - Get font Information using | <p>I'm trying to get text from pdf using <code>Square Annotation</code>. I use below code to extract text from PDF using <code>PDFBOX.</code><br>
<strong>CODE</strong></p>
<pre><code>try {
PDDocument document = null;
try {
document = PDDocument.load(new File("//Users//" + us... | 1 | 1,480 |
Nested PreferenceScreens under a dynamic list of preferences on Android | <p>I'm trying to create a preferences screen with a dynamic list of entries, and when clicking each of them, I have another screen of preferences.
As an example, think of a list of mail accounts and each one having their account settings available.</p>
<p>While I can create the nesting I want using just <code>Preferen... | 1 | 1,222 |
WPF TreeView binding through XAML | <p>So I have a class structure like this</p>
<pre><code>Store
Owner
Cashier
List of Products
Product Name
Price
List of Vendors
Company Name
Contact Name
</code></pre>
<p>So there are 4 objects: Store, Person (Owner and Cashier), Product and Vendor.</p>
<p>I want to fi... | 1 | 1,212 |
Spring Data with Integration Test OneToMany ManyToOne | <p>I know that this topic is not new, but I few days try to solve task.
I have 3 classes - Client, Account and Invoice.
Client has many Accoutns, Account has many Invoices.
I mapped them:<br/>
<strong>Client</strong></p>
<pre><code>@Entity
@Table(name = "CLIENT")
public final class Client implements Serializable {
...... | 1 | 1,329 |
kendo ui get id of checkbox when unchecked | <p>i am using kendo ui tree view with check box</p>
<p>i want the check box's id when it is getting unchecked </p>
<p>this is kendo ui mine code</p>
<pre><code>// var homogeneous contains data
$("#treeview").kendoTreeView({
checkboxes: {
checkChildren: false,
template:"# if(!item.hasChildren){# ... | 1 | 1,057 |
Calculating spectrogram of .wav files in python | <p>I am trying to calculate the spectrogram out of <code>.wav</code> files using Python. In an effort to do so, I am following the instructions that could be found <a href="https://haythamfayek.com/2016/04/21/speech-processing-for-machine-learning.html" rel="noreferrer">in here</a>. I am firstly read <code>.wav</code> ... | 1 | 1,883 |
Free casino link appearing on Wordpress site | <p>I have recently set up a Wordpress site but I am getting a ' free online casino' link on my site which I can't get rid of.</p>
<p>I have tried looking in the header.php but I can't seem to find it. All of my plugins and Wordpress are up to date. Have I been hacked? How can I delete this link?</p>
<p>I have attache... | 1 | 3,475 |
jQuery Bootstrap Dynamic Tabs (Add & Remove) | <p>I have my code which enables the user to add and remove tabs in Bootstrap UI Tabs. I've successfully made it, and yes, it works well.</p>
<p>The only problem is it doesn't sort the tab name. For example, there are tabs like this: <code>Tab 1</code>, <code>Tab 2</code>, <code>Tab 3</code>, <code>Tab 4</code>, <code... | 1 | 1,203 |
AccessibilityNodeInfo nodeInfo = event.getSource() always returns null | <p>I'm trying to use AccessibilityNodeInfo but when I use event.getSource() it always returns null, I try to read the editbox of the browsers here is my codes: </p>
<pre><code>public class MainActivity extends Activity {
static final String TAG = "RecorderService";
@Override
public void onCreate(Bundle savedInstanceS... | 1 | 1,388 |
No errors but app is not working Android studio | <p>I'm trying to scan Access Points and list them. When I'm trying to run it in emulator, there is no error but app stop working message come to screen. I tried generate APK and start on real phone app cannot install to the phone.</p>
<p>This my code:</p>
<pre><code>package com.ahmet.apscan;
import android.app.Activi... | 1 | 4,521 |
Waypoint npm - Error: Can't resolve 'waypoint | <p>I have a vue project and installed waypoints</p>
<pre><code>npm install waypoints
</code></pre>
<p>I try to import it </p>
<pre><code>import waypoint from 'waypoints';
</code></pre>
<p>but get an error</p>
<p>Error: Can't resolve 'waypoints' in /Mypath</p>
<p>What am I doing wrong?</p>
<pre><code>var webpack ... | 1 | 1,171 |
How can I serialize all features on a layer to json using openlayers 3 | <p>I want to allow a user to draw a polygon on a map using openlayers 3 and then when the user presses "save" I want to put the json for the polygon into a hidden field so that it can be sent back to the server and saved in a database. </p>
<p>I have the code to draw the polygon working (below), and then I have writte... | 1 | 1,624 |
How to send a same reply mail (template saved in outlook) to the mail sender (to, cc)? | <p>I am receiving continues emails from customer (different customers) to update their asset details in database.. once process done .. I have to reply (including cc) from their mail telling like "asset details successfully stored in Database" (am using template) using VBA.</p>
<pre><code>Option Explicit
Pu... | 1 | 1,059 |
Capturing changed values from a Repeater on postback | <p>This is plaguing me and I've read countless solutions that all seem to be off a bit. I have a repeater that has 2 drop downs per item and a few items. These all have potential values 0-8 that the user can select and I want to gather the data on a postback when the user click a button on the bottom of the page.</p>... | 1 | 2,395 |
Error while creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter' | <p>I am Using:
jdk: 1.8
Spring webmvc: 5.1.11.RELEASE to run my project</p>
<p>While deploying a project facing error,</p>
<pre><code>12:03:37,671 ERROR [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-4) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Er... | 1 | 18,695 |
Primefaces <p:selectOneMenu> display issue | <p>I have a full page layout. Top layoutUnit is having a menu and selectOneMenu. The menu items are not getting displayed properly. The menu items are overlapping with selectOneMenus.</p>
<p><img src="https://i.stack.imgur.com/f3yy6.jpg" alt="enter image description here"></p>
<p>here is my xhtml code and styles used... | 1 | 1,996 |
Vue.js: Cannot read property 'classList' of null | <p>I'm using a single file component style Vue.js backed by a .NET 4.5 server. </p>
<p>Here is my app.js (entry point): </p>
<pre><code>import Vue from 'vue';
import home from './components/home.vue';
import Quasar from 'quasar';
Vue.use(Quasar);
// Import CSS from 'quasar.css';
import 'quasar/dist/quasar.css';
co... | 1 | 1,201 |
Escaping the and (&) sign in Powershell | <p>I need to use <code>\r\n</code> inside of <code>ffmpeg --header</code> parameter. This works in Unix, but not in Windows command prompt. So I was wondering to use <code>powershell</code> </p>
<pre><code>powershell c:\ffmpeg -headers 'User-Agent: user-agent'"`r`n"'Cookies: my-cookie' ...
</code></pre>
<p>I understa... | 1 | 1,207 |
CP Subsystem is not enabled | <p>I'm using hazelcast with:</p>
<ul>
<li><code>spring-integration-hazelcast:1.0.0.RELEASE</code> </li>
<li><code>hazelcast-all:3.12.4</code></li>
<li>see [1] for gradle details</li>
</ul>
<p>And everything works fine :)</p>
<p>Since I've ran into some problems I tried to update to the latest versions, so:</p>
<ul>... | 1 | 1,561 |
"association refers to the inverse side field" & "mappings are inconsistent with each other" | <p>I have two Entities, one for reservations and one for tables where the reservations can be placed on.
This entities have a ManyToMany relation. When I try to validate this schema I get the following errors:</p>
<ul>
<li>The mappings Test\TestBundle\Entity\Table#reservations and<br>
Test\TestBundle\Entity\Reservatio... | 1 | 1,776 |
CSS loading screen issue | <p>I'm trying to show a loading area after a certain action from the user. I want to show the loading animation in the center of the screen while showing the rest of the page greyed out, in the background.</p>
<p>At this point, my problem is that the loading animation is greyed out too, and I just want to grey out the... | 1 | 1,711 |
Playing Videos in Android Application without Youtube API | <p>I am making an application in which I want to play online videos from sites like youtube, daily motion, vimeo, etc. The problem I am facing is that when I try to play videos from daily motion, the videos are not playing and the player replies with an error: "There was a problem with the network". My internet connec... | 1 | 1,093 |
iScroll keeps scrolling back up (Phonegap) | <p>Program: Eclipse (Phonegap)</p>
<p>Phone: HTC Desire (2.2.2)</p>
<p>I've been playing around with the iscroll plugin for some time now but it seems i can't get it to work. When i test it in both the android emulator and my phone it keeps scrolling back to the the top. Also the LogCat gives the following line:</p>
... | 1 | 1,124 |
Error running 'make -j2' when running rvm install ruby-2.0.0-p247 | <p>This is the error that came up when attempting to install Ruby 2.0</p>
<pre><code>Error running 'make -j2',
please read /usr/local/rvm/log/ruby-2.0.0-p247/1372532765_make.log
There has been an error while running make. Halting the installation.
</code></pre>
<p>I tried following these steps and it did not work: <a... | 1 | 3,333 |
PHP websocket disconnect issue | <p>I've tested several libraries (<a href="https://github.com/walkor/Workerman" rel="nofollow noreferrer">workerman</a> and <a href="https://github.com/ghedipunk/PHP-Websockets" rel="nofollow noreferrer">PHP-Websockets</a>) but in all cases I have the same issue - when I open clients page everything is all right, I hav... | 1 | 1,286 |
How do I install System Images for Android 4.4W (API 20) | <p>I am new to Android development. I am following the setup instructions on <a href="http://developer.android.com/" rel="nofollow noreferrer">http://developer.android.com/</a> so I downloaded Eclipse ADT. While trying to create and Android Virtual Device (AVD) the OK button is disabled because I do not have System Ima... | 1 | 2,904 |
How to pass a slot as an argument | <p>I'm using Qt 5.7 and a I have a component that behaves like a QMenuBar. This component has two methods, one, called <code>addMenu(QPushButton* menu)</code>, to add a bar menu and another, called <code>addMenuItem(QPushButton* menu, QString item, const char *slot)</code> to add the items that make up one of the bar m... | 1 | 2,609 |
JQuery drag and drop not working in td | <p>This is the script i used</p>
<pre><code>$(function () {
$("#header").draggable({
helper: "clone",
cursor: 'move',
tolerance: 'fit',
containment: '#shoppingCart2'
});
$("#shoppingCart2").droppable({
drop: function (e, ui) {
if ($(ui.draggable)[0].id != "") {
... | 1 | 1,395 |
How to implement like/dislike button (for logged-in users) in django using AJAX | <p>I tried implementing Like(for those users who didn't like) and Dislike(for users who already liked the post) buttons but I could not get it to work. I tried looking some past questions but I could not solve the issue. If someone has done this before, kindly help.</p>
<p>my blog/models.py for Post model</p>
<pre><c... | 1 | 2,065 |
Leaking memory with pthreads | <p>I'm using pthreads and according to valgrind I am leaking memory, like in <a href="https://stackoverflow.com/questions/5610677/valgrind-memory-leak-errors-when-using-pthread-create">valgrind memory leak errors when using pthread_create</a></p>
<p>The top answer says that if you pthread_join all the threads this mem... | 1 | 1,635 |
Select multiple element on react native onpress in flatlist | <p>After a long time i am able to solve the selected item in a flatlist. But I did not get what exactly i want. I need to select multiple items by onpress. </p>
<p>This is what i have done for selecting item, and it is perfectly working. I need this for multiple items. </p>
<p>Please look at the below code </p>
<pre... | 1 | 2,187 |
java.lang.NoClassDefFoundError: Could not initialize class java.net.ProxySelector | <p>I'm running into a problem with a java app constantly throwing:</p>
<blockquote>
<p>java.lang.NoClassDefFoundError: Could not initialize class java.net.ProxySelector.</p>
</blockquote>
<p>I am running Suse Linux 10.3 and running java 1.6.0. My CLASSPATH is set to </p>
<blockquote>
<p>/usr/lib/jvm/jre-1.6.0-op... | 1 | 1,210 |
How to dynamically define file filter pattern for Spring Integration SFTP Inbound Adapter? | <p>I need to dynamically pull specific files from different directories from different sftp servers to a local server directory of a spring boot application.</p>
<p>I store the paths and a file pattern in a postgres database. I got everything working but i don't know how to dynamically define a file filter pattern dep... | 1 | 3,495 |
"java.net.UnknownHostException" occur when read mybatis xml file | <p>I like to read data from following mybatis xml file by java code. (Not mybatis mapping, just want to read data form outside application.)</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<... | 1 | 1,525 |
Debugging not starting | <p><strong>UPDATE:</strong></p>
<p>I've spent way too much time on this and have decided to ditch it and continue using the clunky NetBeans.</p>
<p><strong>ORIGINAL QUESTION:</strong></p>
<p>I'm having some difficulty getting xdebug to work with sublime text 2.</p>
<p>What I have done so far is install:</p>
<ol>
<... | 1 | 2,766 |
How can I use a Pandas data structure to calculate autocorrelation? | <p>I have data in text files that I have successfully parsed into a MultiIndex pandas structure however I don't know if what I have will do what I want it to do.</p>
<p>What I have is a lot of time series data with many identifiers (indices). I ultimately need to calculate auto correlation times and other time series... | 1 | 1,041 |
AVAsset Permanently Changing Orientation of Video | <p>I'm trying to merge two videos that are originally of different orientations.</p>
<p>Video A - Portrait Orientation - 720x1280 - MOV
Video B - Landscape Orientation - 640x480 - MP4</p>
<p>I'm starting by resizing and cropping Video A</p>
<pre><code>- (void)resizeWithStyle:(NSString*)style {
NSString *filePath = [... | 1 | 5,909 |
C# AES 128 CBC with -nosalt producing different results than openssl AES -128-cbc -nosalt | <p>I have a encryption example from a 3rd party i need to integrate with ... </p>
<p>I am supposed to send them encrypted message and they does decrypt it on their end and performs needed operations.</p>
<p>They have provided me the example that's how they are expecting the string to be encrypted ..</p>
<blockquote>... | 1 | 2,091 |
How to mock aws athena functionality.? | <p>I have an Athena class that has athena functionality. :</p>
<pre><code>class _Athena:
"""
Creates connection and runs queries against
AWS Athena.
"""
def __init__(self, workgroup, database, params, query_string):
self._workgroup = workgroup
self._dat... | 1 | 1,338 |
Custom Camera View - Cannot change the frame size of the cameraLayout UIImagePicker, Swift | <p>I'm trying to make a custom camera view, basically. I am stuck changing the size of the image view inside of the UIImagePicker. By the image view, I mean the window that shows the view of the camera. I hope it will be more clear from the picture. It is the view inside of that red square (I drawed that red square man... | 1 | 1,295 |
Glide: How to stop glide from loading images from cache instead load from server each time | <p>I tried everything possible but couldn't try to figure out how to update images to glide whenever my json is updated</p>
<p>MY android app initally loads images from json using glide for firsttime after that it only load images from cache.It doesnot load images that are updated on server till i delete the app and r... | 1 | 7,242 |
Storing array with loop and compare highest and lowest value | <p>the program successfully compile and run.
however, the value for the minimum score is wrong, i check again and cant figure out why
pls help me solve this </p>
<pre><code>/* import neccessary component for the program*/
import java.util.*;
public class assign4 {
/* create a input stream*/
static Scanner c... | 1 | 1,298 |
Intermittent "sslv3 alert handshake failure" under Python | <p>I have a REST API written in Java running under JBoss. Recently we updated our JVM from 1.6 to 1.7. This started to cause issues with only our Python clients which were connecting. Intermittently, Python clients are getting handshake failures. We wrote a very simple test which reproduces the problem:</p>
<pre><... | 1 | 1,058 |
Staging app.... There was a problem parsing the package | <p>I made an app <code>Ave</code> that updates through my website downloading a <code>ave.apk</code> package. Install from unknown sources is allowed for the app. It has been working great for years.</p>
<p>The update process still work perfectly in Android 4.4 and Andoid 9. But in Android 11, after downloading the new... | 1 | 2,455 |
Mockito verify throws UnfinishedVerificationException | <p>In a test, I am using a mockobject:</p>
<pre><code>@Mock
ListMultipleChoice<String> listMultipleChoiceMock;
</code></pre>
<p>I try to verify the use of its methods:</p>
<pre><code>verify(listMultipleChoiceMock).setRequired(true);
verify(listMultipleChoiceMock).setMaxRows(2);
verify(listMultipleChoiceMock).s... | 1 | 1,416 |
JavaScript Exception/Error Handling Not Working | <p>This might be a little hard to follow.</p>
<p>I've got a function inside an object:</p>
<pre><code>f_openFRHandler: function(input) {
console.debug('f_openFRHandler');
try{
//throw 'foo';
DragDrop.FileChanged(input);
//foxyface.window.close... | 1 | 1,269 |
Error when changing the look and feel(UIManager) of the swing application | <p>Hello I have an interface which user can change the look and feel . Here is the interface:</p>
<p><a href="http://www.hostingpics.net/viewer.php?id=579250themesApp.jpg" rel="nofollow">http://www.hostingpics.net/viewer.php?id=579250themesApp.jpg</a></p>
<p>and the code of each button:</p>
<pre><code>//The JDesktop... | 1 | 3,715 |
bxslider set min/max visible slides with custom pager | <p>Hi guys I appreciate any assistance,</p>
<p>Basically I have a slider with 25 slides but I dont want all 25 thumbnails to show up, only 5 at a time
Here are some settings ive tried. I tried a lot of combinations with the max-min slides but nothing happened same with displaySlideQty,</p>
<pre><code><script type=... | 1 | 1,282 |
Jenkins hangs on Mac slave when cloning from Gitlab instance | <p>We are trying to build an iOS app through a Jenkins job, but we are unable to clone the repository from our Gitlab instance. As of now, Jenkins hangs (until the 10 minute timeout) when git fetches the references.</p>
<p>Below is the Jenkins output: </p>
<pre><code>Started by user <USER>
[EnvInject] - Loading... | 1 | 1,683 |
Continuous integration with Xcode Bots | <p>I want to to do the continuous integration using Xcode bots. I have installed OSX Mavericks and Server(version 3). I am able to create bots using Xcode 5.0.1. While integrating it is successfully performing analyzing testing but always the final integration result is failure.</p>
<blockquote>
<p>Integration faile... | 1 | 2,361 |
PHP Downloaded file is 0 bytes in firefox puzzle | <p>I've been running this test on my website for days now and it still baffles me.</p>
<p>I have a zip file on my server. Within the zip file is a single text file that contains the phrase "this is a test".</p>
<p>In my file api.php, I have the following code:</p>
<pre><code><?php
$originalFileName = "test.zip";... | 1 | 1,113 |
kubectl master node notready: Starting kube-proxy | <p>I just installed Kubernetes on a cluster of Ubuntu's using the explanation of <a href="https://www.digitalocean.com/community/tutorials/how-to-create-a-kubernetes-1-11-cluster-using-kubeadm-on-ubuntu-18-04" rel="nofollow noreferrer">digital ocean</a> with Ansible. Everything seems to be fine; but when verifying the ... | 1 | 3,527 |
use proxy in python to fetch a webpage | <p>I am trying to write a function in Python to use a public anonymous proxy and fetch a webpage, but I got a rather strange error.
<br>The code (I have Python 2.4):</p>
<pre><code>import urllib2
def get_source_html_proxy(url, pip, timeout):
# timeout in seconds (maximum number of seconds willing for the code to w... | 1 | 1,173 |
Gem is installed but it is not found by bundle show | <p>I'm having trouble getting the pg gem working with my rails app.</p>
<p>When I do a sudo bundle install I get:</p>
<pre><code>Using rake (10.0.4)
Using i18n (0.6.4)
Using multi_json (1.7.2)
Using activesupport (3.2.8)
Using builder (3.0.4)
Using activemodel (3.2.8)
Using erubis (2.7.0)
Using journey (1.0.4)
Using ... | 1 | 1,440 |
CXF Unmarshalling Error when calling a service in non-wrapper style | <p>I am developing a web service from a WSDL using CXF and I want to be able to run test sample requests using JUnit.</p>
<p>My Test class creates a mock server, then acts as a client to test the server.</p>
<p>I don't understand why I keep getting <code>Unmarshalling Error: unexpected element</code> exceptions.</p>
... | 1 | 8,255 |
How to get a string from an input using reactive form | <p>Well, I'm trying to get the input (email) using a getter on my component.ts and
the getter returns an AbstractControl and that's ok. So when I use the 'email' on my method I need a string to use on my service. I tried to change the type of email on my service to type: AbstractControl and I get 'Converting circular s... | 1 | 1,090 |
CSS Animation: how to trigger the reverse animation? | <p>I'm trying to create a simple reusable CSS class so I can have this animation everywhere.</p>
<p>Everything works fine except that I can't find any example/documentation on how to trigger the reverse animation.</p>
<p>Here is my HTML:</p>
<pre><code><div class="cards">
<div class="card">
... | 1 | 1,303 |
Detect Status Bar Visibility / TYPE_SYSTEM_OVERLAY not resizing automatically | <p>I'm using the well known <code>TYPE_SYSTEM_OVERLAY</code> method to create a full screen overlay that's always on top of other views.</p>
<p>On a <code>Moto Atrix2 API15</code> and for each <code>AVD</code> from <code>API 10</code> through <code>17</code> the overlay view resizes automatically (expands vertically) ... | 1 | 1,224 |
Android application connecting to an as400 database | <p>I'm trying to get my Android connected to my as400 server. Unfortunately when I click on My Connexion button, the driver isn't loaded and I don't know why.</p>
<p>Here my is code:</p>
<pre><code>package hello.world;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import a... | 1 | 1,909 |
Fixing MP4/M4A File Stucture | <p>I'm having an issue with tagging MP4/M4A files. The tagging operation goes A-OK. Well, I had an issue with the stco atom, but I fixed that. But now, when I play the MP4 file, mplayer gives me an error:</p>
<pre><code>[mov,mp4,m4a,3gp,3g2,mj2 @ 0x29db0a0] wrong sample count
</code></pre>
<p>However, the file does p... | 1 | 1,478 |
Load Qtablewidget with a list | <p>I have a list like below</p>
<pre><code>[('John', datetime.datetime(2019, 5, 5, 0, 54), datetime.datetime(2019, 5, 26, 22, 51, 36)),
('Rex', datetime.datetime(2019, 5, 26, 22, 51, 36), datetime.datetime(2019, 6, 15, 10, 22, 48)),
('Watson', datetime.datetime(2019, 6, 15, 10, 22, 48), datetime.datetime(2019, 7, 8, 1... | 1 | 1,393 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.