text
stringlengths
15
59.8k
meta
dict
Q: Will Rundeck kill scripts that it thinks are taking too long? I have a rundeck job with a script workflow step that has some simple commands, like the following. echo "Some text" pwd ls -la echo "Starting script now . . ." # This script can take a while, maybe 20 to 30 minutes php ./some_long_running_script.php arg1...
{ "language": "en", "url": "https://stackoverflow.com/questions/45038624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add additional source files in Makefile I have a Makefile that I use to build executable on mac os x, using mpicc compiler, linking mkl_lapack.h library. Now this Makefile is perfectly working, the only problem is that I don't know what to add if I want to compile Eigenvalues.c linking other .c files, if I wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/8808368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: 1 error with an array "missing return statement" import javax.swing.JOptionPane; public class Mate { double suma (double x1,double x2) {return x1+x2;} double suma (double x1,double x2,double x3) {return x1+x2+x3;} double suma (int num [ ]) {int i=num.length; int j=0; int s=0; for(j=0;j < ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5164522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change the background color with a sticky element I would like to change the body color background on scroll with a sticky element. body { margin: 0; background: lightblue; } .blue-container { height: 70vh; } .blue { height: 40vh; position: sticky; width: 70%; top: 0; background: b...
{ "language": "en", "url": "https://stackoverflow.com/questions/52569358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: blockinfile keeps adding the block I'd like to add a block of text to my ElasticSearch configuration using blockinfile, but every time I run my playbook, the block gets added to the file -- even when it already exists. This is a problem because ElasticSearch doesn't just take the last value, it chokes on startup sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/41284602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Define filter parameters dynamically in django queryset Suppose we have such a model: class Membership(models.Model): person = models.ForeignKey(Person, on_delete=models.CASCADE) date_joined = models.DateField() invite_reason = models.CharField(max_length=64) Can we put x as a variable inside the filter...
{ "language": "en", "url": "https://stackoverflow.com/questions/65265137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Onclick is being called several times even when i have called it only once I have put this code inside the resize function in jQuery. But this click function is called multiple times. When i click on the desired link the toggle takes place many times if ($(window).width() <=768){ if ($('body').hasClass('page...
{ "language": "en", "url": "https://stackoverflow.com/questions/35057334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Adding condition based on Data Validation List in Microsoft Excel I am having trouble with a small excel formula problem. I am trying to use AVERGEIFS. The setup of this function is AVERAGEIFS(average_range,criteria_range1,criteria1,criteria_range2,criteria2,...) The catch is that I want the inclusion of a criteria...
{ "language": "en", "url": "https://stackoverflow.com/questions/28614453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I display the sale from the country? The question asks to display the total sale which is group by sales person and filter for only sales made within Asia. Here is my code I have tried: var reqtwo = list1 .GroupBy(p => p.salesPerson) .Select(s => new { salesperson= s.Key, to...
{ "language": "en", "url": "https://stackoverflow.com/questions/70711038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: How to check the Language in which Exe is made We were studying about compilers at college so this raised me curiosity that when we use the compilers and they form assemblies so is there any way you could know that ,if you are given any exe, which compiler was used to build it?or atleast which language was this exe ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5453706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF: change binding properties for multiple controls I'd like that all the Text bindings for the TextBoxes in my UserControl to have UpdateSourceTrigger=PropertyChanged, and ValidatesOnDataErrors=True How to do it ? I can think of a solution: use another class for bindings (a class inheriting Binding) but maybe the...
{ "language": "en", "url": "https://stackoverflow.com/questions/2509601", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using RegEx to extract digital number from the innertext of a webpage element I used the regex of (?:\[+\.)?\d+ to extract the digits from the innertext of the website element, the innertext was $94.99/mo. This worked and I can create a variable equal to 105.66. When I apply this regex to innertext which has diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/35455918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Permission denied (publickey) CloudControl I always get this error with cloudcontrol. Help. Using Windows with Git installed. Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Command '['C:\Program Files (x...
{ "language": "en", "url": "https://stackoverflow.com/questions/29288865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Dynamically Change CSS with Javascript or jQuery I have a snippet of code in which I would like to change the css dynamically based on the values being greater than 0. For a value of '0' the class = 'cart-summary__count'. For a value greater than '0' class = 'cart-summary__count_full'. <span class="cart-summary__cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/39368502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stateful bean passivation fails because of Stateless beans references I am using Weblogic 12c (12.1.3 to be specific) to deploy my (EJB 3.1) application. In my application, I have a @Stateful bean, which holds references to an EntityManager and other @Stateless beans, injected using @PersistenceContext and @EJB anno...
{ "language": "en", "url": "https://stackoverflow.com/questions/31405591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Laravel5 Eloquent method All returning unexpected results I am trying to learn Laravel and I was really liking it until I got stumped! I created a table called suggestions and seeded it with some fake data. It looks like this: I have a model file called Suggestion.php that has this code: <?php namespace App; u...
{ "language": "en", "url": "https://stackoverflow.com/questions/35257561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create a command that triggers executable file of your gem? For example, I have a gem called mygem and I want to start executable file with a command mygem. How can I do this? A: Here is the RubyGems guide for how to add an executable. The primary steps are: * *Add your script to the gem's /bin directory...
{ "language": "en", "url": "https://stackoverflow.com/questions/37475627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unpack function return tuple into key value pair Suppose I have a function that returns a tuple: def foo(x): return (x, x*100) I have a list of values that I'd like to apply the function on and then turn the results into a dictionary: list_of_vals = [2, 4, 6] result = {...magic comprehension...} print(result) # {...
{ "language": "en", "url": "https://stackoverflow.com/questions/51855167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Drawing an arc, depending on the input time I need to draw a part of the circle, depending on the input time. For example, from 6:00 to 9:00, the site of the circle is: Blue area I need draws. Accordingly, from 00:10 to 3:20 schedule part of the circle will be elsewhere. I thought I'd use the GD library, but I do n...
{ "language": "en", "url": "https://stackoverflow.com/questions/19088803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to allow to use case sensitive row ids in jqGrid If jqGrid row ids (passed as separate id property from json data in server) are different only by case, inline edit is not started properly: double clicking in second row puts first row in inline edit mode. How to make jqgrid row ids case sensitive ? Data read fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7230179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NoSql Design, AWS (DynamoDB) or Azure(DocumentDB)? I am planning on moving our people/address/telephone database from Sql Server into a NoSQL db for scalability reasons. We currently have all our infrastructure on AWS and Azure and we are planning on keeping it that way. Hence, I started researching the tools provid...
{ "language": "en", "url": "https://stackoverflow.com/questions/43576711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Codeception - HTML report generation seems slow? I am using Codeception to run three acceptance tests which basically are as follows:- * *Check the email address 'admin@admin.com' exists *Create a new user account *Login to the website Obviously this requires the database so I have added 'Db' to the list of m...
{ "language": "en", "url": "https://stackoverflow.com/questions/17109256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: compass vanishes when MKMap is oriented to north in iOS I am displaying a map on the iPhone using MKMapView. The Map can rotate so that it is oriented with respect to the iPhone orentation using the magnetic heading information. I like to present the compass but it vanishes each time the map is oriented to north! I...
{ "language": "en", "url": "https://stackoverflow.com/questions/45790045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Django's ifchanged template tag with forloop.counter Django's template tags include an {% ifchanged %} test for use within loops to check if a value has changed. I'm using it to output a new <div> tag every time a variable changes. I want every 4th <div> to have a specific class, but Django's forloop.counter v...
{ "language": "en", "url": "https://stackoverflow.com/questions/6257648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DocuSign Connect - Uploaded DOCX, Returned DOCX I have been working on a listener application for receiving HTTP POST requests from DocuSign Connect. It is coded as a ASP.NET MVC4 web application. By using the sandbox environment, I have been able to send and receive documents in a variety of different file formats ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39647048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ObjectBox / ToMany - Is there a way to query() the absence of a relationship? I have two ObjectBox entities (Attribute and Delivery) that are linked by a ToMany relationship. I'd like to use Box.query to select all Attribute with no linked Delivery. Current code requires to fetch all objects and cycle through them, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68949307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: laravel Route::resource() is using show() instead of create() at the /create route Ok, I have a resource where the show($id = create) is taking over create() The page I'm visiting http://localhost/admin/packages/create my error is: Error ModelNotFoundException {#306 ▼ #model: "Me\Subscriptions\Package" #ids...
{ "language": "en", "url": "https://stackoverflow.com/questions/46678591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why are KD-trees so damn slow for nearest neighbor search in point sets? I am using CGAL's (the latest) KD-tree implementation for searching nearest neighbors in point sets. And also Wikipedia and other resources seem to suggest that KD-trees are the way to go. But somehow they are too slow and Wiki also suggests th...
{ "language": "en", "url": "https://stackoverflow.com/questions/15124900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Nant property cannot be overwritten eventhough not marked as readonly I am using nant 0.85 version. I have defined a property in a file and have not specified like'read only=true". But where ever I try to change the value of the property , I get the warning saying that, property cannot be overwritten. I have tried ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6106237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ copy elision of fields I am trying to get copy elision to work for fields of the object that is to be returned. Example code: #include <iostream> struct A { bool x; A(bool x) : x(x) { std::cout << "A constructed" << std::endl; } A(const A &other) : x(other.x) { std::cout << "A co...
{ "language": "en", "url": "https://stackoverflow.com/questions/59756657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Display my output in Php with return in a loop? I want to output my code. When I use return then it breaks up after 1time and (when I use echo my content will be displayed on the top of the page. And I think that I should not use here echo because I want to call functions in the loop later) Here are pictures...
{ "language": "en", "url": "https://stackoverflow.com/questions/58662618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I use ffmpeg to save only the last 60 secs recorded? I'm trying to figure out a way to use ffmpeg command to save only the last 60 seconds recorded. The way I'm doing it now is using a thread to record 60 seconds videos, and then merge the last two videos and cut the last 60 seconds (using the -t command), t...
{ "language": "en", "url": "https://stackoverflow.com/questions/69178757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Test instrumentation process crashed - where is the .txt file? Sometimes, while Espresso testing, I see the following exception. Test instrumentation process crashed. Check package_name.TestName#methodName.txt for details Where is this .txt file stored? I can't seem to find it anywhere. Use Case In Jenkins (CI), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49985720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: m2e default lifecycle when adding webapp to tomcat server I'm using m2eclipse for a while, and I suddenly ask myself this very basic question: Which maven phases are part of the lifecycle when I drag and drop a webapp into my tomcat server? I assume it must be something like "clean package" PLUS a deployment of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30403197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is Auth::attempt always returns false in Laravel 5.3? I'm new in Laravel. I try to use Multiple Auth in Laravel 5.3 and my auth.php file is: <?php return [ */ 'defaults' => [ 'guard' => 'web', 'passwords' => 'users', ], 'guards' => [ 'web' => [ 'driver' => ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40537013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JQuery - Iterate a collection of value I have a collection of data: q: "5,1,3,4" I need to get those values and so I can have checkbox preselected $('input[data-value=5]').prop('checked', true); $('input[data-value=1]').prop('checked', true); $('input[data-value=3]').prop('checked', true); $('input[data-value=4]')....
{ "language": "en", "url": "https://stackoverflow.com/questions/49972979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to implement PaintCode project into SKScene In my app I'd like to implement a circle made with PaintCode (Stylekit) in SKScene. This is my code: import SpriteKit import GameplayKit class GameScene: SKScene { override init(size: CGSize) { super.init(size: size) StyleKit.drawCanvas1() } requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47871075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spotipy Audio Features - get track name from uri Spotify's audio features endpoint returns requests like so: { audio_features: [ { "danceability": 0.808, "energy": 0.626, "key": 7, "loudness": -12.733, "mode": 1, "speechiness": 0.168, "acousticness": 0.00187, "ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/38839866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Single page calendarview I am trying to develop a calendar application which displays all the months in a year in a single activity .I am having troubles with it . This is the view that i want to make . I am so lost :/ ListViewAdapter: package com.example.calendar15; import android.content.Context; import...
{ "language": "en", "url": "https://stackoverflow.com/questions/27982509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to ignore lines starting with a string with diff? How can I diff two files and ignore lines starting with a sequence. E.g File1: abc def time:123 File2: igh def time:345 With unix diff it will report <time:123 >time:345 I want to ignore this diff. Any ideas? A: How about: diff -I '^time.*' file1 file2? Ple...
{ "language": "en", "url": "https://stackoverflow.com/questions/2747091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to join surfaces together to form a 3D image in Python? I wish to achieve something very similar to this question: How to join these two 3D lines together with a surface in Python's matplotlib There is an answer towards the bottom which is exactly the picture I would like to obtain, however, the surfaces I am de...
{ "language": "en", "url": "https://stackoverflow.com/questions/64730731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to pass pendingInent in Intent.putExtra; to start pendingIntent from anotherActivty I'm trying a start a UI activity from the NotificationListiner service,Then In UI when user clicks on yes: perform pendingIntent();else: finish() I tried to achieve the above with Dialog,AlertDialog but since NotificationListiner...
{ "language": "en", "url": "https://stackoverflow.com/questions/70254569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do zipkin do to merge span for search trace request? In the zipkin web ui, when the request url is http://10.19.138.169:9411/zipkin/api/v1/trace/ae60bd175a61e820 I find the return response is [ { "traceId": "ae60bd175a61e820", "id": "ae60bd175a61e820", "name": "client", "time...
{ "language": "en", "url": "https://stackoverflow.com/questions/48160588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web-scraping for a specific class of tag I am attempting to draw financial data from the Australian stock exchange (ASX). Specifically, the share registry for a particular company. The website would be something like this (I say something because the ticker in the URL would change from firm to firm). The HTML snippe...
{ "language": "en", "url": "https://stackoverflow.com/questions/61928306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot send email in perl For some reason I cannot send an email in perl. I checked my env path and sendmail path everything is correct. But I am not receiving the email.I am not entirely sure if I am missing something. #!/usr/bin/perl -wT use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); u...
{ "language": "en", "url": "https://stackoverflow.com/questions/24521329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sql server status change time THENUMBER NUMBER SYSMODTIME TYPE ACTIM2816332 IM0540202 2014-11-18 09:17:53.000 Closed ACTIM2806050 IM0540202 2014-11-13 15:11:29.000 Update ACTIM2806051 IM0540202 2014-11-13 15:11:29.000 External Vendor Assignment ACTIM2806049 IM0540202 2014-...
{ "language": "en", "url": "https://stackoverflow.com/questions/27124711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make hover effect only on hamburger button, not on close button? I have a problem with the following code : .btn-menu:hover .btn-menu__bars::before{ transform: translateY(-0.5875rem); } .btn-menu:hover .btn-menu__bars::after{ transform: translateY(0.5875rem); } How to make this hover code only work in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/72911325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Support for ',' in input type="number" in IE 11 using Angular + material I need to accept 10,12 as a valid number in IE 11 because the users only have a German number pad as an input device which only has a comma as a decimal separator. The current behavior is (userinput -> value used) 10,12 -> 10 The desired behav...
{ "language": "en", "url": "https://stackoverflow.com/questions/55194822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove portion of text using GetElementsByClassName I'm trying to use the following script to remove ".00" from all prices on a page I'm working on. The ".00" is built in automatically by the WP theme I'm working with. Here's the script I'm using: <script> window.onload = function() { var str = document.getEleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/30263267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do I need to send the data in $.ajax as json? I have an $.ajax request that's sending the data in a serialize() and gets a json array in return. It works perfectly without any issues on Chrome develop's tools and Firefox's firebug. My question is, do I HAVE to send the data(user inputs) as json? I need json for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19128682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Activity crashes when paused I have an activity that keeps crashing onPause. Theres a looped thread that draws on a canvas. And When I paused the application or try to move to another activity it crashes. I have it so it closes out onPause, because I don't want it to post a force close. But I want to be able to go b...
{ "language": "en", "url": "https://stackoverflow.com/questions/5541835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Histogram computational efficiency I am trying to plot a 2 GB matrix using MATLAB hist on a computer with 4 GB RAM. The operation is taking hours. Are there ways to increase the performance of the computation, by pre-sorting the data, pre-determining bin sizes, breaking the data into smaller groups, deleting the raw...
{ "language": "en", "url": "https://stackoverflow.com/questions/9725401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Collapse pandas DataFrame based on daily column value I have a pandas DataFrame with multiple measurements per day (for example hourly measurements, but that is not necessarily the case), but I want to keep only the hour for which a certain column is the daily minimum. My one day in my data frame looks somewhat like...
{ "language": "en", "url": "https://stackoverflow.com/questions/72242097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: flutter web alternates/reduce size of canvaskit.wasm My flutter web initial page load is slow(10-15 secs), Found that large amount of time is spent in downloading "https://unpkg.com/canvaskit-wasm@0.24.0/bin/canvaskit.wasm" which is around 2.5 MB as per browser logs. Is there a way to reduce this time/alternate file...
{ "language": "en", "url": "https://stackoverflow.com/questions/67417810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Python Script Erroring with argparse.ArgumentError I am running a python selenium script but it's getting an error of https://i.stack.imgur.com/oQdvx.png argparse.ArgumentError: argument --screenshot/--save_screenshot/--save-screenshot/--ss: conflicting option string: --screenshot From reading, there seems to be a p...
{ "language": "en", "url": "https://stackoverflow.com/questions/73952253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chrome screen keyboard blocking content at bottom of page on mobile Here, I recorded video about problem. https://www.youtube.com/watch?v=WZbKix3XGTE Problem is when keyboard on screen. The content is behind of keyboard not reachable. If there is input end of page user can't see what is typing in it. I have this is...
{ "language": "en", "url": "https://stackoverflow.com/questions/54619312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MongoDB StitchClient cannot be accessed inside a js function I have already called stClient.login function inside "addUser()" and "loginUser()" and they worked pretty well. I am able to add the user to my MongoDB database and find the user when login clicked. (dont bother with delete one) After finding a logged use...
{ "language": "en", "url": "https://stackoverflow.com/questions/49840692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I cant import the ucf 101 dataset (torchvision), 'list index out of range' error dataset = torchvision.datasets.UCF101(r'my_directory', annotation_path=r'my_directory2', frames_per_clip=16, step_between_clips=1, frame_rate=None, fold=1, train=True, transform=transforms.Compose([transforms.ToTensor()]), _precomputed_...
{ "language": "en", "url": "https://stackoverflow.com/questions/61522539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get devise custom User columns to save? I am reading that the application controller needs to have a before filter: before_filter :configure_permitted_parameters, if: :devise_controller? however, I am receiving this error: undefined method `before_filter' for ApplicationController:Class Did you mean? befor...
{ "language": "en", "url": "https://stackoverflow.com/questions/45602331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why need to decrease clientHeight from windowHeight while calculating scrollPercent? I am trying to show how much a user has scrolled through the page a with progress bar and I have done it. But I have a little confusion here. Here is the code that I found to calculate scrollPercent which works well windowHeight ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61478766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: makefile fails - implicit rule compiles one object file but doesn't compile the rest Makefile isn't using implicit rules correctly. I am following this guide here. Here's my makefile: objects = main.o hello.o hello : $(objects) cc -o hello $(objects) hello.o : defs.h main.o : defs.h hello.h .PHONY : clean clea...
{ "language": "en", "url": "https://stackoverflow.com/questions/52305098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GridControl Navigation In VFP9 I have a grid control ,witch show the records from a database table. And also I have a command button wherewith I want to navigate from a row to another. I tried with thisform.grid1.ActiveRow = thisform.grid1.ActiveRow +1 ,but this doesn't work. Thanks in advance. A: Per the VFP docu...
{ "language": "en", "url": "https://stackoverflow.com/questions/10716356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will JS be aligned with the ECMAScript specs regarding the "typeof null"? In the ECMAScript specs, it is clearly stated that Null is a type whose one and only value is null: 4.3.12 null value primitive value that represents the intentional absence of any object value 4.3.13 Null type type whose sole value is the nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/52348021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What's the result of an integer list plus an integer in C? I should post the complete code. int f(int x, int *y) { static int a =0; int b =0; while(b<x) { a =a +y[b]; b =b +1; } return a; } int main(int argc, char **argv){ int z[5] ={1,2,3,4,5}; int r1, r2; r1 =f(3, z); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47398165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: How to apply alternating background color to divs which are not siblings I'd like aaaa and bbbb to have red background. How can I do this , the usual answers dont seem to work since the target divs are not siblings Here is my CSS/HTML: div.rules-container>div.ng-star-inserted>div.rules-form:nth-of-type(odd) { ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/62926683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Give every question in a Google-Form an unique id I want to make a Google Form using Google Apps Scripts. The questions in the form comes from a Google Sheet which includes the id and text of a question. When the form is submitted and I export the questions to a sheet the column names are the questions as text. I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/70250360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Oracle PL/SQL set column names using other table I'm struggling with naming columns in one table, using a reference table containing these names. I'm sure it should be possible, but I can't seem to find the right solution or think of the correct logic to achieve it... Situation: I got 2 tables, one with data, column...
{ "language": "en", "url": "https://stackoverflow.com/questions/37394417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server query to Postgres Please help me to convert this SQL Server Query to a Postgres query. I am using Postgresql 9.3.I am not able to get the desired output in postgres If object_ID(N'tempdb.dbo.#tmp') is not NULL Drop table #tmp; create table #tmp ( variable_int_col int, timestamp_int_col int, value_col...
{ "language": "en", "url": "https://stackoverflow.com/questions/34155216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get confusion matrix and ROC curve when using flow_from_directory? I've trained a model using: train_datagen = ImageDataGenerator(rescale = 1/255, zoom_range=0.3, shear_range=0.3, horizonta...
{ "language": "en", "url": "https://stackoverflow.com/questions/69239296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make the calendar using the TimeGridWeek view show me only the name of the day I am making a generic weekly calendar so i want to only show the name of the day no the number but a i didn't find how to do it. I am using fullcalendar v6 https://fullcalendar.io/ How it look How it should be
{ "language": "en", "url": "https://stackoverflow.com/questions/74904923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: element onChange javascript not working <select name='cmg_select' onChange="javascript:window.location.href='index.php?'+this.value"> <option value='pening'> pening </option> <option value='complete'> complete </option> <option value='pening'> pening </option> </select> The concatenation is not working...
{ "language": "en", "url": "https://stackoverflow.com/questions/3173979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I click on a drop down menu that is hidden using Selenium? I'm trying to click on a drop down menu, but since it is hidden, I'm getting the error: could not be scrolled into view I've done some digging and I see that using some JavaScript could help, but I'm not sure how to implement that into my Python scri...
{ "language": "en", "url": "https://stackoverflow.com/questions/65034645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Display a Popup Goal: When you rightclick one of the row in the table, a popup with links should display, close to the row and cursor. A similiar concept is gmail's functionality. Problem: I cannot find a demo version in order to use it. Information: I'm using Bootstrap and jQuery..
{ "language": "en", "url": "https://stackoverflow.com/questions/30075326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the best practice to use Oauth2, React, Node.js and Passport.js to authenticate user with Google sign on button? I want to have a login button in my website so when a user clicks on it, the user can use their Google credentials. I'd like to ideally perform the authentication server side using Express.js and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55079181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Set VisualState of combobox when a item is selected in Xaml (Silverlight) When my combobox expands and I select an item, I want the combobox to change visual state(it is highlighted). This will signify something is selected. I tried various VisualStates but none of them would trigger in this scenario. How can I achi...
{ "language": "en", "url": "https://stackoverflow.com/questions/20861723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP array_key_exists and is not empty Following on from a previous question, I am now using the following function to check if a key exists in a multi-dimensional array... function array_key_exists_r($needle, $haystack) { $result = array_key_exists($needle, $haystack); if ($result) return...
{ "language": "en", "url": "https://stackoverflow.com/questions/44835740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple Uploads Rails Paperclip not Saving I have a rails model 'Guitar' and a rails model 'Photo.' I wanted to be able to attach multiple photos so I watched the railscasts for Paperclip, read the docs, etc. I've used Paperclip in the past to attach a single photo, but I wanted to do multiples this time. I don't h...
{ "language": "en", "url": "https://stackoverflow.com/questions/19335698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android service fails after onRebind() with a DeadObjectException I am having a problem with my Android service and client apps who rebind to it. Everything works fine when a client app initially binds to my service, after which messages can be sent from service to client. However, if the client app is killed and th...
{ "language": "en", "url": "https://stackoverflow.com/questions/12149610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: postman only showing "This field is required" to ManyToMany field in django I have 2 models - Module and Room. A module can have zero or multiple rooms and a room can be added into multiple modules. So, there is a simple many-to-many relationship between them. When I use post request, raw-data works, but not form-da...
{ "language": "en", "url": "https://stackoverflow.com/questions/69490752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Chrome Devs tools - where's size and content? According to Chrome Dev Tools - "Size" vs "Content", I should be able to see Size (bytes on the wire) and Content (uncompressed size). I remember seeing this at one time. But now (Chrome 38), I only see one measurement, and I'm not sure which one it is. Can I see the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/26445154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: format of returned result for .objects.filter(name__containe=data) without quotes sign I have written a code by django in which a user can search for a word in a table of database. My problem here is when I print the returned results, they contain quotations. How can I omit them? def My_data_filed(request): form...
{ "language": "en", "url": "https://stackoverflow.com/questions/62450363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I'm trying to set up a new SharePoint production server and getting an error creating an Open XML 2.5 document I have a SharePoint application written in Visual Basic that works fine and creates Word Documents using Open XML 2.5 on my development machine. We recently set up a new Production server and I published th...
{ "language": "en", "url": "https://stackoverflow.com/questions/74753676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reporting Services: How To Fit PDF Export On One Page? I've built a report in Reporting Services and when we browse to the report in Internet Explorer we want to be able to export the report in PDF format. It works, but it was cutting off the columns to the right and displaying them on the next page (in PDF) becaus...
{ "language": "en", "url": "https://stackoverflow.com/questions/31857206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Because the plugin below does not work when used in the response of a getJSON (function ($) { $.fn.reverse = function(fn) { var i = this.length; while(i--) { fn.call(this[i], i, this[i]) } }; }(jQuery)); Below the use of jquery code with alphabetical data $.fn....
{ "language": "en", "url": "https://stackoverflow.com/questions/50141001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove layers and objects in FabricJS My question is, how to remove object and layer in same time using fabricJS delete function? Here is my jQuery for deleting objects: $('#remove').on('click', function () { deleteObjects(); $(".deleteBtn").remove(); }); Here is my FabricJS example with layer control https...
{ "language": "en", "url": "https://stackoverflow.com/questions/40787234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Refresh UltraCombo Content I have to do some maintenance on an old VB.NET application (Visual Studio 2003) that uses Infragistics NetAdvantage 2006. I have a UltraCombo control binded to a DataView. How can I refresh the content displayed after a change in the database? A: It sounds like you'll need to repopulate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/986969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ-to-SQL not submitting changes to local database I have a local, SQL Server Compact database in an application I am creating. I generated a .dbml file I can use for LINQ-to-SQL purposes using the SqlMetal.exe tool, which worked fine - I now have the table objects for use in my application. I have a strange issue...
{ "language": "en", "url": "https://stackoverflow.com/questions/7490233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Not getting Form value, in java I have a form and bean. From bean I am retreiving values and setting in DTO. That is also setting in FORM. But getter property value is null. I don't know what is the problem here. Can anybody suggest on this? import java.sql.Timestamp; import java.text.SimpleDateFormat; import java...
{ "language": "en", "url": "https://stackoverflow.com/questions/8321724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unexpected result at summing numbers using a while loops in console application I am trying to make a program to sum numbers until the user enter OK. The program make the sum, but return a bad result. i'm not sure where is my error... int sum = 0; Console.WriteLine("Enter number:"); int num = Convert.ToInt32(Console...
{ "language": "en", "url": "https://stackoverflow.com/questions/51087626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to capture Android Screen multiple times simultaneously? Is it possible to capture Android screen multiple times with different settings on Android 13? I've tried two approaches: * *Create two media projections using the same Activity.RESULT_OK and intent *Create one media projection and two virtua...
{ "language": "en", "url": "https://stackoverflow.com/questions/75512848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git : Unable to unlink / cannot create directory, on ignored folder I'm using SourceTree, and when I try to checkout from one branch to another, I've got the following error message : warning: unable to unlink sf2/web/bundles/mybundle: Permission denied fatal: cannot create directory at 'sf2/web/bundles/mybundle': P...
{ "language": "en", "url": "https://stackoverflow.com/questions/18760097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to create maven project with maven-archetype-webapp When I tried to create a Maven project with maven-archetype-webapp, some problems came out. An internal error occurred during: "Creating maven-archetype-webapp". org/apache/maven/shared/filtering/MavenFilteringException An internal error occurred during: "U...
{ "language": "en", "url": "https://stackoverflow.com/questions/27273758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: "Invalid host in redirect target" using ACME on pfsense I've set up pfsense to manage my network, and I have the ACME plug in installed. I'm to correctly direct traffic to my secure webservers, but first I need to get the certificates onto PFSense. At the moment, my certificates are using certbot on the webservers, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62839208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php createimage does not output an image to browser can you help? Using XAMPP I have localhost/drawrectangle.php containing the following code which does not render an image, ll I get is an image placeholder, can you help? <?php // Create a 200 x 200 image $canvas = imagecreatetruecolor(200, 200); // Allocate colo...
{ "language": "en", "url": "https://stackoverflow.com/questions/25515196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# Dates - Databases, Display and Localization What are some Date (& Time) format best practices when wanting to adhere to localization in a new application. For example, what format do you use to write dates to the database. How do you display the following to the user using their own locale settings once the date...
{ "language": "en", "url": "https://stackoverflow.com/questions/437981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Nginx + Django + Gunicorn: 502 Bad Gateway upstream prematurely closed connection while reading response header from upstream I am creating (for the first time) a website. More specifically, the user uploads an image and after some computations the website displays some result. However, sometimes (not always, somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/51337772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Optimising the query which has joins and unions in mysql I am using the laravel to build my web app. In that for listing all orders I have an query but it takes upto 40s in my localhost whereas in goddady shared hosting it takes upto 95s. Although I implemented the server side datatable yet the query takes bit long ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67475285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How do I place a Google recaptcha in my website successfully? I am having real trouble putting a Google recaptcha into my website. There seems to be no easy to follow tutorial. I am brand new to JavaScript, but am building a website which receives a huge amount of spam from the contact form. I'd like a Google recapt...
{ "language": "en", "url": "https://stackoverflow.com/questions/62148815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CanvasJS, issues with setting a user input Title for chart I am currently facing an issue with creating a user input title for a canvasJS chart. I am currently running through the tutorial over at canvasJS, and I thought it would make a neat small project to create a user input oriented pie chart. The current issue ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43644484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java: Creating New Strings During Runtime to Edit I'm creating a Mad Lib generator in Java. If you know what a Mad Lib is, this will be easier to understand. Also, I'm new to Java, so bear with me here. I want to make it so that each Mad Lib only asks for the number of adjectives, nouns, etc. that are in that specif...
{ "language": "en", "url": "https://stackoverflow.com/questions/18681151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }