title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
React Router v4 path not matched issue | <p>I am trying to render a 404 page when a path which I enter in the URL doesn't exist.</p>
<p>Here is my router.jsx:</p>
<pre><code>const NotFoundLayout = () => (
<div><h1>Not Found</h1></div>
);
const DefaultLayout = ({ component: Component, ...rest }) => (
<Route
{...rest}... | 3 | 1,030 |
i want a popup menu when i click on my listview item | <p>my activity which contains listview i have five item in this listview.<a href="http://i.stack.imgur.com/DbrWM.png" rel="nofollow"> This is my items in Listview</a>
<a href="http://i.stack.imgur.com/N5VG5.png" rel="nofollow">, and this is what i want when i click on my first item in listview , there are some radio b... | 3 | 3,413 |
Cannot download video file with android emulator | <p>Here's the code to download a 3pg video file. Maybe one can give me an idea about what's wrong with it. I really need help. Can't get it to download the file: </p>
<blockquote>
<p>Blockquote</p>
</blockquote>
<pre><code> protected String doInBackground(String... sUrl) {
byte[] data = new byte[... | 3 | 1,133 |
Can't get simple app with two ListView in one Column work | <p>I am trying to write app with two <code>ListView</code>s. The idea is simple. At start we have <code>n</code>-element in first <code>ListView</code>, and by clicking elements we move elements to second.
Something like this:
<a href="https://i.stack.imgur.com/IM6Tp.png" rel="nofollow noreferrer"><img src="https://i.s... | 3 | 1,407 |
C# Xml Deserialize collection with nested collection, nested collection is null | <p>I am consuming a third party API. I am trying to deserialize an XML string into C# complex classes. This xml string contains an array with a nested array. I am successful in serializing to the outer List ("Description"), but the nested List is null ("Item"). I am not sure what the issue is.</p>
<... | 3 | 1,350 |
Can't load Expo Vector Icons in Nextjs | <p>I have tried a <strong>lot</strong> of different ways to do this, with absolutely zero luck, over multiple days.</p>
<p>I am trying to use Solito Nativebase Universal Typescript repo to do this:</p>
<p><a href="https://github.com/GeekyAnts/nativebase-templates/tree/master/solito-universal-app-template-nativebase-typ... | 3 | 1,423 |
Why My Code didn't display Date (dd-M-yy format) in the input field after selected? | <p>Below is my code.</p>
<p>Firstly, run the index.php Then there is a dropdown list will display and need to select a value from the dropdown. so far, dropdown will display value 1 or 2. If you select 2 it will display the value that has been selected together with the "date" field called from the display-date.php an... | 3 | 1,618 |
Adding to a counter on each frame for a quiz in python tkinter? | <p>So I've simplified my code down to the basics to try and get this to work. The mainpage, which you press 'play' on takes you to the page 'MathsQ1', this is the first question. The page has a question and four button, one of them being the right button. I've been able to make two different commands for the right and ... | 3 | 2,006 |
Springboot application not fully start on an existing tomcat | <p>I have a working springboot application, build in java 1.8</p>
<p>I follow the springboot documentation to create a war, and deploy it in a Tomcat server.</p>
<p>I successfully started and tested the application in IntelliJ in local :</p>
<pre><code> . ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ ... | 3 | 1,512 |
Delete a row from DB | <p>i have a simple web application in which you can book a room. Now when someone books a room i want give the possibility to delete the reservation.
I have created a jsp file: </p>
<blockquote>
<p>cancel.jsp </p>
</blockquote>
<p>with this code:</p>
<pre><code><%@ page language="java" contentType="text/html; ... | 3 | 1,672 |
Group rows by condition | <p>I have this data:</p>
<pre><code>Start End Quantity
425 449 24
450 474 24
475 499 24
500 524 24
2300 2324 24
2400 2499 99
2500 2599 99
2800 2899 99
2900 2999 99
3200 3249 49
3250 3299 49
3300 3349 49
3350 3399 49
3400 344... | 3 | 1,525 |
Why are alternating blank rows appearing in my GridView? | <p>All of this is fairly new to me, so I apologize if these are dumb questions. </p>
<p>1 - The table that my GridView is pulling from contains no blank rows, so why is every other row in my GridView blank? See my HTML and C# code below:</p>
<p>2 - I can't seem to get the dates to format correctly. Usually, I just ... | 3 | 6,099 |
Python parser on xml not able to return branches | <p>I am currently attempting to parse a downloaded xml file and write to a csv file however I'm a little inexperienced with xml formatting. Regardless I am able to return the elements from the first branch <code>Filing</code> but I am unable to return anything from the following branches such as <code>Registrant</code>... | 3 | 2,143 |
fabric-sdk-java How to implement the Network.addBlockListener method in my App.java | <p>I am new to Hyperlegder-Fabric and already manage to connect to a network through the org.hyperledger.fabric.gateway package.</p>
<p>This is my App.java class:</p>
<pre><code>
//Fabric Imports
import org.hyperledger.fabric.gateway.*;
import org.hyperledger.fabric.sdk.BlockEvent;
import org.hyperledger.fabric.sdk.Cha... | 3 | 1,155 |
Update an order after POST method Django Rest Framework | <p>I just started learning Django Rest Framework together with React and i am stuck on this problem for a couple of weeks now. Hope you guys can help me out.. Here's what i am trying to achieve: When a user clicks on 'Buy Now' there will be an order created with the <strong>status</strong> of the order set to <strong>o... | 3 | 1,490 |
Getting repeated values when using LISTAGG even for single field | <pre><code>CREATE TABLE source_det (
e_id NUMBER(10),
sys_name VARCHAR2(20),
ref_id NUMBER(10),
sys_other VARCHAR2(30)
);
INSERT INTO source_det VALUES(11,'SOURCE',992,null);
INSERT INTO source_det VALUES(11,'SOURCE',637,null);
INSERT INTO source_det VALUES(11,'SOURCE',null,'Manual');
INSE... | 3 | 1,312 |
Laravel Does Not Seem To Be Connecting With Controller Method | <p>I have made this form at my Blade:</p>
<pre><code><form action="{{ route('insertWallet') }}" method="POST" enctype="multipart/form-data">
@csrf
<label for="title" class="control-label">Title</label>
<br>
<input type=&qu... | 3 | 1,286 |
Finding average GPA C++ | <p>This is probably a stupid question.
I am fairly new to programming.</p>
<p>I am trying to find the average GPA of each student. The first for loop I have will list the student name then go into a nested for loop which has you enter a letter grade 10 times. Once they enter the letter grade, depending on what letter i... | 3 | 1,116 |
Inference speed in tensorflow 2.0 (CPU) for simple models? Vanilla tensorflow/numpy is still 50x faster? | <p>Am finding that tensorflow keras (2.0) is still quite slow compared to numpy. Is tfdeploy still in use? What are the options for getting close to numpy speed in inference? </p>
<p>UPDATE:</p>
<p>Here is a cleaned up example showing three methods on a different machine. The tf.function wrapped tensorflow call is no... | 3 | 1,194 |
req.user undefined when using $http with angularJS, express and passport | <p>I've run into a problem where <code>req.user</code> is undefined when making an API call with $http in angularJS. The strange thing is that if I login with Postman and then make a call to my protected endpoint, <code>req.user</code> is defined and authentication is working as expected. </p>
<p>Protected endpoint ... | 3 | 1,170 |
OpenGL : second VBO spoiling first VBO | <p>I have a code that initially had one shader (ourShader), one VAO and one VBO. It would render a scene with a textured cube and its reflection on the ground using Stencil testing. Now, I wanted to add a framebuffer for post-processing so I needed a second shader. I added a second shader (screenShader) and a second VB... | 3 | 4,597 |
WinForms: When ObjectForScripting is set, HTML is not displayed | <p>I have a Windows forms application and a separate HTML page. The two are supposed to communicate with each other. I followed the instructions from <a href="https://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.objectforscripting%28v=vs.110%29.aspx" rel="nofollow">this microsoft link</a>. Before I ... | 3 | 1,147 |
Reading File and Printing Output | <p>I am reading a file and the output is supposed to look like the one below, ignoring the actual table the values for my hours,minutes and seconds are off as is the money, which is supposed to be calculated by rounding up to the minute; I have tried many ways to solve this and this is my last resort. </p>
<pre><code>... | 3 | 1,929 |
py4j.protocol.Py4JNetworkError: An error occurred while trying to connect to the Java server (127.0.0.1:25333) | <p>I was running a server within a docker container, the package and image were provided by others so I can't access the code but only the tar.gz package, and I have no idea what services this container is providing.</p>
<p>It worked right several days ago and was not working since one restart, then I restarted it seve... | 3 | 1,152 |
Project 'org.springframework.boot:spring-boot-starter-parent:2.3.10.RELEASE' not found | <p>I keep getting this error Project 'org.springframework.boot:spring-boot-starter-parent:2.3.10.RELEASE' not found and I cant seem to find whats causing this can someone please help me figure out this problem, thanks. I tried everything and nothing will work and I dont know why. I also so other questions on stack ove... | 3 | 2,222 |
Uncaught Error: Can't resolve all parameters for StorageService | <p>I am trying to implement sql storage in an ionic cordova app. i followed the tutorial here: <a href="https://ionicacademy.com/ionic-storage-crud-operations/" rel="nofollow noreferrer">https://ionicacademy.com/ionic-storage-crud-operations/</a>
and the ionic pages here: <a href="https://ionicframework.com/docs/buildi... | 3 | 5,145 |
My media query won't validate | <p>I'm attempting to set a media query for my site to display on a tablet (and then I have to do another one for a smartphone)...all my css validates with the exception of the media query. I have looked on the w3C site, my textbook, and css-tricks.com and even though I feel like I'm following their examples my query ... | 3 | 2,258 |
php header not header function is not working | <p>I have got an issue where the PHP header is not working. Here is the full code. Everything is working fine only the page is not redirected at the end.</p>
<pre><code><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery... | 3 | 2,982 |
How can I make core-menu fit the compleet viewport? | <p>Because of scroll issues in the current paper-dropdown-menu implementation I want to make core-menu fit the complete viewport when you click on paper-dropdown-menu, tried many things but can not figure it out and I am stuck in the shadow dom space.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div ... | 3 | 1,107 |
Cannot upload big zip files using drop-zone in CodeIgniter | <p>I'm trying to upload zip file using drop zone. Uploading just fine with small size zip files. However, for zip more than 5MB cannot upload. Somehow the uploading process stuck at 100% and remain there until page refresh manually.</p>
<p><strong>You can see here:</strong></p>
<p><a href="https://i.stack.imgur.com/a3h... | 3 | 4,264 |
How to fix limit and orderBy in Mongodb using Java | <p>I am trying to fetch a list of documents using specified filters. I want to limit the output to 10 and orderBy a column of type long(totalTransactionCount that is found in the sample data posted below). However, the output I get is just 8 instead of 10, there are over 100 records in the collection that meets the req... | 3 | 3,062 |
GetCurrent user return only logged user from Firebase Google app | <p>I have a login and registration app that does 2 steps</p>
<p>In one activity, he logs the user in, everything is correct, when I log in I can pull the user correctly to my NavHeader, however, when I need to register a new user, a big problem arises.</p>
<p>I do every method of registration and even see my user reg... | 3 | 2,273 |
Reading from text-file in Java | <p>I have some serious problems getting my program to read in the right values and storing them in the right place. I have been staring on this problem for 3 hours straight and tried everything, but it doesn't fix the problem.</p>
<p>I am writing a program that reads a sudoku-board from a text-file and creates the sam... | 3 | 1,773 |
OOP PHP - Passing methods trough functions | <p>I am new to OOP in PHP and I am trying to understand how it work.
I am trying to implement PDO into a my own class.</p>
<p>This is what I am doing:</p>
<pre><code>class db {
private $options;
function __construct() {
$this->options = array(
'database_host' => DATABASE_HOST,
... | 3 | 1,126 |
Mybatis and oracle Query result error | <p>Use mybatis, but sql fail.<BR>
But sqldeveloper, it's work well....<bR>
What should I do?</p>
<p>This is log.<BR></p>
<p>DEBUG [http-bio-8080-exec-3] - ==> Parameters: 2016-07-04(String), 2016-07-04(String)<br>
[2016-07-05 08:57:49] [DEBUG]<br>『org.apache.ibatis.logging.jdbc.PreparedStatementLogger:invoke(72)』 Ela... | 3 | 1,393 |
2 line-plots in same visualization with different y-axis | <p>I am quite stuck with this one.
I am trying to create a line diagram with the same x-axis scale (years) but a different y-axis scale
How can I do that?</p>
<p>I have two datasets with this info:</p>
<pre><code>test_data1.head()
latitude longitude place year
0 36.087 -106.168 New Mexico 1973
1 33.... | 3 | 2,531 |
Table manipulation error | <p>I am trying to set a variable to the value of an element of a 2D array. This should be easy, but whenever I write it I get 0 in the variable. I read in a file to put in the array elements manually, which might be causing the problem, but I am not sure what's wrong.</p>
<p>Here is my code:</p>
<pre><code>int main()... | 3 | 1,129 |
Modularity issues with javaagent in Java 9 | <p>We have a javaagent written in Java 8 that instruments application code using javassist. There is one simple ClassFileTransformer that instruments java.lang.Error class constructor to record an instantiated error. I am retransforming Error class because it is loaded much before my agent is loaded. The instrumetation... | 3 | 2,891 |
Process.Start fails and claims "The directory name is invalid." | <p>We have a .NET application starting Microsoft Word explicitly with System.Diagnostics.Process.Start, e.g. "C:\PROGRA~2\MICROS~1\Office14\WINWORD.EXE" - the value is retrieved from the registry beforehand (see GetWordExePathFromWindowsRegistry method in the code below). Since we moved from .NET Framework 4.... | 3 | 1,122 |
An authorized user is not able to access a protected route | <p>I am developing a MERN stack app. After a user successfully logs in, they can both view their tickets and create new tickets.</p>
<p><a href="https://i.stack.imgur.com/qPC7W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qPC7W.png" alt="enter image description here" /></a></p>
<p>When a user clic... | 3 | 1,935 |
Show more than 10 calls in Codeception stack trace | <p>I'm debugging some recursive code via Codeception and it's only showing the last 10 calls, so I don't know what the path through the code is. Xdebug is set to show as much information as possible so, I don't think it's that.</p>
<p>I haven't yet found any configuration option to increase the number of stack trace l... | 3 | 2,713 |
Filtering table with dropdown menu - extra unwanted code displayed on the page | <p>Overflowers,</p>
<p>I was trying to build a table which would be filtered by dropdown menu selection. The whole proccess works in this way:</p>
<p><strong>Index.html.erb</strong></p>
<pre><code>render "selection"
</code></pre>
<p>This partial gives us a dropdown menu with selections.</p>
<p><strong>_selection.h... | 3 | 1,131 |
undefined variable and property of non-object in codeigniter | <p>I'm getting these two error messages for my 3 variables:</p>
<p>message 1) Undefined variable: rows
message 2) Trying to get property of non-object</p>
<p>EDIT: (finally found the edit button), so the 3 variables are:</p>
<pre><code> $anatomic_code = $rows->NerveCode;
$ProxAccess = $rows->Pro... | 3 | 2,537 |
How to avoid nested for loops when combining values from two lists of dictionaries in Python? | <p>Lets say I have two lists:</p>
<pre><code>list1 = [{"sport": 'Soccer',
"leagues": [{"id": 1001,
"name": "League1",
"events": [{"id": 100,
"home": ... | 3 | 2,850 |
Trouble with markjs.io and TinyMCE Bookmark when caret is active on text | <p>Okay. I'm using TinyMCE and MarkJS to highlight long words in the text. If words are longer than 6 letters they are marked.</p>
<p>I've put together a demo here: <a href="http://codepen.io/MarkBuskbjerg/pen/RomqKO" rel="nofollow noreferrer">http://codepen.io/MarkBuskbjerg/pen/RomqKO</a></p>
<p><strong>The problem:... | 3 | 1,042 |
How can i post data on a Website with android http client? | <p>I must make an android app, that can controll a playcar!
I have a seekbar and with this can i controll how fast it is!
And every time, it change the app should send the data on a website of a friend!
My Problem is that, if i try to test the app, the app crashs! It shows no fails it simply crash! Here is the code:</p... | 3 | 4,409 |
Checkbox unchecks automatically | <p>I am using the checkbox of the <a href="https://github.com/navasmdc/MaterialDesignLibrary" rel="nofollow">Material Design library</a> by navasmdc. </p>
<p>When the fragment with the checkbox is loaded the checkbox gets checked (thats correct) but then it immediately gets unchecked (that's not what I want to)</p>
<... | 3 | 1,258 |
Issue with BackStack method and ViewPager in android | <p>I have an activity which contains a framelayout. In it, I have a fragment which contains the ViewPager with two different fragments inside. When I push the button in the given fragment, I replace the framelayout container with a new fragment. Now when I press back the ViewPager view is not restored, it's gone. </p>
... | 3 | 3,376 |
Adding text moves entire div down several hundred px? | <p>I'm having a problem formatting my html page. I have two divs side by side (aligned that way by using "display: inline-block". When I add content to one of them, In this case, an h3 element with the word "Skills" in it, it moves the entire left div down by several hundred pixels. Why does it d... | 3 | 2,207 |
CSS rules not applied to elements appended from jquery | <p>I've search through the similar questions but none answered my problem. (all those problems seemed related to typos)</p>
<p>I'm just making this for fun. I'm creating a table using jquery based on json data. Problem is, the appended table rows don't inherit any of the CSS rules. I feel like I've read about the ca... | 3 | 1,274 |
Unable to control elements of another fxml file through another controller | <p>I am working on a project which deals with multiple fxml and corresponding controller files. I need to somehow get access to an fxml element defined in say <strong>A.fxml</strong> from the controller of <strong>B.fxml</strong> and use it.</p>
<p>I am not allowed to show the actual code.
However, for this purpose, ... | 3 | 4,912 |
ElasticSearch filtered query _search 400 error response | <p>I am trying to use filter with search query. Search requset works correctly without filter. But using filter I get 400 error as response.
This is type mapping:</p>
<pre><code>var mapp = new
{
mappings = new
{
posts = new
{
... | 3 | 2,415 |
IRepository and Related Data? | <p>a couple of weeks ago i just got a test for a job interview, the thing is that i've resolved almost everything except one point, that at this point, i guess it's impossible to resolve. but for sure i'm wrong.</p>
<p>This problem deals with related data. Our server API, IRepository, will only return a node with its... | 3 | 1,357 |
Red5 - Invoking client methods from application server doesn't work | <p>how would you invoke a client flex method from application in red5-service-1.0.5-RELEASE appliocation .</p>
<pre><code>and my jdk version is 1.8(64-bit).flex 4 ,as3
package org.red5.demos;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IConnection;
import or... | 3 | 2,084 |
TextView android:gravity set to center_horizontal not working correctly when drawn to a bitmap | <p>IMPORTANT:
I want to draw content of a View A to a bitmap and part of the View A is a TextView which text has to be centered horizontally. The View A is not displayed nor is part of another View.</p>
<p>QUESTION:
How can I tell the TextView to display the text correctly when it is drawn to a bitmap????</p>
<p>My b... | 3 | 1,845 |
Header is undefined, typescript | <p>It is a payment method. The headers type is undefined. I am new to typescript and cannot spot the exact error.</p>
<p>Here is the error, it points to the headers in the if condition.</p>
<p><em>Argument of type 'AxiosResponseHeaders | undefined' is not assignable to parameter of type 'Dictionary'.
Type 'undefined' i... | 3 | 3,010 |
Fatal error: Uncaught PDOException: SQLSTATE[42000] in DELETE | <p><code>Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1</code>.</p>
<p>I know there have been a lot of question with the same ... | 3 | 1,220 |
CRUD with table relationship using KTOR and EXPOSED | <p>I'm having problems with KTOR and EXPOSED for a crud using relationship between tables.
I configured my service as follows:</p>
<pre><code>class LegalPersonService {
suspend fun findAll(): List<LegalPerson> = dbQuery {
LegalPersons.selectAll().map { toLp(it) }
}
suspend fun insert(lp: Le... | 3 | 1,693 |
Pytest does not find pyYAML in Travis CI tests that have PyPI and conda package dependencies | <p>I am trying to set up automatic testing for <a href="https://github.com/valentinaschueller/scriptengine-tasks-ecearth" rel="nofollow noreferrer">my Python package</a> using Travis CI. My Python package depends on <a href="https://github.com/SciTools/iris/" rel="nofollow noreferrer">Iris</a> as well as other packages... | 3 | 1,257 |
Validation messages from custom model validation attributes are locked to first loaded language | <p>I am working on a multi lingual website using Umbraco 7.2.4 (.NET MVC 4.5). I have pages for each language nested under home nodes with their own culture:</p>
<ul>
<li>Home (language selection)
<ul>
<li>nl-BE
<ul>
<li>some page</li>
<li>some other page</li>
<li>my form page</li>
</ul></li>
<li>fr-BE
<ul>
<li>som... | 3 | 1,632 |
The values of a list are passing NULL in ASP MVC and EF | <p>I am developing an ASP .Net MVC 3 application using C# and SQL Server 2005. </p>
<p>I am using also Entity Framework and Code First Method.</p>
<p>I have some values of parametres in a form which I want to save them in a List.</p>
<p>I already did that but the problem now that when I save for the next time, the n... | 3 | 2,756 |
"encrypted" event not firing albeit feeding source buffer with cenc mp4 data | <p>I am trying to understand how DRM systems work so my journey begins by trying to play a cenc encrypted mp4 video using the Clear Key DRM system without using any library like dash.js or Shaka Player.</p>
<p>The first problem I encountered is that I do not always receive the "encrypted" event.
I receive the... | 3 | 2,279 |
Why does this program take too much memory? | <p>I'm solving a task from a high school programming competition. Here's a short description:</p>
<p>We have a grid with height h and width w. The grid is filled with chars '#' and '.'. Octothorps represent land and dots represent water. It is guarranted that the first and last row and column of the grid will be all do... | 3 | 1,550 |
Espresso / How can I move button state between activities in Espresso tests? | <p>I have experienced next scenario:</p>
<ul>
<li>each test in my test-project uses <strong>separate activity</strong></li>
<li><strong>test1</strong> (main screen) belong to <strong>activity#1</strong>, there is a <strong>button on this screen</strong> which can change state from <strong>STATE#1 (OFF) to STATE#2 (ON)... | 3 | 1,572 |
How to set programmatically QWidget in the center of the window in Qt? | <p>I have such code on Qt.</p>
<pre><code>wdgCenter = new QWidget(wdgMain);
wdgCenter->move(wdgCenter->parentWidget()->geometry().center());
wdgCenter->resize(QSize(170, 115));
welcomeLbl = new QLabel("Welcome to the Notes. Log in first.", wdgCenter);
welcomeLbl->setGeometry(QRect(QPoint(0, 0), QSize(1... | 3 | 1,138 |
R - mice - adding a column that sums columns with imputed values | <p>I have a database with missing data. I need to impute data (I am using mice), then create new columns based on the original columns (using the imputed data). It is these new columns that I need to do my statistical analyses with.</p>
<p>Specifically, my participants filled in several questionnaires using a 7-point ... | 3 | 1,619 |
iOS Post to Python Script on Google App Engine | <p>So...the story in the nutshell is that I had this all working using a Apache webserver running locally (using PHP as the backend). I then wanted to get it running on a real web server and thought that Google App Engine would be nice. I got it working for the most part (local GAE app, with Cloud SQL) but could not ge... | 3 | 1,200 |
ModelState is invalid with DateTimeOffset + MVC4 | <p>I have an issue with model state with datetimeoffset.
Saw the answers at :<a href="https://stackoverflow.com/questions/15838760/modelstate-always-throws-invalid-datetime-error">Modelstate always throws invalid datetime error</a> but these doesnt solve my problem.</p>
<p>I have FromDate in model:</p>
<pre><code>[Re... | 3 | 1,352 |
Getting error in calling Store procedure | <p>I have a SP that works when I execute from SQL Server Management Studio. However, when I call from my code: </p>
<pre><code>Database.SqlQuery<Response>("cw.SpGetCompanyLimits @user_id, @company_id",
new SqlParameter("@user_id", userId),
new SqlParameter("@company_id", companyId)).Single();
</code></p... | 3 | 1,124 |
Angular JS- testing with Protractor: how to get an element when element doesn't have a tag-name? | <p>I am developing a test suite for my AngularJS app using <a href="http://www.protractortest.org" rel="nofollow noreferrer">Protractor</a> as my testing framework.</p>
<p>The app's menu is displayed at a fixed location across all pages of the site- when the user hovers the cursor over any of the buttons on the menu, ... | 3 | 2,704 |
Realm object predicate filter is invalid | <p>I use predicate to filter the converstions of models. I got the wrong result with Realm filter (0 models though there should be one). After that, I did another check and she showed me that there is one model with these criteria. Please tell me what may be wrong here.</p>
<pre><code>let checkConversations = Array(re... | 3 | 2,512 |
Trouble with recursive file search | <p>I am trying to write a script to recursivly scan a disk and return the total numbers of directories, files and also display the largest file found.
I know that there is much information to find on StackOverflow or on the web, but all the examples I found so far seem to have issues with really scan a disk recursivly.... | 3 | 4,575 |
Decorator pattern, EnumMap Populating is not working. Why? | <p>I want to give my characters a Role (like Driver, gunman etc...)with the Decorator design pattern.Not every Role needs all the skills, just some of them (for example, Partner In Crime Needs Startegy Only) .
But When I want to create the different roles, program crashes.(I give my characters to the exact decorator l... | 3 | 1,246 |
How to convert string to xml format in c#? | <p>I am working on c# web services and here I am getting string response and I have attached below exception.</p>
<p>Exception message:</p>
<pre><code>System.Xml.XmlException: Name cannot begin with the '{' character, hexadecimal value 0x7B. Line 3, position 14.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at S... | 3 | 1,323 |
cannot run maven sure fire (POJO) test | <p>strangely, this was working few weeks ago and my changes messed up working tree.
I feel like I am asking obvious question (that was answered many times on this site), but going no where after spending several hours on late friday and ran out of ideas.</p>
<ol>
<li>All my test files are in folder <code>src\test\java... | 3 | 2,410 |
Exact math with big numbers in Python 3 | <p>I'm trying to implement a system for encryption similar to <a href="https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing" rel="nofollow noreferrer">Shamir's Secret Sharing</a> using Python. Essentially, I have code that will generate a list of points that can be used to find a password at the y-intercept of the g... | 3 | 1,236 |
Pure CSS3 icon without nested SPANs | <p>I'm creating pure CSS3 icons. The way I'm doing it now requires me to have multiple levels of nested SPANs in some cases.</p>
<p>The parent SPAN is used in most cases for the icon's background. Then I use :before and :after to insert more elements.
If I need more than two additional elements, I need to put more SPA... | 3 | 1,994 |
FloatingActionButton and EditText not clickable | <p>I am trying to do a group-message of sorts with and I'm currently trying to get my layout working.I have a fragment that is used for the messaging so that users can use a side menu to switch between things.</p>
<p>My problem is that the keyboard does not come up when i click on the edit text field. and that noth... | 3 | 2,169 |
Get string between 2 words, that contain this words inside him too | <p>I have strings, and i want to find in them 2 words: '<strong>start</strong>' and '<strong>end</strong>'. </p>
<p>'<strong>start</strong>' and '<strong>end</strong>' always come together (maybe i will have another characters between them, but if i have '<strong>start</strong>', i will have '<strong>end</strong>' too... | 3 | 1,242 |
RecyclerView scrolls when click on item Android | <p>I have implemented RecyclerView with changing backround when clicked on an item. RecyclerView contains only TextView. Sometimes when I click on an item the recyclerview scroll little bit. Strange is, that recyclerview behave like this, sometimes is everything OK. I am not sure why the RV is acting like this.</p>
<p... | 3 | 2,263 |
How to make a percentage appear in the other input bar? | <p>I'm trying to add JaveScript to my html input bars, what I want is for when someone enters a certain amount of money in one an equivalent amount of percentage will automatically appear in the other. For instants: typing 6000 in one box will cause the other to show 6%. </p>
<p>const btnOne = document.querySelector('... | 3 | 1,233 |
Tableview unable to reload with correct data | <p>I have a tableview which is part of a navigation controller that returns a list of questions.</p>
<pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for:indexPath) as! AnswerTableViewCell... | 3 | 1,111 |
How can I add custom urls to datatables | <p>I went from using thymeleaf tables to using datatables in my code. I have been trying to find a way to add a button into the tables row so that it is relational to the id of that row. For example in thymeleaf I use</p>
<pre><code><a th:href="@{'/flash/' + ${flash.flashcard_id}}"><button title="View" data-t... | 3 | 1,993 |
Entity Framework - Cannot create multiple DbContexts that reference the same table. - Workaround | <p>As per the title, the scenario is: one c-sharp project, with two folders, each containing two EDMX contexts...</p>
<blockquote>
<p>Myproj\NSOne\ModelOne.edmx, Myproj\NSTwo\ModelTwo.edmx;</p>
</blockquote>
<p>Generally this works well, until you share the same table across both contexts. No problem at design time... | 3 | 1,073 |
Obtaining totals from properties of parallel arrays in nested objects | <p>I'm trying to obtain totals from properties that exist in objects in 'parallel' nested arrays. The data describes exercise sets.</p>
<p>I'd like to populate the "totalWeight" fields with the sum of weight lifted for each exercise. The data structure is below. The total should be the "setNum" of the "reps" values x ... | 3 | 3,080 |
WePay embedCheckout with c# | <p>Hello i try to create an embed payment in my web site with Wepay.</p>
<p>In PHP the code example is </p>
<pre><code><?php
// WePay PHP SDK - http://git.io/mY7iQQ
require 'wepay.php';
// application settings
$account_id = 123456789; // your app's account_id
$client_id = 123456789;
$clien... | 3 | 1,128 |
Why is the custom pie chart not displaying? | <p>Enter text, push button, why does the pie chart does not display?</p>
<pre><code>import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.*;
import javax.swing.border.TitledBorder;
public class PieChart extends JFrame {
private ... | 3 | 2,226 |
How to map java enum to postgreSQL enum for conditional select query | <p>I am using PostgreSQL and java for building the backend of an application.</p>
<p>In PostgreSQL, I have used an enum here.</p>
<p><a href="https://i.stack.imgur.com/kaMrQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kaMrQ.png" alt="enter image description here" /></a></p>
<p>and in java I have ... | 3 | 1,188 |
HotChocolate distinct values from filtered result set | <p>I have a sql table looking like this:</p>
<div class="s-table-container">
<table class="s-table">
<thead>
<tr>
<th>ID</th>
<th>Product</th>
<th>User</th>
<th>Status</th>
<th>CreatedDate</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Cheese</td>
<td>John</td>
<td>New</td>
<td>2022-02-07</td>
</tr>
<tr>
<td>2</td>
<t... | 3 | 1,528 |
pass a Json complex object to a HttpPost Call | <p>So, I'm totally new to web-developing and I have this quite complex object with a lot of fields filled by a JavaScript function.
I need to pass all this data to a C# <a href="https://i.stack.imgur.com/xgui2.png" rel="nofollow noreferrer">HttpPost Call</a>.
I used JSON.Stringify to transform all my data in a string a... | 3 | 15,722 |
Using RadioButton with RadioButtonGroup in a DataGridColumn (in a quiz application) | <p>I am having some issues to properly use several RadioButton components along with a RadioButtonGroup in my quiz application (when they are rendered via ItemRenderer under DataGridColumn).</p>
<p>The quiz page displays a question along with 4 possible answers which represented by RadioButton components (tied with a ... | 3 | 1,366 |
java.sql.SQLException: Can not issue data manipulation statements with executeQuery() in java servlet program | <pre><code>public class CreateAccount extends HttpServlet
{
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
Connection con=null;
PreparedStatement pstm=null;
PreparedStatement pstm1=null;
PrintWriter pw=resp.getWriter()... | 3 | 1,260 |
How to pass String(phone number) for Quickreply? :D | <p>I have a problem(again)...now i want to pass a String from one Activity to another.</p>
<p>The first Activity is SMSReceiver, i make a ListView for contact's number and message's here.</p>
<p>This is the complete code :</p>
<pre><code>public class SMSReceiver extends BroadcastReceiver {
private static final int ... | 3 | 2,758 |
Why are no results detected in my searchbox? | <p>can someone help me to detect the issue of my searchbox. I made a searchbox in javascript that proofs the input with a defined keyword list. If a word is matching, then the "HARMI-SOIL 8.0/15 Result Box" should show up, if it does not match the Result Box should stay hidden (display:none).</p>
<p>My Issue ... | 3 | 2,789 |
Crash on Android arising from mono for using ParallelTask and ConcurrentStack usage | <h3>Description</h3>
<p>I am getting a crash from mono, from the logo I dont get anything specific which I can change in the code</p>
<pre><code>[] * Assertion at /Users/builder/jenkins/workspace/archive-mono/2019-06/android/release/mono/metadata/sgen-tarjan-bridge.c:1140, condition `xref_count == xref_index' not met, ... | 3 | 4,432 |
Grouping Table Data As Column Headers on Excel Sheet | <p>I have a Questionnaire application that I am building for one of our teams and I have having an issue with making the report like they would like it (if at all possible). What I currently have is: </p>
<pre><code>var completedSurveys = (from s in db.SurveyResponses
join d in db.D... | 3 | 1,541 |
Flexbox challenge: how to get row wrapping with children identical and uniform margins in full rows | <p>Ok, so I want to use flexbox to create a grid of perfectly uniform children that uses the screen size to determine the width of the children and how many to place on a row.. </p>
<p>Things I want to be uniform: </p>
<ol>
<li>The width of all children. The should be identical in all rows and
determined by "full" r... | 3 | 7,669 |
How to select bootstrap dropdown menu? | <p>I want to show the selected dropdown menu in top(dropdown title). I can show selected item in title when they are in list. I do following </p>
<pre><code> <li class="dropdown"><a class="dropdown-toggle toggle2" data-toggle="dropdown" href="#">Meterial Type <span class="caret"></span>... | 3 | 1,330 |
how to sign up to parse.com with profile picture in android | <p>I want to sign up with parse.com user , I tried signup firstly with parsefile (profilePicture) but I got exception "java.lag.illegalStateException: Unable to encode an unsaved parsefile" with this code , </p>
<pre><code>final ParseUser UserObject = new ParseUser();
UserObject.setUsername(userModel.getUsername());
U... | 3 | 1,444 |
Using Rails form helpers with Mongoid | <p>I'm trying to build a new Rails app with MongoDB using Mongoid as the ORM. The authentication is handled by the sorcery gem.</p>
<p>I'm getting the following error in my Users#new view.</p>
<p><code>undefined method 'password_confirmation' for #<User:0x007feff2a23890></code></p>
<p>My model looks like this.... | 3 | 1,261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.