text
stringlengths
15
59.8k
meta
dict
Q: How do I use variables in a select query? I have this following select query that uses a scalar function to get full name. I want to eliminate the redundancy by using variable but so far there is no success. My query is select a.Id, a.UserName, getFullName(a.UserName), a.CreateTime from DataTable; I don't wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/36871217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# RazorPg - Check if form field is empty and mark as unchanged I have a form field that allows users to change their email address. If the user doesn't enter anything in the field I want to send "unchanged" to the API. Not blank "" or null. I've came up with this code: if (!String.IsNullOrEmpty(Request.Form["Email"...
{ "language": "en", "url": "https://stackoverflow.com/questions/74737844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Execute SQL Task in TSQL I have multiple SQL tasks that execute stored procedures. I intend to call these SQL tasks in some other stored procedure. How do I do this ? In these SQL tasks, all I have is exec sp statement.All these SQL tasks need to start in a stored procedure only. A: You can't call individual SSIS ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29318695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ARCore plugin for UE4 - repository doesn't exist? I wanted to download arcore plugin for unreal engine 4 but link provided in main page (link) of project settings for unreal doesn't exist. Who knows why? Or this is because of preview version of ARCore? Thanks :) A: Did you tried to clone it ? git clone -b 4.17-arc...
{ "language": "en", "url": "https://stackoverflow.com/questions/46052130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Return newly allocated pointer or update the object through parameters? I'm actually working on pointers to user-defined objects but for simplicity, I'll demonstrate the situation with integers. int* f(){ return new int(5); } void f2(int* i){ *i = 10; } int main(){ int* a; int* b = new int(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23549054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AVSampleBufferDisplayLayer not rendering frames anymore in iOS10 The following setup has been working on all recent iOS versions until iOS10: I am using AVSampleBufferDisplayLayer to render raw frames from a custom source. I have a pixel buffer pool set up using CVPixelBufferPoolCreate, and have the kCVPixelBufferIO...
{ "language": "en", "url": "https://stackoverflow.com/questions/38364656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Project Euler N2 - Fibonacci algorithm isnt working properly Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... Find the sum of all the even-valued terms in the sequence which do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1385781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nuxt SSR on plesk have to restart every ≈5minutes I have a server.js file who start my nuxt SSR website. First load of the website is a bit slow but it's ok. The time to start and finish the 'npm run start' command take around 8secs then the app is ready for every other users. Around 5 minutes laters, if nobody come...
{ "language": "en", "url": "https://stackoverflow.com/questions/68807582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mobile Safari. Sudden movement in form inside of iframe I have a form inside of iframe. I see the sudden movement of the viewport after I turn on the fields of this form by clicking on the arrows on the virtual keyboard IOS I noticed this problem in mobile Safari(ios8), and only when the form in the frame. The "Run...
{ "language": "en", "url": "https://stackoverflow.com/questions/30840843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Difference between "Missing Reference Exception" and "Null Reference Exception" in Unity C# In the Unity manual there's an explanation for Null Reference Exceptions but not for Missing Reference Exceptions. Are there any differences? A: NullReferenceException is thrown when you try to access member of a variable se...
{ "language": "en", "url": "https://stackoverflow.com/questions/53194985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: R Clusplot: How to represent clusters as numbers rather than shapes I want to plot my k means cluster on a 2d plot using clusplot(). However, the points are represented as different shapes on my plot (triangle, square, circle, etc) and it's not easy to see what each shape represents. Is there a way to either generat...
{ "language": "en", "url": "https://stackoverflow.com/questions/24259723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to loop through a text file with lines consisting of multiple numbers, while counting the numbers The file looks something like: John Smith 100 90 80 90 50 60 80 99 40 20 But there can be any number of people/grades in the file. I know how to loop through and get the first and last name of the person, but how c...
{ "language": "en", "url": "https://stackoverflow.com/questions/56843108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: need group by data in mysql in mysql: Have data in data: ColA | ColB | Rank 1 2 0 1 3 1 2 1 0 3 1 0 3 2 1 Keeping Col A as key field, need to get data on base of highest rank i.e., output: ColA | ColB | Rank 1 3 1 2 1 0 3 2 1 any ideas...
{ "language": "en", "url": "https://stackoverflow.com/questions/31109711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: server side includes: can I compute something inside a variable I'm trying to calculate the current index of my slides depending on the page that is shown. So far I got this: <!--#set var="page" value="0" --> <!--#set var="slidesPerPage" value="4" --> <!--#if expr="$QUERY_STRING = /p=1/" --> <!--#set var="page" v...
{ "language": "en", "url": "https://stackoverflow.com/questions/22408202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: IOS UIWebview alternative - Does it have a webkit browser we can use as a webview different than Safari? I'm looking for an alternative for safari webview I could use like a UIWebview and to communicate with javascript of his webview. Is it possible? Is Apple tolerant of this? A: Your question touches on something ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22055392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Verifiy if an xls file contains VBA macros without opening it in MS Excel I have a big set of .xls (Excel 97-2003 Workbook) files. A few of them contain VBA macros inside, I would like to find a way to filter them out automatically without opening them one by one in MS Excel. There is an old post which is similar to...
{ "language": "en", "url": "https://stackoverflow.com/questions/17550648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I prevent Ace Editor from auto-completing as I type? I want the suggestion to show up only when I use Cntrl-Spacebar. Their documentation is a bit lacking. A: You need to set these following variables : enableBasicAutocompletion:true enableLiveAutocompletion:false for achieving auto-completion only on press...
{ "language": "en", "url": "https://stackoverflow.com/questions/31298936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React Filtering Data with Hooks I'm working with a dataset and want to implement a filtering option to only display what is selected (as filters do :) ). Here's the data and my code so far: // Movies data = [ { name: "a", genre: "comedy", year: "2019", }, { name: "b", genre: "drama", year: "201...
{ "language": "en", "url": "https://stackoverflow.com/questions/70704728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Merge array by value of a value cell (no doubles) I was wondering if it's possible to merge an array by a value of a cell (no doubles) right of the php box. To clarify this is my current array : Array ( [0] => Array ( [Score] => 90 [Name] => David, ) [1] => Array ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27859450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading the medusa_s3_credentials not work on medusa Describe the bug Python rises an error during the initialization of medusa container Environment: ``` apiVersion: v1 kind: Secret metadata: name: medusa-bucket-key type: Opaque stringData: medusa_s3_credentials: |- [default] aws_access_key_id = xxxxxx ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72201170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does a defaulted default constructor depend on whether it is declared inside or outside of class? In the following example, struct A does not have default constructor. So both struct B and struct C inherited from it cannot get compiler-generated default constructor: struct A { A(int) {} }; struct B : A { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71969651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: sql statements and pdo There is a pdo wrapper class that has turns off emulation or prepared statements using: setAttribute(PDO::ATTR_EMULATE_PREPARES, false); I am seeing where some of the sql statements are written using standard non parameterized methods such as seen below: select * from table where name = '".$n...
{ "language": "en", "url": "https://stackoverflow.com/questions/16748364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's a good use case for the arg in a vue.js directive? Can someone help me understand a good use case for a Vue.js directive's arg and modifiers? Since we can already pass data as an object in the value of the directive I'm having a hard time seeing the value of arg and modifiers. For example I could do the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/49713419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Managing bower file with Angular files Ok, I think that this is an easy question. I am new to Bower, and I am trying to keep my bower.json file in sync with the multiple libraries that Angular now provides. I am using angular-resource, angular-cookies, angular-sanitize, angular-animate, and then the main angular lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/20983264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can't get the right data I send My code is : String str= (char)255 + (char)255 +"1" ; byte[] sendbuf = str.getBytes(); outputPacket = new DatagramPacket(sendbuf,sendbuf.length,remoteIP,2280); logSocket.send(outputPacket); the result I get is "0x35 0x31 0x30 0x31" but what I want is :0xff 0xff 0x31 How to do this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13264613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: POST :create rspec controller testing error, wrong number of arguments 2 for 0 I'm trying to test my Post_comments#create action in the controller specs with rspec and I keep getting this error message: Failure/Error: post :create, :post_id => post.to_param, :post_comment => attributes_for(:post_comment, comment: "...
{ "language": "en", "url": "https://stackoverflow.com/questions/37263130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to Create a Table-like Structure in Java GUI I would like to create a table-like structure so that I can display information easily. I would like it to look like this: What is the best layout manager to achieve this? I am currently using GridBagLayout, but I am having trouble getting the Title to span the whole...
{ "language": "en", "url": "https://stackoverflow.com/questions/35068296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding the certificate thumbprint for a particular website on Chrome through Selenium WebDriver? Let's say I open a particular website on Chrome through Selenium - www.google.com. I can view the certificate thumbprint for this website manually. But is it possible to get hold of this thumbprint thru any webdriver ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/38243634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS not applied in bootstrap modal on my Rails app Following is my bootstrap setup: Rails ver: 4.1.1 Gemfile: gem 'bootstrap-sass', '~> 3.2.0' gem 'bootstrap3-datetimepicker-rails', '~> 3.0.2' gem 'bootstrap-validator-rails' Application.css.scss (first 3 imports, no require directives) @import "bootstra...
{ "language": "en", "url": "https://stackoverflow.com/questions/34967523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Regex for openfootball Exists string (1) Thu Jun/12 17:00 Brazil 3-1 (1-1) Croatia @ Arena de São Paulo, São Paulo (UTC-3) I use regex: /^\((\d+)\)\s(.*?)\s{2,}(.+?)\ (\d+)-(\d+)\ \(.*?\)\ (.+?)\s{2,}.*UTC-(\d+)/ How to modify regex, that passing also matches without first time result: (1) Thu Jun/12 17:00...
{ "language": "en", "url": "https://stackoverflow.com/questions/24279633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Telling IPython interact widget to ignore self argument in OOP I'm trying to use the IPython interact widget for a particular method in one of my classes. I would like it to ignore the self & colour arguments, and only adjust the i argument, but it insists that self is a bonafide argument too. A similar question was...
{ "language": "en", "url": "https://stackoverflow.com/questions/56567251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unity C# Null Reference Exception I am trying to get data from an int variable in Unity using C# code. Below is the C# code I am using to get the int. using UnityEngine; using System.Collections; public class endGameMessage : MonoBehaviour { public static int score2; void Start () { GameObject thePlayer = Game...
{ "language": "en", "url": "https://stackoverflow.com/questions/14549465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SceneKit get node position after rotation For example I have two SCNNodes with SCNBox geometry positioned one after another increasing x position property: SCNBox(width: 0, height: 0, length: 0.02, chamferRadius: 0) Then I want to rotate the first one using rotation property with SCNVector4, but when rotation happen...
{ "language": "en", "url": "https://stackoverflow.com/questions/50466931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using npm mysql with angular / electron I am trying to make desktop application using electron, ionic4 --type-angular and npm mysql. I have established the connection with mysql but with normal html, js, css using the below code in my index.html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script...
{ "language": "en", "url": "https://stackoverflow.com/questions/54246086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing a predicate to QWaitCondition? I'm writing some threads in Qt and I can't figure out how to pass a predicate to my condition variable to protect against spurious wake up. Working solution in C++: std::mutex(mu); std::condition_variable cond; std::unique_lock<mutex> alpha_lock(mu); cond.wait(alpha_lock, []()...
{ "language": "en", "url": "https://stackoverflow.com/questions/40445629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to print values of all elements of java.util.Date type Array in R language I am new in R language and i have a problem : In java i have a method like this public Date[] getAllDates(String fromDate, String toDate){ ArrayList<Date> dates= new ArrayList<Date>(); ------- Generating dates f...
{ "language": "en", "url": "https://stackoverflow.com/questions/37475157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I search for a certain method in android profiler? I get thousands of methods and I can´t locate the one I was looking for. There is a "find" text field above, which seems to don´t have any effect A: you are right, the find wont work.. But if you know the method name and package name you can sort the list ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21877619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: null values of @id field not fetched in list hibernate @Entity @Table(name = "CONFIG") public class ConfigBean implements java.io.Serializable { private String FEATURE; private String SUB_FEATURE; private String STATUS; private String COMMENTS; private String HIERARCHY; private String SEARCH...
{ "language": "en", "url": "https://stackoverflow.com/questions/31061839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you center the MKMapView map visually when a user location is known or changes? I have read and followed the instructions on How do I zoom an MKMapView to the users current location without CLLocationManager? However, while I do get the current user location, I am unable to actually make the map visually cent...
{ "language": "en", "url": "https://stackoverflow.com/questions/4915033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: FormData constructor isn't getting any values from the form I must be making a very stupid mistake, but I can't figure out why this isn't working: <html> <head> <title>Form test</title> </head> <body> <h1>Test a form</h1> <form id="myform" name="myform" action="/server"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42062605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Designer duplicating datasource in DataGridViewComboBoxColumn I have a custom control that inherits from a DataGridView. It has pre-defined columns. One of the columns is a ComboBox column. I want it so that users can select an hour of the day, so it binds to a datasource that is an array of integers, from 0 to 24...
{ "language": "en", "url": "https://stackoverflow.com/questions/38819159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the opposite of a join? I am trying to get the rows that don't exist in one table where one table called schedules (match_week, player_home_id, player_away_id) and the other table called match (match_week, Winner_id, Defeated_id) are joined. The players look at their schedule and play a match. I am trying...
{ "language": "en", "url": "https://stackoverflow.com/questions/57702795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTTP Connection fails but returns an error code of 0 I'm writing an HTTP requester for a library in MQL4. This is what I have so far: #define INTERNET_OPEN_TYPE_PRECONFIG 0 #define INTERNET_OPEN_TYPE_DIRECT 1 #define INTERNET_FLAG_NO_UI 0x00000200 #define INTERNET_FLAG_SECURE 0x00800000 #define I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75577659", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Oracle: Calculate time difference in HH:MM:SS between 2 dates I have 2 dates with following format: ST_DT = Sun Dec 29 11:55:29 EST 2013 ED_DT = Tue Dec 30 20:21:34 EST 2013 I want to find the difference between these 2 dates in HH:MM:SS format. Now my problem is that i don't know how to parse the above date format ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20867220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conflicted with the FOREIGN KEY in One to One Relationship Entity Framework Code First While I am going to add-migration it's ok but while I am going to run update-database I am getting this type of error in package manager console The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "FK_dbo.ServiceT...
{ "language": "en", "url": "https://stackoverflow.com/questions/34462651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: implicit conversion from a class to any one of its direct or indirect base classes this is the MSDN's idea about implicit casting . Implicit conversions: No special syntax is required because the conversion is type safe and no data will be lost. Examples include conversions from smaller to larger integral types, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/24107041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: updating records in table A from table B if column XYZ ( checksum ) changes in table B I am having a table A and table B. Table A is created from Table B ( and few other table join operation ). Table A has all of its column which are subset of column in table B. There is a column called as check_sum in table A and t...
{ "language": "en", "url": "https://stackoverflow.com/questions/31615984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: angular ng-repeat if property is defined I'm trying to ng-repeat through an array, but need to hide if a property is undefined. I tried doing to do is this: <div ng-repeat="person in people | filter:search" ng-if="last == undefined"> {{person.last}}, {{person.first}} </div> Heres a basic jsfiddle of what I'm tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/24415443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Suggestions for a good VBScript IDE what would be a good IDE for VB Script ? Currently using Notepad++. Also have Sublime Text, VS Code installed. I was wondering if i could discover a hidden gem through stack overflow ! A: * *Brackets (free) *VBSEdit (paid) *Systemscripter (paid)
{ "language": "en", "url": "https://stackoverflow.com/questions/59262252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Log in with the MercadoLibre API without having to type user and password? Is there any way to login with the MercadoLibre API without having to ask for user and password? I need to make a request that is of the form: https://auth.mercadolibre.com.uy?user="someone"&&password="secret" It's an example, it does not re...
{ "language": "en", "url": "https://stackoverflow.com/questions/45761456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Cannot return the final value I have stuck with this assignment. I tried to do different combination with my code to get the return but failed. The question asks find radiation exposure within a period of time by using recursion. Problem: I can get all the calculations correctly [I checked it using online p...
{ "language": "en", "url": "https://stackoverflow.com/questions/22083416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Elascticsearch error while Searching for percolation I use elasticsearch for percolation. And i find some error in log file: Elascticsearch error IllegalArgumentException[Less than 2 subSpans.size():1] [2016-08-04 10:24:53,673][DEBUG][action.percolate ] [test_node01] [liza_index][0], node[Qp9QPap1Tb6Q-wSd5...
{ "language": "en", "url": "https://stackoverflow.com/questions/38762261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing data from a Java page to JSP page I'm trying to pass an Object type from Java class to Jsp page. After going through many sites am bit confused on how to go about with this. My Java file has this content : Object categoryelements; Iterator it=elements.iterator(); while (it.hasNext()) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28082843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Spaces replaced by =20 after extracting text from email I tried to get the text of a received gmail, using the email and imaplib modules in python. After decoding with utf-8 and after getting the payload of the message, all the spaces are still replaced by =20. Can I use another decoding step in order to fix this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60240054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Add many rows at once I'm just starting out with WPF and MVVM framework. I have a Window with telerik RadGridView and I would like to add data from multipul rows in the same time. Has anyone got any advice or examples ,I've tried numerous ways but none seem to work out. Thank you My ViewModel private IList<Ligne> _...
{ "language": "en", "url": "https://stackoverflow.com/questions/24249016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add more labels to colorbar legend in ggplot I'm making some plots in ggplot with a colorbar legend like below. By default the legend has only 4 labels showing the value of specific colors. There are theme elements which can change the size of the colorbar, but not the number of labels. How can I increase the number...
{ "language": "en", "url": "https://stackoverflow.com/questions/48431647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# - Function that replaces a certain character with another I want to create a function that will replace every dot with a comma in a provided string. My code looks like this: public void replaceDot(ref string str) { for(int i = 0; i < str.Length; i++) { if (str[i] == '.') { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65810572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tool Tips from stored content and implementing site wide In my ASP.NET MVC application, we want our Admins of the application to manage tool tips for controls on the page for instance: text boxes, list boxes, etc. The tool tips will stored in a table structure and each view will load the respective tool tip data. So...
{ "language": "en", "url": "https://stackoverflow.com/questions/20578079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i create a file for JSONmodel programmatically and automatically create its Codable struct How can i build a function that takes string as a parameter, that string will be my JSONObject and then this function will create a file in project that contains a struct which have keys of my model like this page does...
{ "language": "en", "url": "https://stackoverflow.com/questions/57159151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reset/clear AudioUnit/AudioSession settings/properties in iOS? I am writing a VoIP app that uses AudioUnit for it's audio related tasks. Here, a lot of properties of AudioUnit and AudioSession are being set from a lot of places using the following two method AudioComponentInstance audioUnit; AudioComponent in...
{ "language": "en", "url": "https://stackoverflow.com/questions/36857835", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fetch only the documents that have 3 different values in mongodb? I have the following data in mongodb: { "_id" : ObjectId("111"), "id" : "111", "classification" : [ { "annotator" : "annotatorName1", "category" : "white" }, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53200682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does Keras convert the input shape from (3,3) to (?,3,3)? I am currently trying to get custom keras layers to work, you can see a simplified version here: class MyLayer(Layer): def __init__(self, **kwargs): super(MyLayer, self).__init__(**kwargs) def build(self, input_shape): print("inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/60743308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS rotate3d property behaving unexpectedly I was reading about the CSS rotate3d() property to rotate an element. I thought that the first three parameters in the function are multipliers and the fourth one is the degree magnitude. The value of multipliers has to be between 0 and 1. This means that rotate3d(1, 0, 0,...
{ "language": "en", "url": "https://stackoverflow.com/questions/60465621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to count word frequency of words in dictionary? I have a dictionary like below: [{'mississippi': 1, 'worth': 1, 'reading': 1}, {'commonplace': 1, 'river': 1, 'contrary': 1, 'ways': 1, 'remarkable': 1}, {'considering': 1, 'missouri': 1, 'main': 1, 'branch': 1, 'longest': 1, 'river': 1, 'world--four': 1}, {'seems'...
{ "language": "en", "url": "https://stackoverflow.com/questions/50334763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ngTable with ng-if is not working I'm using ng-table with angularJs as shown below.My problem is when I use ngTable it's rendered same column twice (MyColumn).In other words it doesn't consider the ng-if.How can I get rid of that issue ? Note : But for the normal table it's working fine.Why is that not working wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/25991645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the searched text in a string? I want to get a text that it is a part of an string.For example: I have a string like "I am Vahid" and I want to get everything that it's after "am". The result will be "Vahid" How can I do it? A: Try: Example1 String[] separated = CurrentString.split("am"); separated[0]; /...
{ "language": "en", "url": "https://stackoverflow.com/questions/33274880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: sending mail in php with user informations hii evryone plz i need help i want to know why my code send only the attachment but not the others informations of my contact form here is my code php here is my code the attachement is sent correctly but the other informations not i dont using any framework it is just ph...
{ "language": "fr", "url": "https://stackoverflow.com/questions/50481354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Expose Serializable Enum attributes in WCF I am trying to to expose an Enum from my WCF class (basically as a mechanism for passing a constant). When I look at the service reference code or the WSDL there is no sign of the Enum and I cannot use it. Why not? [Serializable] [DataContract] public class MyRequest { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27022212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Array becomes undefined after page reload I am working on Angular WebApi. I have a database response on localhost in JSON format. When I run my application, I can see the array oData. But when I reload the page then oData becomes undefined. How can I solve this? Here is my code from the .ts file: ngOnInit(): void ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69498043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WCF Service Interface - XElement vs. XmlElement vs. xml string I am doing some work which requires a WCF Service interface (in C#). The data exchanged (sent and recieved) will be in the xml format --- I cannot use strong datatypes because the interface needs to support multiple clients which have different requireme...
{ "language": "en", "url": "https://stackoverflow.com/questions/31075499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to change color of first text box in every row of table using jquery I am trying to change the background color of first text box in every row in a table and using below code for same purpose. Somehow it does not seem to be working. Please help. <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/...
{ "language": "en", "url": "https://stackoverflow.com/questions/24525894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does Heroku support foreign key and unique constraints? I'm considering moving a Rails app to Heroku. In general I add FK constraints with ON DELETE behavior to all FKs. Up to now I've done this by writing raw SQL to add the constraints, as Rails Migrations don't provide a way to do that. I also add UNIQUE keys wher...
{ "language": "en", "url": "https://stackoverflow.com/questions/10901606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to declare two data types containing same variable in haskell? In a module, I want to add two classes like this. data Person = Person { name :: String -- and some other details } data PetAnimal = PetAnimal { name :: String } I assumed this would work but ghc...
{ "language": "en", "url": "https://stackoverflow.com/questions/42083081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get current latitude and longitude plus 500 meters Hi friends, I am having one event latitude and longitude, To checkin to this event i must be within 500 meters of that event. I am getting current location using: Geolocation.getLocation().then(function(position){ $scope.position = position.coords; /...
{ "language": "en", "url": "https://stackoverflow.com/questions/40066985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamically load jade templates I'm working on a small documentation website and the content is stored in files. For instance I have two files chapter1.jade and chapter2.jade in a module1/ directory. I'd like to read the module1/ directory and dynamically include all the chapterX.jade files in it. I tried to have do...
{ "language": "en", "url": "https://stackoverflow.com/questions/16723554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WordPress : Form data is not displaying via echo I have created a form to which I am passing the data. When I try to echo the data it shows couple of errors saying that index is undefined. <?php /* Template Name: Dummy Practice Page*/?> <div id="main-content" class="main-content"> <div class="main-content-inner...
{ "language": "en", "url": "https://stackoverflow.com/questions/57603073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: PyMySQL different updates in one query? So I have a python script that goes through roughly 350,000 data objects, and depending on some tests, it needs to update a row which represents each one of those objects in a MySQl db. I'm also using pymysql as I've had the least trouble with it especially when sending over l...
{ "language": "en", "url": "https://stackoverflow.com/questions/35139294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Is it possible to apply dbt seed configurations to all projects that use a given package? I built a dbt package for internal use. I'd like to specify the seed configurations in the dbt_project.yml of that package, and have those configurations apply to all projects that use the package. So far, I'm not sure if there...
{ "language": "en", "url": "https://stackoverflow.com/questions/67005921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My app runs perfectly while running it on eclipse but maps disapear and it crashes on some actvitys after export Hw can this happen and be solved? My app runs perfectly while on eclipse, I tried everything before exporting the app. When I exported the app, the maps showed a grey area and the app crashed while loadin...
{ "language": "en", "url": "https://stackoverflow.com/questions/26743066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using data (not METAdata) from a SSMS DB to drive biml in SSIS dtsx creation I need to be able to generate tasks in a data flow of a SSIS dtsx based on data stored in a SSMS DB table. Basically, I have N (unknown, variable) sources and M (unknown, variable) destinations and I have a table T0 with MxN rows. Each row,...
{ "language": "en", "url": "https://stackoverflow.com/questions/42370455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to create table in Oracle I want to create a table in Oracle using the below syntax using %type Create table emp_avg ( emp_id HR.employees.emp_id%type, dept_id HR.employees.dep_id%type ): When I tried executing it is throwing an error. A: The given code is not valid. Try the below code. Create table emp_avg...
{ "language": "en", "url": "https://stackoverflow.com/questions/68781381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SQLSRV to Excel using php - Missing zero's in data cells I am using SQLSRV to download the data from server to excel based on requirement When i display the data its fine, but when i try to download using header("Content-type: application/vnd-ms-excel") the leading zero in the integer are missing. For example '0012...
{ "language": "en", "url": "https://stackoverflow.com/questions/35361645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make checkbox.Checked = True whose corresponding PictureBox is clicked I have 28 CheckBoxes in a windows form. Each box has PictureBox above it. When the user clicks on a PictureBox, I want to change the BackColor of the PictureBox to green, and make its corresponding CheckBox.Checked = True The code I am using: Pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/56260470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: User List with Role in .Net Core 3.1 Identity Can I get a list of all the users with the associated roles in .Net Core 3.1 from Identity? I haven't found any solution that works. A: You need to customize Identity Model and add navigation properties. public class ApplicationUser : IdentityUser { public virtual I...
{ "language": "en", "url": "https://stackoverflow.com/questions/62947889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MomentJS - Intended for input validation? Is MomentJS intended for user input parsing? I've got moderately close with the easy cases, having it accept dates in the DDMMYYYY order, and it handles some variation. It doesn't handle invalid dates particularly well when specifying the format - Including having day values...
{ "language": "en", "url": "https://stackoverflow.com/questions/10711787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: All Params Not Being Passed I am using php to create a hyperlink, and pass 3 params when the hyperlink is clicked. My issue with the syntax below is that only the 1st param is passsed, the other 2 are ignored. What should I alter in the syntax below so that all 3 params are passed? if($number_of_rows > 0) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42457717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Passing and accessing value in Django form I'm trying to pass info to my form and I have a bit of a struggle with that. My code looks as follows: views.py class ObjectUpdateView(UpdateView): template_name = 'manage/object_form.html' form_class = ObjectEditForm def get_success_url(self): #... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56513889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I update environment variable (System.getenv) (not Java system property) variable during runtime in Java U tried various solutions like ProcessBuilder and Runtime to update an environment variable, but none work. I have used reflection, but it does not seem to work as it's an unmodifiableMap. private void upd...
{ "language": "en", "url": "https://stackoverflow.com/questions/72360468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rewrite with proof-irrelevant equivalence relations in Agda? I am quite new to type theories and dependently typed programming and is recently experimenting with various features of Agda. The following is a very simplified example I wrote of a record type C which contains multiple component records and some constrai...
{ "language": "en", "url": "https://stackoverflow.com/questions/55646606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why toast message are not show in android 4.1 operating system containing mobile I cant see the toast message in android 4.1 mobile. Upto yesterday I was able to see the toast message. From today only I can not see the message. Please help me. Toast.makeText(getApplicationContext(), "hi", Toast.LENGTH_SHORT).show();...
{ "language": "en", "url": "https://stackoverflow.com/questions/12159546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Post-request rejected by server Could anyone help to solve a problem? I'm trying to send data form from authorize user to protected controller method, using fetch and getting 400 error. I'm using NET CORE 5 MVC and on front-en bootstrap 5. If I remove ValidateAntiForgeryToken from AddItemToStore method I'm gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/72090105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I can not get an image of the URL found with XmlHttpRequest Im trying to get a image url through XmlHttpRequest and use it like 'src' attribute of a 'img' tag. That is my plan: function populaLista() { var ourRequest = new XMLHttpRequest(); ourRequest.open('GET', 'http://localhost:8080/artes'); ourRequest.onload =...
{ "language": "en", "url": "https://stackoverflow.com/questions/51432480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve all functions that called by a user mode process in kernel mode debug including kernels functions I am trying to find all the functions including both user mode functions and kernel mode functions that wmic.exe calls to execute the diskdrive command. In order to do this I opened wmic.exe in my virtual machi...
{ "language": "en", "url": "https://stackoverflow.com/questions/73531848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Snowflake External Table Have a question regarding the Snowflake External Table. As we now the External Tables still a preview feature and still not a General Available. Hence have guys used External table in your production environment and you see any issue ? Snowflake do not recommend to use Preview feature in Pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/63208676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure DevOps Server 2020 - FilePath artifacts not always deleted from fileShare We are on ADS 2020.0.1 We are migrating to a new file server, we have noticed that drops on the new file server are not beeing deleted after the build run has been deleted. I have created a test pipeline, where i drop to the old and new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68285233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: positioning the child behind the parent of the parent element, ```z-index``` does not work I want the <span> to appear behind the #sideBar i tried z-index: -3 but that didn't work body { margin: 0px; font-family: "Signika Negative", sans-serif; background-color: #252525; color: #f8f9fa; user-select: none...
{ "language": "en", "url": "https://stackoverflow.com/questions/75545080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I receive/send information from/to GitHub using android App I have a school project where I am supposed to create an Android application that can get notifications from a GitHub project and also be able to send comments to GitHub using the App. I don't really know where to start but I hope there is some API f...
{ "language": "en", "url": "https://stackoverflow.com/questions/22720577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: React Native FlatList Object displaying I have the below object that I am retrieving from the AsyncStorage, and I want to display it in a FlatList but I am getting the following error: Invariant Violation: Invariant Violation: Invariant Violation: Invariant Violation: Tried to get frame for out of range index NaN My...
{ "language": "en", "url": "https://stackoverflow.com/questions/52842805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java: Two Scanners reading from the same input file. Doable? Useful? I have to read in integers from an input file based on whether or not a string that appears before them is a certain keyword "load". There is no key number telling how many numbers are about to be inputted. These numbers must be saved to an array. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22723630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use asyncio with a very long list of tasks (generator) I have a small program that loads a pretty heavy CSV (over 800MB, in chunks, using pandas.read_csv to limit memory usage) and performs a few API calls to servers "out in the wild", and finally builds a result object which is then stored in a database. I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/61333890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }