title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Could not install cordova phonegap-push-plugin for my ionic 3 app
<p>I've tried to install on mac for my ionic 3 app the push plugin.</p> <p>In order to install I run: <strong>sudo ionic cordova plugin add phonegap-plugin-push</strong></p> <p>As a result I get:</p> <p>-for Android seems ok</p> <p>-for iOS I recive the following errors: </p> <pre><code>Installing "phonegap-plugin...
3
1,068
android Gps Alert status
<p>I am checking in GPS status (is it active or passive) on My application,When Gps is closed, Alert Prompt Dialog opens and it asked <strong>"for a better experience turn on device location which uses google's location service"</strong> and When I click <strong>No Thanks or Ok</strong> it doesn't fall inside of onAct...
3
2,262
Customizing SendARInvoiceMemo action in ARInvoiceEntry
<p>I have created an extension for ARInvoiceEntry with a custom action that replicates SendARInvoiceMemo but adds an additional attachment to the invoice notification email.</p> <p>This works as expected with an extra button, but I need it to replace the original action. I have used the same name for it to overload th...
3
1,087
Why my service does not share data between controllers?
<p>I built a factory to get Data from the Database and pass to all controllers in my application like this:</p> <pre><code>(function () { angular.module('appContacts') .factory('dataService', ['$http', dataService]); function dataService($http) { return { getCurrentOrganization: g...
3
1,498
Variables Not Set Intermittently
<p>The app I'm working walks the user through an interview and spits out a PDF with product recommendations based on their answers. I'm currently having a problem with some phones not setting the variables properly at unpredictable times.</p> <p>The data is stored in a class instance named "newTracker", and (for the s...
3
2,206
UIAlertController change other UIView
<p>i spend lot of time but i can not figure out how can fix this problem . I made a picker view that is appearing from bottom . it is working fine but problem is when any other event shown alert view . same time picker view come from top . </p> <p>note . before alert view appear . picker view working fine . after a...
3
1,423
notification for low battery
<p>i was trying to pop a notification when the device have under 15% battery left. but it shows the notification every time, also when i have over 15%.</p> <p>this is my code:</p> <pre><code>public class MainActivity extends Activity { public int battery, level; private static final int DIALOG_EXIT=1; Button Hscore...
3
1,177
Getting a weird NoSuchElementException
<p>We are trying to compile our program, but we keep getting a <code>NoSuchElementException</code>. Anyone that has a clue on why this keeps occurring? Thanks in advance. In the following I will attach both the code where we implement the exception and also the main method.</p> <p>EDIT - whole code in the following:</...
3
2,412
Getting tag of Multiple Checkbox from Custom Adapter binded on AlerDialog
<p>I have an <code>AlerDialog</code> which displays a <em>list of items</em> with <code>checkboxes</code>.I am trying to get the <code>tag (Checkbox.getTag())</code> of selected <code>checkboxes</code> and append them to a <code>String</code>. Then i want to get this <code>String</code> from the class where i have decl...
3
1,159
AVFoundation screenRecording issue
<p>Hello I'm trying to use AVFoundation framework to make a screen recored. And I'v got 2 problems: 1) the recording is starting with a delay after the button is pressed. 2) If I insert breakpoint to throw all the exceptions it get stuck at :</p> <pre><code>[session startRunning]; </code></pre> <p>The code is:</p> <...
3
1,177
npm ERR! Found: @angular/animations@8.2.14 npm ERR! node_modules/@angular/animations npm ERR! @angular/animations@"^8.0.0" from the root project
<p>I'm trying to give npm install but at that time it is showing below error,</p> <pre><code>npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: ngx-admin@4.0.1 npm ERR! Found: @angular/animations@8.2.14 npm ERR! node_modules/@angular/animations npm ERR! @angu...
3
4,173
Why does this Python code show me a "TypeError: 'int' object is not iterable" after executing without any problems?
<p>My Code works just fine, but there is always an error at the end after everything was executed. And since I am a beginner I do not know why xD. Would be really cool if someone could help, I am just feeling really stupid right now xD. Thanks a lot in advance (: Here is also the complete Error message it shows:</p> <p...
3
2,470
How to prevent StaggeredGridLayout Manager to reorder RecyclerView Items?
<p>I want to populate a RecyclerView with 2 different Item types,</p> <p>Column in the middle should have only the <code>BIG_ITEM</code> and the other columns should have the <code>SMALL_ITEM</code>, by using <code>GridLayoutManager</code> with 3 columns and specifying Item Types as </p> <p><code>position % 3 == 1 -&...
3
1,200
Django: save() missing 1 required positional argument: 'self'
<p>I'm trying to override the save method and I think I write exactly what the document said, but get the error</p> <pre><code>from django.db import models class Post(models.Model): name = models.CharField(max_length = 20) lower_name = models.CharField(max_length = 20) def save(self, *args, **kwargs): ...
3
1,371
What pointer type to return to NASM from a ctypes callback?
<p>I am calling a NASM 64 dll from ctypes; it includes a callback to the SciPy function integrate.dblquad. The callback receives a pointer to an array of two doubles and returns a pointer to an array of two doubles. The callback function executes correctly and shows the correct results in Python, but I am having trou...
3
1,223
Data is not received by Jest Client from ElasticSearch Suggestor 5.1, Play Framework
<p>I am trying to retrieve the suggestor result from elasticsearch 5.1 but currently I am getting an empty result. I am currently using jest client. My code is below. </p> <pre><code> JestClientFactory factory = new JestClientFactory(); factory.setHttpClientConfig(new HttpClientConfig ...
3
1,142
Show ! sign after # in url when i route in angularjs
<p>I am new to angularjs,i try a demo test for routing ,below is my codes</p> <p>app.js</p> <pre><code> var app=angular.module("tutorialApp",["ngRoute","tutorialCtrlModule"]); app.config(function($routeProvider){ $routeProvider .when("/",{ templateUrl:"views/tutorial.html", controller:"Tuto...
3
1,185
jQuery / jQuery UI nested sortable list where parent folder cannot be nested
<p>I'm trying to created a nested folder structure using jquery / jquery ui.</p> <p>However unlike the many examples out there i do not want the parent folder to be nestable within another parent folder.</p> <p>So in short:</p> <p>I want to adjust the following script so that sub folders can be moved to other sub fo...
3
1,210
Android Retrofit GET
<p>I am new to Retrofit and built a simple app using it. But when I tried to run the app, it didn't display the data fetched from the web. However, the api hits are increasing each time. Kindly help me solve this out. Thanks in advance.</p> <p>Main Activity:</p> <pre><code>package com.vyshnav.trainname; import andr...
3
5,706
Flutter: All ListTile Items responding same click
<p>I am new to flutter so I was trying to build a scrollable listtile objects. So after building it I tried to make the iconbutton change color when onpressed which works but when I press a single button it changes the colors of all the items. I guess it has to do with assigning a unique id/key to each of the items but...
3
2,117
NoMethodError in EventsController#index | undefined method `has_reputation' for [rails4]
<p>i am new to rails - so any help will be much appreciated. i am currently using the GEM 'twitter/activerecord-reputation-system' and following the rails tutorial #364 on rails cast.</p> <ol> <li><p>i am unsure why i am getting the error as i thought the has_reputation method should be already automatically defined w...
3
4,132
Why can't i use keyPressed anymore once the if-statement is true in the run()-methode?
<p>I'm trying to make a kind of brickbreaker game but once I press the start button ("starten" = true). I can't use the keyPressed()-utility anymore but before i pressed the start button I could use the keyPressed()-utility. Could somebody please tell me why I suddenly can't use the keyPressed()-utility anymore and giv...
3
1,419
How to post values from checkboxes generated from an ArrayList to another objects ArrayList with form in Thymeleaf and Spring?
<p>I have a form that takes several inputs from the user to create an object and one of these inputs are a set of checkboxes.</p> <p>The checkboxes are generated from a <code>Model</code> with an <code>ArrayList</code> with <code>Grape</code> objects called <strong>&quot;GrapeList&quot;</strong> but I can't manage to f...
3
1,321
Position the last HTML Table Cell to the right side of the Body
<p>Updated question to include the code*** I tried a few things to get them to line up but haven't had luck. May need to try using col but I am not sure how to go about it. I can post my code if anyone is interested. *Updated question to include the code***</p> <p>This is how I want it to look: <a href="https://i.stac...
3
8,798
Change column value based on calculated mean of other column in python pandas
<p>I am newbie to pandas. I have gone through many questions, but doesn't found an answer. </p> <p>I have the following datasets.</p> <pre><code>Name || Price || Cuisine Category || City || Region || Cuisine Types || Rating Types || Rating Pizza || 600 || Fast Food,Pizza || Ajmer || Ana Saga || Quick Bite...
3
1,126
Netty server response time inconsistent
<p>I created a netty tcp client and server. I calculate the total response time in client. When i do a load test i see that every 8th request takes long time. What could be the reason? Any pointers on improving the performance.</p> <pre><code>Connecting to localhost:9065 PROCESSING TIME [32.508 ms] PROCESSING TIME [1....
3
1,629
How can I make the input to get inserted instead of overwritten on the console?
<p>I wrote the following header file and included in my code:</p> <pre><code>#define ARROW_RIGHT 77 #define BACKSPACE 8 #define INSERT 82 #define F1 59 #define F2 60 #define F3 61 #define F5 63 #define SPECIAL_KEY(x) (x==0 || x==0xE0) //Global variable for screen dimensions COORD dims; /*Note: the following method al...
3
2,764
NLog prevents update database in ASP.NET Core
<p>I'm using NLog in my ASP.NET Core Web API project. I have and issue in <strong>Update-Database</strong> while using <strong>NLog</strong> <br > This is my NLog.Config file in my application :</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt; &lt;nlog xmlns=&quot;http://www.nlog-project...
3
1,668
Cucumber tests are no longer running from a Maven context
<p>With my latest commit, it seems I've somehow broken the ability to run my Cucumber tests. I've tried to row back to no avail. Can anyone see anything obvious? It's a project with 2 modules and a parent pom. The build runs fine with no errors but 0 tests run. I'm at a loss. </p> <p>I've attached a screengrab of ...
3
2,131
Converting ggplot2 with ggplotly: packages error
<p>I've been building a small scatterplot map in ggplot2 to post in a shiny app and it went ok, but I want to try and make it interactive, for example to see the values of each point and be able to resize the map as desired. I am seeing that there is a more simple solution rather than rebuilding another map in plotly, ...
3
1,722
Android - Navigating through USSD menu using pre-determined inputs sent via requests
<p>I am planning to create an Android App that will automate sending a users response to a USSD Menu. At a click of a button, the app will send the initial code, followed by the rest of the menu inputs.</p> <p>For example, the initial number is *143#, followed by 1, 1, 1, and a user PIN. I'd like to be able to automat...
3
2,452
Can't open script file in Mono Develop after update unity
<p>I update my Unity from 5.2 to 5.6, this is success. But after update, i can't open file script. This is Error </p> <blockquote> <p>The file '/Users/vietbac/Desktop/New Unity Project 1/Assets/NewBehaviourScript.cs' could not be opened. Error while loading style :Default</p> <p>System.IO.IOException: Error whi...
3
2,606
Rails Always Eager Load association with default_scope doesn't work
<p>I'm trying to Eager Load association Curriculum with <code>default_scope</code> but it doesn't seems to work, since N+1 queries are being generated. These queries exists because of the after_initialize hook.</p> <p>How can I remove those N+1 queries?</p> <pre><code>class User &lt; ActiveRecord::Base has_one :cu...
3
1,959
Access Oculus Go Controller via GamePad API in Oculus Browser?
<p>I'm testing out a couple of my three.js apps in my new Oculus Go. I'm wondering if it's possible to access the controller just using the GamePad API that seems to be available today with the major browsers. </p> <p>Looking at the Oculus documentation, it seems like it can be done through the OVRManager that comes w...
3
1,537
Python code to click a button using css selectors
<p>I am brand new to python and am trying to modify some existing code. I have a form with the following elements:</p> <pre><code>&lt;div class="v-actions"&gt; &lt;input type="submit" value="Save"/&gt; &lt;input type="button" value="Accept"/&gt; &lt;input type="button" value="Reject"/&gt; &lt;/div&gt; </co...
3
1,529
CSS - change the color of a text dynamically
<p>I am new to <code>CSS</code> and <code>AngularJs</code>. I am using text-angular in which I am showing a html file.In that based upon some rules I have some words from that html which needs to be highlighted. I have previous and next click functionality where when I click next it auto-focus the next word and highlig...
3
1,163
rails .js.erb views does not work on production server since it work on development machine
<p>I don't have any idea why code works on development machine, but doesn't work on production server. I am trying to create live chat between operator and user. In development machine the user's interface and operator's works fluently. I am using pusher as web-sockets. Actually every js.erb view does not work at all i...
3
1,748
Binary Image POST - iOS
<p>I have an app which makes a OAuth 1.0a POST request to the Tumblr API. I have been following their documentation for how to upload a photo and although I have set the parameters, it doesn't work.</p> <p>The Tumblr API Documentation states that you need these in your parameters:</p> <p>source - (string) - The photo...
3
1,348
Custom output XML (with attributes) with TastyPie?
<p>I apologize in advance if this is not the correct area to post this, but I can't seem to find any help in the docs or on Stack Overflow. TastyPie is awesome, and I've been able to get very close to the desired XML output. However, the problem arises when I want to have a custom attribute on a node. I can't seem to...
3
1,059
Cannot access reject parameter from returned promise
<p>I cannot access the returned reject from this deferred. I think it might be because this function is nested and I have to place a return reject somewhere else. Please advise.Thanks.</p> <p>I'm expecting the reject value, to be used here:</p> <pre><code> $.search(boxes).then(function(results) { console.log...
3
1,201
Use nested SELECT instead of additional joins
<p>When using a INNER JOIN in a default scope, the INNER JOIN is applied to the wrong table. I have 4 models: <code>Task</code>, <code>Project</code>, <code>ProjectUser</code> and <code>User</code>. Their structure, relations and default scope can bee seen below.</p> <p>A project is only allowed to be visible to a Use...
3
2,519
How to read the WhoAmI register of an ST-sensor during both initialization of the program (works) and repeatedly during LoRaWAN duty cycle (doesn't)?
<p>I have been trying to program an STM32WL55JC1 microcontroller on a LoRa-E5-Mini from Seeed studio to be a LoRaWAN endnode and relay airpressure data from an ST LPS22HH sensor to The Things Network.</p> <p>I think the problem I seem to be having must be in the code. The reason is that upon initialization, reading out...
3
2,466
jQuery - Attach a delete button to autoappend script?
<p><strong>REVISED CODE AT THE END</strong></p> <p>I'm very new to jquery, and even though I love it, there's a lot I still need to learn... The code below will append a new row if the user clicks in the one of the existing cells in a row. That part works fine. I'm trying to figure out how to also have a [-] button ...
3
2,480
Get data from multiple tables using Seqeulize
<p>I have two tables, Post and Comments, I am trying to get all posts by userId and also fetch the relevant comments for each post using the following code. I am getting all the posts but nodejs through an error <strong>&quot; comment is not associated to post&quot;</strong>.</p> <p><strong>Post Table</strong></p> <pre...
3
1,722
Having Null Pointer Exception and JDBC.sql exception User not Found
<p>I'm making my user log in and logged out whenever I get my user signed up it provides an error. </p> <p>List of Problems are</p> <p><strong>INFO [stdout] (default task-6) org.h2.jdbc.JdbcSQLException: Table "USER" not found;</strong></p> <p><strong>SQL statement: stdout] (default task-6) INSERT INTO user(firstna...
3
2,955
Can't Pause Storyboard in WPF
<p>I have a ListView where each item contains two Images defined in a DataTemplate. When the ListView's SelectedItem changes, I use style triggers to begin storyboards that change the opacity on the two images of the SelectedItem over a total duration of 4 seconds. After the storyboards are complete, I change the Sele...
3
7,066
Why is this PHP page completely blank?
<p>I have a shopping cart and I want to send the purchase to my database. I am completely sure that the form part works fine, however the page where the purchase needs to be inserted into the database is wrong. However, I don't really know what's wrong and why it's giving me just a blank page (addorder.php, the process...
3
2,619
How can I make multiclient server in python using multithreading?
<p>This is the code that I have used.But I don't get actual result that I want.When I execute code ChatServer file works properly,but ChatClient gives only one line(Usage : python telnet.py hostname port).Please Help me.I am new in python.</p> <p>The server code:</p> <pre><code>#!/usr/bin/env python #!/usr/bin/env py...
3
4,092
how to create hbase table with multiple columns family on HDP hortonworks?
<p>i'm pretty new with HDP and i want to create an hbase table with multiple columns, and load data from an an csv file as below</p> <p><a href="http://i.stack.imgur.com/9F9E3.png" rel="nofollow">csv file</a></p> <p>as u can see, i have per example column family "informations personnelles" that contains multiples col...
3
1,511
qt app failed to build
<p>I'm developing an app in Qt/C++, the goal of this app is just to scan periodically usb ports and in case the app found a specific usb device, it's start an application.</p> <p>I have used QTimer but it seems not working. different search show that Q_OBJECT is required to make it work but as soon as I add Q_OBJECT t...
3
1,032
split column on the last occurrence of a delimiter into two columns based on column condition in spark dataframe
<p>I have the following spark dataframe</p> <pre><code>+------+--------------------+-----------------+--------------------+ |entity| instance| name| value| +------+--------------------+-----------------+--------------------+ |Column| ARM_PRED| Histogram.abs. | ...
3
1,526
Issues building a multi threaded C++ server
<p>Currently, I am trying to explore more about <a href="https://github.com/libevent/libevent" rel="nofollow noreferrer">libevent server library</a>.</p> <p>I came across this <a href="https://github.com/frknyldz/http-server-library" rel="nofollow noreferrer">example</a><sup>†</sup>, which I ran with main as:</p> <p><s...
3
1,290
How to Upload Photo and return GPS co-ords
<p>All, I'm tinkering with a simp[le form to upload a photo, store it within my server &amp; then return the GPS co-ordinates. I'm using the standard PHP file upload script and a GPs solution i found here. It allows me to upload files but does not return the GPS co-ordinates. Can anyone help identify the issue please?...
3
1,814
WordPress customized calendar next and previous year gives 404
<p>I have a calendar that I created in WordPress. There is a next and previous month link at the top. They navigate fine through the current year, but when the year changes to either the next or previous year, I get a 404 error.</p> <p>The link with each month looks like this (January 2014 for example): <code>mysiteur...
3
1,183
spring-data neo4j: can't find node entity by related entity
<p>Using spring-data neo4j, I have 2 node entities: snippet and person. Each snippet has an author. Following are the classes and then the test that fails:</p> <pre><code>@NodeEntity public class SnippetLink { @GraphId @GeneratedValue Long id; @Fetch @RelatedTo(type = "AUTHORED") @Indexed ...
3
1,157
Form submit / Jquery Event problem
<p>Ok: i have a dynamic form like this:</p> <pre><code>&lt;div id="container"&gt; &lt;div id="autosuggest"&gt;...&lt;/div&gt; &lt;form action="" method="post" id="inputForm"&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;amount&lt;/th&gt; &lt;th&gt;name&lt;...
3
2,505
Using make_scorer in GridSearchCV to score based on recall on postive class
<p>I am trying to use <code>Sklearn</code>'s <code>GridSearchCV</code> for a binary classifcation problem (originally a multi-class problem, but I was having issues as asked about <a href="https://stackoverflow.com/questions/71847809/scoring-gridsearchcv-based-on-the-recall-of-one-or-more-target-classes-but-not-o">here...
3
2,283
Recording a h264 video in python on a Raspberry Pi in a circular buffer and saving a specific number of seconds
<p>I'm using the picamera library to create a PiCamerIcrcularIO stream to write the recording data to. I can't seem to get a reliable method to always create a video file with a 6 second length to it. Depending on when I copy the video data to disk I can end up with anywhere between 3 to 6 seconds of video. Here is the...
3
1,389
Pass option value from one function to another function
<p>I have a function like this:</p> <pre><code> $('input[type=radio][name=editList]').change(function() { if (this.value == 'Proveedor') { $.getJSON("@Url.Action("GetProveedores", "Agenda")", function (data) { var ...
3
4,789
Why can't the compiler figure out (_ >: T) => (_ <: V[_ <: U]) <: T => V[U] for V[+_]?
<p>So I was playing around a bit, trying to write something on existentials and variance, and I came across this interesting piece of code.</p> <pre><code>final case class Box[+T](val value: T) { def &gt;&gt;=[U](f: T =&gt; Box[U]) = f(value) def flatMap[U](f: (_ &gt;: T) =&gt; (_ &lt;: Box[_ &lt;: U])): Box[U] = ...
3
1,305
Get a specific value in an xml document with c#
<p>I want to grab one specific value within an XML document at a url, I have managed to get a list of all values, but I'm not sure how to choose the specific value. The XML document is as follows;</p> <pre><code>&lt;evec_api version="2.0" method="marketstat_xml"&gt; &lt;marketstat&gt; &lt;type id="37"&gt; &lt;bu...
3
1,051
Cocos2D setvisible =no after animation finishes
<p>In my code asteroids coming toward to the ship, I want to implement explosion animation if laser hits the asteroid. Asteroid should run explosion animation and switch to invisible mode.</p> <p>Without animation when target is hit, target successfully switches to invisible mode. Without setting object to invisibl...
3
1,141
How to calculate the distance between differents lat long and display on map dynamically react native
<p>I have implemented map in my application. Below is a dummy array geoCord[] I am getting api respons in one array and I am mapping this and diaplaying lar long on maps . No I am trying to calculate the distance between two lat longs, like in array there are 2 values which is displaying on map , so there shoul be one ...
3
3,478
Error:Android Source Generator: IndexOutOfBoundsException after PC crash
<p>My PC has crashed occasionally, and after restart I got this, and can't run my project. What do to, who knows?</p> <p><strong>UPDATED</strong> for moderator: this is definitely Android Studio bug, so appropriate tag is important for whose who will search the same. The cause is in Android Studio's .idea file, I assu...
3
1,064
How to manage API permissions? javascript
<p>I've written some client-side app and tried to test it. How it turned out only I can use it. Anyone else will get such error. </p> <pre><code>{ "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Forbidden" } ], "code": 403, "message": "Forbidden" } } </code><...
3
2,352
Getting name, gender, location of "me" from GoogleApiClient
<p>In an Android app I have followed the example <a href="https://developers.google.com/android/guides/api-client" rel="nofollow noreferrer">Accessing Google APIs</a> sofar that the <code>GoogleApiClient</code> connection is successful and the <code>onConnected</code> callback is called.</p> <p>However the Google's ex...
3
1,184
How to display updated markers, leaflet
<p>Good morning all I would like to have a position tracking with the leaflet. I managed to display the markers with the positions update every 5 seconds by javascript on an XML file.</p> <p>I have 2 problems.</p> <p>The first: the data is well recovered and the markers well positioned, but the markers not being remove...
3
1,075
AngularJs object Sorting
<p>I have JSON like this inside the main Array Object</p> <pre><code>obj = [{{"title":"1-Introduction"}, {"title":"5-Introduction"}, {"title":"20-Introduction"}, {"title":"4-Introduction"} }] </code></pre> <p>I want to sort the above object like </p> <pre><code>obj = [{{"title":"1-Introduction"}...
3
2,542
Angular DI in a hybrid boostrapped application
<p>I have a sizable AngularJS (aka Angular 1) application that is written in Typescript. I've decided that new features should be written in Angular (aka Angular 4) and have taken the steps to boostrap the app in "hybrid mode".</p> <p>This seems to work (all the AngularJS bits work fine) and I've added a single Angula...
3
1,093
JavaFX using Gluon SceneBuilder InvocationTargetException
<p>I was making an application for a buddy of mine and finished the design for the login screen and saved it in eclipse. This is a .fxml file by the way, and it throws an InvocationTargetException whenever I try to run the main method.</p> <p>Here's the stack trace:</p> <pre><code> Exception in Application start m...
3
1,756
How to clear list before loading-Bootstarp 4
<p>I created list group as following :</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &l...
3
2,879
how do i share and save image and text together with Intent.ACTION_SEND?
<p>i want to save and share image with text , and im using</p> <pre><code>i.putExtra(Intent.EXTRA_TEXT, shareMessages); i.putExtra(Intent.EXTRA_STREAM,path); i.setType("image/*"); i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); </code></pre> <blockquote> <p>save image actually working !</p> </blockquote> <p>but...
3
1,059
How display a filter exposed when the accordion link is open?
<p>I use Drupal 8 and Bootstrap 3 on my site.</p> <p>I created accordion links using the views on this page:</p> <p><a href="https://www.s1biose.com/profil/mathieu" rel="nofollow noreferrer">https://www.s1biose.com/profil/mathieu</a></p> <p>Each view has an "Exposed Filter" block, how do I display filters when an ac...
3
6,611
Unable to connect to MSSQL database via django-mssql
<p>I'm trying to connect to my Microsoft SQL Server database from django but I am getting the following error when running the web server using <a href="http://django-mssql.readthedocs.io/en/latest/quickstart.html" rel="nofollow noreferrer">django-mssql</a></p> <pre><code>PS N:\Documents\Python&gt; python .\manage.py ...
3
1,199
How to resolve strange jquery function behavior?
<p>I have two buttons in a line of a datatable and each one of them has his own function on click event. The problem that the second function won't work when I click on its button but it does when I click on the fist one</p> <p>Here is the full controller:</p> <pre><code>(function () { 'use strict'; var table...
3
2,905
RaspberryPi camera stream processing with Python 2.7
<p>I found following code <a href="https://picamera.readthedocs.org/en/release-1.10/recipes2.html" rel="nofollow">here</a> for catching a video stream from the RaspberryPi camera.</p> <p>Now I want to process the video stream (e.g. finding BLOB or display the video).</p> <p>For this purpose I need to catch the conten...
3
1,451
How can I prevent the odd insertion of :@new_record when cache hits in Dalli?
<p>I'm implementing caching on Heroku using Dalli and Memcachier, and when I get a cache hit it's adding a Symbol to the returned array (or hash, in a different example). This Symbol, :@new_record, has nothing that I know of to do with the results I'm returning, is inserted on different types of cache fetches, and I ha...
3
1,717
Zend 2 router - optional unknown parameters
<p>We have standart route from sample</p> <pre><code> array( 'type' =&gt; 'Literal', 'options' =&gt; array( 'route' =&gt; '/application', 'defaults' =&gt; array( '__NAMESPACE__' =&gt; 'Application\Controlle...
3
3,016
After clicking on my listview i want it to extract the phonenumber then send SMS to the clicked phonenumber
<p>I am very new to android and do not have much knowledge about java but am required due to school project. I need the phonenumber to be extracted and send SMS when a particular name or number is clicked on the listview. I am stuck. Thanks in advance. Now i only manage to send a SMS to this number "123456" whenever i ...
3
1,669
How to extract fields from nested fields using Marshmallow
<p>I have a scenario where in I have to extract fields from a event receiving from kinesis as dictionary.I have to extract schema from the dictionary which looks like below:</p> <pre><code>{ 'rec_id': 'com-website', 'etl_tstamp': '2021-12-10T18:46:15.011Z', 'collector_tstamp': '2021-12-10T18:46:14.630Z', 'dvce_crea...
3
1,090
Why does this new window notification appear only when the user has manually pressed a button in a chromedriver instance? Selenium related
<p>I have a simple python program that opens <a href="https://opensea.io/" rel="nofollow noreferrer">this page</a> with <code>chromedriver.exe</code>, then it clicks on the wallet icon located at the top right corner of that page, for then clicking on the MetaMask wallet button, here:</p> <pre><code>from selenium impor...
3
1,123
Only with CSS, looping 30 images one after another for infinite time creating a burning fire effect
<p>sorry if this question repeats another one , but i did not find result for only CSS usage for creating this effect . </p> <p>I have 30 images , with which i need to create a burning effect ( hence they need to show in the same div content and to loop infinite. </p> <p>I tried with percentages and with adding the b...
3
1,326
auto apply masonry in knockout binding handler after dynamic update
<p>I am using <a href="http://knockoutjs.com/" rel="nofollow">knockoutjs</a> with <a href="http://masonry.desandro.com/" rel="nofollow">masonry</a> and have created a custom knockout binding handler to apply masonry to a html element.</p> <p>The container I want to apply masonry to has it's content injected dynamicall...
3
1,231
How to properly call an external api to use from within express application to build my own restful api?
<p>I'am trying to create a restful api but I need to use an external api quandl to build my api, when i try to use my api from the client(built in angularjs) i get a 500 internal server error and No default engine was specified and no extension was provided in command line. i know my api work cause i tested it with pos...
3
2,645
get values of single candlestick in mouseover in candlestick chart in d3
<p>I am trying to get the values like high low close and open of a single candlestick in candlestick chart in d3. On mouseover I want these values. For that I need to uniquely identify each candlestick so that on mouseover I can get values for that specific candlestick. My code is as below. I tried appending group ele...
3
2,625
Responsiveness through container width
<p>I am using bootstrap for responsive form layout. I am able to achieve responsive layout through bootstrap grid system (col-xs-.., col-md-.., etc..) Here's the working example: <a href="http://jsfiddle.net/xf93jnLw/2/" rel="nofollow">http://jsfiddle.net/xf93jnLw/2/</a></p> <p>The issue is due to media queries, the f...
3
5,803
Sending ViewData to PartialView which is dynamically loaded using ajax call
<p>I am loading a _PartialView Dynamically to a view using Ajax call. And I want to send some view data in order to maintain state of that partial view in case some error occurs and page is posted back to itself and display the error message.</p> <p>Here is my ajax code on the view which fires on change of a drop-down...
3
6,455
notifyDataSetChanged mess up my list view
<p>I am trying to use <code>notifyDataSetChanged</code> , to update my list view in order to change one row in it from password dots, to plain text and back to password dots.</p> <p>In my adapter (changed it based on a comment here ) I check the type of the object that I have in that row. If the row is a password I se...
3
1,705
how to make function to validate inputs in dynamic table in vue js
<p>I have dynamic table in vue Js, I have created validation function to validate inputs and inputs from dynamic table, the validation function is working ok for all inputs unless dynamic table inputs, The validation functions gives always the same messages <strong>top interval is empty</strong>, <strong>bottom interv...
3
2,051
GeoJson Jackson - parse JSON to Java object fails
<p>I am working on parsing a GeoJSON file into Java POJO classes. I have found the GeoJSON Jackson library which seems to be exactly the same as I need.</p> <p><a href="https://github.com/opendatalab-de/geojson-jackson" rel="nofollow noreferrer">https://github.com/opendatalab-de/geojson-jackson</a></p> <p>I have a JSON...
3
1,565
Type-bound assignment reinitializes the members to zero
<p>I am new to fortran and trying to implement a matrix class in it with the use of dynamic memory allocation and pointers. When I was trying to overload the assignment operator, I observed that the object members get reinitialized to zero on the entry to the assignment subroutine. Following is a simple program that re...
3
1,148
How to speed up multiple str.contains searches for millions of rows?
<p>I have a dataframe of shop names that I'm trying to standardize. Small sample to test here:</p> <pre><code>import pandas as pd df = pd.DataFrame({'store': pd.Series(['McDonalds', 'Lidls', 'Lidl New York 123', 'KFC', 'Lidi Berlin', 'Wallmart LA 90210', 'Aldi', 'London Lidl', 'Aldi627', 'mcdonaldsabc123', 'Mcdonald_...
3
1,863
TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'.
<p>This is my code:</p> <pre><code>fout = open(path + "/log.txt", "w") while (True): mini_batch = train_graph_data.sample(config.batch_size) loss = model.fit(mini_batch) batch_n += 1 if train_graph_data.is_epoch_end: epochs += 1 batch_n = 0 loss = 0 if epochs % config.di...
3
1,150
Change button color on click among similar multiple buttons
<p>Let me elaborate the process. Following is the sample code snippet of my application</p> <pre><code>import tkinter as tk class ldo(Frame): def __init__(self, master = None): Frame.__init__(self,master) self.grid() self.appOutline() def appOutline(self): self.masterframe1 = F...
3
1,146
Strange mouseover and mouseleave behavior
<p>I must be not understanding mouseover/mouseleave, because I can get more than one menu to drop down at a time. I get the exact same behavior if I use <code>.hover(fOver, fLeave)</code>.</p> <p><a href="http://jsfiddle.net/abalter/zhbjsvm4/" rel="nofollow">http://jsfiddle.net/abalter/zhbjsvm4/</a></p> <p><a href="h...
3
4,161
Is there anything like Unity for simple things that don't require an interface?
<p>Perhaps I'm misapplying Unity, but here goes. I have a couple of applications, both of which load the same plugin assemblies. All assemblies require a library, and I want them to be able to access this library via Unity. However, in order to use Unity, or any other IoC framework, I'd have to write an interface fo...
3
1,199
How to set Dialog width and height in percents in XML
<p>I need my Dialog width and height fill 70% of screen space. I'm using <code>ConstraintLayout</code> as root layout and tried to achieve this by using <code>app:layout_constraintWidth_percent</code> but it's not working.</p> <p>It would be great to achieve this in <code>XML</code> without Java code.</p> <p>Here is my...
3
2,244
Scrapy: removing html from an array returned to items.py dictionary
<p>Firstly, thanks for any and all help!</p> <p>...new to stackoverflow (&amp; python) si I apologize for using the wrong terminology :)</p> <p>I'm using Scrapy to pull data from an html source, which creates dict fields in it's items.py by using Scrapy's selectors:</p> <pre><code>def parse_item(self, response): i...
3
1,865
Laravel - set /public as root on LAMP stack
<p>I'm trying to deploy a Laravel App on a LAMP stack although I am having trouble setting the document root as <code>/public</code>. I've looked at several answers on here already for similar problems but am yet to find my problem or a solution. I ideally I want to do it through the Apache web server and not modify an...
3
1,030
Collision-based springing
<p>I have placed one large ball, "centerBall", in the center of the stage. Then I added in a bunch of smaller ones, giving them random sizes and velocities. These will move with basic motion code and bounce off the walls. On each frame, did a distance-based collision check between each moving ball and the center ball. ...
3
1,519