title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Program executing and stops for no reason | <p>so I made a poker game for my assignment.<br>
It all works fine (at least I believe so). To make it simple : The player has a 100$ balance and based on his hand, wins or loses money.<br>
I made a condition that the game keeps giving the player a new hand as long as his balance is higher than <0> .<br>
However,... | 3 | 3,230 |
LazyColumn with ConstraintLayout in android jetpack compose | <p>I'm going to put a label on the top for each column and a <code>LazyСolumn</code> on the bottom. As follows.</p>
<p><a href="https://i.stack.imgur.com/uckGJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uckGJ.png" alt="enter image description here" /></a></p>
<p>However, when I filled it out, th... | 3 | 1,575 |
Invalid request when requesting Access token from API: C#, Azure Function, OAuth | <p>I am getting "Bad request: invalid response" when I request an Access Token programmatically to the token endpoint. The parameters need to be passed as x-www-formurlencoded</p>
<p>Here is my code:</p>
<pre><code>[FunctionName("GetAccessToken")]
public async Task<IActionResult> GetAccess... | 3 | 2,614 |
Uncaught TypeError: Cannot create property 'vx' on number '1' getting this error even after deleting all nodes and svg | <p>I am using D3.JS V4 and trying to create a graph which I am able to draw successfully. However, when I change my mode and delete all nodes, lines, texts and even the SVG from DOM, everything gets deleted from the screen but I get this error in Console. </p>
<p>This is how I am deleting</p>
<pre><code> d3.select("b... | 3 | 3,280 |
How to show multiple input values in different text fields using javascript | <p>I have multiple input fields as radio buttons where the user can select a button and then the radio buttons disappear and the selected value will be shown in a new div</p>
<p>I am successfully getting single value if selected and able to show,But how to get input from multiple forms and show it individually in sepa... | 3 | 1,389 |
insert Tuples into SQlite database | <p>I am trying to insert tuples from a list made up of tuples into a SQlite Database. I don't even get an error code, it just doesn't insert anything.
<code>
for tpl in tuplelist:
cur.execute('''INSERT OR REPLACE INTO GUV
(Jahr, Ertrag, Betriebskosten, Bruttobetriebsgewinn, Forschung_und_Ent... | 3 | 1,340 |
Android Annotations Logging Interceptor end-of-input error | <p>I am using Android Annotations to make requests to a server. I created the following interceptor based on the answer to this <a href="https://stackoverflow.com/questions/30912343/androidannotations-rest-view-response-data">question</a> </p>
<pre><code>public class LoggingInterceptor implements ClientHttpRequestInte... | 3 | 1,103 |
Vue JS pass data via link to component | <p>within a component I have a select input. Depending on what was selected, an upload input displays.</p>
<pre><code><div class="form-group">
<select class="custom-select" id="uploadType" v-model="uploadType">
<option value="">Please select...</option>
<option value="1"&... | 3 | 1,561 |
Limiting Wordpress Search to specific blog category not working | <p>So I'm trying to create a search form on a blog page so that it only searches the posts with the category "blog"
this is the search form code I'm using:</p>
<pre><code><form method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type=... | 3 | 1,291 |
C ++ (crypto ++) and C # encryption matching | <p>For secure communication between client and server, I want to encrypt and decrypt data from both the client and the server, but I cannot get the same results, the data that comes from the client to the server is not decrypted, also when encrypting the same the same data from the server, I get a distinctive result fr... | 3 | 1,917 |
Comparing Floats in a vector | <p>I am writing a program that creates two vectors to practice comparing elements in a vector. The first vector is a list of all numbers that are not prime numbers between 1-100 (not prime numbers), the second vector is a list of all numbers between 1-100 (vector number_bank). I am using loops to compare each element i... | 3 | 1,249 |
How do I grab specific text from a string of changing length? | <p>I have a string containing information that I would like to extract. My problem is that the string length can change based on product version, username, password, etc. Therefore I can't just say variable[155:185]. I think this my be a regex solution, but I have never worked with regex and am unsure.</p>
<p>I've tr... | 3 | 4,666 |
Cleaner way to compare array values? | <p>I have a maze:</p>
<pre><code>||||||||||||||||||||||
| || | | . |
| |||||| | |||||| |
|||||| | |
| | |||||| || |||||
| |||| | | |
| ||| ||| | |
|||||||||| |||||| |
| P || |
||||||||||||||||||||||
</code></pre>
<p>along with the following code:</p>
<p... | 3 | 1,124 |
Resource no refresh when i use slow connection o 3G angular js | <p>I 'm creating a mobile application based on angularjs . To load a list , I'm making a call to an API Rest. I am using a resource for doing this. When I 'm connected to the wifi it works perfectly , but when I use · g, the recuerso not call the API and always returns the previous value.</p>
<p>How I can refresh the ... | 3 | 1,328 |
What would you do if you just had this code dumped in your lap? | <p>Man, I just had this project given to me - expand on this they say.</p>
<p>This is an example of ONE function:</p>
<pre><code><?php
//500+ lines of pure wonder.
function page_content_vc($content) {
global $_DBH, $_TPL, $_SET;
$_SET['ignoreTimezone'] = true;
lu_CheckUpdateLogin();
if($_SESSION[... | 3 | 13,926 |
Ggplotly() hides secondary y-axis created with ggplot2 | <p>I have the dataframe below and Im trying to create a double y-axis plot with <code>ggplot2</code> and then turn it to <code>ggplotly()</code>. The issue is that while the plot is created normally using <code>ggplot2</code> when I turn it to <code>ggplotly()</code> object the secondary y-axis is disapperaed.</p>
<pre... | 3 | 2,055 |
How to compare the value the user enters with the data in the database when performing some random use of plpgsql | <p>I use the Postgres database and I want to generate random student_no whenever the user inserts any records into the database. The comand is as follows:</p>
<pre><code>NEW.booking_no: = array_to_string (ARRAY (SELECT chr ((48 + round (random () * 9)) :: integer) FROM generate_series (1,10)), '');
</code></pre>
<p>M... | 3 | 1,207 |
How to get only some informations from json response? | <p>Openweatherapi returns json like this:</p>
<pre><code>{"coord":{"lon":-0.13,"lat":51.51},"weather":[{"id":300,"main":"Drizzle","description":"light intensity drizzle","icon":"09d"}],"base":"stations","main":{"temp":280.32,"pressure":1012,"humidity":81,"temp_min":279.15,"temp_max":281.15},"visibility":10000,"wind":{... | 3 | 1,067 |
image/icon hidden behind footer | <p>I'm working on a bigCommerce website. I added some css to my footer, as it had an ugly white space underneath. But now, the mcAfee image/icon is hiding behind the footer. I've tried many solutions I found online, but nothing seems to help.
here is my code
I have now added the html file as well:</p>
<pre><code><di... | 3 | 4,084 |
Bet365.com is not loading in QWebEngineView | <pre><code>class MyWebEngineUrlRequestInterceptor(QWebEngineUrlRequestInterceptor):
def __init__(self, parent=None):
super().__init__(parent)
def interceptRequest(self, info):
print("interceptRequest")
print(info.requestUrl())
class MyWebEnginePage(QWebEnginePage):
def a... | 3 | 1,444 |
Why aren't the middle elements getting sorted? | <p>I'm implementing a sorting algorithm for fun, but for reasons I don't know, what I've implemented so far doesn't sort the middle. Here are the steps of the algorithm:</p>
<ol>
<li>Get the indices of the minimum and maximum values</li>
<li>Move the minimum value to the minimum index, the maximum value to the maximum ... | 3 | 1,678 |
Product page: There has been an error processing your request | <p>I've recently upgraded to Magento 1.9. After solving some problems, I couldn't find a solution for this issue. </p>
<p>Magento throws the following error when trying to navigate to a product page: </p>
<pre><code>There has been an error processing your request
Invalid method DerModPro_BasePrice_Block_Catalog_Produ... | 3 | 2,110 |
Access VBA - Problems looping through fields in Access last record and exporting to Word bookmarks? | <p>Thanks for looking at this.</p>
<p>I have a recordset with 60 fields and I want to export the <strong>last</strong> record for each field into a Microsoft Word file with 60 bookmarks called <code>g1</code> to <code>g60</code>.</p>
<p>Of course I would like to loop through these but can't make it work.</p>
<p>Esse... | 3 | 1,202 |
Why receiving OurOfRangeError when I want to load a dataset? | <p>I want to construct a framework of CNN model on TensorFlow. But I keep being trapped in load data. My dataset is MIT-300, I wanna input 6 pictures as dataset and they will go through a network and finally every picture will compare to a saliency map picture(ground trueth). Both of the training data and ground truth ... | 3 | 2,162 |
How to adjust table to view content left and right | <p>I have this code :</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><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-s... | 3 | 13,030 |
Resteasy 2.3.10.Final ClientResponse.readEntity AbstractMethodError | <p>I am currently trying to create a Resteasy Client, having to use Version 2.3.10.Final. Unfortunately, I should not use a newer Version. I am very new to this, so I hope I manage to provide all required Information to make this question answerable.</p>
<p>First, the Request is created and finally "PUT". The returned... | 3 | 1,438 |
VBA: Use Class module / Collection and/or dynamic array? | <p>My problem:</p>
<p>I have multiple product structures that I need to be able to read through. I do not know ahead of time how many levels deep the product structure goes. For Example I could have the following:</p>
<p>Product A uses the following components </p>
<ul>
<li>A1</li>
<li>A2</li>
<li>A3</li>
<li>A4</l... | 3 | 1,352 |
Error displaying video in VideoView in android | <p>I am getting a null pointer exception when trying to set a video to a VideoView in android dialog fragment. Here is my logcat content</p>
<pre><code> Caused by: java.lang.NullPointerException
at com.shimba.android.ngoma.fragments.VideoUploadFragment.onCreateDialog(VideoUploadFragment.java:52)
at and... | 3 | 1,672 |
Pocket sphnix does not recognize any word | <p>I downloaded CMU SphinxBase (sphinxbase-5prealpha.tar.gz) and Pocket Sphinx (pocketsphinx-5prealpha.tar.gz)and installed all required packages (sudo apt-get libtool bison python-dev autotools swig) and ran through all the steps (<a href="http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx" rel="nofollow">http... | 3 | 1,269 |
Python Correct Way to Use asyncio streams to open a connection, send and receive multiple transmissions, then close connection gracefully | <p>I am asking where either my though process or my code is incorrect relative to using asyncio client streams to send data and receive responses from a server. When I call the method that disconnects the client an exception is thrown. I am learning python asyncio and ran across exceptions during testing trying to clo... | 3 | 1,143 |
How to scan barcode lines with VARCHAR Chars For example OfficeEqp35023U11 In android Kotlin | <p>How to scan barcode lines with VARCHAR Chars For example OfficeEqp35023U11 In android Kotlin</p>
<p>Struggling to scan this asset image
<a href="https://i.stack.imgur.com/XVzoC.jpg" rel="nofollow noreferrer">Struggling to scan this asset image</a></p>
<p>class BarcodeScannerActivity : AppCompatActivity(), ZXingScan... | 3 | 2,090 |
'>': signed/unsigned mismatch. How do I fix this? | <pre><code>std::string text;
HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); // Gets the console handle.
PCONSOLE_SCREEN_BUFFER_INFO lpScreenInfo = new CONSOLE_SCREEN_BUFFER_INFO(); // Creates a pointer to the Screen Info pointing to a temporal screen info.
... | 3 | 2,062 |
Group by UUID with creating multiple columns for multiple entries of same UUID | <p>So let's say I have a dataframe of this structure:</p>
<pre><code>╔══════════════════════════════════════╦══════════════════╦════════════╦═══════════╦════════════════════╦══════════════╦══════════════════════╦═════════════════════╦═════════════════════════════════╦════════════════════════════════════════════╦═══════... | 3 | 4,531 |
How to improve my function that rounds floats to nearest 10 if 2 digit number, 100 if 3 digit number etc | <p>I am drawing bar charts and i've come across a tricky problem. How to programmatically set the max value for the y axis label depending on the max value for a given series. So if you had a bar with a value of 7, you might want the y axis to go up to 10</p>
<p>My approach is not ideal but works like this:</p>
<ul>
... | 3 | 1,832 |
Google Maps API polygon trim | <p>I want to trim multiple polygons on each other, it works but not as expected.Here is my code written in JAVA</p>
<pre><code> String coords = "|5,5|5,20|20,20|20,5|5,5";
String coords2 = "|8,10|12,10|12,17|8,17|8,10";
String coords3 = "|16,12|18,12|18,15|16,15|16,12";
String aaa = "http://maps.goog... | 3 | 1,106 |
Unable to read complete data from named pipe | <p>I have a client and a server communicating using a named pipe. </p>
<p>I'm trying to pass the address stored by an LPCWSTR variable from the client to the server.</p>
<p>To do this, I first write the address onto a wchar_t buffer, then I send the server the size of that buffer (as a DWORD), so now the server knows... | 3 | 1,100 |
I need to Optimize this Linq Query | <p>I have a Linq query that needs optimizing.</p>
<p><strong>Edit</strong></p>
<p>I guess over all what I am trying to do is select all the rows in the first table, but select the last or default row in Survey, CB and Science tables...</p>
<p><strong>Edit</strong></p>
<p>When this creates a query, I hit the databas... | 3 | 4,340 |
Gulp v3.9, You may need an appropriate loader to handle this file type. in Laravel v^8.4 | <p>I'm currently reviving 1, 2 year old Laravel 8 project and tried updating it's dependencies,
I have done most of the upgrading and downgrading.
But I'm still stuck in dependencies hell.</p>
<p>This is the what I'm getting in terminal after runnig</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-cons... | 3 | 1,495 |
NSInvalidArgumentException : Workout_Tracker.QuickAddViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance | <p>I have a class MenuTabs: UIView that corresponds to MenuTabs.xib. I linked them in the identity inspector. In the view is a UICollectionView. I set the UIView as the delegate and datasource for the collection view in storyboard. I'm using the MenuTabs class in a ViewController, but I keep getting this error</p>
<pr... | 3 | 1,553 |
MotionLayout keyTrigger doesn't work properly? | <p>I have MotionLayout xml file </p>
<p>
</p>
<pre><code><androidx.constraintlayout.motion.widget.MotionLayout
android:id="@+id/motionLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#1e376b"
app:layoutDescription="@xml/motion_layout_header_sc... | 3 | 1,651 |
Draw a Google Chart with undefined number of lines | <p>I need to draw a Google Chart with an undefined number of lines (rows). Lets suppose I need to draw the number of goals of two teams in a certain day (the number of teams is fixed for the example, but it could be anyone, the number of days are the same for all teams). I have this array:</p>
<pre><code>Array
(
[... | 3 | 1,108 |
Elasticsearch completion by url | <p>Using nodejs elasticsearch api I am trying to get completion by url. The problem is when I am trying to define the way the autocompletion should work, it splits my url in several chuncks, not the whole url:</p>
<p>E,g: URL=<a href="https://www.edx.org/course/introduction-mongodb-using-mean-stack-mongodbx-m101x-0" r... | 3 | 1,728 |
z-index of 3D-transformed objects | <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>document.querySelector( 'style' ).innerHTML += `
/* rotation animations*/
.rotate_x, .rotate_y, span {
animation-name: rota... | 3 | 2,017 |
Use jQuery only for one script (not interfering with other JS code) | <p>I have a problem, I have written some jQuery scripts:</p>
<pre><code>$(document).ready(function () {
$('#sshin').keyup(function () {
var query = $(this).val();
if(query != '') {
$.ajax({
url: "search.php",
method: "POST",
data: {query: query},
success: function (data)... | 3 | 1,205 |
Doing curve fitting in R for a power series | <p>I have trying to estimate the annual of an investment scheme which applied dollar cost averaging, which the increment of value is listed as below (sorry that MathJax looks like greek to me, so I didn't use it):</p>
<pre><code>x: regular contribution, which is 1500 in my case
y: rate of return PLUS 100% (e.g 1.07 fo... | 3 | 1,883 |
How to perform a check in checkbox clicking on entire recyclerview row | <p>Now I register each checkbox click each time y press on the checkbox like this</p>
<pre><code> inner class OrdersInnerViewHolder(itemView: View): BaseViewHolder<Cart>(itemView){
override fun bind(item: Cart, position: Int) {
itemView.checkBox.setOnCheckedChangeListener { buttonView, isChe... | 3 | 1,348 |
Parse multiple json with retrofit | <p>This is the structure of my json which i want to send to server from android client using retrofit. i have tried several ways, but nothing worked. Looking for a solution here with your valuable advice. thanx in advance</p>
<pre><code>private int studentId;
private Set<Degrees> studentdegrees;
private Set&l... | 3 | 1,068 |
structures of logical operators in C # | <p>my query is simple, as I do, if possible, the following in C #. </p>
<pre><code><html>
<head>
<script src="../jquery-1.3.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#datos").append("<span style=\"font-weight:bold\">(false ||... | 3 | 1,561 |
URL changes but coponent does not reload | <p>I'm new to React and I Have a problem with React Router Dom.
I'm developping an single page App for my resumee to practicing and
I have a burger menu where I used "Link" to match the good URL. I want this links load the component associated but I have to refresh the page to load the component wanted.</p>
<p>I read... | 3 | 1,657 |
Cannot reach html templateUrl in Angular 1.6 | <p>I'm creating a simple web application in angular 1.6</p>
<p>I create a state for the url "/" but it seems that angular cannot reach the file don´t know why.</p>
<p>Folder structure is this:</p>
<p><a href="https://i.stack.imgur.com/2p6bP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2p6bP.png... | 3 | 4,638 |
xsl:if first and last node not retrieved | <p>I have an XML as follows:</p>
<pre><code><?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ExistingReservations>
<reservations>
<reservation>
<type>1</type>
<start_time>2019-03-09T16:11:14Z</start_time>
<stop_ti... | 3 | 1,493 |
Android Push Notifications: getting SERVICE_NOT_AVAILABLE as response | <p>I wrote code for push notifications.But response is "SERVICE_NOT_AVAILABLE". I tried so many times. I want to know the registration id of the device. Please any one help me how to get the registration id of the device. I install the google cloud messaging library in sdk manager too,.</p>
<p>My code:
GCMIntentServic... | 3 | 2,733 |
Floating Point division, floor, and when a simple C++ Change Computing program gets complex | <p>Floating point division is causing a value that should be 1 to be .9999999 thus flooring it becomes 0 instead of 1 so the calculation for the required change is incorrect.
What's the simplest way to deal with this? (Also if there's some sort of guide/article for how to deal with this I'd love a link for reference.)... | 3 | 2,100 |
MVC RadioButtonFor Challenge to gen jQueryMobile Compliant HTML | <p>I am working in .NET, VB Razor MVC4 with JQueryMobile.</p>
<p>My issue is in trying to get the @Html.RadioButtonFor to generate properly formatted HTML to get picked up by the JQuery Mobile. </p>
<p>This code:</p>
<pre><code>@For Each fqi In Model.Options
@<label for="@fqi.Id">@fqi.Text</label>
@<i... | 3 | 1,379 |
android spinner if some item selected other spinner appear from derivative spinner 1 | <p>I have database with 2 tables</p>
<p>first table </p>
<pre><code>id jenis_barang
1 kamera
2 hp
3 laptop
</code></pre>
<p>second table</p>
<pre><code>id item_barang
1 Canon
1 sony
1 fujifilm
2 xiaomi
2 Samsung
2 Vivo
2 opp... | 3 | 1,692 |
Creating XML in constructors | <p>so I'm working on an existing project and I'm trying to refactor it. It uses XML, and the current code looks something like this:</p>
<p>There is a class that's used to produce the XML:</p>
<pre><code>import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;... | 3 | 1,372 |
Capture content of possible capture group | <p>I want to get the content of a html control using regex. There is a possible occurrence of a string, and if it occurs i wants to capture it's content.</p>
<p>I tried using this pattern:</p>
<pre><code><img src="data:image.*base64,(?<base64>.+)".*alt="(?<alt>.+)".*/>
</code></pre>
<p>But this do... | 3 | 2,176 |
Exception on MQTT Client connect on Java ME | <p>I'm trying to connect Java ME App Client to a MQTT broker.
I'm able to create a Client, cross checked client Server URI
But when I tried to connect then I see exception:</p>
<p>Here is the code:</p>
<pre><code>try {
myClient = new MqttClient(BROKER_URL, MqttClient.generateClientId()); //, new MemoryPersistence... | 3 | 1,538 |
Bokeh looking in temp files when trying to load new image using CustomJS | <p>I am a novice at Bokeh and using CustomJS to define callbacks. I have written a code to make changes to sliders based on the value of other sliders. I now want to change the image displayed when the value of one of the sliders changes. However, when I run this callback, the image does not get displayed and within th... | 3 | 1,648 |
Get zone id for an exisiting zone or create a new zone with zone name | <p>I am using cdktf to generate terraform code, and want to get the zone_id for an existing zone so I can create new records in it.</p>
<pre class="lang-json prettyprint-override"><code>"aws_route53_zone": {
"typescript-aws_get_zone_id_C1732EA4": {
"name": "mydomain.com&... | 3 | 1,127 |
How to configure jest and babel to work with vue? | <p>I'm adding jest to my project and can't configure it properly.</p>
<p>When I run <code>$ jest</code> I'm getting a <code>SyntaxError: Cannot use import statement outside a module</code>.</p>
<p>I've searched for quite a while for a solution but none worked...</p>
<p>Can someone please help me config jest and babe... | 3 | 1,350 |
Keycloack: User is able to access a realm by logging to another | <p>I have an nginx/openresty client to a keycloack server for authorization using openid.
I am using <a href="https://github.com/zmartzone/lua-resty-openidc" rel="nofollow noreferrer">lua-resty-openidc</a> to allow access to services behind the proxy.</p>
<p>I have created two clients at two different realms for differ... | 3 | 2,264 |
How to hide/show label when item is selected /not selected in mvvm? | <p>I have three labels in the same space bound to pickers from different pages.</p>
<p>What I would like to do is, when picker 1 has a selected item, make sure that <em>label 1</em> is visible and hide <em>label 2</em> and 3 when there is no selected item from picker 2 and 3.</p>
<p>Any help will be appreciated.</p>
<p... | 3 | 1,996 |
Kendo grid noRecord template unexpected behavior with footer template | <p>I have implemented kendo grid in my project. To show the footer values, I have added footer template to my grids. I have also added no record template to display message to user when data is not present. It is working as expected but when this functionality is implemented for hierarchy grid then it shows weird behav... | 3 | 2,917 |
Getting a callback when asyncronous tasks are completed | <p>I'm creating a basic migration class for my app.</p>
<pre><code>// commands/migrate.js
const Question = require('../models/Question');
class Migrate
{
constructor() {
}
run() {
console.log("Deleting entries...");
Question.remove({}, (err) => {
if (err) {
... | 3 | 1,056 |
PDO Error - Call to a member function prepare() on a non-object | <p>I'm having an issue with a class I created that uploads a file. This class has a parent class which is the database access layer. The uploads looks like this:</p>
<pre><code><?php
class upload extends bao {
// general variables
private $basePath = '../../uploads/';
private $fullMaxWidth = 1000;
... | 3 | 6,720 |
Getting Value from Dynamic Url and Post it into HTML/PHP by Using AngularJS | <p>I would like to ask whether I can get the data from dynamic URL... Here is the case:</p>
<ol>
<li>
I have given an (a) html tag into my angularJS php file to give direction to certain page with the value inside it e.g. <code>localhost:8080/someurl/blablabla/{{item.master}}</code> so the output is based on what I ha... | 3 | 1,049 |
Logstash Grok Parsing Issue | <p>I am using Logstash to read some log file.
Here are some data sources records</p>
<pre><code><2016-07-07 00:31:01> Start
<2016-07-07 00:31:59> Warning - Export_Sysem 6 (1) => No records to be exported
<2016-07-07 00:32:22> Export2CICAP (04) => Export PO : 34 record(s)
<2016-07-07 00:32... | 3 | 1,149 |
Gemfile includes incorrect environment | <p>When I do <code>$ bundle install</code>, it attempts to get gems only meant for production, despite me being on development.</p>
<p>I double checked that I'm on development: <code>echo $RAILS_ENV # outputs "development"</code></p>
<p>Here is a copy of my gem file. If I remove <code>:staging</code> in the last bl... | 3 | 1,060 |
Reducing multiple windows with mvvm | <p>I have a main window which have a few buttons, each button represent different object (of the same kind) which require different graph values.What is the best way to use one view and window in order to present all the different objects on the same graph, (one at time of course) depends on what button we choose.</p>
... | 3 | 2,546 |
Form fixed to bottom while content also is fluid | <p>I need the bottom half (form) to be fixed to the bottom while the portion above it be fluid. (Chat area)</p>
<p>I managed to get the form fixed to the bottom but the chat area portion is going behind it when I need it to stop where the form begins.</p>
<p><strong>CSS</strong></p>
<pre><code>.page{
min-height: 10... | 3 | 1,355 |
How to get selected text from other applications and keeping clipboard text at the same time | <p>Iam trying to get selected text from other applications using the folowing four lines and i have not problem with this:</p>
<pre><code>Thread.Sleep(20);
SendCtrlC(GetWindowUnderCursor());
Thread.Sleep(30);
label1.Text = Clipboard.GetText();
</code></pre>
<p>My problem is that at the same time i want to keep clipbo... | 3 | 2,101 |
Posting request to node.js service results in timeout | <p>Getting my head around node.js and have developed a simple service:</p>
<pre><code>// set up ======================================================================
var express = require('express');
var app = express(); // create our app w/ express
var port = process.env.PORT || 8080; ... | 3 | 1,254 |
How to test store state changes for redux connected HOC component using react-test-renderer? | <p>I am trying to test the follow component, which is based on a pretty common "ProtectedRoute" HOC/wrapper example on several React training sites. The basic concept is to wrap protected components at the <code><Route></code> level in order to redirect unauthenticated users.</p>
<pre><code>//Authenticated.js
im... | 3 | 1,727 |
How to add buttons in each row of data table? | <p>I am using theme DataTable. I want to add edit or delete button in each row with clickable event to get customer id for future operations. I didn't get any solution of adding buttons. I want buttons in actions column. I tried to make custom object of customers with buttons in html but it shows html in actions column... | 3 | 4,615 |
How to recognize Event with onSensorChanged by comparing two float values | <p>I want to read data from my Accelerometer Sensor and compare them if the first number of the float changes. I have some problem to unregister the listener or pause in order to compare and see if the average/Note has increased by a full Int for example "Note: 5.677" increases to "Note:6.234" then it supposed to be re... | 3 | 3,943 |
Using a Lookup Table for Description field with Entity Framework Model First Approach | <p>I am currently redeveloping a site in MVC5 using EntityFramework6 and am struggling with the database structure in particular transforming the lookupFields from one table to the next. We have a Job Table</p>
<pre><code>TABLE [dbo].[Job](
[JobId] [int] IDENTITY(1,1) NOT NULL,
[JobStateId] [int] NOT NULL,
</code></pr... | 3 | 1,061 |
ContentEditable is not working, when type text in the ContentEditable | <p>I am trying to type text in the ContentEditable div(not in last row).While typing cursor moves to last line.</p>
<p><a href="https://i.stack.imgur.com/NxuRW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NxuRW.png" alt="https://i.stack.imgur.com/NxuRW.png"></a></p>
<p><div class="snippet" data-... | 3 | 1,312 |
Retrieve sharepoint List in javascript | <p>I would like retrieve the title of sharepoint List in JS.</p>
<p>My function JS :</p>
<pre><code>function retrieveAllListsAllFields() {
var ctx = SP.ClientContext.get_current();
var web = ctx.get_web();
ctx.load(web, "Title");
ctx.executeQueryAsync(
Function.createDelegate(this, fu... | 3 | 1,884 |
google geo coding with json and php | <p>My php file:</p>
<pre><code><?php
if (isset($_POST['query'])) {
$query = $_POST['query'];
$url='http://maps.googleapis.com/maps/api/geocode/json?address=';
$callback="&callback=?";
$sensor='&sensor=false';
$result= $url.$query.$sensor.$callback;
curl_init ($result);
}
?>
</code></pre>
<p>M... | 3 | 1,513 |
Authentification Strapi with Next.JS | <p>I have an app that uses Strapi Rest API and Next.JS</p>
<p>It works fine but before I deploy I wanted to use authentification between Strapi and the Frontend.</p>
<p>I have been using <a href="https://strapi.io/blog/implementing-authenticated-api-requests-to-strapi" rel="nofollow noreferrer">this reference</a> . I'm... | 3 | 2,956 |
Cmake error with ffmpeg and PkgConfig: cannot find -lpkgcfg_lib_LIBAV_stdc++ | <p>I want to create my C++ project using ffmpeg and cmake on Ubuntu 18.04, but comes up with errors:</p>
<pre><code>-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detectin... | 3 | 1,543 |
My RecyclerViewer doesn't show views. I couldn't find an error. My source code here | <p>I use <code>RecyclerViewer</code> to show a product in the database. I get database values with <code>FirebaseRecyclerAdapter</code>. I want to show my product in <code>HomeActivity</code>. I try everything but I can't fix this issue, My product doesn't show in <code>HomeActivity</code>. Note = I use drawable layout... | 3 | 5,419 |
ELASTICSEARCH: Comma separated list giving inconsistent results with standard analyzer | <p>Running a basic query against my elastic search database is giving inconsistent results.</p>
<p>I can match against the DB querying by ID directly</p>
<pre><code>{
"query": {
"bool": {
"must": [
{
"term": {
"id": {
"value": "84e042ce... | 3 | 1,663 |
Remove duplicate entries given certain criteria using the tidyverse | <p>Consider the following example data:</p>
<pre class="lang-r prettyprint-override"><code>library(dplyr)
d <- tibble("ID" = rep(c(1111, 2222, 3333, 4444), each = 4),
"DAY" = c(1, 2, 3, 4, 1, 2, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4),
"FINISHED" = c(1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0))
</... | 3 | 1,554 |
For loop AR model | <p>I want to do a n step ahead forecast with a AR(4) model with a differenced time series.</p>
<p><strong>The model itself:</strong></p>
<pre><code>X(t)-X(t-1)=a(1)(X(t-1)-X(t-2))+...+a(4)(X(t-4)-X(t-5))
=> X(t)=X(t-1)+a(1)(X(t-1)-X(t-2))+...+a(4)(X(t-4)-X(t-5))
</code></pre>
<p><strong>First forecast:</strong><... | 3 | 1,278 |
How can i make equal spaces between the squad members in the circle formation? | <p>When it's square formation i can set the space fine.
But i'm not sure how to do it with the circle formation.
Inside the FormationSquare method i'm using the space variable for the square formation. Now i need to do the same idea for the circle formation too.</p>
<p>Maybe inside the RandomCircle to change something... | 3 | 1,469 |
c# dynamicly adding item in listbox - Items not showing | <p>I'm trying to dynamicly add items (textbox and button) into a listbox.</p>
<p>This is my <code>xaml</code>:</p>
<pre><code><ListBox x:Name="projects_list" Height="459" Canvas.Left="20" Canvas.Top="86" Width="755">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orient... | 3 | 1,228 |
Matlab Integration in a loop | <p>I am working in matlab the M-QAM modulation with Rayleigh fading, and i have a little problem with the integration part, i have made that code with an aproximation:</p>
<pre><code>function y = m_qam_ray( M )
%UNTITLED4 Summary of this function goes here
% Detailed explanation goes here
% simulation for M-QAM tran... | 3 | 1,272 |
Ajax call breaks binding to object children | <p>Without the ajax call, My main view binds to my parent class and the partial view on main view, binds to a child member of the parent class</p>
<p>parent...</p>
<pre><code>public class Client
{
[ScaffoldColumn(false)]
public int Id { get; set; }
[DisplayName("Name")]
[Required]
[StringLength(1... | 3 | 1,459 |
How to prevent slider from stretching? | <p>Just getting acquainted with jQuery UI. So, this is a block of code from my view:</p>
<pre><code><label id="min">
5000</label>
<div id="slider">
</div>
<label id="max">
9000</label>
</code></pre>
<p>And a part of the script:</p>
<pre><code> $('#slider').slider({
... | 3 | 1,045 |
Laravel multidimensional array sum with collection | <p>My JSON output is:</p>
<pre class="lang-json prettyprint-override"><code>{
"follow_carts":[
{
"id":1,
"user_id":10001,
"created_at":null,
"updated_at":null,
"followings":[
{
"id":1,
&... | 3 | 1,500 |
Putting tables into two columns in a responsive webpage | <p>I am currently working on a class project and I am almost done, however I cannot get my calendar page to work properly. I am supposed to create each calendar month using tables, so no javascript or arrays. The calendar pages also needs to be responsive.</p>
<p>I already made each month as a table and I need to put t... | 3 | 14,673 |
MIME email, blank message body | <p>So I tried searching but couldn't find an answer that I was able to apply to my code. I have had a developer updating a page for me and these emails come through on my mobile device, but the body is always blank on my computer email, Thunderbird. The code in question looks like this:</p>
<pre><code>$mailBody = "... | 3 | 1,469 |
Swift 3 Parsing JSON nesting issue | <p>I'm trying to parse some json data and I'm struggling to understand how to pull out and assign the nested values. I can manage the first level but when it comes any further I struggle.</p>
<p>I have an parseProductsData function which receives the data and works fine along with the first level of nesting.
How can i... | 3 | 1,681 |
iOS: How to use AFOAuth1Client with given tokens | <p>I want to use a REST service, I need OAuth 1 to allow secure authorization.
I have the consumer key, the consumer secret, the token and the token secret.
In PHP I'm using this:</p>
<pre><code>$apiUrl = 'http://www.web.com/api/rest';
$consumerKey = 'xxxx';
$consumerSecret = 'yyyyyy';
$token = 'zzzzz';
$tokenSecret ... | 3 | 1,212 |
Set all values in a column equal to the first non-null value over a window in Postgres | <p>Take this table as an example:</p>
<pre><code>+----+------------+------+
| id | date | flag |
+----+------------+------+
| A | 01/01/2020 | 0 |
| A | 01/02/2020 | 0 |
| A | 01/03/2020 | 0 |
| A | 01/04/2020 | 1 |
| A | 01/05/2020 | 1 |
| B | 01/01/2020 | 0 |
| B | 01/02/2020 | 1 |
... | 3 | 1,472 |
How to avoid eval in my React app and what do you think about the logic? | <p>This is a simple react app. Do my components use the correct logic between composition and inheritance?</p>
<pre><code>import React from 'react';
import ReactDOM from 'react-dom';
import './App.css';
class Header extends React.Component {
constructor(props) {
super(props);
this.handleClick = thi... | 3 | 3,622 |
Add library css in Ruby on Rails 6 with webpacker | <p>I'm trying to install a library, specifically bootstrap-table via yarn. I had tried the gem found at the following link <a href="https://github.com/bjevanchiu/bootstrap-table-rails" rel="nofollow noreferrer">Click</a> but it is an old version and I was unable to get it to work. I have read around that however with R... | 3 | 1,481 |
Kotlin NavArgs unresolved reference issue | <p>I have a question. In my application, I used structures as I mentioned below. However, the code blog I marked does not work. It sees imdbId as unresolved reference. Despite my research, I could not find the solution. I would appreciate if you are interested.I think there is no problem algorithmically. I think there ... | 3 | 1,825 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.