title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Configuring CloudFront distribution with S3 Origin and Custom Origin (ELB) using AWS CDK | <p>I have an app that uses Django and Vue.js. Currently the API is served on <code>api.mydomain.com</code> that sends traffic to an Application Load Balancer which routes to Fargate services and the Vue.js static site is served on <code>mydomain.com</code> which sends traffic to a CloudFront distribution in front of an... | 2 | 12,511 |
Error: Cannot find module - Working locally but not on Heroku | <p>I am running a node application that I cloned from my Heroku container. locally, it runs and the app operates from localhost:3000.</p>
<p>However when I deploy the app using git deploy to heroku, it starts and then immediately crashes. The heroku log is pasted below.</p>
<p>I can't work out why I am getting this e... | 2 | 1,333 |
CSS border-bottom hover on navigation menu | <p>I have a problem with border-bottom property. I want my border-bottom to go from the bottom to the top of my li element which is 80px height. When I try with border-top it moves my "header nav ul li a" element 80px to bottom. Anyone have an idea?</p>
<pre><code><section class="intro">
<header>
... | 2 | 1,118 |
How to configure IAM role to enable SSM for a new EC2 instance? | <p>I'm running the following:</p>
<pre class="lang-sh prettyprint-override"><code>KEY=test
QUERY=ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20210430
aws ec2 create-key-pair --key-name $KEY --query 'KeyMaterial' --output text > $KEY.pem
chmod 600 $KEY.pem
aws ec2 create-security-group --group-name "... | 2 | 2,603 |
How to validate in each step the required fields? (that is, the next button should only work if required fields are valid and not empty) | <p>I´m creating a multi-step form using bootstrap and jquery with 4 steps. </p>
<p>But I want that in each step validate the required fields, that is, the button to go to the next step should only work if the required fields are not empty.</p>
<p>But I´m not having success implementing this part of validating each st... | 2 | 3,481 |
Unable to deploy WAR file in liferay | <p>There is a WAR file.</p>
<p>I can deploy it to tomcat7 without any errors. But when trying to deploy it to a Liferay bundled with tomcat this error occures:</p>
<pre><code>11:04:37,739 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:210] com.liferay.portal.kernel.deploy.auto.AutoDeplo... | 2 | 1,150 |
XML Deserialization with multiple elements with same name but different content | <p>Please help me to build model for deserialization of XML with multiple tags with same name but different content. </p>
<pre><code><?xml version="1.0" encoding="utf-16"?>
<found>
<prefixes>
<prefix name="Name1">Val1</prefix>
<prefix name="Name2">Val2</prefix>
</pr... | 2 | 1,283 |
How to send an ajax validation only if jQuery validation plugin succeed? | <p>I used jQuery validation plugin to validate form fields. Now I want to send an ajax request only if the fields are valid, which means after jQuery validation plugin succeed.</p>
<p>JavaScript: </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang... | 2 | 2,313 |
how to expand or replace the cell with another cell, when an particular cell select in table view | <p>I have already asked this doubt/problem in SO. but not get get solution. Please help me out....</p>
<p>i have one table view which will show the list of name data till 10 datas. But what i need is , when user press any cell, that cell should be replace with another cell, which have some image, phone number, same dat... | 2 | 1,246 |
How to dynamically populate Google Chart with AJAX query, getting DOM exception 8 | <p>I have a controller that returns (well) formatted JSON in the format that Google Charts expects. I can view the output by navigating to <code>http://localhost:9000/manager/echoVariables</code> and the OP is as follows: <code>[["foo",3],["foo",3]]</code></p>
<p>I want to do a AJAX call and am not able to pass this ... | 2 | 1,081 |
How to get rid of validation error with paypal-rest-sdk? | <p>I am using the paypal-rest-sdk to practice using the paypal checkout. I've set up a small test and whenever I click submit in my form I get a "localhost refused to connect" error in Chrome. I've turned off my proxy and cleared my history and cache. I've also double checked my client and secret keys from Paypal. I'm ... | 2 | 1,187 |
When i changing orientation my view's height and width are not changed | <p>I have use one view in sub view of Default view. I am trying to set its height and width same as super view, when it change orientation.First when app loads portrait mode,then this sub view take perfect height-width but when second time we change to portrait mode it is not change height and width.
In Load:-</p>
<pr... | 2 | 1,439 |
Troubleshooting "too many open files" caused by too many pipes | <p>I'm trying to debug "too many open files" issue caused by a Java process (PID=11389). Executing "lsof -p 11389" produces a large number of pipes as below.</p>
<pre><code>java 11389 root 379r FIFO 0,8 0t0 544900285 pipe
java 11389 root 381w FIFO 0,8 0t0 544890429 pipe
java 11389 ro... | 2 | 1,075 |
how to do conditional css on table row? | <p>I have a css that I need to work on IE8. So I cannot use last-child.
As a trick I use </p>
<pre class="lang-css prettyprint-override"><code>table#GridViewMemory tr:first-child + tr + tr + tr + tr + tr + tr + tr + tr + tr + tr + tr + tr + tr td {
display:table-cell;
}
</code></pre>
<p>to show the 13th row of a... | 2 | 1,640 |
WPF 3D performance | <p>I want to draw a cloud of point, searching the internet showing that there isn't point in 3D and I need to draw cubes.</p>
<p>So I tried to add to a viewPort3D 50,000 cubes and it just taking a lot of time (~ 5 minutes) </p>
<p>Is there any trick I can do on this code to get better performance ?</p>
<p>this is my... | 2 | 2,568 |
D3JS TopoJSON map of Australia: projection accurate but no country rendered | <p>I am generating a TopoJSON cartogram of Australia. I have successfully generated a GeoJSON map of Australia. I then converted that data to TopoJSON but cannot render the map. </p>
<p>Things to note:</p>
<ul>
<li>I can accurately project lat/long points of cities (i.e., their spatial
relationship looks correct). Th... | 2 | 2,287 |
cMake find_package Python | <p>I try to create multiple cMake targets using different versions of Python. In my cMakeLists I define the <code>Python_ROOT</code> variable and use <code>find_package(Python REQUIRED COMPONENTS Interpreter Development)</code> to get the python library path, version and linking options.</p>
<p>Is it possible to undo t... | 2 | 2,033 |
Google maps add rectangular border to custom marker | <p>I am new to google maps api,</p>
<p>I have tried with multiple markers with info windows added successfully
and now i want to add the border to the particular custom marker,
i am struggling for a custom marker with border </p>
<p>this is the jsfiddle link : <a href="http://jsfiddle.net/jalbertbowdenii/pGBZD/" rel... | 2 | 2,194 |
Getting data from a task to a connection with asyncio | <p>So this should be fairly simple, i have a client that connects to a server, and it can receive messages from the server just fine. However i need to be able to send messages to the server. I am using asyncio to handle these asynchronously but i have a problem with that. How do i get the user input to my client so it... | 2 | 1,869 |
plupload filename to database problems | <p>I have troubles trying to save the file name of an uploaded file with Plupload. Here is the Plupload section:</p>
<pre><code>echo<<<_END
<div id="container">
<div id="filelist">No runtime found.</div>
<br />
<a id="pickfiles" href="javascript:;">[Select file]<... | 2 | 1,035 |
error says " java.lang.ClassCastException: java.util.ArrayList cannot be cast to" when I'm not even casting ArrayList to the class | <p>There is probably something I'm missing here, but I haven't been able to figure it out.</p>
<p>So I wrote a Servlet that is, essentially, designed to help me download a file from a database, or a Book, if you will. Now I know that this error:</p>
<blockquote>
<p>22:05:18,349 ERROR [io.undertow.request] (default ... | 2 | 3,717 |
SQL Union with CTE and Sum | <p>I'm a complete novice with SQL and have two queries down to the results I want, but I think I'm not using <code>UNION</code> correctly to combine them. I had some help on this site earlier with a portion of the query.
Below is a shortened version of what I have.</p>
<pre><code>WITH RemoveData
AS (SELECT a.PLA... | 2 | 2,861 |
modal not shown in storybook | <p>I have a working modal component which i need to show in storybook as well. It depends on the props
to show and close. For example, if i need to show modal i would have to do the following</p>
<pre><code>const Demo = () => {
const [open, setOpen] = useState(false)
return (
<>
&l... | 2 | 1,040 |
Corona SDK: iPhone 5 adjustment | <p>I am using the following config.lua file when creating my mobile application.</p>
<p>The screen will not adjust to iPhone5 when building to device. It will, however, adjust when running on the simulator that corona provides.</p>
<p>Can you tell me if the problem lies in this file, or if it depends on some other im... | 2 | 1,242 |
Class 'Psr\Log\LogLevel' not found in ErrorHandler.php | <p>using <code>composer update</code> or <code>composer install</code> getting this error:</p>
<pre><code>Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> Incenteev\ParameterHandler\ScriptHa... | 2 | 1,658 |
Invalid Data in Excel File. Index was outside the bounds of the array.C# | <p>Cant find answer in any of the suggestions.I am trying to upload an excel file to the postgre Db.</p>
<p><strong>Here is the C# code :</strong></p>
<pre><code> public static List<Common.Transactions.TransactionDetail> GetTransactionDetails(string path)
{
if (!File.Exists(path))
{
... | 2 | 3,519 |
Client Error 500 in socialite google login laravel 5.8 | <p>I have a laravel project that has been integrated with Facebook login, but if I use Google login, the page raises a client error that is 500 server errors</p>
<p><strong>You can check on this website</strong>
<a href="https://indhri.asynchsolution.com" rel="nofollow noreferrer">https://indhri.asynchsolution.com</a... | 2 | 1,136 |
Module not Found: zipline import | <p>Getting the following stack trace from line:</p>
<pre><code>zipline/zipline/__init__.py", line 17, in <module>
import numpy as np
ImportError: No module named 'numpy'
</code></pre>
<p>however, when I check <code>pip list</code></p>
<pre><code>pip list | grep numpy
DEPRECATION: Python 2.7 will reach th... | 2 | 1,946 |
Identify the reason of deadlock | <p>I have 2+ concurrent processes. Inside them there is an iteration that perform repetitive validate (select) + save (insert) operations. Here is the sql-server-profiler info on the deadlock: </p>
<pre><code><deadlock-list>
<deadlock victim="process8e09048">
<process-list>
<pr... | 2 | 2,204 |
How to use multiple variables in array | <p>I'm working on a recipe inventory list. Users would be able to input multiple ingredients where each ingredient has a <strong><em>name</em></strong> (tomato, onion, milk), <strong><em>amount</em></strong> (5 tomatos, 1 onion), <strong><em>measurement</em></strong> (oz, tbsp, cup) and <strong><em>fractions</em></stro... | 2 | 1,198 |
Can't load waypoints and routes on Google Maps api v3 | <p>I want to display multiple directions with dragable waypoints and save each waypoints.</p>
<p>On my project I can click on the map to create the routes, generating a wayA point and a wayB point and draw a route between them. So, I can make multiple routes.
I can also save them on the database.
The problem is load t... | 2 | 2,403 |
Printing on "Bixolon Thermal Printer" using JAVA, "No pages found!" error | <p>I have been trying to use a thermal-printer "Bixolon SRP-F310" and print some text using JAVA's PrintService. Printer is detected and there is no exception while calling the print function. I can see in the web interface of Cups that the print event is called. However the printer doesn't print and the error message ... | 2 | 1,134 |
Nav menu won't open or close on click | <p>I've been trying to make this hamburger Menu Work for the longest time now and I've tried a lot, but I just keep going in circles for some reason the menu won't open( Menu not opening is the PROBLEM :( ),</p>
<p>I got the menu from learning how to create it from this tutorial -> <a href="https://www.youtube.com/wa... | 2 | 1,072 |
Complex number reduction with numba cuda | <p>I am trying to speedup a python code using cuda\numba. The code works with large arrays of complex, float and integer numbers. I have included both python version and numba-cuda version here. The numba-cuda version does not compile.</p>
<p>I have tried performing complex number calculation as separate real and imag... | 2 | 2,554 |
can't find class | <p>bootstrap.php</p>
<pre><code>define('ROOT_DIR', dirname(__FILE__));
require_once('Zend/Controller/Front.php');
$front = Zend_Controller_Front::getInstance();
$front->addModuleDirectory(ROOT_DIR . '/application/modules');
$front->dispatch();
</code></pre>
<p>application/modules/controllers/IndexController.php... | 2 | 1,349 |
ffmpeg how to add mkv to formats | <p>hello after installing ffmpeg in my linux server with centos 6 after searching google i run ffmpeg -formats so i need to add mkv i know i will need to recompile ffmpeg but i do not know how to do it
thank you</p>
<pre><code>File formats:
D. = Demuxing supported
.E = Muxing supported
--
E 3g2 3GP2 ... | 2 | 3,582 |
XMLHttpRequest for file upload failing in Chrome and aborted in Firefox | <p>Here is mu uploadFile function</p>
<pre><code>function uploadFile(options){
var formData = new FormData();
formData.append(options.paramName, options.file);
if(options.data){
for(var k in options.data){
formData.append(k, options.data[k]);
}
}
sendRequest(formData, options.url);
function... | 2 | 1,162 |
Joining Dataframes with same coumn name in pyspark | <p>I have two dataframe which has been readed from two csv files.</p>
<pre><code>+---+----------+-----------------+
| ID| NUMBER | RECHARGE_AMOUNT|
+---+----------+-----------------+
| 1|9090909092| 30|
| 2|9090909093| 30|
| 3|9090909090| 30|
| 4|9090909094| ... | 2 | 1,465 |
Safari ios iframe blank screen on rotate | <p>Using safari on an ios 10.3.2 device, we are using iframes to display the content on our site. However, occasionally when entering the page the iframe loads blank, but on inspection all the elements are rendered on the page - just invisible. Rotating the screen to landscape or pinch zooming causes the content to app... | 2 | 1,284 |
How to pass options like `only_path: true` and `anchor:` to `url_for` when generating a route from an array or object (instead of from a hash) | <p>I'm trying to change a function — which currently only accepts a URL (path) <em>string</em> — to make it more flexible, so that it will also accept as input the same arguments that you can pass to <code>url_for</code>. The problem is, <code>url_for</code> returns a full URL including protocol/host, and I only want t... | 2 | 2,095 |
Powershell Remote Registry Access to Non-Domain Server | <p>I have the following script which I use to collect the installed applications on various servers:</p>
<pre><code>$results = @()
$list = Get-Content serverlist.txt
foreach ($computer in $list) {
echo "Processing $($computer)"
if (Test-Connection -Cn $computer -BufferSize 16 -Count 1 -ea 0 -quiet ) {
echo "G... | 2 | 1,191 |
Unit Tests not discovered and executed in Visual Studio 2017 when legacy test settings specified | <p>I'm using Visual Studio 2017 Professional 15.4.5 and I found out unit tests will not be discovered when legacy <code>.testsettings</code> is loaded via selecting it in the <code>Test > Test Settings > Select Test Settings</code> menu</p>
<p>Here are steps to reproduce it:</p>
<ol>
<li>Create a new Solution</... | 2 | 1,154 |
SQL Server Read and Load Text File using function, Error whilst Opening file | <p>I am using the below function but it is giving me an error
Error whilst Opening file "C:\MyData\TEST.txt", </p>
<pre><code>CREATE FUNCTION [dbo].[ReadfileAsTable]
(
@Path VARCHAR(1000),
@Filename VARCHAR(100)
)
RETURNS
@File TABLE
(
[LineNo] int identity(1,1),
line varchar(8000))
AS
BEGIN
DECLARE @objFileSy... | 2 | 1,059 |
How to load map for specific country by leaflet js | <p>here i got a sample code which shows the same but i like to know from where to arrange the lat lang for any specific country or city.</p>
<p>here map done for London</p>
<pre><code>var london = new L.LatLng(51.505, -0.09);
map.setView(london, 13);
</code></pre>
<p>so if some one knows the LatLng for specific cou... | 2 | 2,075 |
Add cookies to dependancy injected HttpClient in Asp.Net Core | <p>how can I add cookies to <code>HttpClient</code> used in injected service (<a href="https://docs.microsoft.com/en-us/dotnet/architecture/microservices/implement-resilient-applications/use-httpclientfactory-to-implement-resilient-http-requests" rel="nofollow noreferrer">example</a>)? I have created some service <code... | 2 | 1,163 |
How to make a horizontal ListView with two row in Flutter? | <p>i am trying to show the catalog list in two row within horizontal GridView or ListView<br />
instead of single row the list data comes from server
The horizontal ListView working fine with one row
How can I achieve this as the GIF bellow ?</p>
<p>bellow image what i have</p>
<p>bellow gif what i need</p>
<p... | 2 | 1,958 |
node.js http-proxy loadbalancing | <p>during my studies i have to create a nodejs webserver environment including 2 nodejs webserver and 1 nodejs loadbalancer via http-proxy (module).
Therefore i built 2 instances of node js listening to port 8081 and 8082.
Example Server A (localhost:8081)</p>
<p><div class="snippet" data-lang="js" data-hide="false">... | 2 | 1,154 |
How can I return an object into PHP userspace from my extension? | <p>I have a C++ object, <code>Graph</code>, which contains a property named <code>cat</code> of type <code>Category</code>. I'm exposing the <code>Graph</code> object to PHP in an extension I'm writing in C++. </p>
<p>As long as the <code>Graph</code>'s methods return primitives like boolean or long, I can use the Zen... | 2 | 1,611 |
Nodejs can't establish a connection to the server at ws:// apache proxy | <p>I am trying to configure my nodejs application to run on localhost with a domain name.</p>
<p>So my website on local is <code>http://app.local</code> which points to <code>http://localhost/app</code></p>
<p>Now I have an app on nodejs which runs on 6060 port <code>http://localhost:6060</code></p>
<p>I am trying t... | 2 | 1,057 |
How can I change a tab bar to a segmented control in react native? | <p>I am learning react native right now and new to how it works. I am currently tweeking with a project trying to change it up a little. <a href="https://github.com/denodenodeno/employee" rel="nofollow noreferrer">https://github.com/denodenodeno/employee</a></p>
<p>The project has a tab bar at the bottom, which I want... | 2 | 2,377 |
Javascript make visible and add multiple divs on click-Almost working now | <p>Im trying to use Javascript to to add a section to a page when a button is clicked. I can't get this to work though. My codepen is <a href="https://codepen.io/anon_guy/pen/VMZWWW" rel="nofollow noreferrer">https://codepen.io/anon_guy/pen/VMZWWW</a></p>
<p>(Thanks for the help I've gotten it close to where I want ... | 2 | 1,279 |
MobileFirst v7.0 Operations Console shows "No runtimes installed" despite Server Configuration Tool showing Runtime. Some errors in logs | <p>This one has me beat, I've looked around at a lot of other posts/questions both on Stack Overflow and elsewhere, as well as spoken to some IBMers who don't know the cause either.</p>
<p>I have set up a MobileFirst Platform Server in a VM as per the instructions in the knowledge centre for v7.0 "Tutorial for a basic... | 2 | 5,550 |
RSpec controller specs not working unless explicitly adding :type => :controller | <p>I'm trying to run the <code>$ rspec</code> command but all my controller tests are failing unless I explictly add <code>:type => :controller</code> to each of the specs.</p>
<p>Here's the error I'm getting:</p>
<pre><code>1) AccountsController GET index assigns all accounts as @accounts
Failure/Error: get ... | 2 | 1,623 |
Laravel 5.7: On-Demand e-mail Notification via AWS SES treats my recipient e-mail as a sender e-mail and wants it to be verified address | <p>I want to send a simple <a href="https://laravel.com/docs/5.5/notifications#on-demand-notifications" rel="nofollow noreferrer">on-demand e-mail notification</a> in Laravel 5.7.</p>
<p>I went to AWS SES and under Email Addresses I added <code>do-not-reply@foo</code> as a sender. Then I click on the verification link... | 2 | 1,833 |
Lambda function causing TypeError: 'int' object is not iterable | <p>I just started learning Python. I'm using an API to build an IDFs model,however I'm facing some errors with the lambda functions which I cannot resolve.
This the class that generates the IDF:</p>
<pre><code>class Idfs(DocumentFrequencies, Model):
def build(self, corpus):
log.info('Counting documents in... | 2 | 1,112 |
Failed to execute goal org.grails:grails-maven-plugin:2.4.4:maven-grails-app-war | <p>I converted my Grails app to Maven project using <strong>grails create-pom</strong></p>
<p>I wish create a war and execute <strong>mvn clean compile install</strong></p>
<p><strong>Pom.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
... | 2 | 6,251 |
PHP MySQLi Prepared Statement: Fetch Not Returning Results for Joins | <p>I forget where I copied it from (I think a user posted it on php.net) but this function for fetching results of prepared and normal MySQLi statements is not returning any results when used with statements that contain a simple INNER JOIN, at least the one I tried:</p>
<pre><code> function fetch($result){
... | 2 | 3,723 |
How to make DatePickerDialog maintaining selected user date when changing screen orientation? | <p><b>In an opened DatePickerDialog, when screen orientation is changed, it reset the selected user data.</b><br/></p>
<p><em>(the DatePickerDialog does NOT CLOSE and it does not maintain the selected data)</em></p>
<p>Code:</p>
<pre><code>public class ActivityNeki extends FragmentActivity {
DialogFragment newDF... | 2 | 1,037 |
python request: how to loop the request.post in for loop? | <p>I'm trying to loop the <code>request.post</code> request in python to post the value to the server, so I'm using the <code>for</code> loop. (The code name is <code>temp-hum-log2.py</code>)</p>
<pre><code>with open('Data_IoT.Input.swift01.5.json', 'r') as readfile:
data1 = json.load(readfile)
for info1 in data1:... | 2 | 1,266 |
Add Test Target to existing project in Xcode 6.3 | <p>Note: this question is related, but the answer given there does not solve the issue for me: <a href="https://stackoverflow.com/questions/28019386/xc-testing-framework-iosxcode-6-1-test-session-exited80-without-checking-in">XC Testing Framework iOS(XCode 6.1) Test session exited(80) without checking in</a></p>
<p>I ... | 2 | 1,507 |
Dynamics CRM QueryExpression | <p>I have this query that populates a joborder with the notes (2 different types) that comes from the account on the job order. The problem that I'm having is that it works on most of the job orders but there are some that I'm noticing that the notes are not populating to. It seems to me that the account entity and int... | 2 | 1,498 |
Unable to find attribute android:font | <p>Get the following error when building a project with PhoneGap Build after adding the cordova-background-geolocation-lt plugin:</p>
<pre><code>:processArmv7DebugResourcesERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, una... | 2 | 3,503 |
How to change JSON save location/directory in NW.js | <p>I want to load a JSON file from a folder called saveFiles (in the same directory as the nw.exe file and the package.json file (manifest file)). The problem is that the program currently saves the JSON file to the <code>C:\Users\userName\AppData\Local\appName\User Data\Default folder</code>. I cannot figure out how t... | 2 | 1,135 |
C++ polymorphism Storing Base Class pointer in a vector | <p>I have a base class and then two derived classes from it. I am using pointer of base class to store derived classes objects in Vector. Now I have to print the data stored in vector </p>
<p>how can I retrieve the objects from the vector.</p>
<p>How can I make sure to which derived class an object retrieved belongs.... | 2 | 1,307 |
How do I bottom-align bars in a CSS vertical bar chart? | <p>I am experimenting with two different bar charts I created using HTML and CSS: horizontal and vertical. How do I move the bars in my vertical bar chart from the center to the bottom?</p>
<p><a href="https://i.stack.imgur.com/291Di.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/291Di.png" alt="en... | 2 | 1,540 |
MONGODB Simple query too long to be executed why? | <p>My query takes a lot of time ....</p>
<ul>
<li>130,000 documents -> 70ms (local)</li>
<li>11,000 documents -> 80ms (local)</li>
<li>1,600 documents -> 2ms (local) (other base, more complex query)</li>
</ul>
<p>Why do the first two put so much time compared to the third much more complex?</p>
<p><strong>Query with... | 2 | 4,295 |
Problem installing react@18 - why can I not install the package? | <p>I can't install react@18 because i get the following error</p>
<pre><code>Raw JSON explanation object:
{
"code": "ERESOLVE",
"current": {
"name": "react",
"version": "18.0.0",
"whileInstalling": {
"name":... | 2 | 1,374 |
freeze on sending certain bitmaps to activities | <p>Basically I receive the Image's URI from the Gallery, then created a Bitmap and want to send to another activity for displaying:</p>
<pre><code>Uri imageUri = intent.getData();
mBitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), imageUri);
Intent intent = new Intent(TakePictureActivity.this, PreviewAc... | 2 | 1,838 |
PHP cURL through proxy | <p>I'm trying to send a cURL request through a proxy in PHP.</p>
<pre><code>$c = curl_init();
curl_setopt($c, CURLOPT_URL, $this->url);
curl_setopt($c, CURLOPT_PROXY, $this->proxy);
curl_setopt($c, CURLOPT_POST, true);
curl_setopt($c, CURLOPT_USERAGENT, $this->browser);
curl_setopt($c, CURLOPT_POSTFIELDS, $re... | 2 | 1,156 |
ngbTypeahead not working with Angular 6 and ng-bootstrap | <p>I am trying to use <code>ngbTypeahead</code> on a basic Angular 6 application. There aren't a whole lot of other dependencies in the application. I keep getting the following method signature not found error...</p>
<pre><code>ERROR TypeError: Object(...)(...) is not a function
at Observable.push../node_modules/rx... | 2 | 1,035 |
Dashcode webapp flickers upon transition, only in iPhone Safari | <p>I created a simple RSS web app using the template in Dashcode. Problem is, when choosing items in the list from the feed the transition flickers (even with the default settings). I am guessing its because of the images in the posts. </p>
<p>I tried disabling the transitions completely but even then I get a flickeri... | 2 | 1,153 |
rewrite left outer join for sub queries in bookshelf.js | <p>Note : I have not shared database schema as I am mainly looking for a help only w.r.t. last step which is 'left outer join' on 2 sub-queries. </p>
<pre><code>select *
from
(select id
from Action
where id = 3) AS act1
left Outer Join
(select Action.name,
completed_At as comp... | 2 | 1,144 |
Kafka Broker Not able to start | <p>I am having a 3 node Kafka Cluster. One of the broker is not starting, i am getting below error. I have tried deleting index files but still, same error coming. Please help to understand what is this issue and how can I recover.</p>
<p><code>
INFO [2018-09-05 11:58:49,585] kafka.log.Log:[Logging$class:info:66] - [p... | 2 | 1,293 |
django-activity-stream actions not displaying | <p>I've just set django-activity-stream up but can't get it to display my actions when I goto the built in template mysite.com/activity/. Yet if I check the admin site I can see the actions have been saved as expected. I am using django-allauth for authentication/authorization</p>
<p><strong>myapp/Settings.py</strong>... | 2 | 1,430 |
Calls to NSURLConnectionDataDelegate methods to download images only works occasionally | <p>I currently have two <code>UIImageView</code>s in my storyboard, one of which downloads my own Facebook profile picture, and the other a friend's profile picture.</p>
<p><img src="https://i.stack.imgur.com/gt9FB.png" alt="Storyboard layout"></p>
<p>However, my issue is that <strong>only 60% of the time this works ... | 2 | 1,259 |
React native pinch zoom with redash and reanimated | <p>I'm just trying to scale the image with pinch zoom using reanimated and redash.</p>
<p><a href="https://www.youtube.com/watch?v=MukiK57qwVY" rel="nofollow noreferrer">I followed this tutorial</a></p>
<p>But the component that I grab stays on top of the previous but under the next component. I know It's a bit complic... | 2 | 1,537 |
Cannot remove event from fullcalendar | <p>I am using fullcalendar <a href="http://fullcalendar.io/" rel="nofollow">http://fullcalendar.io/</a></p>
<p>whenever my user creates an event on the calendar by selecting a timeslot, he generates an event object with a unique_id which is then pushed into a hidden field as JSON.</p>
<pre><code> select: function(s... | 2 | 1,080 |
How can I assign 'g-recaptcha-response' to a variable? With 'g-recaptcha-response' being a parameter inside $request->validate([]) | <blockquote>
<p>So what i want is to put 'g-recaptcha-response' in a variable to be able to use it in my condition to verify recaptcha but I haven't been able to do this. Is there any way to only use recaptcha field from the array inside validate() because my code as it is, redirects me back to homepage. It goes stra... | 2 | 1,183 |
using sed command to replace xml tags | <p>in a project I have an info.plist (xcode project) file, which is an xml file. I would like to add more properties to it using a shell script on the terminal.</p>
<p>What I need to add to it is the following:</p>
<pre><code><key>CFBundleURLTypes</key>
<array>
<dict>
<key>CF... | 2 | 2,071 |
excel-bootstrap-table-filter-bundle.js shows values in filter list from the above tables | <p>I'm trying to creare a Excel like Filter in my bootstrap table using excel-bootstrap-table-filter-bundle.js. The filter works but it shows not only the values from the working table but also the values from above tables.
That's my jsp page:</p>
<pre><code><%@ page language="java" pageEncoding="UTF-... | 2 | 2,891 |
How to test user namespace with clone system call with CLONE_NEWUSER flag | <p>Testing the <a href="https://github.com/PacktPublishing/Containerization-with-LXC/blob/master/Chapter01/user_namespace.c" rel="nofollow noreferrer">sample</a> from <a href="https://rads.stackoverflow.com/amzn/click/com/1785888943" rel="nofollow noreferrer" rel="nofollow noreferrer">Containerization with LXC</a> to d... | 2 | 1,198 |
Unable to access the parent class member in base class in python | <p>I am using python 3.4 and i am new in object oriented programming and want to access the parent class member in my child class. But it is not accessible. Can anyone help me to get rid of this?</p>
<pre><code># Base class members can be accessed in
# derived class using base class name.
# Parent or super class
clas... | 2 | 1,154 |
How can I change numberOfRowsInSection when I have multiple TableViews? | <p>This is my current code:</p>
<pre><code>if (tableView == nearbyTV) {
return numberOfObjects;
}
else {
if (tableView == self.searchDisplayController.searchResultsTableView) {
return [searchResults count];
}
else {
return [users count];
}
}
</code></pre>
<p>As you can see I am tr... | 2 | 1,842 |
AWS S3 presigned url with React uploads empty file | <p>I am using React, API gateway, and Lambda (Python) to obtain a pre-signed url to upload a file to an s3 bucket. But the files uploaded to the s3 bucket are always empty (0 bytes). And for some reason, when I upload a CSV in my React App. The uploaded file in s3 turns into an .XLS file but still named the original cs... | 2 | 1,287 |
Missing attribute error in Jobs#new | <p>A little bit of background: I recently got a new job as a Rails developer which is all fine and dandy (I have a Rails background), but I am running into a problem and I cannot figure it out. The job I took involved taking over a project someone else at the company started but never finished. So I have a unfinished C... | 2 | 2,985 |
Jersey - Unit testing resource with spring-injected service | <p>My question is similar to <a href="https://stackoverflow.com/questions/28614846/how-to-in-memory-unit-test-spring-jersey">this one</a>.</p>
<p><strong><em>Setting</em></strong>:
I have a <code>GreetingResource</code> which has a <code>Autowired</code> <code>GreetingService</code> to handle <code>GET</code> requests... | 2 | 1,593 |
0x800a03ec Exception when using Microsoft.Office.Interop.Excel.Workbook.Open() | <p>I created a AutoCAD plugin and distributed it across group of users. The issue is that I am facing is that it is working for some users while it is crashing on some computers. This problem may be with the computer or code, therefore please read through. </p>
<pre><code>string strFullPath= "D:\Model\Motor-Manifest\M... | 2 | 1,082 |
Recyclerview android with volley JsonArrayRequest with post parameters | <p>I want to load my recyclerview with JSON array. I am using volley for this .</p>
<p>I am using <code>StringRequest</code> as of now.</p>
<p>I want to post id and in response I will get the JSON array.</p>
<p>I am getting the response but my <code>ArrayList</code> shows error </p>
<p><code>statuslist ='this' is n... | 2 | 2,954 |
UWP Adding Extra Options to the NavigationView | <p>I have the following XAML:</p>
<pre><code><Page
x:Class="Proto.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Proto"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc... | 2 | 1,200 |
How to RUN Scheduled Task in SQL Server 2008 for SSIS Package? | <p>I am trying to run an <code>SSIS</code> package in SQL Server Agent, and create job successfully, but when I try to run, I got this error:</p>
<blockquote>
<p>Microsoft (R) SQL Server Execute Package Utility Version 10.50.1600.1
for 32-bit Copyright (C) Microsoft Corporation 2010. All rights
reserved.</p>
... | 2 | 1,406 |
DirectShow Jerky Video Playback at Speed | <p>I am using DirectShow/VMR9 to playback a MPEG 4 video in my application. I use IMediaSeeking SetRate to set the speed of the video. Playing back a video I have created plays well at speeds up to 4x, above this the video becomes very jerky. Playing back the same file using Windows media player at speeds above 4x is n... | 2 | 1,172 |
Converting a grid defined via XAML to its C# equivalent | <p>I'd like to convert the following XAML sample code into its C# equivalent:</p>
<pre><code><Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!-- Sub-grid on left -->
<Grid Grid.... | 2 | 2,783 |
ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.support.v7.widget.Toolbar$SavedStat | <p>App crashes on Samsung galaxy devices randomly. </p>
<pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.support.v7.widget.Toolbar$SavedState
at android.app.ActivityThread.performLaunchActiv... | 2 | 1,345 |
Rails Engine - NameError: uninitialized constant | <p>I'm creating a Rails Engine Classification, in which I have the Class Passion and a Concern Passionable. </p>
<p>I have also another engine Post, where I include the Passionable Concern. This Passionable Concern belongs to the Engine Classification in the /lib folder.</p>
<p>Turns out that, whenever I try to do a ... | 2 | 3,462 |
cancel alarm from another activity with the same pendingintent | <p>I have a problem and searched about it all the day but can't do it correctly</p>
<p>how to cancel the alarm from another activity (alarm_Time activity ) ? I think the problem with me in the intent that I used to cancel the
the same pendingintent that set the alarm </p>
<p>here is the code in alarm_Time activity t... | 2 | 3,435 |
SDWebImage's sd_setImageWithURL updates the wrong cell with Image on scrolling!! Is that a expected behaviour? | <p><strong>OverView</strong></p>
<p>I am downloading the images from web server using SDWebImage in my collectionView cell. </p>
<pre><code>if floor.hasTitleImage != nil {
self.floorImageView.sd_setImageWithURL(NSURL(string:(floor.hasTitleImage?.imageURL)!), placeholderImage: UIImage(named: "Placeholder")... | 2 | 2,400 |
OSX dev_appserver.py file not accessible: '/System/Library/CoreServices/SystemVersion.plist' | <p>I did a <code>gcloud components update</code> 2 days ago and started getting this error when i run <code>dev_appserver.py</code></p>
<pre><code>(venv) myusername@mymachine:~/projects/myproject$ dev_appserver.py ./ --host 0.0.0.0 --port 8002 --enable_console --env_var GCS_TOKEN=ya29........YJDQAnp772B0
INFO 2019... | 2 | 1,571 |
Procedure or Function has too many arguments specified in ASP.NET using VB.NEt | <p>Every time I run my update function I generate a Procedure or Function has too many arguments specified error and I think I have been looking at this for too long because I can't find the root cause. Any guidance would be appreciated. </p>
<p>My VB.NET code is as follows:</p>
<pre><code> Public Function UpdateG... | 2 | 1,259 |
Why pip does not install a package? | <p><code>pip install</code> indicates that the <code>nitime</code> package was successfully installed but it is not. Why is this?</p>
<pre><code>$ pip3 install nitime
Defaulting to user installation because normal site-packages is not writeable
Collecting nitime
Using cached nitime-0.9.tar.gz (6.2 MB)
Preparing met... | 2 | 1,112 |
Extracting Labels and comments from the RDF file using RDFlib in Python | <p>I have the follow ontology:</p>
<pre><code><!-- http://purl.org/ontology/bibo/Article -->
<owl:Class rdf:about="Article">
<rdfs:label xml:lang="en">Article</rdfs:label>
<rdfs:subClassOf rdf:resource="Document"/>
<rdfs:isDefinedBy rdf:datatype="&xsd;anyURI"
&g... | 2 | 1,198 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.