title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
How to Partially Update a DynamoDB Table? | <p>We're having a lot of trouble doing a partial update in DynamoDB.</p>
<p>Trying to use best practices in NoSQL by using aggregates instead of entities so our data looks a bit like this:</p>
<pre><code>[
{
"userLogin": {
"ipAddress": "123.222.121.1234",
"lastLogin": "2017-10-16T17:38:59.818Z",
... | 1 | 1,188 |
DevExpress XtraReport replace XRPictureBox control on runtime | <p>So in our Report we have an ImageBox in the Detail Band which we want to have a different image per page.<br>
Seeing that changing it in the BeforePrint Event of the Detail Band doesn't work (since it's only called once per print of the Report) I followed the following approach so far (which doesn't work):</p>
<p>I... | 1 | 1,045 |
Close Navigation Drawer on application start | <p>I have developed an application with Navigation Drawer. Whenever the application starts for the first time, it has navigation drawer open. </p>
<p>Is there any way I can set it as closed? Below is the auto generated code for your understanding. </p>
<pre><code>import com.example.navigationdrawer.R;
import android... | 1 | 4,704 |
How to Parse JSONarray inside JSONarray in android? | <p>Hi every one I followed <a href="http://www.androidbegin.com/tutorial/android-parsing-yql-using-json-tutorial/" rel="nofollow noreferrer">this</a> one
to parse JSON from a URL but at the time of parsing I strucked at one place..
as</p>
<p>Now I am not getting images please Help. IMAGES, DETAILS ,OFFERS those are not... | 1 | 2,151 |
Powershell script not recognising Functions | <p>I've written the following PS script to delete log files from specific server paths. I'm a novice to PS but I'm getting some errors with a few of the functions that I have written in this script:</p>
<pre class="lang-powershell prettyprint-override"><code>#* FileName: FileCleaner.ps1
#Clear the screen
Clear
#Read ... | 1 | 4,674 |
Close a FD (file descriptor) that was opened with shm_open() , without using close()? | <p>I want to close a FD that was opened with <code>shm_open</code> .</p>
<p>Here's the code : </p>
<pre><code> #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/file.h>
#include <sys/mman.h>
#include... | 1 | 1,113 |
ws2007FederationHttpBinding and WIF delegation | <p>I have a website that logs in using an STS, then gets a delegated token using the bootstrap token. I am then trying to use the delgated token to connect to a WCF service. I believe its my WCF config thats wrong. I've tried so many different configurations I'm lost.</p>
<p>I've gotten various errors from "Descrip... | 1 | 4,961 |
Cannot build OpenCV framework for iOS | <p>I am having trouble building the framework.</p>
<p>I have cloned a copy of OpenCV from here: <a href="https://github.com/Itseez/opencv">https://github.com/Itseez/opencv</a></p>
<p>Then checked that I have the latest cmake 2.8.10.2</p>
<p>Then run build_framework.py in the iOS folder.</p>
<p>e.g.</p>
<pre><code>... | 1 | 3,784 |
SVG animation inside svg:use element. Works in Firefox, not in Chrome | <p>I'm using the <code>svg:use</code> element to embed an animating SVG spinner inside a large D3.js tree with many nodes.</p>
<p>One node looks like this:</p>
<pre><code><g class="node clickable" data-path="1" data-depth="0" transform="">
<text class="title" x="0" y=".36em" style="fill-opacity: 1;" text-a... | 1 | 1,623 |
Can std::cout work with UTF-8 on Windows? | <p>I want to make <code>std::cout</code> print an UTF-8 literal. This seems to be an easy task with gcc, but an extremely difficult one with Windows.</p>
<p>The code that I'm trying to get to work is:</p>
<pre><code>std::cout << "Ελληνικά Русский 你好";
</code></pre>
<p>Environment:</p>
<ul>
<li>Windows 10, Vis... | 1 | 2,085 |
Adding caption area to 'Flexslider Plug-in' | <p>I have this question on the Wordpress stack exchange as well, but not having any luck there. So, as my solution probably involves me hard-coding php and css, It may be better to have it here.</p>
<p>I'm using 'Flex Slider' plugin - that works on top of 'WP rotator' plug-in on my Wordpress 3.2 website. I have it imp... | 1 | 3,444 |
Can't connect to port 25 on Google Compute instance (incoming SMTP) | <p>I am running postfix on a Google Compute instance. It is listening on 0.0.0.0:25, and I have opened port 25 on the firewall, but I cannot connect to it from the outside. I have reviewed <a href="https://stackoverflow.com/questions/1692366/telnet-to-google-mail-server">this</a> and <a href="https://stackoverflow.com/... | 1 | 1,379 |
Flask-Sqlalchemy .in_() method not working for me | <p>I'm currently working on a project with Flask and SQLAlchemy, basically forum software like discourse but in Python 3.</p>
<p>There are Two models at the moment, Forum and Threads</p>
<p>I've got a Jinja template that should be generating table records of forum threads, please see below.</p>
<pre><code>{% for thr... | 1 | 1,239 |
change specific pixel in jpeglib | <p>We have extracted the jpeg image in the variable char *raw_image.
How can we, before writing a new picture, change specific pixels in the raw data?
We are programming in c.</p>
<p>This is our functions to write and read images:</p>
<pre><code>#include <stdio.h>
#include "jpeglib.h"
#include <stdlib.h>
... | 1 | 1,614 |
'ListWrapper' object has no attribute 'name' when plotting keras custom model | <p>I would like to plot the underlying topology of a custom keras model. According to this link (<a href="https://machinelearningmastery.com/visualize-deep-learning-neural-network-model-keras/" rel="nofollow noreferrer">https://machinelearningmastery.com/visualize-deep-learning-neural-network-model-keras/</a>) I though... | 1 | 1,393 |
Android: TimerTask scheduled for repetition getting fired only once | <p>Ok this is a very weird problem I am having, and I'm pretty sure that I am messing up somewhere, but I can't quite figure out where.</p>
<p>What I am trying is - </p>
<ul>
<li>Schedule a <code>Timer</code> to execute a <code>TimerTask</code> every five seconds</li>
<li>The <code>TimerTask</code> in turn executes a... | 1 | 1,086 |
How to display selected attributes for selected levels in DOORS using DXL? | <p>I'm looking for some DXL/DOORS help...</p>
<p>I have 3 modules: A, B, and C. B is linked in to A, and C is linked in to B. So B is depth 1 and C is depth 2. I am trying to create a column in A that displays the object text, module name, and object number of the inlinked objects from B and C. However, I do not wan... | 1 | 1,493 |
Microsoft Graph API - Create user in Azure AD B2C with local account identity gives Request_ResourceNotFound error | <p>My goal is to create a local account, like <code>michele@gmail.com</code>, in <strong>Azure Active Directory B2C</strong>. </p>
<p>I want to use my own UI, so I started to look at how to implement the API. After some research, it looks like the best way to do it should be via Microsoft Graph.</p>
<p>I started by f... | 1 | 1,871 |
“No locks available” when run sbt cmd | <p>to building spark project, I tried to use sbt. The following exception is occured: </p>
<pre><code>java.io.IOException: No locks available
at sun.nio.ch.FileChannelImpl.lock0(Native Method)
at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:871)
at java.nio.channels.FileChannel.tryLock(FileChan... | 1 | 1,150 |
Locking files when building in Visual Studio 2010 | <p><strong>Hello there, Stackoverflow.</strong></p>
<p>Recently, when I've been programming in Visual Studio 2010, I've been getting the problem with VS locking the bin/Debug/(ProjectName).exe file when trying to build and gives me the error below after trying to build the project 10 times:</p>
<blockquote>
<p>Unable t... | 1 | 1,067 |
How to get WCF services to return fault messages with an HTTP 200 response code? | <p>We are trying to get our WCF services return to fault messages with an HTTP 200 response code to our Silverlight 4 clients following <a href="http://msdn.microsoft.com/en-us/library/ee844556%28v=vs.95%29.aspx" rel="nofollow">this article on MSDN</a>. After spending most of the day fighting with the configuration, de... | 1 | 1,495 |
Disable hover and allow click on submenu in twitter bootstrap | <p>I had not much knowledge in html, I want to open the dropdown(dropdown-submenu) while click but now it opens when hover .</p>
<pre><code><div class="col-md-6 col-sm-8">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="... | 1 | 1,458 |
excel vba recursive function | <p>I am trying to show a path of related project activities. Basically you can think of it as a directed graph. I made an adjacency matrix of it.</p>
<pre><code> STA A1.1 A1.2 ...
STA 0 1 0 ...
A1.1 0 0 1 ...
A1.2 0 0 0 ...
... ... ... ... ...
</code></pre>
<p>Then I wrote a subr... | 1 | 2,332 |
ASP.Net MVC @Url.Action() routing to the wrong controller | <p>I'm newbie to MVC. I could integrate MVC 5.2 to my existing web forms Visual Studio 2012 Update 4 project. I created my first controller and all worked as expected. Even I was able to leverage the windows forms authentication from my existing project when accessing the MVC view. But when created my second controlle... | 1 | 1,161 |
Twin array Find a Minimum value from each Array index must be different | <p>You are given two arrays A and B each containing n, integers. You need to choose exactly one number from A and exactly one number from B such that the index of the two chosen numbers is not same and the sum of the 2 chosen values is minimum.</p>
<p>Your objective is to find and print this minimum value.</p>
<p>F... | 1 | 1,132 |
KIVY - Python Keep doing while button is pressed | <p>I'm currently trying to make a platformer game for IOS/Android but I'm stuck on a problem. I've created two buttons and a character. I want the character to keep moving until the button is released. By that I mean: I can move the character once, when the button is pressed, but I want it to keep moving until the butt... | 1 | 3,663 |
Running Karate tests from commandline returns surefire-plugin error | <p>I've been trying to run my <strong>.feature</strong> karate files from command line. I've been trying to follow the <a href="https://github.com/intuit/karate#command-line" rel="nofollow noreferrer">docs</a>, so that I've found below instruction:</p>
<pre><code>mvn test -Dtest=CatsRunner
</code></pre>
<p>When I ru... | 1 | 3,030 |
There is an error in XML document (30, 14) FormatException: Input string was not in a correct format.? | <p>I am going to apologise first off as I have spotted an abundance of questions of this nature already on the site.</p>
<p>I am attempting to Deserialize an XML document into a C# object for later usage but am running into issues.</p>
<p>The error log "There is an error in XML document (30, 14). FormatException: Inp... | 1 | 1,220 |
hibernate.properties (i am using xml) not found | <p>i am new to hibernate. when i instantiate the session factory, i get the error</p>
<p>INFO: HHH000206: hibernate.properties not found</p>
<p>but hibernate.cfg.xml is at the root of src.</p>
<p>here is how i try to instantiate it:</p>
<pre><code>SessionFactory hbrntFctry;
Session rslt = null;
ServiceRegi... | 1 | 1,868 |
How render a list of options with renderOption in material UI | <p>I want to change the background colour of the options inside an <code>Autocomplete</code> component, and the closest I can get is by using the <code>renderOption</code> prop.</p>
<p>The problem is that I can't figure out how to iterate (using <code>map()</code>) the options that I have in my state.</p>
<p>What I wou... | 1 | 3,110 |
java.lang.NullPointerException GoogleMaps V2 | <p>i just learning about android programming to show map.
but when i run this code ,there's some error. Can anybody explain why this error occurs? And what I can do to fix this problem? thank you very much. </p>
<p>Stacktrace:</p>
<pre><code>12-01 02:58:27.324: E/AndroidRuntime(1360): FATAL EXCEPTION: main
12-01 02:5... | 1 | 2,612 |
[CFNumber release]: message sent to deallocated instance | <p>The code below returns the following error when I log/request values from the History Core Data object:</p>
<pre><code>-[CFNumber release]: message sent to deallocated instance 0x17ea2a90
</code></pre>
<p>I originally thought there was an issue elsewhere and have spent countless hours attempting to debug this to n... | 1 | 1,511 |
Save image from Camera take picture intent to application private storage | <p>There is a lot of information here about how to create a file on external storage in android, pass the uri to ACTION_IMAGE_CAPTURE and then save the image there.</p>
<p>However, I want to create a file in Application's private storage (sometimes referred to as internal storage) and pass that file uri to ACTION_IMAG... | 1 | 1,083 |
Android ImageView layout gravity not working | <p>hi guys i don't have the answer for this question. Hope you could help. layout_gravity property as center it is not working when i set the scale type property to matrix. And also i am using the pinch zoom for that imageview. so if i can set the image and set if the image is small then it would be very fine. Hoping ... | 1 | 1,083 |
Decoding mp4/mkv using FFMPEG fails | <p>I'm using a project based on the latest FFmpeg git source tree, and linking to the shared DLL's published by Zeranoe at <a href="https://ffmpeg.zeranoe.com/builds/" rel="noreferrer">https://ffmpeg.zeranoe.com/builds/</a></p>
<p>The playback code works and loops. It plays back h265 files (raw), mpeg, avi, and mpg fi... | 1 | 3,373 |
Problem with printing in Java | <p>I have an application which talks to USB printer and prints out the receipt once a sale is completed. I have no problem with connecting to the printer and printing something. THe problem i have now is when i do some printing i could see only a part of my message gets printed on the receipt. I have attached the code ... | 1 | 3,851 |
Spring amqp When there is network failure between rabbitmq server and consumer, AmqpIOException is thrown and no retry happens for consumer | <p>We are using Spring rabbitmq for out project. We are currently testing different failover scenario to prevent any further exception over Production.</p>
<p>We are using following properties:
listener:
type: direct
direct:
acknowledge-mode: manual</p>
<p>What we face is that When there is an... | 1 | 9,620 |
Can't get the object from a cell in jqGrid (jQuery) | <p>This is the issue, when I define the ddl (drop down list or select box) I don't know the selected value. When a user edits a row, the user can select an item from the list. But the selected item isn't set. I want to set the selected item when the user clicks a button to edit the row.</p>
<p>The proper way, I think... | 1 | 1,171 |
How to control output-size from LSTM cell in tensorflow | <p>I have tried to construct a simple example of using an LSTM RNN via Tensorflow to predict time-series values of some target series, given known input time-series.</p>
<p><a href="https://i.stack.imgur.com/GfkAu.png" rel="nofollow noreferrer">Link to example problem</a></p>
<p>I am trying to</p>
<p><a href="https:... | 1 | 1,254 |
Copying a slide from one presentation to another using Open XML SDK | <p><em>Sorry my English :)</em></p>
<p>There is a code</p>
<pre><code>using (var sourceDoc = PresentationDocument.Open(@"d:\source.pptx", false))
{
using (var destDoc = PresentationDocument.Open(@"d:\dest.pptx", true))
{
}
}
</code></pre>
<p><strong>I try copy slide №2 from <code>sourceDoc</code> and pa... | 1 | 3,955 |
Superfish menu vertically and opening to the left? | <p>I'm trying to use Superfish vertically but aligned to the right of page and thus opening any submenus to the left. I've been tweaking some CSS properties to achieve this but it doesn't work perfectly - the arrows are always positioned to the right of any parent menu text when in this case they should be at left of t... | 1 | 3,276 |
Trilateration Method Android Java | <p>I have a little problem... Does anyone knows about how can i implement this?</p>
<p>I need a method in java like this:</p>
<pre><code>public /*COORDINATE OBJECT*/ getTrilaterationPointBetween(
/*COORDINATE OBJECT*/ coordinate1, double distance1,
/*COORDINATE OBJECT*/ coordinate2, double distance2,
/*COORDINATE OBJ... | 1 | 1,866 |
clang can't parse my .h file standalone | <p>I'm using python binding of libclang but I think this problem is caused by libclang not by python binding.</p>
<p>I have a header <code>object.h</code></p>
<pre><code>#ifndef OBJECT_H
#define OBJECT_H
class Object {
public:
int run();
};
#endif
</code></pre>
<p>And a implementation <code>object.cpp</code></p>... | 1 | 1,604 |
How do I list and fetch remote branches after SVN to Git migration? | <p>I migrated our SVN repository to Git and pushed it to a central repository. We had a fair amount of tags and branches, but somehow we were not able to list and fetch those from a Git client. This was weird, because the tags and branches seemed to be available on the server.</p>
<p>With help from a <a href="http:... | 1 | 1,182 |
Java FileChannel Vs BufferedReader - Spring Batch - Reader | <p>We process huge files (sometimes 50 GB each file). The application reads this one file and based on the business logic, it will write multiple output files (4-6).</p>
<p>The records in the file are of variable length and each field in a record is a delimiter separated.</p>
<p>Going by the understanding that readin... | 1 | 2,569 |
Can't suppress nodes in BizTalk mapping | <p>Afternoon all,
I'm learning BizTalk and am stuck on this problem.</p>
<p>There's a choice group with either telephone or address.
I can get the some of the address fields to be suppressed when outputting the telephone.
To make things simpler I'll just discuss the "CityName" field .</p>
<p>I've tried the following:... | 1 | 1,877 |
findstr: search strings too long | <p>I am trying to compare a list of IP's and output the difference by using the findstr command in Windows and am having difficulty getting it to work. The command I am using is:</p>
<p>EDIT: My objective is to compare IP's that were scanned successfully to IP's that were scanned successfully with authentication achie... | 1 | 1,071 |
Bring to Button front while having two ConstraintLayout | <p>I'm trying to implement the following design on Android.</p>
<p><a href="https://i.stack.imgur.com/I9PJw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I9PJw.png" alt="Android Screen" /></a></p>
<p>I know that to have the button at that position I should have two constraint layout; one for whole ... | 1 | 2,137 |
How do i fix IOError: [Errno 2] No such file or directory error? | <p>I have received an IOError: [Errno 2] No such file or directory error and I cant seem to figure out where the problem is. I have checked the directory and the file exists.
Also I am trying to run this program through many text files, so if you could check to see if there are any other problems that would be great!</... | 1 | 1,340 |
SQL query to remove duplicate column values within distinct rows | <p>I am using MS SQL, I have tables "Table1" , "Table2" , "Table3" as mentioned below(might look like a mess, I dont know how to make a table better here).
I want the "Expected OutPut" as mentioned ant the bottom.</p>
<p>Want a SQL script to perform this action. </p>
<p><strong>Table 1</strong></p>
<pre><code>Family... | 1 | 1,087 |
How to open port 8000 on Ubuntu 12.04? | <p>On my Ubuntu 12.04 VM an app (Tryton) is running correctly on port 8000, when used locally. However, from outside I cannot connect to port 8000 via Internet.
(Beforehand, I was using Windows Azure which has a user-friendly endpoint configuration.)</p>
<p>Netstat, run locally, reports the port as listening:
(I've ca... | 1 | 1,752 |
UICollectionView sizeForItemAtIndexPath | <p>I'm having a problem with my UICollectionViewCell when setting it's height programatically. When the collection first load it appears ok, but when the collection is scrolled the cell lose it's height.</p>
<p>This is how it looks before the scrolling: <a href="https://dl.dropboxusercontent.com/u/11335239/Captura%20d... | 1 | 1,168 |
Checkbox check is not working | <p>I have 4-5 <code>checkbox</code> inside gridview. I want to save its value into the database like, </p>
<p>If <code>checked == true</code>, then <code>"Y"</code> else <code>"N"</code></p>
<p>but got error as</p>
<blockquote>
<p>object reference not set to an instance of an object</p>
</blockquote>
<p>I defined... | 1 | 6,334 |
Making ggplot2 plot density histograms as lines | <p>I have a simple table about ratings I collected on 3 websites (let's say OpenTable, Yelp, TripAdvisor). The ratings go from 1 to 5 and therefore Rating is a factor column and Website is another factor column (only 3 values allowed). I have only such 2 columns and all my observations. The structure is a data frame na... | 1 | 2,906 |
JQuery Datatables scrollbar and column search not working | <p>I am using <a href="https://datatables.net/" rel="nofollow noreferrer">JQuery DataTables</a> and trying to add a scrollbar to fit in the screen as well as column search in the header. It is <strong>breaking the header</strong> (if I click on the ordering, then my custom headers are gone) and the <strong>search doesn... | 1 | 2,294 |
div buttons are overlapping HTML | <p>I am trying to make an online portfolio for myself and I have a bottom container for the bottom half of the screen and I would like to place 3 buttons at the top of the container. I have got it to work except when you resize the page. When you shrink the page's width the buttons will overlap. How can I stop them ... | 1 | 1,247 |
Gesture Not Recognized on subview | <p>I am trying recognize gestures in a subview. I only get response when i define the gestureRecognizer in the superview. I wanted to know why i am not getting the gestutre response when i define it with in the subview which in my case is 'View.m', although i get response when i define the gestureHandler in the supervi... | 1 | 1,747 |
Sqlalchemy - core - creating copy of an existing table | <p>I need to create a table based on an existing table in the same (Oracle) schema. I don't want to have any constraint on the new table, even if original table may have one or more.</p>
<p>I have tried to create new table from the original table by using <code>column.copy()</code>, but for some reason, I am not able ... | 1 | 1,508 |
Using spark to access HDFS failed | <p>I am using Cloudera 4.2.0 and Spark.</p>
<p>I just want to try out some examples given by Spark.</p>
<pre class="lang-scala prettyprint-override"><code>// HdfsTest.scala
package spark.examples
import spark._
object HdfsTest {
def main(args: Array[String]) {
val sc = new SparkContext(args(0), "HdfsTest&q... | 1 | 1,580 |
React print a component | <p>There is a 'Print' button on SaleInvoice.js which shows the Modal containing Report.js. </p>
<p>Report.js is created only to describe how and what should be displayed in the printed page. </p>
<p>Report.js has a button 'Print' which opens the Print Preview in the browser. </p>
<p>How do I make the 'Print' button ... | 1 | 2,560 |
XML Premature end of data | <p>when running the code below I get the following errors:</p>
<p>Failed loading XML Premature end of data in tag Request line 2 </p>
<p>Fatal error: Call to a member function asXml() on a non-object in /home4/viptrav3/public_html/wp-content/themes/voyage-child/transfer.php on line 61</p>
<p>Line 61 is <code>$reques... | 1 | 1,698 |
How do I share images from RecyclerView? | <p>My target is to share the image from <strong>ImageView</strong> inside <strong>RecyclerView</strong> to the others apps.The image is loaded from <strong>Firebase storage</strong> using Picasso lib.</p>
<p>I have added a Share button below each item but cant proceed further.</p>
<p>This is my MainActivity.</p>
<pr... | 1 | 1,408 |
How to update the listview after the search of the items in android | <p>Currently i'm working on How to find the items from the listview when given the keyword for the item in edittext, now my "<em>find</em>" function is working correctly but displaying the found items in toast message, and the listview positioned items remains the same, how to update my listivew to get the filtered res... | 1 | 3,584 |
Errors: "Expected selector for Objective-C method" and "Expected method body" on #import <Foundation/Foundation.h> | <p>I get the next two errors while trying to run the project on simulator:</p>
<ol>
<li>Expected selector for Objective-C method</li>
<li>Expected method body</li>
</ol>
<p>on <code>#import <Foundation/Foundation.h></code> in the AppDelegate.h file</p>
<p>I tried cleaning the project, closed and open Xcode,res... | 1 | 1,313 |
How to hide table column if all json value is null for any property using angular js | <p><a href="http://plnkr.co/edit/Ixvp8B0dRwOBDHflmu2j?p=preview" rel="nofollow">Plunker sample</a> </p>
<blockquote>
<p>How to hide table column if all json value is null for any property
using angular js</p>
</blockquote>
<p>index.js</p>
<pre><code>var app = angular.module('plunker', []);
app.controller('MainCt... | 1 | 1,314 |
Problem with intersection oberserver api / useEffect hook triggering callback twice | <p>I'm not exactly certain why but something i've done is causing the callback in my intersectionObserver instance to fire 2 times when it should only fire 1 time.
any insights as to why that might be would be greatly appreciated.</p>
<p>amongst other things happening in this component, I'm trying to set up insersecti... | 1 | 1,567 |
BIRT dyanamic image report generation | <p>In my database I have table <code>Rapid_Slum_Appraisal</code></p>
<pre><code>id | general_info_left_image
--------------------------------------
1 | http://127.0.0.1/media/image1.jpg
2 | http://127.0.0.1/media/image2.jpg
</code></pre>
<p>if you hit the URL you can see the image in browser. </p... | 1 | 5,293 |
Play an mp3 file downloaded to filemanager using AVPlayer | <p>I'm working on a project in <code>swift3</code> and I have a particular UIViewController to download an mp3 to my filemanager and using that path saved <strong>I wants to play an mp3 using AVPlayer</strong>. My code doesn't work, I think Im missing something. How would I achieve this?. My code to download the file t... | 1 | 1,430 |
Java BigDecimal validation | <p>Here is property definition</p>
<pre><code>public class Item {
@Digits(integer=6, fraction=2)
@DecimalMin("0.00")
private BigDecimal goods_cost;
</code></pre>
<p>and getter/setter</p>
<pre><code>public String getGoods_cost() {
return goods_cost.toString();
}
public void setGoods_cost(String goods_cost) {
... | 1 | 2,159 |
Change scrolling speed of a div | <p>Here is my HTML:</p>
<pre><code><div id="intro-image">
<div id="intro-text">
<p class="intro-head">COLIN STEWART</p>
<p class="intro-body">logos - branding - web</p>
<a href="#work-anchor" class="smoothScroll"><div id="portfolio-button">POR... | 1 | 1,372 |
postgresql two nested joins and arrays in join | <p>I've never had to ask an SO question before, I always eventually stumble upon what I'm looking for through searching, but there's a lot going on here and I've gotten to the end of my searching prowess... Thanks for your help / suggestions.</p>
<h1>The problem</h1>
<p>I need to generate reports on the fly about how... | 1 | 1,264 |
Stack Overflow error with ArrayLists | <p>I'm trying to write some code to look through an image file for groups of pixels that are the same color.</p>
<p>The way I do this is I iterate through the image (in the form of a 1d integer array with the color's hash code) by pixel to find a pixel of the color that I'm searching for. Once one is found, I do a dfs... | 1 | 2,664 |
How to dynamically generate JSon in Gatling? | <p>I have the following two methods:</p>
<pre><code>def randomStartMethod() : Long = {
var range = 1000L
var r = ThreadLocalRandom.current().nextLong(10L*range)
var randomStart = 1396024675000L + r
return randomStart
}
def randomStopMethod() : Long = {
var range = 1000L
val r = ThreadLocalRandom.current()... | 1 | 1,211 |
How to use List<Object> in Struts? | <p>Im trying to write a code using the <strong>struts framework</strong>.</p>
<p>Im new in struts, I do not have experience in this field.</p>
<p>What i want to do, its to use the <strong>list of object in struts</strong>.</p>
<p>Assume that we have the java class extends from ActionForm as bellow:</p>
<p><strong>R... | 1 | 1,032 |
Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0 from SpringBoot API | <p>I am following this tutorial:</p>
<p><a href="https://www.baeldung.com/spring-boot-react-crud" rel="nofollow noreferrer">https://www.baeldung.com/spring-boot-react-crud</a></p>
<p>When I start the React server and try to fetch the json object(s) from REST API and display them in the map, the player data is not displ... | 1 | 2,600 |
Sharepoint event handler not firing | <p>I have created an event handler for ItemAdded so that when an item is added on the site, my code checks to see if it's a folder. If it is, it should change the content type of that folder to a custom content type.</p>
<p>The event isn't firing, so I was wondering if I'm doing it the right way and/or in the right pl... | 1 | 1,229 |
Display Logo inline with menu items in HTML and CSS | <p>I am trying to display logo at top end in HTML and CSS.</p>
<p>However, the logo image size is not reduced to the specified width and height and I do not see it being overridden anywhere else.</p>
<p>Code is as follows:</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="... | 1 | 1,179 |
Parsing XML correctly with jQuery but CSS does not take effect | <p>First time playing with jQuery Mobile but have used jQuery a little bit. was hoping for some quick advice. </p>
<p>I am parsing some xml in the head and writing the data as a list in a div with <li> tags. The list appears there but is not formatted with the default styling from jQuery Mobile. I'm sure its som... | 1 | 1,565 |
Spring MVC JSPs Cannot Locate Javascript or CSS | <p>This question seems to have been asked a few times, but after reviewing too many of them to count, I am still seeing this problem.</p>
<p>The .jsp's in my Spring MVC project are unable to locate any .css or .js files even though they are in the war and the given file paths are correct.</p>
<p>Depending on my confi... | 1 | 1,674 |
HTTP POST request and headers with MIME attachments multipart/related and xop? | <p>I'm trying to upload a bulk data exchange call to eBay using their FileTransfer API.
In order to do this, I've got to POST an xml request string to the eBay server but the xml
request contains a <code><Data></code> section that must include the data you're transferring( in this case it's a base64 encoded zipfi... | 1 | 1,329 |
Xposed Not Loading my module, ClassNotFoundException | <p>I am developing an Xposed module, as an expansion of FatMinMin's <a href="http://repo.xposed.info/module/tw.fatminmin.xposed.minminhide" rel="nofollow">minminHide module</a> also it seems like a good dev exercise as well :)
The issue is that during boot when I check the xposed log i get the below:</p>
<pre><code>5... | 1 | 1,665 |
AUTH_USER_MODEL refers to model '%s' that has not been installed" % settings.AUTH_USER_MODEL | <p>Here is my settings.</p>
<pre><code> ########## APP CONFIGURATION
DJANGO_APPS = (
# Default Django apps:
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
# Useful temp... | 1 | 1,083 |
How can I make multiple pivot tables mimic the filters (report and row label) of another on just that sheet in excel? | <p>So I have multiple pivot tables on a single sheet in excel. I have a long list of months in the row labels. The report filter is filterable by names. All of the columns in the pivots are just sums of data.</p>
<p>What I'm looking for (and I'm guessing a macro is the only way to do it), is a way to be able to change... | 1 | 1,200 |
UnsatisfiedLinkError with sqlite4java Jar on Mac OS X NetBeans | <p>I am getting experiencing a similar problem to this question:</p>
<p><a href="https://stackoverflow.com/questions/14301562/unsatisfiedlinkerror-with-sqlite4java-jar-on-mac-os-x">UnsatisfiedLinkError with sqlite4java Jar on Mac OS X</a></p>
<p>However, I am running on a Mac, and I have the relevant libraries in my ... | 1 | 3,986 |
Converting MIDI file to raw audio using a software synth | <p>I'm trying to dynamically generate a small MP4 audio+video file directly from my Android app. </p>
<p>My original plan of attack:</p>
<ol>
<li><p>The user enters some basic song data (a chord progression, etc) and the app builds a MIDI file.</p></li>
<li><p>The system builds chord diagrams for each chord, and usin... | 1 | 1,494 |
Python binary multiplication algorithm? | <p>I'm writing this python program to be able to understand how to implement the Multiplication algorithm. I've put together a 'master' copy of all my work and all of my instructions and what I've done in order to not have to waste time having 3-4 files to flip between. My question is to ask how do I get started on the... | 1 | 2,058 |
how to open GPS | <p>these are my codes to open GPS </p>
<p><code>
LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
locationManager.setTestProviderEnabled("gps", true);
</code></p>
<p>and the permission in my xml</p>
<p><code>
<uses-permission android:name="android.permission.ACCESS_FI... | 1 | 1,537 |
R: Using the segments function to plot a map of stacked lines | <p>I have written a function that plots a number of lines along an axis, stacking them where they overlap. Below is the code, a sample table, and the image that it produces.</p>
<p>The plot is mostly exactly what I was looking for but for a few things (in order of importance):</p>
<ol>
<li><p>Plotting the segments is... | 1 | 1,686 |
UnknownHostException: failed to resolve 'my-redis-host' after 6 queries after switching from Jedis to Redisson | <p>After switching from Jedis to Redisson I have an issue which looks similar</p>
<ul>
<li><a href="https://github.com/redisson/redisson/issues/1693" rel="nofollow noreferrer">https://github.com/redisson/redisson/issues/1693</a></li>
<li><a href="https://github.com/redisson/redisson/issues/1486" rel="nofollow noreferre... | 1 | 7,032 |
Docker Error response from daemon: Error processing tar file(exit status 1): no space left on device | <p>I need to create a docker's image from a virtual box image. The file is 16GB. When I run the command line <code># tar -c . | docker import - <myImagename></code> appear this error below.</p>
<p>P.S. : The container is empty.</p>
<p>Error:</p>
<blockquote>
<p>Error response from daemon: Error processing tar fil... | 1 | 1,171 |
Laravel 5.6 - Registration Form is not working and does not show any error | <p>In one of my recent project, the <strong>custom registration form</strong> is not working. When I click on the register button, it reloads the registration form, does not print any error and no data is inserted into the database. Here is the look of the registration form: </p>
<p><a href="https://i.stack.imgur.com... | 1 | 4,724 |
C# .net Web Service Web Method Returning < and > in View Source | <p>I have a stored procedure returning a datatable with a stored procedure in a Web Service Web Method. I'm trying to then convert the datatable to XML, however, when I view source of the returned XML (Which looks fine in the browser window) instead of <> it's returning <code>&lt;</code> and <code>&gt;</cod... | 1 | 2,276 |
Metabase Filters example | <p><a href="https://i.stack.imgur.com/3XonB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3XonB.png" alt="enter image description here"></a>I am using metabase integrated with Mysql for reporting purposes. I went through documentation but was unable to find any example explaining how to implement f... | 1 | 1,160 |
How to fix namespace "std" has no member "sqrt" in VSCode? | <p>I am able to compile and execute my code successfully. However, VSCode keeps showing me the error message:</p>
<blockquote>
<p>namespace std has no member "sqrt". </p>
</blockquote>
<p>I adjusted the properties.json. Please advice why is the vscode showing this error. I tried googling but no avail.</p>
<pre><co... | 1 | 1,253 |
jQuery promise().done() is not working | <p>jQuery <code>promise().done()</code> is not working. Below is my code:</p>
<pre><code><div id="testtesttest">gggggg</div>
<script type="text/javascript">
Event.observe(window, 'load', function() {
new Ajax.Request('testurl', {
method: 'get',
parameters: {
... | 1 | 1,494 |
Ansible Convert JSON to dictionary | <p>I have an HTTP endpoint that returns a JSON. Format below:</p>
<pre><code>[
{
"abbreviation_id": 1,
"FullName": "Tiger",
"abbreviation": "tig",
"active": true,
"createdDate": "2021-01-25T06:17:32",
"modifiedD... | 1 | 1,516 |
Is there any alternative for FileSystemWatcher in .NET C#? | <p>I am new to .NET Core and currently working on a use case where I need to process the files in a directory.</p>
<p>The application is using the <code>FileSystemWatcher</code> class to monitor the directory(s).
<br>Below is the code that I am using to monitor the directories.</p>
<pre><code>
private FileSystemWatcher... | 1 | 1,241 |
Mongo error when updating: cannot use the part to traverse the element | <p>I am attempting to update my mongo collection with the following structure</p>
<pre><code>{
"_id" : "T6GqWsi9qSxnyGzgC",
"spec_name" : "test",
"version" : "test",
"message_type" : "test",
"message_trigger" : "test",
"segments" : [
{
"segment_id" : "MSH",
"sequ... | 1 | 2,884 |
Fragment content is hidden behind BottomNavigationView when scrolling | <p>I've researched through this quite heavily and am at a loss on what to do - I have some content in a fragment that is being clipped off by the BottomNavigation bar in the activity and am not sure what to do. I've tried adding <code>app:layout_behavior="@string/appbar_scrolling_view_behavior"</code> to the NestedScr... | 1 | 3,040 |
How do I make the hoverable dropdown close when navigating to a differerent link in Bulma? | <p><a href="https://codesandbox.io/s/admiring-perlman-b014x" rel="nofollow noreferrer">HERE is a SANDBOX with the issue on it</a></p>
<ul>
<li>I have a hoverable dropdown inside a Navbar</li>
<li>When I move to a different page, the dropdown is still open</li>
<li>I have tried this in plain Bulma, the issue still remai... | 1 | 4,412 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.