title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
SharePoint 2019 CSOM not saving FieldUserValue
<p>I'm facing a strange Issue when I'm inserting or updating an item in SharePoint2019 list which contains a user column the save completes with no errors but the user column always have empty value,</p> <p>below is my code</p> <pre><code> context.Load(context.Web, web =&gt; web.Lists); await con...
3
1,259
Why is my css file not being read in yii mailer?
<p>I have an email controller with the following function inside</p> <pre><code>public function actionCreate() { $invoice_number_1 = Yii::$app-&gt;request-&gt;post('invoice_number_1'); $part_number_1 = Yii::$app-&gt;request-&gt;post('part_number_1'); $quantity_1 = Yii::$app-&gt;request-&gt;post('quantity_1'); $reason_c...
3
2,214
Saving data using savedInstanceState
<p><strong>MainActivity.java</strong> </p> <pre><code> package com.jamesvuong.footballscorekeeper; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.TextView; public class MainActivity extends AppCompatActivity { final int TOUCHDOWN...
3
5,922
Use a service and binder from a library project
<p>I'm currently working on a radio <strong>streaming</strong> application. To do the work i decided to create a <strong>Library project</strong> to do some <strong>code refactoring</strong></p> <p>So in my Library project i have : </p> <ul> <li>StreamingService.java</li> <li>StreamingPlayerMP.java</li> <li>Streaming...
3
2,147
Having a hard time tracking down a process that is crashing my app pool
<p>So I have an app that keeps crashing out and it's not leaving any application logs. When I finally went and looked in the event viewer for that server (a server 2003 box), I found this error (The even source was ASP.NET 4.0.30319.0)</p> <blockquote> <p>An unhandled exception occurred and the process was terminate...
3
1,445
Pypiserver WRONG_VERSION_NUMBER
<p>On windows, I have a simple conda env named <code>pypitester</code>.</p> <p>On a linux I am hosting a private <code>pypiserver</code> which loads when I call it on <code>http://{IP}:8888/simple/</code>: <a href="https://i.stack.imgur.com/exldg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/exldg....
3
1,068
Please help me trace how charsets are handled every step of the way
<p>We all know how <a href="http://www.joelonsoftware.com/articles/Unicode.html" rel="nofollow noreferrer">easy character sets are on the web</a>, yet every time you think you got it right, a foreign charset bites you in the butt. So I'd like to trace the steps of what happens in a fictional scenario I will describe be...
3
1,379
How to Enable I2C of Raspberry Pi3 module (Using with Android Things as an OS)
<p>I am trying to develop a sample <strong>Android-Things</strong> app using Raspberry Pi module 3 which takes temperature reading from <strong>BME280</strong> sensor and display it on app. I have downloaded the sample project but facing an issue while opening I2cDevice with an address.</p> <p><strong>Below are the co...
3
3,343
Set attribute of class with name of class being created
<p>I am trying to allow multiple models to have a connection to a <code>Review</code> model using Generic Relationships provided by <code>django.contrib.contenttypes</code>.</p> <p>Using <code>django.contrib.contenttypes.fields.GenericRelation</code> in Django 1.7 you can set a <code>related_query_name</code> on the <...
3
1,971
How do I propagate updates to all items within a Colectica DDI item graph?
<p>I recently needed to update over a hundred Concept items using a script utilizing <a href="http://colectica.com" rel="nofollow">Colectica</a> SDK for <a href="http://www.ddialliance.org" rel="nofollow">DDI</a>, and I need to propagate those updates throughout all locations within a set with a known root Project item...
3
1,527
Objective-C: Trying to implement my own dragging in a UIScrollView, running into tons of issues
<p>I'm trying to override the default behavior in a UITableView (which is in fact a UIScrollView subclass). Basically, my table takes up a third of the screen, and I'd like to be able to drag items from the table to the rest of the screen — both by holding and then dragging, and also by dragging perpendicular to the ta...
3
1,241
Possible regression in Linux jdk1.6.0_25 x64 (64-bit)
<h2>Update:</h2> <p>I'm trying to have another shot at this because I'd really like to fix this problem. If anyone would like to aid me in solving the problem I'd greatly appreciate it.</p> <ol> <li><p>Looking at the original backtrace I posted above, you can see that the destructor for this class is being called wh...
3
6,481
php Notice: Undefined offset: 0 when it shouldn't actually occur
<p>However it does print it for me. So it does return correctly but places the error at the <code>preg_match('%"&gt;(.+?)&lt;/p&gt;%s', $resultsDescription[$i][0], $resultsDescriptionFinal[$i]);</code>. What might be wrong here?</p> <pre><code>$resultsCount = sizeof($results[0]); if($resultsCount &gt; 5) { ...
3
1,195
How to add a collection_select and text_area via JavaScript-function in Rails?
<p>I want to create a table where rows and buttons can be added via a button (one for rows, one for columns). The columns consist of one <code>collection_select</code> (to select a device) as the title and <code>text_field</code> in each row (for test results for this device in each row). The columns consist of several...
3
1,441
How can I read data from this XML in c#?
<pre><code> &lt;?xml version="1.0"?&gt; &lt;!-- ** DO NOT EDIT THIS FILE. ** If you make changes to this file while any VirtualBox related application ** is running, your changes will be overwritten later, without taking effect. ** Use VBoxManage or the VirtualBox Manager GUI to make changes. --&gt; &lt;VirtualBox x...
3
1,267
Dropdown menu keeps skipping away
<p>I am creating some websites and I am always using the same dropdown method for them. However i am stuck with my dropdown menu. When I hover on it it always replaces my main navigation and well lets say that not so customer friendly.</p> <p>The problem probably lies within the position values I give in my css code b...
3
1,556
Linq to SQL translation Failing as well as Local Evaluation
<p>Okay, so I have the following linq to sql query:</p> <pre><code>var baseQuery = _context.AuditTransaction .Include(at =&gt; at.AuditEntityEntries) .ThenInclude(aee =&gt; aee.AuditPropertyEntries) .Where(at =&gt; auditTransactionFilter.Id == 0 || at.Id == auditTransactionFilter.Id) .Where(at =&gt; ...
3
1,647
postgresql mapping many to many returns error
<p>Hi I'm looking for some helpful tips for my current mapping. It returns the following error when I tried to add the migration. I'm not too sure what I did wrong, or this is not how I'm supposed to map them.</p> <blockquote> <p>System.Reflection.TargetInvocationException: Exception has been thrown by the target ...
3
1,186
Simplify multiple output calculations
<p>I have the following code that provides me with the calculation that I need, but I want it to work with multiple outputs.</p> <p>For example, Part A and Part B would have the same jQuery, except Part B may have a different multiplier or <code>calc3</code>, etc. </p> <p>I will have up to 50 parts and am trying to p...
3
1,557
How to loop X times using XSLT 2,0?
<p>I have following requirement where I need your help to transform the XML using XSLT 2.0. </p> <ol> <li><code>&lt;Workers&gt;</code> node for a single worker need to be inserted as many time as total number of <code>&lt;Days&gt;</code> for a worker e.g. if total number of days for a worker is 5, <code>&lt;Workers&gt...
3
3,536
Invalid attempt to access a field before calling Read()"
<p>I have this problem:</p> <blockquote> <p>"Invalid attempt to access a field before calling Read()" </p> </blockquote> <p>The textbox1 to textbox3 is already running but it stuck in textbox4. I searched for an answer for this error but still can't fix. My code down below. Could anyone help?</p> <pre><code>Privat...
3
1,981
Doesn't show markers get from server
<p>Sorry for asking similar questions but not to change the original question is advised. So I make another question on slightly different problem. This time I cannot print markers on ComponentDidMount though everyting seems normal. No errors or warnings but markers cannot printed on the map.</p> <pre><code>import Rea...
3
1,268
Reading CSV, writing information to new CSV and sorting by column
<p>Working on something that takes values from a csv and writes them in a sentence to a new csv:</p> <pre><code>import csv with open('Links.csv', 'rb') as input_file, \ open('Link Statements.csv', 'w') as output_file: reader = csv.reader(input_file, delimiter=',', quoting=csv.QUOTE_NONE) for row in reader: link...
3
1,260
Chart.JS Starting at 00:00am and ending at 23:59pm
<p>I need a bit of advice here.</p> <p>I have the following chart:</p> <p><a href="https://i.stack.imgur.com/EjjSW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EjjSW.png" alt="enter image description here" /></a></p> <p>I would like to start the chart XAxis at 00:00 and end at 23.59, but I still h...
3
2,315
How to return messages from child threads to main thread(method) in Java?
<p>I have a HashMap of people who want to communicate with each other as follows:</p> <pre><code>{zidane=[rooney, rooney, rooney, scholes, rooney], rooney=[scholes, messi, scholes], scholes=[ronaldo], ronaldo=[rooney, messi, scholes], messi=[zidane]} </code></pre> <p>Here, each person in the key will have their own t...
3
1,185
Using Power Query to extract data from nested arrays in JSON
<p>I'm relatively new to Power Query, but I'm pulling in this basic structure of JSON from a web api</p> <pre><code>{ &quot;report&quot;: &quot;Cost History&quot;, &quot;dimensions&quot;: [ { &quot;time&quot;: [ { &quot;name&quot;: &quot;2019-11&quot;, ...
3
1,395
Percent Increase, groupby, over time (using Python)
<p>I have a dataset, df, where I am trying to calculate the percent increase of a particular group over a time period. Here is the dataset:</p> <pre><code> date size type 1/1/2020 1 a 1/1/2020 1 a 1/1/2020 3 a 1/1/2020 1 b 1/1/2020 2 b...
3
1,480
problem with code in Pycharm - CERTIFICATE_VERIFY_FAILED
<p>I work on windows 7</p> <p>this is my code</p> <pre><code>def Rup(x, y, w): odleglosc = np.dot(x,w)-y cost = np.sum(odleglosc**2) / (2*np.shape(x)[0]) return odleglosc, cost def REG(data_1, data_2, data_3, Tu, cou): i = 0 while i &lt; cou: dif, cost = Rup(data_1, data_2, data_3) ...
3
2,321
Java: How to send an email from a corporate domain
<p>I've been trying to send e-mails from a custom domain trying to log into the outlook server, since we use it as a platform to send e-mails from that direction, but it gave me an <code>AuthenticationFailedException</code>; more specifically:</p> <pre><code>javax.mail.AuthenticationFailedException: 535 5.7.3 Authentic...
3
1,719
Chrome Extension - Sending event message back to the original tab
<p>I'm making a Chrome-Extension in which <code>content.js</code> sends an event to the <code>bacground.js</code> which requests a URL from the server. The URL received is sent back to content.js which is browsed <strong>ON THE TAB REQUESTED FROM</strong>. For eg:- If Tab1 has requested, the URL should be browsed on th...
3
1,471
Cardview shows shadow as margin in API < 21
<p>I using androidx in my project. in android api 21 and above all thing is good but in below that cardView don't work properly. please see images: in android API > 21 :</p> <p><a href="https://i.stack.imgur.com/mQEmM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mQEmM.png" alt="enter image descri...
3
2,577
XmlSlurper to parse XML and get value of inside elements using Groovy
<p>I am trying to parse the below XML:</p> <pre><code> &lt;body&gt; &lt;section id="5f884f20-6638-461f-a3f5-3d237341c048" outputclass="definition_and_scope"&gt; &lt;title&gt;Definition and Scope&lt;/title&gt; &lt;p&gt;A work that is modified for a purpose, use, or medium other than that for wh...
3
1,742
Trouble running AJAX
<p>I'm doing homework and must use javascript object and array in my ajax. I'm sure there is something wrong in the code, but as I have very limited knowledge I just can't find it. I'm just currently learning this and a few bits and pieces were followed through examples I could find online.</p> <p>XML</p> <pre><code>...
3
2,469
deleting shaders in cocos2d 2.1
<p>I have a subclassed sprite with a custom shader in a cocos2d 2.1 / kobold2d project (ARC enabled). i'm getting a crash in CCGLProgram when changing scenes. dealloc is being called and i crash on an NSAssert that: 'Vertex Shaders should have been already deleted'</p> <p>the shader is defined first as CCGLProgam obje...
3
1,648
No PDO Error, but transaction fails (properly)
<p>I have a table with a constraint that prevents some combinations of variables from being inserted, however, when I execute insert with bad values from inside transaction, the insert fails (as it should), but the <code>PDOException</code> isn't raised. In fact, the transaction acts as if it committed successfully, ho...
3
1,751
WPF Button background action gets overwritten by the code
<p>I've got a button that I've modified its template so it shows different background colour when the button gets clicked and mouseover (it goes green rather than light blue).</p> <p>That works great by itself but I need to change the background colour according to some some state so I need to change the background in...
3
2,387
exam math from data using OLEDB
<p>I'm trying to make an exam form. It is suppose to take a question from different tables in my file, and by clicking <code>Q1button</code> to check the answer and print a suitable message. In addition, it is suppose to ask the user 8 questions, and update the answer (if it was answered correctly) in <code>counterCorr...
3
1,028
Thread 1: EXC_BAD_INSTRUCTION Swift 2
<p>I'm trying to make an app that will tell the time remaining until a specific date. Like some alarm apps say how much time until it will wake you up. I was having issues with ways of calculating this so I created my own function for it. My <strong><em>original version</em></strong> on a <strong><em>playground</em></s...
3
2,258
How can I access images from powerpoint (python-pptx)
<p>I'm having a hard time trying to access/save images using the python-pptx library. So, if the image is of shape type <code>PICTURE</code> (that's <code>shape.shape_type == MSO_SHAPE_TYPE.PICTURE</code>) I can access/save the image easily using the 'blob' attribute. Here is the code:</p> <pre><code>import argparse im...
3
1,421
Best way to update set of set
<p>There is a list of edges connecting the vertices. I'm trying to divide these vertices into groups that are connected to each other.</p> <pre><code>static class Edge { final String from, to; Edge(String from, String to) { this.from = from; this.to = to; } } static Set&lt;String&gt; find(...
3
1,407
No rule to make target `modexp512-x86_64.o' with ASM enabled
<p>I am trying to build openssl-1.0.2j on Linux 64-bit with ASM enabled. Openssl-1.0.1u is the latest but not a good option for us. Without <code>no-asm</code> option I get the following error (with <code>no-asm</code> its OK):</p> <pre><code>No rule to make target `modexp512-x86_64.o', needed by `lib' </code></pre> ...
3
1,822
How do I organize the file recursive search with file operations?
<p>I write for myself a small program in C ++, which could perform some operations on files that it finds (in my filter), and that's stumbled on the mechanism of searching for files. At start the program asks the full path, and then by file type recursively looking for them in all subdirectories of the selected directo...
3
1,346
Converting PostgreSQL Subqueries into Joins
<p>Below is an example schema with 3 tables. I'm trying to run a query that returns all Jobs where all child Shifts are of status 6. If a Job has a child Shift with a status of 5, the Job should not be returned. The proper response for a query from the sample data inserted below is no rows returned.</p> <p>There is...
3
1,025
Why I'm getting different results using url and absolute file name?
<p>I am new in Java and facing a problem aceessing a file. I have a package named "FileOperation" uses a "boom.txt" file(Location: "FileOperation/files/boom.txt"). What I wanted to do was to access the file from a class "MyTextPanel" (Location: "FileOperation/MyTextPanel.java"). </p> <p>I have created 2 methods for th...
3
1,187
How to provide new name for object in a loop?
<p>So i have a class called PlayingCard which creates an object which contains int rank and int suit (to simulate a playing card).</p> <pre><code>public class PlayingCard { private int rank; private int suit; public PlayingCard(int rank1, int suit1) //PlayingCard Constructor { rank = rank1; suit = suit1; } ...
3
1,378
SyntaxError: JSON.parse: unexpected character while call ajax with codeigniter
<p>I am using codeigniter. When I call an ajax request to the page by giving the full path to file, it works fine:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title id='Description'&gt;In this example is demonstrated how to implement server filtering, sorting and paging with jq...
3
2,377
Compilation errors when building Boost Beast example websocket_server_sync
<p>I am trying to build Boost with websocket-server-sync example from Boost Beast examples. Firstly I would like to say that I'm building on Windows 10 with MSVS 2017 Professional Version 15.3.5 with SDK version 10.0.14393.0. The steps which I took to build the Boost were following:</p> <p>First I started of course <co...
3
4,998
how to copy selected items from listview to textarea by drag and drop
<p>Something is wrong in my simple application. I tried to copy selected items from listview to textarea by drag and drop, but I guess I did make a fault with the handling of 'drag detected'. No text is dropped. When dragging text from an editor it is dropped in the textarea.</p> <p>Thanks for your help!</p> <p>This is...
3
1,273
Obscure leak found with Leak Canary in app that uses ToothPick
<p>I have an app that is implemented with single Activity and with Toothpick / Ktp.</p> <p>I create a scope for every fragment, that I close when the fragment is destroyed. This behavior is done in the BaseFragment Class.</p> <p>It does use ViewBinding.</p> <p>The adapter and its listener is nulled when the onDestroyed...
3
1,288
Error: function Camera::operator=(const Camera&) (declared implicitly) cannot be referenced -- it is a deleted function
<p>Camera.h:</p> <pre><code>#include &quot;math_headers.h&quot; #include &quot;GLContext.h&quot; static const float YAW = -90.0f; static const float PITCH = 0.0f; static const float SPEED = 2.5f; static const float SENSITIVITY = 0.1f; static const float ZOOM = 45.0f; class Camera { public: Camera(glm::vec3 positi...
3
1,627
Camera2 recording video, Screen freeze after pressing the record button (only when using front camera and on certain devices)
<p>I have surfed all the internet and didn't find any solution, I am using Camera2 api to record a video from my front camera, I have tested on multiple devices and its working fine, but when I tried on my Samsung Galaxy 3, after I press the record button sometimes the recording work, and sometimes the camera preview f...
3
3,365
Can't release app or build web because of this package: blue_thermal_printer: ^1.1.9
<p>When I run this command</p> <pre><code>flutter run --release flutter build web --web-renderer html </code></pre> <p>I get this error in console:</p> <pre><code>Launching lib\main.dart on Infinix X656 in release mode... /C:/Users/Bilal%20Saeed/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/blue_thermal_printer-1.1.9...
3
1,685
Behaviour difference between HashSet and LinkedHashSet for Knights Path solution
<p>I'm seeing a strange behaviour in a coding puzzle I was working on 'Knights Path'. I generate the set of possible moves and store these in a HashSet (the Move class simply has an x,y co-ordinates and a standard hashcode and equals). When I use a HashSet in the generateMoves() method the program doesn't find a soluti...
3
2,276
Unable run greendao generator class file in android studio
<p>I have used greendao in my project for maintaining local database.</p> <p>project build.gradle</p> <pre><code>buildscript { ext.kotlin_version = '1.1.2-4' repositories { maven { url 'https://maven.google.com' } jcenter() } dependencies { classpath 'com.an...
3
1,068
Jquery dynamic Adding Row to HtmlDatatable not validating?
<p>I have a form which shows <code>Center Details</code> and its <code>PartnerDetails</code> in the same page.During the edit page scenario I have bound all the current partner details along with the provision to <code>Add New Row</code> if new <code>Partners</code>are to be added.</p> <p>The <code>jquery unobstrusive...
3
3,538
How to find, from which Types is object composed of?
<p>ok, yesterday I posted almost identical question <a href="https://stackoverflow.com/questions/7000892/how-to-find-from-which-template-layers-is-object-composed-of">here</a> , but I wasn't able to modify the answer(working) to my needs... I did not want to mess the other topic, so I have started new one.</p> <p>So, ...
3
1,368
Could not load file or assembly 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
<p>I am trying to develop a web application that displays some charts based on different data that is stored in a database. I found on different tutorials online that I should transfer the data from the controller to the view using a model and then to use Json.Encode for the data to be read correctly by my chart. First...
3
1,129
EF Core 2.2 New Migrations keep deleting and recreating seeded data
<p>Whenever I create a new Migration, for some reason my seeded data is always deleted and recreated. How can I prevent this from happening? </p> <p>It seemed to be a bug in EF Core 2.1 but was supposedly fixed in 2.2 but that issue is still here.</p> <p>This is my OnModelCreating:</p> <pre><code>protected override ...
3
2,307
Changing roles on admin panel in checkbox
<p>In presented controller, it's displaying all the users and his attributes(?) such as name, surname, phone and roles. How do I make it that when I select role in checkbox and press "potvrdi"(submit) it submits to database? Do I have to use jquery, ajax? Thank you</p> <p>Controller </p> <pre><code>public function ac...
3
4,481
XSLT 1.0 Move of one Segment
<p>please tell me, how can i move the Segment "BGM" from "CNT" to "GRP"?</p> <p>Actually XML:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0"?&gt; ...
3
2,627
AngularJS & Laravel - Wizard navigation
<p>I am trying to create a multi form/wizard step navigation. I am using <code>ng-switch</code> to create the steps. But I got stuck, this is the relevant code: </p> <p><strong>HTML</strong>: </p> <pre><code>&lt;div ng-controller="stepCtrl"&gt; &lt;div ng-switch="step"&gt; &lt;div ng-switch-when="1"&gt; &lt;...
3
2,081
Angularjs converting code to directive or ng-repeat
<p>I am currently trying to convert an json response into jquery accordion. I have got the code working, and would like to clean up my code to make more sense. Currently I hard codded to get it to work, from there I tried an ng-repeat and I couldn't get that to work b/c it created a around each collapsible div and r...
3
3,516
LWJGL - everything is gone after loading font
<p>I had a weird problem when I tried to display some text on the screen. I followed this tutorial <a href="http://www.ninjacave.com/slickutil3" rel="nofollow">Slick Util - TrueType Fonts for LWJGL</a>. The text was displayed properly but everything else was gone. This happens even when no text is rendered. And it will...
3
1,450
Get string from Flutter in Android specific code (Java/Kotlin)
<p>I have my strings in <strong>.arb</strong>, as usual for Flutter apps, and I need to use them in my Android specific code (written in Java/Kotlin).</p> <p>My code is always resulting in <strong>not implemented</strong> (I tried invoking both <strong>getStringResource</strong> and <strong>Localization.getStringResour...
3
1,168
uploading an image in swift 4.2 with imagePickerController
<p>I would like to upload an image with ImagePickerController to a Rails Backend using the in Swift 4.2 using Alamofire. The problem I am facing is that the image must only upload when pressing a register button. Below is my imagePickerController function. The Alamofire part should be done in the handleRegister functi...
3
1,033
Modify an array of elements
<p>I have an application where users can add their data in a form with 2 fields. They can add as many fields as they want.</p> <pre><code>const Demo = () =&gt; { const onFinish = values =&gt; { console.log(&quot;Received values of form:&quot;, values); }; const firstDefaultOpen = { name: 0, key: 0, ...
3
2,176
Lock Not Being Released by Thread at the End of Run Method [Solved]
<p>So I'm trying to run a cafe simulation using Java's ReentrantLock and volatile. Basically I have a time thread that supposed to change a volatile variable to false to stop all the other threads from running. But for some reason the Time thread doesn't release the lock and other threads continue to run endlessly. </p...
3
2,576
How to Bind a List in Model with HTML Form in ASP.NET Core?
<p>I'm unsure what I'm doing wrong when trying to map form values to my model, <code>FieldMappingCollection</code>. I've been able to get the Id and Name back for the model but not the list of mappings, either the previously existing or newly created ones.</p> <p>The page contains a text box for the mapping name and a ...
3
1,463
How to enable scrolling in Expander without a fixed height
<p>I'm having problems with scrolling inside the <a href="https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/expander" rel="nofollow noreferrer">Expander control</a>. Since the default behaviour of the Expander is to grow to fit all content, scrolling doesn't work for any child controls as there's no he...
3
1,456
$_files array is empty on submit with javascript
<p>I am facing issue while submitting form, i am getting empty $_FILES array. I have javascript attached with this form where i m trying to upload images and other user inputs, with javascript i am getting empty array but on other hand if i submit form without attaching javascript so same form $_FILES array showing dat...
3
3,503
Horizontal form + inline form
<p>I'm trying to make the form user profile on a bootstrap with horizontal form and inline form, but they do not work together.</p> <p><a href="https://i.stack.imgur.com/RaLOL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RaLOLm.png" alt="It is a normal width"></a></p> <p><a href="https://i.stack...
3
2,560
Binding TexBox Name to TextBlock Name, Placeholder
<p>Short background on the problem: I am trying to make a readable, xaml only TextBox Placeholder, which is packed to a ResourceDictionary.</p> <p>At this point - I have made a well working prototype, which looks and used on the page like this:</p> <pre><code>&lt;Grid&gt; &lt;TextBox Style="{StaticResource ...
3
1,869
Making a query on a mongo DB with ParseSwift
<p>I have two collections in a Mongo DB.</p> <p>Here is how a document looks in the first collection (<code>MainCollection</code>):</p> <pre><code>_id :&quot;mzWqPEDYRU&quot; TITLE :&quot;ZAZ: I want.&quot; ownerID :&quot;lGutCBY52g&quot; accessKey :&quot;0kAd4TOmoK0&quot; _created_at :2020-03-13T11:42:11.169+00:00 _up...
3
1,383
Why do I get the error: " Specified Cast is not valid" when trying to populate my listview in xamarin.forms with a list in my viewModel?
<p>This is the code behind of the main page in my xamarin app</p> <pre><code> public partial class MainPage : ContentPage { PenStockVM&lt;PenStock&gt; penstocks; public MainPage() { InitializeComponent(); penstocks = new PenStockVM&lt;PenStock&gt;(); //I get the erro...
3
1,328
How to modify existing variable and also import new variables using import *
<p>I have a file <code>test.py</code> with</p> <pre><code>list_sample = [1,2,4] </code></pre> <p>Now, I want to append to the list from another file</p> <p>eg: test2.py</p> <pre><code>list_sample =+ [10,11] # also I have many other things in this script a=10 c=10+a </code></pre> <p>and modify <code>test.py</code> as</...
3
1,384
Bind Nested Gridview with Radiobuttonlist
<p>I have a nested <code>Gridiew</code>. The parent shows <code>customers</code> and the child shows each part for that <code>customer</code>.</p> <p>For information :<br /> <strong><code>grdViewCustomers</code> shows the <code>customers</code>.<br /> <code>grdviewordersofcustomer</code> shows the parts for each <code...
3
3,541
Why stopPropagation() helps when registered on $(document)?
<p>So the problem is that one of my click events was firing twice for no good reason. Here is the function</p> <pre><code>function submitVoteFormOnClick() { $(document).off('click', '.vote-form'); $(document).on('click', '.vote-form', function (e) { e.stopPropagation(); var $arrow = $(e.target)...
3
1,047
Add custom RBAC rule to PhpManager in Yii 2.0
<p>I want to add a custom rule to PhpManager RBAC in Yii 2.0. </p> <p>Here is the custom rule (@app/rbac/OwnerRule.php):</p> <pre><code>&lt;?php namespace app\rbac; use yii\rbac\Rule; /** * Checks if userID matches user passed via params */ class OwnerRule extends Rule { public $name = 'isOwner'; publi...
3
1,119
Phonegap Android app - not reading cookie on WIFI?
<p>I have built a Android HTML5 app using Phonegap which uses an iframe to process payments via system on a partner companies server. </p> <p>The system drops a cookie with an inbox code on the phone which means that once the user has register once - the system uses the cookie to save them re-registering - all worked...
3
1,327
Enter pandas values cell wise
<p>I have a dictionary, namely <code>elas[key]</code> made as follows:</p> <pre><code>{'Elasticity ACETYLCYSTEINE to ACETYLCYSTEINE AUSTRIA': '-0.028715155688298175', 'Elasticity ACETYLSALICYLIC ACID to ACETYLCYSTEINE AUSTRIA': '-0.02808962598080608', 'Elasticity ACICLOVIR to ACETYLCYSTEINE AUSTRIA': '0.1435719880256...
3
1,260
resolve service hostname in ECS fargate task
<p>I am trying to automate my ECS fargate cluster making using terraform.</p> <p>I have a SpringBoot project with microservices containerized, and I am putting these images in a single task definition for an ECS service for the backend.</p> <p>The ECS cluster is initially running, but Kafka is getting stopped with the ...
3
1,579
Vuejs : Making dependent dropdown with axios
<p>I had a problem showing the dependent dropdown. It fetches the hospital, but for the specialty, it gives me an empty array with no error like this image:</p> <p><a href="https://i.stack.imgur.com/Y40Cx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y40Cx.png" alt="enter image description here" />...
3
1,354
I can't position my buttons in scrollview in kivy
<p>Im creating a simple chat room and i want it to look like whatsapp and messager so I add ScrollView and inside the ScrollView I make a GridLayout class to be containers of upcoming message but when I add AnchorLayout to position the Button inside the GridLayout my widget are colliding and its get messy</p> <p><a hre...
3
1,062
how to get rid of addin security of winform
<p><a href="https://i.stack.imgur.com/1jqiD.gif" rel="nofollow noreferrer">Security addin window</a></p> <p>Hi, i have multiple external command created and dock it into it's own Revit tab. however, when i add a winform to one of the commands it is now asking me for another security addin pop-up window when Revit laun...
3
1,124
Getting "Attempt to get length of null array" error
<p>I m getting "Attempt to get length of null array" error. I m trying to fetch the random quotes as following from the link <a href="https://gturnquist-quoters.cfapps.io/api/random" rel="nofollow noreferrer">https://gturnquist-quoters.cfapps.io/api/random</a> when I try to click the button : type "success" value<br...
3
1,404
Current Latitude And Longitude Not Shown
<p>I am making an app in Android Studio where the user can save their current latitude and longitude in Firebase. I am using this code:</p> <pre><code>public class SaveLocationActivity extends AppCompatActivity implements LocationListener { TextView saveLatitude, saveLongitude; Button saveLocationBtn; FirebaseDatabas...
3
1,043
How to convert dict to dataframe correctly?
<p>This is the list of dictionary i've got guys :</p> <pre><code>[{'id': 1816, 'name': 'Constantin Gâlcă', 'nickname': None, 'dob': '1972-03-08', 'country': {'id': 187, 'name': 'Romania'}}] [{'id': 793, 'name': 'Luis Enrique Martínez García', 'nickname': 'Luis Enrique', 'dob': None, 'country': {'id': 214, 'name': 'Spa...
3
2,729
Contact form not doing anything in laravel 5.7 even not showing any error
<p>This was my contact form and here is the form action </p> <pre><code>&lt;form action="{{ route('contact.send')}}" method="post" class="contactForm"&gt; &lt;div id="sendmessage"&gt;Your message has been sent. Thank you!&lt;/div&gt; &lt;div id="errormessage"&gt;&lt;/div&gt; ...
3
2,156
Google Fusion Tables Quota Exceeded when importing data
<p>I fill google fusion tables . I've about 2mio entries which should be added to the fusion tables.</p> <p>I use <a href="https://www.nuget.org/packages/Google.Apis.Fusiontables.v2/" rel="nofollow noreferrer"><strong>Google.Apis.Fusiontables.v2 1.10.0.50</strong></a></p> <p>This worked for some monthes. but now I ...
3
2,574
How to fix `URIError: Failed to decode param` pdf body received from backend?
<p>So from the backend I am receiving a pdf binary like this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>"%PDF-1.3\r%����\r%PDF-Writer.NET dbAutoTrack Ltd.\r2 0 obj\r&...
3
1,237
How to get a specific item and display the details on another page in an array onclick in vuejs
<p>I'm new to vue and I'm building a client page with an array of client and onclick of a view button the client details show up on another page. I would like to know how to get the specific detail of an item when click and also how it can be viewed on the client details page. I'm unsure how to proceed. Here is the tem...
3
2,134
Getting "out-of-bounds" and "variable uninitialized" warnings with mapped shared memory
<p>As part of my C application for Linux, I wrote a small library to allow different processes to communicate through shared memory areas.</p> <p>I am having lots of alerts for potential out-of-bounds pointers and potentially uninitialized variables contained in the memory areas I create this way.</p> <p>Consider the...
3
1,508
cannot add op with name
<p>I have a problem with freeze_graph function:</p> <blockquote> <p>ValueError: cannot add op with name Conv1/W1/Adam as that name is already used</p> </blockquote> <p>In this line:</p> <pre><code>def export_model(input_node_names, output_node_name): my_freeze_graph.freeze_graph('out/' + MODEL_NAME + '.pbtxt',...
3
1,117
How AsynchronousSocketChannel maintain reading?
<p>I need to connect to 4 machines and read data from sockets. I've chosen to use an async model of nio2.</p> <p>Here is a pseudo-code :</p> <pre class="lang-java prettyprint-override"><code>class Connector { private final AsynchronousChannelGroup group; private final String host; private final int port ...
3
1,300
NoReverseMatch errors during Django forgot password email system
<p>I am trying to create a system for resetting forgotten passwords through email but am getting some errors.</p> <p>My urls are:</p> <pre><code>from django.contrib.auth import views as auth_views urlpatterns = [ url(r'^$', auth_views.login, name='login'), url(r'^logout/$', auth_views.logout, name='logout'),...
3
2,669
405 Not Allowed for Ajax Contact Form code
<p>I'm fairly new to programming in general, but I am trying to create an ajax contact form. I've have tried numerous different methods but none of them seem to be working effectively. My code is as follows:</p> <p>html/js code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-bab...
3
2,905
How to Connect two Generic Handler c# asp.net Generic_Handler.ashx and Search.ashx
<p>How to Connect two Generic Handler c# asp.net Generic_Handler.ashx and Search.ashx This is my two handlers if it is possible to connect two handlers in ASP.Net Please Help any one** </p> <p><strong>Generic_Handler.ashx</strong></p> <pre><code> &lt;%@ WebHand...
3
2,301
Using Multiple file inputs to set background image of multiple divs
<p><strong>What I'm trying to do:</strong></p> <p>1 - How can I use a second file input to set the background image of a class of divs, in this case the <strong>class .logo</strong>? (currently, I have one file input, which is setting the background image for the <strong>class .background</strong>, but I need to add a...
3
1,257
how to changed jquery Lightbox_me default Login button value to Close
<p>i'm using www.buckwilson.me/lightboxme plugin...after apply code and pop work perfectly.But problem is i unable to changed default value of Login Button</p> <p>my display</p> <p><img src="https://i.stack.imgur.com/7fXK5.png" alt="enter image description here"></p> <p>Needed Display (This sample edited using ms p...
3
2,297
Bootstrap CSS Carousel Not working after float?
<p>I am implementing a carousel in bootstrap but I am having two problems.</p> <ol> <li>It is not aligned horizontally (my div are going downwards).</li> <li>It is not working when I used the <code>float: left</code> property.</li> </ol> <p>I don't understand what I'm doing wrong. I've tried a variety of things to fix ...
3
3,308