title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Asterisk AGI script falls when caller hangup | <p>I'm having the simple AGI script, I need to dial 101 extension by calling 6666 number and calculate answered time after call. Everything works fine when callee hangup, but when caller hangup agi script falls with returning 4.
<br>
Sorry for my English)
<br><br>
<strong>agi.php</strong></p>
<pre><code>#!/usr/bin/php ... | 2 | 4,093 |
set Default value for a route in laravel alongside a url param binding | <p>ok lets say i have a <code>ProfileController.php</code>.
in the <code>edit</code> method it looks like this:</p>
<pre><code>class ProfileController extends Controller
{
public function edit(\App\User $user)
{
return view('profile.edit',compact('user'));
}
public function update(\App\User $u... | 2 | 1,033 |
reading xml file with XmlReader reads only the first element | <p>I'm having problems reading child elements with XmlReader.</p>
<p>My xml file</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<WateringZones>
<WateringZone>
<Enabled>True</Enabled>
<Name>Calle 1</Name>
<Relay>1</Relay>
<Monda... | 2 | 7,662 |
Parse Values from Google distance matrix API | <p>MY JS which follows calls a PHP asynchronously.</p>
<pre><code>function gettravelDistanceTime()
{
var latitude="10.014381";
var longitude="76.334256";
var toLatitude="10.014307";
var toLongitude="76.312421";
var curPosition=latitude+","+longitude ;
var toPosition=toLa... | 2 | 1,784 |
Opencv Python - Similarity score from Feature matching + Homograpy | <p>I have several fish images in my database , My Goal is to find similarity score between user input fish image and images in database. For that I am using opencv Feature matching + Homograpy from this link.</p>
<p><a href="http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_feature2d/py_feature_h... | 2 | 1,334 |
How to use the order and group by in ng-repeat with data format | <p>I have a json as</p>
<pre class="lang-js prettyprint-override"><code>[{
"type" : "visible_product",
"description" : "asdjkjasd asdak",
"launch_date" : "2015-12-03T10:42:34.972Z"
}, {
"type" : "non_visible_product",
"description" : "askjd asdkasd askdjkasd",
"launch_date" : "2015-12-03T10:44:34.972Z"
}... | 2 | 1,263 |
Highcharts: Error bars in drill-down charts | <p>I have a Highcharts chart where I used error bars to represent uncertainty in a reported measurement.</p>
<p>This chart also has a drill-down for every series. When we drill down, the data should also show the Error bars for the new columns that are displayed.</p>
<p>This is not working right now. The Error bar se... | 2 | 1,468 |
Adding Dagger-2 to Android Studio | <p>I asked this question previously <a href="https://stackoverflow.com/questions/35981039/instrumentation-doesnt-inject-touch-in-rooted-device">https://stackoverflow.com/questions/35981039/instrumentation-doesnt-inject-touch-in-rooted-device</a> which states that <code>instrumentation</code> doesn't work on <code>Lolli... | 2 | 1,026 |
Android CollapsingToolbar/ AppBarLayout scroll behind status bar behaviour top padding | <p>I'd like to use <code>CoordinatoryLayout</code>, <code>AppBarLayout</code> and <code>CollapsingToolbarLayout</code> to create a layout that resembles the below example from Google Calendar.</p>
<p><a href="https://i.stack.imgur.com/sPfmS.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sPfmS.gif" ... | 2 | 2,831 |
how to convert Ge'ez -1 font to unicode (power geez unicode ) | <p>i was trying to publish an article which is written in Gee'ez -1 font Microsoft word. but i copy and past the article to a web it converted some ting unknown characters. i try to change the font which is supported by the web browse like Nyala,power Ge'ez Unicode and other but it don't work too. so i need to convert ... | 2 | 1,178 |
How do I solve rspec errors end of ROR tutorial CH 9 | <p>I got to the end of Chapter 9 of Michael Hartl's Ruby on Rails Tutorial and got failed rspec tests. I have gone through the chapter many times and can't find what I did wrong. Please help! Also, I am a two week old programmer so if you could detail the steps you went through debugging that would help me a lot! </p... | 2 | 1,142 |
Why is my Form POST taking me to a new page? | <p><strong>Setup</strong></p>
<p>I have a simple HTML form that points to a PHP script that will send the email.</p>
<p><strong>Problem</strong></p>
<p>When I click submit the email is sent, but I am taken to the PHP url.</p>
<p>I tried to all TARGET="_self" in the and declarations but i was still taken o a new p... | 2 | 1,651 |
How to save session into phone? | <p>Currently, my session always null, Suppose bundle will not null.</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash_scene);
this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
RelativeLa... | 2 | 1,215 |
Getting an AppleScript property of an NSAppleEventDescriptor | <p>I'm trying to use some Apple Events in my Cocoa project to get access to the Terminal application. I did not want to use embedded AppleScripts or any compiled scripts, so I started looking into the <code>NSAppleEventDescriptor</code>.</p>
<p>I have succeeded in creating a new window using the <code>do script</code>... | 2 | 2,106 |
CMAKE and cross compiling | <p>I have to change sysroot for my cmake. There is rootfs located on my disk in /u02/rootfs.</p>
<p>I created toolchain_rootfs file and added this config into it:</p>
<pre><code>SET(CMAKE_INSTALL_PREFIX "/u02/rootfs")
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSROOT ${CMAKE_INSTALL_PREFIX})
#set(CMAKE_STAGING_PREFIX /... | 2 | 1,289 |
Google Map Api v3 : fire an action when clicking a button in a infowindow | <p>I add markers on a map with the 'rightclick' action.
Each marker has its specific infowindow and each infowindow has a form into it.</p>
<p>When I create more than one marker, my code only triggers the first infowindow values, not the good one.</p>
<pre><code>google.maps.event.addListener(map, 'rightclick', functi... | 2 | 1,285 |
nodeJS cannot find module in the same folder | <p>I have a simple node application where i want to include a module named dishRouter.
The directory structure is like this :-
<a href="https://i.stack.imgur.com/CqvxU.png" rel="nofollow noreferrer">Structure</a><br>
Dishes/index.js exports the dishRouter that i use in my app.js by<br>
<code>var dishRouter = requir... | 2 | 1,206 |
addEventListener calling function twice with in immediate function pattern | <p>I am getting issue with calling immediate function with addEventListener, which is calling it twice. tried to change from bubbling to capturing but not working.
here is my code</p>
<p>some description: I am trying to add text box where it clicked.</p>
<pre><code>var mod = (function(){
var sEventType = 'click'... | 2 | 1,040 |
Material Ui Tab show data from Api call | <p>I am fetching data from backend to show some meal information. There are are filters to filter out each category . Currently I am showing the filter out data by clicking a button . Each time I click a button corresponding filtered data is shown . Now what I want to do is instead of using buttons I want to use Materi... | 2 | 1,185 |
OnClickListener for the ImageView in side CollapsingToolbarLayout | <p>I've got an <code>ImageView</code> inside of a <code>CollapsingToolbarLayout</code> and I'd like to attach a <code>View.OnClickListerner</code> to it. However a click doesn't seem to trigger the listener.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayou... | 2 | 2,028 |
Hough with AForge on Kinect. How can i get the right lines? | <p>i want to use my kinect to recognise certain objects. One of the methods that i want to use is the Houghtransformation. To do this i am using the AForge library. </p>
<p>But the lines that i find, are totally wrong. Important ones are missing and there are many useless lines in the picture. </p>
<p>To take care of... | 2 | 2,093 |
Can't have a view with multiple formpanels (SENCHA TOUCH 2) | <p>I'm trying to make a view with multiple formpanels (5) each with a fieldset inside however from what I've read, a view can only contain 1 formpanel, when i set 5 only the first one is shown.</p>
<p>Initially I was using a view with multiple fieldsets and got the look I wanted, however, this solution doesn't allow m... | 2 | 4,342 |
Create a Dictionary using Array of Object | <p>I have a problem with this code. My purpose is to create a Dictionary that counts the frequency of a word in a text, using an Array of Objects (I can't use Hash Map or something else). I created a class Pair that contains the couple (word,count).</p>
<pre><code>public class Pair
{ public String word;
public int c... | 2 | 1,173 |
500 Internal Error, Whats wrong with my code? | <p>Im having a little issue with my coding, i keep getting a 500 error when i run this script:</p>
<pre><code><?php
include_once("../../includes/connect.php");
if (isset($_POST['action']) && $_POST['action'] == "check"){
$email = mysql_real_escape_string(strip-tags($_POST['email']));
$username = mysql_real_... | 2 | 1,427 |
Getting error : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/SparkConf | <p>I am working on Kafka Spark Streaming. The IDLE doesn't show any errors and the program builds successfully as well but I am getting this error:</p>
<pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/SparkConf
at KafkaSparkStream1$.main(KafkaSparkStream1.scala:13)
at KafkaSparkSt... | 2 | 2,450 |
Passport.js is not storing/sending passport user info | <p>So I am trying to build a simple login/authorization tool utilizing node.js, passport.js and angular2. My current issue is that while a user can login, the session information doesn't appear to be passed to the front end server or the front end server doesn't pass the passport information back.</p>
<p>When logging... | 2 | 1,800 |
How to implement Implicit Grant in Go using oauth2 | <pre><code>go version go1.7.4 linux/amd64
</code></pre>
<p>I am trying get amazon alexa login using oauth2</p>
<pre><code>package main
import (
"context"
"encoding/json"
"fmt"
"html/template"
"io/ioutil"
"log"
"net/http"
"net/url"
"golang.org/x/oauth2"
"gopkg.in/oauth2.v3/err... | 2 | 3,214 |
Elementor White Screen of Death and JSON ERROR | <p>I need your help.</p>
<p>I am using elementor on my website for editing a WordPress website, but lately, I have been having a problem when it comes to loading it up for editing, I am getting the WHITE SCREEN OF DEATH, the editor doesn't load at all.</p>
<p>The error I am getting on the browser console are:</p>
<ul>
... | 2 | 1,117 |
Razor Pages: Values not staying from OnGet() to OnPost() | <p>I'm working on a ASP.NET Core webpage using Razor Pages. On one page, a customer is added or selected and the customer_id is passed through correctly in the OnGet function (seen through debugging). When I then have the user fill out the form, I try to make a call to a SQL server database using Entity Framework. Ever... | 2 | 2,546 |
Android: VerifyError: Expecting a stackmap frame at branch target 15 | <p>In an android project built with gradle and Java 7, when changing the targetSdkVersion from 19 to 21, the following exception is thrown when running robolectric tests :</p>
<p>build.gradle:</p>
<pre><code>apply plugin: 'com.android.application'
apply plugin: 'robolectric'
android {
compileSdkVersion 21
buildTool... | 2 | 2,276 |
Highcharts Not Exporting Unicode Characters Visible On HTML Chart | <p>I am faced with a bit of a conundrum. I have a chart that renders correctly on the web page itself with desired unicode accent characters (think Spanish, but some English words as well). The DOM shows these characters correctly and the SVG includes them. All is good. But, when I attempt to export these charts to our... | 2 | 1,307 |
wifidirect discovery same peers multiple times in a background service | <p>I've been trying to discover multiple peers - multiple times in a background service instead of an activity. Broadly based on this:
<a href="http://developer.android.com/training/connect-devices-wirelessly/nsd-wifi-direct.html" rel="nofollow noreferrer">http://developer.android.com/training/connect-devices-wirelessl... | 2 | 4,124 |
tensorflow - Can I have entries in my input array that are tuples? Doing this throws 'Unable to get element from the feed as bytes.' | <p>Ultimately my question is: Is it possible to have run tensorflow's DNNClassifier on samples in which one entry is a tuple or set of tuples?</p>
<p>What I want is to run a classifier on a bunch of samples. Mostly the samples are numbers, but I also want one of the entries to be a set of numbers, e.g. a sample is &l... | 2 | 2,516 |
android tabHost brakes listviews onArticleSelected | <p>I have a Main Drawer activity which loads my fragments when a drawer item is selected. The fragment that is laoded contains a tabhost which hosts multiple fragments so you can switch to via tabs. </p>
<p>Before Tabs I had a fragment with a bunch of butons that when clicked, replaced the current fragment with a new ... | 2 | 4,965 |
Findcontrol in LoginView LoggedInTemplate on page load? | <p>I have a LoginView with an Anonymous Template and a LoggedInTemplate. And i wanna find out the control contained in LoggedInTemplate on page load event. </p>
<pre><code><asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
<AnonymousTemplate>
<... | 2 | 1,414 |
Installation of Protractor 2.0 and MSBUILD error MSB3428 | <p>I still have problem with the Protractor 2.0.0 installation on my Windows 8 box (first problem here : see <a href="https://stackoverflow.com/questions/29151557/how-to-have-protractor-reliable-results">How to have protractor reliable results?</a> and <a href="https://stackoverflow.com/questions/29197828/cannot-instal... | 2 | 1,594 |
css for chat room speech bubble position | <p>Hello I am trying to design a chat room and am stuck on the css of speech bubbles.</p>
<p><strong>What I want</strong>
Blue speech bubbles on the right and grey ones on the left.
<a href="https://i.stack.imgur.com/Vuu2Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vuu2Z.png" alt="enter image de... | 2 | 1,073 |
How to parse through large JSONL data Node js | <p>I am trying to read through a large JSONL, maybe couple hundreds up to thousands or possibly million line, below is sample of of the data.</p>
<pre><code>{"id":"gid://shopify/Product/1921569226808"}
{"id":"gid://shopify/ProductVariant/19435458986040","__parentId":&qu... | 2 | 1,277 |
Can I affect an element outside the div I am currently in purely with CSS? | <p><strong>Context</strong>: I am attempting to use the <strong>radio hack</strong> to toggle what text is viewed within the <code>.tabinfo</code> div, but my radios and the text whose <code>display</code> attribute I want to change are located in different divs.</p>
<p><strong>Problem</strong>: Is it possible to use p... | 2 | 1,079 |
Orchard CMS ContentManager.New<>() Specified Cast Was Invalid | <p>I am in the early stages of developing a new module. </p>
<p>Much of it is laid out in terms of the models etc. Also have the migrations all set up and my database now has the tables for my module.</p>
<p>I am encountering the following error when calling <code>ContentManager.New<myPart></code> and would lik... | 2 | 1,669 |
How to add my data to tmap layer and draw a density world map? | <p>I have a data set, df, in format as: </p>
<pre><code> Country Population
US 1000
Germany 3000
Brazil 5000
France 6000
......
</code></pre>
<p>I would like to treat Population as density and plot the density in gradient colors in the world map.<br>
My code as follows: </p>
<... | 2 | 3,757 |
collectionView:cellForItemAtIndexPath mixes up images, drawn with drawRect: | <p>I decided to draw my UICollectionViewCell's with <code>drawRect:</code> instead of the custom xib files for performance (as I have shadows and label shadows).</p>
<p>For some reason, since I changed this, my cells not draw with different images each time they are reloaded into the <code>UICollectionView</code>.</p>... | 2 | 2,640 |
Using appium how can we read/print complete list in a drop down in native as well as Hybrid application? | <p>I want to print or read complete contact list using appium (suppose my .apk is a contact application and it shows complete A to Z contacts and by scrolling i can view all of the contacts).</p>
<p>I am able to count/print contacts shown in the first screen (i.e the screen which shows some contact say 10 contacts by... | 2 | 1,641 |
Jquery Nested Accordion - sub accordion set certain elements expanded by default | <p>I am currently working on a site using the Nested Accordion example from <a href="http://www.adipalaz.com/experiments/jquery/nested_accordion.html" rel="nofollow">http://www.adipalaz.com/experiments/jquery/nested_accordion.html</a></p>
<p>I have searched for a solution on google and this site but I cannot find one,... | 2 | 1,452 |
How can I turn on and off mobile data using toggle button? | <p>Today I have done a task using toggle button. The mobile data needs to be turned on when I press the enable toggle button, and it should be turned off when I press the same button. I had done everything and when I press the enable button, the mobile data remains off. In fact I have added all the manifest permissions... | 2 | 2,785 |
How do I replace Icon with rectangle In ContextMenu | <p>I have the need to replace the Icon in a MenuItem with a Rectangle. Currently I have this:</p>
<pre><code><TextBox.ContextMenu>
<ContextMenu Focusable="False" ItemsSource="{Binding Categories}">
<ContextMenu.ItemContainerStyle>
<Style TargetTyp... | 2 | 1,238 |
Using Multiple Custom ListView Adapters inside a fragment | <p>I have a fragment that contains three list views, each one of them is connected to a diffrent custom adapter.</p>
<p>Heres is my code:</p>
<p>Fragment Class:</p>
<pre><code>package com.example.buffy;
import java.util.ArrayList;
import android.app.Activity;
import android.app.Fragment;
import android.app.Fragmen... | 2 | 1,762 |
sharp is not defined error in AWS Lambda resize | <p>This code below works fine until I try to add an overlayWith. The overlay image is png and is smaller than the resized image. The Lambda function package I am using is from <a href="https://aws.amazon.com/blogs/compute/resize-images-on-the-fly-with-amazon-s3-aws-lambda-and-amazon-api-gateway/" rel="nofollow noreferr... | 2 | 1,240 |
FileInputStream not closed | <p>I have the below code to set an Excel file:</p>
<pre><code>public static void setExcelFile(String Path) throws Exception {
try {
FileInputStream ExcelFile = new FileInputStream(Path);
ExcelWBook = new XSSFWorkbook(ExcelFile);
} catch (Exception e){
Log.error("Class Utils | Method set... | 2 | 1,110 |
Can't get splash screen icon on Android Chrome PWA | <p>I've created a PWA that installs correctly, with a launcher icon. I want a different image for the splash screen, so I've included 192px and 512px png's, both 128dpi and listed them both in manifest.json - however, my splash screen still displays the launcher icons (which I have provided in 36, 48, 72, 96, 128, 144 ... | 2 | 1,197 |
Symfony 4 authenticated user token lost | <p>I have an issue with a login. When I enter the user credentials and press login button it creates a user token and redirects to the main page but when the request gets main page user token doesn't exist...
Here is data from dev.log file</p>
<pre><code>request.INFO: Matched route "login_check". {"route":"login_chec... | 2 | 1,169 |
Predictionio very large task size | <p>I am using recommendation engine and have modified my dataset. A few line from my dataset is as below</p>
<pre><code>4695::132687::5
4695::132688::5
4835::132689::5
3691::132690::5
</code></pre>
<p>I can successfully build train and deploy engine. But on issuing <code>pio train</code> I am getting too many <code>v... | 2 | 1,384 |
How to inject SessionFactory when persistence unit is defined? | <p>I have a fully working Spring 4 + Hibernate application. Hibernate is configured via <code><persistence-unit></code>... My unit test does all DB-related work without a problem. But now I want to access Hibernate session; to do that I should inject <code>SessionFactory</code>. How to inject it considering the f... | 2 | 1,236 |
Android JNI bridge Toast C++ not working - How to fix it? | <p>I'm trying to solve a little problem with my hpp unit.
I found some examples on the internet showing how to Toast an information on screen with an Android JNI bridge, but it was just in pascal (delphi), so I decided to use the same pas file but with it an hpp file for conversion.
Till now I got it:</p>
<pre><code>#... | 2 | 3,240 |
How to make CardView width match it height? | <p>I have a CardView in a LinearLayout. The Layout reserves 1/5 of the screen for the CardView and 4/5 of the screen for other stuff.</p>
<p>I would like the cardview to be square.</p>
<p>I set the CardView's height to "match_parent". But how do I set it's width to match it's height?</p>
<p>Am I going to have to cre... | 2 | 1,669 |
Google Calendar API 401 "Invalid Credentials" | <p>Some (but not all) Google accounts consistently respond with a 401 when trying to access the Google Calendar API despite tokeninfo telling me the access token I'm using has the proper scope (see curl output below). I can successfully obtain a new access token using a refresh token, but the calendar api continues to ... | 2 | 1,292 |
How to get treepanel nodes get checked based on server data in extjs? | <p>I have a tree panel which is being dynamically generated based on server data. Below is the code to generate tree panel and add it to a form.</p>
<pre><code>Ext.Ajax.request({
url: '../Get_Menu.php',
method: 'POST',
success: function (result, request) {
var json = result.responseText;
va... | 2 | 1,684 |
Errors when updated babel and webpack version in react project | <p>I am working on a <a href="https://github.com/ertanhasani/react-stars" rel="nofollow noreferrer">project</a> who was using babel version 5, webpack version 1, and ava version 0.14.0.</p>
<p>After I did some updates when i run <code>npm run build-example</code> i get:</p>
<blockquote>
<p>Module build failed (from ./n... | 2 | 2,382 |
IE8 can't download pdf file | <p>I have MVC application that return PDF file.</p>
<pre><code> public FileStreamResult GetDocument(int id)
{
return File(stream, "application/octet-stream", documentsModel.Name);
}
</code></pre>
<p>I have two test server. One is private and another is public.</p>
<p>From private I can download document and I g... | 2 | 1,788 |
TypeError: Cannot read property | <p>I am getting the following error:</p>
<pre><code>2015-05-06T15:51:43.332-0700 map reduce failed:{
"errmsg" : "exception: TypeError: Cannot read property 'Dockey' of undefined near 'essaged[0].Dockey) { return; ' ",
"code" : 16722,
"ok" : 0
} at src/mongo/shell/collection.js:1224
</code></pre>
<p>Here i... | 2 | 1,038 |
React Native dynamic styles, adding styles to one element | <p>I'm trying to add style to an element, but the style gets on all elements. How do I get style to just the clicked element and not all of them?</p>
<p>I want the element TouchableOpacity to add the style of listItemsDynmaicOpen when its clicked, witch is does but the problem is that its adding the style to all of my... | 2 | 2,181 |
How to align text input with sorting button inside <td>? | <p>I'm having bad time trying to align a clickable element on the right of a text <code><input></code> element. It wouldn't be a problem if I would have fixed dimensions, but the <code><input></code> will be inside of a container with variable size. The resizing will be made with a js function.
I need to pl... | 2 | 1,046 |
Unable to stimulate change event in child component React redux jest | <p>I am new to react redux and I am trying to unit test FormContainer component. But I am unable to simulate change event on Form component using enzyme or jest. In wrapper.instance() I am receiving null but I dont' think that should. If not then what is correct way of testing FormContainer.js file, because when I ran ... | 2 | 1,121 |
SSRS Report Viewer doesn't detect datasource? | <p>I built a very simple report (.rdl) in ReportBuilder 3.0. It has a connection to my database, and gets city out of the address field.</p>
<pre><code>SELECT TOP 10 City, COUNT(City) FROM [MYDB].[dbo].[ResidentialAddress] WHERE StateName = 'WA' OR StateName = 'Washington' GROUP BY City ORDER BY COUNT(City) DESC
</cod... | 2 | 1,430 |
Tkinter window unresponsive in embedded python | <p>I have embedded python interpreter (2.7.6) in dll (Windows 7) that is loaded as plugin in a native host program that has its own ui. Python script file is executed by dll, in that script file stderr is redirected to a file and another script is imported. In this script (code below) is a class that creates Tkinter wi... | 2 | 1,749 |
Thymeleaf 3 with Spring Boot 2, unable to process template | <p>Before reading, please note that I am new to Thymeleaf, Spring, and Mockito. So I'm expecting that there is some amateur mistake that I'm making.</p>
<p>I am writing code to send emails using thymeleaf HTML templates. I have been looking at different tutorials online and trying to set everything up. I think that my... | 2 | 1,437 |
Can I use dictionary in keras customized model? | <p>I recently read a paper about UNet++,and I want to implement this structure with tensorflow-2.0 and keras customized model. As the structure is so complicated, I decided to manage the keras layers by a dictionary. Everything went well in training, but an error occurred while saving the model. Here is a minimum code ... | 2 | 1,912 |
How to implement plugin stealth in Puppeteer Sharp? | <p>I would like to know how and if it is possible to use <code>puppeteer-extra-plugin-stealth</code> inside of visual studio project.
As far as I read there is a project called: <code>puppeteer sharp</code> but they didn't showed how to use the plugin stealth, as this is best browser which is not detectable as a "... | 2 | 1,088 |
CIDR blocks for AWS VPC and its subnets | <p>I have a CIDR block of 172.30.0.0/21 and need to create 2 private subnets and then 2 public subnets for it.</p>
<p>At first I created:
for private: ["172.30.8.0/21", "172.30.16.0/21"]
for public: ["172.30.0.0/22", "172.30.8.0/22"]</p>
<p>but then I got the following errors:</p... | 2 | 1,784 |
Input Mismatch Exception on a method calling Scanner's nextLine | <p>I need to use the method </p>
<pre><code> public static String readString() {
return input.nextLine();
}
</code></pre>
<p>In order to use the Scanner method next.Line(), its just a requirement of the project, the thing is that when I use the static method ProjectUtils.readString() to gather the user inpu... | 2 | 1,532 |
SecurityException: Binder invocation to an incorrect interface on signed APK | <p>I am developing a location aware application. I integrated Google Play Location Services and Google Maps into my application. My application runs without an issue in debug mode. When I generate a signed APK in release mode and run the application, it crashes on startup with following exception:</p>
<pre><code>Proce... | 2 | 2,469 |
How to add colour to particular excel columns based on conditions using openxml? | <p>I'm generating an excel sheet and I want to color the excel columns based on conditions. Now my all excel columns get red colors. I want to color only particular column names.</p>
<p>I'm using open XML for generating excel, is there any way to find the cells to apply color</p>
<pre><code> using (SpreadsheetDocumen... | 2 | 1,808 |
storing & reading xml files iPhone | <p>I am using text-editor to store xml files.</p>
<p>I know how to read xml files in iPhone application. But the problem which do i get is explained below.</p>
<p>When I store xml files through text-editors, it looks perfect.</p>
<p>But when iPhone - xCode debugs, xml file data is shown as below.</p>
<p>What kind o... | 2 | 1,382 |
How to solve Google Map markers with same latitude and longitude? | <p>Currently I am creating a Google Map View for my listing website with multiple markers added which all latitudes and longitudes are retrieved from database. Now I met a problem, which is having same latitude and longitude markers. I searched through the net and found a solution which is to use Marker Cluster but i h... | 2 | 1,112 |
Clickhouse - data transformation/parsing | <p>We are using Clickhouse to store HAProxy and Kong logs and metrics.</p>
<p>The "pipeline" is built around the syslog protocol and rsyslog, as follow : HAProxy/Kong -> local rsyslog -> remote rsyslog (TCP) -> omclickhouse rsyslog module -> clickhouse.</p>
<p>The format of the syslog messages of course differs betwe... | 2 | 1,743 |
About an exception when trying to use a composite primary key with cassandra and spring-data-cassandra | <p>I am playing with spring-data and cassandra, seeing how to code a service which has to store data from a REST service within a cassandra ring, no problem about it, but when i try to retrieve data from cassandra, i want to use a composite primary key and i am facing a ClassCastException.</p>
<p>I already saw in a pr... | 2 | 4,116 |
Algorithm to calculate nightly hours of moonlight | <p>I have been chewing on this problem for quite a while. I think I'm trying too hard and keep running around in circles. </p>
<p><strong>The Problem</strong></p>
<p>I need to calculate the hours of moonlight at night, i.e. the amount of time the moon is over the horizon outside the daylight hours. What is known are ... | 2 | 1,423 |
POST base64 encoded file to google speech api using perl | <p>I am having difficulty encoding a FLAC audio file to base64 when posting a json string to the google speech api. I noticed a few \n's in the reply from google, not sure if the base64 isn't good enough going in or perhaps I don't fully grasp how to build such strings and make them json-y enough to satisfy google. I'm... | 2 | 1,217 |
Listview is losing data on postback ASP.Net | <p>I am trying to update the whole list by once by using a button but in code behind I am losing the data of the list items it returns null although it has the items. Please help me in this manner. my code is below</p>
<p><strong>aspx</strong></p>
<pre class="lang-html prettyprint-override"><code><asp:ListView ID=... | 2 | 2,736 |
How do i push uploaded image file in my template input for update in django 2.0 | <p>I want to open a particular record in html template in update mode for which i want every value which was inserted before for this record be in those field, i got every required value in field for text field but in file field which contains image ,it shows no file selected where as i want the image file name(url) in... | 2 | 1,556 |
Unable to execute Spray Examples | Maven dependency error | <p>I am just trying to have hands on Spray library however am not able to execute its examples due to maven dependency. </p>
<p>As provided in docs I have defined Spray repository as follows:</p>
<pre><code><repositories>
<repository>
<id>sprayrepo</id>
<name... | 2 | 1,266 |
timetable in a jTable | <p>I want to create a timetable in a jTable. For the top row it will display from monday to sunday and the left colume will display the time of the day with 2h interval e.g 1st colume (0000 - 0200), 2nd colume (0200 - 0400) ....</p>
<p>And if i click a button the timing will change from 2h interval to 1h interval. I d... | 2 | 2,585 |
When ionic run ios, raised error normal arm64, armv7 | <p>I'm creating an android/ios application using ionic 1.</p>
<h1>A list of the version.</h1>
<pre><code>cordova: 7.0.1
ionic: 2.2.2
ios-deploy: 1.9.2
ios-sim: 6.1.2
node: v8.3.0
</code></pre>
<h1>A list of the plugins I used.</h1>
<pre><code>cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-console 1.0.7 "Conso... | 2 | 3,872 |
How to create and use objects from the Inventor COM API in python (pywin32) | <p>I'm attempting to use Autodesk Inventor's COM API to create a python script that will generate PDFs of a selection on Inventor Drawings, these PDFs will then be processed in particular ways that aren't important to my question. I'm using pywin32 to access the COM API, but I'm not particularly familiar with how COM A... | 2 | 1,068 |
Retrieve only 5 users at a time :Firebase [like Instagram] | <p>For the past few days, I have been trying to create an Instagram-like feed for my app. To be more specific: load new posts (5) each time the user updates the feed from the bottom.</p>
<p>I am currently using Firebase to both store and display my data.</p>
<p>My code so far, looks like this:</p>
<pre><code> var... | 2 | 1,633 |
UI Freezes while processing frames from Kinect using EmguCV in WPF C# Application | <p>I am working on a project which involves extracting features from color and depth frames from Kinect Camera. The problem I am facing is that whenever I try displaying 2 Images, the UI hangs. When I tried debugging, the depthFrame and colorFrame were coming as null. If enable only the color steam then both colorImage... | 2 | 2,158 |
Creating Courses in classroom:Request had insufficient authentication scopes | <p>While creating course in google classroom api am getting an issue:</p>
<pre><code> { "code" : 403,
"errors" : [ {
"domain" : "global",
"message" : "Request had insufficient authentication scopes.",
"reason" : "forbidden"
} ],
"message" : "Request had insufficient authentication scopes.",
... | 2 | 1,941 |
"An error occurred during the signature verification." in apt-update after adding key 3A79BD29 and sudo apt-key del <old-key> on Debian | <p>the server I work on is a Debian 9.13 OS and "mysql Ver 14.14 Distrib 5.7.34,".
I tried downloading package information from all configured sources with the following command:</p>
<pre><code>sudo apt update
</code></pre>
<p>then I faced to the following error:</p>
<pre><code>Hit:1 http://security.debian.o... | 2 | 10,459 |
Convert Tensorflow1.12 model to Tensorflow Lite (TFLite) | <p>I am trying to convert a model that I created in Tensorflow 1.12 to Tensorflow Lite.</p>
<p>I use this Code:</p>
<pre><code>import numpy as np
import tensorflow as tf
# Generate tf.keras model.
model = tf.keras.models.Sequential()
model.add(tf.keras.layers.Dense(2, input_shape=(3,)))
model.add(tf.keras.layers.Repea... | 2 | 3,063 |
java.lang.RuntimeException: Unable to instantiate receiver java.lang.ClassNotFoundException: Didn't find class on path: DexPathList | <p>I have a problem with a simple project, a broadcast that sends a message and the receiver have a toast . It works, but when I add a class of Xposed gives me the following error.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-o... | 2 | 2,595 |
Google Maps Android point in polygon | <p>I creating a android app that uses google maps android api.<br>
This app need to to have a on click polygon function, but since it not available on google maps android api v2. I did some research and found a work around for this function.<br>
What i ended up with is to check if a point is in a polygon method.<br>
I'... | 2 | 2,091 |
SpriteKit device orientation change causes SKLabelNode distortion Swift | <p>I am using SpriteKit to write a game for iOS in Swift. I am still fairly new to SpriteKit.</p>
<p>I would like to support both orientations for both iPhone and iPad, and have found this:
<a href="https://stackoverflow.com/questions/29364037/sprite-kit-create-node-only-once-for-all-scenes/29372723#29372723">multiple... | 2 | 2,306 |
How to send byte array in jmeter post request | <p>There is a WCF service. The method i have to access has 1 parameter as input whoes type is Stream.</p>
<p>I don't know how to provide stream object from JMeter to the WCF service.</p>
<p>Currently i have written a C# method (MVC Project) which accepts string from JMeter and then converts it into Stream type object... | 2 | 1,333 |
How to Stop/Wait a Thread and then Resume/Restart it later | <p>I am running a service in the background which is also binded to an activity to provide some data results to the view.
So My service is running in the background and I am binding the service when my activity starts and unbinding it when it closes irrespective of my background service which is running constantly.
And... | 2 | 1,722 |
Vigenere Cipher java UTF-8 | <p>Hello evrybody who reads this!</p>
<p>I need to realize Vigenere cipher on Java.
I have a .txt document, which I'm going to read, encode and decode. Here it is:</p>
<pre><code>ASCII abcde xyz
German äöü ÄÖÜ ß
Polish ąęźżńł
Russian абвгдеж эюя
CJK 你好
</code></pre>
<p>My problem is that I don't k... | 2 | 2,517 |
Finding every combination of elements in a table (Lua/PseudoCode) | <p>I'm trying to execute a function with every single combination of elements from a table. (In Lua). The table and the elements can change, but the structure will stay the same. The table is organized so that [1] of it would be the first argument of the function, and so on and so on.</p>
<p>If this is a table that... | 2 | 1,381 |
Blazor - Send Message problem using SignalR | <p>I have created fairly complicated Blazor apps, calling web APIs, injecting services and using 3rd party libraries. But I am using SignalR first time ever. My setup is:</p>
<ul>
<li>ASP.NET Core Web API (do the heavy lifting)</li>
<li>Front end - Blazor App (server side - calling web api via Services classes i create... | 2 | 1,562 |
when using chromedriver, with specflow, a new browser instance open per step | <p>I'm having an issue with Specflow. For some reason, a new instance of chrome is started per step.
can you help with this? </p>
<p>For follow test, 3 steps, 3 chrome instance are started. </p>
<pre><code>Feature: Home
Background:
Given The QA Department site
Scenario: QA Department title
When QA site open... | 2 | 1,238 |
HTML Position image behind border and wrapping link above | <p>I have a content div with a ragged border (using a border-image) and I place another div each below the content div left and right to hold an image. This image is supposed to have a link. While the image shows nicely through the border the link area gets hidden by it. Given that my ragged border is rather wide (almo... | 2 | 1,336 |
PHP code inside javascript | <p>I have no idea about how javascript works, but I was able to write the following code by copying from different sites.</p>
<p>My aim is to have 2 radio boxes (1 = India, 2 = Other than India) and if Other than India is selected, then a dropdown box is displayed which shows names of all countries.</p>
<p>The dropdo... | 2 | 1,646 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.