title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Using Facebook API (via Symfony) leads to multiple post on my Page wall | <p>I've got a problem while auto-posting my blog articles on Facebook. I've been looking everywhere on the web to find a solution but it seems I'm the only one to face this problem.</p>
<p>Here are all the informations:</p>
<ul>
<li>I am using Symfony 3 for my blog</li>
<li>I save a "publicationDate" ($article->getPu... | 3 | 1,619 |
Collect data from different threads | <p>I have implemented a basic TCP client and server. The client sends a command from an input stream. The server processes received message and replies to the client. </p>
<p>I would like to test my client-server solution in the following manner:</p>
<ol>
<li>Create multiple client threads;</li>
<li>Each client threa... | 3 | 1,527 |
combn-like task for combinations as elements in R | <p>not sure if I chose a good title at all... Also I don't know if I use the right terminology, so maybe with the right search terms I would find a solution to this problem... </p>
<p>I have a list of strings from which I want to have all sets of "exclusive" combinations of 3.</p>
<p>Example:
With the following</p>
... | 3 | 1,415 |
Problem compiling java on CentOS 5.6 | <p>For windows I just used a batch script to compile my program:</p>
<pre><code>@echo off
title Building...
echo Building Server - please wait...
echo ---------------------------------------
set javac="C:\Program Files\java\jdk1.6.0_24\bin\javac.exe"
set libs=bin;
set dirs=src\server\*.java
set dirs=%dirs% src\serv... | 3 | 1,089 |
re-size my image without blur | <p>I am making an app to capture image by using intent and re-sizing image according to me but it is blurred after being captured so I need to take suggestions and help.
Actually I am re-sizing picture by scale "create Scaled Bitmap" and want to covert image in small size but after re-sizing in small size being blurred... | 3 | 1,298 |
NoClassDefFoundError: Appears on runtime in sbt multi-project, The error appear when I hit any URL after running my project | <p>I am working on a multi-sbt project, which has projects like invoices-and-orders, order-dtos.
We use internally made libraries in our organization.</p>
<p>The error appears at runtime after I hit any resource, I have researched a bit on how classLoader, etc work in loading classes at runtime in java, but I don't un... | 3 | 1,339 |
How change the cycle for getting correct answers? | <p>I have a task to create a function that reverse any string character inside the regular bracket sequence, starting from the innermost pair. The string sequence can have, spaces, punctuation marks, letters and brakets. So the result should be sting.</p>
<p>Example</p>
<p>For string </p>
<pre><code>s = "a(bc)de"
</... | 3 | 1,887 |
How to call function from within a partialview that reloads the partialview itself | <p>I have a MVC Index View with a link that, on click, calls a JQuery method that fires off an Ajax POST to dynamically load a PartialView into a div.</p>
<p><strong>Inside</strong> the PartialView I have a form that, when submitted, needs to reload itself (the PartialView), into the div in the Index View.</p>
<p>Whe... | 3 | 1,561 |
Flask not refreshing the plot/ image not getting updated from flask | <p>Below is the code we can save it as <code>runflasktest.py</code></p>
<pre><code>import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
from flask import Flask, send_file, make_response, render_template, send_from_directory
#from flask_ngrok import run_with_ngrok
matplotlib.use('Agg')
import io
app = ... | 3 | 1,412 |
How can I prevent that a LCL defined focused empty ListBox implementing some kind of search field | <p>I'm working with</p>
<ul>
<li>FreePascal 3.2.0,</li>
<li>Lazarus 2.0.12,</li>
<li>GTK2 GUI backend</li>
<li>under Ubuntu Linux 18.04.</li>
</ul>
<p>I have a strange behavior of a TListBox component.</p>
<ol>
<li>When I focus a empty ListBox by clicking (SetFocus) and</li>
<li>press the [space] key,
some kind of Edit... | 3 | 1,349 |
My layout eats the last image | <p>I have this layout for my row in a listview... last image is not displayed... why?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="70dip"
android:backgr... | 3 | 1,272 |
sequelize distinct ,count and grouping | <p>I have a database of uploaded files , each file can have one of 4 stages; recieved, converting, done and failed. need to bring a count of each stage for each. The date is stored in the "ReceivedAt" column in ms.
this is my code. it works, but it takes a long time to get all the information out.</p>
<pre><c... | 3 | 1,341 |
When i call function it's given me error. why? | <p><strong>The Error is Appearing</strong></p>
<p>username function is not calling while i am giving value in it</p>
<pre><code>Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'
</code></pre>
<p>My javascript is:</p>
<pre><code>email : { require... | 3 | 1,612 |
using jquery sortable with css transform/transition | <p>I have a page that uses transform to slide the content when navigating. Some of the content has jQuery sortable table rows. At first, the sorting works as expected. But after clicking a nav item (thus applying a transform and sliding to the desired content), sorting does not act as expected. Instead, when you cl... | 3 | 5,378 |
Mediastore Query Simplification | <p>I am trying to get all the music files in a device using Mediastore.
I am retrieving all the files asynchronously but it takes 6-7 seconds to get all the song , so during that time user has to see a in-determinant progressbar .</p>
<p><strong>I have used a query inside a query to retrieve the AlbumArt of each song<... | 3 | 2,067 |
where to set nullpointerexception | <p>im very new in developing an android app.. when i run my program in the emulator it force close.. i figure it out that i need to set an nullpointerexception but i dont know where to set those stuff.. pls help me. </p>
<p>public class SampleActivity extends Activity {</p>
<pre><code>TextView dp_octet1, dp_octet2, d... | 3 | 1,701 |
How to design a line deleting function for Tetris game? | <p>I am trying to build a Tetris game in javaScript and HTML. I ran into problems with my function for removing the full lines. It sort of works, but not every time and not as I expected. I am not a professional programmer, I am learning to code just for fun. My knowledge of javaScript is limited and my methods are pri... | 3 | 1,320 |
QML: Show object over non siblings | <p>I have a somehow very hard to solve problem in my QML code. I will summarize it the best I can since it is very long code..</p>
<p>I write a color picker qml file that is called when the user wants to pick a color. This is done in a big rectangle with little rectangles in it evenly distributed that have flat colors ... | 3 | 1,651 |
Retrofit 2: Extract Value from Response Array | <p>Im trying to extract a value from the response body of my Get Call in retrofit 2. I want to extract evey "id" yet I cant call the getters from the Response class, i think it could have something to do with the [] in the response class, when i remove the [] its returns a jackson error so i seem to be stuck</p>
<p><s... | 3 | 1,427 |
Code working for one, but how can I make work for multiple combobox | <p>I'm new to VBA and have been using a piece of code to sort, remove duplicates and populate a Combobox from a certain range on my worksheet. My question is, what additions do I need to make so that I can populate another Combobox from a different Column and still have it sort.</p>
<p>Code I'm using is as below. As y... | 3 | 1,117 |
how can I crop thumbnails into 1:1 size instead of adapting to the image size | <p><a href="https://i.stack.imgur.com/NycY8.jpg" rel="nofollow noreferrer">LINK 1 - here is a visual of what I want</a></p>
<p><a href="http://pr0x1ma1.blogspot.com/2016/12/dasd-as-a4d456a4.html" rel="nofollow noreferrer">LINK2 - here is the link for my sample blog. the elements are on Related Posts under the sample ... | 3 | 2,164 |
Toggle model for a specific Vue child component | <p>I have 1 parent and 2 types of child components for a navbar of my application.</p>
<p>Parent Vue component has the following code:</p>
<pre><code><template>
<div class="be-submenu__inner">
<ul class="be-submenu__categories">
<category-tab name="Events" @setActive="togg... | 3 | 1,173 |
Plugging a QSortFilterProxyModel on a QTableView unexpectdly crashed | <p>I wrote a small Qt prototype which consists in a <code>QTreeView</code> on which I plugged <code>QStandardItemModel</code>. From there, I would like to be able to view the last level of my tree in a <code>QTableView</code> which I would like to be sortable and, why not, filterable. That seems to be the perfect scena... | 3 | 2,664 |
Search for character in string, within an loop | <p>I have a string containing 3 different types of characters with a special meaning. I have an loop that iterates 160times, and for each iteration of the loop, I want to check the current character in the string. Thus, if it is the first iteration of the loop, I want to check the first position in the string and check... | 3 | 1,464 |
Securely pass variable data to different php file | <p>I'm trying to make a dashboard after my userlogin, however I want it on a different page. But I'm afraid passing data via url might not be necessary caused it can be changed manually. I want to pass <code>$username</code> to my dash.php file. Here's my code:</p>
<p>login.php</p>
<pre><code><?php
session_start()... | 3 | 1,389 |
Rsync suddenly hanging when using recursive flag and on normal operations | <p>I'm using rsync to sync data from a VPS to a local storage NAS connected via a Wireguard tunnel.</p>
<p>This has been working perfectly for months but I noticed a few weeks ago that syncs wouldn't complete anymore.</p>
<p>I investigated a bit and found out that rsync just starts to hang in certain operations and eve... | 3 | 11,891 |
ASPNET MVC: I get "The view X or its master was not found or no view engine..." Error on Method that return JSON ContentResult | <p>I have a method that return json ContentResult. I call on from JavaScript file like this:</p>
<pre><code> $scope.GetUserRoles = function () {
$http({
method: "GET",
url: Current.VirtualUrl + "Store/Counting/GetUserRoles"
}).then(function mySucces(response) {
if (r... | 3 | 1,234 |
How to implement Slide to delete in Famo.us with proper event handling | <p>I'm trying to implement a slide to delete. As part of that I have a layer with opacity set to 0 the idea being I'm trying to set several if clauses to gradual change the opacity of the surface so that the word Delete gentle appears as you slide it to the left. At this point I just have it switching at 10pixels for t... | 3 | 1,202 |
Entity framework 6 custom keys for table-per-type inheritance | <p>I need to transform some existing DB under a new application using EF6 with the CodeFirst approach. I am fighting with mapping conventions in inheritance. There is a minimal (not)working example:</p>
<p>Assume I have two tables: a Parent and a Child.</p>
<pre><code>CREATE TABLE A_PARENT (
A_PAR_ParentId UNIQUE... | 3 | 1,663 |
Angular child component doesnt recognize input changes | <p>Hello I use parent child communication. At parent I have array which represents graph datas. <a href="https://stackblitz.com/edit/angular-t4b8h3?file=src/app/app.component.html" rel="nofollow noreferrer">Demo</a></p>
<p>My problem is that when i change one item in array i doesn't fire child component appchanges. In ... | 3 | 1,059 |
Query does not fetch data while it executes correctly | <p>I find it very strange but something does not feel right. I want to populate a JSON Array with data from mysql. The first query will bring data for categories and questions and then for each question i want to get the answers. I get the data from 1st query but from second i do not.</p>
<p>My code:</p>
<pre><code>&... | 3 | 1,698 |
>NET5.0 Increment Application Version | <p>I have a C# WPF project in Visual Studio 2019 that I'm trying to set the AssemblyVersion and AssemblyFileVersion of. The idea being that I am trying to set them to "0.Months since project started.Days since this month started.Minutes since midnight" to help with version control</p>
<p>I have a Text Templat... | 3 | 2,281 |
is there a way to change the textview text in the MainActivity whenever the text in recyclerview row changed in Kotlin | <p>I an trying to do a simple app, in which I use <code>RecyclerView</code>.
Here are my files.</p>
<pre><code>MainActivity.kt
</code></pre>
<p><code>activity_main.xml</code> --> which has <code>RecyclerView</code> (recylerViewMain)
<code>single_row.xml</code> --> single row for recyclerViewMain</p>
<p><code>MainA... | 3 | 3,818 |
Error install package "kohonen" package for R | <p>I tried to install the package "kohonen" and that is the output when trying to lauchn it </p>
<pre><code>> require(kohonen)
Le chargement a nécessité le package : kohonen
Error: package or namespace load failed for ‘kohonen’ in dyn.load(file, DLLpath = DLLpath, ...):
impossible de charger l'objet partagé '/home... | 3 | 1,217 |
How to fix this Spacement String Method with Break Line and FormatString.Alignment | <p>Well, I'm trying to create a method that make a drawString with a custom spacement.
For 1 line this is perfectly ready, but when I have a break line <code>\n</code> the next line start in the middle and I don't know why. (This method needs to work in a string with 32+ chars).</p>
<p>And when I put <code>formatStrin... | 3 | 2,607 |
React - Minified exception occurred in mvc | <p>i want add some <code>react.js</code> components in <code>ASP.NET mvc</code> application. but react.js sometimes working and not working. i am using <code>gulp-uglify</code> in gulp.js</p>
<p>i have already try to set : dev environment </p>
<pre><code>set NODE_ENV=development
</code></pre>
<p>but still I get tha... | 3 | 3,074 |
Print Implementation fails right after pushback (vector) | <p>I am new to C++ and vectors and so, I am facing some trouble with this function not printing the desired values after a push back. I am receiving what I believe to be garbage values. Could it be because I am working with unsigned char and not integer types? I don't know. I need to get it to work for my school assign... | 3 | 1,033 |
ios : UITableView is showing data when i tap on it | <p>Hello i'm creating custom contact view using <code>UITableView</code>. I fetched all contacts and using table <code>relodData</code> but it not showing in table. On a single tap on table then data is visible. In view will appear i'm calling to fetch all contacts in phone and on completion it will reload <code>tableV... | 3 | 2,709 |
Receive JSON request from PHP | <p>In firebug, in the POST tab i see the following;</p>
<pre><code>JSON
textfieldone "Alex"
Source
{"textfieldone :"Alex"}
</code></pre>
<p>But in the PARAMS tab i see</p>
<pre><code>_dc 1341332451114
</code></pre>
<p>In my PHP code when i <code>print_r($_REQUEST);</code> i get</p>
<pre><code>Array
(
... | 3 | 1,574 |
JavaScript does not take an account of the conditions exit, while variables are nevertheless equal to the output condition | <p>I have a HTML form that submit to a JavaScript, the data is processed and a POST request is sent to a PHP script.</p>
<pre><code>var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
if(xmlHttp.readyState == 4 && xmlHttp.status == 200) {
if(content... | 3 | 1,088 |
Fluent NHibernate/SQL Server 2008 insert query problem | <p>I'm new to Fluent NHibernate and I'm running into a problem.</p>
<p>I have a mapping defined as follows:</p>
<pre><code>public PersonMapping()
{
Id(p => p.Id).GeneratedBy.HiLo("1000");
Map(p => p.FirstName).Not.Nullable().Length(50);
Map(p => p.MiddleInitial).Nullable().Length... | 3 | 2,170 |
making routes in node js with MVC | <p>I am new to backend programming and I am trying to route my application which is built on nodejs and expressjs but. I first built it without using the 'Router()' in express but now am trying to integrate it together with MVC and I am encountering some issues.</p>
<p>This is a snippet of the code that is supposed to ... | 3 | 1,122 |
Azure Data Factory V2 Copy Activity with Rest API giving one row for nested JSON | <p>I am trying to flatten a nested JSON returned from a Rest source. The pipeline code is as follows.
The problem here is this pipeline returns only first object from JSON dataset and skips all the rest of the rows.
Can you please guide me on how to iterate over nested objects.</p>
<p>Thanks
Sameet</p>
<pre><code>{
... | 3 | 2,450 |
No context holder when use partitioner | <p>I'm quite new in Spring Batch and probably that's reason why i have such a question, but anyway.
I want to use partitioner so that it splits work between threads(user per thread). I followed book(the definitive guide to spring batch) and got</p>
<p><code>Caused by: java.lang.IllegalStateException: No context holder... | 3 | 9,409 |
How to edit users on one page using Thymeleaf and Spring boot (with JS) | <p>I'm new in Spring Boot and Java Script. My problem is that I'm trying to create a table using Spring Boot and JS where you can add users, edit them and delete (simple task), but want to do it on one page. So, actually, that's task for JS and HTML. Succesfully added users I cannot edit them, cause in Spring Boot you ... | 3 | 4,896 |
Boost Python issue with converters - static linking | <p>I have a question regarding the below code.</p>
<p>It's an example how to pass a custom class via shared_ptr to embedded python code and it works when boost is dynamically linked.</p>
<p>Unfortunately the same code with statically linked boost doesn't work with the following error message:</p>
<p>"No to_python ... | 3 | 1,243 |
PrintWriter printing "line.separator" twice in file | <p>I have a method called <code>saveAgendaDataArrayList()</code> which is suposed to save the data from an ArrayList in a TXT file as following.</p>
<pre><code>public void saveAgendaDataArrayList(String path, ArrayList<Contact> agendaDataArrayList) {
try {
if(agendaDataArrayList!=null) {
... | 3 | 4,006 |
What Should I Do with the error RecyclerView: No adapter attached; skipping layout | <p>I want to fetch images from mysql server into recycler view. When I run my app. I face the following problem:</p>
<blockquote>
<p>02-25 19:47:47.075 653-12579/? E/WakeLock: GCM_HB_ALARM release
without a matched acquire! 02-25 19:47:53.241 69-403/? E/FastThread:
did not receive expected priority boost 02-25 1... | 3 | 1,042 |
Why bootstrap collapse is automatically collapsing(shrinking) the element? | <p>Hi I am using the AngularJs with HTML to have dynamic content.</p>
<p>I am also making use of bootstrap for collapse feature.</p>
<p>I have created question answer page which is similar to Stackoverflow.</p>
<p>When page loads, it shows up the all questions and when I click on any particular question then it expa... | 3 | 1,196 |
Android Dialog fragment change size | <p>I'm trying to create a dialog fragment that takes 98% of width and 90% percent of height</p>
<pre><code> @Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
Dialog dialog = new Dialog(getActivity());
int width = (int)(0.98 * getResources().getDisplayMetrics().widthPixels);
... | 3 | 2,275 |
EditText in GridView get Data and into an array | <p>I want to display several edit texts in a grid view.
`package com.devan.test1;</p>
<pre><code>import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.EditTex... | 3 | 2,383 |
error in form validation code in javascript | <pre><code>form.html file
<!DOCTYPE html>
<html lang="en">
<head>
<title>Form Validation in Javascript</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<body>
<div id="form">
<h1>Registration Form</h1><br><br>
&... | 3 | 1,199 |
postgres transactions rate slows after a while | <p>I'm using postgres 12 on ubuntu 20.04 lts. I've noticed that after a while postgres transaction per seconds drops as per the screen shot. In order to test my application, I'm just running a set of API in batch. Batch works fine until certain number of iterations after that it slows downs and transaction rate drops s... | 3 | 1,450 |
How to fetch only columns that satisfy the condition in one-to-many relationship in QueryDSL? | <p>I have two following entities:</p>
<pre><code>@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "affiliate_programs")
@SequenceGenerator(name = AbstractEntity.GENERATOR, sequenceName = "affiliate_programs_seq", allocationSize = 1)
public class AffiliateProgram extends A... | 3 | 1,977 |
Passing an object to AsyncTask method cannot be applied to given type | <p>I am trying to use AsyncTask to add objects to my SQLite database. I have 4classes: MainActivity, DBHelper, ToDo_Item, and an AsyncTask inner class named DatabaseAsyncAdd</p>
<pre><code>class ToDo_Item {
//MEMBER ATTRIBUTES
private int _id;
private String description;
private int is_done;
public ToDo_Item() {
}
... | 3 | 2,749 |
Unable to bind the DateTime series with a Dundas chart | <p>I'm having a hard time charting series data on an Dundas chart. It can't seem to properly bind the <code>DateTime</code> values.</p>
<p>Here is min chart generation code: </p>
<pre><code>public static void GenerateMultiSeriesChartImage<T,U>(List<ChartData<T,U>> chartData, string chartTitle,
s... | 3 | 1,842 |
Flex mx:SWFLoader Loads Incorrect SWF File | <p>I'm fairly new to Flex and am having an issue where I have a main Flex program (let's called it "Parent.swf") attempting to load another Flex application (Child.swf) via the SWFLoader class/component.
Environment is Flex 4.6 on FlashDevelop.</p>
<p>The call appears to work correctly (i.e. no IO or sandbox errors ar... | 3 | 1,194 |
Visual Studio 2017 is not executing any code nor generating any meaningful errors | <p>I am having trouble with Visual Studio, so I created as simple a program as I could. I created a Console Application that should display a single line to the console, then wait for the user to press a key. Instead, it gives me an error message.</p>
<p>I looked up the error message, and it is discussing an invalid ha... | 3 | 1,662 |
listview is not refreshing in fragment after dismiss custom dialog box? | <p>Can anybody solve my ListView not refreshing after dissmissing a dialog box?</p>
<p>This is my Fragment. I set adapter and ListView.</p>
<pre><code>public class About extends Fragment {
MyRatingAdapter myRatingAdapter;
ListView listView;
List<ReviewRatingBean> reviewratinglist = new ArrayList<>();
But... | 3 | 1,358 |
Overriding hashCode when using isAssignableFrom on equals method | <p>I need to find a way to cache Methods(<code>java.lang.reflect.Method</code>) in such a way that whenever I call a function with the class (<code>Class</code>) methodName(<code>String</code>) and arguments(<code>T[]</code>) the function will return the cached method if exists or find the method, add it to the cache a... | 3 | 1,527 |
Linq query to get list inside list | <p>Below is the query, </p>
<pre><code>List<int> groupIdList = {1, 2};
var clientGroupData = from cge in base.context.Set<ClientGroupEngagement>()
join cg in base.context.Set<ClientGroup>() on cge.ClientGroupID equals cg.ClientGroupID
join cgu in base.cont... | 3 | 1,829 |
LocationClient not connected although onConnected was called | <p>In my application I'm trying to use the LocationService based on Google's tutorial "Retrieving the Current Location" (<a href="http://developer.android.com/training/location/retrieve-current.html" rel="nofollow">http://developer.android.com/training/location/retrieve-current.html</a>).
Unfortunately when I actually ... | 3 | 1,129 |
Output not able to show at UI | <p>I'm currently trying to write an app to calculate BMI and calories needed by a person (male / female).
My apps have 2 parts:
1. BMI calculation
2. Calories needed</p>
<p>The first part works well (so I excluded the code for this part), but for the 2nd part, calories needed calculation, it is not able to show up the... | 3 | 1,831 |
Video not displaying properly | <p>I am working on Android (with Eclipse and SDK) trying to stream video into a VideoView. Sometimes the video works, but other times I get an error that the video cannot be displayed. Here is the code:</p>
<pre><code>//video
private Uri mPath;
private VideoView mVid;
mPath = Uri.parse("android.resource:/... | 3 | 1,157 |
How to implement transient fault handling pattern with entity framework | <p>I need to implement the following pattern:
<a href="https://msdn.microsoft.com/en-us/library/dn589799.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/dn589799.aspx</a></p>
<p>I read on a book that following:</p>
<blockquote>
<p>If you are using Entity Framework 6 (EF 6), the retry logic ... | 3 | 1,796 |
iPhone:app becomes "black" when msg "UIStatusBarStyleBlackTranslucent is not available on this device." displayed | <p>In my application I record the video and play it. Most of the times video plays nice but sometimes in the middle of the playing video when I pressed "done" button in my log <strong>"UIStatusBarStyleBlackTranslucent is not available on this device."</strong> msg displayed but how its generate that I don't know and wh... | 3 | 2,160 |
kubectl suddently asking for username | <p>My last deployment pipeline stage on gitlab suddently started asking for username when running "kubectl apply" command to deploy my application in my cluster in GKE (version 1.18.12-gke.1201 and also tested in 1.17). I'm using the imge dtzar/helm-kubectl to run kubectl commands in the pipeline (also tested... | 3 | 1,026 |
How to fix problems with add-comment and remove-comment in react-redux app | <p>I'm writting react-redux comment's widget.Faced the following problem. When I click on the add comments button, no addition occurs, and when I click on delete a comment, he writes that map is not a function, although I pass an array of comments. Can you explain where i made a mistake</p>
<p><strong>actions/index.js... | 3 | 2,580 |
Validate google's ID token in Python is too slow | <p>I am coding with "<a href="https://developers.google.com/identity/sign-in/ios/backend-auth" rel="noreferrer">https://developers.google.com/identity/sign-in/ios/backend-auth</a>"</p>
<p>token is</p>
<pre><code>eyJhbGciOiJSUzI1NiIsImtpZCI6IjI2ZmM0Y2QyM2QzODdjYmM0OTBmNjBkYjU0YTk0YTZkZDE2NTM5OTgiLCJ0eXAiOiJKV1QifQ.eyJ... | 3 | 1,496 |
How do I get the function to print out a 2D array into two files in java? | <p>My goal is to take a file with names and numbers, the first row will name the columns, the rows following will be the data. Column 0 will have the first name and 1 will have the last name which will be combined. Columns 2, 3, and 4 will contain 3 numbers that will be averaged together, columns 5 to 11 will also cont... | 3 | 1,548 |
Issue while deploy the cloud function | <p>I am new to GCP. I created a cloud function and tried to deploy it. I encountered the following error while deploying. Can anyone help me solve this issue? Thank you!</p>
<pre><code>Command:
gcloud functions deploy first_cloud_function_http --runtime python37 --trigger-http --allow-unauthenticated --verbosity debug... | 3 | 1,097 |
React::ServerRendering::PrerenderError with react prerender: true | <p>I am getting following error when I am using <code>prerender: true</code>. I am using <code>react-rails gems</code>
its working fine with <code>prerender: false</code></p>
<pre><code>var Router = window.ReactRouter.Router
var Route = window.ReactRouter.Route
var Albums = React.createClass({
render: function(){
... | 3 | 7,800 |
Populate html form with database result array codeigniter | <p>I have this form:</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><form method = "POST" action = "<?php echo base_url('Usercontroller/insert') ?>">
<di... | 3 | 1,373 |
Rearrange php array ; setting index to array value | <p>I have an array which i added to end of this post.I need to set 'parent' value of array to parent arrays index number.Arrays parent value related to parent arrays idnumber value.</p>
<p>For example;</p>
<pre><code>[131] => Array
(
[idnumber] => 171
[name] => 9f146bfd1b1aa02612b95a0ae7b... | 3 | 16,918 |
Can Python optimize this simple variable call? | <p>It seems like python (2.6) is not able to optimize this simple temp variable 'a' ?</p>
<p>I use to assign a local variable to some code in order to reduce the line length.</p>
<p>To me this is a simple optimization any correct compiler can do automatically.</p>
<pre><code>from dis import dis
def f(func):
func(... | 3 | 1,033 |
Span image overlays text but not other images | <p>I created a thumbnail and description field within a table. The thumbnail has a span image which overlays neighboring text but not neighboring thumbnails??? (all are contained in the #divSparesItem) I've tried adding z-index and display variations to the css as recommended in other discussions but nothing seems to f... | 3 | 1,438 |
New lines not persisting with AWS SES | <p>I'm trying to take data from <code><input></code>s and <code><textarea></code>s in a contact form, send them to my API, then place them into an AWS SES template in order to send these values as an email.</p>
<p>For any <code><textarea></code>, when I do something like</p>
<pre><code>TemplateData: J... | 3 | 1,035 |
Is it possible to constrain a generic parameter type to this? | <p><strong>Short version</strong></p>
<p>How do I force the <code>BaseClass</code>'s <code>TModel</code> generic parameter to be of the same type as the class that derives from it?</p>
<pre class="lang-cs prettyprint-override"><code>public class BaseClass<TModel, TValidator> where TValidator : IValidator<TMode... | 3 | 1,508 |
Child process cannot get the input from stdin written by parent process | <p>In child process, I use execl() to execute a program "test1" with the input from stdin. However, the input from stdin cannot be passed to "test1", but it is fine for "sort" command.</p>
<p><strong>example.c</strong></p>
<pre class="lang-c prettyprint-override"><code>#include <unistd.h>
#include <sys/wait.... | 3 | 1,080 |
Grails JAX-RS REST multipart file upload | <p>Trying to get a multipart file upload to work in a Grails 2.5.4 resource.</p>
<p>I'd really like to use Spring's out of the box multipart features, but I cannot find an example for my particular case.</p>
<p>I am calling the API from Postman. Body with <code>form-data</code> and a single PDF file attached in a <co... | 3 | 1,938 |
Implementing drag&drop with react for multiple lists | <p>I am trying to implement drag&drop with react for multiple lists, but i can't seem to get it work!</p>
<p>My color object change after the drop ,but it doesn't place the item in the exact position.Also while draggig the placeholder is also visible outside the ul valid dropzone.</p>
<pre><code>var colors = {
... | 3 | 2,050 |
python spark reducebykey forming a single list | <p>I have two lines as below and they produced the attached output. The output is correct. But in the case of the second statement, I want to form a single tuple and not a tuple of tuples. How could i achieve the same? </p>
<pre><code>print ratingsRDD.map(lambda x: (x[0],x[2])).take(5)
print ratingsRDD.map(lambda x... | 3 | 1,818 |
Kinda new to recursive methods & I'm not sure why this doesn't work | <p>I'm doing an assignment for a class, but I'm not sure why the code I wrote for these two methods do not work. </p>
<p>For the first method, I'm trying to compare the current position in the array with the next one and if the next one is larger, it becomes the largest. Other wise, the int at the current position bec... | 3 | 1,122 |
Unable to navigate to another page using PHP, MySQL | <p>I have some data in the database. As i give the email and password it should fetch the database and login. The problem is, from loginform.php file it is navigating to the loginvalidate.php file, but after that it doesn't navigate to another page which I have mentioned in the header() function. As soon as i give the ... | 3 | 1,414 |
updating to addEventListerner may cause return value of function not to propagate? | <p>I recently upgraded from classical registration using</p>
<pre><code>element.property = function
</code></pre>
<p>to advanced registration using</p>
<pre><code>element.addEventListener( "property", function, bool );
</code></pre>
<p>In the function I had returned a false to to disable form submission when the u... | 3 | 1,522 |
Using Android menu code in common Utils File | <p>I am trying to implement my menu in a <code>Utils.java</code> file. Well, so far so good, the menu is appearing as it should although when I click on any menu item, the application stops working. I don't seem to find where the issue is and I would be grateful for your advice. The code for my menu, utils and activity... | 3 | 1,042 |
Implementing logging out with Windows Authentication as it's done in SharePoint: without closing the browser | <p>I'm developing a SOA-oriented Intranet application using WCF. I have to implement User Authentication with Windows Authentication.</p>
<p>When we use Windows Authentication there is no possibility to really sign out without closing the browser. Only when you close the browser and open it again you get the browser p... | 3 | 4,644 |
InnoDB Documentation Supports transactions, row-level locking, and foreign keys | <p>I am trying to create the following tables in phpmyadmin and I get the above error</p>
<pre>
-- ---------------------------------------------------
-- Create County Table
-- ---------------------------------------------------
CREATE TABLE IF NOT EXISTS SecretGarden.County (
co_id varchar (8) NOT NULL UNIQ... | 3 | 1,217 |
Updating a React state variable throws cross-origin error | <h2>Context</h2>
<p>At the moment I am working on a project where I want to get data, more specifically a list/Array of Strings, from my Python API and display that list with React.
I am getting the list and it looks completely fine. No <code>undefined</code> values, everything is a <code>String</code> and it really is... | 3 | 2,091 |
migrating from jdk10 to jdk11 : SSLConnection : CKR_KEY_TYPE_INCONSISTENT | <p>I migrated my client application from openJDK 10 to 11 (JAVA_VERSION="11.0.12") but at runtime, during TLS handhshake, i've got this exception :</p>
<blockquote>
<p>javax.net.ssl|ALL|01|main|2021-11-24 10:55:54.848 CET|SignatureScheme.java:592|Ignore unsupported signature algorithm (rsa_pkcs1_sha256) (
&qu... | 3 | 6,515 |
Defining join criteria between targets and transactions as a set of values | <p>I have a problem I am currently solving with a very messy solution, I would like to know if there is an easier way to maintain this.</p>
<p>The solution I have requires a new column to be added to two views and several reports every time what people are targeted on (often).</p>
<p>I have a view returning sale tran... | 3 | 1,491 |
"mysql.connector.errors.InternalError: Unread result found" is being produced when entering book code | <p>Output:</p>
<pre><code>Welcome back Manas . What do you want to do?
1.Add book to borrow
2.Return book borrowed
3.Check existing borrowed book(s)
4.Logout
Enter your choice: 1
Enter code of book to be borrowedAA111
</code></pre>
<p>Results in:</p>
<blockquote>
<p>Traceback (most recent call last): File
"C:... | 3 | 1,650 |
The latest version of python module in two linux distributions are different. why? | <p>At this moment, 4.7.0 was released 12 hours ago.
I see a list of multidict's versions differently in alpine and ubuntu. Why can't I see 4.7.0 in alpine??</p>
<pre><code>$ docker run -i -t alpine:edge /bin/sh
# apk add py3-pip
# pip3 install multidict==
</code></pre>
<p><code>Collecting multidict==
ERROR: Could ... | 3 | 3,211 |
java EE Hibernate List many to many configure error | <p>I am making a java ee web application. I have User and Permission classes and User class have List that types of Permission. When hibernate gets user object form database, i want to get permissions of user from user_permission table ,too. User and Permission has many-to-many relation. I am using Hibernate 5.4.1 . W... | 3 | 1,909 |
How to get query for parent id order by id in mysql | <pre>
<b>(1) Table Name Groups</b>
| ID | parent_id| Name |
| 1 | NULL| Assets |
| 2 | NULL| Liabilities and Owners Equity |
| 3 | NULL| Incomes |
| 4 | NULL| Expenses |
| 5 ... | 3 | 1,074 |
FrameLayout not displaying elements | <p>I am trying to create a <em>FrameLayout</em> that contains other <em>FrameLayouts</em>. I have created an EditorView class that extends FrameLayout, and I want it to display <em>FileView</em>, another class that extends <em>FrameLayout</em>. But in Android Studio preview I get an blank view. What am I doing wrong.</... | 3 | 2,547 |
Looping through validation data received from Ajax in laravel controller | <p>I am sending a json request through Ajax, this request contains multiple objects,I am trying to find a way to validate the request to fail if at least one particular attribute fails the rule(min 5 characters in "value"); but dosent seems to work, can anyone help ?
I tried to loop data , I feel I am close b... | 3 | 1,794 |
Can't create an event with extended data | <p>I am trying to create a calendar event with extended data using Microsoft Graph API.(actually, I am trying to converting the existing open extension to schema extension since I couldn't filter the non-id extended value of the open extension.)</p>
<p>Before my try, I have already created <a href="https://stackoverflo... | 3 | 1,366 |
$wpdb->get_results query returns different (wrong) results compared to phpmyadmin | <p>I have 4 custom tables in my database - <code>wp_api_teams</code>, <code>wp_api_matches</code>, <code>wp_api_competitions</code> and <code>wp_api_federations</code>. They are part of my Wordpress database, this is how they look (I'm using foreign keys and all of that):</p>
<p><a href="https://i.stack.imgur.com/xJMo... | 3 | 1,687 |
Axon FrameWork: How to rollback in the domain_event_entry table | <p>You can see my sample classes below. </p>
<p>Basically, I want to use Axon's <code>domain_event_entry</code> table to store the events, and my own entity table to store the entities.
I know that If I fire a <code>CreateTemplateCommand</code> which is handled in the Aggregate an Event will be published, and that af... | 3 | 1,242 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.