text
stringlengths
15
59.8k
meta
dict
Q: Golang SQL Query Syntax Getting syntax erro with sql query in golang code. Required proper syntax for this SQL query in golang: rows, errQuery := dbCon.Query("SELECT B.LatestDate ,A.SVRName AS ServerName ,A.DRIVE ,A.TotalSpace_GB AS TotalSpaceGB ,(ISNULL(A.TotalSpace_GB, 0) - ISNULL(A.FreeSpace_GB, 0)) AS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43853506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: Presto - How to Transform the Second Appearance in an Array Input: Array['a', 'b', 'a'] Expected output: Array['a', 'b', 'a*2'] I've tried this following code, but I couldn't figure out how to represent the current x's index. select transform(array['a', 'b', 'a'], x -> cast(ARRAY_POSITION(array['a', 'b', 'a'], x) as...
{ "language": "en", "url": "https://stackoverflow.com/questions/73707674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copy the two most recent files to new dir I would like to write a VBScript or .bat file to move the two most recent files of a specific extension *.sch in directory a to a different directory. I have experimented with $newest How do I find second newest? Thanks A: In VBScript you could do it like this: src = "C:\...
{ "language": "en", "url": "https://stackoverflow.com/questions/18065976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When should the label element be used? I was learning some HTML and I got confused about use of the label element because I found it in many places, with inputs in a form, with optgroup tag for the sections in a select element, before the textarea elelemt, etc. So, is there a rule when to use it and when to avoid us...
{ "language": "en", "url": "https://stackoverflow.com/questions/19067703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Windows Phone 7.1, Silverlight NUnit Project -template and Moq: TypeLoadException it's time to do some unit testing with MVVM Light ViewModels. Setup: * *Visual Studio 2010 SP 1 *Windows Phone 7.1 SDK Release Candidate *Silverlight NUnit Project -template *Moq (4.0.10827 Final) Steps: * *Create a new Mvvm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7315955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: iOS 16.1 breaks UITextView tokenizer for words and sentences? The built-in UITextView tokenizer function rangeEnclosingPosition(_:with:inDirection:) seems to have broken in iOS 16.1 for the word and sentence granularity. * *word doesn't seem to ever return a range *sentence only works for the very last sentence i...
{ "language": "en", "url": "https://stackoverflow.com/questions/74281213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to watch window scope variable from angular controller properly I am aware that I can wrap out of scope variable in functions to somewhat achieve this $scope.$watch( function () { return $window.mArray }, function(){ // code } ); But this doesn't get triggered unless something else triggers the digest ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33516983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSF 2.0 URL parameter needed on larger scope I have found a few good replies to similar content so far, but never something that solves my issue. I am trying to accomplish this in the best manner possible. Within my application (JSF 2.0 running on Glasshfish), I have a list of events (let's call this the EventPage)...
{ "language": "en", "url": "https://stackoverflow.com/questions/8933197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Instantiating with a Pool class via PoolObjectFactory interface Here is an example of using Java Pool (pool of generics) in order to instantiate TouchEvents for Android: import java.util.ArrayList; import java.util.List; public class Pool<T> { public interface PoolObjectFactory<T> { public T createObjec...
{ "language": "en", "url": "https://stackoverflow.com/questions/27803465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SMTP send mail is not working for office365 Here is a peculiar problem. The intention is to send a mail via SMTP for office365. I have been able to consistently send mail from my local laptop. But when deployed on our server (behind a firewall), it does not succeed. Note: The port 587 for smtp.office365.com is acce...
{ "language": "en", "url": "https://stackoverflow.com/questions/56802175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Why does a:hover get overriden in CSS? If I have this CSS: a:link { color: blue; } a:hover { color: red; } #someID a:link { color: black; } Links under the ID always appears in black on hover. I'm aware that using an ID gives a higher priority, however, I'm not overriding the :hover selector, only the :link selecto...
{ "language": "en", "url": "https://stackoverflow.com/questions/718226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Curl FTPS upload with username:password syntax So the curl man pages say to do this for an upload: curl --upload-file "{file1,file2}" http://www.example.com or curl -T "img[1-1000].png" ftp://ftp.example.com/upload/ I know how to establish a connection...here's my command which works. curl -k --user myusername:...
{ "language": "en", "url": "https://stackoverflow.com/questions/62333910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Would I be able to run Java programs without having the entire kit downloaded? I have recently started coding in Java. I was wondering, is it mandatory to have the entire Java kit to run the computer from a different computer? Because, I am not using the resources from the entire API, just a few particular ones. I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/23838326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should extending a es2015 class copy the properties on the constructor? Apologies if this seems poorly researched, but I'm having trouble finding any mention of this behavior: class ClassA {...} ClassA.property = 123; ​ class ClassB extends ClassA {...} ​ ClassB.property //undefined Is there a preferred/idiomatic w...
{ "language": "en", "url": "https://stackoverflow.com/questions/36993129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: arrange() not working when dealing with letters and numbers I've seen many posts related to arrange() issues, but none of them solved my situation, hopefully, this is not a duplicate. I have some columns named "Q1", "Q2", "Q3" and so on. After calculating some basic descriptive stats with rstatix::get_summary_stats(...
{ "language": "en", "url": "https://stackoverflow.com/questions/74933605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make input field and an image come in same line? I am trying to make this input field come in the same line as the image please help here is the output and the code <img class="comment-profile-pic" src="https://drgsearch.com/wp-content/uploads/2020/01/no-photo.png" alt=""> <input type="text" class="post-com...
{ "language": "en", "url": "https://stackoverflow.com/questions/68713971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bash loop, print current iteration? Say you have a simple loop while read line do printf "${line#*//}\n" done < text.txt Is there an elegant way of printing the current iteration with the output? Something like 0 The 1 quick 2 brown 3 fox I am hoping to avoid setting a variable and incrementing it on each loop....
{ "language": "en", "url": "https://stackoverflow.com/questions/10942825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Kubernetes Ingress Nginx Controller is Not Found Ingress Nginx controller is returning 404 Not Found for the React application. I narrowed it down to the React app because if I try to hit posts.com/posts, it actually returns the JSON list of existing posts, but for the frontend app it keeps showing GET http://posts....
{ "language": "en", "url": "https://stackoverflow.com/questions/66772611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to connect to micro service through ZUUL api gateway in docker I've following services and working fine when they are deployed in localhost (through eclipse). But unable to invoke the rest service when deployed as separate docker containers. I'm new docker and attended the tutorials to have knowledge on how t...
{ "language": "en", "url": "https://stackoverflow.com/questions/64412122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GEE do not import data into array I am having problems importing data from Google Earth Engine to a local array using Python API. A simplified version of my code: import ee ee.Initialize() #Load a collection TERRA = ee.ImageCollection("MODIS/006/MOD09A1").select(['sur_refl_b02', 'sur_refl_b07',"StateQA"]) TERRA = T...
{ "language": "en", "url": "https://stackoverflow.com/questions/60580995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Samba Share Over OpenVPN, Split Tunneling? I would like my PC to connect to a server running OpenVPN + Samba + file management software. How would I setup so that the PC only connects to the server without tunneling all the internet traffic to the VPN? I would like to keep the Samba Share connection encrypted. A: Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/15078250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: memcached dead but subsys locked service memcached restart yields: stopping memcached: [failed] starting memcached: [ ok ] service memcached status yields: memcached dead but subsys locked ls inside /var/lock/subsys/ shows a file named memcached ls inside /var/run/ shows no pid file named memcached there...
{ "language": "en", "url": "https://stackoverflow.com/questions/22207420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Replace Space (%20) with dashes in url using .htacess I am facing an issue in url re-writing in .htaccess. My url data coming from Database which include some spaces as well. I want to omit spaces from my url's and want to replace it with dashes. currently what i am getting with my current .htacess .. http://www.xyz...
{ "language": "en", "url": "https://stackoverflow.com/questions/16132767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is the difference between GNU,GCC and MinGW.. arent they same? I was informed that Gcc is the not only the compiler for c but also for many languages is it true? if it is then how it is done A: GNU is not a compiler. It is an Operating System and a collection of free software made to be "Unix like" without us...
{ "language": "en", "url": "https://stackoverflow.com/questions/38252370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Data distribute in large cluster with many indices (Elasticsearch) I have a cluster with 30 nodes and a lot of indices with small number of primary shards . Let's say 800 indices . most indices only have 1 or 2 primary shards. I want to know how elasticsearch cluster distribute data across the cluster such a lot o...
{ "language": "en", "url": "https://stackoverflow.com/questions/45891616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get documents using find() method in couchdb-nano Since CouchDB doesn't have any collections, I added a custom typeproperty to my entitys. Now I want to filter all entitys on that property, e.g. get all users by {type:'user'}. In the couchdb-doc I found a method called 'find()', which is also implemented in the nano...
{ "language": "en", "url": "https://stackoverflow.com/questions/49917323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to show results of data augmentation before and after keras.preprocessing.image.ImageDataGenerator i am currently training a CNN with the ASL dataset https://www.kaggle.com/datamunge/sign-language-mnist. To optimize my accuracy I used the ImageDataGenerator from Keras. I wanted to print out the results of the D...
{ "language": "en", "url": "https://stackoverflow.com/questions/62217528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct Way for Threads in Java I am beginning to learn threads in Java and I am a bit confused now. I hope this is the right place to ask. I made a little program for testing: public class GetInfo implements Runnable { //private static boolean stopPointerInfo = false; private static Thread tn; p...
{ "language": "en", "url": "https://stackoverflow.com/questions/32695472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I filter instances of a model in django, with a queryset value of filter field? I am creating an application in django, and I have the next question: I want to filet objects of modelA, by the field att1, and I have a queryset of values of the field att1. I mean, my models are: class modelA(models.Model): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30952364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: window.location.reload(); is losing viewstate in IE8 On Click of a button, I need to make sure window control changes to new new element(tab). Therefore, I am using something like this in html: <input id="back" type="button" value="Back to Form" onclick="backTo();"> and the corresponding JS code is:- function backT...
{ "language": "en", "url": "https://stackoverflow.com/questions/9274920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: git commit fix to project owner I forked binux/pyspider and made some change.Today I found a bug and want to commit a fix to the owner. I have 4 commit for now, the last commit contain two files(one file to fix bug, one file my edit). And I found the most easy understanding way by John Naegle. But I got error here:...
{ "language": "en", "url": "https://stackoverflow.com/questions/32085489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: OpenMP reduction into array of C++ template-specified size causes undefined behaviour I'm new to OpenMP, but am trying to use it to accelerate some operations on entries of a 2D array with a large number of rows and a small number of columns. At the same time, I am using a reduction to calculate the sum of all the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/49986327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: getting an extra 0.001 in my calculation When i enter 0.2 as the volume i should get 2260.00 but im getting 2260.001 and i cant understand why. Even after adjusting how many decimals i want there is always 0.1 at the end... #include <stdio.h> #include <stdlib.h> int main(void) { int option; float volume; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40266333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing Mysql Column Names I want to change various column names using: ALTER TABLE tablename CHANGE COLUMN oldname newname datatype(length); This is easy except for the last part: datatype(length). It seems silly to need to specify that since I don't want to change the column type or length, only its name, but fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/24683533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is calling not thread-safe method properly possible? I need to parallelize this code in C#. listTipoGraficos is a ListView object (I'm locking its access) but the method this.claseChartPadre.CargarGrafico is not thread-safe. It only modifies the input graficos[i] but it has very much local variables, so modify it is...
{ "language": "en", "url": "https://stackoverflow.com/questions/34331030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the exit code within a __del__ function I'd like to do a clean shutdown of a class that does one task when exiting normally, and not under something like exit(1). How can I determine the current exit code. Example: import sys import atexit def myexit(): print("atexit") atexit.register(myexit) class T...
{ "language": "en", "url": "https://stackoverflow.com/questions/52318117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add column values from one Data Frame to the other column in second Data Frame based on conditions in Python? df1 = pd.DataFrame(zip(l1), columns =['l1']) df1.l2.value_counts() df2 = pd.DataFrame(zip(l2), columns =['l2']) df2.l2.value_counts() I want to add the column values from l2 to l1 depending on the...
{ "language": "en", "url": "https://stackoverflow.com/questions/68087669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate criteria of Projection I have 2 classes with a relation @OneToOne: User and Player. User contain a player: @Entity @Table(name = "user") public class User { @Column(name = "nickname") private String nickname; @OneToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL) @JoinColumn(name = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30096486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apostrophe replacement in mysql query I have in a column names(notes) as Notes: John's Table Smith's Window Column contains an apostrophe in it. I am trying to run 2 queries. * *Select query to get the column entries that have apostrophe. *Update those with apostrophe with empty string ie.John's Table replace...
{ "language": "en", "url": "https://stackoverflow.com/questions/7895748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to change elements in a navbar in html I made a navigation bar in HTML and trying that the elements of the navigation bar are on the right site. However, the elements are on the right side but in the wrong direction. The direction of the elements is, Kontakt, Über uns, Klimawandel and Home. The direction I will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74799148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AngularJS - Disable ng-click if element has specific class I have a list of li items with functions attached to them. I also have an event listener which attaches a class of "current" to whichever li item is being clicked. HTML <ul class="cf" id="filter"> <li ng-click="getRadius(5)" class="current"><a href="#">5 k...
{ "language": "en", "url": "https://stackoverflow.com/questions/31744817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: bash shell append to variable frustration So I have a relatively simple bash script: #!/bin/bash declare ALL=""; while IFS="" read -r line || [ -n "$line" ] do if [[ $line == 'ENV ms'* ]]; then words=( $line ) if [[ ${#ALL} > 0 ]]; then ALL="$ALL;${words[1]}=${words[2]}" else ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58721263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i change Mysql character_set_system UTF8 to utf8bin When i dump mysql data out , some data has changed because of the character_set_system which is UTF8.Server , client and connection character sete are utf8mb4. I guess the problem is system character set and server character set differences. I am trying to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69735429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Never ending while() loop I need to add a while loop for my script. It's a while $points < 17 ( draw_cards) Maybe you can guess, it's a cards game. I wish it was as simple as that because it won't work. It gets stuck in an endless while loop. if(FORM_stand("Stand")){ while ($total_dealer < 17){ list_dealer_h...
{ "language": "en", "url": "https://stackoverflow.com/questions/21625443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why did the folder not clone too So I have Visual Studio 2019 and Azure Devops as my repository. I went to VS to clone the repo. Everything came with it except one folder. It was an authorization filter folder to filter authorization of a policy based authorization. Why did that not get cloned? A: Visual Studio is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61550296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I match zero or more brackets in python regex I want a python regex to capture either a bracket or an empty string. Trying the usual approach is not working. I need to escape something somewhere but I've tried everything I know. one = "this is the first string [with brackets]" two = "this is the second string...
{ "language": "en", "url": "https://stackoverflow.com/questions/23554088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Not transfer/received voice (Twilio VOIP) after cellular call ended iOS If I am on a Twilio video call (VOIP) and at the same time I received a cellular call on my device, I accept the call, speak with the person and end the call, I resume on Twilio video call everything is working apart from my voice is not getting...
{ "language": "en", "url": "https://stackoverflow.com/questions/45096559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find out what caused a power mode change VB.NET has an event that fires when a computer's power mode is changed (SystemEvents.PowerModeChanged). I need my program to find out what caused the power mode change, specifically, if there was a power button pressed, or some other reason. How can I program this in V...
{ "language": "en", "url": "https://stackoverflow.com/questions/30903922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android: Result of TextView.setText() overridden by fragment I'm a bit new to using fragments, and am having an issue with setting the text of a TextView within a fragment. Right now, I have a single Activity with a common set of six buttons, along with two fragments which are displayed in a LinearLayout. I am able ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24553926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing Angular form data I'm attempting to pass the data of an angular form to external service, however, the base form is returning a null object and prevents any further processing. Haven't been able to identify the issue. I was able to accomplish an insert form almost identical to this. Thanks in advance for any...
{ "language": "en", "url": "https://stackoverflow.com/questions/63515967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Operational Transformation in Meteor.js? Does Meteor.js support Operational Transformation yet? I'm working on a project which is some what related to Etherpad for which I thought of using Meteor.js(which I think is very much suited for this kind of project). Operational transformation is very important for my proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/11594043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: JSON object with multiple arrays At the moment I have multiple arrays inside an object containing different pieces of data. The issue is that the JSON is invalid and I am not sure who to correct it. Here is my current code: { "cars": { [{ "model": 'test' }], [{ "mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/53037764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I declare "Member Fields" in Java? This question probably reveals my total lack of knowledge in Java. But let me first show you what I thought was the correct way to declare a "member field": public class NoteEdit extends Activity { private Object mTitleText; private Object mBodyText; I'm following a google...
{ "language": "en", "url": "https://stackoverflow.com/questions/2806045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: There is no "used in actions" in Media-type I 'm usiing zabbix 3.4 I want to know how to link Action with media-type. I tried all ways i knew but it was useless. Below is the steps i did. 1. Create a media-type 2. Create a user for newly created media-type. 3. Create Action. 3.1 Add Operations on the acknowledgement...
{ "language": "en", "url": "https://stackoverflow.com/questions/52921069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Powershell Silent Install Exe w/o GUI I am trying to write a silent installation in Powershell that installs an exe using the following command: $pathargs = {$exePath /s /v /qn} Invoke-Command -ScriptBlock $pathargs When I run this however, I'm prompted with this gui: Does anyone know how to avoid having this page...
{ "language": "en", "url": "https://stackoverflow.com/questions/42491611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create multiple rects for one data row using join I have the following data structure: { {date: <dd-mm-yyyy>, uname: frank, x: 3, nr: 45},{ date: <dd-mm-yyyy>, uname: john, x: 4, nr: 40}, ... } I'd like to create a rect for every integer that constitutes nr. So in Frank's case: 45 rects. In John's case 40. Currentl...
{ "language": "en", "url": "https://stackoverflow.com/questions/74747792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Redux - Manage dependencies between reducers I want to know how to manage dependencies between reducers. Let's say you fire some action, and there are two reducers "listening" to this action, but you want one of them to run before the other one does. Example: You have reducer of ingredients and reducer of meal...
{ "language": "en", "url": "https://stackoverflow.com/questions/39379539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to test some conditions by code then validate or invalidate and show error message? I want to test if customer name is unique in database. if customer name added before then send validation error message. In the past we test this add new error to ModelState like this: ModelState.AddModelError("Name", "Some messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/59030664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Locate wp-config.php file after Word Press Click To Deploy on Google Compute Engine For Migration I have created a virtual machine on Google Cloud Platform that is running Wordpress, which was setup using Wordpress click-to-deploy: https://console.cloud.google.com/marketplace/details/click-to-deploy-images/wordpress...
{ "language": "en", "url": "https://stackoverflow.com/questions/54162599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Insert/update to sql_ascii encoding postgreSQL Here is a postgreSQL with server encoding SQL_ASCII. When I get data, I must use function convert_to(column1, 'SQL_ASCII') in select, and then use new String(value1, 'GBK') in java to get the right value. But, when I send data by insert/update, the value in DB always er...
{ "language": "en", "url": "https://stackoverflow.com/questions/49713964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Angular2/Ionic2 circular dependent modules because of navigation between pages I was refactoring my project to match the Angular2 styleguide at https://angular.io/guide/styleguide At first I had one module so there was no problem. Now while refactoring and with splitting into modules I got circular dependencies beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/44912488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does the efficiency compare in these two SQL statements? I'm updating a stored function that fetches a few columns from a table and does some other operations on it before returning it. Depending on an argument passed to the function, one value might be a special, hard-coded string, but 99% of the time, it's jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/74380342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove old marker add new one after call ajax method every x second with OpenLayers I want to change marker position for every x seconds using ajax method but i am facing 1 issue for that is the new marker is adding on OpenLayers but old marker is not removing from OpenLayers. I want to remove old marker first and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/51096648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get parent directory in Ansible? Is there a way to evaluate a relative path in Ansible? tasks: - name: Run docker containers include: tasks/dockerup.yml src_code='..' Essentially I am interested in passing the source code path to my task. It happens that the source code is the parent path of {{ansible_invento...
{ "language": "en", "url": "https://stackoverflow.com/questions/35271368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: How to wrap 2 divs into another on on the fly? I have 2 divs that I am creating from an array: $.each(data, function(i,item) { $('<img/>').attr("src", item.media_path).wrap('<div class="friend_pic' + item.id + '"></div>').appendTo('.sex'); $('<div class="friends-name' + item.id + '" id="fname...
{ "language": "en", "url": "https://stackoverflow.com/questions/5545842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: explain analyze - cost to actual time relation Usual when improving my queries I see a coinciding improvement with both cost and actual time when running an explain analyze on both before and after queries. However, in one case, the before query reports "Hash Join (cost=134.06..1333.57 rows=231 width=70) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56387883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: I can't connect MySQL DB in symfony 1.0 I use symfony1.0.22. on localhost,on MAMP. studying with askeet ,I can't move... I can't connect mySQL DB… it say "no such file or directry". I can't understand WHAT IT SAYING! log is below.Please tell me what I can do… > symfony propel-insert-sql > >> schema conve...
{ "language": "en", "url": "https://stackoverflow.com/questions/9554490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jedi-vim return to old position after jump with goto assignments/definitions I'm using vim with jedi/jedi-vim when I develop python code and I use extensively <Leader>d (goto definitions) and/or <Leader>g (goto assignments). I can use '' to return to the line before the jump, but only within the same file. Is there ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38362597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Reflecting texture register from a HLSL shader by name I know how to reflect constant buffers, but how do I reflect textures? Here's my shader: cbuffer buffer : register(b0) { column_major matrix viewProjectionMatrix; column_major matrix modelMatrix; float4 texScaleOffset; float4 tint; } struct VS_I...
{ "language": "en", "url": "https://stackoverflow.com/questions/17772130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Foundation Section (Tabs) not reflowing properly I have two Tab Sections on my site that are being added after page load. I am "reflowing" them through backbone.js like this: this.$el.foundation('section', 'reflow'); One of them shows up as expected. The HTML generated is: <div class="section-container auto" data-s...
{ "language": "en", "url": "https://stackoverflow.com/questions/19406039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UI-select Focus remains I am using ui-select (Version: 0.8.3, angularjs) library in order to display a drop down list. I have a situation when i click on a text area there is JavaScript that changes the height of the div to a larger height so it can be scrolled up. the problem is that when it occures the dropdown re...
{ "language": "en", "url": "https://stackoverflow.com/questions/28208858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: All parts of array becomming the same I am creating a program that will ad a number to an array that is equal to 1 over the number of the past array. The wanted output is: [[13],[12],[11],[10]] but the output from this program is[[13],[13],[13],[13]] do you know how I can fix the code to show the wanted output? Prog...
{ "language": "en", "url": "https://stackoverflow.com/questions/61942269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: playing slow motion, fast forward , rewind in a video player in flash video player We want to build a flash video player to play FLV videos. In addition to basic video controls, client also wants below features for that video player * *Slow Motion *Fast Forward *Rewind We are using ffmpeg to convert videos (f...
{ "language": "en", "url": "https://stackoverflow.com/questions/6261681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find which row has the biggest sum in 2D array? I have 2D array, I need to write a function to find which row has the biggest sum, and if there is more than one row with the same sum, I need to print no particular max. This is what I wrote so far: int find_max_sum(int b[N][N]) { int row_sum = 0; int r...
{ "language": "en", "url": "https://stackoverflow.com/questions/37780332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I recover a Subversion repository from a git-svn copy? I am pretty sure I have tried everything, figured I would ask all the gurus on here. Background: I had an SVN repository on an old linux box. I accessed this SVN repo with git-svn. The system's hard drive crashed and the SVN repo was lost. Question: Sin...
{ "language": "en", "url": "https://stackoverflow.com/questions/3782112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Compress a folder to .zip on scala Please help me as much as possible to compress the entire folder with the contents in .zip or .gz on scala? example Path: C:\Users\Documents\temp (temp folder with contents) after the path: C:\Users\Documents\temp.zip(.gz) or Path: C:\Users\Documents\temp\temp.zip(.gz) A: I've imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/68271745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to enable or disable a task in build pipeline using powershell script I am using this code to update the build pipeline task by updating the json by this line $TaskDetail.enabled = "false" and posting the updated json: $BuildName = "Test-demo" $buildTaskName = 'Print Hello World' $BuildDefinitions = Invoke-Web...
{ "language": "en", "url": "https://stackoverflow.com/questions/72782560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error: Could not connect to logcat in Android player xamarin visual studio 2015 I am using Xamarin trial version and visual studio 2015 community version for trial at my end. I started with a blank android application. It was running fine before. but next day when i try to run it. Emulator is not runnig. It is sayin...
{ "language": "en", "url": "https://stackoverflow.com/questions/35601207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python 2.7 + flask-sqlalchemy, flask marshmallow + DB relations throws error foreignkeyconstraint and primary join I have existing DB dataset that has these tables already: owners table that has ownerid as primary_key another table owndnis whose primary_key is the same ownerid one other table whose primary_key is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/56129675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to put a right amount of characters in one mobile page(page and font sizes will change on different mobiles) This question that I'm going to ask is hard to express, so please correct me if you think my expression doesn't reflect what I want to ask, thanks in advance. I am working on a eBook mobile app. Things I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20870031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to center oversize font inside Text's bounding box? I'm trying to create a simple Floating Action Bar button with a plus icon in it, and have had trouble true-centering the "plus" in some edge cases. I was just using '\uFF0B' in a <Text>, but tried to switch to react-native-vector-icons, only to discover that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/55368190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to redirect to previous page? or How to get title from ForeignKey? PART 1 I have some problems with redirecting on same page after click. or example i was at /memes and after click i am at page /add_to_cart OR PART 2 I have another solution for my problem PART 1 in view i have def add_to_cart(request, **kwargs)...
{ "language": "en", "url": "https://stackoverflow.com/questions/56091991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should my equals/hashCode method examine more than the object IDs? In my application, I have model classes of the following form: class Book { private int ID; private String title; //other code } Now my question is two part: * *Is the following a good implementation of the equals() method? public bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7132649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Refresh window.rootViewController.view contents I am building an app in which I use MBProgressHUD library as an activity indicator. I attach the HUD to self.view.window.rootViewController.view . Everything works fine but when I rotate the device, the HUD (UIActivityIndicator) is overlapped by the other screen items ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25180124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dll for face recognition I started creating a face recognition application. But nothing works fine. Is any dll available for this so that I can decode the source and implement it ? Any reference or source will be greatly appreciated. A: You can try with OpenCV. And this list may help you.
{ "language": "en", "url": "https://stackoverflow.com/questions/24423120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Returning Specific Columns from Entitey Framework Query While Utilizing MVC I’m new to using both Entity Framework and MVC, but not new to programming. I am working with a large table and I want to return selected columns of the query back to the view and list them. The basic query is as follows: public class Empl...
{ "language": "en", "url": "https://stackoverflow.com/questions/42956643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Multiple login in Shiro shiro multiple login I have a web app which have 2 parts: front part and backend part. Both part need a login page for users. Members need to use /signin to login front part. Admins need to use /admin/signin to login backend part. public ShiroFilterFactoryBean shiroFilter(WebSecurityManag...
{ "language": "en", "url": "https://stackoverflow.com/questions/31821277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mapping between Childs' List in Same Class The question looks easy but I am really can't get the trick same time I don't want to go through a work around.I have this XML file <Master> <Parent1> <child1/> <child1/> <child1/> </Parent1> <Parent2> <child2/> <child2/> <child2/> </P...
{ "language": "en", "url": "https://stackoverflow.com/questions/32553594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Controller not making associations in Rails because of wrong format I need to make new associations for Modification model if.save. Also these associations need to be same as related Entity model has. But i'm getting this error: When assigning attributes, you must pass a hash as an argument. ModificationController...
{ "language": "en", "url": "https://stackoverflow.com/questions/34290074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Z-fighting. Inaccurate coordinates of faces / shakes For sufficiently large approaching the surface of the sphere, which is a model of the Earth, I get inaccurate coordinates of vertices. Because of this, when moving the camera the shaking noticeable. How to get rid of it? On the Internet to find solutions to invert...
{ "language": "en", "url": "https://stackoverflow.com/questions/28371418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error to run function code in javascript has undefined A table made containing the edit information field a problem to run code undifined code in function please help me to fix this error "info" id table in html function submit () { var table = document.getElementById("info"); var td1 = document.createElem...
{ "language": "en", "url": "https://stackoverflow.com/questions/53608533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting a cookie from a previous request when using axios in a Lambda function I am using Axios in my NodeJs application to do HTTP requests. I am logging in using a post request that does not require a cookie set in the header. const instance = axios.create({ baseURL: 'https://some_url.com' , withCredentials: true}...
{ "language": "en", "url": "https://stackoverflow.com/questions/66219323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Elegant Reflection in Python? I have a small number of different Python classes (each standing for a different kind of strategy) and numerous configurations (e.g. parameters) for them. Currently I have organised the configurations in json files, which may look like this: { "script": "xyz.strategy.strategyA", "data...
{ "language": "en", "url": "https://stackoverflow.com/questions/22126602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: General architecture for backend? We are trying to be forward looking in our architecture choice on some of the new systems we are designing. Pretty much we want to architecture back end system that no matter what interface we decide to use (WinForms, Silverlight, MVC, Webforms, WPF, IOS (IPad/Iphone), ect...) which...
{ "language": "en", "url": "https://stackoverflow.com/questions/7905667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Typegoose - ObjectId that references a Sub-Document I'm trying to pull a ref from a Subdocument. The Documents looks like this. Sample Categories Doc: { "_id": 12345 "keyword": "smart phones", "subCategories": [ { "_id": 6789, "keyword": "apple" }, { "_id": 101123, "keyword"...
{ "language": "en", "url": "https://stackoverflow.com/questions/56659251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is the HttpServletRequest-object unique for each request? I have implemented with a servlet with below doGet & doPost methods: public void doGet(HttpServletRequest request, HttpServletResponse response){ // code } public void doPost(HttpServletRequest request, HttpSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/65392146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL returns zero rows(Empty set) without limit because of broken/outdated index I work on a large table with around 1.5k entries, CREATE TABLE `crawler` ( `id` int(11) NOT NULL AUTO_INCREMENT, ... `provider_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `crawler_provider_id` (`provider_id`), ... ) ENGINE=MyISA...
{ "language": "en", "url": "https://stackoverflow.com/questions/4918091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prevent access to object properties that do not yet exist Often I have this situation: var obj = { field: 2 }; and in the code: do_something( obj.fiel ); // note: field spelt wrong ie The property is incorrectly typed. I want to detect these bugs as early as possible. I wanted to seal the object, ie obj = O...
{ "language": "en", "url": "https://stackoverflow.com/questions/13757631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can't resolve jar library in InteliJ when adding to libraries in SBT project I want to add the Apache commons library to my Scala project. Before moving it to SBT it worked by just adding it to the library or global library setting within my InteliJ project. Now that I moved to sbt it doesn't resolve anymore and I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/24351972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to handle relative paths in a bash setup script? I often run into the situation where I would like to provide some kind of 'setup' or 'install' script, for something like a git repository, although it could also be used in other situations. Just to be clear: with 'setup script' I mean a script which places some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64357906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }