title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Dynamically render choropleth map with sliderInput in R shiny | <p>I have shapefile which I am reading into R using readOGR to convert it to SpatialPolygonDataframe. The attribute table looks as shown in the figure below. </p>
<p><a href="https://i.stack.imgur.com/9wX2Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9wX2Q.png" alt="enter image description here"... | 2 | 1,513 |
codeIgniter pagination- doesn't go to the next link of searched results | <p>I am using pagination for searched results. Searching is working perfectly. The first 10 records are shown after the search. But when I click the next button everything disappears and an empty page is displayed.</p>
<p>Any ideas what might be wrong in my code would be appreciated. </p>
<p><strong>Model</strong></p... | 2 | 2,481 |
C# WinForms Chart Control: get Size,Region,Position of Bar | <p>is there a way to get the rectangles of the stackcolumn chart bar?</p>
<p>this code snippet is how it can be works but it's very ugly:</p>
<pre><code> var points = new List<Point>();
for (int x = 0; x < chart.Size.Width; x++)
{
for (int y = 0; y < char... | 2 | 1,357 |
Asp.Net MVC Razor can not find my custom HtmlHelper helper method | <p>I created a helper method for the HtmlHelper class:</p>
<pre><code>namespace MyExampleApp.Infrastructure
{
public static class LanguageHelper
{
public static HtmlString GenerateLocalizedAnchor(this HtmlHelper helper, string language, string innerText)
{
//Code will go here...
... | 2 | 1,833 |
Array Map using JS - Compare values to another array and return value from second array | <p>I'd like to map this table's <code>chapter_id</code> and <code>brother_id</code> with the brothers and chapters table below and return the <code>brothername</code> and <code>name</code> field's respectively. Using js or jquery. I am using vuejs returning minutes array as a computed property. See below.</p>
<p>In <c... | 2 | 1,078 |
Uncaught TypeError: Cannot read property 'getParent' of undefined | <p>the component create (drawer antd):</p>
<pre><code>export default class Cadastrar extends React.Component {
state = {
visible: true,
}
showDrawer = () => {
this.setState({
visible: true,
})
}
closeDrawer = () => {
this.setState({
v... | 2 | 3,301 |
Show cross-sells before same category on related products in WooCommerce | <p>I'm writing some code to modify the related products section as follows:</p>
<ul>
<li>If a product has cross sell products, show those first, and fill up to 4 total products with others from the same category*</li>
</ul>
<p>Or</p>
<ul>
<li>If a product has no cross sell products, show 4 products from the same cat... | 2 | 1,141 |
Printing Bitmap Using Bluetooth Thermal Printer With Firemonkey Android | <p>I have this code is success for printing text with bluetooth thermal printer using android using firemonkey delphi,
my friend modified for printing bitmap, but any some error access violation with procedure bitmaptostr.</p>
<pre><code>procedure TBluetoothPrinter.Send(Data: TArray<Byte>);
begin
if Data = ni... | 2 | 1,152 |
MVC Console app in VS 2017 - unable to serve razor views | <p>I have created basic MVC application in asp.net core with Visual Studio 2017.
I got an error when trying to render index.cshtml</p>
<blockquote>
<p>An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source cod... | 2 | 1,148 |
Play facebook video url in Android | <p>I am trying to play the facebook video url in <strong>videoView</strong> as well as in <strong>webview</strong> like this:-</p>
<p><strong>1. In VideoView</strong></p>
<pre><code> VideoView videoView = (VideoView) findViewById(R.id.videoView);
//Use a media controller so that you can scroll the video conte... | 2 | 3,353 |
Xcode 7, asset catalog universal device background image support? | <p>I've seen various old posts regarding image sizes, but I can't find anything up-to-date or even know if it's possible with just asset catalog to provide images for all iPad and iPhone screen sizes.?</p>
<p>This is the best post I've found, but in Xcode 7 it doesn't show "Retina 4 2x" or the iPhone 6 / 6+</p>
<p><a... | 2 | 1,804 |
React needs web server? How do the web application server and react communicate? | <p>I'm a student who study web development by myself.
I'm developing a shopping mall site as my personal project and I've got some elemental questions when I tried to make a login page.</p>
<p>First of all, I will tell you about the main concepts of my project on the beginning for you to understand my questions more ea... | 2 | 1,099 |
How to build Tensorflow 1.4 with CUDNN 5.0? | <p>
I'm trying to install Tensorflow 1.4 from sources with CUDA 8.0 and CUDNN 5.0.5, on Centos 7. It's indicated in the documentation that it should work with CUDNN 3 and higher. I'm working in a virtual env with Python 3.4.5, using Bazel 0.7.0, with GCC 4.9. During the configuration, I've set CUDNN version to 5.0.5 an... | 2 | 1,557 |
"fatal error: unexpectedly found nil while unwrapping an Optional value" for image View | <p>I have one view, there is one button and one ImageView. When pressed, the button triggers UIImagePickerController and the UIView will display the picked image. I tried to do this <strong>without using storyboard</strong>, but I keep getting a <code>"fatal error: unexpectedly found nil while unwrapping an Optional va... | 2 | 1,067 |
Unity Interactable = False suddenly not working | <p>now i encountered a very very weird issue. below is the code. pardon the length. This class has multiple function that were working when there only 3 (upt to button C)buttons being reference, <strong>in fact the one installed on my phone has the already pressed button disabled after i go back to the initial scene.</... | 2 | 3,755 |
django html template can't find static css and js files | <p>I have a django project that structure is like this:</p>
<pre><code>>vira
>vira
-__init.py
-settings.py
-urls.py
-wsgi.py
>vira_app
>migrations
>template
-index.html
>static
... | 2 | 2,514 |
How can we use instance variables in RestEasy? | <p>I am trying to learn Restful Web Service with RestEasy. I created a Java class and tried to use a instance variable but default scope is Request Scope and after an event, the value of variable is cleaned. How can we use a instance variable in different methods in RestEasy class.
My code is below:</p>
<pre><code> ... | 2 | 1,231 |
React JS pass object to an action | <p>I have a form with validation on it and after it is creates the object "fields". How can I now pass this object to the action "createPost"? I'm guessing I need to do something with "props"? Or I'm guessing it might be something to do with the dispatcher line?</p>
<pre><code>import React, { Component } from 'react';... | 2 | 1,378 |
vue scoped slot not being exposed | <p>I am trying to build a stepper component, where the stepper will expose to the child component the <code>step</code>, so it can display certain things. However, the child component is not receiving the <code>step</code>.</p>
<p><em>Child component:</em></p>
<pre class="lang-html prettyprint-override"><code><tem... | 2 | 1,050 |
Div Visibility not working in Firefox, inner image not displaying | <p>[edit]Problem now solved</p>
<p>I have an edit(div with an image) button within another div that contains editable content, my plan is to have the button hidden until the cursor hovers over the content div.</p>
<p>My problem is that if I use <code>display:none;</code> in the CSS and then use a javascript function ... | 2 | 1,063 |
Seeking assistance for assignment to average an array of grades | <p>I'll copy/paste the assignment, and then the progress I've made thus far. I'm truly not looking for someone to do the assignment, only some assistance to point me in the right direction as to where I'm going wrong? The program is running without error, however it's returning multiple results for a student when it ... | 2 | 1,955 |
Object created in for-loop has same address | <p>I'm trying to make an own list-class which is of a fixed size and can store integers. Just for learning purposes.</p>
<p>This is how I do it:
I have a struct called Item which holds the data (the integer to store), and a pointer to the next item in the list.
When the list gets initialized I first add x amount of em... | 2 | 1,716 |
What's the right pattern? An observer between the viewmodel & service | <p>I am building a WP7 client app that talk to a web service (SOAP like) using Mvvm-Light.</p>
<p>I have a ViewModel that both implements <code>INotifyPropertyChanged</code> and calls <code>RaisePropertryChanged</code> with the broadcast flag set. </p>
<p>Both my view (XAML) and my model (which does HTTP requests t... | 2 | 2,944 |
webpack-hot-middleware webpack express typescript | <p>I'm trying to set up webpack-hot-middleware on my node api
but when I made a change on welcome.controller.ts, the console shows the build process but I can't see the changes, what I'm missing?, I'm using typescript and webpack, here is my setup:</p>
<p>Webpack.config.js</p>
<pre><code>var fs = require('fs');
var ... | 2 | 1,480 |
Unable to Connect to BLE Device using Custom App without Workaround using nRF Connect | <p><strong>Summary and Background of Problem</strong><br></p>
<p>As part of a college project, we are needing to connect to a Bluetooth LE module (BL654) with a custom app to update characteristics.<br></p>
<p>The issue is that I am unable to connect to our module without first doing a workaround. I am able to search... | 2 | 2,675 |
Android how to refresh image grid view adapter on tab change/swipe? | <p>I am new to native android development. I have 3 tabs (Map, Camera, Pictures). <code>Map</code>is displaying my current gps location with marker on map. <code>Camera</code> is used to take picture and <code>Pictures</code> have a grid view to show saved pictures taken from camera. The screen look like below </p>
<p... | 2 | 3,649 |
ActionScript Drawing Code From Vector Graphic? | <p>is there a common way to convert a drawn vector graphic in Flash Professional to code for the Drawing API?</p>
<p>the code of these drawn or imported vector graphic assets are available in the source files (.xfl) as XML data. for example, the following drawn vector graphic is the trailing XML data.</p>
<p><img sr... | 2 | 3,858 |
using handler inside a thread android | <p>i am trying to run a handler inside a thread but i'm getting the error "Can't create handler inside thread that has not called Looper.prepare()" i have spent hours looking for a resolution but couldnt find one so i decided to post this. i have tried calling "<strong>Looper.prepare();</strong>" it fixed the force clo... | 2 | 1,781 |
Select multiple row values into single row with multi-table clauses | <p>I've searched the forums and while I see similar posts, they only address pieces of the full query I need to formulate (array_aggr, where exists, joins, etc.). If the question I'm posting has been answered, I will gladly accept references to those threads.</p>
<p>I did find <a href="https://stackoverflow.com/quest... | 2 | 1,174 |
Java socket will send but then not receive response | <p>I am currently learning <code>Java</code> and am playing around with socket programming.</p>
<p>My goal is to implement request-response communication like <code>HTTP</code>. I can get one way communication from the client to the server. But when I program the client to listen for a response it causes the server to... | 2 | 1,301 |
postman 404 Not Found | <p>I'm a beginner in laravel API I want to display list of articles (method index),I already created model Article, but I can not.</p>
<p>Hi, I'm a beginner in laravel API I want to display list of articles (method index),I already created model Article, but I can not.</p>
<p><strong>ArticleController</strong></p>
<... | 2 | 1,319 |
Issue with excel sheet while trying to fetch the values from groovy script | <p>If i place <strong>getCell(0,0)</strong> in String reqTagName = sheet1.getCell(0,0).getContents() for the below code then, it is only executing the first value from the sheet. But, if I place <strong>getCell(0,Row)</strong> for the same String reqTagName = sheet1.getCell(0,0).getContents() and change the values in t... | 2 | 3,373 |
Angular Mat-table DataSource value changed while updating the status | <p>table -> Action -> InActive</p>
<p><strong>When we have changed the row status value, the mat-table data source value is also updated.</strong></p>
<p>Our requirement is to change the status value after being updated to the database but now the mat-table immediately changes the status value.</p>
<p>How do we s... | 2 | 1,851 |
request data from front end (d3.json) from python flask backend | <p>Python user, learning some basic javascript:</p>
<p>I have created a simple flask app for demonstration. (For a quick test, I've put this example on Github: <a href="https://github.com/robertdavidwest/flask_d3_example" rel="nofollow noreferrer">https://github.com/robertdavidwest/flask_d3_example</a>)</p>
<pre><cod... | 2 | 1,107 |
Issues about files or folders in use: get the name of another Process that use file or folder | <p>I using C# .NET , vs 2008 , .net 3.5</p>
<p>For me, is difficult, but I need sample code in C# for this:</p>
<ol>
<li><p>Check if a file or a folder is in use</p></li>
<li><p>If file or a folder is in use, the name of Process that use it</p></li>
</ol>
<p>For example, in my issue. </p>
<p>I try delete file, and ... | 2 | 1,163 |
How to install pybel in conda enviorment? | <p>I tried to install <a href="https://github.com/pybel/pybel" rel="nofollow noreferrer">pybel</a> in conda, but it doesn't really work, even though the installation looks ok, all the module's API function aren't present. </p>
<pre><code>me$ conda create --name py34 python=3.4
Fetching package metadata .................. | 2 | 3,474 |
how to debug this ClassCastException ? (where the stack trace seems useless) | <p>The stack trace below seems useless to me... does anyone have an idea how to find out what caused the crash?</p>
<pre><code>09-20 13:40:11.136: D/AndroidRuntime(8819): Shutting down VM
09-20 13:40:11.136: W/dalvikvm(8819): threadid=1: thread exiting with uncaught exception (group=0x410b82a0)
09-20 13:40:11.146: E/A... | 2 | 2,998 |
Blank White Screen Laravel 5.2 | <p>I created a new Controller <code>UsersController</code> and set the routes as mentioned below . Now I am trying to access this URL <code>( http://localhost/ecom/users/signin )</code> but it is showing nothing but a blank white screen. There is nothing in console and source of this page.I am using Resource Controller... | 2 | 1,919 |
TypeError: Cannot read properties of null (reading 'play') | <p>I am trying to create a discord bot for the first time in my life so I would like to say that my code is far from being perfect and optimized ^^ '</p>
<p>I have a problem, <code>TypeError: Cannot read properties of null (reading 'play').</code></p>
<p>The problem occurs when I try the "skip" command. Every... | 2 | 1,819 |
Best practice struts/jsp/i18n/resourceBundle | <p>I am using Struts 2 and Apache tiles, and I'm new to both. I am trying to "clean" some existing sources that don't feel correct to me (tell me if I'm wrong).</p>
<p>I have the following structure : </p>
<ul>
<li><p>in a layout.jsp :</p>
<pre><code><html>
<head>
<meta http-equiv="Content-Type" c... | 2 | 1,459 |
Can't build project with Alamofire 4.1.0, Xcode 8, and Swift 3 - no such file or directory | <p>I have an iOS project that I haven't updated in almost a year, but now I need to add a feature. After working through the normal headaches of having to update Swift (since I have updated Xcode in the meantime), I have one remaining problem that seems to have to do with Alamofire not wanting to build with the follow... | 2 | 1,414 |
Castle Windsor WCF interceptors | <p>I am having a hard time getting interceptors to work in a MVC application that is hosting WCF services. </p>
<p>I want to add fine grained control over AOP using classes/methods decorated with attributes, but the interceptor is never called using the WCF facility.</p>
<p>In <code>Global.asax</code> I have:</p>
<p... | 2 | 1,160 |
Sending email with attachments using Gmail API in Android (execute() hangs) | <p>Everything seems to work as long as the attachment is small.<br>
However, as I try to attach a larger file (7MB for example), the <code>execute()</code> method of <code>Send</code> just hangs.<br>
I tried to go over the documentation and if I understand correctly I should use a <code>send</code> <a href="https://dev... | 2 | 1,287 |
Distance between Matrix Objects, relative to parents orientation, using XNA? | <p>I would like to understand how to measure the distance between two 3D objects, let's call them a parent object and a child object. Think of the parent as the body of a car and the child being a wheel of the car. </p>
<p>I understand how to get the difference based on the objects position in world space but I would ... | 2 | 2,182 |
How to setup Jest for Unit testing normal with php project? | <p>I need to setup the front end unit test for my PHP project.
I decided to go with Jest.</p>
<p>So this is my package.json.</p>
<pre><code>{
"name": "staging-deploy",
"version": "1.0.0",
"description": "Staging deploy",
"main": "GulpFile.js",
"author": "some one",
"license": "BSD-2-Clause",
"dependenci... | 2 | 1,076 |
Algorithm 11.2 Nonlinear Shooting Method (Burden and Faires) Python | <p>I am trying to program nonlinear shooting method based on algorithm 11.2 from Numerical Analysis (Burden and Faires). However, after running the program, the numerical result i am getting is different from the answer in the textbook. i think there is something wrong in my coding but i cannot figure it out. I attache... | 2 | 2,568 |
Always print EAGAIN when calling accept after epoll_wait | <p>I'm using epoll to monitor the listen fd event, after the EPOLLIN event occur I call accept to process,
but always EAGAIN error. Anyone can give me some suggestions? thanks!</p>
<p><strong>[log]</strong> print the information below all the time</p>
<p>INFO Jan 01 00:02:08:924 [385] poll_loop: epoll has 1 even... | 2 | 2,185 |
Error connecting Android App to ASP .NET Web Service using ksoap2 | <p>I am trying to connect my App to a Web Service that I created in <strong>ASP</strong> and is currently running on <code>localhost</code>. The App is trying to access the <code>Coordonate</code> method that takes in 3 integers. </p>
<p>I have provided the code and the <strong>LogCat</strong>. I have to mention that ... | 2 | 2,369 |
Radiobutton changed value doesnt update hiddenfield? | <p>I've got a hidden field in an asp.net gridview like so:</p>
<pre><code> <asp:TemplateField>
<ItemTemplate>
<input type="hidden" value="0" id="hdnIsChanged" runat="server" />
</ItemTemplate>
</asp:TemplateField>
</code></pre>
<p>The hidden field is used so that i... | 2 | 8,321 |
codeigniter upload file error | <p>I am receiving the error "You did not select a file to upload." When I am attempting to upload a photo using this code:</p>
<pre><code>function index()
{
$this->load->helper(array('form', 'url'));
$this->load->library('session');
$this->load->library('form_validation');
$this->form_validation-&... | 2 | 1,186 |
Spnego Kerberos Spring SSO | <p>I'm trying to implement SPNEGO Kerberose based SSO, followed the instructions from <a href="http://spnego.sourceforge.net/pre_flight.html" rel="nofollow">http://spnego.sourceforge.net/pre_flight.html</a>. While deploying the sample application in tomcat i'm getting the following error.</p>
<pre><code>javax.servlet.... | 2 | 1,449 |
Writing bootstrapped phylogenetic trees generated with Biopython to a file using Bio.Phylo.write() | <p>I have a problem exporting BioPython Tree objects (from <code>Bio.Phylo</code>) with bootstrap values. The trees are created directly within my BioPython script based on distance matrices.</p>
<p>The trees basically look good, but when I use the <code>Bio.Phylo.write()</code> function to export them to a file (Newi... | 2 | 1,715 |
Phonegap3 + Phonegap-SMS-reception-plugin | <p>i'm trying to use the <a href="https://github.com/Pyo25/Phonegap-SMS-reception-plugin" rel="nofollow">https://github.com/Pyo25/Phonegap-SMS-reception-plugin</a> in phonegap3 project, when i try to compile i have this error:</p>
<pre><code>$ phonegap local run android
[phonegap] compiling Android...
[error] An er... | 2 | 6,092 |
ASP.NET MVC5 EF6: Given multiplicity constraints, a corresponding 'User_AppUser_Target' must also in the 'Deleted' state. Repository Pattern | <p>I have an MVC5 project using Identity 2 and Entity Framework 6 and the repository pattern, that is redeveloping an old classic asp system.
I started the project with Identity 1, after which in v2 they introduced that the ApplicationUser primary key can be anything, not just a GUID.</p>
<p>However, I have already ma... | 2 | 1,303 |
Generic View and Controller to avoid Duplicate Code in MVC | <p>I have lots of models with same basic structure in my MVC project. So, I created a master class like below.</p>
<pre><code> public class MasterTemplate
{
[Key]
public int Id { get; set; }
[Required]
[StringLength(255)]
public string Description { get; set; }
p... | 2 | 3,758 |
Nested onClick Listener | <p>I have some codes that I need help with. My plan for this code is simple. I have 3 <code>buttons</code> which are the <code>yellowBar</code>, <code>greenBar</code> and <code>redBar</code>. I also have 3 images that is colored yellow, green and red. What I wanted to do is when I start my app, the images I have will r... | 2 | 1,256 |
WPF WindowChrome with background - system buttons are hidden | <p>I am creating custom WPF Window using <code>WindowChrome</code>. I have my own style defined but title bar presents problem. If I set <code>Background</code> of my main <code>Grid</code> in template to Transparent then the whole window uses system accent colors and <code>Maximize/Minimize/Close</code> buttons are vi... | 2 | 1,461 |
Selecting multiple images but storing the data in separate places using Javascript | <p>So I am using the following code for users to upload photos (as you can see I am not allowing the user to select multiple files all at once, they will have to select one file, open it, then select the next file, open it etc).</p>
<p><strong>HTML</strong>:</p>
<pre><code><input type="file" capture="camera" accep... | 2 | 1,227 |
plugin cannot be loaded for module "QtQuick" (CMake) | <p>I have installed Qt using vcpkg and successfully managed to get a QtWidgets application working.</p>
<p>I created a default QtQuick application using QtCreator and the QtCreator Qt binaries and it runs just fine. However, when transferring over to VS Code (which is using vcpkg for its Qt binaries) I get the followin... | 2 | 1,190 |
Observable value is not updating | <p>I am trying to use a service in Angular that holds the state of the application in a string variable. I am using RxJS to use BehaviorSubject, and then my components subscribe to an observable of the BehaviorSubject.</p>
<h1>State.Service.ts</h1>
<pre><code>import { BehaviorSubject } from 'rxjs/BehaviorSubject';
impo... | 2 | 1,075 |
Inline HTML ng-templates not loading | <p>I'm following a tutorial on <a href="https://thinkster.io/mean-stack-tutorial#beginning-node" rel="nofollow">Thinkster</a> to learn Angular and MEAN Stack, however I for some reason can't get my template to load inline with my loaded HTML. Can someone point out where I'm going wrong here? The code isn't coloring cor... | 2 | 3,156 |
JSON processing On hadoop | <p>I am trying to run map reduce on a json file. The format of the input file is as below.</p>
<pre><code>{"Id":1, "title":"A list of SaaS management resources to help kickstart and augment your efforts","category":"business"}
{"Id":2, "title":"All Over the Board: 1Working on a 23 (Temp) Dream","category":"business"}... | 2 | 2,843 |
How can I add 'FontAwesome' icon on Android Action Toolbar Menu? | <p>Is it possible to set an Icon in ActionBar "Text" using FontAwesome?</p>
<p>I have tried this way...</p>
<p>My menu item like that..</p>
<pre><code> <item
android:id="@+id/action_chat"
android:orderInCategory="100"
android:title="@string/action_chat"
app:showAsAction="always"
android... | 2 | 1,127 |
Why do I have this error in Django? | <p>I'm following the Django tutorial process, currently located on part 6.</p>
<p>I get an error when I click on the list from my web page. I looked up where the problem occurred, but I could not find it.</p>
<p>This is the message from a web browser:</p>
<pre><code>Page not found (404)
Request Method: GET
Request U... | 2 | 1,981 |
Label inside UpdatePanel will not show value assigned from code-behind | <p>I'm at my wits end here. I've defined a user control for a modal that lets users change a password. Inside the modal, the fields are contained in an UpdatePanel, and I'd like to display a success/error message regarding the result of the password change request. However, the Label controls simply will not change.</p... | 2 | 3,696 |
Importing DLL into Fortran using DLLIMPORT | <p>I am having problems importing a DLL into my current Fortran project. The DLL file I am trying to import, <code>fdlltest.dll</code>, has the following functions defined when I do <code>dumpbin /exports</code>:</p>
<pre><code>C:\temp>dumpbin /exports fdlltest.dll
Microsoft (R) COFF/PE Dumper Version 12.00.40629.0... | 2 | 1,533 |
Display images after uploading with uploadify in asp.net | <p>I am trying to upload images using jquery uploadify and I am trying to display images in the data list view control.</p>
<p>The problem is I am not able to upload multiple images at a time <code>although</code> I have set the <code>"Multi" property to "TRUE".</code></p>
<p>I'm not understanding where I am going wr... | 2 | 1,051 |
Javascript validation with default field value | <p>newbie here. I need some help.</p>
<p>I am using a pre-written javascript form validator for my website but the thing is, it is not designed for fields with <strong>default value</strong>. So the problem is the validator is considering the value "Name" and "Message" to be valid and the message goes through without ... | 2 | 2,169 |
How to implement live search in jqgrid plugin? | <p>What is the true way to implement 'keypress'-filtering in jqgrid plugin?
I have text input field and i need filter results on keypress in this input by custom jqgrid-table columns.</p>
<p>filterToolbar method added search field for each column, but i need to one global search field for filtering by three custom col... | 2 | 2,315 |
Tomcat - Prevent persistence of sessions | <p>I get an IOException while restarting tomcat.
I tried various solutions as suggested in <a href="https://stackoverflow.com/questions/20622746/exception-loading-sessions-from-persistent-storage">exception loading sessions from persistent storage</a></p>
<p>None of them solve the problem.
I tried uncommenting the <co... | 2 | 1,354 |
4-Player Tournament Scheduling, Python | <p>I am trying to develop an algorithm to generate a schedule for a game tournament my family hosts every year. I have written a solution that only partially works; it seems that it works for 2^x players, but not in between.</p>
<p>Parcheesi is a game played with 4 people at a time, no more, no less, thus we schedule ... | 2 | 1,126 |
How to resolve duplicate class exception caused by com.google.firebase:firebase-ml-vision:24.0.0 | <p>While setting up the Text Recognizer for MLKit on Android for a react-native project (following this tutorial: <a href="https://firebase.google.com/docs/ml-kit/android/recognize-text?authuser=0" rel="nofollow noreferrer">https://firebase.google.com/docs/ml-kit/android/recognize-text?authuser=0</a>) I face an excepti... | 2 | 1,448 |
Getting negative numbers in C++ | <p>The question I am trying to solve is Find the thirteen adjacent digits in the 1000-digit number that have the greatest product.. I am trying to figure out when i try to read more than 8. It seems like it isn't running anymore.
Right now I get the value of 2145402160 but I want to read 13 values. Can someone tell me ... | 2 | 1,048 |
Multithreaded MD5 Hashing | <p>i'm trying to multithread a program wich take word from file then hash these and write to another.</p>
<p>If i make it without multithreading it's really fast, it's able to use only 15-20% of the CPU and has out like 300.000line/s</p>
<p>But when i tryied with multithreading it only slow down and start to hash onl... | 2 | 1,029 |
ng-show with form condition not working on a directive template in AngularJS | <p>In the directive I was wondering why the CSS is not reacting accordingly to the attributes. My ng-show is a simple boolean condition that depends if the required error of a certain input is true or not. In short what I want is while the required validation is true the take exam must be hidden until the user inputs s... | 2 | 1,312 |
pull to refresh returns data twice | <p>I,m getting data from JSON feed. </p>
<p>I'm able to do pull-to-refresh and it's working fine, but it's not bringing new data only, it brings all data over and over again, so every time I refresh it brings all results like same results and repeat them inside the app. </p>
<p><strong>im using Volly library.</strong... | 2 | 3,398 |
writing a directive for validating image url | <p>this is the first directive I'm writing for AngularJS.
I want to check if an image url inserted into a text input is valid.</p>
<p>this is what I have so far:</p>
<pre><code>angular.module('directives', [])
.directive('imageUrlVerify', function() {
return {
restrict: 'A',
require: 'ngModel',
... | 2 | 1,172 |
Cannot Bypass Error 619 "Control not found" | <p>I have the following code and it appears to always produce an error 619 "Control not found" at line <code>session.findById("wnd[1]/tbar[0]/btn[0]").press</code>, even though I have entered <code>Application.DisplayAlerts = False</code> and I've taken extra precaution to bypass the error. I have a... | 2 | 11,159 |
The remote server returned an error: (403) Forbidden. error? | <p>below is my code..I get an error -"The remote server returned an error: (403) Forbidden."..:</p>
<pre><code> TimeSpan t = DateTime.Now - new DateTime(1970, 1, 1);
string content = @"<entry xmlns='http://www.w3.org/2005/Atom'
xmlns:media='http://search.yahoo.com/mrss/'
... | 2 | 1,033 |
Click Function for Dynamic Content from JSON Array | <p>I have a PHP file that serves up a JSON array populated from a MySQL database and is loaded into the DOM. This data is loaded via jQuery getJSON() method into the #navContent divide of the HTML document. This functions as planed.</p>
<p>At the very-bottom of the HTML doc, I have a click function that targets the #n... | 2 | 1,961 |
Incremental MapReduce in c#.net | <p>I have data of following format..</p>
<p>Type C_ID Assitor CollectionDate granulity counter</p>
<p>A a 10 08-08-2012 00:00 15 0.9912378</p>
<p>B a 5 08-08-2012 00:00 15 0.1860929</p>
<p>C b 4 08-08-2012 00:00 15 0.5345317</p>
<p>D c 1 08-08-2012 00:15 15 0.865... | 2 | 2,089 |
NetSuite - not able to reference images from folder | <p>My Code:</p>
<pre><code>function combineExpenseFiles(type){
try{
var currentRecordId = nlapiGetRecordId();
var currentRecord = nlapiLoadRecord('expensereport',currentRecordId);
var expensesLineItemCount = currentRecord.getLineItemCount('expense');
var template = '';
var f... | 2 | 1,113 |
In Scrapy, how to use nested item loaders without further 'add_xpath' calls | <p>I'm trying to refactor a Scrapy spider making use of <a href="https://doc.scrapy.org/en/latest/topics/loaders.html" rel="nofollow noreferrer">Item Loaders</a>. I've gotten to a part where I'm populating several fields from data extracted from a single XPath expression, and for brevity I'd like to use <a href="https:... | 2 | 2,158 |
Populate UITableview with Array from Rest API in Swift | <p>In my mainTableView Controller, I can print the API result in the console but I have no idea how I can set these to be visible in the cells of my tableview</p>
<pre><code>import UIKit
//from: https://github.com/Ramotion/folding-cell
class MainTableViewController: UITableViewController {
let kCloseCellHeight: CGFlo... | 2 | 2,122 |
Vue.js & airbnb no-param-reassign lint rule - How to modify properties in array of objects? | <p>I'm using vue-cli & accepted the ESLint default rules including <code>no-param-reassign</code> which I've never used before.</p>
<p>I have a method that needs to:</p>
<ol>
<li><p>accept an array of <code>columnDefinition</code> objects</p></li>
<li><p>Iterate through the objects and assign each one a <code>col... | 2 | 1,556 |
JQuery UI Modal Dialog triggering ASP.Net updatepanel control | <p>I have a number of serverside generated HyperLinks</p>
<pre><code> <a id="ctl00_ContentPlaceHolder1_APMySlides_unlinkImage_2428_1" title="Click Here to remove this image from this application." class="APMySlides_unlinkImage" href="#"></a>
<a id="ctl00_ContentPlaceHolder1_APMySlides_unlinkImage_2428_... | 2 | 1,369 |
Import-CliXML fails when called within a constrained session | <p><strong>My scenario:</strong></p>
<ol>
<li>I have a function that performs a privileged operation</li>
<li>This function requires access to a secret key</li>
<li>I need to run this function in a constraint PowerShell session (i.e. the function must run in a security context different from the user that invokes it)<... | 2 | 1,221 |
Move, Scale and Rotate ImageView OnTouch not working | <p>i have days trying to make this work, checked out some other answers and none seem to work for me :S</p>
<p>i add a sticker to a RelativeLayout, i want the sticker to Move, Scale and Rotate with OnTouch Methods once it is selected (it has an OnClickListener that calls a setOnTouchListener)
keeping in mind that i ca... | 2 | 4,739 |
Android Repeating Alarm invoking a service | <p>I am trying to send GPS coordinates to server in every 1 minute interval through a background service . It invokes the service for thee first time but it doesn't repeat it .</p>
<p>Code for setting the alarm:</p>
<pre><code>Intent gpsIntent = new Intent(CheckInActivity.this, GoogleMapService.class);
... | 2 | 1,380 |
Access a flask template dictionary variable | <p>I have a <code>flask</code> variable <code>{{blogposts}}</code> that outputs:</p>
<pre><code>[{u'MONTH': 12, u'YEAR': 2016, u'post_name': u'data here', u'post_title': u'data here'},
{u'MONTH': 12, u'YEAR': 2016, u'post_name': u'data here', u'post_title': u"data here"},
{u'MONTH': 12, u'YEAR': 2016, u'post_name': ... | 2 | 1,044 |
Validate input and repeat input if it was invalid | <p>Using Visual Studio, its an exercise, I need to add other students in, which isn't a problem. My main question is: I want the code to jump back to the input question if the value is above 100 or below 0 included, but I don't know the code that checks(validates) the user-input, any help would be very helpful and I wo... | 2 | 1,228 |
Vue-Draggable doesn't work properly on b-modal | <p>I just met a problem when developing a vue.js app. I'm trying to implement a draggable list in a vue-bootstrap modal. These are my code:</p>
<pre><code>'''
<b-modal
id="modal--layers"
title="layers"
body-class="d-flex flex-wrap justify-content-around"
centered
hide-footer
... | 2 | 1,506 |
Android AIDL: Service-to-Activity communication | <p>I try to implement a Android AIDL communication strategy.
I have an <em>Activity</em> and a <em>Service</em>.
My <em>Activity</em> can successfully "talk" to my <em>Service</em>, but the reverse process does not seem to work.</p>
<p>To summarize, as the <em>Activity</em> and the <em>Service</em> run in different pr... | 2 | 2,200 |
keras.models.load_model fails with 'tags' = train | <p>I am exploring the c API for tensorflow 2.0. </p>
<p>Problem:
When loading model into python,weights are not restored and thus model seems to be untrained.</p>
<p>Workflow:
I am using TF 2.0 C api to handle the training of my model.
The general setup I follow is:</p>
<p><strong>1. Define model in python using TF ... | 2 | 1,238 |
how to make Nginx forward https traffic to upstream as a https proxy server? | <p>Here I want to setup a tor cluster with a nginx as load balancer to provide HA tor service. I choose "<a href="https://github.com/reiz/nginx_proxy" rel="nofollow noreferrer">https://github.com/reiz/nginx_proxy</a>" the nginx module to provide https_proxy feature. It works well with the https connections. but didn't ... | 2 | 1,050 |
Insert image and some text fields into SQLite database - Android | <p>I am new in Android developing and I am trying to insert data into SQLite database in Android. I have a problem find the solution, where can I see code, how to insert Image and Text into database. Do you know some articles/books or
something else which they help me ?</p>
<p>I write some code with inserting only te... | 2 | 10,443 |
Null coalesce operator implications? | <p>A while back I compiled two versions of a code, one using <code>(Nullable<T>)x.GetValueOrDefault(y)</code> and one using <code>(Nullable<T>)x ?? y)</code>.</p>
<p>After decompiling to IL I noticed that the null coalesce operator is transformed into the <code>GetValueOrDefault</code> call.</p>
<p>Since ... | 2 | 1,634 |
Typeorm BaseEntity create function: how to deeply create an entity? | <p>I have a Patient entity: </p>
<pre><code>@Entity()
@ObjectType()
@InputType('PatientInput')
export class Patient extends BaseEntity {
@PrimaryGeneratedColumn()
@Field(type => Int, { nullable: true })
id: number
@Column({ length: 500 })
@Field({ nullable: true })
firstName?: string
@Column({ length: 500 ... | 2 | 1,260 |
Reportlab: rebuild a document after changing the margins? | <p>In a program I'm writing for a friend's business, I am using the reportlab module to build PDF documents for various reports. In most cases, the report can be contained on a single page, but it may span across two pages in some rare circumstances. In those rare situations, what I'd like to do is re-format the page... | 2 | 1,286 |
get data from customize listview | <p>Here is my code,</p>
<pre><code>public class SecondScreenActivity extends Activity {
ListView foodJntListView;
ArrayList<Restaurent> restaurentData;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
requestWindowFe... | 2 | 1,177 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.