title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Modifying .bashrc | <p>I'm not very familiar with using VIM or bash but I'm trying to get the google gmail API to work.</p>
<p><a href="https://developers.google.com/gmail/api/quickstart/python#step_4_run_the_sample" rel="nofollow">https://developers.google.com/gmail/api/quickstart/python#step_4_run_the_sample</a></p>
<p>At the bottom i... | 2 | 1,836 |
Coordinate systems in HTML/CSS for different positioning schemes | <p>I've been studying HTML/CSS and, while reading the article <a href="https://alistapart.com/article/css-positioning-101" rel="nofollow noreferrer">CSS Positioning 101</a>, I came upon this statement:</p>
<blockquote>
<p>a static element can’t even create a new coordinate system for child
elements</p>
</blockquot... | 2 | 1,120 |
Forcing Camera LED Light to turn OFF after n minutes or n seconds in Android | <p>I am working on Turning ON/OFF Camera flashlights.</p>
<p>What i want to do is :</p>
<ol>
<li>When user clicks on Start LED button, it should start the Camera LED.</li>
<li>Stop camera LED automatically after n Seconds eg. after 30seconds (Thats totally based on user settings).</li>
<li>Stop Camera LED when user ... | 2 | 1,303 |
scrollHeight value for a div containing images | <p>Here is a div, containing images, with max-height: 300px. Whenever a scrollbar is needed (this is the case here), I want to add a second div (the gray one) next to the first. I use scrollHeight to test the presence of a scrollbar.</p>
<pre><code><div class="container">
<div class="pictures">
... | 2 | 1,142 |
How to programmatically collapse a grouped Kendo Grid- angular 8? | <p>I have the following Kendo Grid on my angular 8 app where I have implemented Grouping. The grid by default appear with all groups expanded.</p>
<p>How can I programmatically collapse all groups so that the result looks like the following image after initialization?</p>
<p><a href="https://i.stack.imgur.com/2JUzX.p... | 2 | 1,838 |
Move object in a straight line to another point | <p>I am struggling to get this right.
What I want to do is to move a panel(10px by 10px) to another panel which is the same size.</p>
<p>I want to see how it moves to the other panel... and I achieved this using a timer.</p>
<p>My code works, but I do have a problem I cannot get past...</p>
<p>Most of the time the ... | 2 | 1,458 |
What's wrong with my code for using the camera? | <p>I'm very new to Android. I'm trying to use the camera with an image overlay. I've seen many threads discussing this topic, but they're still a little over my head. Here's my Activity:</p>
<pre><code>package com.commonsware.android.skeleton;
import android.app.Activity;
import android.content.Context;
import androi... | 2 | 6,181 |
Character encoding in query string, hebrew | <p>I am trying to send a GET request with query string parameter in hebrew.
When the controller gets the request, the parameter is in gibberish.
i've added "org.springframework.web.filter.CharacterEncodingFilter" but it didn't change a thing.</p>
<p>Please advise how to fix it.</p>
<p>Update: here is the the request.... | 2 | 1,494 |
save in userdefaults is crashing app | <p>I am new to swift and trying to save array into userdefaults and my app is crashing.</p>
<p>I am using below code</p>
<pre><code>let currentObject = productsArray[clickedPosition] as Product
print("currentObject===\(currentObject)")
var currentCartArray = [Product]()
currentCartArray.append(currentObject)
UserDef... | 2 | 1,664 |
Blue border around my image link will NOT GO away in IE | <p>I have my website at <a href="http://thetotempole.ca" rel="nofollow">Thetotempole.ca</a>, and I have two animal images (with links) on the side of my content box and in IE the blue border on each of the images will not go away!</p>
<p>Here is my HTML : </p>
<pre><code><!doctype html>
<head>
<title&g... | 2 | 4,533 |
MaterialComponents AlertDialog text color | <p>Reading <a href="https://stackoverflow.com/questions/52829954/materialcomponents-theme-alert-dialog-buttons">MaterialComponents theme alert dialog buttons</a> and <a href="https://medium.com/@lcdsmao/material-design-custom-alert-dialog-5a9cab3ade11" rel="noreferrer">https://medium.com/@lcdsmao/material-design-custom... | 2 | 1,183 |
Faking authentication on Symfony2 tests - get('security.context')->getToken() on Controller returns differnt token than the one set up in the TestCase | <p>I'm writing symfony functional tests for a Symfony 2.0 application that uses the FOSFacebookBundle (v2.0). The controllers I'm testing check for authentication like so:</p>
<pre><code>if($this->get('security.context')->isGranted('IS_AUTHENTICATED_FULLY')){...}
</code></pre>
<p>So I need the test's <code>$cli... | 2 | 1,794 |
How to resolve "ErrorException in VerifyCsrfToken.php" in Laravel | <p>This is was my approach:</p>
<p>I run the following <strong>PHP Artisan</strong> commands:</p>
<pre><code>php artisan make:middleware AfterCacheMiddleware
php artisan make:middleware BeforeCacheMiddleware
</code></pre>
<p>Then, I updated my newly created middlewares (<strong><code>AfterCacheMiddleware</code></st... | 2 | 1,027 |
ARM program example with Keil Uvision startup file | <p>Sorry, I am newbie, I am just starting to explore assembly with ARM.
I am trying to run example from the book </p>
<pre><code> AREA Prog1, CODE, READONLY
ENTRY
MOV r0, #0x11 ; load initial value
LSL r1, r0, #1 ; shift 1 bit left
LSL r2, r1, #1 ; shift 1 bit left
stop B sto... | 2 | 9,862 |
Combining Multiple Reducers | <p>I have a situation where i want to split my reducers to multiple files so i can manage properly.</p>
<p>Lets say I will do 2 things with reducers. </p>
<ol>
<li>handle products only.</li>
<li>handle contacts only.</li>
</ol>
<p>I can do it in the same file which works , but becomes difficult to manage.</p>
<p>He... | 2 | 1,067 |
Java code, add exception? | <p>okay so I have this code that converts infix expressions to postfix expressions. It works! Except I would like it to be able to handle errors such as "2+*5" or "wordswordswords". How would I do this? Thanks!</p>
<pre><code>package InToPostfix;
import java.io.IOException;
import javax.script.*;
/** Translates a... | 2 | 1,666 |
Why is Bing Maps 7 AJAX control not lazy-loading? | <p>I'm trying to use Bing Maps 7.0 API with Lazy Loading, as this seem to be supported with the onScriptLoad parameter. I used this minimal test case:</p>
<pre><code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/199... | 2 | 1,079 |
Why does this github workflow fail when trying to yarn install this dependency? | <p>So I have a forked repo with a github workflow setup, which fails when trying to yarn install a dependency due to permission rights:</p>
<pre><code>Run yarn install
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
error Command failed.
info Visit https://yarnpkg.com/en/docs/cli/install fo... | 2 | 1,201 |
How to create a one-page website? | <p>I am fairly new to webpage designing and to learn about website layouts I was browsing YouTube and I came across <a href="http://www.youtube.com/watch?v=bKrY0o_3TqU" rel="nofollow">this video</a> where the vlogger explains his top 5 favorite website designs. </p>
<p>At time <code>1:44</code> he begins talking of o... | 2 | 1,043 |
Spring Boot - Cross-Origin Request Blocked (Reason: CORS header ‘Access-Control-Allow-Origin’ missing) | <p>I have this mapping:</p>
<pre><code>User 1----------------------------* Expertises
</code></pre>
<p>I'm using the controller SpringBoot, My contoller is</p>
<pre><code>@RestController
@CrossOrigin(origins = "http://localhost:4200", "http://localhost:6227")
@RequestMapping("/api/auth")
public class UserController
... | 2 | 1,241 |
PG::ObjectNotInPrerequisiteState: ERROR: cannot insert into view | <p>I am extremely confused about an error that I am receiving for one of my controller actions. The error that I receive for one action <code>positions#one_click_create</code> yields me this error:</p>
<pre><code>ActiveRecord::StatementInvalid: PG::ObjectNotInPrerequisiteState: ERROR: cannot insert into view "contrib... | 2 | 1,221 |
select entity limit relation depth with manyToMany relation | <p>in my app, i have users.
Each user has one Role (Admin, Tester, ...)
each role can have several Permissions (homepage-view, contactpage-view ...)</p>
<p>So, i have a ManyToMany relation</p>
<p>Because i want to get Roles from permissions and permissions from roles, i have a bidirectionnal relation.</p>
<p>What i ... | 2 | 1,108 |
Why clang produced "argument unused" warning for -nostdinc++ for executables, but not for libraries | <p>I'm needing to use custom libc++ so I'm passing -nostdinc++ for CMAKE_CXX_FLAGS. This works fine for libraries but for executables, I get this warning:</p>
<pre><code>clang: warning: argument unused during compilation: '-nostdinc++' [-Wunused-command-line-argument]
</code></pre>
<p><strong>Question:</strong> Why?<... | 2 | 2,798 |
Getting Unmarshalling Error while using Google Adwords API | <p>I'm making use of OAuth2 as authentication mechanism to get the response about the "add budget campaign" using SOAP request. In the very beginning to send a soap request using cUrl I am facing an error given below:</p>
<pre><code><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap... | 2 | 1,658 |
search and export the data in .csv format using django | <p>In my application i am using a search function which search and display the output.I include search for <code>fromdate and todate</code>,<code>Keyword search</code> etc.</p>
<p>I want to export the searched result in a <code>.csv</code> file.Currently i had written a function called <code>csv_export</code> and expo... | 2 | 1,159 |
How to switch images in a C# WPF application? | <p>I am trying to make an application that switches between an image of the heads sign of a coin and the tails side of a coin. However, every time I press either the "heads" button or the "tails" button, an error occurs. How can I fix my code so that the image successfully switches?</p>
<p>XAML:</p>
<pre><code><Wi... | 2 | 1,246 |
No sound and RTP failure when playing back file from Asterisk Server | <p>I've recently installed my first Asterisk on AWS EC2 instance and experienced some minor issue, currently phones are not recieving the hang up instruction and also no sound when playing back a file from the server.</p>
<p>I think the issue is to do with the public and private IP issue of the server instance, so I h... | 2 | 1,666 |
SQL : loop through same table | <p>I have a table "projectdetails" in which <code>parent_id</code> is the foreign key of column <code>project_id</code> in the same table..</p>
<p>From this below records I want only those rows whose <code>parent_id</code> does rows, does not have 'recycle_bin` value as 1 and also should display record for creater_id ... | 2 | 1,471 |
Push notification firebase sometime not received | <p>I have problem that sometimes not received notification. In order to receive notification, I need to restart my application then execute <code>notification.php</code> and notification will appear.But after 30 minute/15 minute when i try again running <code>notification.php</code> , not received any notification (I n... | 2 | 3,282 |
Android: tabs with swipe not showing listfragment | <p>I'm dealing with this tutorial: <a href="http://www.lucazanini.eu/2012/android/tabs-and-swipe-views/?lang=en" rel="nofollow">http://www.lucazanini.eu/2012/android/tabs-and-swipe-views/?lang=en</a> .
The problem is that if I set as layout of the tab a simple static layout, like this (as the tutorial does), everything... | 2 | 3,952 |
After a few days, I can no longer start Puppeteer until I restart the server | <ul>
<li>Puppeteer version: 10.2.0</li>
<li>Platform / OS version: Ubuntu 20.04.3 LTS aarch64</li>
<li>Node.js version: v.14.17.6</li>
<li>Happens on any URL.</li>
</ul>
<p>This is my test script:</p>
<p><em>bug.hr/homepage.js</em></p>
<pre><code>const puppeteer = require('puppeteer-extra');
(async () => {
cons... | 2 | 4,564 |
Storing images in CloudKit as CKAsset, image upside-down | <p>I am working on developing an app that uses CloudKit to store and retrieve image files as <code>CKAsset</code> objects. Normally, this works great and I love CloudKit's small learning curve. Periodically though, I have this peculiar issue where an image is being stored either totally upside-down, or 90º to the left... | 2 | 1,173 |
MySQL OperationalError when running a Flask server (Apache) for some days | <p>I have a <strong>Flask</strong> server under Apache which I'm using as a Rest API for an app and when the server is running for 2 - 3 days it suddenly stops working and raises <code>OperationalError: MySQL Connection not available.</code></p>
<p>The error always happens at the <code>login</code> method because it's... | 2 | 2,575 |
RecyclerView doesn't display all items in list after update android studio | <p>I want to show these items inside my RecyclerView but it doesn't show at all and I can't see the error. Maybe you guys can help me out.
My code here:</p>
<p>The Activity:</p>
<pre><code>public class ProductsViewActivity extends AppCompatActivity {
private RecyclerView productView;
private ArrayList<Prod... | 2 | 1,912 |
AddressSanitizer blacklist in c++ not working | <p>I'm trying to get address sanitizer blacklist working in a C++ project but its not working as expected. I tried the example on their website, if I compile with <code>clang</code>, it works fine.</p>
<pre><code>build % cat suppress.txt
fun:bad_foo
build % cat foo.c
#include <stdlib.h>
void bad_foo() {
int *... | 2 | 1,489 |
DailyMotion Upload API missing file error | <p>I am trying to upload an mp4 video to the DailyMotion Upload API. When I send the file content, I receive an error response as below.</p>
<pre><code>Id = 31, Status = RanToCompletion, Method = "{null}",
Result = "{\"error\":\"missing file\",\"seal\":\"4a24a4c8a51771d9d3b8bcd4462e721b\"}"
</code></pre>
<p>I am usi... | 2 | 1,634 |
Tinder like swipe with two button in flutter | <p>like swipe but with two-button left and right</p>
<p>I am using the package: <a href="https://pub.dev/packages/flutter_tindercard" rel="nofollow noreferrer">https://pub.dev/packages/flutter_tindercard</a></p>
<p>I want not to drag option I want the button to swipe left or right is there any possibility so please hel... | 2 | 4,146 |
Android how to update progress bar in the listview, while uploading file to Amazon using aws sdk | <p>Am using the aws SDK to upload set of images. I have a ListView with each list item containing a ProgressBar(Style:Horizontal), I need to set the progress to it based on the file uploaded. </p>
<p>I used the TransferManager from the aws SDK (<a href="http://aws.amazon.com/releasenotes/Java/3538638977238478" rel="no... | 2 | 2,703 |
Ajax request keeps returning error function in Laravel | <p>Good day guys. In my laravel application I'm trying to check if attendence for a particular <strong>date, subject, grade</strong> exists in my table. If so I have an <code>if statement</code> setup to display desire results based on what is returned.</p>
<p>I'm making the request with ajax but it seems like ajax ke... | 2 | 1,376 |
how do you create highstock multi line chart in highcharts | <p>I need to createa multi line highstock type of chart:</p>
<p>My test.json file looks like this:</p>
<pre><code>[{"name":"serverA","data":[[1372737609,2.6075],[1372737906,2.6533],[1372738205,2.7834],[1372738526,3.6527],[1372738802,0.6352],[1372739093,0.6073]]},{"name":"serverB","data":[[1372737602,36.3042],[1372737... | 2 | 1,160 |
Open camera directly in the Activity without clicking on button and without intent? | <p>I am trying to open my Camera without clicking on my button but it doesn't work...</p>
<p>I follow instructions here : <a href="http://developer.android.com/guide/topics/media/camera.html#custom-camera" rel="nofollow noreferrer">http://developer.android.com/guide/topics/media/camera.html#custom-camera</a></p>
<p>H... | 2 | 1,772 |
Javascript smoothscrolling still lagging | <p>I'm working on this page: <a href="http://i333180.iris.fhict.nl/p2_vc/" rel="nofollow">http://i333180.iris.fhict.nl/p2_vc/</a></p>
<p>After some help from some of you here, I have successfully added a smooth scroll plugin.</p>
<p>However, I am noticed a lot of scroll lag when the page is first opened.</p>
<p><str... | 2 | 1,459 |
How do I remove thumbnail slider arrow implemented from CDN | <p>I have implemented thumbnail slider following example from the link <a href="https://splidejs.com/thumbnail-slider/" rel="nofollow noreferrer">https://splidejs.com/thumbnail-slider/</a>. The result has reflected fine as I expected now I want to remove the arrows and the progress bar, where both arrow and progress ba... | 2 | 1,812 |
Perl Net::SNMP::Interfaces | Interace errors | <p>I have the following script that I am using to see if an interface has errors against Cisco switches. The only problem I am experiencing is when I clear counters on an interface, Net::SNMP still shows them:</p>
<p>Perl Script (switch.pl):</p>
<pre><code>#!/usr/bin/perl
use warnings;
use strict;
use DBI;
use Net::... | 2 | 1,260 |
Material UI DataGrid set default selected row in a class? | <p>I'm currently rewriting my datagrid component to us Material UI, all of my components so far are class components (due to project scope).
One thing that I am at a standstill on is how to have the DataGrid have the first row selected by default.
I already have a way to get the ID Of row and pass it down, but I am uns... | 2 | 1,143 |
VBA Excel separate range of date in cells | <p>This is giving me a headache.. Im trying to do the following:</p>
<p>This is the data I have, I have element's names and a start date and an end date.
I want to have this data by day and not in range anymore (So I can upload it to a database I have which is by day).</p>
<p>I dont know if I can do this without usin... | 2 | 1,219 |
What keyboard shortcut to be used for Mouse Double Click in Sendkeys.Send() | <p>I need to double click the Masked Textbox which is inside datagridview.</p>
<p>But when i try to enter some value after the masked textbox gets focus, I am not able to enter any value. But I can able to enter a value when i double click using mouse. So i checked by writing SendKeys.Send("{F2}") in DataGridView.KeyP... | 2 | 1,404 |
App Engine, JSP "No forced path servlet for /WEB-INF/home.jsp" | <p>I have a GAE/J program (with JSP) which runs perfectly on dev server but when I deploy it to App Engine it returns with this: </p>
<blockquote>
<p>Error: Server Error</p>
<p>The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention ... | 2 | 1,935 |
angle bracket mysql php | <p>I have troubles fetching data from a MySQL database when the text inside a VARCHAR field is surrounded by angle brackets ('<' and '>' characters).</p>
<p>Let me be more specific. This is the table from which I'm fetching data:</p>
<pre>
mysql> describe msgs;
+---------------+---------------------+-----... | 2 | 1,816 |
datetime into mysql using android | <p>How to get current date and time in android and insert into the mysql database... i am using EditText and trying to get the current date and time in it... but i cannot insert it... so anyone share your idea how to get current date and time in edittext and insert into mysql database...</p>
<pre><code>Calendar calend... | 2 | 1,123 |
How to parallelize the numpy operations in cython | <p>I am trying to parallelize the following code which includes numerous numpy array operations</p>
<pre><code> #fft_fit.pyx
import cython
import numpy as np
cimport numpy as np
from cython.parallel cimport prange
from libc.stdlib cimport malloc, free
dat1 = np.genfromtxt('/home/bagchilab/S... | 2 | 1,389 |
DOM Parser for reading XML File(edit) | <p>I want to read following XML file using DOM Parser.</p>
<pre><code> <?xml version="1.0" encoding="UTF-8"?>
<CCL>
<COUNTRY>
<COUNTRYNAME>INDIA</COUNTRYNAME>
<CITY>
<CITYNAME>NOIDA</CITYNAME>
<LOCALITY>SEC 22^SEC 24^SEC 5... | 2 | 2,261 |
How to turn off cascade delete in Entity Framework Core 1.0 RTM | <p>Hi I have MVC 6 application with Entity Framework Core 1.0 RTM and SQL server, when I try to generate database tables, I got "Introducing FOREIGN KEY constraint may cause cycles or multiple cascade paths" error.</p>
<p>My model classes are as below:</p>
<p>Category Model:</p>
<pre><code> public class Category
{
... | 2 | 1,106 |
Installing OpenCV on Raspbian for Java, "Could not FindJNI" | <p>I'm trying to install OpenCV on Raspbian so that I can deploy my Java code onto the RPi. However, having cmake find JNI is proving to be an irksome task. One question that was answered here noted that the administrator needed to have JAVA_HOME set as well, not just the user. So I set it in /etc/environment as well a... | 2 | 1,217 |
Angular Website returns a blank page on IE11 (Invalid character error) | <p>I have a website which was created with angualar and typescript.
Angular: 8.2.14 and TS: 3.5.3</p>
<p>It is working with all browsers expect IE(11). I only can see a blank page here. So I did several things, but nothing works. </p>
<p>the error is: </p>
<p>File:main.faf9a6cd66c650ae3ae6.js -> Invalid character at... | 2 | 3,423 |
Keras Generator with Tensorflow Dataset API - IndexError: pop from empty list | <p>I need to develop an RNN model and would like to use a data generator to feed the training/evaluation loops.</p>
<p>To start with, I have this help function to use when fetching data from csv file.</p>
<pre><code>RECORD_DEFAULTS_TRAIN = [[0], [0.0], [0.0], [0.0], [0.0], [0.0], [0.0]]
def decode_csv(line):
pars... | 2 | 2,593 |
Error to load PHP 5.2.6 with Apache 2.2 in Windows VISTA | <p>I Install Apache 2.2 + PHP 5.2 and want to use any MySQL functions get the following error. This expañol and then in translation.</p>
<p>For any extra information just have to ask me my. I do not include data from phpinfo (); since it is much information to include it all.</p>
<pre><code>Firma con problemas:
Nom... | 2 | 1,046 |
How do I access XAML bound class properties in code? (C#, WPF form) | <p>In the example below, I am using XAML to set the DataContext to a class name, not an object name (as far as I can tell). The binding works - the txtEcho textbox shows what is entered in the txtName textbox when the latter loses focus. I want to be able to access the properties of this class in code-behind so I need ... | 2 | 1,134 |
Setting DataValueField and DataTextField shows error | <p>I want to populate _PropSubtype which is a dropdown list by selecting a value from the another dropdown list which is _PropType, by looking at the query you will understad. The problem which is arising is that how do i set the DataValueField and DataTextField(<strong>text to display in the dropdown list</strong>). s... | 2 | 1,174 |
How to download a MediaRecorder file in Chunk-Wise Simultaneously while record | <p>I am trying to create a simple record sample using <code>MediaRecorder</code> api. Using this i am checking to download capturing video using timeSlice(<code>mediaRecorder.start(10000)</code>).</p>
<p>When data captured(each 10 seconds) <code>ondataavailable</code> event triggered and using this event i am convertin... | 2 | 1,640 |
How to remove extra fields from ElasticSearch response | <blockquote>
<p>Hi I am very new to the ElasticSearch and I am struggling to remove all extra fields from response getting from ElasticSearch. Please see below response:</p>
</blockquote>
<pre><code> "report": {
"unique_users": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buc... | 2 | 1,579 |
mysql table structure question (userlogin and userlogin_fb) | <p>i have two tables which form part of my login/register system:</p>
<p>these are <strong>userlogin</strong> and <strong>userlogin_fb</strong></p>
<p><strong>userlogin</strong> deals with incoming website login/registration</p>
<p><img src="https://i.stack.imgur.com/BP2O2.png" alt="enter image description here"></p... | 2 | 1,716 |
android.os.FileUriExposedException: at android.os.StrictMode.onFileUriExposed | <p>I'm following <a href="https://inthecheesefactory.com/blog/how-to-share-access-to-file-with-fileprovider-on-android-nougat/en" rel="nofollow noreferrer">this tutorial</a> for using FileProvider instead of <code>Uri.FromFile()</code> But I'm not sure how to use FileProvider in my service.</p>
<p><code>FileProvider.g... | 2 | 1,190 |
ASP.NET cross subdomain cookies not being attached to request | <p>I've been trying to build a local proof of concept to move over our current solution to a different URL structure. I'm using ASP.NET with 3 projects that currently has these URLs mapped to them:</p>
<pre><code>mysite.com
mysite.com/api
mysite.com/app
</code></pre>
<p>To setup the proof of concept I've setup 3 site... | 2 | 1,190 |
My Node.js local application won't connect to Azure SQL DB | <p>I am developing a Node.js-Express-EJS web application, with Azure SQL DB (cloud version of MS SQL Server).</p>
<p>I try to test my connection first on the remote Azure SQL DB, using SQL Server Management Studio. First, I set my machine's IP to be allowed in Azure SQL DB firewall rules. Then I was able to get into t... | 2 | 1,037 |
File uploading script throwing error: "Invalid File" | <p>i am new leaner for php. i was trying to upload a simple thing but it does not works.. help to figure out i have referred in w3school.. i have a code.. and i have create a folder called upload.. why its not works..</p>
<pre><code><html>
<body>
<form action="upload_file.php" method="post"
enctype="... | 2 | 1,049 |
Building valide: Package libvala-0.12 was not found in the pkg-config search path | <p>I am trying to build the latest version of <a href="https://launchpad.net/valide" rel="nofollow">valide</a> (0.7.1)</p>
<p>I have successfully built VALA (v 0.17.0) on my machine (Ubuntu 10.0.4 LTS). When I run </p>
<p><code>./waf configure</code> in the valide src directory, I get the following output:</p>
<pre>... | 2 | 1,136 |
how to submit spark application from kubernetes | <p>Have a look at the image from <a href="https://spark.apache.org/docs/latest/cluster-overview.html" rel="nofollow noreferrer">https://spark.apache.org/docs/latest/cluster-overview.html</a>.</p>
<p><a href="https://i.stack.imgur.com/kTEMZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kTEMZ.png" a... | 2 | 1,625 |
React Native - How to select an Image then send to another screen | <p>I'm new to coding and I have a question on how can you select an image from an array and send it to another page in the image source.</p>
<p>I dont know if that is properly worded but this has been bothering for the last 4 days. </p>
<p>I'll take any suggestions at all I want to learn from you.</p>
<pre><code>imp... | 2 | 1,961 |
Spritesheet help in pygame | <p>I am currently working on a game, trying to improve my beginner python skills. My game is functioning at its most basic level - I can't bring myself to move forward in its development until I can animate my sprite. It's given me the worst headache -- induced by hours of staring at other peoples code, copy and pastin... | 2 | 2,726 |
Building Joda from source using IntelliJ? | <p>I've imported the maven project of the Joda source (https://github.com/JodaOrg/joda-time) and tried to build the project. When I do I get the following stacktrace:</p>
<blockquote>
<p>Exception in thread "main" java.io.IOException: Resource not found:
"org/joda/time/tz/data/ZoneInfoMap" ClassLoader:
sun.misc.... | 2 | 5,270 |
MySql 5 & LINQ to Entities EF 4 causing "Object must implement IConvertible" when querying across network | <p>When using the same MVC 3 & C# code along with copies of the same MySql 5.5 database on 2 different MySql installations. One works perfectly while the other one fails with an "Object must implement IConvertible" error. When I run the query against my local PC's MySql installation the query always works perfectly... | 2 | 5,224 |
Django error when migrating (int() and datetime.datetime) | <p>I think it's a basic mistake, but I'm trying to do some tests but now can't migrate the content. I've made the <code>python manage.py makemigrations</code> normally but when using 'migrate' it appears that message error:</p>
<pre><code>C:\P3\P3\urls.py:21: RemovedInDjango110Warning: Support for string view argument... | 2 | 4,330 |
Flitering an object child collection by a property using Fluent nHibernate | <p>Please excuse my ignorance, I am new to nHibernate and am having a conceptual problem trying to filtering an child collection with an nHibernate query</p>
<p>My object model contains two entities User and Task set up like this</p>
<pre><code>public class User
{
public User()
{
this.Tasks = new List... | 2 | 1,139 |
spring-boot-starter-data-elasticsearch causing unknown setting analyzer/search_analyzer and index.settings.analysis.analyzer.autocomplete | <p>Context: I want to use Spring-Data to connect to ElasticSearch and retrieve data searching for at least two letters in any position of the word.</p>
<p>Examples:</p>
<p>Loaded these two documents:</p>
<pre><code>[
{
"conta": "1234",
"sobrenome": "Carvalho",
"nome": "Demetrio"
},
... | 2 | 7,071 |
Regex for HTTP request not working in some occasions | <p>I'm making a java server to process HTTP requests using only <code>Socket</code> class, since my professor said we couldn't use the HTTP libraries (because the goal is to learn the HTTP...). So, I decided to process the requests using regex. The first thing that happens on the code is that it gets each line of the r... | 2 | 2,078 |
addEventListener not working for image upload | <p>Using addEventListner I am trying to upload image. when I upload image first time its working fine. But the second time when I am upload same image by changing image sizes its passing php image error 3 (The uploaded file was only partially uploaded).</p>
<p>My code as follows:</p>
<pre><code>jQuery('document').rea... | 2 | 3,836 |
Failed to handle request [GET http://localhost:8080 ]: Response status 404 Spring, RESTfull ,thymleaf | <p>I m experiencing a problem with Spring, Rest and Thymeleafand I'm stuck there and there is not so much details about this error that I'm experiencing.</p>
<p>I want when I select in the form one of the options in the select tag (index.html) to be redirected to the something.html but with the new values(with an api... | 2 | 2,982 |
How to resize a bitmap (BMP) in C - my code is not working | <p>I've been trying to fix this code. Everything seems to be working fine based on the printf tests I've added but the new image isn't resizing horizontally. </p>
<p>This is for an online course I'm taking so the coding may look elementary but we may not have covered more advanced solutions yet. </p>
<p>I've pasted b... | 2 | 2,679 |
Pass extra intent after capturing image from camera | <p>I want to pass an extra intent after capturing an image from camera to identify which image I captured. For that I have,</p>
<pre><code>int TAKE_PHOTO_CODE = 0;
Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);
startActivityForResult(ca... | 2 | 1,327 |
how to collapse/compress/reduce string columns in pandas | <p>Essentially, what I am trying to do is join Table_A to Table_B using a key to do a lookup in Table_B to pull column records for names present in Table_A. </p>
<p>Table_B can be thought of as the master name table that stores various attributes about a name. Table_A represents incoming data with information about a ... | 2 | 1,634 |
Getting HttpReques does not contain definition for Form - Datatable server side processing | <p>I have the following server side code: </p>
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using AutoMapper;
using myProject.Models;
using System.Web.Http;
using MyProject.Dtos;
using System.Web.Mvc;
using System.Linq.Dynamic;
using System.Data.Entity;
public class ... | 2 | 1,640 |
ADODB Command.Execute Timeout | <p>I am seeing a timeout error when running a query from Excel vba</p>
<p>The query takes <2 seconds from the SQL Server Management Studio, but from vba the timeout happens at 2 minutes with nothing returned</p>
<p>Is there something i am not doing right setting up the Command object? I have noticed that ADODB see... | 2 | 1,704 |
AngularJS: Sending Authentication Headers over Websocket | <p>I am having difficulty authenticating requests to a WebSocket API.</p>
<p>The Site I am working with (www.bitmex.com) provides a REST API and a WebSocket API.</p>
<p>Both of their API's allow authentication with an API Key.</p>
<p><strong>Authentication Requirements</strong></p>
<p>The API provides the following... | 2 | 1,276 |
How to do the group transforms in SVG file programmatically? | <p>I have SVG file with following image:</p>
<p><a href="https://i.stack.imgur.com/Myyd0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Myyd0.png" alt="Image"></a></p>
<p>Each of the arrows is represented by a code like this:</p>
<pre><code><g
transform="matrix(-1,0,0,-1,149.82549,457.2455)... | 2 | 2,894 |
Openssl can't compile when compiling for ARM, otherwise works fine | <p>So recently I have been compiling a rust project for ARM. It compiles perfectly for x86, but whenever I switch to an ARM target it can't find the Openssl installation, I have pkg-config installed and working so its not that error. Not sure how to set the OPENSSL_DIR variable successfully either or where to find the ... | 2 | 1,643 |
Custom NumberPickerPreference - how to set the NumberPicker value? | <p>I have prepared <a href="https://github.com/afarber/android-newbie/tree/q22/MyPrefs" rel="nofollow noreferrer">a simple test case</a> for my problem at GitHub.</p>
<p>I have extended a <a href="https://github.com/android/platform_frameworks_base/blob/master/core/java/android/preference/DialogPreference.java" rel="n... | 2 | 1,611 |
Calling functions in componentDidUpdate. Error: React limits the number of nested updates | <p>When I get from api response object:</p>
<pre><code>timeLoad = {
date: "2019-07-07 12:38:08+00",
pend: true
}
</code></pre>
<p>I want to set: </p>
<pre><code>this.setState({
time: this.props.timeLoad.second * 1000
})
</code></pre>
<hr>
<p>When I get from api response object:</p>
<pre><code>timeLoad = {... | 2 | 1,774 |
How to Separate List Items into Components in Angular | <p>Suppose I am creating a typical to-do list that has a structure as following:</p>
<pre><code><ul>
<li>Item 1 - description for item 1</li>
<li>Item 2 - description for item 2</li>
<!-- ... -->
</ul>
</code></pre>
<p>I would like the list and the items to be as ... | 2 | 1,539 |
compare topologically sorted list with the original list | <p>i have a vector of vertices from mygraph, and i topologically sort the vertices.</p>
<pre><code>typedef typename boost::adjacency_list<boost::listS, boost::vecS,
boost::directedS,Vertex_t*> Graph_t;
typedef typename boost::graph_traits<Graph_t>::vertex_descriptor Vd_t;
Graph_t mygraph;
std::vec... | 2 | 1,216 |
IllegalStateException: Can not perform this action after onSaveInstanceState - Android | <p>I am trying to figure out why my android app crashes sometimes, with the above exception. I can't find the source of the problem from what the logcat says. </p>
<p>It happens rarely.</p>
<p>Logcat output:</p>
<blockquote>
<p>java.lang.IllegalStateException: Can not perform this action after
onSaveInstanceStat... | 2 | 5,827 |
Bootstrap 3 - 2 inputs in the same line but not in the same width as one input | <p>The title might sound tricky but here is my problem :
<img src="https://i.stack.imgur.com/NJn63.png" alt="inputs for "Nom" and "Prénom" are in the same line but they are not in the same width line the first input."></p>
<p>Inputs for "Nom" and "Prénom" are, as i want, in the same line but they a... | 2 | 1,350 |
FFmpeg: Could not get frame filename with strftime | <p>I want to have a timestamp in my JPEG files generated by FFmpeg.
I'm getting the above error message when executing FFmpeg like this:</p>
<pre><code>ffmpeg -f dshow -framerate 50 -i video="XI100DUSB-HDMI Video" -strftime 1 "%Y-%m-%d_%H-%M-%S_thumb%04d.jpg"
</code></pre>
<p>It also says:</p>
<p>av_interleaved_writ... | 2 | 1,256 |
cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjector | <p>In my spring project I am using hibernate for access database..</p>
<p>I have </p>
<pre><code><tx:annotation-driven transaction-manager="transactionManager" />
<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"
p:dataSource-ref="dataSource" p:p... | 2 | 1,058 |
rails server doesn't start - Error messages | <p>I just installed the railsinstaller on my Windows 7. I created a sample_app folder inside my C:/Sites. I updated everything with "gem update". When I want to start a server, I got the following error:</p>
<pre><code>Lanti@LANTI-PC /c/Sites/sample_app
$ rails s
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/ex... | 2 | 2,456 |
Why my aspx page is being requested from cache on my dev machine only | <p>Ok - so I am testing a web application and am getting some strange behaviour on my development box that I can't work out. The same behaviour is not exhibited on a colleagues machine.</p>
<p>The issue is as follows: I am making two requests to index.aspx. The first request comes back as a HTTP 200 (as I would exp... | 2 | 1,823 |
Node Promise and AWS Lambda error handling | <p>I am doing some error handling in my node Lambda, using native promises. For some reason, my promise.reject never triggers. I am specifically sending in a bad url to get it to fail, yet AWS sends back 502 "Bad Gateway". This is presumably the way AWS handles internal server issues, which is fine, but I want to send ... | 2 | 1,047 |
How to map one-to-one relation as part of composite key in Fluent NHibernate | <p>I have two tables defining a parent-child relationship at the database level. The parent table has a single column primary key, and the child table has a composite primary key where one column refers to the parent table:</p>
<pre><code>application table tasks table
= task_id (CK) -------> = taskid (PK)
= ... | 2 | 1,645 |
my server call v2/checkout/orders/ paypal sandbox return 404 Not Found | <p>1: i used ios client create a order, get response as below</p>
<p>CurrencyCode: USD</p>
<p>Amount: 21.47</p>
<p>Short Description: Hipster clothing</p>
<p>Intent: sale</p>
<p>Processable: Already processed</p>
<p>Display: $21.47</p>
<p>Confirmation: {</p>
<pre><code>client = {
environment = sandbox... | 2 | 2,153 |
How I can I delay the expansion of a collapsible until its content is fetched? | <p>I want to integrate a collapsible in my jQM app (1.3.2) that works as follows:</p>
<ol>
<li>It starts <strong>collapsed</strong>.</li>
<li>On click it starts to fetch listitems for the collapsible from the server. The <strong>collapsible stays closed</strong>, a load icon may be spinning.</li>
<li>After all element... | 2 | 1,269 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.