title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Dynamic hide/unhide tab regarding a form field value in django template | <p>I have a template that renders three forms in tabs.</p>
<p>The third form is hidden and I want to dynamically in if a value in a field (having choices via drop down) of the second form is selected.</p>
<p>When I select the option <strong>b-option</strong> on the second form, I want to unhide the third tab.</p>
<... | 1 | 2,037 |
cuda global and shared memory access time | <p>Recently I am studying about CUDA. I want to know about CUDA memory access times.</p>
<p>In, CUDA Programming Guide written memory access times:</p>
<ul>
<li>Global memory access time is 400 ~ 600 Cycle</li>
<li>Shared memory( L1 Cache ) access time is 20 ~ 40 Cycle</li>
</ul>
<p>I think that Cycle is same as clo... | 1 | 1,767 |
Show/hide password with materialize css is crashing responsive input | <p>I'm using a form with materialize css. I have a link with my login project here: <a href="http://clients.paulofrutuoso.pt/login.html" rel="nofollow">http://clients.paulofrutuoso.pt/login.html</a> I want to put a show and hide password in the form. I'm using this example: <a href="https://github.com/cloudfour/hideSho... | 1 | 1,432 |
jQuery Slider, Combined Values - Having difficulty with Small Increments | <p>I have designed a jQuery Slider Control that takes a 'pool' of points, and allows them to be distributed between multiple sliders. It works pretty well, except that I am having some problems with very small overflow increments. </p>
<p>Basically, it is possible to make adjustments in large quantities based on mouse... | 1 | 2,480 |
C quick sort character array into alphabetical order | <p>I am fairly new to C and doing this as an exercise. The code compiles and runs before hitting a runtime error Abort trap: 6. I have tracked the bug to the counter <code>j</code> on the second call to the second recursive call meeting <code>i < last_line</code> going out of bounds. I cannot see the error in the co... | 1 | 2,050 |
Node access multiple databases | <p>I want to connect to different databases on server side so I can perform queries that include those two databases using node.</p>
<p>I have a <code>config.js</code> like this:</p>
<pre><code>module.exports = {
database: {
user: 'brunojs',
password: 'bdpf5',
connectString: 'localhost:152... | 1 | 1,067 |
Selenium Webdriver (Ruby) : Cannot click on button - element not found | <p>This is the page code:</p>
<pre><code><div class="modal-buttons">
<button class="button-orange" ng-click="cancel()">
<span>
Cancel
</span>
<span class="icon cancel"></span>
</button>
<button class="button-orange" ng-clic... | 1 | 1,525 |
implementing Android login features for new Firebase | <p>I'm trying to update my android code in the new Firebase after May 2016's update, but am running into issues. Previously my user create worked fine with </p>
<pre><code> Firebase ref = new Firebase("https://project.firebaseio.com");
ref.createUser(email, password, new Firebase.ValueResultHandler<M... | 1 | 2,531 |
How to do click event on menu item? | <p>I am entering all the data in TextBox,when i press the submit button it is working but I am doing same thing on Menuitem button then it doesn't work.
My code is:</p>
<pre><code>@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.i(TAG,"Information - onCreate()... | 1 | 1,941 |
How do I view text files in a bootstrap modal? | <p>I am working on a php web application whereby, a list of files(text) are displayed in a tabular form with buttons to view ,edit or delete each file.</p>
<p>On click of the view button of any file, it should display a bootstrap modal with the content of that particular file . I have not been able to achieve that so... | 1 | 2,244 |
Java: How to post this XML request? | <p>i'm working with SOA using WebServices.
So i need to send a XML request to receive another XML with the response.</p>
<p>I create this class:</p>
<pre><code>package com.ws.test;
import java.net.*;
import java.io.*;
public class SendXML {
public static void main(String[] args) {
try {
St... | 1 | 1,541 |
Resizing window with Win32 API | <p>i'm writing a program with the Win32 API just to get a hang of it and have come across this annoying problem. After a little while of resizing the window minimizes and after bringing it up again it's visible but non-clickable and clicking on it just activates what's on the window below it. The only solution being ex... | 1 | 3,565 |
Maven refuse to download aar packaged dependency from remote repository | <p>I want to use this android dependency in my java program:</p>
<pre><code>http://jcenter.bintray.com/com/o3dr/android/dronekit-android/2.9.0/
</code></pre>
<p>so I added all the plugins & repositories into my maven pom file:</p>
<pre><code><repositories>
<repository>
<id>central&l... | 1 | 1,222 |
Running test classes in parallel with @Factory in TestNG | <p>There are 5 test classes in total. Each of them are initialized using @Factory(dataprovider = "data"). What I want to achieve is, the test methods in each test class should run in parallel with the dataprovider instance. Also, the test classes should be running in parallel. </p>
<p>Something like the following. Tes... | 1 | 1,287 |
Best practice to store password in xml security-context.xml or database? | <p>Good day developers.
I have question. In my web application I use spring security. I have 2 simple ROLE: User, Admin. For each of those rules I have his own password because the all have different access to my web-app. So I store all passwords now in security.xml in sha-256 hash encoding: </p>
<pre><code> <se... | 1 | 1,539 |
How to make tree from child of parent categories? | <p>I have a problem when i want to create tree structure in my data this is my data for sample </p>
<pre><code>$categories = array(
array(
'id' => 2 ,
'name' => 'banana',
'parent' => 1
),
array(
'id' => 1 ,
'name' => 'fruit',
'parent' => 0
... | 1 | 2,028 |
Symfony 4 get user Entity by id | <p>I'm trying to make a simple Many-To-Many relation, the goal is to Add a friend into the Database.</p>
<p>I'm trying to add a friend using my Controller but i can't find a way to get User entity using the ID.</p>
<p>Following the example in the docs:</p>
<pre class="lang-php prettyprint-override"><code> /**
*... | 1 | 1,335 |
Angularjs Multiple Directives Asking For Transclusion when lazy loading | <p>I'm trying to setup a simple angularjs app using <a href="https://github.com/angular-ui/ui-router" rel="nofollow">ui.router</a>, <a href="https://github.com/ocombe/ocLazyLoad" rel="nofollow">ocLazyLoad</a>, <a href="http://foundation.zurb.com/" rel="nofollow">Foundation</a> and <a href="http://pineconellc.github.io/... | 1 | 1,649 |
Print the page and close it | <p>How can I print the page and close it automatically?</p>
<p>I open a new window/page with button click:</p>
<pre><code>protected void ASPxButton_GenerOrd_Click(object sender, EventArgs e)
{
string AdrUrl = "Print_Ordo.aspx?SoinId=" + Soin_Id + "&SelId=" + TempId;
ClientScript.RegisterStartupSc... | 1 | 1,237 |
Spring Boot -> UnsatisfiedDependencyException | <p>I'm trying to activate security with Oauth2 + JWT, but I'm not succeeding. When I try to run the application in Spring Boot, it's returning this error: Unsatisfied dependency expressed through field 'authenticationManager', I searched the internet and did not get something to help me.</p>
<p>I'm using Spring Boot: ... | 1 | 2,926 |
XmlDocument sort nodes by the inner text value of a child | <p>i want to sort the nodes called ImageInfo by the number in the pos node because i have buttons that change the position up or down and i need to sort the ImageInfo node in the correct order when the pos has changed.</p>
<p>i apologise ahead for not having any c# code but i assure you that i have tried so many diffe... | 1 | 1,640 |
WMI throwing Exception "Invalid Query" on second attempt to query the same server | <p>I have a following code, almost all the time this code works for most of my server, but for some specific servers, it just fails on second part of query. this code query the SQL Server Service First and in second part it queries the SQL Sevrer Agent Service.</p>
<p>I have tried all possible combination of creating ... | 1 | 1,059 |
maven run junit test | <p>I'm having trouble compiling and running JUnit tests using a maven project.</p>
<p>In the pom.xml I added those lines to configure the surfire plugin:</p>
<pre><code><plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<ver... | 1 | 1,808 |
MySQL Order from a starting value | <p>On a product page I have a dropdown that lists current colour options associated to product page. </p>
<p>In this example, the product page SKU is 250E and it available in:</p>
<pre><code>GREEN
BLACK
</code></pre>
<p>If the customer selects GREEN, then I want to run a MySQL command that will change the data to sh... | 1 | 1,382 |
retrieving direct messages twitter api | <p>I want to retrieve direct messages from twitter using TwitterAPIExchange.php. The settings in my application are: write/read and direct messages. What I am missing? Merry Christmas</p>
<p>Updated Code</p>
<pre><code> $settings = array(
'oauth_access_token' => $accessToken,
'oauth_access_token_secret' =>... | 1 | 1,301 |
Cannot use JSX unless the '--jsx' flag is provided when "jsx" is "react-jsx" | <p>typescript throws:</p>
<blockquote>
<p>Cannot use JSX unless the '--jsx' flag is provided.ts(17004)</p>
</blockquote>
<p>After changing <code>tsconfig.json</code> <code>jsx</code> to <code>react-jsx</code>, jsx works. <code>yarn start</code> changes tsconfig.json to <code>react-jsx</code> again.</p>
<p><code>react-s... | 1 | 1,256 |
(unittest) Testing Flask-Security: Cannot get past login page | <p>I'm trying to add tests to my basic app. Accessing everything requires login.</p>
<p>Here's my test case class:</p>
<pre><code>class MyAppTestCase(FlaskTestCaseMixin):
def _create_app(self):
raise NotImplementedError
def _create_fixtures(self):
self.user = EmployeeFactory()
def setUp... | 1 | 1,071 |
how to mark as serializable in dbml? | <p>I need Linq & Serializable, so i use autogenerate dbml and add Seriable. I only need the "Dvd table" being Serializable, however there is <</p>
<p>Tried many combines, still fail for the error:</p>
<blockquote>
<p>Type 'System.Data.Linq.EntityRef`1[[CategoryList, App_Code.dpv5xabw, Version=0.0.0.0, Cultur... | 1 | 1,922 |
Login module control flag is not available in the JAAS config - Scala Kafka | <p>Running into issues when trying to use kerberos auth with connecting to Kafka. Using scala and my <code>jaas.config</code> looks something like this. </p>
<pre><code> KafkaClient { <br />
com.sun.security.auth.module.Krb5LoginModule required <br />
useKeyTab=true<br />
keyT... | 1 | 1,082 |
Conflict with Spring Framework and and Apache CXF dependencies - 'No Such Method' | <p>I am trying to integrate some functionality into my software that requires Apache CXF Bundle (2.7.18) for making SOAP calls to a certain set of web services. </p>
<p>My pom.xml file looks like: </p>
<pre><code><dependency>
<--This is the new dependency I am integrating into my software-->
<... | 1 | 1,716 |
Bluetooth Server Android - Client Java Bluecove. UUID? | <p>I'm writing an application to communicate between my smartphone and a computer using a bluetooth device.</p>
<p>I'm using <a href="http://bluecove.org/index.html" rel="nofollow noreferrer">Bluecove</a> to manage the bluetooth on the computer, and the android API for my android device.</p>
<p>However, when I'm debu... | 1 | 1,272 |
How to correctly implement and test Custom Lint Rules in Android Studio? | <p>I'm following <a href="http://blog.xebia.com/how-to-create-your-own-lint-rule/" rel="nofollow noreferrer">this tutorial</a> and <a href="https://github.com/imobile3/cassowary/blob/master/libcassowary/support/lint/android/src/com/imobile3/cassowary/NamingConventionDetector.java" rel="nofollow noreferrer">this Custom ... | 1 | 2,733 |
C++ plugin for Unity "EntryPointNotFoundExeption" | <p>I need some serious help here... I'm trying to either get my member functions exported so I can call them in C#</p>
<p><strong>WMIWrapper.h</strong></p>
<pre><code>#ifndef _WMIWRAPPER_H_
#define _WMIWRAPPER_H_
#include <Windows.h>
#include <sstream>
#include <iostream>
#include <WbemCli.h... | 1 | 3,217 |
Open Notification message from FCM as link/URL in Android Application if there is URL in the message of Notification | <p>PUSH Notification code using FCM sends title and message as notification text in Android and when i click on the Text, It takes me to the APP front page (in APP)
I am sending a URL as message in Notification so that someone clicks on the notification it "should open in app and open the appropriate page (as in the li... | 1 | 4,292 |
how to show dialog only once | <p>Hi i'm trying to create dialog contains two buttons [ GOT IT ! ] and [ DON'T SHOW ME THIS AGAIN ] i want when i click [ DON'T SHOW ME THIS AGAIN ] button dialog Completely closed And do not show again at application Reopen </p>
<p><a href="https://i.stack.imgur.com/dTgGw.png" rel="nofollow noreferrer"><img src="htt... | 1 | 1,028 |
Submit FORM on ENTER key pressed | <p>OS: Windows Mobile 5 / Compact .NET Framework (Form.AcceptButton() NOT available)<br>
I am showing a modal form with ShowDialog(). I want to be able to submit the modal form on hitting the ENTER key. I am able to grab the KEYDOWN EVENT when ENTER key is pressed.<br> Any other solution will be appreciated too.<br></... | 1 | 1,289 |
Detect touch event when onInterceptTouchEvent() used | <p>I am asking this rather complex question hoping that i would get an idea from you. </p>
<p>Here is the thing: I have created a custom list view class, the one above:</p>
<pre><code>public class FolderListView extends ListView {
private float xDistance, yDistance, lastX, lastY;
private int folder_index;
... | 1 | 1,248 |
kotlin hide soft keyboard on Android 8 | <p>We are trying to hide the soft keyboard during development. Translated we do not ever want to see it. Here is the configuration Nexus 9 API 28 Project SDK 26 Project is Kotlin Here is the code for the Manifest</p>
<pre><code><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.androi... | 1 | 1,535 |
main(String args[]) already defined in class | <p>i have been trying to create a little java program that all it does is allow the user to select a txt file and then to print out the file to a printer,</p>
<p>below is the code : i have tried to compile it but i get the error main(String args[]) already defined in class, this code was working before i added in the... | 1 | 3,663 |
getLatitude() , getLongitude() returns wrong latitude and longitude values | <p>This is the code i use to find my current location but it is not pointing the location accurately, it returns a location as 9.920473,78.102423 instead of 9.909076, 78.100758 </p>
<p>I could not figure it out where i am going wrong , please help me with suggestions.</p>
<pre><code> try {
locationManager ... | 1 | 1,240 |
How can I handle JMS redelivery into my Camel Route, but still allow message deletion | <p>I have a Camel Route that reads from an ActiveMQ JMS Queue, does some processing, and passes the result on to a remote destination. If the communications part of this process fails, I want to retry <em>indefinitely</em> (until the destination is "up"). I can handle this by making the route <code>transacted</code> a... | 1 | 1,758 |
Setting the language and region settings in a Windows Docker Container | <p>I'm creating a docker container based on the <code>mcr.microsoft.com/dotnet/framework/runtime:4.8</code> base image. </p>
<p>This image is set to <code>en_US</code>, meaning that all the Windows language and region settings and default location is set to United States. </p>
<p>What I need to do is to change this t... | 1 | 1,128 |
spotify/dockerfile-maven plugin: Could not build image: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection | <p>maven-plugin to build my docker image.</p>
<p>Whenever I run <code>dockerfile:build</code> </p>
<p>I always get this error :</p>
<pre><code>"failed to execute goal com.spotify:dockerfile-maven-plugin:1.3.6:build (default-cli) on project XXX: Could not build image"
"Caused by: com.spotify.docker.client.shaded.java... | 1 | 2,246 |
How to display the jquery mobile page in center of the mobile window? | <p>I just Want to display the page what I have created to display in at the center of the mobile window.</p>
<p>I Tried it like the following:</p>
<pre><code><div data-role=page id=dcr >
<div data-role=header data-theme="b" >
<a href="home.php" data-icon="home"><font size="1px">hom... | 1 | 1,768 |
How to use ACE editor to edit and save a file | <p>I'm a dummy in HTML.
In my project, I want to use ACE editor to allow the user editing and saving a file.
I succeed to load the file, and to open it with ACE editor.
The problem is how to save it.
For this part, I need your help.</p>
<p>Here is the code I wrote to use ACE.</p>
<pre><code><?php
if(isset($_POST["... | 1 | 1,875 |
auth component wrong redirect cakephp 2.3 | <p>my auth component in cake its redirecting wrong. The right path to go should be:</p>
<pre><code>localhost/tlfmovil/usuarios/index
</code></pre>
<p>but its redirecting to </p>
<pre><code>http://localhost/tlfmovil/tlfmovil/usuarios
</code></pre>
<p>if deactivate the auth component (no login, all access to my site)... | 1 | 1,516 |
Using JQuery to get the value of the unchecked checkboxes in a div | <p>I'm trying to store the <code>values</code> from a set of unchecked <code>html</code> checkboxes. I understand that <code>JQuery</code> does not have an :unchecked selector so I must invert the :checked selector. I've done this and I am getting the values of the unchecked boxes as well as a number of other values su... | 1 | 1,738 |
Can not set java.lang.Integer field id to org.hibernate.id.IdentifierGeneratorHelper | <p>I need to store some data in a MySQL-database using Jpa 2/Hibernate 3.5.1. For legacy reasons the table I want to store data in has a compound primary key. The first part of the primary key is of type INTEGER (auto-increment-value), the second part is of type BIGINT (Long in Java-code - to be set manually before per... | 1 | 2,147 |
RVM ruby on rails issue OpenSSL | <p>When I create a Rails app I am getting some errors and I have no idea what they mean or how to fix them. Instead of explaining I am going to output what is happening, I think this might be the best approach to getting help with this:</p>
<pre><code>j3@j3:~/code/rails_projects$ rails new first_app
create
... | 1 | 3,329 |
Laravel - fill up missing dates and counts from database | <p>I need to send number of views for each date based on dates that I get from <code>$request</code> . From my query in controller I get data for the charts that looks like this:</p>
<pre><code>[{"time":"2016-05-01","count":2},{"time":"2016-05-02","count":3},{"time":"2016-05-03","count":7},{"time":"2016-05-07","count"... | 1 | 1,345 |
Parsing issue warning with JSON | <p>I'm trying to read JSON data from a website. I'm using Dev C++ on Windows 10 with a mingw compiler. This is a JSON parser from a tutorial I'm trying to run in a static project: </p>
<pre><code>#define CURL_STATICLIB
#include <cstdint>
#include <iostream>
#include <memory>
#include <string>
#... | 1 | 2,378 |
How to parse XML from string in python | <p>I'm trying to parse an XML from a string in Python with no success.
The string I'm trying to parse is:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="UTF-8"?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nc="urn:ietf:... | 1 | 1,835 |
ASP.NET MVC - Order By Date | <p>I am trying to sort table (columns: ID, Name, SermonDate, SermonTitle, BibleReading, VideoLink, BulletinLink) by date (SermonDate) so the data with the newest date comes on top and display it in my MVC application. </p>
<p>After some researching, I've tried putting the below with reference to <a href="https://stack... | 1 | 1,918 |
DevOps - Process 'msbuild.exe' exited with code '1' in continuous integration build | <p>I have a continuous build task in Azure DevOps which builds the solution whenever code is pushed to repository. So my code is building and running fine on my local machine, but when it tries to build in devOps, this error comes,
"<code>Process 'msbuild.exe' exited with code '1'</code>".
and build fails.<br>
<b>Note:... | 1 | 5,073 |
xamarin auto layout is not working - it doesn't respect the constraints while it's fully constrainted | <p>I'm using the auto layout in storyboards in a Xamarin.iOS project.
why is my constrains not respected when I switch from Iphone4 to iPhone 5 or o Iphon6 etc. </p>
<p>I tried in all modes... I also tried to design in GENERIC mode and it the label, button are staying in fixed position on the Screen and it cut's off ... | 1 | 2,867 |
Only one tcp server allowed ESP8266 with Lua | <p>I am working on ESP8266 and i am trying to program with Lua. I tried to create TCP server,but i take an error message name "only one tcp server allowed" when i wrote sample code below. I create a server and I cant close.</p>
<p>How can I fix it?</p>
<pre><code>print("ESP8266 mode is: " .. wifi.getmode());
cfg = {... | 1 | 1,816 |
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally | <p>I wanted to carry out the run for my regression tests on Chrome browser hosted on the Linux platform (Red Hat Enterprise Linux Server release 7.0 (Maipo)). Following sample test was created for the same:</p>
<pre><code>import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.W... | 1 | 2,460 |
make: *** [Makefile:86: obj/image_opencv.o] Error 127 | <p>I am trying to install yolo library in my windows 10 environment, After cloning the repository from <a href="https://pjreddie.com/darknet/yolo/" rel="nofollow noreferrer">This</a> link and after installing the cygwin, I did try to make the source but got following error.</p>
<p><strong>Error:</strong></p>
<pre><c... | 1 | 3,905 |
ic_launcher_foreground.xml is having trouble finding several attributes while gradle build | <p>i just upgraded from android studio 2.1 to a stable 3.0 and i'm getting errors while making a new project on it (i am also new to android studio :D)
here are the errors am getting </p>
<ol>
<li>Error:(7) No resource identifier found for attribute 'fillType' in package 'android'</li>
<li>Error:(28) No resource ident... | 1 | 2,406 |
Qt call to update not triggering call to paintEvent() while drawing data from serial port to scrollArea | <p>I am newbie to Qt 5.1.0. My problem with Qt is showed directly as follows. Data from serial port is received by readdata(), then call the draw() in mainwindow.cpp to deliver the data to newpaint() in paint.cpp. Two classes are created in this project:class mainwindow is mainly responsible for receiving data from ser... | 1 | 1,226 |
Asp.Net open websocket as a client | <p>In my application I use SignalR for messaging through my clients. The application however has a websocket connection to another server for notifications like this:</p>
<pre><code>var wsURL = (isSecure() ? "wss://" : "ws://") + wsEndpointURI + "?token=" + token + "&lang=" + language
+ "&uid=" + wsUi... | 1 | 3,087 |
Implicit Declaration of function 'glBindVertexArrayOES' is invalid in c99 | <p>So I am building a system monitoring app for iPhone and iPad. Anytime I try to compile the application I am getting an error that says "Implicit Declaration of function 'glBindVertexArrayOES' is invalid in c99"</p>
<pre><code>#import "AMUtils.h"
#import "AppDelegate.h"
#import "GLCommon.h"
#import "GLLineGraph.h"
#... | 1 | 6,535 |
Creating sessions for my login page and counting number of unsuccessful login | <p>This works fine. Now I wanna create a session after user logged in and also redirect to security questions once the number of unsuccessful attempts to login is 3. How can I do that?</p>
<p>How to create a user login and logout session? And how to count the number of login attempts?
</p>
<pre><code>protected void ... | 1 | 1,092 |
Django. How to serve mp3 files? | <p>Recently I've had some trouble with serving .mp3 files in templates via audio tag and providing a download. I solved it though I guess the solution is poor. That's why I ask here. I'm using Django 1.4 Python 2.7.</p>
<p>Here is the way I did it (I've chosen to serve them like static files and provide download in an... | 1 | 1,407 |
C# MYSQL - Search filtering a datagridview with a combobox and textbox | <p>Hi I'm trying to search filter a <code>datagridview</code> by using a <code>combobox</code> and <code>textbox</code>.</p>
<p>I have successfully done so but it only works properly when I search for the ID column. Other columns just crash display the following message:</p>
<blockquote>
<p>You have an error in you... | 1 | 1,623 |
Make a carousel infinite or repeating | <p><a href="https://i.stack.imgur.com/8IleO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8IleO.png" alt="enter image description here"></a></p>
<p>I'm still newbie and I'm still learning javascript/jquery. I have a code here for my carousel that I need to make it an infinite or repeating carousel... | 1 | 3,864 |
Deploying rails with capistrano + Nginx + Passenger + MYSQL to VPS | <p>This is my first time deploying a rails app and I'm finding the process very frustrating. For work related reasons we are using Rackspace cloud with Ubuntu 12.04 LTS (Precise Pangolin) and MYSQL instead of the Heroku route.</p>
<p>I've been trying to figure this out for 2+ days and I'm finally turning to the commun... | 1 | 2,808 |
How to prevent same user logging in from different devices ? My app is paid , so I dont want credentials to be shared | <p>I am new to firebase , but I managed to develop an app using firebase
-email&password authentication
This app is for an organization's members so there is no sign up on the app , the organization gives me a list which I add to user list.My problem here is , I have only 45 registered users ,but there are almost ... | 1 | 6,216 |
A windows batch script open a file chooser dialog or drag-and-drop file to it | <p>I try to write a batch script that, when you drag and drop another file to it, it will do something. If you don't drop anything, just double click it, it will open a file selection dialog window.</p>
<p>For the first part, it's easy:</p>
<pre><code>@echo off
bin\dosomething "%~1"
</code></pre>
<p>For the s... | 1 | 1,117 |
Wordpress WP_Query $args, show published posts AND the current user's pending posts | <p>On my Wordpress website users can write their own posts on the group wall. I want to display all published posts on the group wall. I also want to display pending posts to the current user who is the author of these posts. Right now when the user submits a new post, there is no information displayed about it, they m... | 1 | 1,404 |
Image from database doesn't display in a django template even though the image is available when right-clicked "save as" | <p>I'm on development server and I'm trying to display an image in a template uploaded by user.</p>
<p>The image doesn't display even though it seems available to be saved. When I right-click "Save as", file name pops up in the window. </p>
<p>When I try to save the file to the hard drive it gives an error though.</p... | 1 | 1,176 |
ZF2 routing configuration | <p>I've just built a zf2 project and i'm having a configuration problem.</p>
<p>When i go to mydomain.com this routs as specified in configuration files to Application module, index controller, index action.</p>
<p>But If i type mydomain.com/otheraction this is not routed to Application module, index controller, othe... | 1 | 2,579 |
Need to add/remove class from TD of the table | <p>Need To Add/Remove Class from TD of table, based on button click. By Default all the TD will be hidden. While clicking button, i need to enable the respective TD alone.</p>
<p>JSFiddle : <a href="http://jsfiddle.net/eVj8V/2/" rel="nofollow">http://jsfiddle.net/eVj8V/2/</a></p>
<p>Code:</p>
<pre><code><html>... | 1 | 1,626 |
Rails Server Could not find a JavaScript runtime | <p>i am getting the following error. tried to search and try to install extjs, bundler etc gems still am getting the error</p>
<pre><code>harsha@harshamv:~/www/simple_cms$ rails s
/home/harsha/.rvm/gems/ruby-2.0.0-p247/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. Se... | 1 | 1,155 |
Do not allow user to click on one of the tabs | <p>I have 7 dates tabs in my screen. However, if the date falls on another month, I do not allow user to click on that tabs. I want to make them visible but not clickable.</p>
<p><img src="https://i.stack.imgur.com/tIogs.png" alt="This is how the tabs look like"> </p>
<p>This is part of my code: </p>
<pre><code>publ... | 1 | 2,406 |
2checkout authorization failed | <p>I want to implement 2checkout for my website. I am using a sandbox account and am testing the code on localhost. I have followed this tutorial <a href="https://github.com/2Checkout/php-examples" rel="nofollow noreferrer">https://github.com/2Checkout/php-examples</a>.
My code is more or less similar to the one on tha... | 1 | 2,154 |
How to iteratively plot different data as boxplots in seaborn (without them overlapping)? | <p>Is there a way to iteratively plot data using <code>seaborn</code>'s <a href="https://seaborn.pydata.org/generated/seaborn.boxplot.html" rel="nofollow noreferrer"><code>sns.boxplot()</code></a> without having the boxplots overlap? (without combining datasets into a single <a href="https://pandas.pydata.org/pandas-do... | 1 | 1,336 |
terraform keeps forcing new resource/force replacement for container definition with default parameters | <p>I am bringing up <code>aws_ecs_task_defintion</code> with following terraform configuration.</p>
<p>I pass <code>local.image_tag</code> as variable to control the deployment of our ecr image through terraform.</p>
<p>I am able to bring up the ecs_cluster on initial terraform plan/apply cycle just fine.</p>
<p>Howeve... | 1 | 6,346 |
NullPointerException from Hadoop's JobSplitWriter / SerializationFactory when calling InputSplit's getClass() | <p>I'm getting a <code>NullPointerException</code> when launching a <code>MapReduce</code> job. It's being thrown by the <code>SerializationFactory</code>'s <code>getSerializer()</code> method. I'm using a custom <code>InputSplit</code>, <code>InputFormat</code>, <code>RecordReader</code> and <code>MapReduce</code> val... | 1 | 2,078 |
Incorrect stack trace in core by uncaught std::exception | <p>There is my code:</p>
<pre><code>#include <string>
#include <tr1/functional>
using namespace std;
using namespace std::tr1;
using namespace std::tr1::placeholders;
class Event
{
public:
typedef std::tr1::function<void()> Handler;
void set(Handler h)
{
m_handler = h;
}
template<... | 1 | 1,461 |
h:dataTable binding => duplicate ID | <p>I have a problem using HtmlDataTable for viewing data from database.</p>
<p>When I create component, the table has sometimes (not always) <strong>twice number of columns</strong>.</p>
<p>It is shown correctly and after several refreshes (without move in dtb or something) there is for example 6 columns instead of ... | 1 | 1,530 |
<h:selectOneMenu>'s value not submitted correctly | <p>In my application, I have the following piece of code:</p>
<pre class="lang-html prettyprint-override"><code><h:form>
<h:panelGrid id="initPanel" columns="3">
<h:outputLabel for="type" value="*Type: " />
<h:selectOneMenu label="type" id="type" value="#{createNews.type}"
... | 1 | 1,344 |
Sending and receiving files with PHP SOAP and MTOM | <p>What I am trying to do is to send and receive files using MTOM with PHP and SOAP.
There is a SOAP webservice written in JAVA that I can play without problem, except for files.</p>
<p>I tried almost everything (patching Nusoap, changing the <code>__doRequest</code> in <a href="http://php.net/class.soapclient" rel="n... | 1 | 1,336 |
Unexpected effect of the default build configuration in xcode | <p>xcode one has the ability to set a default build configuration to use for xcodebuild. E.g. Release or Debug</p>
<p><a href="https://developer.apple.com/library/ios/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-MY_APP_HAS_MULTIPLE_BUILD_CONFIGURATIONS__HOW_DO_I_SET_A_DEFAULT_BUILD_CONFIGURATION_FO... | 1 | 1,875 |
Spring boot cannot start with aws starter dependency | <p>I have checked on other posts but version seems to play a role and my spring boot version is</p>
<pre><code>'2.1.8.RELEASE'
</code></pre>
<p>Spring boot does not start with the dependency
I have tried several options to get the application to start but get no success.
I only want to make use of S3 and RDS and mayb... | 1 | 2,345 |
pandas DF from numpy structured array: can't get unicode or string type for column (only object) | <p>I pull data out of a software system, which gives me a numpy structured array. I convert this to a pandas DataFrame to do work and then need to convert it back to a structured array so I can push it back into the original system. String/text data shows up in the array as a unicode column and gets described as an obj... | 1 | 1,039 |
How to by default Open expand Expandable Listview Groups | <p>Hi i am beginner in android and in my app i need to add Expandable Listview on Scrollview </p>
<p>I have added and implementing functionality like below for adding ExpandableListview on Scrollview now it's working fine </p>
<p>But according to my Case by default Expandable ListView groups need to expand how can i ... | 1 | 3,296 |
JSF 1.2 on JBoss 6 and EL expression not being resolved | <p>I have been hitting my head against the wall with this one for few hours already and I dont have a clue why this is happening...</p>
<p>Recently we have began process of moving from JBoss 4.2.3 to JBoss 6 Final. We are using JSF 1.2. I have sucessfully adapted application to new JBoss (mostly by removing some JARs ... | 1 | 3,333 |
How to make rts camera smooth when zooming in Unity | <p>right now I am trying to make rts camera zooming with panning when close to the ground. The problem I have now is that I use mouse scroll wheel for zooming and it makes the zooming feel like it's laggy. It looks like it jumps some Y value and teleports rather than smoothly move to the desired position. Also, I would... | 1 | 1,409 |
Getting error on $.mobile.changePage(): Uncaught TypeError: Cannot call method 'trigger' of undefined | <p>I have a JQM apps and I am incorporating Backbone.
Since my initial javascript code is huge, I am only extracting what I believe is problematic.
I am following the advices and calls steps cited here:</p>
<ul>
<li>jqm-config.js from <a href="http://coenraets.org/blog/2012/03/using-backbone-js-with-jquery-mobile/" r... | 1 | 1,153 |
How to add space between menu and dropdown submenu | <p>I'm working on a CSS3 full width dropdown menu, but some details i can't get right. :-(</p>
<p>What i try to achieve is this:</p>
<p><a href="https://i.stack.imgur.com/Egk0P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Egk0P.png" alt=""></a></p>
<p>You can see there is a little 20px space be... | 1 | 2,560 |
Issues with Spring Batch | <p>Hi I have been working in Spring batch recently and need some help.</p>
<p>1) I want to run my Job using multiple threads, hence I have used TaskExecutor as below, </p>
<pre><code> @Bean
public TaskExecutor taskExecutor() {
SimpleAsyncTaskExecutor taskExecutor = new SimpleAsy... | 1 | 1,614 |
Flutter/Firebase-How to perform delete document functionality when document ID is not known? | <p>I am new to flutter and developing an application in which I am displaying data in the from of ListView. There is a delete IconButton in it. I want that the selected ListTile data should be deleted. It is displaying data in the form of List but not deleting.
After I have added the deleteData() method. It is showing ... | 1 | 1,566 |
Why is this kernel module marked at permanent on 2.6.39 | <p>When I load this module:</p>
<pre><code>#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void) {
printk("<1> Hello world!\n");
return 0;
}
static void hello_exit(void) {
printk("<1> Bye, cruel wor... | 1 | 1,391 |
delete multiple checked files from internal storage | <p><strong>TL;DR</strong></p>
<p>How to delete multiple files, file names got from <code>util.myPos</code></p>
<hr>
<p><strong>FULL EXPLANATION</strong></p>
<p>I can delete one file by using <code>deleteFile("fileName")</code> method</p>
<p>But how do I delete multiple files at once?</p>
<p>All the names are list... | 1 | 1,212 |
button won't work in IE 11 | <p>I'm having trouble with the button on my form not working in IE 11.</p>
<p>You can view the page at brandinfluencegroup.com/test</p>
<p>I have created the form based on this script <a href="http://www.html-form-guide.com/contact-form/contact-form-attachment.html" rel="nofollow noreferrer">http://www.html-form-guid... | 1 | 3,143 |
Basic Spring MVC web app causes "ContextLoaderListener" error | <p>I'm trying to create my first Spring MVC web app. I've downloaded Spring Tool Suite and followed these instructions:</p>
<blockquote>
<p>To setup a new project in STS: Click File -> New -> Spring Template
Project -> Spring MVC Project To pull in dependencies and compile your
project: Right click your new proj... | 1 | 1,578 |
Javascript - get the radio button index number | <p>**I have a php page with an array of option like this... and I need to get by javascript **the index of the selected option. Above I put the code of the javascript that is not working... Any help will be appreciated! </p>
<pre><code> <input type="radio" name="option[1]" value="1">
<input type="radio" name=... | 1 | 1,059 |
how to vue-json-to-csv with vue | <p>Good afternoon everyone I'm having a problem converting json to csv, I'm using a lib I found at <a href="https://github.com/angeliquekom/vue-json-to-csv" rel="nofollow noreferrer">https://github.com/angeliquekom/vue-json-to-csv</a>, to be very interesting, but I'm having trouble passing an arrau for component.</p>
... | 1 | 1,354 |
Error in Heroku when deploying react (Node) app | <p>I'm having troubles deploying a react app to heroku. I'm using the following boilerplate as a starting point: <a href="https://github.com/reactGo/reactGo" rel="nofollow noreferrer">https://github.com/reactGo/reactGo</a>, but I combined it with an existing app of mine. I tested it locally and it runs/builds fine, but... | 1 | 1,935 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.