title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Submit form data using Ajax in Yii1 | <p>I tried to submit a form using ajax. Below is my code:</p>
<p>controller code:</p>
<pre><code>public function actionIndex($complaint, $work)
{
...
$this->render('index',array(
'model' => $model,
'work_order' => $work_order,
'work' ... | 2 | 1,976 |
Bash variable gets butchered when being inserted into cURL command | <p><strong>The first part of the script looks like:</strong></p>
<pre><code>curl -k -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -d 'username=username&password=password "https://get_token" >> token.txt
token=$(<'token.txt'$'\r')
echo "$token"
</code></pre>
<p>... | 2 | 3,600 |
When does concurrency/multithreading help improve performance? | <p>I have been planning to use concurrency in project after learning it indeed has increased through put for many.
Now I have not worked much on multi threading or concurrency so decided to learn and have a simple proof of concept before using it in actual project.<br/>
Below are the two examples I have tried:</p>
<pr... | 2 | 1,236 |
popBackStack() is not working in android NavController | <p>I am using android JetPack navigation to navigate between my fragments. This is how my <code>navigation graph</code> looks like</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?><navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://sc... | 2 | 1,549 |
Could not resolve URL for hyperlinked relationship using view name "itemimages-detail" | <p><br>
I used to have a one picture field and I wanted to change it to multiple pictures field:
I had </p>
<pre><code>picture = models.ImageField(null=True, blank=True, upload_to="items")
</code></pre>
<p>So I created a new model : </p>
<pre><code>class ItemImages(models.Model):
itemImage = models.ForeignKey(It... | 2 | 1,139 |
how to parse the json data and display it in grid view | <p>I am working on a project in that i want to show the JSON data in grid view. I tried volley to get data but the data is not displayed in grid view. Below is my Json api</p>
<pre><code>{
"status": 200,
"msg": "success",
"data": [
{
"category_name": "ELECTRONICS",
"category_description": "ELECTRO... | 2 | 2,897 |
Why can't I delete the XML file I created? | <p>My <a href="https://stackoverflow.com/questions/16354252/why-does-stax-create-xml-slower-than-dom">first question</a> was about the speed of stax writer. Now I have a problem: I can't delete the XML file I created, with <code>delete();</code></p>
<p>It is still being used somehow. I have tried to delete it manually... | 2 | 1,578 |
Read a csv file, clean it, then write out the result as a csv using Apache Beam dataflow | <p>I would like to read a csv file, clean it, then write out the result as a csv using Apache Beam dataflow. The purpose is to make the file loadable into BigQuery. The cleaning rule is to simply escape a double quote with a double quote.
My cleaning rule works. I’m having trouble incorporating it into a pipeline. I am... | 2 | 1,032 |
postgres throws error: null value in column "id" violates not-null constraint even when value is actually not null | <p>I am building a rest api using grpc,but even though i have value populated i get the above error.
The curl Post gets redirected to createAlbum method</p>
<p>i did create a db and table manually in postgres</p>
<p>my db name is album I login using psql album(no password given)</p>
<p>then i created</p>
<pre><code>cre... | 2 | 1,592 |
spring-core 4.3.8 missing EmptyVisitor class? | <p>Consistently get a ClassNotFoundException on the EmptyVisitor class when trying to load the application context for a Spring 4.3.8 application. I see that spring-asm was inlined into spring-core in 3.2, but if I look at the spring-core jar, then there are several XXXVisitor classes, but no EmptyVisitor class.</p>
... | 2 | 2,337 |
how do you use multiple components in an ag-grid module? | <p>I'm trying to use ag-grid and the module for putting together data sets on separate components.</p>
<p>As opposed to the tutorial where it shows to import the import AgGridModule only in the app module like so...</p>
<pre><code> import { AgGridModule } from 'ag-grid-angular';
</code></pre>
<p>And then put the data i... | 2 | 1,400 |
FileNotFoundException: Could not open ServletContext resource [/WEB-INF/spring-servlet.xml] | <p>I am trying to perform a simple CRUD Operations using Spring MVC, Hibernate, Maven and MySQL, but it is showing me the same error everytime. I don't understand where I am going wrong.</p>
<pre><code>org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext ... | 2 | 3,987 |
Suddenly gets android.os.NetworkOnMainThreadException | <p>I have a little app that I made that have worked for months, but suddenly I get a </p>
<pre><code>android.os.NetworkOnMainThreadException
</code></pre>
<p>I havent changed any code, this is the line that crashes</p>
<pre><code>try {
endPoint = InetAddress.getByName(target.getToIp());
port = target.getP... | 2 | 1,321 |
How to run a cypress test multiple times one after another? | <p>I am creating a monopoly(a board game played with dice) using react. I have made the rolling system for the game. Now I want to test that.</p>
<p>There are two buttons in my game</p>
<ul>
<li><strong>Roll Button</strong>:
<ul>
<li>Its initially enabled</li>
<li>When user clicks it the dices are rolled. Piece of ... | 2 | 1,422 |
gRPC-web cannot connect to server (proxy configuration problem) | <p>I am trying to create a grpc-web client to connect to my grpc server. I already have my grpc server written in C++ and it works well with C# client, everything is okay and tested. Right now I am trying to create a js client to connect to my service.
So what I would expect is to return a simple "hello" back to me bu... | 2 | 1,647 |
cygwin ssh via windows cmd removes double quotes | <p>I've got two windows machines running the latest version of cygwin. I have OpenSSH configured on both of them, and password-less authentication has been set up for the remote machine. I can ssh into either machine without problems. <strong>All commands below are executed in cmd.exe</strong>. </p>
<p>System Spec... | 2 | 1,463 |
AttributeError: 'tuple' object has no attribute 'get' | <p>I have a problem in Django, I really don't know what the error is. The error happens in an <code>UpdateView</code> view, when putting several<code>input</code>s in the view, to know precisely where the error is, because I did not find it, the error does not happen in the view as such, I think it is the form :</p>
<... | 2 | 3,121 |
Bootstrap input file field doesn't show right on Safari only | <p>The Bootstrap file input field on Safari doesn't show correctly. </p>
<p>With IE, Chrome and FF:</p>
<blockquote>
<p><img src="https://i.stack.imgur.com/oaSH3.png" alt="Good"></p>
</blockquote>
<p>And with Safari:</p>
<blockquote>
<p><img src="https://i.stack.imgur.com/MuAFG.png" alt="Bad"></p>
</blockquote>... | 2 | 1,991 |
JNLP: tools.jar not in the classpath | <p>it's me again. And today, I'm facing kind of a weird problem. Either I didn't understand something correctly or I'm simply missing the forrest in front of the trees.</p>
<p>Following scenario:</p>
<ul>
<li>I'm using JavaFX, bundled in JDK 1.7</li>
<li>I need both client runtimes: Desktop (jar) and Applet (jnlp insid... | 2 | 3,214 |
Setting up gitlab CI with simple django project | <p>I have a very simple django project with a few unit tests on it and I would like to set up Gitlab to run those tests evry time I make a new commit.
I use sqlite3 for my database (I plan to change later, but for now I want to keep it simple) and I stored some of my settings variable in a .env file.</p>
<p>Here is my ... | 2 | 1,647 |
using amxmlc to compile .as into .swf from the command line | <p>Here's what I'm doing:</p>
<pre><code>amxmlc -load-config obj\config.xml
</code></pre>
<p>Here's what I'm getting:</p>
<blockquote>
<p>Error: Missing builtin type Object</p>
<p>Error: Unable to build SWF C:\Users\m\work\project\bin\ApplicationName.swf</p>
</blockquote>
<hr />
<p>Here are the contents of config.xml:<... | 2 | 1,683 |
How correclty get real file path from URI? | <p>I try get real file path from URI after taking photo from camera. I do this:</p>
<pre><code>private String getRealPathFromURI(Uri contentURI) {
Cursor cursor = getContentResolver().query(contentURI, null, null, null, null);
cursor.moveToFirst();
int idx = cursor.getColumnIndex(MediaStore.Images.ImageC... | 2 | 1,153 |
Submitting Spark application via YARN client | <p>I am using the <code>org.apache.spark.deploy.yarn.Client</code> (Spark 2.1.0) to submit spark a yarn application (SparkPi example). Following are the pertinent lines:</p>
<pre><code> List<String> arguments = Lists.newArrayList("--class", "org.apache.spark.examples.SparkPi","--jar", "path/to/spark examples ... | 2 | 1,496 |
Uncaught TypeError: Cannot read property 'alt' of null :Script stops | <p>when i get error Uncaught TypeError: Cannot read property 'alt' of null , my script works fine in browser but sometimes i see dragged object gets stucked when i inspect via device inscept i see belwo error</p>
<p>my script stops executing how can i prevent that ??..</p>
<p>see <a href="http://liveweave.com/GknZjq"... | 2 | 2,344 |
WCF Client consuming WS-Security webservice | <p>I managed to consume a java based web service (third party) with WS-Security 1.1 protocol. The web service needs only to be signed over a x509 certificate, not encrypted.
But I'm getting this error:</p>
<blockquote>
<p>The signature confirmation elements cannot occur after the primary signature.</p>
</blockquote>... | 2 | 3,029 |
Elasticsearch error with JanusGraph | <p>It looks like I am hitting a problem with elasticsearch even though I do not have this configured anywhere :( </p>
<p>Application code (Java):</p>
<pre class="lang-java prettyprint-override"><code>public static void main(String args[]) {
JanusGraph g = JanusGraphFactory.open("/path/to/file/janusgraph-solr.prop... | 2 | 1,393 |
Solr scoring based on subdocument (parent blockjoin) | <p>I have the following structure of ... lets say products in a store. The Products have a rating. Then users can, additionally, rate the product (on their own). Lets say 300k Products plus 50k user-ratings (to each product)</p>
<p>Question 1: Are Subdocuments the right choice? I am adding everything with SolrJ, I did... | 2 | 2,469 |
Android 5.0 translucent status bar | <p>Going from <a href="https://developer.android.com/training/material/theme.html#StatusBar" rel="nofollow">https://developer.android.com/training/material/theme.html#StatusBar</a>, I have had tons of different trials and errors on how to get status bar transparent, but not much luck.</p>
<p>I do not want navigation d... | 2 | 1,270 |
How to set Access column value to 0 (default) on a new created DB column? C# | <p>So I have read multiple posts about my question but I cant find the right solution for it. </p>
<p>I've got a form in which a user can add a custom column to a database. This column is always of type currency with the currency type of Euro. </p>
<p>I thought I did the trick by creating this query: </p>
<pre><code... | 2 | 1,159 |
Android R8 ArrayIndexOutOfBoundsException | <p>I have recently attempted to move over from using ProGuard to using R8 in a project. However in doing so I am receiving the following error when trying to build. Using ProGuard the project builds and runs successfully.</p>
<pre><code>org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app-proje... | 2 | 6,172 |
AVPlayer shows black screen when playing multiple Videos in Swift3 iOS | <p>I am working on <code>Video</code> player based <code>Application</code>, where I have to play multiple
<code>Videos</code> using <code>AVPlayer</code>. Each <code>video</code> has to play with some <code>CIFilter</code> effect so I am using <code>VideoComposition</code> for that.</p>
<p>My problem is when there is... | 2 | 1,129 |
How to make dynamic pivot with date and another column in oracle? | <p>I have a table like this:</p>
<pre><code> NAME VALUE IDENTIFIER MYDATE
NAME1 123 ATR 01/10/2018
NAME1 333 QTDE 01/10/2018
NAME2 212 ATR 01/08/2018
NAME2 123 QTDE 01... | 2 | 1,181 |
How to update the RecyclerView Items Using AsyncTask | <p>I'm trying to update the <code>recyclerview</code> Items from the data in <code>SQLite</code> database which in turn gets updated with data fetched from API from time to time. </p>
<p>I have a <code>TabLayout</code> which contain three <code>fragments</code>. </p>
<p>Now in one fragment, I show the games played by... | 2 | 8,094 |
how do I check if a circle shape is touched to apply actions to the shape e.g. change color of the shape or to update the score? | <p>So I am new to android games development and I have 4 CircleMapObjects which are yellow coloured I am using an InputProcessor to manage touch/click events. Now in the touchDown() method what I want is when a Circle is touched/clicked in the game (anywhere inside the circle ) then it should change to say the colour g... | 2 | 1,491 |
Dynamically adding and removing fields on django template | <p>A newbie, I am stuck with a problem and I feel it is more to do with me reading too much about it before trying it. And now since I am trying it is confusing me. Hoping you would be able to take out some time to assist.</p>
<p>Here is what I am trying to do.</p>
<p>I would like to dynamically add model form fields... | 2 | 1,158 |
R: ggplot with durations | <p>Question: Your advice for handling <strong>durations</strong> with <code>ggplot2</code> (author: Hadley Wickham). Specifically: reproduce the plots below with custom breaks and suitable labels. Preference for minimal use of custom functions and/or refactoring of data. Suggestions with packages I have not cited are w... | 2 | 2,086 |
Convertion of Base64 String to Bitmap returns null | <p>I use following function to convert my base64 String to a bitmap:</p>
<pre><code>public void displayUserImage() {
byte[] decodedString = Base64.decode(encodedImage, Base64.DEFAULT);
Bitmap b = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);
imageViewUser.setImageBitmap(b);
}
</co... | 2 | 7,819 |
Adding Custom Class as TreeViewItem to TreeView WPF | <p>I have scenario where my TreeView look like below:</p>
<ul>
<li>MainParent</li>
<li>.>-Parent</li>
<li>...>--Child1</li>
<li>...>--Child2</li>
<li>...>--Child3</li>
<li>...>--Child4</li>
<li>...>--Child5</li>
<li>......> Child1_Of_Child5</li>
<li>...........>Child1(Child1_Of_Child5)</li>
<li>...........>Child2(Chil... | 2 | 2,416 |
primefaces ajax update element | <p>i have a behaviour here i don't understand. I am using Spring 3.1, Primefaces 3.3.1 and JSF 2.</p>
<p>I am using a datatable and want to add a row via a dialog within a form.
This is my table, including the button to call the dialog:</p>
<pre><code><h:form id="form">
<!-- open the dialog on c... | 2 | 2,404 |
The program has exited with code -1073741701 (0xc000007b) for UWP apps | <p>I have been developing a UWP app for awhile now. No problems at all. Have it connected to a git repo and everything. So this solution and project was working perfectly fine on 3 days ago. I finished working for the day, made a commit to the repo and turned off my computer. When I came back today, tried to launch my ... | 2 | 10,154 |
Spark unable to Explode column | <p>For the given JSON Response:</p>
<pre><code>{
"id": "1575972348068_1649088229",
"results": [
{
"rows_count": 53,
"runtime_seconds": 0.004000000189989805,
"columns": [
"ROLE_ID",
"ROLE_NAME"
],
"columns_type":... | 2 | 2,301 |
Audio not clear while streaming between a java class and android activity | <p>I have an android activity, which connects to a java class and sends data packets to it in form of sockets. The class receives the sound packets and throws them to PC speakers. The code is working excellently, but there is a constant jitter/ interruption while the sound is played in PC speakers.</p>
<p><strong>The ... | 2 | 3,987 |
Sending an object throug a webservice and retrieve data in asp.net or silverlight | <p>I am using silverlight to develop a windows gadget,I need to call a asp.net web service and which is return an object with some data.
I want to receive that object and show data.</p>
<p>My codes are below</p>
<p>Web services code.</p>
<pre><code>[WebMethod]
public userdata LogIn(string username,string use... | 2 | 1,204 |
Is it possible in android to transfer file over http using java socket program? | <p>I'm creating an application to send a file from an android device to another device using http socket program. Here's the code,
Server Side</p>
<pre><code>try {
ServerSocket servsock = new ServerSocket(4042);
File myFile = new File(pathToFile);
while (true) {
Sock... | 2 | 1,054 |
C++ - calling derived function from abstract base pointer | <p>I have been trying to create a TCP Server model based on inheritance, with varying success. These servers are managed by a singleton whose task it is to shut these servers down and other simple maintenance functions:</p>
<pre><code>class TCPServer {
public:
TCPServer();
~TCPServer();
void Bind(TCPDaemo... | 2 | 1,998 |
"org.json.JSONException: Forbidden numeric value : NaN" | <p>I am having some issues when trying to create a JSONObject from a string.</p>
<pre><code>try {
JSONObject jsonObjMain = new JSONObject(myjsonstring);
final JSONArray jsonArray = jsonObjMain.getJSONArray("Waypoints");
AsyncTask.execute(() -> {
... | 2 | 2,032 |
Using matplotlib to solve Point in Polygone | <p>I am looking for an algorithm to check if a point is within a polygon or not.</p>
<p>I am currently using mplPath and contains_point() but it doesn't seem to work in some cases.</p>
<p>EDIT 16 Sept 2016:</p>
<p>Okay so I imporved my code by simply checking if the point where also on the edges. I still have some i... | 2 | 1,886 |
Using the URLconf defined in tango_with_django_project.urls, Django tried these URL patterns, in this order: | <p>I've been going through the Tango With Django 1.7 guide and I've come up with the following issue that I'm having troubles fixing:</p>
<pre><code>Using the URLconf defined in tango_with_django_project.urls, Django
tried these URL patterns, in this order:
1. ^$ [name='index']
2. ^about/$ [name='about']
3. ^category... | 2 | 1,119 |
Reverse ajax using DeferredResult of Spring 3.2.0.RELEASE. Not working in IE | <p>I am trying to create a demo of Group Chat using reverse ajax in Spring. I am using Spring 3.2.0.RELEASE version.</p>
<p>I am using DeferredResult to perform reverse ajax in my controller. Following is the snippet of my Controller class.</p>
<pre><code>@Autowired
private AsyncRepository asyncRepository;
Map<In... | 2 | 3,452 |
Cartopy lat/lon labels with LCC projection | <p>I need to add lat/lon labels to my LCC projected figure. Its amazing how complicated this has turned out to be. I used the code <a href="https://stackoverflow.com/questions/27962953/cartopy-axis-label-workaround">here</a> and it worked really well for a single panel figure. My figures all need to be 3-4 panels unfor... | 2 | 2,307 |
Mule 3 async-reply | <p>I have a flow where I receive request via webservice. I forward that request to a JMS queue using component binding. However, I would like to get async-reply from that queue and use it as response to the webservice. Do I need to use reply-to and async-reply-router in the flow? Or is there any other way to do that in... | 2 | 2,069 |
How to check if the url contains JSON file | <p>I'm working with <strong>League of Legends API</strong>, and I'm trying to get Ranked Datas from <strong>JSON</strong> file. But, if the player is not <strong>Level 30</strong>, he doesn't have his file.
So here</p>
<pre><code>def getRankedData(region, ID, APIkey):
URL = "https://" + region + ".api.pvp.net/api/... | 2 | 1,220 |
How to Refactor LINQ Query to Use Delegate or Expression<Func<T, bool>> | <p>This method works great and generates only 1 query (utilizing .Includes() to eager load).
However, I would like to refactor the AbleToDelete code to be more reusable.
(Using EF4)</p>
<pre><code> public override IEnumerable<AffectProjection> SelectAll(SearchAffects page)
{
IQueryable... | 2 | 1,380 |
can someone explain this Image loader function involving callback | <h2>The Code:</h2>
<pre><code>function loadImages(sources, callback){
var images = {};
var loadedImages = 0;
var numImages = 0;
for (var src in sources) {
numImages++;
}
for (var src in sources) {
images[src] = new Image();
images[src].onload = function(){
if ... | 2 | 1,270 |
Java Time Zone Database vs IANA data | <p>There is a Daylight Savings Time discrepancy between the IANA database and the Java tzdb.dat 2019c
database in the Africa/Cassablanca time zone that has me very confused. There may be others but I found this one. From what I can tell the IANA time zone database clearly shows that DST is supported in Morocco (Afri... | 2 | 1,365 |
Is there a zero-copy way to find the intersection of an arbitrary number of sets? | <p>Here is a simple example demonstrating what I'm trying to do:</p>
<pre><code>use std::collections::HashSet;
fn main() {
let mut sets: Vec<HashSet<char>> = vec![];
let mut set = HashSet::new();
set.insert('a');
set.insert('b');
set.insert('c');
set.insert('d');
sets.push(set)... | 2 | 1,225 |
Jupyter Notebook 404s when using Anaconda Navigator | <p>Sorry but a bit of a beginner question here. I downloaded Anaconda library that comes with Jupyter Notebook along with a few other programs to hopefully learn Python. Every time I try to open Jupyter Notebook though, the webpage it directs me here <code>localhost:8888/tree</code> and gives me the following error:</p... | 2 | 1,398 |
Node js, NVD3.js cannot read property baseval of undefined | <p>For the following data,</p>
<pre><code>historicalBarChart = [
{
key: "Cumulative Return",
values: [
{
"label" : "A" ,
"value" : 29.765957771107
} ,
{
"label" : "B" ,
"value" : 0
} ,
{
"label" : "C" ,
"value" : 32.8078046... | 2 | 1,719 |
Creating a checkable context menu from a list of enum values | <p>I see lots of people asking questions similar to mine, but so far I haven't been able to put the pieces together to solve my problem.</p>
<p>I have a certain enum type (let's call it <code>MyCustomEnum</code>) which I'd like to use to create the list of choices in a <code>ContextMenu</code>. I'd like the menu item... | 2 | 1,611 |
Swing transparent background not being repainted | <p>I have a problem using transparent backgrounds in Swing.
There are a lot of artefacts produced as swing is not repainting changed regions.</p>
<p><img src="https://i.stack.imgur.com/35wEg.png" alt="buggy"></p>
<p>As far as I can tell there are 2 out-of-the-box ways to use transparent backgrounds:</p>
<ol>
<li>an ... | 2 | 1,519 |
Java 8-puzzle Depth first search issue with children nodes | <p>I am creating a depth first search algorithm which will ultimately be able to solve a simple 8 puzzle. I am able to read in a file and a goal state and set these variables accordingly.</p>
<p>The main issue i am receiving is that when i get the children of the current node being evaluated, i am getting 2 "empty" va... | 2 | 3,755 |
Caused by: java.lang.NoSuchMethodError: No static method newFactory() | <p>I'm building an Android application and facing a no static method exception when trying to read the <strong>XLSX files</strong>. </p>
<p>Tried all possibilities like updating dependencies in app/build.gradle, but no avail. </p>
<p>Kindly help me to resolve this issue. </p>
<pre><code>Exception causing line in cod... | 2 | 1,973 |
google weather api problems | <p>I am having problems with google weather api I have been using this script <a href="http://komunitasweb.com/2009/09/showing-the-weather-with-php-and-google-weather-api/" rel="nofollow">http://komunitasweb.com/2009/09/showing-the-weather-with-php-and-google-weather-api/</a> for sometime now but earlier I got this err... | 2 | 1,499 |
Session in Laravel does not work inside the Facebook Application Iframe | <p>I have a facebook app that runs inside an iframe. After the user allow permissions from the app I'm expecting facebook to send me $_REQUEST variables that I use to retrieve user data and it is working well. The problem is after I put the users data in Laravel Session using <code>Session::put()</code> and then... | 2 | 1,343 |
unexpected top level exception-Android studio Inspite of no duplicates | <p>i know this question has been answered a many times,i tried all ways bt not working for me at all. I refered a lib in android studio,build the project and am getting the following error:</p>
<pre><code>Execution failed for task ':app:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to ru... | 2 | 1,280 |
Cannot perform POST request in CodeIgniter | <p>I have a form in a page that uploads user data onto my online server using the CodeIgniter framework. I can access the form page normally using the HTTPS protocol, but when I try to submit the form using POST, I am given a <code>403 Forbidden: You don't have permission to access <url> on this server.</code> er... | 2 | 2,809 |
Jasmine inject function fails when using fat arrow functions | <p>I'm just starting to unit test my app, and have successfully gotten one test suite to run, yeah! I moved on to start testing a second controller, and as soon as the test runner (karma) hits an <code>inject</code> block, the test fails. Comment it out, and the tests pass again. Can't for the life of me figure out ... | 2 | 1,307 |
migrated MVC 3 to MVC 4, ASP.NET forms login not working for old accounts | <p>I'm in the process of migrating my MVC 3 application to MVC 4, and I am noticing that all the existing users' passwords are now not valid. </p>
<p>I'm using the standard ASP.NET membership schema with all the normal tables (like table <code>aspnet_Membership</code>) </p>
<p>Is there anything I can do to get all th... | 2 | 2,476 |
incorrect syntax near the keyword 'select' | <p>I m getting an error when i try to use this code in visual studio<br>
can some one please help me out </p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
n... | 2 | 1,543 |
Sending large JSON via jQuery ajax errors with 404, TypeMismatchError, or "Not enough storage is available to complete this operation" | <p>I'm working on an ASP.NET web application for uploading files and I'm having an issue when the upload size gets large.</p>
<p>I'm sending a JSON string to a C# WebMethod. The JSON contains files (base64) and metadata about the file (input by the user).</p>
<p>Here's the structure of my JSON:</p>
<pre><code>{
... | 2 | 1,299 |
Javascript not working with onchange event of multi select dropdownlist in asp.net MVC | <p>I have below Razor Code in ASP.NET MVC view</p>
<pre><code><div id="rolesValues" class="case-assignment-hide">
@Html.DropDownList("ddlRoleValues", new SelectList(@Model.Roles, "Key", "Value"), new {@id= "ddlRoleValues", @class = "form-control case-assignment-rule-use-values", multiple = "multip... | 2 | 1,198 |
Timezone problem with spark.sql time functions | <p>i'm writing some code on a jupyter notebook using spark 2.4.7 and pyspark running in Standalone Mode.<br />
I need to convert some timestamps to unix time to do some operations however i noticed a strange behavior,following the code i'm running:</p>
<pre><code>import pyspark
from pyspark.sql import SparkSession
impo... | 2 | 2,106 |
How to make left indent in text field after overflow in Jaspersoft studio | <p>I have defined an style in jaspersoft studio 6.4.3 which should move the lines, except the first line, 10 pix to the right.
The reason is that after text overflow in a text field, the second line appears beneath the first line with the same indent, but I need to change it for my table of content.
The following appro... | 2 | 1,307 |
Interleaved parallel file read slower than sequential read? | <p>I have implemented a small IO class, which can read from multiple and same files on different disks (e.g two hard disks containing the same file). In sequential case, both disks read 60MB/s in average over the file, but when I do an interleaved (e.g. 4k disk 1, 4k disk 2 then combine), the effective read speed is re... | 2 | 2,685 |
wpf mvvm nested user controls datacontext | <p>i have a problem with the <code>datacontext</code> of nested <code>user-controls</code>. The Problem is that the Model in the ViewModel is binded on a <code>DependencyProperty</code> of the first <code>user-control</code>. In the first <code>user-control</code> is a second <code>user-control</code>. The second <code... | 2 | 3,348 |
AES Encryption Decryption in android using base64 | <p>I am trying to encrypt decrypt data using AES algorithm in android using Base64.
I am able to encrypt data but having problem in decrypting data(it is showing no result when i click on decrypt button).
Earlier also i have used AES algorithm in PHP and it is working very fine!
I am not able to get what is going wron... | 2 | 1,417 |
UITextField inside UICollectionViewCell not reachable | <p>Thank you for reading,</p>
<p>I have two <code>UITextFields</code> (along with some labels) inside a <code>UICollectionViewCell</code>. I can select both text fields in the simulator, for <strong>iPhone 6, 6+, 5, 5s, 4s, all iOS8</strong>.</p>
<p>When I hook up my iPhone, an iPhone 5c iOS7 (not-sim), I can only se... | 2 | 1,708 |
Disabling controls when showing loading bar in AngularJS | <p>I'm developping a webapp using AngularJS. I would like to show a load bar when the load of the data from the server takes very long. </p>
<p>To simulate a huge load of data I use $timeout, and I show the loadbar when the operation starts and I hide it when the operation ends. </p>
<p>The problem I'm facing is that... | 2 | 1,162 |
I am looking for a way to create asynchronous & stateless ssh connection using JSch? | <p>Hi I am trying to create a putty like interface in my web application.
1. It will have a text box to enter a command (Temporarily hard coding the server user credentials) and If the user hits return key, it will send ajax request to the server.
2. Server will creates jsch & session and channle object and exec... | 2 | 1,716 |
how to connect hive in secure mode(kerberos+ssl) using JDBC? | <p>I need to connect hive(kerberos + SSL) using jdbc, i tried this code but getting error like : </p>
<p>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/VersionInfo
at org.apache.hadoop.hive.shims.ShimLoader.getMajorVersion(ShimLoader.java:155)
at org.apache.hadoop.hi... | 2 | 1,367 |
Create multiple plots with unique RMarkdown headers | <p>Using <code>spineplot</code> in R, I am trying to create a series of plots that compare some potential covariates against age categories so we can do some preliminary data exploration. I have this code written up in R Markdown and I am using RStudio to knit the file into an HTML output. However, I am having difficul... | 2 | 1,040 |
JavaFx 2.x : How to remove and add plotted data? | <p>In my code below I would like to add two buttons and by clicking on a button("Remove") it will remove one by one plotted data,and plot it back by clicking on the button("Add") such as the examples:</p>
<p>Full data plotted by running the class</p>
<p><img src="https://i.stack.imgur.com/peKyg.jpg" alt="enter image ... | 2 | 2,053 |
TapGestureRecognizer not working inside ListView | <p>I am working on a Xamarin.Forms page displaying a list of items using MVVM pattern.</p>
<p>I can not get the Command property of the TapGestureRecognizer object of the list items working. It does not even fire, no matter what I try.
This command property should reference a single ICommand property on the VM for all... | 2 | 1,710 |
PYODBC + PYINSTALLER: EXE listing different drivers as compiler (PyCharm), 32 bit Access and 64 bit Python | <p>I have 32bit Access and 64bit Python (on x64 Windows 10).</p>
<p>I successfully run the following code to obtain table (or a query) from my .accdb database and get the desired outcome in my Pycharm.</p>
<pre><code>import pyodbc
import pandas
import os
import sys
sources = pyodbc.dataSources()
dsns = list(sources.... | 2 | 1,218 |
Migrate Error: Django/Postrgres: DataError Numeric Precision 10000 must be between 1 and 1000 | <p>When trying to migrate changes for the first time into my Postgresql DB, I encounter this error. </p>
<p>I can successfully migrate and start my app when using the standard SQLite db that DJango comes with. However, when trying to connect to my Postgresql I've been having trouble. I have my Postgresql open with pgA... | 2 | 1,182 |
can't use 'get_video_info' of Youtube for high quality video | <p>I finally found a way to use a Youtube video in the HTML5 video tag thanks to this <a href="https://jsfiddle.net/350D/uq1vvavf/" rel="nofollow noreferrer">https://jsfiddle.net/350D/uq1vvavf/</a></p>
<pre><code>var vid = "9PDcJeymhWM",
streams,
video_focused = true,
video_tag = $("#video"),
video_obj... | 2 | 1,375 |
show a div based on a conditional ajax result in php form | <p>I have a <code>PHP</code> form`looks like this</p>
<pre><code><form>
<div id="inid">
National ID: <input type="text" id="individual_nid" oninput="getIndividualName(this.value)" />
</div>
<hr />
name: <div id="individual_name_fetch"></div>
<hr ... | 2 | 1,299 |
Trying to hide/show divs on radio button clicks | <p>I'm trying to hide and show different divs depending on which radio button people click on. </p>
<ul>
<li><p>Jquery is loading fine, I've tried putting an alert on page load. </p></li>
<li><p>Very similar code, selector methods etc have worked on a page in the same directory with the same includes on the same serv... | 2 | 1,345 |
no such file or directory Kubernetes | <p>In one of my containers I am getting the error</p>
<pre><code>Warning Failed 7m52s (x4 over 8m33s) kubelet Error: failed to start container "xxx-xxx": Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/src/applicat... | 2 | 1,423 |
My Stateless Component not rendering (Reactjs and Redux) | <p>For some reason or another, my allEmployees stateless component isn't being rendered and I can't figure out why. I'm getting the following warning:</p>
<p>Unknown prop <code>employeesData</code> on <code><allEmployees></code> tag. Remove this prop from the element.</p>
<p><strong>Container</strong></p>
<pre... | 2 | 1,041 |
How to calculate the shift parameters of glTranslatef function in opengl | <p>I am a newbie to opengl and confused about how to caculate the parameters of glTranslatef.
Here is my display code </p>
<pre><code>void display()
{
glPushMatrix();
glClearColor(1.0f, 1.0f, 1.0f, 1.0f); // background
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
glScalef(1.f,1.f,1.f);
... | 2 | 1,324 |
Call to undefined method, ArrayCollection | <p>I'm new of Symfony, I made a web-application with it, in witch a User is in relation ManyToMany with an Entity "Mission". It doesn't work, because I get the error</p>
<pre><code> FatalErrorException: Error: Call to undefined method
Acme\ManagementBundle\Entity\UserGroundStation::getMission()
</code></pre>
<p>Te ... | 2 | 1,194 |
How to update MUI data grid table | <p>I am using Mui Data grid and performing an action on row, say delete.
I could able to delete data in back end, but after delete how could I update state to latest data?</p>
<pre><code>
const handleConfirmDelete = (expenseId) => {
setOpenConfirmDelete(true);
setfetchExpenseId(expenseId)
};
const han... | 2 | 1,246 |
PHP - How to remove double quotes from data that coming from database? | <p>I have store data in database text field like this :</p>
<pre><code><p><strong>Relish Scrumptious Dessert Delights with Baskin Robbins Gift
Voucher</strong></p><span>good</span><div>any rendom text</div> and so on..
</code></pre>
<p>So now when I print this data in ... | 2 | 1,434 |
Using lookup tables in ARM assembly | <p>I'm trying to make a lookup table for AES in ARM assembly. In C I call my function: <code>AES_SubBytes(out, in);</code> where <code>out</code> and <code>in</code> are unsigned char arrays of 16 long. I have filled <code>in</code> with characters, and once it goes through the function, I need it to go through every e... | 2 | 1,558 |
Uploading image with Uppy trough Shrine return 405 Method Not Allowed | <p>I am trying to use Ruby On Rails as my backend, and gems like ReactOnRails and Shrine, in addition, I use package Uppy to upload the image to AWS S3</p>
<p>So far everything working fine until I trying to upload the image through Uppy which should transfer the AWS credentials through the backend, so I don't expose ... | 2 | 1,489 |
How to POST (and not PUT) a first package to a newly installed Verdaccio / Docker instance? | <p>I have installed Verdaccio as a Docker container with a <code>docker-compose.yml</code> file:</p>
<pre><code>├── docker-compose.yml
├── INSTALLATION.md
├── README.md
└── volumes
├── conf
│ ├── config.yaml
│ └── htpasswd
├── plugins
└── storage
</code></pre>
<p>which is:</p>
<pre><code>vers... | 2 | 2,462 |
direct.label in ggplot (scatterplot) not working | <p>So I want the direct-label function to position the labels of the datapoints in a way that they do not overlap. However, I'm getting an error that tells me that I need the aes function specifiying the labels. This is odd, as I already have included it.</p>
<p>This is the code I'm using:</p>
<pre><code>p<- ggplo... | 2 | 2,740 |
simple attendance system with radio button | <p>I am making a simple attendance class system </p>
<p>I have this php code with radio buttons here.. now i put it in a table</p>
<p>I can only choose one radio button on the entire table instead of one radio button per registered account</p>
<pre><code><?php
session_start();
if(!isset($_SESSION["in"]))
{
he... | 2 | 1,195 |
Android speech recognition without a time-out? | <p>I am using android speech recognition and written some code to identify the spoken words. Please have a look at the below code.</p>
<pre><code>import java.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import android.speech.RecognitionListener;
import android.speech.Re... | 2 | 3,619 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.