title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
php sessions username/password
<p>I'm only just starting to learn PHP and have done ok so far but I have confused myself with sessions. </p> <p>If someone could have a look at my code and let me know where i have went wrong and how i can fix it that would be fantastic!</p> <p>The username/password is hard coded to admin 123 as instructed. </p> <p...
1
1,577
How to trim the video file and convert to 20 seconds video with Swift?
<p>I want to trim a video file. I want to just pick the video from gallery and convert it to a 15 second video. I am following <a href="https://stackoverflow.com/questions/20244456/how-to-trim-the-video-file-and-convert-to-15-seconds-video-with-ios-sdk">this</a> <a href="https://stackoverflow.com/questions/20244456/how...
1
1,265
Server send RST to client when TCP connection max than 65000~
<p>I am work on a high load tcp application with Java Netty, which expect to arrive 300k concurrent TCP connections.</p> <p>It works perfect on test server, arrive 300k connections, but when deploy to production server, it only can support 65387 connections, after arrive this number, client will throw out a "java.io.I...
1
1,942
Request html label text from flask
<p>I develop a flask app that has a label in a html. The label text is inside a form and changed via javascript on user input. But if the form is submitted I call a flask route and want to get / request the label text. Request works with ranges or dropdown but it doesn't with the label for some reason. What am I missin...
1
6,669
Why the beresp.ttl is set to 0 when a Cookie is added to the request in Varnish?
<p>Ok, so I'm trying to make Varnish works properly and I've a weird behavior I can't explain (may be due by a lack of understanding).</p> <p>Here is what I'm trying to do:</p> <pre><code>GET http://scm.dev:6081/articles If-None-Match: "50a0794aaca51fce202e86da428b7dca9b4bbff93" </code></pre> <p>And I get:</p> <pre...
1
1,478
How to add a Hodrick-Prescott filtered trend on a pandas groupby?
<p>I'm currently stuck trying to get the <a href="https://www.statsmodels.org/dev/generated/statsmodels.tsa.filters.hp_filter.hpfilter.html" rel="nofollow noreferrer">Hodrick-Prescott</a> trend from different groups within a monthly dataset. Here's a replica of the dataset:</p> <pre><code>import pandas as pd import nu...
1
1,834
SonarQube is not showing any issues in the Dashboard after configuring projects
<p>I have installed sonar and configured mysql server in linux machine. </p> <p>Downloaded the sample project from sonar site</p> <ol> <li>Added the sonar details in settings.xml in .m2 folder</li> <li>mvn clean install - BUILD SUCCESS</li> <li>sonar:sonar - BUILD SUCCESS</li> </ol> <p>I have used the same pom.xml ...
1
1,991
Android JUnit testing ClassNotFoundException
<p>I'm trying to setup JUnit to test my activities for an android project. </p> <p>The Android Project runs ok on both an AVD and a device (there are still a few bugs left, which is why I want to add a few unit tests)</p> <p>I followed the steps from these websites (they are more or less the same, but I still checke...
1
2,902
Custom Adapter for Android fragment with ImageView and TextView
<p>i'm trying to implement something like this - <a href="http://www.tinyuploads.com/images/G0EY2I.png" rel="nofollow">have a look</a>.<br><br> This is my BaseAdapter class</p> <pre><code>public class ImageAdapter extends BaseAdapter { private Context mContext; LayoutInflater in = (LayoutInflater) mContext .ge...
1
3,069
Get a percentage range of a list in python
<p>I'm trying to find the data range of a given percentage in a list. I want my result to be the highest and lowest extremes of that range. This is the simplest workable solution I have so far. 'The string formatting is just for testing, when I implement this it will only return the desired values'. If you don't unders...
1
2,661
Parsing Json object from Foursquare api
<p>hi am trying to parse the output of json from foursquare api and i keep getting error here is my code</p> <pre><code>public FsqPlace getPlaceDetails(String reference) throws Exception{ FsqPlace fsqplace= new FsqPlace(); try { HttpRequestFactory httpRequestFactory = createRequestFactory(HTTP_TRANSPO...
1
3,202
Make one column of a Bootstrap row scrollable
<p>I have been trying to figure out how/where to place the overflow: scroll style to a bootstrap div element with no luck. My application is angularjs talking to a local MySQL server...so not easy to put up a jsfiddle of it...I will try to attach a picture and some code and hopefully someone can steer me in the right ...
1
1,695
How to remove transparency from my CSS3 menu
<p>I have the following Css setting for my menu:-</p> <pre><code>.wrap { width: 100%; margin-bottom: 1%; } nav { background: -webkit-gradient(linear, center top, center bottom, from(#fff), to(#ccc)); background-image: linear-gradient(#fff, #ccc); border-radius: 6px; box-shadow: 0px 0px 4px 2p...
1
1,095
Mysql: Select after Insert failing to find rows just inserted
<p>I'm not using transactions in my program, so I thought all database operations would be committed immediately.</p> <p>I have a php program looking for a value in a table and return the id if it is found. If it isn't found, it writes a new row. Later on it repeats and it should find the data I just inserted, but it ...
1
1,306
JPA find() does not load Entity @Id
<p>I'm starting to use JPA with the OpenJPA API, and i'm having a problem with the find(). Here are the tables:</p> <pre><code>CREATE TABLE compania ( ID int(11) NOT NULL, NOMBRE varchar(45) DEFAULT NULL, PRIMARY KEY (ID) ) CREATE TABLE modelo ( ID int(11) NOT NULL, ID_COMPANIA int(11) DEFAULT NULL, NOMB...
1
1,486
Testing javascript on subdomain with capybara, phantomjs and rails
<p><strong>Solution</strong></p> <p>This worked. The main essence is that I have to set the <code>Capybara.server_port</code> and <code>Capybara.app_host</code> and sign in manually in the sign in form. <code>Capybara.app_host</code> cannot be set with a dynamic subdomain unless its declared in a variable. All urls ha...
1
1,239
How can I change the encoding in Spyder to UTF - 8?
<p>I want to change the encoding in Spyder to UTF - 8. <a href="https://i.stack.imgur.com/iiCrp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iiCrp.png" alt="enter image description here" /></a></p> <p>Could someone explain me how I reach this, please? Thanks for helping me!</p> <p><strong>EDIT</st...
1
3,852
jQuery hide or show animation
<p>I am trying to copy that animation you see on <a href="http://www.themenesia.com/themeforest/truehost/faq.html" rel="nofollow">http://www.themenesia.com/themeforest/truehost/faq.html</a></p> <p>You click on the Plus symbol it shows the content and click it back (minus symbol) it hides the text.</p> <p>So, this is ...
1
1,116
Django/Tastypie Image upload - Invalid boundary in multipart: None?
<p>I am new to python/django/tastypie and am trying to do a file upload. I am getting a very strange (to me it is) error that I can not seem to figure out. Whenever I try to upload a photo via my rest client (CocoaRest Client), it bombs with the following error:</p> <pre><code>{ "error_message" : "Invalid boundary i...
1
1,179
Hyperledger Fabric 2.0.1: Error: Failed to connect before the deadline on Discoverer- name:
<p>I think Fabric is trying to discover peers and orderers as soon as they come to realize they do exist but not matching the machine IP address. Is there a way to specify the machine IP override for TLS enabled communication?</p> <p>This is the full log</p> <pre><code>2020-04-25T02:52:32.615Z - error: [ServiceEndpoi...
1
4,955
I can't insert a basic HTML whitespace without getting an error. Is there any other way?
<p>I have my implementation with spring, js, and other technologies, whenever i try to use a &nsbp; for white space it gives me the following error:</p> <p><strong>Caused by: org.apache.jasper.JasperException: /WEB-INF/views/entrada/list.jspx(94,67) The entity "nbsp" was referenced, but not declared.</strong></p> <pr...
1
1,209
How can I bind a command of a control in template to my ViewModel
<p>Right, what I have is:</p> <pre><code>&lt;Window x:Class="WpfGettingThingsDone.View.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ...
1
2,422
Replace specific color in bitmap with transparency
<p>I have a method to replace a pixel of one color with transparency</p> <pre><code>public Bitmap createTransparentBitmapFromBitmap(Bitmap bitmap, int replaceThisColor) { if (bitmap != null) { int picw = bitmap.getWidth(); int pich = bitmap.getHeight(); int[] pix = new ...
1
1,052
the controller "classname" has no event slot "methodname"
<p>I am getting this error </p> <p>the controller "classname" has no event slot "methodname"</p> <p>if i add "/" before application in fx:controller="application.MainController"> this error goes but creates class failed to load </p> <pre><code>/Users/myname/Documents/workspace/Javafx%20tesr/bin/application/Main.fx...
1
1,051
Using PassportJS with Connect for NodeJS to authenticate Facebook Users
<p>I'm trying to integrate passport into my nodejs server using connect, but can't seem to do it properly. All the guides/examples use expressJS, so I tried my best to reformat the code to work with my code, but I can't seem to get it to work. The related parts are written below. Does anybody have any advice on what mi...
1
1,552
Hangman Part 2 with Arrays Java
<p>Well now in class we were assigned another Hangman Project with the use of Arrays and we have to generate " _ "'s. I have successfully generated all the blanks when the user inputs the "wordAnswer". My problem is that I cant figure out how to replace the correct guess char with the blank " _ ". </p> <p>Here is my c...
1
1,288
MVC 3 location allow users in web.config
<p>I am trying to make authorize by using web.config. In my user registration, it is not using ASP.NET Configuration. I am handling the login page with database. I want to protect admin page as manual typing in address from other people. I put this code in Web.config.</p> <pre><code>//Web.config &lt;location path="Pro...
1
1,028
Native method not found: org.opencv.core.Mat.n_Mat:()J
<p>I'm using native android Opencv 3.1.0 library but always show error like this</p> <blockquote> <p>java.lang.UnsatisfiedLinkError: Native method not found: org.opencv.core.Mat.n_Mat:()J</p> </blockquote> <p>This my Code</p> <pre><code>package com.example.saya.cameraopencv; public class Hasil extends AppCompatAc...
1
3,286
Mocking Kotlin class not mockable
<p>I have the following class</p> <pre><code>class GlobalFieldTitleMapper @Inject constructor() { fun toTitleMap(rawApiResponse: List&lt;Map&lt;String, Any&gt;&gt;): HashMap&lt;Any, Any&gt; { val titles = HashMap&lt;Any, Any&gt;() val globalHashMap = rawApiResponse.findLast { it.containsKey("globa...
1
6,251
Refresh Component of Parent Page on Modal Window closing
<p>I have a modal window, simulation JavaScript confirm box. Depending on button click i.e., cancel button or ok button I want to refresh some component of the parent page. But unfortunately it is not working. As you can see from the code, I want to set values to the two textfields to "", hide a panel and set selected ...
1
1,344
Angular2 + ng-bootstrap Example
<p>I started to learn Angular2 and I want to use ng-bootstrap in my project. However, I could not make a working project. It fails on importing ng-bootstrap. Since I am a beginner, I don't know if the problem is because of the code or something other that I made wrong. </p> <p>Can you provide me a working <strong>and ...
1
1,351
Filter based on combination of multiple select and single select elements
<p>I want to filter (show/hide) elements by class. I want to have lets say 5 filters working together.</p> <pre><code>&lt;select id='filter4'&gt;...&lt;/select&gt; &lt;select id='filter5'&gt;...&lt;/select&gt; &lt;select id='filter6'&gt;...&lt;/select&gt; &lt;select id='filter7'&gt;...&lt;/select&gt; </code></pre> <p...
1
1,173
Python flask upload file using ajax request.files empty
<p>I am trying to upload an image about 1.62MB to an end point written using flask. the request.files object is always empty. I've checked the following questions but no luck:</p> <ul> <li><a href="https://stackoverflow.com/questions/50108907/flask-request-files-is-empty">Flask request.files is empty</a></li> <li><a h...
1
1,508
iPhone - Trying to Copy sqlite Database to Documents Directory - copies blank version
<p>I have an sqlite database called 'ProductDatabase.sql', which I have copied into my applications project directory:</p> <p>/Users/jacknutkins/Documents/TabbedDietApp/TabbedDietApp/ProductDatabase.sql</p> <p>In the applications app delegate class I have this piece of code:</p> <pre><code>- (BOOL)application:(UIApp...
1
2,454
Using variable in sql postdeployment build script?
<p>What I would like to be able to do, is to be able to <strong>create a publising xml script in Visual Studio database project that defines a variable, that will be used to compose a script</strong>.</p> <p>My problem is that I get a Error: "SQL72008: Variable DeployType is not defined." if I don´t define the variab...
1
1,047
Caused by: org.springframework.expression.spel.SpelParseException: Expression [] @31: EL1043E: Unexpected token. Expected 'colon(:)' but was 'rcurly(}
<p>I went through links like: <a href="https://stackoverflow.com/questions/26275736/how-to-pass-a-mapstring-string-with-application-properties">How to pass a Map&lt;String, String&gt; with application.properties</a> before posting the questions, but this doesn't fulfill my requirements.</p> <p><strong>application.prop...
1
2,119
Problem running project after Identity scaffolding in ASP.NET Core MVC project on Linux
<p>I've tried adding </p> <pre><code>&lt;PackageReference Include="Microsoft.AspNetCore.Razor.Runtime" Version="2.2.0" /&gt; </code></pre> <p>However 2.2.0 is the latest version available at this time, which doesn't match the error. The error is still the same after rebuilding the app.</p> <p>project.csproj:</p> <p...
1
2,407
Can code-first Entity Framework do cross database queries with SQL Server DBs on the same box?
<p>I know there have been a lot of questions about Entity Framework doing cross database queries on the same server posted to <a href="https://stackoverflow.com/questions/610197/ado-net-entity-framework-across-multiple-databases">stackoverflow</a>. Mostly the answer seems to be 'no', and this link from <a href="http://...
1
1,145
IsBalloon property makes Windows Forms ToolTip position inconsistent
<p>When I set the <code>IsBalloon</code> property of a <code>ToolTip</code> control, and then use the <code>ToolTip.Show()</code> method to display it, the balloon's tail doesn't always point at the location I request. It seems like the first time I call <code>Show()</code>, the tooltip control appears with its top-lef...
1
1,236
drools.net Reading DRL file
<p>I am trying to run a simple application that uses drool.net. Whenever I execute, the application crashed at <code>builder.AddPackageFromDrl("DroolsApp.Rules.drl", stream);</code> The Error stated that NullReferenceException was unhandled and Object reference not set an instance of an object. I tried to change drl fi...
1
1,450
Handling Multiple Checkboxes with Material UI and Formik
<p>I have a form with a checkbox group containing 4 checkboxes within. I need to pass the value to my api on submit of button which is to be handled through Formik.</p> <p>There are a few conditions on clicking a particular checkbox:</p> <ol> <li>If Height is checked, rest all should be checked as well</li> <li>If Brea...
1
4,904
How do I set up a Selenium Grid Python test case to test across multiple machines?
<p>I have successfully set up SeleniumGrid to run my Python tests across multiple machines that have different OS and browsers. However, I am still having to write the same test case 3 times, once for each node, because the reference to the node is inside the test case.</p> <p>I've looked at all sorts of online sugge...
1
1,582
Can't sign cloudfront URLs using boto
<p>I've written the following code to sign URLS using boto, however, I'm unable to access the signed URLS. Any help would be greatly appreciated.</p> <pre><code>con = cloudfront.CloudFrontConnection( settings.AWS_USER_DETAILS.access_key_id, settings.AWS_USER_DETAILS.secret_key_id, ) identities = con.get_all_o...
1
1,609
cut/optimize radacct table (FreeRADIUS)
<p>I trying to optimize radacct table which grows up to 91628239 rows and growing. I decided cut a oldest part of table and putting it to archive db. I need to:</p> <ol> <li>save the auto_increment in radacct</li> <li>make a cut when radius is working</li> <li>leave all rows with active session</li> <li>move all rows ...
1
1,277
How can read checked row cell value in WPF DataGrid (Bind source from data context) using C#
<p>Here my DataGrid in wpfwin.xaml. I want to collect "Challan_No" value in list but i can't do this ..please help me </p> <p> </p> <pre><code> &lt;DataGridTextColumn Header="Chalaan ID" Width="Auto" Binding="{Binding Id, Mode=OneWay}"/&gt; &lt;DataGridTextColumn Header="Challan N...
1
1,024
Javascript Alert Window Redirects to Another Webpage
<pre><code> &lt;?php session_start(); include_once "connect.php"; $fullName = $_POST['fullname']; $userName = $_POST['username']; $emailAdd = $_POST['email']; $passWord = $_POST['password']; $query = mysql_query("SELECT * FROM users where USERNAME = '$username' "); $result = mysql_fetch_array($query); if($ful...
1
1,799
How to change content of div in a HTML after some time has passed and then start it again?
<p>I am currently creating an app which will be a kind of Digital Display on Android. My problem is I need to show an html page with more than one regions inside it. ( or boxes that are) I am at the moment already implement that but each of those regions have more than one item to put into them. Those switches between ...
1
1,282
Laravel, composer require laravel/ui, remove laravel/framework v7.25.0
<p>I have been trying to set up this code and composer give me following error when I run the command: <code>composer require laravel/ui</code></p> <p>I have been trying to search for solutions for this error, however, nothing really seems to work.</p> <p>I get the following error:</p> <pre><code> Problem 1 - Conc...
1
2,370
DropDownList OnSelectedIndexChanged event stops working when seemingly unrelated User Control is added
<p>I have a page with a repeater. Inside each item of that repeater are update panels, each containing a control:</p> <pre><code>&lt;asp:Repeater ID="Repeater1" runat="server"&gt; &lt;ItemTemplate&gt; &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&gt; &lt;ContentT...
1
2,415
React Native app stuck on blank white screen with remote debugging using Nuclide
<h4>Steps to Reproduce / Screenshots</h4> <p>Apply all operations from <a href="https://nuclide.io/docs/platforms/react-native/" rel="noreferrer">the instruction</a>:</p> <ol> <li><p>Create a blank React Native project with <code>$ react-native init [project name].</code></p> </li> <li><p>From the <a href="https://nucl...
1
1,081
Python argparse AssertionError
<p>I just started using argparse module. I wrote the following reduced snippet to demonstrate an issue I'm having.</p> <pre><code>from argparse import ArgumentParser if __name__ == '__main__': parser = ArgumentParser('Test argparse. This string needs to be relatively long to trigger the issue.') parser.add_ar...
1
1,064
Unable to link against boost libraries
<p>I can't get my g++ to compile and link a minimal boost co-routine program (and I guess other components as well) on my machine.</p> <pre><code>// example.cpp #include &lt;boost/coroutine/all.hpp&gt; #include &lt;iostream&gt; using namespace boost::coroutines; void mycorofunc(coroutine&lt;void&gt;::push_type &amp;...
1
2,771
Calling odbc_fetch_array after executing a stored procedure in PHP gives error [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index
<p>So, I'm trying to use ODBC to execute a stored procedure in an SQL database, but it returns the error</p> <pre><code>odbc_fetch_array() [function.odbc-fetch-array]: SQL error: [Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index, SQL state S1002 in SQLGetData </code></pre> <p>Here's the PHP part, ...
1
1,412
Angular 5: 'Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays'
<p>I have tried looking for answers in here, but havent found any that can be applied to me so here goes.I am trying to get a list of employments from .net backend and everyting is working fine until i try to *NgFor in the view.<br> I have tried adding for example 'employees.EmploymentList' to the response, but then I ...
1
1,684
got 302 on form update in laravel
<p>I am facing a 302 redirect issue while posting data in for updating everything updated successfully except image where i get 302 and my page redirected.</p> <p>here is my form blade code :</p> <pre><code>{!! Form::model($post, ['method' =&gt; 'PATCH','route' =&gt; ['posts.update', $post-&gt;id],'data-parsley-valid...
1
5,821
Deploying NestJS application on Elastic Beanstalk
<p>I am trying to deploy my NestJS application to AWS elastic beanstalk, but did not had any success, can someone please write step by step how can I achieve that?</p> <p><strong>Full explanation:</strong></p> <p>I have a nestjs app with typeorm but didn’t configured it to work with RDS, so we will leave it for now (ma...
1
1,240
jquery validate plugin - validate only if one of the field is not blank
<p><img src="https://i.stack.imgur.com/J59Rg.png" alt="jquery validate plugin - validate only if one of the field is not blank"></p> <p>I should be able to save the username without changing the password.and validate #frmMyprofile only if current password is not blank.How to do that?</p> <p><strong>Javascript Valida...
1
2,739
operator overload
<p>I am working on this project just trying to keep up my c++ knowledge. Anyways, I am getting many, many errors when i try to implement an operator overload. Not sure why.</p> <pre><code>#include "students.h" #include &lt;iostream&gt; #include "Quack.h" using namespace std; void main() { quack* classmates = new q...
1
1,381
Redirecting a user after container-based login using JAAS and JSF
<p>I'm trying to accomplish a <code>jsf2</code>-based form login where a user can go straight to his chosen URL after being redirected to the <code>login-page</code>. How can this be accomplished? My current settings are as following (using <code>glassfish 3</code>)</p> <p>Web.XML</p> <pre><code>&lt;login-config&gt; ...
1
1,210
Exporting data to Google Spreadsheet from Google App Engine (Java version)
<p>I am getting no where now. When I Google around to find a sample of "Exporting data to Google Spreadsheet from Google App Engine", I see a lot of Google Conversion API, Google Conversion API, Google Spreadsheet API and Google Docs API tutorials. But then they all deprecated from Google when I check at the Google sit...
1
2,206
[SOLVED]Django smtp gmail not working in production
<p>I'm using django to send email through gmail smtp. It only works, however, before deployment. In production or deployment whatever you call, when I try to send email it keep being loaded forever and only says 'Server Error 500'.</p> <p>Below is part of my <code>settings.py</code></p> <pre><code>EMAIL_BACKEND = 'dj...
1
4,522
Where should I look to solve a symbol lookup/undefined symbol with an automake/autoconf project?
<p>In one project, I have two <code>noinst_PROGRAM</code>'s defined. One of them works just fine, but the other is giving me the following message:</p> <blockquote> <p>/home/altern8/workspaces/4355/libgdata/test/.libs/lt-gdatacalendar: symbol lookup error: /home/altern8/workspaces/4355/libgdata/test/.libs/lt-gda...
1
1,598
react-native property function parameter is not passing through
<p>First off I want to say I am new to react-native and react in general so if I am doing things totally wrong, let me know.</p> <p>Currently I am building an application with a login function in react-native 0.48.4. First off I want to make a hard-coded login function before I am going to work with API calls, my proj...
1
1,515
Programming Problem - Flipping coins
<p>I need to optimize the following code to take less memory. I cant find out where the memory is being wasted. It is giving the correct results. The problem statement can be seen here <a href="http://www.codechef.com/problems/FLIPCOIN/" rel="nofollow">http://www.codechef.com/problems/FLIPCOIN/</a></p> <pre><code>impo...
1
3,422
python boto3 connection error with no apparent cause
<p>I'm hitting an error with code that connects to AWS using boto3. The error just started yesterday afternoon, and between the last time I didn't get the error and the first time I got the error I don't see anything that changed.</p> <p>The error is:</p> <pre><code>botocore.exceptions.EndpointConnectionError: Could ...
1
1,204
Trouble storing image path into MySQL
<p>I'm having troubles understanding the storing of images <strong><em>file path</em></strong> into MySQL database. But it is storing the images details as well as moving the image file into directory. I've tried many approaches but no luck. I'm a PHP novice.</p> <p><strong><em>Question:</em></strong> How do I properl...
1
1,106
Footer at bottom with css grid? Can't figure it out?
<p>I have looked at other tutorials on how to make the footer stick to the bottom with css grid when there is little content. But i can't figure it out.</p> <p>If you could help, that would be great. I'm learning css grid and i've spent days on and off trying to figure it out.</p> <p><div class="snippet" data-lang="j...
1
1,071
validating a form in jsp before submission
<p>I have a form in jsp, My input fields are also "required" but when I submit the form it does not block the submission if the required fields are empty. I don't understand it,please help thanks in advance.Here is my jsp form :</p> <pre><code> &lt;form id="addterminal" name="catForm" action="actions/Terminal.jsp" met...
1
1,083
Set textview and 2 buttons in a android layout
<p>Im trying to set one textview aligned on the left and two bottons aligned on the right as in the image. I'm using margins but I guess this is not the best solution and it'll change in different phones, anyway my second button doesn't appear in the app. This is the xml code I have:</p> <pre><code>&lt;LinearLayout ...
1
1,086
Why am I getting "No module named 'django_celery_beat'" after installing django_celery_beat to my virtual env and putting it in INSTALLED_APPS?
<p>I am working on a Django project, and need to run cron tasks periodically to go through and delete all outdated files. I tried this same method with django_extensions and crontab, but I keep getting this same error. Within settings.py, I have:</p> <pre><code>INSTALLED_APPS = [ 'django.contrib.admin', 'django...
1
1,278
My app won't show up on the chooser dialog for android.intent.action.VIEW with mime type video/* only on Marshmallow
<p>Basically when an app shares a video url my app is supposed to show up on the list but it doesn't. Neither does MXPlayer but the Google Photos media player shows up fine as well as allcast (which had a recent release to fix this). </p> <p>I wrote a quick app to test this issue, here are my manifest filters:</p> <p...
1
1,466
HTTP Error 400 running ASP.NET Core 2.1 React application
<p>I am developing ASP.NET Core 2.1 React application in Visual Studio 2017. Today I wanted to launch a previously launchable application from Visual Studio, but the error appeared:</p> <blockquote> <p>Bad Request - Invalid Hostname HTTP Error 400. The request hostname is invalid.</p> </blockquote> <p>After I had switc...
1
1,666
Unable to add and fetch custom claims values
<p>I am using mvc 5 with identity 2.0. I want use custom claim values over the application but I get null values. What am I doing wrong? </p> <p><strong>Updated code</strong></p> <p><strong>Login Code in account controller</strong></p> <pre><code>if (!string.IsNullOrEmpty(model.UserName) &amp;&amp; !string.IsNullOrE...
1
1,810
Refactoring large data object
<p><strong>What are some common strategies for refactoring large "state-only" objects?</strong></p> <p>I am working on a specific soft-real-time decision support system which does online modeling/simulation of the national airspace. This piece of software consumes a number of live data feeds, and produces a once-per-...
1
1,056
How to use a module 'fs' in Cypress?
<p>I want to import JSON data from my local repository.</p> <pre><code>var fs = require('fs'); var data = fs.readFileSync('./profile.json', 'utf8'); console.log(data); ... </code></pre> <p>However Cypress occurs this error:</p> <p><a href="https://i.stack.imgur.com/GYVoW.png" rel="noreferrer"><img src="https://i.stack...
1
1,193
Getting exception : selenium.NoSuchSessionException: Session ID is null. here i have used Localthread<webdriver> for parallel execution
<p>**Got below exception : org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()? Here i have used LocalThread for parallel test execution ,but while running multiple test within a class in one thread(not parallel execution) First test cases ran successfully and second and...
1
5,290
WMI: Get list of all serial (COM) ports including virtual ports
<p>I'm currently working on a little C# program to interact with an Arduino microcontroller. The program has a combobox where you can choose the COM-port. The µc is connected by USB and a virtual COM-port (CH340).</p> <p>I use the code below to fill in the avaible COM-ports to the combobox. </p> <pre><code>private vo...
1
1,163
Automatically align checkboxes in a bootstrap inline form
<p>I have the <a href="http://bootply.com/98180" rel="nofollow">following code</a>:</p> <pre><code>&lt;form class="form-inline"&gt; &lt;div class="row"&gt; &lt;div class="col-md-6"&gt; &lt;fieldset&gt; &lt;legend&gt;Form one&lt;/legend&gt; &lt...
1
2,924
SHA256 different values for same String
<p>I am generating the SHA256 of the following string</p> <pre><code>{ "billerid": "MAHA00000MUM01", "authenticators": [ { "parameter_name": "CA Number", "value": "210000336768" } ], "customer": { "firstname": "ABC", "lastname": "XYZ", ...
1
1,062
Entity Framework 6, eager loading nested relationship returns empty collection
<p>I have a domain model that looks like this (stripped of some unimportant properties)</p> <pre><code>public class User { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public virtual int UserId { get; set; } private ICollection&lt;Recipe&gt; _recipes; public virtual ICollection&lt;R...
1
1,273
How to get checked value of HTML Input Checkbox in Code Behind
<p>I am using a html input checkbox control in a modalpopup which runs a javascript function in the <code>onclick</code> event. Now my challenge is getting the value of the checked property of this control from code-behind to do some behavioral stuff. When I added the <code>runat="server"</code> property to it and wrot...
1
1,025
Index Error when running LDA in gensim
<p>I read the docs I have</p> <pre><code>corpusObj.readDocsSample(sampleFile) </code></pre> <p>Next,</p> <pre><code>dictionary = corpusObj.buildDictionary() </code></pre> <p>Then I build a corpus:</p> <pre><code>corpus = corpusObj.buildCorpus() </code></pre> <p>Definition of buildDictionary and buildCorpus:</p> ...
1
4,494
Codeigniter ajax country state dropdown is not working
<p>Hi I am having registration form which inlcudes countries and stated dropdown.Not able to get the states list after slecting countries.In Console getting response as page not found.Here is my code.</p> <p>Controller:</p> <pre><code>function signup() { $this-&gt;load-&gt;library('form_validation'); $this-&g...
1
1,672
How to efficiently select rows having a MIN date in postgres
<p>I need to quickly select a value ( <code>baz</code> ) from the "earliest" ( <code>MIN(save_date)</code> ) rows grouped by an their <code>foo_id</code>. The following query returns the correct rows (well almost, it can return multiples for each foo_id when there are duplicate save_dates).</p> <p>The <code>foos</code...
1
1,136
Make calculation in SQL select
<p>I want to consolidate values in my table using SELECT Query. My table has 5 Columns: Name, Date [max three dates (consecutives buisness days)], and three values in each day.</p> <p>I want an output like: <strong>strName, SUM(Value1 + Value2 - Value3) from Date0, SUM(Value1 + Value2 - Value3) from Date1, SUM(Value1 ...
1
1,563
scrolling doesn't work even when using <ScrollView> (Android Studio)
<p>I've tried every solution I could find on different sites, but couldn't find anything, hopefully someone here could help me. There are no errors, just doesn't work to scroll.</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-...
1
2,644
Gradle SourceSet IntelliJ vs. Eclipse
<p>I'm indicating a problem, when i import a gradle project, which is originally built with <em>Eclipse</em> ,into <em>IntelliJ</em>. In fact the project is a <em>gradle-project</em>, but when I import it into IntelliJ the IDE tells me that it deletes (some) duplicate content roots.</p> <p>I get a balloon - telling me:...
1
1,583
How to upload multiple images using Dio and multi_image_picker plugin in Flutter
<p>I want to upload multiple-images using Dio and multi_image_picker plug-in in Flutter.</p> <p><code>List&lt;Asset&gt;</code> this is the problem because I can't convert from <code>List&lt;Asset&gt;</code> to <code>List&lt;File&gt;</code> so if you have any solutions help me.</p> <p>try to use:</p> <ol> <li><p><cod...
1
2,638
Can anyone understand or read Microsoft anti-spam email headers?
<p>I am setting up a small online business and have used wix.com to create a website.</p> <p>I created some email triggers using the websites automations which send the emails on behalf of my email domain using ascendbywix.com.</p> <p>The customer receives the email saying it is from my business email.</p> <p>For all m...
1
5,603
set image after text box in zend form using zend decorator
<p>I am using zend form and zend decorator to create a form. and I want to set a image after a text box. like this: <img src="https://i.stack.imgur.com/6qguv.png" alt="enter image description here"></p> <p>I am using zend decorator but it is giving me like this:</p> <p><img src="https://i.stack.imgur.com/SaDJK.png" a...
1
3,794
Issue in php artisan config:clear in Laravel
<p>I run php artisan config:clear or php artisan cache:clear or composer dump-autoload But show this error:</p> <pre><code>PHP Fatal error: Uncaught ReflectionException: Class App\Console\Kernel does not exist in vendor/laravel/framework/src/Illuminate/Container/Container.php:767 Stack trace: #0 vendor/laravel/f...
1
1,312
WCF with netTcpBinding binding and maxReceivedMessageSize error message
<p>I'm trying to get my App.Config setup correctly to allow my NetTcp Service to return strings larger than 65536, because Im getting this error below</p> <blockquote> <p>The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property...
1
1,232
Request Errors not accessible in blade (Laravel 5.2)
<p>It had been many months since I'm using laravel but never faced such problem.</p> <p>I have made a simple Request class to validate the the update user request which works fine if validation rules are followed. If validation rule fails we should come back to the previous page and display all errors in html.</p> <p...
1
2,149
Vue component testing with Jest error, TypeError: Cannot read property 'name' of undefined
<p>I have a Vue component with the following template below. It receives an object as a prop. First, it is pulled from the backend on <code>created()</code> in <code>Admin.vue</code>, passed as an array to <code>OrderList</code>, looped over, then passed as an individual order to <code>Order</code>. The <code>ShowOrder...
1
1,828
MapStruct does not detect setters in builder
<p>I am building a simple REST service using spring. I separated my entities from DTOs and I made the DTOs immutable using <a href="https://immutables.github.io/" rel="nofollow noreferrer">Immutables</a>. I needed mapping between DTOs and DAOs, so I chose <a href="http://mapstruct.org/" rel="nofollow noreferrer">MapStr...
1
3,725
Managing database changes
<p>I'm starting to move more logic into the database, using triggers, views, functions, CTEs, etc. When plv8/json comes out for postgres, I can see myself putting lots of logic in there.</p> <p>I'm having problems with the "standard" way of doing database migrations in sequel and activerecord. Both sequel and activer...
1
1,734
Core Plot: Show yearly labels on the x-axis for daily values
<p>For the plot values in my Core Plot chart I am displaying <code>NSDate</code> based values on the <code>x</code>-axis. The values encompass many years and are plotted on a daily basis.</p> <p>I would like to display labels on the <code>x</code>-axis for each year or month, but not for each day. This is why I can't u...
1
2,033
How to save Django unsaved model with one-to-many relationship
<p>I have a Django 1.5 one to many relationship between 2 models. It looks something like this</p> <pre><code>class Team(models.Model): class Meta: league = models.ForeignKey(League,related_name="teams") ... class League(models.Model): ... </code></pre> <p>Each League can have one or more teams. I am...
1
1,050
notifyDataSetChanged not working in android
<p>The list view is not updating data when the notifyDataChanged() method called.</p> <p>In onCreate() method i initialized the the listview with no data.</p> <pre><code> ListView videoList = (ListView)findViewById(R.id.videos_list); videoList.setOnItemClickListener(listener); listAdapter = new PHV...
1
1,623
c# How to make that selected item from listbox will be shown in label?
<p>So I have a question, where to put that code in Windows Forms that it would be refreshed every time I select other item in listbox? I tried to put in listBox1, but it crash my whole program, I tried to put it in <code>public Form2()</code> but it show just first selected item in label4, and do not refresh after I s...
1
3,062