title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Twitter bootstrap image rotating (unwanted) | <p>I'm writing a project and I have 3 thumbnails per row.</p>
<p>Each one has this code:</p>
<pre><code><ul class="thumbnails">
<?php foreach($list_pjt as $progetto): ?>
<?= ($row_close_after_three_thumbs == 0) ? '<div class="row-fluid">' : '' ; ?>
<li class=... | 1 | 1,533 |
VisualStudio 2015 Update 2 Xamarin unable to connect to Mac OSX | <p>After upgrading my Visual Studio to Update 2, I tried to do my first steps with Xamarin.
However I am unable to connect my MacBook.</p>
<p>This is my Setup:
MacBook Pro with OSX 10.11.3
Windows 10 Enterprise - newest updates installed
Visual Studio Enterprise 2015 Update 2</p>
<p>Down below is the error I get when... | 1 | 1,174 |
Expected 3D (unbatched) or 4D (batched) input to [...], but got input of size [...] | <p>i tried to program an image-detection, if it's a dog or cat. I use about 25000 images from <a href="https://www.kaggle.com/competitions/dogs-vs-cats-redux-kernels-edition/data?select=train.zip" rel="nofollow noreferrer">kaggle</a>.
But I get the following error:</p>
<pre><code>---------------------------------------... | 1 | 2,664 |
How to redirect desktop users away from mobile site with PHP | <p>I am currently redirecting mobile users to <code>http://website/mobile/index.php</code> using a PHP script from <a href="http://detectmobilebrowser.com/" rel="nofollow">detectmobilebrowser.com</a></p>
<p><strong>Script</strong></p>
<pre><code><?php
$useragent=$_SERVER['HTTP_USER_AGENT'];
if(preg_match('/and... | 1 | 1,553 |
How to merge 2 XML variables in SQL Server 2008 | <p>Lets assume I have 2 XML variables in SQL Server 2008 with the following XML</p>
<pre><code>DECLARE @FIRST XML = '<DBPerson>
<firstname>John</firstname>
<lastname>Bob</lastname>
</DBPerson>',
@Secon... | 1 | 1,468 |
Angular2 @ TypeScript error rxjs/Subject:: filtering when user stops typing | <p>I am using Angular 2.0.0-beta.0 and TypeScript 1.7.5. while trying to change the clever filter on:</p>
<p><a href="https://angular.io/docs/ts/latest/guide/server-communication.html#!#more-observables" rel="nofollow">https://angular.io/docs/ts/latest/guide/server-communication.html#!#more-observables</a></p>
<p>The... | 1 | 1,498 |
Implement PBEWITHHMACSHA512ANDAES_256 of java jasypt in python | <p>I am trying to encrypt a password in python and decrypt it in java springboot application using the <a href="https://github.com/jasypt/jasypt" rel="nofollow noreferrer">jasypt library</a> through <a href="https://github.com/ulisesbocchio/jasypt-spring-boot" rel="nofollow noreferrer">jasypt plugin</a>.</p>
<p><strong... | 1 | 7,504 |
Send Email with codeigniter(configuration) from my own server | <p>In the past I have already send Email through the google smtp now I want to send Email from my own server.</p>
<p>I have followed <a href="http://ellislab.com/forums/viewthread/150003/#1055124" rel="nofollow">this example</a> to setup my email config file. This is how my email.php file looks like:</p>
<pre><code>$... | 1 | 1,038 |
phalcon framework webtools not working when creating models, views and controllers | <p>I'm having some problems while trying to get phalcon webtools working. </p>
<p>When using command line devtools I can create controllers and models without problems.</p>
<p>However, things aren't that easy with the webtools. </p>
<p>It correctly shows already created controllers and models:</p>
<ul>
<li>Controll... | 1 | 1,220 |
Managed Object Context not saving to persistant store | <p>I have a threaded operation that creates a new managed object, saves it to the persistant store, then passes the objectID of the new objected via NSNotification to the main thread for further processing</p>
<p>However, when I try to access the newly created managed object from the main thread all the values that I ... | 1 | 1,150 |
WPF Binding Confusion: Composite DependencyObject | <p>I have a DependencyObject class composition that looks like the following:</p>
<pre><code>public class A : DependencyObject {
public AB AB { get { ... } set { ... } }
public AB AC { get { ... } set { ... } }
}
public class AB : DependencyObject {
public string Property1 { get { ... } set { ... } }
... | 1 | 3,271 |
Cipher suite not available - how to add/enable? Tomcat SSL | <p>I have this list of enabled and supported ciphers in java</p>
<pre><code>-----------SUPPORTED CIPHERS-------------
Supported cipher suites:
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
SSL_DHE_DSS_WITH_DES_CBC_SHA
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
SSL_DHE_RSA_WITH_3DES_EDE_CBC_S... | 1 | 1,582 |
How to make my character walk properly? | <p>I'm making a small 3D scene and the character can walk by pressing the WASD buttons but the animations that are playing are not correct and the character turns around so it looks like he is moonwalking when moving.
<img src="https://i.stack.imgur.com/Icg1R.png" alt="enter image description here" /></p>
<p>The contro... | 1 | 12,989 |
How to resolve "org.apache.sling.servlets.post.impl.operations.ModifyOperation Unable to create resource" error in AEM6.1? | <p>I am getting this error in our production environment-</p>
<pre><code>*ERROR* [10.49.33.40 [1498065304267] POST /content/mywebsite/en/autodiscover/autodiscover.xml HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Unable to create resource named autodiscover.xml in /content/mywebsite/en/autod... | 1 | 6,912 |
AngularJS ng-model value is lost after custom validation directive is triggered | <p>I created a custom validation directive and used it in a form. It can be triggered with no problem, but after the validation is triggered, I found that the model value is just lost. Say I have</p>
<pre><code>ng-model="project.key"
</code></pre>
<p>and after validation, <code>project.key</code> doesn't exist in th... | 1 | 3,295 |
make loop in jquery lightbox | <p>Hello i'm trying to create loop for image gallery in jquery lightbox plugin <a href="http://leandrovieira.com/projects/jquery/lightbox/" rel="nofollow">http://leandrovieira.com/projects/jquery/lightbox/</a>. (when it reaches the last image show next button for first image, or when it is showing first image, display ... | 1 | 1,413 |
Unmarshal XML via JAXB | <p>I have a xml as follows:</p>
<pre><code><VisitorDataList>
<VisitorData>
<Attribute1List>
<Attribute1>
<Attribute1Name>name1</Attribute1Name>
<Attribute1Id>2</Attribute1Id>
</Attribute1>
<... | 1 | 1,176 |
React native animation progress bar | <p>I am trying to build a progress bar for my react-native project
It should be a generic component to be used in many places.
Please see my code:</p>
<p>The progress bar tsx:</p>
<pre><code>import React, { useEffect } from 'react'
import { Animated, StyleProp, StyleSheet, View, ViewStyle } from 'react-native'
interfa... | 1 | 1,834 |
Why does Perl's URI complain "Can't locate object method "host" via package "URI::_generic"'? | <p>HI, im trying to get the host from a url.</p>
<pre><code>sub scrape {
my @m_error_array;
my @m_href_array;
my @href_array;
my ( $self, $DBhost, $DBuser, $DBpass, $DBname ) = @_;
my ($dbh, $query, $result, $array);
my $DNS = "dbi:mysql:$DBname:$DBhost:3306";
$dbh = DBI->connect($DNS, $DBuser, $DBpass ) or die $DB... | 1 | 1,080 |
Uploading Files to db Rails 3 without using external gems | <p>I have a task where I need to upload a file (.txt) in Rails 3.2 without using any external gems to do the leg work(non negotiable I'm afraid) The file also needs to be saved to the database. I have the following code, however when I try to upload/create a new attachment using the form it comes back with the error;</... | 1 | 1,709 |
insert asp tags in innerHtml in a div | <p>I'm trying to do this kind of thing:</p>
<p>aspx</p>
<pre><code> <div runat="server" id="divAltriIndirizzi">
</div>
</code></pre>
<p>aspx.cs in Page_Load method</p>
<pre><code> StringBuilder sbDivIndirizzi = new StringBuilder();
for (int i = 0; i < dtInd.Rows.Count; i++)
{
... | 1 | 1,678 |
How to set Custom ActionBar to fixed top position inside ScrollView layout? | <p>How do I set this action bar in a way even when scroll the long data screen it keeps visible on the top of the screen?</p>
<p>toolbar.xml:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:orien... | 1 | 1,199 |
p:fileUpload method not fired | <p>I have a form with a p:fileUpload, and when I submit the form, all methods are not fired</p>
<p>This is my xhtml : </p>
<pre><code><h:form enctype="multipart/form-data">
<p:messages id="messages" showDetail="true"/>
<p:fileUpload value="#{uploadBean.file}" mode="simple" id="fileU... | 1 | 1,170 |
Session Timeout not working ASP.NET 4 | <p>We are having difficulty getting the Session Timeout to work in ASP.NET 4. We have the timeout set for 720 minutes(12 hours). We are using Forms Authentication. The timeout occurs after about 20 minutes regardless of what I set the timeout to. I'm sure we configured something wrong, but I'm not sure what. I've ... | 1 | 1,562 |
LEFT JOIN ONLY FOR SPECIFIC ROWS IN SQL? | <p>I have another rather curious problem. I have the following structure:</p>
<pre><code>CREATE TABLE [dbo].[Event]
(
Id int IDENTITY(1,1) NOT NULL,
ApplicationId nvarchar(32) NOT NULL,
Name nvarchar(128) NOT NULL,
Description nvarchar(256) NULL,
Date nvarchar(16) NOT NULL,
Time nvarchar(16) NO... | 1 | 1,748 |
Apache Airflow installation issue on Mac M1 | <p>I am trying to setup Apache Airflow in docker, for local development. I have it working on the intel based Mac.</p>
<p>I am following their <a href="https://airflow.apache.org/docs/apache-airflow/stable/start/docker.html" rel="nofollow noreferrer">official documentation</a>. When I try to run the services with <code... | 1 | 7,076 |
The filename C:\xampp\tmp\php4632.tmp is not readable in upload data excel with codeigniter to mysql | <p>before it, i use other function to upload excel data with codeigniter to mysql, but show error the file path is not readable, and then i use this code to upload excel data </p>
<pre><code>//setting excel reader
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(0);
require_once 'include/excel_reader.php';
$g... | 1 | 1,599 |
Flutter overflow bottom when keyboard appears | <p>i got this error and i cant get why, in a new screen i got a simple form on top (start of the column), when i focus the textfield the keyboard appears and overflow the date select and the button, but i dont know why.</p>
<p>Here is the initial state whiout focus on the textfield
<a href="https://i.stack.imgur.com/v... | 1 | 1,870 |
Can't collectstatic to s3 via Heroku using boto - s3 bucket returns a NoneType | <p>this question pertains to a setup using Heroku, django-storages (w/ boto for s3), and CloudFront to serve static content.</p>
<p>I've been trying for the past several hours to successfully load up my static files to my Heroku app. I have successfully got Cloudfront hooked to my s3 bucket, and it seems as though th... | 1 | 1,544 |
ValueError: Error when checking model target: expected activation_2 to have shape (None, 761, 1) but got array with shape (1, 779, 1) | <p>I have the following error statement...</p>
<pre><code>ValueError: Error when checking model target: expected activation_2 to have shape (None, 761, 1) but got array with shape (1, 779, 1)
</code></pre>
<p>In errors, I don't know what the number 761 means, my <code>data1</code>'s shape is <code>779 * 80</code>, my... | 1 | 1,348 |
Change table td using javascript | <p>I am new to Javascript so take it easy on me. I want to change data inside a table using javascript. I have looked everywhere for a suitable tutorial but I haven't found any. This is my code.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-cod... | 1 | 1,477 |
Complex LINQ sorting using Lambda Expressions | <p>Does anyone have/know of an IQueryable.OrderBy extension that takes an Expression (retrieved, for example, by Reflection)? I believe the function would look something like this:</p>
<pre><code>public static IQueryable<TEntity> OrderBy<TEntity>
(this IQueryable<TEntity> source, Expression sort... | 1 | 1,461 |
How do you create object with modelviewset and POST request? | <p>Im trying to add a comment to my db, but getting error <code>'OrderedDict' object has no attribute 'pk'</code></p>
<p>The part of <code>react.js</code> code handling the <code>POST</code> request:</p>
<pre><code>addComment() {
let url = this.props.post_url
axios.post('/api/comments/', {
post: url,... | 1 | 1,857 |
How to convert the draft.js output to plain html code using draft-js-html | <p>I need to have around 6 text-editors for different fields so that the user can modify the text as bold, italic, underline, add images to it.I need to send the data as a plain HTML to db and receive data in the same format.I'm using react-draft-wysiwyg, for conversion draft-js-html. Please help me with that</p>
<pre... | 1 | 1,109 |
Permutations of letters and numbers in a phone number | <p>For my computer science class, we need to write a program (in C++) that takes an input of characters and outputs the possible permutations of it according to the dial pad on a phone, leaving non-digit characters in place.</p>
<p>For example, inputing 2 outputs 2, A, B, C. Inputing 23 outputs 23, A3, B3, C3, 2D, 2E,... | 1 | 4,149 |
Why does this cause an InvalidOperationException: Out of sync? | <p>The goal of the following code is to have "hotkeys" (for lack of a better word). Such a hotkey is a checkbox that toggles multiple checkboxes.</p>
<p>I understand that Dictionaries throw an out of sync exception when you try to change a dictionary while looping over it. But the one I'm looping over is only being re... | 1 | 1,452 |
XPath/XSLT nested predicates: how to get the context of outer predicate? | <p>It seems that this question was not discussed on stackoverflow before, save for <a href="https://stackoverflow.com/questions/963451/working-with-nested-xpath-predicates-refined">Working With Nested XPath Predicates ... Refined</a> where the solution not involving nested predicates was offered.</p>
<p>So I tried to ... | 1 | 1,238 |
Spark exception when run official example in free hadoop mode | <p>Hadoop: hadoop-2.6.4 </p>
<p>Spark: spark-1.6.0-bin-without-hadoop</p>
<p>JAVA_HOME and Hadoop/bin folder are in $PATH</p>
<p>In conf/spark-env.sh
export SPARK_DIST_CLASSPATH=$(/hadoop-2.6.4/bin/hadoop classpath)</p>
<p>When I run example from Spark (bin/run-example SparkPi), exception is following:</p>
<pre><... | 1 | 6,583 |
socket keeps closing | <p><strong>EDIT:</strong> on the server-side, if I remove the code from the run method in ServerWriter class and put it into the send order method, removing the code for threading, it starts working properly again, socket doesn't close. but I need it to be multithreaded, I don't understand why the sockets close with th... | 1 | 2,982 |
How do I send multiple SOAP Requests in a loop: PHP? | <p>Am using PHP curl to do SOAP requests to a webservice, I have an array of IDs of over 500 items, for each ID, I send a SOAP request and get a XML response for which I test some parameters and generate/store in a variable. Unfortunately, I can only loop through 9 IDs of the array, over which I get a "500 Server error... | 1 | 1,416 |
AutoFilter method of Range class failed in VB.NET | <p>I am trying to use some Parsing i was able to tweak a little. If I use it in straight VBA in excel, it works fine. However, when I use the same code as a module in VB.NET I get the error in the title on the line of code </p>
<blockquote>
<p>ws.Range(vTitles).AutoFilter()</p>
</blockquote>
<p>(duh!) I am not s... | 1 | 1,582 |
How can I reduce the webpack bundle size for a Vue.js / Nuxt.js project incorporating AWS SDK? | <h1>Summary:</h1>
<p>I have created projects, with Vue.js and Nuxt.js, where I have installed aws-amplify (which automatically installs aws-sdk) in order that I can implement authentication with AWS Cognito.</p>
<p>In both cases, this works very nicely, but the problems come when I build production versions.</p>
<p>... | 1 | 1,892 |
Drawing bitmap fonts with OpenGL, what does glRasterPos2i() do? | <p>This is another one of those "I have a blank screen, please help me fix it" moments.</p>
<p>This example is from The OpenGL Programming Guide, Version 2.1, Page 311-312.</p>
<p>The example is supposed to draw 2 lines of text on the screen.</p>
<p>Past of the problem I think is that I don't understand how g... | 1 | 3,579 |
How to reference C# dll located in different folder to a C# winforms exe in different folder which uses Interface exposed by that dll | <p>I have a C# windows forms that uses a Utility.dll located in different folder than that of the EXE location. Utility.dll contains a class UtilityClass and an interface ILoadString. When i do not inherit ILoadString interface in my Form1.cs class, i am successfully able to load the Utility.dll through AppDomain.Assem... | 1 | 1,418 |
How to add a line on x-axis on a horizontal bar chart in d3 | <p>I would like to add a line on my horizontal bar chart something like the image, the line should represent 270 on x-axis in this case, but I get the error invalid path attribute. Here is the <a href="http://plnkr.co/edit/WaDnDRIIWZotI3PrpUdN?p=info" rel="noreferrer">plunker code:</a> </p>
<pre><code> var info = [
... | 1 | 1,478 |
Xamarin.Forms - How to define scoped storage for android and how can I implement it to downlaod files in Downloads directory? | <p>In my app I have given facility to download reports in PDF formats. Everything was good until I was testing my app on Android 10 and below. Recently I updated a device to Android 11 and now I am not able to download any file in shared storage. I am getting <code>Access Denied</code> error while downloading file.</p>... | 1 | 1,525 |
Receiving error "Uncaught TypeError: $.ajax is not a function" | <p>I have a form that sends user information through ajax to a php file, the form is on a bootstrap modal. I attempted to add an extra field to see if it would better suit the purpose but decided to get rid of it before that field the form worked perfectly. Now ajax is not sending information to my php file. I am recei... | 1 | 4,650 |
Null Pointer Exception when writing to a File - Android Studio | <p>My app crashes every time I go to send the data gathered by the sensor. The error I am given is as follows:</p>
<pre><code>06-20 14:50:00.784 22983-22983/com.example.adam.proj2 E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.NullPointerException
at com.example.adam.proj2.SensorActivity.onClick(SensorActi... | 1 | 1,713 |
How to get User.Identity working in a class outside of a Controller | <p>After a user Logs in to the system, i need to put a variable in the Session. I am doing this with an extension method:</p>
<p>Login method:</p>
<pre><code>[HttpPost]
public ActionResult LogOn(LogOnModel model, string returnUrl)
{
if (ModelState.IsValid)
{
if ... | 1 | 1,250 |
How select all objects within a JSON string with a specific property? | <p>I have a string called 'products', with each object having multiple fields, like so:</p>
<pre><code>var prods = JSON.stringify ({"products": [
{
'prodname': 'Linkedin',
'oem': 'Linkedin',
'snippet': 'snippet goes here',
'linkto': 'http://www.linkedin.com',
'imagesource':... | 1 | 1,076 |
Error: UPGRADE FAILED: error validating "": error validating data: ValidationError(Ingress.spec.rules[0].http): missing required field "paths" | <p>I am very new to using helm charts and not sure why I get this error when I try to install my helm chart. I am using --set with helm install command to set the hostname at ingress.hosts[0].host.I do not understand why it says missing paths where as "paths" is already present.</p>
<p>ingress.yaml</p>
<pre><... | 1 | 1,064 |
React Native - place two items side by side | <p>I'm trying to place an item on the right side of another, but instead it always stays on the bottom of the first item, like this:</p>
<p><a href="https://i.stack.imgur.com/aYNAf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aYNAf.png" alt="enter image description here" /></a></p>
<p>So, right no... | 1 | 1,998 |
M2MQtt connection using certificate in C# | <p>I'm attempting to connect to MQTT (Mosquitto) using the M2MQTT library in C#. The connection works fine when unauthenticated, however when enabling certificate authentication I am unable to connect.</p>
<p>I'm using the following code:</p>
<pre><code>string Certificate = "C:\\temp\\numq1.p12";
X509Certificate cert... | 1 | 1,592 |
NodeJs, Mocha and Mongoose | <p>I have the follow structure:</p>
<pre>
|server
|db
|mongooseTest.js
|test
|userModel.test.js
|user
|userModel.js
</pre>
<p>With their code:</p>
<p><em>mongooseTest.js</em></p>
<pre>
var mongoose = require('mongoose');
module.exports = function() {
var db = mongoose.createConnection('lo... | 1 | 1,722 |
boto3 s3 file upload using IAM role for authentication | <p>I made a code to upload the files to S3 using boto3. The code runs in docker using cron job.
Initially I've set the aws credentials in the Dockerfile using <code>ENV</code>, and later switch to binding <code>/home/$USER/.aws/</code> to the container to <code>/root/.aws/</code>.</p>
<pre><code>FROM python:3.7-alpine
... | 1 | 3,219 |
Preserve listbox item selection | <p>First the code (sorry if its not 100%) I am no expert and then the question follows.</p>
<pre><code> public partial class Window1 : Window
{
CollectionView cv;
public Window1()
{
InitializeComponent();
List<Person> ppl = new List<Person>();
BitmapImage b = ne... | 1 | 1,113 |
Kafka Log Compaction not starting | <p>I have a topic with the following description: </p>
<pre><code>Topic:test-topic PartitionCount:1 ReplicationFactor:1 Configs:min.cleanable.dirty.ratio=0.01,min.compaction.lag.ms=86400000,cleanup.policy=compact
Topic: test-topic Partition: 0 Leader: 1 Replicas: 1 Isr: 1
</code></pre>
<p>My broker h... | 1 | 2,139 |
NEST ElasticSearch c# how to Filter on Nested Object | <p>We have a "Contact" Type structure that contains a "Relationships" nested structure. I am trying to use the NEST ElasticSearch .Net client to search and get a count of the number of contacts a staff member has saved. But cannot get the syntax down.</p>
<p>Here is what I have for the structure of "Contact":</p>
<p... | 1 | 1,989 |
JAR file library included using Gradle fileTree isn’t being seen by Java code | <p>I created a new Java project in IntelliJ IDEA using its Gradle project template, and I am trying to set up a library so that my project can use it. I saved the library JAR file to <code>./libs/frink-2014-02-17.jar</code> in the project. In the <code>dependencies</code> section of my <code>build.gradle</code>, I wrot... | 1 | 2,361 |
ngx-bootstrap typeahead not showing dropdown | <p>I'm migrating an application from AngularJS to Angular and I've hit a brick wall with the new implementation for typeahead, it's been a day now since and I've tried with several API, finally decided to go for the most similar one to what I was using in AngularJS version (<a href="http://valor-software.com/ngx-bootst... | 1 | 1,709 |
Android Async HttpUrlConnection request | <p>I have this code for send sign in request:</p>
<pre><code>@Override
public void onClick(View arg0) {
switch(arg0.getId()) {
case R.id.signInButton:
new AsyncSignIn().execute();
break;
default:
break;
}
}
private class AsyncSignIn extends AsyncTask<... | 1 | 1,639 |
How to show data in a web page from DB? | <p>For the last three days I have been trying to develop a web based CRUD application which does all the CRUD operations. Given the complexity of the code, I decided to show the data first then I can move on to further CRUD operations. </p>
<p>For this application I posted several questions in here. From the Answers I... | 1 | 4,333 |
Problem with spring quartz | <p>I'm trying to invoke method based on some interval time, here are some beans inside applicationContext.xml</p>
<pre><code><bean id="MngtTarget"
class="com.management.engine.Implementation"
abstract="false" lazy-init="true" autowire="default" dependency-check="default">
<bean id="jobDetail" class=... | 1 | 1,937 |
Opening WPF Window MVVM and Closing it | <blockquote>
<p><strong>Possible Duplicate:</strong><br>
<a href="https://stackoverflow.com/questions/501886/wpf-mvvm-newbie-how-should-the-viewmodel-close-the-form">WPF MVVM Newbie - how should the ViewModel close the form?</a> </p>
</blockquote>
<p>I've searched around stackoverflow and I don't think the answ... | 1 | 1,591 |
Conflict between Login form and Register form in the same page | <p>My website has a login form present in every pages (on a top-menu) so even when a user is on the Register page the login form is still available in this top-menu.</p>
<p>My problem is that in this specific case, when a user fills the register form and submits it, it returns the error that all fields are required to... | 1 | 4,381 |
Linux kernel module to read out GPS device via USB | <p>I'm writing a Linux kernel module to read out a GPS device (a <a href="http://www.u-blox.com/de/gps-modules/pvt-modules/neo-7.html" rel="nofollow">u-blox NEO-7</a>) via USB by using the book <a href="http://www.makelinux.net/ldd3/" rel="nofollow">Linux Device Drivers</a>.</p>
<p>I already can probe and read out dat... | 1 | 1,594 |
Local Runtime 404 GET | <p>I am trying to get google collab local runtime working, but when I try to connect to the local server I get:</p>
<pre><code>[I 10:17:23.142 NotebookApp] Serving notebooks from local directory: /home/adam/Documents/PYTHON/Complexity_Challenge/Spring_2018
[I 10:17:23.142 NotebookApp] 0 active kernels
[I 10:17:23.142 ... | 1 | 1,529 |
Cakephp's beforeSave not retaining new data when using saveAll? | <p>I have a relatively simple entries model with just five fields:</p>
<ol>
<li>id</li>
<li>type (what datatype this entry is)</li>
<li>amount (how many of whatever type it is)</li>
<li>unit (the unit of the type)</li>
<li>date (the datettime when this entry was entered)</li>
<li>user_id (the id of the user who enters... | 1 | 2,282 |
OSX: error when installing python packages | <p><strong>Currently, I am unable to install any Python packages due to a gcc-4.0 error. I'll copy two examples of the error I'm getting (one with <em>pip</em>, the other with a manual setup.py build/install approach):</strong></p>
<pre><code>sgarza62$ pip install PIL
Downloading/unpacking PIL
Running setup.py egg_i... | 1 | 2,335 |
Receiving form params to Ktor server | <p>I'm new to Java and Kotlin, trying to build a contact form with <code>Ktor</code>, so I enabled the insecure connection of my gmail from <a href="https://myaccount.google.com/lesssecureapps?pli=1" rel="nofollow noreferrer">here</a>, and built the app below:</p>
<p><code>blogApp.kt</code>:</p>
<pre><code>package bl... | 1 | 1,793 |
Using Gmail API to get Message Body with formatting | <p>I have spent a few weeks on this now so I though I would ask the experts. I have a PHP script that reads a message via the Gmail API Client Library:</p>
<pre><code> $optParamsGet2['format'] = 'full';
$message = $Service_Gmail->users_messages->get('me',$messageId,$optParamsGet2);
$snippet = $message... | 1 | 1,520 |
Android Java objModelClass.getClass().getDeclaredFields() returns "$change" as one field | <p>In our project we are using data models to store data received from services. So in a particular case when we are inserting data to database, we use <strong>objModelClass.getClass().getDeclaredFields()</strong> method to get all field names, and it is correctly returning all field names of the class but also returni... | 1 | 2,383 |
AttributeError: 'numpy.ndarray' object has no attribute '_in_multi_worker_mode' | <p>I have been trying to implement a transfer learning model using the Xception model and fine-tune it. But when I tried to train the model in the last section of the code it is showing the following error - AttributeError: 'numpy.ndarray' object has no attribute '_in_multi_worker_mode'.Can someone help me solve this e... | 1 | 2,560 |
Using RVM, bundler does not install in proper gemset when gems are installed in a different ruby version | <p>I am having trouble with rvm, bundler and gemsets. I have 3 rubies installed in rvm:</p>
<pre><code>rvm rubies
macruby-0.7.1 [ x86_64 ]
ree-1.8.7-2010.02 [ x86_64 ]
=> ruby-1.9.2-p0 [ x86_64 ]
</code></pre>
<p>And gemsets like so:</p>
<pre><code>rvm gemsets
macruby-0.7.1 [ x86_64 ]
ree-1.8.7-201... | 1 | 2,199 |
Rails Webpack ERROR in Entry Module: Can't resolve application.js in Production (Heroku) | <p>I have a Rails 6 app with Webpacker.
Everything works well in development but I get an error trying to resolve the entry path when I try pushing to Heroku.</p>
<pre><code>Error: Can't resolve '/application.js' in '/tmp/build_7eddbca060f445328dcebb3128a5bc19'
</code></pre>
<p>As a result, I modified the context an... | 1 | 2,162 |
Is it possible to show tooltip on category name with Amchart v4? | <p>I am using 'variable-radius-radar' from Amchart V4. I want to display tooltip on hover of category name, but could not find any solution. The tooltip is needed because the name can be very long. On the chart I am planning to display only first 10 characters of category. Tooltip will have the full name. </p>
<p>Crea... | 1 | 1,281 |
Simulating Cancellation Tokens in Python Threading | <p>I just wrote a task queue in Python whose job is to limit the number of tasks that are run at one time. This is a little different than <code>Queue.Queue</code> because instead of limiting how many items can be in the queue, it limits how many can be taken out at one time. It still uses an unbounded <code>Queue.Queu... | 1 | 1,450 |
YouTube embed player not working in Javascript | <p>Since a couple of days, code which worked fine to embed a YouTube video via Javascript stopped working. Now the video loads but it is not playable (the play button is not clickable), with this error in the console:</p>
<pre><code>Uncaught TypeError: a.g.mX is not a function
at O_ (https://www.youtube.com/yts/jsbin/... | 1 | 1,560 |
Questions about the new auto-backup feature of Android M | <h2>background</h2>
<p>Google has introduced a nice new feature on Android M that allows you to backup and restore apps, even using ADB , as shown on <a href="https://www.youtube.com/watch?v=dcmNjbCNvA8" rel="nofollow"><strong>this video</strong></a> .</p>
<p>It seems all you have to do is use the <code>adb shell bmg... | 1 | 1,547 |
Netbeans: Cannot add custom JPanel in Swing Editor | <p>I'm having an issue with adding a custom JPanel to a JFrame in the Netbeans Swing Editor.</p>
<p>To rule out other issues, I made a brand new JFrame, and tried to drag my JPanel in (the JPanel is even in the same package). It popped up an error message:</p>
<blockquote>
<p>Warning: Cannot Load component Class GU... | 1 | 2,724 |
PySide/PyQt - Starting a CPU intensive thread hangs the whole application | <p>I'm trying to do a fairly common thing in my PySide GUI application: I want to delegate some CPU-Intensive task to a background thread so that my GUI stays responsive and could even display a progress indicator as the computation goes.</p>
<p>Here is what I'm doing (I'm using PySide 1.1.1 on Python 2.7, Linux x86_6... | 1 | 1,267 |
Laravel 5.4 Script loading issue | <p>I'm working on my first Laravel project (5.4), actually I don't understand why my js script doesn't work like I expected.
I use Mix and Blade :</p>
<pre><code>// webpack.mix.js
let { mix } = require('laravel-mix').mix;
// copy fonts and patterns
mix .copy('resources/assets/vendor/bootstrap/fonts', 'public/font... | 1 | 2,121 |
Reason for collapse of memory bandwidth when 2KB of data is cached in L1-cache | <p>In a self-educational project I measure the bandwidth of the memory with help of the following code (here paraphrased, the whole code follows at the end of the question):</p>
<pre><code>unsigned int doit(const std::vector<unsigned int> &mem){
const size_t BLOCK_SIZE=16;
size_t n = mem.size();
uns... | 1 | 2,129 |
how to webview offline and online load website content in android | <p>i am actually new to programming in java but i have been following several solutions to my problem here but didn't find one that suits my case and i can't seem to get the code down correctly.</p>
<p>i would like to have a WebView which opens an online page (for example google) when the phone is online and open a lo... | 1 | 1,278 |
WebLogic Server Version: 12.1.2.0.0 Descriptor | <p>I have a MVC spring application .
I am using this weblogic.xml descriptor (I want to get fid of Session Tracking: the JSESSION parameter that weblogic adds in the URL)</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app"
... | 1 | 2,385 |
Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'std' defined in file | <pre><code>package com.nareshit.beans;
public class Address {
private String city,state;
public String toString()
{
return "\n city:"+city+"\nstate:"+state;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
publ... | 1 | 1,138 |
How to store form data in local storage? | <p>I am implementing one form submit process, But I am not using any DB(Backend). I want to store form data in client side or browser. So I am planning to use localstorage.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippe... | 1 | 1,539 |
"Lazy initialization" of jdbc connections from jndi datasource/connection pool: feasibility | <p>I have a main controller servlet in which i instantiate a <b>datasource</b>. The servlet opens and closes the connections. Mainly, the servlet instantiates a command from the application using the "factory pattern". here is some code to explain:</p>
<pre><code>public void init() throws ServletException {
super.... | 1 | 2,116 |
Getting 409 Error unable to resolve how can i solve | <blockquote>
<p>E/Volley: [19528] BasicNetwork.performRequest: Unexpected response code 409 for <a href="http://13.232.142.23:3000/api/register" rel="nofollow noreferrer">http://13.232.142.23:3000/api/register</a></p>
</blockquote>
<p>I have some code to make an alert if user is already register and if otp is incorr... | 1 | 5,033 |
Drawing chart.js with external JSON | <p>I have this issue I can't seem to figuere out on my own. I am unable to draw a chart with chart.js with an external JSON file. When I console.log(data) the data it shows correctly, in an array, but nothing shows up on the canvas. I have managed to draw a chart with static JSON data using this code:</p>
<pre><code>v... | 1 | 2,403 |
Configure Webpack to resolve relative paths | <p>I am trying to implement <strong>Material Web Components</strong> into my Web App as per Material Component Web's <a href="https://github.com/material-components/material-components-web/blob/master/docs/getting-started.md" rel="nofollow noreferrer">Getting Started Guide</a>.</p>
<p>I was able to successfully set up... | 1 | 1,863 |
Using ruby and nokogiri to parsing HTML using HTML comments as markers | <p>How could I use ruby to extract information from a table consisting of these rows? Is it possible to detect the comments using nokogiri?</p>
<pre><code><!-- Begin Topic Entry 4134 -->
<tr>
<td align="center" class="row2"><image src='style_images/ip.boardpr/f_norm.gif' border='0' ... | 1 | 1,147 |
Arduino - Append int value to the end of a string for concatenated variables | <p>I wanted to expand on the Arduino Button and ForLoop tutorials by going through sequential inputs to check their status and illuminate the LED if any of them are pressed. Ultimately, I just want to do a single shot scan of the inputs before everything starts and anything that is closed (or shorted out) will be taken... | 1 | 1,053 |
Laravel decrypt issue | <p>I have a problem with decrypting some values that I have just recently tried encrypting. I've generated the key <a href="https://laravel.com/docs/5.6/encryption" rel="nofollow noreferrer">as stated in the docs</a>.</p>
<p>And I've imported my values with my controller as the following:</p>
<pre><code>public functi... | 1 | 1,427 |
Animating the color of QML rectangles after a button is clicked | <p>I am trying to get my board to flash green when a button is clicked.</p>
<p>I have added the following color animation code to help create the flashing effect, so that the board can go from its original colors, to green, and back to it's original colors.</p>
<p>I have seen in some code examples where <code>ColorAn... | 1 | 1,414 |
Oidc login infinite loop | <p>I'm using <strong>Auth0</strong> with <strong>Oidc</strong> in my Angular app for login.</p>
<p>I have the following configurations:</p>
<p><strong>auth.module</strong></p>
<pre><code>NgOidcClientModule.forRoot({
// prettier-ignore
oidc_config: {
authority: environment.sts.authority,
c... | 1 | 4,108 |
unable JDBC CONNECT to jdbc:mysql//localhost:3306/database | <p>I search all to resolve this problem, but i still with that, i dont know what is...</p>
<p>mysql version is 5.7 and hibernate is 5.2.8.Final, my sql connector is 5.1.2.</p>
<p>im using STS IDE</p>
<p>pom.xml</p>
<pre><code><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XM... | 1 | 3,020 |
authCookie not secure in global.asax | <p>I have a login problem.</p>
<p>First i am using SSL while logging.</p>
<p>When i log in, i am creating a cookie like this. when i check if it is secure the answer is yes.</p>
<pre><code>FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, // version
... | 1 | 1,494 |
Amazon Kinesis GetRecords Api Best approach | <p>I have setup Kinesis stream in Amazon WebServices. I Also want to accomplish the following tasks:</p>
<ol>
<li>Put Records into Single Stream with Single Shard (C# Api) - SUCCESS</li>
<li>Also I wrote Sample App in which multiple Producers are working on different Stream - SUCCESS</li>
<li>Also I setup Sample App t... | 1 | 2,419 |
jQuery submit ajax with multiple arrays | <p>Hi I'm trying to submit a form using ajax inside <a href="https://github.com/jzaefferer/jquery-validation" rel="nofollow noreferrer" title="Validate">Validate</a>'s submitHandler, also using the <a href="http://harvesthq.github.com/chosen/" rel="nofollow noreferrer">Chosen</a> library which beautifies multiple selec... | 1 | 1,063 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.