title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to vectorize finding max value in numpy array with if statement? | <p>My Setup: Python 2.7.4.1, Numpy MKL 1.7.1, Windows 7 x64, WinPython</p>
<h1>Context:</h1>
<p>I tried to implement the Sequential Minimal Optimization algorithm for solving SVM. I use maximal violating pair approach. </p>
<h1>The problem:</h1>
<p>In working set selection procedure i want to find maximum value of ... | 2 | 1,632 |
springboot org.apache.jasper.JasperException Attribute invalid for tag according to TLD | <p>I have been trying to migrate my existing Spring MVC project to Springboot everything went well except <strong>org.apache.jasper.JasperException</strong> exception for some jsp which was working fine earlier
here is code and exception</p>
<pre><code><form:input cssClass="form-control" id="serviceUR... | 2 | 1,138 |
In Python3/tkinter how to intercept when the user clicks the close button on a Toplevel window | <p>I want to have one main window and one or more <code>Toplevel()</code> windows that may be opened on demand. I am able to create the windows and even to destroy them. </p>
<p>However, I am trying to implement a button in the main window that both opens and closes the second window (that second window should be alwa... | 2 | 1,430 |
Regex for specific html tag in C# | <p>I am trying to scrape specific html tags including their data from a google products page. I want to get all the <li> tags within this ordered list and put them in a list.</p>
<p>Here is the code:</p>
<pre><code> <td valign="top">
<div id="center_col">
<di... | 2 | 3,861 |
Saving Excel workbook as PDF gives me an OLE error 800A03EC | <p>I have the following function that I want to use for creating a PDF from Excel.
But when trying to save the PDF I get an OLE error 800A03EC that I simply can't figure out.
I use the same approach to create PDF from Word and that works just fine. </p>
<pre><code>function xlsCreatePdf(aInput: string; aOutput: string ... | 2 | 1,154 |
Filter_at selected columns with multiple str_detect patterns | <p>What i should do should be pretty easy, yet, the newcomer that I am, I spent way too much time on trying to achieve this. With this script I try to filter out ALL observations from a data frame that contain ANY of the mentioned patterns. </p>
<p>The script is:</p>
<pre><code>df1 <- filter_at(df, vars(contains("... | 2 | 1,912 |
How to resize images properly on boostrap carousel | <p>I cannot get these images chopped down to fit properly in the carousel. I think this line needs to be edited somehow:
<p>IGNORE:
It is telling me to add more detail so im typing extra things to by pass it like a bad person would take the easy way out and not add actual info but rather some bs that adds no value to... | 2 | 2,113 |
Uncaught TypeError: Cannot call method 'open' of undefined | <p>This script works on one side but doesn't on the other. It gets an Uncaught TypeError: Cannot call method 'open' of undefined. The script is placed at the same spot on both sides...</p>
<p>This code is used to send a rating to the db 1-5 depending on which the user choose.</p>
<pre><code>function send_ajax(bewertu... | 2 | 1,236 |
here-api Uncaught TypeError: Cannot read property 'addDomListener' of undefined at | <p>I am trying to integrate here-api map into my rails 5 app. Some background I have developed a similar app page with google maps in the past following a course successfully. Using here-api as an alternative as google recently be charging at certain levels.</p>
<p>I have successfully been able to display a here map w... | 2 | 1,190 |
Get value of input inside first sibling <td> from dynamically created objects | <p>I created objects from json:</p>
<pre><code>var url = "<?php echo base_url('dashboard/admin/getPropertyList');?>";
$.getJSON(url, function(data) {
if(data === false) {
var msg = 'No result';
$('#table-panel-body').html(msg);
}else {
var table_body = '<table id="property-table" class="table table-ho... | 2 | 1,346 |
Not getting return value from curl php | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/8227909/curl-exec-always-returns-false">curl_exec() always returns false</a> </p>
</blockquote>
<p>Hi I am new in php and I am stuck on this thing for while now. So i have two domains with their own DB. So if a... | 2 | 2,702 |
Getting an android app to detect NFC tags | <p>I have created an android app for reading NFC tags. <br><br>It can detect if an NFC is around, however it can't read the contents on it nor can I write anything on it. I also have problem with my code on line 79 of the <strong>read_write_successful</strong> class. I made use of the "<strong>createNdefMessage</strong... | 2 | 6,878 |
how to fix the error displayed by the PHP code? | <p>this question is the continues of this <a href="https://stackoverflow.com/questions/47694146/using-php-with-composer-did-not-find-the-required-class">last question with different error</a>
I've got a PHP code that selects a PDF file and converts it to a text file.</p>
<p>I'm using an external library <strong>pdf-t... | 2 | 1,712 |
QMutexLocker() causes UI to freeze | <p>I have a controller class which controls a robot (attached over serial interface). This controller is attached to a view. In addition to that I have a thread derived from <code>QThread</code> which periodically reads out the status of the robot.</p>
<p>Reading out the status must not colide with robot commands whic... | 2 | 1,358 |
Remove white space under sticky footer in Bootstrap 4 on iPhone | <p>I get this white space below my sticky footer, when in small mobile devices. For an example when viewing in 'iPhone SE' screen size. </p>
<p>I used this same footer and css from bootstrap examples but unable to make the whitespace go away.</p>
<p>I thought this happens because my text is long, then I added footer ... | 2 | 1,285 |
jQuery.countdown on timer finish start a new timer with button | <p>I am trying to make a countdown timer based on the Pomodoro technique where you work for 25 minutes then take a break. I am writing the page in Javascript and jQuery using the jQuery.countdown and moment.js plugins. I have it so that when a user hits the start button it counts down 25 minutes but then after that t... | 2 | 1,237 |
Speed up Rake Cucumber test run in Rails 4 | <p>I'd like to use Cucumber via Rake for BDD in a Rails 4. I've got it installed and hooked into <code>spring</code> to speed up tests but they take much longer than expected to run. The tests definitively run faster when Spring is active, but there is always ~2 seconds of startup time for Cucumber even if there are no... | 2 | 1,028 |
SSRS Decrypting database column throws error "Value cannot be null. Parameter name: inputBuffer" | <p>We have a database field that is encrypted in a C# MVC app using Entity Framework. That part works fine for encrypting and decrypting. We need to show this data decrypted in an SSRS report.</p>
<p>I've taken the Decrypt method and converted it to VB.Net and placed in the code behind of the report. The error occurs ... | 2 | 1,156 |
SVG transform origin differences in FireFox / Chrome | <p>Here is my character animation I was working on, which is working fine in Chrome but in FireFox it's kind of mess because FireFox has a different method of calculating transform origin related to the SVG canvas itself not to the group object.</p>
<p><div class="snippet" data-lang="js" data-hide="true" data-console=... | 2 | 5,993 |
How to send GET request to Web-Api using Angularjs and PhoneGap? | <p>I am new in Angularjs and PhoneGap. I am trying to send a get request to my Web-Api 2 project using Angularjs and PhoneGap but i getting an error. It is working in each browser.</p>
<p>My Code is :</p>
<pre><code>taxiConceptControllers.controller('loginCtrl', ['$scope', '$routeParams', 'loginService', '$http',
fu... | 2 | 2,076 |
How can I solve this XAML Binding error? | <p>First some background, which can be condensed into editing a property VatCode of VatCodeViewModel.</p>
<p>I have a StockItem with two particular properties in the ViewModel:</p>
<pre><code>public class StockItemViewModel : ViewModelBase
{
private VatCodeViewModel _vatCode;
public VatCodeViewModel VatCode
... | 2 | 2,466 |
Modal not showing proper video in react | <p>Hi I'm implementing a sample app with react,I'm also using youtube api search and react bootstrap.</p>
<p>The idea is the following, I enter a search term, for example "PS4" this will call <strong>youtube api search</strong> and will bring back 5 matching results in a json format.
With this json, I render a list of... | 2 | 1,665 |
ffmpeg saves only first frame | <p>I generated rotating pictures in Python and now I want to create an animation from it using ffmpeg. But the generated video includes only the first frame (viewed in VLC) and is way to small (half the size of one png) for all 36 pictures. What am I doing wrong? Thank you.</p>
<p>command in shell: <code>ffmpeg -framer... | 2 | 1,970 |
How do I convert CRM Online $metadata XML to C# classes? | <p>I used to generate early bound classes for Dynamics CRM using <a href="https://msdn.microsoft.com/en-us/library/gg327844.aspx" rel="nofollow noreferrer">CrmSvcUtil and the 2011 endpoint</a>.<br>
This still works but is due to be deprecated so <strong>I'm trying to understand the new OData endpoint and use this to ge... | 2 | 1,053 |
InstantiationException when using newInstance on BroadcastReceiver | <p>I do have a class with lots of static convenience methods. One of them should start a BroadcastReceiver dynamically - but it always returns an InstantiationException. The BroadcastReceiver has a no-parameter constructor so it should work - but it doesn't. Here's what I did so far:</p>
<p>Here's the convenience meth... | 2 | 1,024 |
WebView perform Crash when playing video and touching on it | <p>i am developing an application where i need to play video in webview android.</p>
<p>video is playing perfectly until i touch on webview.
when i touch on it application freeze for some time and after that only white screen for next every time i play my app.i dont know why it is causing.
here is my code of my applic... | 2 | 1,515 |
Searching multiple keywords against multiple columns/tables in a database. PHP + MYSQL | <p>I am in the process of producing a site search for my website (<a href="http://jpdesigns.me/studentnights" rel="nofollow noreferrer">http://jpdesigns.me/studentnights</a>) and have currently managed to implement searching across multiple tables using a keyword following the answers given in this question -
<a href=... | 2 | 1,523 |
Receiving CssSyntaxError when I updated Webpack 3 to 4 | <p>I got CssSyntaxError when I updated webpack 3 to 4.I use vue and webpack in frontside.The error is like this.</p>
<pre><code> [./node_modules/css-loader/dist/runtime/api.js] 2.35 KiB {mini-css-extract-plugin} [built]
ERROR in ./app/javascript/hoge.scss (./node_modules/css-loader/dist/cjs.js??ref--3-2!./app/... | 2 | 1,067 |
Infinite loop on list item in unordered list using jQuery | <p>I have this list of item</p>
<pre><code><div id="lessonThree">
<a class="next" href="#">Next</a>
<ul class="sponsors">
<li>Chicago Community Trust</li>
<li>Chicago Instructional Technology Foundation</li>
<li>City of Chicago</li>
<li&g... | 2 | 1,253 |
TextInputLayout error icon appear in both side | <p>i'm working on android application for registration operations
i'm using </p>
<blockquote>
<p>compile SdkVersion 24</p>
<p>buildToolsVersion "24.0.1"</p>
<p>compile 'com.android.support:appcompat-v7:24.2.1'<br>
compile
'com.android.support:design:24.2.1'</p>
</blockquote>
<p>and the xml code for ... | 2 | 8,525 |
Liquibase: Does not honor schema name for H2, but MySQL is fine | <ul>
<li>I am using <code>maven cargo</code> to deploy my <code>Spring</code> application.</li>
<li>I am trying to run this against <code>MySQL</code> and <code>H2</code> embedded database.<br>
The configuration for <code>H2</code> looks like </li>
</ul>
<blockquote>
<pre><code>@Configuration
@Profile("development")
... | 2 | 3,579 |
Coverage session finished but no snapshots were created | <p>Running code coverage with dotcover sometimes dotcover cannot create the snapshot but the process finished successfully.</p>
<p>I attach the dotCover log after failing.</p>
<pre><code>11:23:04 AM.677: Thread:33: Starting console app: "C:\Windows\system32\RegSvr32.exe" /s /u "C:\Program Files (x86)\JetBrains\dotCov... | 2 | 1,323 |
Extra decimal places in excel reading | <p>I've been writing a little program for my mother, in which I have to display a list of prices based on the work they ask her to do. Since she needs all the decimals in the price I set the Cell Format on Excel to have 7 decimals. The problem is that debugging my program, when I go reading a cell with a price in it, i... | 2 | 1,048 |
Proper implementation for mbed TLS AES-CTR? | <p>I'm using this library: <a href="https://tls.mbed.org/download" rel="nofollow noreferrer">https://tls.mbed.org/download</a> with an Espressif ESP32. The goal is to encrypt some data using AES-CTR then decrypt the cypher-text back to the original plain-text. I am getting incorrect result after I've decrypted.</p>
<p... | 2 | 1,062 |
Firebase realtime database transaction and cloud functions | <p>I have a list in the Firebase realtime database, structured as follows:</p>
<pre><code>list: {
change: {
rate: integer,
last: Date
},
lock: string,
elements: {
...
},
size: integer
}
</code></pre>
<p>Clients only add elements to the list.
There is a cloud function triggered by <code>onCreat... | 2 | 1,299 |
unable to build or run ti info from appcellerator titanium setup | <p>I am on a fresh updated install of Titanium Appcelerator, and I am unable to launch any ios demo. Any ideas would be appreciated!</p>
<p>Setup/Environment:</p>
<ul>
<li>iOS 9 Target</li>
<li>Appcelerator Studio, build: 4.3.0.201509151348 Build: jenkins-appcelerator-rcp-master-322 (origin/master) Date: 15 September... | 2 | 5,902 |
Is it possible to access the partial list content while being Sow'ed or must one wait for it to be Reap'ed? | <p>I've been learning Sow/Reap. They are cool constructs. But I need help to see if I can use them to do what I will explain below.</p>
<p>What I'd like to do is: Plot the solution of <code>NDSolve</code> as it runs. I was thinking I can use <code>Sow[]</code> to collect the solution (x,y[x]) as <code>NDSolve</code>... | 2 | 2,207 |
Undefined symbols for architecture x86_64 - ld: symbol(s) not found for architecture x86_64 | <p>I am not able to solve the below error. I have used cocoapods
for external libs/frameworks.</p>
<pre><code>Ld /Users/MyAppapp/Library/Developer/Xcode/DerivedData/MyApp-ceyvfirzookxqtdglefjjtyixokw/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp normal x86_64
cd /Users/MyAppapp/Documents/MyApp-ios
expo... | 2 | 1,644 |
How to change property of QML item from c++ | <p>I am writing a small QT(5.12) application in C++, which will be moving center of QMap every second. I am trying to update the coordinates so the center will refresh, but after debugging it, it's always staying the same (original value). That's my first attempt with QML, so I am helping myself with the link bellow, b... | 2 | 1,163 |
dataTable Headers Misaligned | <p>OK All,
I have a similar situation to a lot of questions in the exchange, but I still have not found the solution, and it seems nothing works. First, an explanation:
I an using a dataTable inside a collapsible accordion control. HTML is below.</p>
<pre><code><div class="row">
<div class="col-lg-12">
... | 2 | 1,170 |
mysql query in a loop using left join with columns the same name | <p>I am building a search form with multiple fields to search. Data is in 2 different tables depending on what you are searching for in each field.</p>
<p>I have a column that has the same name in each table. Because of this it obviously gives me the sql error of: Column 'state' in where clause is ambiguous</p>
<p>It... | 2 | 7,052 |
Angular2 typescript - kendo ui grid column template (click) not working | <p>I am new to Angular and do not understand why the ng-if and (click) events are not working from kendo grid column template.</p>
<p>I want a button which needs to be conditionally visible and on click I need to navigate to other page in spa. With command I couldn't dynamically handle the visibility based on cell val... | 2 | 1,287 |
Show/Hide Multiple Div's | <p>What is the best way to add another class to this script:</p>
<pre><code><script type="text/javascript">
$(document).ready(function(){
$('.carlocation').hide();
$('#parking-options').change(function() {
$('.carlocation').hide();
$('#' + $(this).val()).show();
});
});
&l... | 2 | 1,696 |
Overwrite file names when uploading catalog images to Magento | <p>When you upload a product image to Magento that has the same name as an existing image, normal behavior for Magento is to append a "_1" to the end of the new file name. So if I have an image named "myFile.png" and upload a second image to the same product with that same name, Magento will rename it to "myFile_1.png"... | 2 | 1,077 |
Why does java thread wait() work only with time limit in here? | <p>I am trying to get familiar with Java threads for the SCJP and I had a question.</p>
<p>In the below-written code i simply created:
two Runnables with
a common data storage (an array) and
a synchronized write() method to fill it with data successively leaving a letter as a mark for each Runnable (A and B) in seq... | 2 | 1,119 |
"Invalid parent id!" when sending trace | <p>I have an app running on google app engine standard, python 2.7.
GAE already trace calls to the Datastore and to Memcache and I want to add my own traces.</p>
<p>Since I'm in python 2 <a href="https://github.com/GoogleCloudPlatform/google-cloud-python" rel="nofollow noreferrer">google-cloud-python</a> is not availa... | 2 | 4,066 |
Why is my object staying null? | <p>For some reason, I can't seem to fix this giving me a NullPointerException. I print out poly.term.degree without any errors, and then set poly.next equal to poly and then get a nullPointerException when I try to print out poly.next.term.degree which should seemingly be the same. I'm aware this is incomplete code but... | 2 | 2,073 |
FCM: Handling Notification in background to get data message into the intent page (received notification) | <p>I am sending a notification using the cloud functions to the users. when the user clicks on the notification it should redirect to the Intent page and displays the data message. I am getting a problem when the app is in background </p>
<blockquote>
<p>MyFirebaseMesssaging services class</p>
</blockquote>
<pre><c... | 2 | 4,279 |
Ruby on Rails with jQuery | <p>Hi
I just came across an article about how to combine Rails with jQuery.<br>
<a href="http://blog.bernatfarrero.com/category/ror/" rel="nofollow">http://blog.bernatfarrero.com/category/ror/</a><br>
I followed the instructions but I couldn't make it work (instead of using ajax rails tried the non-javascript way of ha... | 2 | 2,266 |
Worpdress unable to display image column from database in wp_list_table | <p>My plugin code below, I am having an image column in the database that unable to display image from database as thumbnail image in table record.</p>
<p>How should I do that, can anyone help me.</p>
<p>If you need any other details you can surely ask, I will provide.</p>
<p>Thanks in advance. </p>
<p><div class="... | 2 | 7,942 |
Fix image and video to same size within container - CSS | <p>I am trying to get all of my images and videos to fix there respective containers the same. As you can see from the image they all look different some images and videos fill their contains different from the others making the containers look uneven:</p>
<p><a href="https://i.stack.imgur.com/zBNDM.png" rel="nofollow... | 2 | 6,525 |
GCM notification received on device does not start the application | <p>I'm using <a href="https://github.com/kobakei/unity-gcm" rel="nofollow">https://github.com/kobakei/unity-gcm</a> for GCM notifications in Unity3D. I receive the messages on the device. When I tap on the notification nothing happens. I expect the application to start. This is the log:</p>
<pre><code>V/GCMRegistrar( ... | 2 | 2,100 |
mongoose, post data using form-data | <p>so I wan,t to post data from web form to database
and this is all of my code</p>
<p><strong>script.js</strong></p>
<pre><code>$scope.save1 =function()
{
var input2 = {
"_id":$scope.iduser,
"Name":$scope.username,
"position":$scope.position,
"level":$scope.level,
"accleve... | 2 | 1,167 |
MVC 3 PartialView Form - Submit changes URL | <p>I have a MVC 3 project that has a simple form which is contained in a PartialView:
(form is in "<code><div id="form"> </div></code>" in the View that is loading this partial</p>
<pre><code> @using (Ajax.BeginForm("Submit", "Form", new AjaxOptions
... | 2 | 1,126 |
Readthedocs not including theme css | <p>I am compiling Readthedocs locally using below conf.py and it works fine:</p>
<pre><code># -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/e... | 2 | 2,380 |
Android emulator doesn't work: Failed to open /qemu.conf, No accelerator found and more | <p>Visual Studio Xamarin has problems again.
I currently have a Windows Pro 10.0.19043 and the latest version of Visual Studio 2019 (16.10.4) with following components:</p>
<pre><code>Microsoft Visual Studio Enterprise 2019
Version 16.10.4
VisualStudio.16.Release/16.10.4+31515.178
Microsoft .NET Framework
Version 4.8.0... | 2 | 3,148 |
Xamarin.iOS project: CS1703: Multiple assemblies with equivalent identity have been imported | <p>I've got a cross platform (iOS and Android) Xamarin solution using .NET Standard 2.0. The solution is being built by Visual Studio 2017 (I've tried both the current and preview versions). The Forms and Android projects build fine. However, the iOS fails to build, with the following error:</p>
<p>1>CSC : error CS... | 2 | 1,067 |
All sub-menus are showing up on click | <p>I want to only show the sub-menu that is the child of the clicked li and button when it is clicked. Currently the click and show and hide are working but the code below shows both the sub-menus on click, I want only the child sub-menu of the li button to show on click.</p>
<pre><code><ul id="menu-main-menu" clas... | 2 | 1,214 |
ERROR in ./node_modules/bootstrap-loader/no-op.js | <p>I'm using Webpack in my application, in which I create my entry point as
index.ts and I'm trying to run it using sass css bootstrap typescript as resources in my project webpack, but I am stuck with these errors,(bootstrap-loader) : </p>
<blockquote>
<p>ERROR in ./node_modules/bootstrap-loader/no-op.js
(./node... | 2 | 1,801 |
[Vue warn]: Error in v-on handler: "ReferenceError: cartItems is not defined" | <p>so i rendering succusfully products , now i want to add the product id to the cart array however once i clicked on the add button it gives me this error
[Vue warn]: Error in v-on handler: "ReferenceError: cartItems is not defined"
hopefully u can give me a hint on how to fix the problem
thnak you so much</p>
<p>th... | 2 | 1,341 |
setIncludesSubentities: in an NSFetchRequest is broken for entities across multiple persistent stores | <p>Prior art which doesn't quite address this:
<a href="https://stackoverflow.com/questions/1774359/core-data-migration-error-message-model-does-not-contain-configuration-xyz">Core Data Migration error message "'Model does not contain configuration 'XYZ'.'"</a></p>
<p>I have narrowed this dow... | 2 | 1,447 |
How do I use an ObjectDataProvider to set the value of text in a textbox from a method? | <p>Background: I'm new to WPF and have been trying to teach myself for a couple weeks now. I have an app that runs in a NavigationWindow with a few pages. The page in question has 5 textboxes, 4 of which are backed with dependency properties. Three of them are set up with ValidationRules for times, the fourth has V... | 2 | 1,940 |
expected trait object `dyn Responsability`, found type parameter `T` | <p>I am trying to implement a responsability chain in Rust:</p>
<p><a href="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=941081e963ff2c6e16bea80ca1fd5086" rel="nofollow noreferrer">link to playground</a></p>
<pre class="lang-rust prettyprint-override"><code>use std::error::Error;
... | 2 | 1,024 |
Getting Error: did you install mysqlclient? even though mysqlclient is installed on MacOS when trying to access the database in django | <p>I am using MacOS 10.13.1 and python version 3.7.2.
I used <code>pip3 install mysqlclient</code> to install mysqlclient and it was successful:</p>
<pre class="lang-sh prettyprint-override"><code>MacBook-Air:~ user$ pip3 install mysqlclient
</code></pre>
<pre><code>Collecting mysqlclient
Using cached https://files... | 2 | 2,272 |
GridView dynamic Controls are emptied upon clicking edit/update/delete buttons. Asp.net | <p>I have a gridview that is being dynamically populated using a custom template, but the command fields are static. Upon clicking the command fields, the controls are understandably lost. This problem doesn't affect me during edit, because once the gridview is rebound, it would know it is in edit mode and create the d... | 2 | 3,587 |
Adding information to xAxis - r shiny | <p>I have an issue with some plots in Rshiny. I would like to add some information to the xAxis. This post was edited because I almost found a solution, but if you want the original script, I can provide it.</p>
<p>Here is a reproductible example :</p>
<pre><code> library("shiny")
library("highcharter")
data(citytem... | 2 | 1,215 |
Insert contents from the one FlowDocument into another when using XamlReader and XamlWriter | <p>I use FlowDocument with BlockUIContainer and InlineUIContainer elements containing (or as base classes) some custom blocks - SVG, math formulas etc.
Because of that using Selection.Load(stream, DataFormats.XamlPackage) wont work as the serialization will drop the contents of *UIContainers except if the Child propert... | 2 | 3,486 |
I am getting 500 Internal Error when trying to pass named route with two parameter in my controller | <p>So when I put a route name with a single parameter it works flawlessly but when I pass named route with two parameters I get a 500 error in my console which looks like this:<code>GET http://127.0.0.1:8000/admin/packages/package-programs/kathmandu/action?query= 500 (Internal Server Error)</code>.</p>
<pre><code><?... | 2 | 5,325 |
Quartz CronScheduler running job multiple times | <p>I am using Quartz CronScheduler to execute a job every 15 minutes. Every time the job executes it checks the DB for any change in the cron expression and updates the job scheduler for the next run. I have implemented the above in the following way:</p>
<pre><code>@Service
public class QuartzSchedulerService {
... | 2 | 1,547 |
Cocoa Virtual Keystrokes Pain | <p>I'm writing an application to respond on a hotkey by copying highlighted text into NSPasteboard's generalPasteboard. After looking around here for a solution for sending virtual keystrokes, I found this: <a href="https://stackoverflow.com/questions/1505933/how-to-send-a-cmd-c-keystroke-to-the-active-application-in-o... | 2 | 1,112 |
Reduce error rates from incremental training in xgboost in Python | <p>I'm trying to train models in batches to improve memory usage.</p>
<p>Here's my example of incremental training for gradient boosting in <code>xgboost</code>:</p>
<ul>
<li><a href="https://gist.github.com/antontarasenko/1e7dd3226a3fdcd24396280c8a27a73f" rel="nofollow noreferrer">https://gist.github.com/antontarase... | 2 | 2,390 |
Scaling Graphics2D object shifts it | <p>I have a JScrollPane that contains a custom JLabel with an ImageIcon. I want the user to be able to zoom in and out on the image. I'm trying to use the <code>scale()</code> method in the Graphics2D class to do it, but whenever I zoom, the image is being shifted down/up and right/left depending on whether I'm zooming... | 2 | 1,275 |
how to replace document.write with innerHTML | <p>I want to replace the document.write with innerHTML. but it won’t create the links when I try it. I don’t know if there is an issue of how I am building the path variable so it won’t print out the links right. Right now it won’t print out any links.</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<s... | 2 | 1,159 |
Incorrect syntax near 's'. Unclosed quotation mark after the character string ')' | <p>I know I should use paramaterized queries for this but it is an internal tool for inserting text files. Anyone see the error for the Unclosed quote? Weird, I ran it in SQL Server 2014 and it ran successfullyafter I dropped " and the ; at the end of the Values assign. But in Visual studio in my project it needs the "... | 2 | 1,657 |
Unity IAP (2.2.7 & 3.0.1) consumable item, transaction completion issue | <p>I have 12 consumable items in "Ready To Submit" status and I am trying to purchase 1 of them again and again by using
a sandbox tester account. In the initialization process, I can receive the product successfully. I can initiate a purchase flow by giving the name
of the product. In the "ProcessPurcha... | 2 | 4,375 |
How to finish Activity from AsyncTask class in android? | <p>I have an activity with a hamburger menu. When I click on the hamburger menu logout enty, it will call an <code>AsyncTask</code>. After the API was called, if the statuscode indicates success then I need to call loginactivity. Up to here it works fine, but my problem is when I press the back button in login then it ... | 2 | 1,470 |
C# - Tree / Recursion in Get and Set Accessors? | <p>I have a tree (a <code>List<T></code>) that contains a number of <code>ItemType</code> classes (see code below); the class has the properties <code>OverrideDiscount</code> (which could be <code>null</code>, indicating to use <code>DefaultDiscount</code> (which could be <code>null</code>, indicating to use the ... | 2 | 1,031 |
Not getting Location on mobile data in android | <p>i am not able to receive any location information when mobile data is on. my code works fine when wifi is on but does not give output on mobile data</p>
<p>My code :</p>
<pre><code> private void locationInit() {
// TODO Auto-generated method stub
locationManager.requestLocationUpdates(LocationManager.GP... | 2 | 1,966 |
M Query Results in "Token Literal Expected" | <p>I am getting a "Expression.SyntaxError: Token Literal Expected" error in Power Query. I know it is telling me that it expects the [OffenseTeam] to be a string literal but that is confusing as it is a reference to a field that holds the string?</p>
<pre><code>let
Source = Csv.Document(File.Contents("C... | 2 | 4,370 |
SQL - Another "SELECT Permission was denied on the object" Issue | <p>(I know SO has well over a dozen questions with the same/similar title and I promise I've already gone through every one of them to no avail. I might have missed one or two minor details but I suspect my problem could be something more deep rooted. Enough said for intro)</p>
<p>Anyway, I have a database (let's call... | 2 | 1,175 |
java.lang.IllegalArgumentException: No Retrofit annotation found. (parameter #4) | <p>I am trying to connect to a REST API endpoint</p>
<p>The following is my WebService.kt</p>
<pre><code>package <package_name>.data.services
import ch.iazi.paidrent.BuildConfig
import ch.iazi.paidrent.models.DefaultParameters
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Headers
im... | 2 | 1,442 |
importing google calendar api problem using eclipse plugin | <p>I imported the google calendar api jars to my current project using the eclipse plugin provided by google. </p>
<p>here is how I did it <a href="http://code.google.com/eclipse/docs/googleapis.html" rel="nofollow">http://code.google.com/eclipse/docs/googleapis.html</a></p>
<p>and here is what I am trying to do</p>
... | 2 | 1,846 |
Can't catch the exception - Java with HtmlUnit? | <p>I don't understand what's going on ???</p>
<p>I have the following code :</p>
<pre><code>public static void main(String[] args){
WebClient wc = null;
HtmlPage hp = null;
ArrayList<Product> allProducts;
try{
wc = new WebClient(BrowserVersion.FIREFOX_3_6);
hp = wc.getPage("htt... | 2 | 1,202 |
Updating values in an Embeddable class | <p>Here's what I'm trying to do...I have a Person</p>
<pre><code>@Entity
@Table(name = "PERSON",
uniqueConstraints = {
@UniqueConstraint(columnNames = {"SSN"})
}
)
@DynamicInsert(true)
@DynamicUpdate(true)
@SelectBeforeUpdate(true)
public class Person implements java.io.Serializable {
private static... | 2 | 2,333 |
matplotlib animation control interval in individual loops | <p><strong>Short</strong></p>
<p>Is there a straightforward way to precisely control the time an animation object is shown while the script is running taking into account the time it takes for each loop of the updatefig function?</p>
<p><strong>Long</strong></p>
<p>I'm writing a script that is supposed to run on a R... | 2 | 1,288 |
Django: TemplateDoesNotExist at /home/ | <p>I am trying to add a template which displays a <code>ModelForm</code> on my Django app's home page. I made a separate app within my project for the home page called <code>home</code> since it isn't static, but the template I'm using is living in the main templates directory used by my project right now. </p>
<p>Whe... | 2 | 1,092 |
android: onAutoFocus() is not triggering on android 4.0 (Ice cream sandwich) virtual device | <p>I am automatically focusing each 3 seconds, and my code works on my hardware device (Galaxy S), but on my AVD (virtual device) the callback, which should be called after the focus has finished, never gets called.
Someone knows why?</p>
<pre><code>public void onPreviewStart(){
Log.v(TAG,"onPreviewStart() foc... | 2 | 1,028 |
How can i Use DMA to copy a source array to destination array Using CMSIS CORE? | <p>I was trying DMA in stm32f103rc. I followed this tutorial <a href="https://letanphuc.net/2014/06/how-to-use-stm32-dma/" rel="nofollow noreferrer">https://letanphuc.net/2014/06/how-to-use-stm32-dma/</a> and wrote my own code using CMSIS CORE. Here i m taking two arrays one 'sourceArr' where i am storing a random valu... | 2 | 1,893 |
VS Code always fail when try to install dependencies | <p>I tried using the example from here <a href="https://github.com/dejavuzhou/felix" rel="nofollow noreferrer">https://github.com/dejavuzhou/felix</a></p>
<p>And I have succeeded create my project from there. My project running well. It's just that when I open a project with VSCode, I always find notifications to downl... | 2 | 8,802 |
null pointer exception hibernate on creating sessionfactory | <p>Hi i trying to write my first Hibernate program,
its giving an error while instantiating the session factory.
I'm using hibernate 5.0.4 & java 8 & eclipse Luna SR1 (4.4.1) & oracle 11g.</p>
<p>MainClass is:</p>
<pre><code>public class MainMethod {
public static void main(String[] args) {
SampleClas... | 2 | 1,120 |
WCF Service Request is Null when using XmlSerializerFormat | <p>I'm writing an WCF service based on the WSDL from an old soap service. I used svcutil to generate the the service contract and made a few changes to match the site I'm hosting it on, but when I call the service from a test client, the request object is coming in as null.</p>
<p>The response the service is returning... | 2 | 6,588 |
Web Api 2: Custom parameter validation (typeconverter) | <p>In Web Api 2, a method on a controller can have a number of parameters supplied from the URI, e.g. string converted to int and automatic web error message returned if string could not be converted to int.</p>
<p>I would like to do the same with a custom type. I have created a class that holds just a DateTime object... | 2 | 1,190 |
Perform calibration on fisheye image - cancelling fisheye effect | <p>I'm currently using opencv library with c++, and my goal is to cancel a fisheye effect on an image ("make it plane")
I'm using the function "undistortImage" to cancel the effect but I need before to perform camera calibration in order to find the parameters K, Knew, and D, but I didn't understand exactly the docume... | 2 | 1,702 |
How do I align 2 components next to each other in React? | <p>I've been building the UI for a chat room app in React. Everything was going fine until suddenly, it refreshes and the UI "broke". Basically, I have 2 components, a Sidebar component and a Chat component. I use flex to position them. Here is my code:</p>
<p>Sidebar.js</p>
<pre><code><div className="... | 2 | 2,190 |
Google App Engine Go memory management | <p>I've run into a problem recently where App Engine would terminate my Go instance because it says it ran out of memory. The memory limit for the instance is set to 128Mb.</p>
<p>However, I have trouble figuring out where all that memory is being allocated. When I run the following code:</p>
<pre><code>var s runtime... | 2 | 1,677 |
DataContract Parent reference in child property - how to avoid infinite serialization loop | <p>In a WCF service, I have a situation where there is a datacontract (object) that contains a collection of child items (where the collection has a datamemeber attribute). The objects in the child collection have a reference to the parent as a property. If the parent object child collection is empty or contains a null... | 2 | 1,174 |
Retrieving all comments from a thread on Reddit | <p>I’m new to API’s and working with JSON and would love some help here.</p>
<p>I know everything I’m trying to accomplish can be done using the PRAW library, but I’m trying to figure it out without PRAW.</p>
<p>I have a for loop that pulls post titles from a specific subreddit, inputs all the post titles into a pandas... | 2 | 1,104 |
I pickled my tuple | <p>I'm still new to python. I'm working the framework for a larger project. This program makes you think of either a circle or square, then it ask four questions, then decides on an answer.</p>
<p>I'm on the last step of the framework, but ran into a problem. I get "global name 'qas1' is not defined" </p>
<blockquote... | 2 | 1,631 |
UINavigationControllerDelegate method called twice | <p>I have set up a very simple project with no storyboard, one window and one UINavigationController containing a plain old UIViewController as rootViewController. In the AppDelegate I've set the UINavigationController's delegate to self and implemented</p>
<p><code>navigationController:didShowViewController:animated... | 2 | 4,064 |
"FCM" App Crashes on this line getToken() "java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process" | <h1>FCM (Firebase Cloud Messaging) initialize issue</h1>
<p>I started working on FCM module, I fallowed as per the firebase guidelines. i'm getting two exceptions like RuntimeException and IllegalStateException. Firebase init default but why and what is the issue in FCM.</p>
<h3>1. From Android Studio tools -> Fireb... | 2 | 2,690 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.