title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
cant calulate min/max/sum of column python | <p>my code can calculate the min/max/sum of each row in the file alpha.txt provided, but it cannot calculate min/max/sum by column.... Any ideas on how to do it would be helpful, Thanks!</p>
<pre><code>def load_data():
usrnput = input("Enter a filename ")
my_list = [[float(i) for i in line.split(',')] for lin... | 2 | 1,327 |
WCF Duplex: Send callback to a specific subscribed ASP.NET Webforms client | <p>I'm working on an ASP.NET 4.0 Webforms client application that connects to a WCF 4.0 Duplex service to realize some kind of flat file processing. When an user enters to a page on the Page_Load event I subscribe the client to the duplex service, this is because I need to notify all clients under some circumstances:</... | 2 | 8,180 |
AngularJS Multiple Dynamic Views based on Single Route | <p>Forgive me if I don't explain this well. I'm having a hard time getting my mind around the real problem I'm having. I'm hoping that someone will be able to make sense of my ideas and probably correct my misunderstandings of MVC, the way Angular works, or the structure of my controllers and which components I have ti... | 2 | 6,538 |
.NET - Socket server with async/await | <p>I'm writing simple socket server with C#. The idea is to do it as simple as possible since the communication won't be heavy. I've used some of the TAP/APM patterns on socket async calls so the code now looks like this:</p>
<pre><code> public async Task StartListening()
{
try
{
var... | 2 | 1,049 |
Bootstrap dropdown menu doesn't appear onlcick | <p>I'm new to bootstrap and I'm trying to add navbar to my website so
I copied the code from <a href="http://getbootstrap.com/components/#navbar" rel="nofollow">Bootstrap</a> website but It dropdown menu doesn't work</p>
<p>Here is the code</p>
<pre><code><nav class="navbar navbar-default" id="navbar">
&l... | 2 | 1,449 |
Appium tries to launch app on simulator instead of real device | <p>appium : 1.4.13</p>
<p>xcode : 7.1</p>
<p>ios: 9.1</p>
<pre><code>desired_caps = dict()
desired_caps['platformName'] = 'iOS'
desired_caps['platformVersion'] = '9.1'
desired_caps['deviceName'] = 'iPhone 6'
desired_caps['app'] = os.path.abspath('/Users/Test.app')
... | 2 | 1,320 |
App crash on last item deleted in RecyclerView | <p>I'm using a RecyclerView and populating data from the database and storing it into arrayLists. i've also added an onLongClickListener() to the recycler view which removes the long clicked row. Everything works fine but when I delete the last the app crashes and i get Java.Lang.IndexOutOfBoundsException index:0 size:... | 2 | 3,559 |
Trouble installing scrapy ("Segmentation fault (core dumped)") | <p>I'm having issues installing scrapy with and without the sudo command. scrapy -V continues to return "command not found." Does anyone recognize this error? I'm using Lubuntu 18.04, Python 2.7.15rc1, pip 9.0.1</p>
<p>When I try to install Scrapy here are the outputs:</p>
<pre><code>owner@G700:~/PhpstormProjects/yel... | 2 | 4,938 |
Display two values in the dropdown jquery autocomplete | <p>I am making a search feature using jQuery autocomplete where the data is coming from a json.
The search is supposed to display the full name of a person, but since the first name and last name are in two different fields in the json, I am finding it hard to display both the first name and last name together in the ... | 2 | 1,448 |
How to capture video in python with opencv and multithread (logitech c920) | <p>I'm trying to capture a video of a duration of X seconds every Y hours with python3.8 and opencv(4.2.0) in Manjaro XFCE. I'd like to get at least 20-30fps with a resolution of 720p or 1080p. I'm using a Logitech c920, but with a good resolution (eg 1920x1080) I'm stack at 5fps. I can set the fps at 30 but then the v... | 2 | 3,008 |
"flutter build apk" command fails after adding google_maps_flutter | <p>I'm new to flutter and android development. I have a problem when building apk file with <code>flutter build apk</code> command and it shows error like this</p>
<pre><code>C:\src\flutter_projects\beresin>flutter build apk
You are building a fat APK that includes binaries for android-arm,
android-arm64, android-x... | 2 | 3,527 |
Android - Retrieve data from Firebase into Listview on Activity Load | <p>I am having a tough time figuring this out. I have an activity with a listview on it. My listview uses a row_item that contains a TextView and an imageView. </p>
<p>Here is my Firebase RealTime database.
<a href="https://i.stack.imgur.com/WL1Gq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WL1G... | 2 | 2,898 |
Oracle procedure doesn't compile; gives a "Encountered the symbol; when expecting..." error | <pre><code>create or replace PROCEDURE ResumenActividadDiaria(Fecha DATE) AS
CURSOR cur_trans IS
SELECT t.idslot, t.tipotransaccion, t.transacciongeneral, t.valortransaccion,
s.fila, s.columna
FROM transaccion t, slot s
WHERE t.idslot = s.idslot AND
t.transacciongeneral in (1,3) AND
... | 2 | 1,191 |
Failure to run protractor from Node.js command prompt | <p>Hope all is well. I'm setting up protractor for the first time through Node.js. This is provided as part of a tutorial on the AngularJS website under "Running E2E Tests":
<a href="https://docs.angularjs.org/tutorial" rel="nofollow noreferrer">https://docs.angularjs.org/tutorial</a></p>
<p>However, while executing p... | 2 | 1,254 |
Cannot update value in Kendo-grid - cannot read 'data' property of undegined | <p>I am updating Kendo-grid when the selected value in option HTML element is changed. But when I try to update the value in the grid inline in the browser's console is printed "kendo.web.min.js:13 Uncaught TypeError: Cannot read property 'data' of undefined".</p>
<p>What Did I wrong?</p>
<p><div class="snippet" data... | 2 | 2,442 |
Display: none on Deck.gl React component causes huge performance issue | <p><strong>EDIT:</strong> This issue is specific to this setup. Please use the code from here if you wish to help. Thanks!</p>
<p>I am using Deck.gl with react to display a map. When I try to hide the map with display: none it starts to freeze up my whole computer. I have worked around this by using visibility: collap... | 2 | 5,573 |
ARIMA(2,0,1) with Monte Carlo Simulation in R, always show zero initial values, why? | <p>I have the following R code for using Monte Carlo simulation with ARIMA(2,0,1), but the code is not working, can someone please help out? Many thanks!</p>
<p>I want to simulate 52 weeks ahead for 1000 times.</p>
<pre><code>ar1 = 0.4857
ar2 = 0.0173
ma1 = -0.8054
r0 <- 0.002937432
r.sims <- matrix(rep(0,100... | 2 | 1,102 |
Failed to bounce to type firebase | <p><a href="http://i.stack.imgur.com/n3SQg.png" rel="nofollow">my data</a></p>
<p>I have data like above im trying write POJO class for that but it makes </p>
<pre><code>01-18 21:02:08.101 28838-28838/thamarai.techundefined.com E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: thamarai.techundefined.com, PID: 288... | 2 | 1,966 |
delayed_job fails jobs when running as a daemon. Runs fine when using rake jobs:work | <p>I am literally at my wits end with this. I don't understand why it isn't working. </p>
<p>I have made a class, which I call and queue using a rake command. When I run the worker using 'rake jobs:work' and call the command 'rake get_updates', it executes fine.</p>
<p>However, when I run the worker as a daemon (RAIL... | 2 | 4,983 |
chosen select option[chosen-drop] cut off on bootstrap table-responsive | <p>I have problem with chosen select within ng-repeat within bootstrap table, in chosen-drop option went inside table-responsive below image
<a href="https://i.stack.imgur.com/ctLvd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ctLvd.png" alt="enter image description here"></a></p>
<p>I can achie... | 2 | 1,522 |
Concatenate Rows into String with Many to Many Joins | <p>I have a query that is working for almost all my data scenarios...except one. I have a master table, a detail table (with one to many line items), and many description tables that join to the detail table (Code Descriptions, etc). I need to concatenate all detail records into one string value so that I have one re... | 2 | 1,884 |
Not allowing to set spark.sql.warehouse.dir , it should be set statically for cross-session usages using Java | <p>I try To learn Spark but in here i found an Exception
(Not allowing to set spark.sql.warehouse.dir, it should be set statically for cross-session usages and exception is <em>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/hdfs/DistributedFileSystem</em>). I am working on window... | 2 | 3,084 |
Deploy simple standalone spring mvc application in docker container | <p>I have to deploy simple standalone spring mvc application in docker container. <a href="https://www.journaldev.com/14476/spring-mvc-example" rel="nofollow noreferrer">I started with this application</a> and haven't been able to find a solution to deploy it within docker.</p>
<p>My Dockerfile:</p>
<pre><code>FROM t... | 2 | 1,615 |
python-telegram-bot http.client.RemoteDisconnected: Remote end closed connection without response after executed postponed job_queue.run_once job | <p>I wrote a python-telegram-bot in order to get rid of timers and clocks without records of launch.
But unfortunately on testing I ran into strange problem I couldn't understand - a HTTPError (<code>http.client.RemoteDisconnected: Remote end closed connection without response</code>) happens every time when a job in j... | 2 | 4,198 |
knockout validation isvalid method | <p>Is it not posssible to use isvalid method inside viewmodel? I got error isvalid in not a valid function. </p>
<pre><code> function Student(name,age,country) {
var self = this;
self.Name = ko.observable(name).extend({ required: true });
self.Age = ko.observable(age);
... | 2 | 1,213 |
Jssor slider not responsive | <p>My slider is not responsive. It does not get re-sized when I re-scale my browser. I want the slider to bo responsive even if I use in tablet or mobile.</p>
<p>The slider code is below the navigation. </p>
<pre><code><!DOCTYPE html"">
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" ... | 2 | 11,254 |
Opencv Build error with LINK1104 | <p>I am building opencv-2.4.9 in Windows with Visual Studio 2013.First I configure and generate with Cmake. </p>
<p>Then build using Visual Studio 2013.</p>
<p>I found error LNK1104 in building.</p>
<p>What could be wrong?</p>
<p>The errors are for all libraries, they can't be linked.</p>
<p>Errors are as follow.<... | 2 | 1,685 |
Edit Value In Excel Range | <p>I have an excel sheet with values in a range which I want to perform some calculations on in vb.net. I pass that range to vb.net using COM. When I try editing the values of the range, nothing happens. </p>
<p>My question seems to be very similar to these questions, but I can't quite figure out what step I am missin... | 2 | 1,054 |
Reading Server-Sent Events using reactive Spring WebClient and feeding them to a slow/restricted consumer produces an OverflowException | <p>I have the following test:</p>
<pre><code>import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.AbstractHandler;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springfram... | 2 | 7,068 |
Powershell: Runspace/Pool how do i pass a function and shared variable? | <p>I am trying to create a thread that will use a shared variable (between main session and the thread)
plus the give the thread ability to use outside function from the main code</p>
<p>I have managed to pass the function for the thread to use
and i have managed to pass read only variable.
my problem is that if i am ... | 2 | 1,134 |
Google mobile vision text API- read specific text with in a recatangle | <p>I am using Google mobile vision text API for reading a text using the APIs provided.</p>
<p>My use cases :</p>
<p>Initially i am drawing a re-sizable rectangle to the surface of view.
Restrict the text that recognize by the google apis only with in the rectangle.</p>
<pre><code>public class GraphicOverlay<T ... | 2 | 1,534 |
Carrierwave Multiple File Upload + No implicit conversion of nil into String | <p>Trying to get Carrierwave multiple file uploads working. I'm following the documentation on the homepage. When I try to upload a file or multiple, I get an <code>no implicit conversion of nil to string</code></p>
<p>That error is coming from this method in the Carrierwave gem found in <code>uploaders/cache.rb</co... | 2 | 1,096 |
QSqlRelationalModel model/view update after changes | <p>I've got a problem with updating model/view after changes.</p>
<p>To explain better what I mean I wrote a simple example with SQLite.</p>
<p>So the main.cpp file:</p>
<pre><code>#include <QApplication>
#include "MainForm.h"
void createConnection()
{
QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE... | 2 | 1,236 |
Parsing response in JSON | <pre><code>{
"response":{
"code":200,
"message":"OK",
"data":[
{
"user":{
"id":"564564",
"firstName":"XYZ",
"lastName":"J.",
"photo":"https:\/\/img-s.example.com\/userpix_thumbs\/48935_12545435354.png",
... | 2 | 1,639 |
jQuery - How do I get my counter to load only when in view? | <p>I am super new to tinkering around with jQuery. I found a solution for a counter that counts up that serves the purpose for showing savings in %. </p>
<p>The problem that I have with it, is that it runs as soon as the page loads, and the element is a bit further down the screen, and it looses the effect because by ... | 2 | 1,554 |
Silverlight images not displaying | <p>I am creating application in Silverlight. There is only a DataGrid right now. I am using WCF RIA Service for getting datas from database. Everything works fine expect Images. I am getting images as byte array and trying to convert them to BitmapImage using Converter. I want to show images in RowDetailsTemplate of Da... | 2 | 2,771 |
Set the globaloptions in the HighCharts | <p>I'm running a local Highcharts Export Server based on Java and PhantomJS and
I am trying to disable the UTC time zone global in the charts. Therefor I am using the globaloptions to reach it but I do not know what is the right way to set it in the highCharts. </p>
<p>This way does not work for my case but it works ... | 2 | 3,423 |
Mocking Firebase auth signInWithPopUp with jest for React App | <p>I am having some issues testing my react apps sign in method. I am attempting to mock firebase auth's signInWithPopup method when I click the Sign in Button in my test.</p>
<p>My login handler in App.js</p>
<pre><code>import * as firebase from 'firebase/app';
import 'firebase/auth';
import firebaseSetup from './fire... | 2 | 1,097 |
Negative lookahead assertion in python | <p>I am having below two line of log, where I want to have separate regular expression for finding each of them. There is no problem to trigger on the second log line. But I have problem to design expression for the first line. The name <code>Reset Reason test</code> is just an example of test, number of words in it ma... | 2 | 1,256 |
Rectangle JavaFx Change color dynamic | <p>I am implementing one application to draw rectangle, but now I need help to change color of my rectangles, I have this implementation:</p>
<pre><code> Pane root = new Pane();
int qtd = 10;
NumberBinding rectsAreaSize = Bindings.min(root.heightProperty(), root.widthProperty());
Text texto = new Text("... | 2 | 1,726 |
Angular post request runs twice when calling api on node server | <p>I have a http post request but it gets fired twice when i call the api.</p>
<p>Basically i know that node is asynchronous so might be waiting to run the sql to get the data but not sure how i can get around it. My code is as follows:</p>
<pre><code>$http({ method: 'POST',
url: '/api/upd... | 2 | 1,504 |
Getting websocket error every 5 mins -Broken Pipe | <p>I am posting data from a python script every 2 sec to a websocket server and UI is trying to read that from the websocket. After every 5 mins the websocket gets down with this error</p>
<hr>
<blockquote>
<p>ERR java.lang.RuntimeException: java.io.IOException:
java.util.concurrent.ExecutionException: java.io.IO... | 2 | 1,410 |
How do I store a ForeignKey list in a Django model? | <p>I am building a platform where the user can <em>buy</em> players (like in fantasy leagues). So I have 4 models as such :</p>
<pre><code>POSITION_CHOICES = ((1,'1'),
(2,'2'),
(3,'3'),
(4,'4'),
(5,'5'),
)
class Team(models.Model):
..... | 2 | 2,564 |
How to make EF core translate custom sort into a plain 'When Then' instead of hierarchical | <p>The <strong>problem</strong> is - I get the following <strong>errror</strong>:</p>
<blockquote>
<p>Case expressions may only be nested to level 10.</p>
</blockquote>
<p>when I try using the following LINQ code with EF core</p>
<pre><code>var extendedResult = result.Select(p => new
{
readModelFiel... | 2 | 2,216 |
elevation not working in LinearLayout | <p>bg_book_promotion is the picture which needs to have a shadow
when I add the <code>android:elevation</code>, it is not working.
which one can tell me how to correct it, it is so strange.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<... | 2 | 1,101 |
Getting undefined method `to_sym' from FactoryGirl create | <p>I have a simple spec:</p>
<pre><code>describe Setting do
subject { create(:setting) }
it { should be_valid }
end
</code></pre>
<p>with the factory:</p>
<pre><code>FactoryGirl.define do
factory :setting do
key "some_key"
value "The appropriate value"
end
end
</code></pre>
<p>When I run the spec:<... | 2 | 2,441 |
Setting up ESLint for a Typescript Project using React, React Testing Library, and Cypress | <p>It seems that every time I start using a new library of some sort I run into problems with ESLint, and I can never truly figure out why. I stumble through until the errors and warnings go away, and then deal with it all again later. I'm hoping that I can get some answers on how it's supposed to work here.</p>
<p>I h... | 2 | 1,847 |
java.lang.UnsupportedClassVersionError: Bad version number in .class file error while calling web service | <p>I am getting following error while using a web service.</p>
<p>500 Internal Server Error</p>
<pre><code>java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.secur... | 2 | 1,046 |
Win32 Combobox, print the name of selected to edit text box | <p>I am testing out a thoery for the Combobox for win32. Many things have been tried but I am not understanding how to make it do what I want it to do. When the selection is made in the combo box I want it to print into the edit box. I believe this would be done through the handle maybe. </p>
<p>So if I add it to my b... | 2 | 2,256 |
Responsive Dropdown Menu Navigation Position Next To Logo CSS & HTML | <p>I have a problem and its been killing me, been following various tutorials to create my navigation bar for my website but cant seem to get it right. The problem i have is that i cant position my navigation to be next to my logo when the screen is large. Everytime i shrink it down then click my menu button it appears... | 2 | 2,056 |
Getting memory memory allocation error with corrupted top size | <p>I am writing a C language program that process tensorflow-keras layers data and makes forward propagation to calculate neural nets output. I have to integrate neural nets to embedded system so I have to implement simple matrix multiplication i C. I am not an expert in this language and I am getting weir behavior whi... | 2 | 4,008 |
Can't dup NilClass on rails rake with assets:precompile | <p>When I try to precompile my assets I get the following error. This is the trace with the full output:</p>
<pre><code>RAILS_ENV=production bundle exec rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment... | 2 | 2,689 |
jQuery Mobile popup won't show after page navigation, only shows after hard refresh, or returning to same page | <p><strong>What I have</strong></p>
<p>I am using jQuery Mobile 1.4.4. I've added a gear button on each header that will open a small popup to navigate among 'Logout' and 'Account Settings'.</p>
<p><strong>What I want to happen</strong></p>
<p>I want this popup to show up on every page that it is clicked on, using t... | 2 | 1,260 |
Two radically different queries against 4 mil records execute in the same time - one uses brute force | <p>I'm using SQL Server 2008. I have a table with over 3 million records, which is related to another table with a million records.</p>
<p>I have spent a few days experimenting with different ways of querying these tables. I have it down to two radically different queries, both of which take 6s to execute on my laptop... | 2 | 1,402 |
MergeSort in scala | <p>I came across another <a href="http://www.codechef.com/problems/INSOMA3" rel="nofollow">codechef problem</a> which I am attempting to solve in Scala. The problem statement is as follows:</p>
<blockquote>
<p>Stepford Street was a dead end street. The houses on Stepford Street
were bought by wealthy millionaires.... | 2 | 1,199 |
Rails has_many :through association: save instance into join table | <p>In our Rails app, there are 3 models:</p>
<pre><code>class User < ActiveRecord::Base
has_many :administrations, dependent: :destroy
has_many :calendars, through: :administrations
end
class Administration < ActiveRecord::Base
belongs_to :user
belongs_to :calendar
end
class Calendar < ActiveRecord:... | 2 | 1,344 |
Script to download and extract zip files returns errors | <p>Hey everyone, I have written a script that downloads a zip file from a remote source, and then is supposed to extract the zip file to a directory. Below is the script:</p>
<pre><code> <?php
$url = "http://example.com/some_file.zip";
download($url,'file.zip');
function download($url,$f... | 2 | 1,164 |
Vue.js Element-UI el-table: make a copy table for editing and can save data to original table | <p>I need to make a copy table (I name it tempData) of the original one (tableData) and the tempData table is editable. <strong>The data in tempData should be saved to tempData only when I click the save button.</strong>
But now the DataTable changes when I edit the existing rows in tempData without clicking the save b... | 2 | 1,347 |
Java11 Migration - compilation error, Symbol$ClassSymbol cannot be cast to class Symbol$MethodSymbol | <p>I am trying to migrate my application from java 8 to java 11 but am facing an error that I cannot get through:</p>
<pre><code>compiler message file broken: key=compiler.misc.msg.bug arguments=11.0.7, {1}, {2}, {3}, {4}, {5}, {6}, {7}
java.lang.ClassCastException: class com.sun.tools.javac.code.Symbol$ClassSymbol can... | 2 | 3,576 |
Android: No class definition found error | <p>this is a screen with two buttons to show satellite view and street view of maps. the modules of streetview and SatelliteView work perfectly fine separately. but when included in a single app with two buttons(intent) it shows the following errors. please help</p>
<pre><code>10-16 16:33:20.400: ERROR/AndroidRuntime(... | 2 | 2,560 |
Google map with marker not displayed using the HTML5 Geolocation API | <p>I tried to replicate the following example.
<a href="http://viralpatel.net/blogs/html5-geolocation-api-tutorial-example/" rel="nofollow">http://viralpatel.net/blogs/html5-geolocation-api-tutorial-example/</a></p>
<p>I am not able to view the map other than Latitude and Longitude on the browser. Same works when I h... | 2 | 1,489 |
Avoid geocoder.geocode in Google maps and use variable to pass to google.maps.Marker | <p>I'm using google maps api version 3 in one of my projects and it's working properly.
I use this function to set a marker to point customer address. </p>
<pre><code>function codeAddress() {
var address = 'ulitsa "Dimcho Debelyanov" 3, Sofia, Bulgaria';
geocoder.geocode({ 'address': address}, function (resul... | 2 | 1,324 |
java.lang.NoClassDefFoundError: com.google.android.gms.location.LocationClient Error while using Vungle sdk | <p>My app level gradle </p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.mss.jackpotslots"
minSdkVersion 15
targetSdkVersion 23
multiDe... | 2 | 2,531 |
how to display a background-image under another background-image in CSS | <p>i'm trying to figure out how to display another background image under my first image. I'm pretty noob to HTML & css and I'm trying to figure out some things but can't seem to find this. I know the picture is there because when I add a <code><p></code> between the section of the second background image, yo... | 2 | 1,261 |
Android cursor index out of bounds exception | <p>I need to bind gridview in Android with simplecursor adapter, here is my code:</p>
<pre><code> public class AndroidSqliteActivity extends Activity {
private Veritabani ogrenciler;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(saved... | 2 | 1,675 |
AngularJS - slider.noUiSlider is not a function | <p><strong>Question Background:</strong></p>
<p>I am attempting to implement this following Range Slider (NoUiSlider) in my Angular app:</p>
<p><a href="http://vasyabigi.github.io/angular-nouislider/" rel="nofollow">http://vasyabigi.github.io/angular-nouislider/</a></p>
<p><strong>The Issue:</strong></p>
<p>I have ... | 2 | 2,232 |
flutter return multiple fields from custom widget | <p>I got the below <code>geolocation.dart</code> file, that works perfectly as stand alone widget:</p>
<pre class="lang-dart prettyprint-override"><code>import 'package:flutter/material.dart';
import 'package:location/location.dart';
import 'package:flutter/services.dart';
import 'package:simple_permissions/simple_per... | 2 | 1,585 |
Sweet Alert On Ionic 4, Output Alert Inside Typescript File | <p>i am developing a forgot password process, the forgot password process are as below</p>
<ol>
<li>user key in email to reset password,</li>
<li>upon user click on submit, a process will be send to server side for backend processing (in this case i make PHP as backend, MySQL is used as database),</li>
<li>upon email ... | 2 | 1,473 |
Selenium with Power Apps | <p>We have a client requirement to implement a test automation in Power apps.
Power apps has its own Testing framework but that is still in <strong>Experimental</strong> mode and not recommended to use for production environment.</p>
<p>I've experience around Selenium but I'm facing issues while locating web elements f... | 2 | 2,053 |
Reducing the time complexity of this algorithm | <p>I'm playing a game that has a weapon-forging component, where you combine two weapons to get a new one. The sheer number of weapon combinations (see "6.1. Blade Combination Tables" at <a href="http://www.gamefaqs.com/ps/914326-vagrant-story/faqs/8485">http://www.gamefaqs.com/ps/914326-vagrant-story/faqs/8485</a>) m... | 2 | 1,874 |
Javascript Form Select Change Options Dynamic List | <p>My project right now has two dropdown menu. One is with color and the other is with the members of that color. The goal is to use JS so if I select "Red", only members in red show up on the second dropdown. I have my SQL table below and my script. I am not sure where to start so some help would be nice. </p>
<p>SQL... | 2 | 1,364 |
Spring Boot Autowired Configuration Only Null When Validator Bean Used | <p>I have a Spring Boot Configuration class that looks like the following:</p>
<pre><code>package foo.bar;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import javax.validation.constraints.Max;
import javax.validation.constrai... | 2 | 1,259 |
How to create area range chart | <p>I want to create <code>area range chart</code> as given in the following <a href="http://jsfiddle.net/D4w7G/3" rel="nofollow">link</a></p>
<p>I want to add data to ranges using loop on my data. What should be the type of the <code>ranges</code> to create chart?</p>
<p>Please suggest. Thanks in advance. Here's the ... | 2 | 2,254 |
Ubuntu - Nginx - extremely high IO writes | <p>I have a pretty high traffic Nginx server dishing out static content for a family of websites. I can't figure out why the disk writes are so high.</p>
<p>VMWare ESXi 6.0 host (datastore is sitting on 4x Enterprise SSDs in a RAID10) running an Ubuntu 14.04.3 LTS VM with 4 cores and 16GB RAM. NGINX v 1.4.6</p>
<p><b... | 2 | 3,160 |
Update and control multiple CountDownTimer in RecyclerView (pause, resume, delete) | <p>I've implemented to my Android app multiple countdown timers with Service.
CountDownTimer is running with service, thus data to fragment is being passed with BroadcastReceiver.</p>
<p><strong>I would like to add each timer as a separate item to the RecyclerView in the fragment and be able to update it as timer is ... | 2 | 3,978 |
Windows function ChoosePixelFormat returns ERR_OLD_WIN_VERSION on windows 7 | <p>I'm trying to teach myself the win32 API by making a window and attaching an OpenGL context to it. In order to fetch the appropriate pixel format a call to ChoosePixelFormat must be made which should return a pixel format that the system supports and best meets my needs. When I check for errors everything goes smo... | 2 | 1,961 |
Struct in Struct has no member | <p>Well this is my first post, I'm really sorry for what I'll do...
I have a problem and I need to hurry, what I'm doing wrong?
It's abut a "library" program about structures
I have to files: an header with this structures</p>
<pre><code>#include <stdio.h>
//Strutture
struct Date{short day, month, year;};
enum g... | 2 | 1,047 |
how to run at command through chrome serial api | <p>i want to run at command at my hardware thorugh crome serial api</p>
<p>I use this Opensource code
<a href="https://github.com/GoogleChrome/chrome-app-samples/tree/master/servo" rel="nofollow">https://github.com/GoogleChrome/chrome-app-samples/tree/master/servo</a>
this working only for only integer</p>
<p>i want... | 2 | 1,346 |
Java exception when spring loading context configuration file - occurs in UNIX but not Windows | <p>I've been stuck with this one for a while now. I have created a mini subset of the project where this occurs and reproduced the issue. Basically I'm running a test which loads a spring context file with one bean into an ClassPathXmlApplicationContext object.</p>
<p>The weird thing is, on Windows, my test passes fin... | 2 | 3,577 |
How to exclude unwanted comparisons in two-way ANOVA in R | <p>I have asked about this already on stats.exchange (<a href="https://stats.stackexchange.com/posts/180225/edit">original question</a>), now I re-posted the same content here - hoping to get help from a wider population. </p>
<hr>
<p>I would like to know the way to exclude all the unwanted pairs from the output gene... | 2 | 2,471 |
How to sort list item by selecting dropdown option using list.js | <p>I am using list.js to sort list item but i want to sort the item on changing the <code>select > option</code></p>
<p><strong>HTML</strong></p>
<pre><code><div id="hotels">
<input class="search" placeholder="Search" />
<button class="sort" data-sort="name">
Sort by name
</b... | 2 | 1,067 |
Logging lots of Android sensor data | <p>I have an Android application that is logging several Android sensors at approximately 100Hz. So if i am logging 10 sensors, I am writing about 3000 data points per second to a file (each sensor typically has 3 entries). Now the problem is that i want to minimize the effect of this writing on the rest of the app. Sp... | 2 | 2,976 |
AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is 'serverSide' | <p>We have a enterprise license for ag-grid. I'm trying to bind the server side datasource to ag-grid, but it's not calling the server datasource method and giving this warning <code>"AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is 'serverSide'" </code> in console.</p>
<p>I... | 2 | 1,133 |
open last activity when the app is killed | <p>then in my app there are 103 activity, in sequence
SplashActivity -> Menu ---> Q_001 ---> Q_002 ... (...) ..... Q_finish.
in each of the activity I have a button to put exit from the app (like a home button), and a button that returns to the Menu.
Now I want that if the user kills the app, and open it at another tim... | 2 | 1,745 |
HTML table with background color and transparent image: border on bottom | <p>I'm making a horizontal menu of buttons that need to have a background color behind them. The button image is a white box with a transparent circle in the middle where the color shows through. </p>
<p>The actual button image will be more complex, so I can't just code the button.</p>
<p>This method works fine with ... | 2 | 1,307 |
Adding geometry to THREE.Object3D | <p>I've edited this post to make it more clear.</p>
<p>Well, What I am trying to do here is to represent a tile composed by 8 different triangles. Each triangle should be able to change it color independently.</p>
<p><a href="https://i.stack.imgur.com/iFsWz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/iF... | 2 | 1,266 |
C++ UDP server send message just when get client's address config | <p>My purpose is to create a UDP sender to broadcast message to a specific IP and Port, without any config requirment. I defined <code>struct sockaddr_in si_me</code> variable to set the server config on it and bind it:</p>
<pre><code>si_me.sin_family = AF_INET;
si_me.sin_port = htons(PORT);
si_me.sin_addr.s_addr = ht... | 2 | 1,446 |
MQL4 How to alert when a price reaches certain levels? | <p>I have this free indicator is the name is <strong><code>FiboPiv_v2.mq4</code></strong>.</p>
<p>It's a tool I use with good result in trading scalping. I set normally the alert by hand, but I see that the code is open and so I'd like to do a modification but I'm quite newbie in programming MQL4.</p>
<p>I would like... | 2 | 1,657 |
Google chart: Column Label exact value not approximate | <p>I have two charts:
1) google.charts.Bar
2) google.visualization.PieChart</p>
<p>The code is: <a href="https://jsfiddle.net/almiroleal/5w3n1cku/2/" rel="nofollow">https://jsfiddle.net/almiroleal/5w3n1cku/2/</a></p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div... | 2 | 2,333 |
Using native c++ wrappers for ncurses, How can I create a menu/submenu system? | <p>I spent the last year learning C++ (using C++ Primer as the recommended material from <a href="https://stackoverflow.com/a/388282/1440199">https://stackoverflow.com/a/388282/1440199</a>). I wanted to learn to use ncurses to make my first flying-solo program. Even though NCurses is C-based, it is more or less not wel... | 2 | 1,682 |
Storing serial print data from arduino in array | <p>I'm using a bluetooth connection to send serial data from Arduino to my Android app. The code I'm using to connect the Android device is <code>BluetoothChat.java</code> which is sample code you can find if googled.</p>
<p>The sample code displays the data in a <code>ListView</code> and I want to store it in an arr... | 2 | 1,435 |
How to group by date in QueryDSL? | <p>I've got following JPA entity:</p>
<pre><code>@Table(name = "execute")
public class ScenarioExecution {
.
.
.
@Column(name = "date")
@Temporal(TemporalType.TIMESTAMP)
private Date date;
.
.
.
}
</code></pre>
<p>where <code>date</code> is stored as <code>TIMESTAMP</code>, so it i... | 2 | 1,954 |
How modify my CaptchaSecurityImages.php page in Latest PHP code(Functions and Class) | <p>This is my <b>CaptchaSecurityImages.php</b> Page Source Code</p>
<pre class="lang-PHP prettyprint-override"><code><?php
session_start();
class CaptchaSecurityImages {
var $font = 'fonts/monofont.ttf';
function generateCode($characters) {
/* list all possible characters, similar looking characte... | 2 | 1,304 |
insert column datas of one table in mysql database into another table using php | <p>I have two tables(measurementurl and webmeasurements) in a single database(probe_config)
The first table measurementurl has the following fields</p>
<ol>
<li>id</li>
<li>url</li>
<li>comment</li>
</ol>
<p>The second table webmeasurements has the following fields</p>
<ol>
<li>timeout</li>
<li>url</li>
<li>wm(id of... | 2 | 1,719 |
Geoxml3 CreatePolygon function | <p>I am trying to know how to use the createPolygon function in the parser options.</p>
<p>This is my index file but it gives me this error: Cannot read property 'bounds' of undefined.</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"... | 2 | 1,425 |
ValueError and odepack.error using integrate.odeint() | <p>I'm trying to write an equation to model and then plot an integral control system (specifically regarding cruise control). However I'm receiving two errors whenever I run it:</p>
<p>ValueError: object too deep for desired array
odepack.error: Result from function call is not a proper array of floats.</p>
<p>I've r... | 2 | 1,141 |
How to change scene when button is pressed using Sprite Kit and swift 2 | <p>I am new to swift and trying add some extra features after reading this tutorial <a href="http://www.raywenderlich.com/66877/how-to-make-a-game-like-candy-crush-part-1" rel="nofollow">http://www.raywenderlich.com/66877/how-to-make-a-game-like-candy-crush-part-1</a>. What I want to do is combine with the element of d... | 2 | 1,289 |
Badoo like Swipeable Cards | <p>So I've been in this for a while now and have been unable to figure out how to implement 4-way swipe recognition in android. I've found different links pointing to different solutions but none of them fulfill my requirements.</p>
<p>What I wish to accomplish is to attain a "Badoo" like swipe gesture. Badoo... | 2 | 2,660 |
How to simply and efficiently query for nested relationships in SQL? | <p>I'm looking to write the simplest, most efficient SQL query to retrieve all of the <code>events</code> that are related to a given <code>user</code>.</p>
<hr>
<h1>Setup</h1>
<p>Here's a simplistic representation of what my schema looks like:</p>
<p><a href="https://i.stack.imgur.com/NUOOT.png" rel="noreferrer"><... | 2 | 1,489 |
Odoo Client Error: "Widget type 'html' is not implemented" after database transfer (Odoo 10.0-20170708) | <p>I transferred an Odoo 10.0 database from one LinxuMint 18.2 machine to another and now experience client errors:</p>
<p><strong>(1) when clicking Administrator > Preferences: "Error: Widget type 'html' is not implemented"</strong></p>
<p>Nothing happens afterwards, no Preferences dialog window comes up! This is ... | 2 | 4,171 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.