text
stringlengths
15
59.8k
meta
dict
Q: Embedded Tomcat NIO thread pool - no threads added I running a Spring Boot 2.6.x application (bundled with Tomcat 9.56.x) with the following configuration: server.tomcat.accept-count = 100 server.tomcat.threads.max = 1000 server.tomcat.threads.min-spare = 10 on a machine with 16 CPU cores and 32GB of RAM I testing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70820795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: About div positions My page is split into two columns, like this : <div id="wrapper"> <div id="left" style="float:left; width:15%;"> <span style="width:15%"; id="dog">Hi i'm a dog</span> </div> <div id="right" style="float:left; width:85%;"> <p>Hello world</p> </div> </div> Howev...
{ "language": "en", "url": "https://stackoverflow.com/questions/23185490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unity XML Config Test We are constantly having problem with our application being broken due to the Unity configuration not being able to resolve dependencies, either the dll or namespace has been changed or is initially wrong. Can anyone point me in the right direction for writing a Test that will ensure all the Un...
{ "language": "en", "url": "https://stackoverflow.com/questions/1565168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is jar file not being found with classpath spec? (FileChooserDemo from Oracle) Downloaded the latest Java SE. Ran FileChooserDemo via JNLP at http://docs.oracle.com/javase/tutorial/uiswing/components/filechooser.html Works fine. (Windows box.) Downloaded the source from http://docs.oracle.com/javase/tutorial/ui...
{ "language": "en", "url": "https://stackoverflow.com/questions/17738100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python: Combine "if 'x' in dict" and "for i in dict['x']" Really two questions: If I have a dictionary (that originally came from parsing a json message) that has an optional array in it: dict_with = {'name':'bob','city':'san francisco','kids': {'name': 'alice'} } dict_without = {'name':'bob','city':'san francisco'...
{ "language": "en", "url": "https://stackoverflow.com/questions/4464274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Spring MVC with H2 throwing table not found I know that this kind of a question happened to occur many times, but I'm still missing something. I'm building some simple web shop application with a classic Spring MVC (not Boot!), JPA with Hibernate and unfortunate H2 :) This is my application.properties: #############...
{ "language": "en", "url": "https://stackoverflow.com/questions/63629490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: trigger azure pipeline from another repo, on tag I am trying to trigger a pipeline when another repo is tagged. resources: repositories: - repository: myrepo name: myproject/my-repo ref: main type: git trigger: tags: include: - "*" I can run the pipeline m...
{ "language": "en", "url": "https://stackoverflow.com/questions/71157052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django Login form not authenticating Trying to create a login view using class based views (first time), and everything populates, but it keeps saying that my username is invalid. Please help me figure out whats wrong. login.html (Edited to show entire form): <div class="card border-grey border-lighten-3 px-1 py-1 m...
{ "language": "en", "url": "https://stackoverflow.com/questions/44531069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How find a value in all table postgress I have a db postgress and I need to find a value in all table: For example: I have this value 'Alida' I need to obtain all tables names that contains column value 'alida'. I'm new and I don't know how i can do this? Anyone can help me?
{ "language": "en", "url": "https://stackoverflow.com/questions/68084703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gdb Debugger Remot localhost Could someone help me with this? I need to do the debugger step by step with the GDB but it is aborted. (gdb) s Single stepping until exit from function main, which has no line number information. warning: Exception condition detected on fd 536 Remote communication error. Target disconn...
{ "language": "en", "url": "https://stackoverflow.com/questions/71561308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am getting this error when compiling my program. Operator " + " cannot be applied to operands of "System.Random" and "System.Random" I am trying to generate random numbers for math problems. When the program is compiled the error Operator " + " cannot be applied to operands of type 'System.Random' and 'System.Rand...
{ "language": "en", "url": "https://stackoverflow.com/questions/10321246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: li-tags are vertically aligned in ul-tag but not the text itself My pen: http://codepen.io/helloworld/pen/pCdBe I have aligned 3 li elements in an ul-tag vertically with percent values considerung the height of the parent ul. I also want that the li elements text like 1 or 2 is vertically aligned and there is still ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18011887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting ACL values through ACL name via Powershell Hope you guys are safe and healthy! Can I ask if there is a way to use powershell to get the ACL based on the ACL name and extract the values out? I am trying to compare the selected file or registry permissions with the ACL that I would be provided by user. Exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/67736519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cloudflare stops javascript passing variables to external files I have Rocketloader enabled in my cloudflare account so that might be the issue, but how can I work around it? The situation is I have an external file login.js which handles login forms across the site, but when a user accesses a page when they aren't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22642865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what " setContentView " helps in I tried to make a new Relativelayout, I then created a button, finally I added this button to the layout. but what does " setContentView " help to achieve? Here is the code RelativeLayout wassimLayout = new RelativeLayout(this); Button redButton = new Button(this); wassimLayout.addVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/29354185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: BeanCreationException: autowired dependencies failed with another maven spring project I have some trouble with autowired in combination with a second spring boot project. Hopefully, you can give me some hints to fix the issue. Project setup: The project datahub manages the data store access. The project dataintegra...
{ "language": "en", "url": "https://stackoverflow.com/questions/38262393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generate a code from a java class that uses another java class (BCEL) I am trying to generate(and modify) the code of an output class from another class using the ByteCode Engineering Library (by Apache) . String class_name = c_gen.getClassName(); Method[] Methods = c_gen.getMethods(); for (int i=0;i<Method...
{ "language": "en", "url": "https://stackoverflow.com/questions/33457190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Searching multiple fields in elasticsearch I'm indexing meta data on files and my mappings looks like this: curl -XPUT "http://localhost:9200/myapp/" -d ' { "mappings": { "file": { "properties": { "name": { "type": "string", "index": "not_analyzed" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18214156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is best TypeConverter for Uri? What is the best method of converting android.net.Uri that it can be used with RoomDatabase? A: The best way to store and retrieve Uri with Room is to persist it in the form of String. Moreover we already have the APIs to convert Uri to String and vice versa. There are 2 ways: *...
{ "language": "en", "url": "https://stackoverflow.com/questions/49478079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: gcc optimizations: how to deal with macro expantion in strncmp & other functions Take this sample code: #include <string.h> #define STRcommaLEN(str) (str), (sizeof(str)-1) int main() { const char * b = "string2"; const char * c = "string3"; strncmp(b, STRcommaLEN(c)); } If you don't use optimizations i...
{ "language": "en", "url": "https://stackoverflow.com/questions/16491342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding data to JSON file through UI I have a UI form wid 2 textboxes I need my Json file to be appended with the values present in 2 textboxes on clicking the submit button. Am using spring MVC architecture here. Just want to know how do I go about this requirement. A: OnClick of your button or any widget should ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/46590066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to copy and rename files in shell script I have a folder "test" in it there is 20 other folder with different names like A,B ....(actually they are name of people not A, B...) I want to write a shell script that go to each folder like test/A and rename all the .c files with A[1,2..] and copy them to "test" fold...
{ "language": "en", "url": "https://stackoverflow.com/questions/12452101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make Wait until all threads finished it's work from threadpool in c# for (int task = 0; task < 20; task++) { ThreadPool.QueueUserWorkItem(new WaitCallback(TaskCallBack), new object[] { filepath1, filepath2, filepath3 }); } public static void TaskCallBack(object state) { o...
{ "language": "en", "url": "https://stackoverflow.com/questions/59353866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to use datetime minvalue in get/set method when null is the database value I have two functions, in my constructor I read from the database and call all of my set functions: while (reader.Read()) { Status = reader["status"].ToString(); Event_Start_Date1 = reader.GetDateTime(reader.GetOrdinal("event_start...
{ "language": "en", "url": "https://stackoverflow.com/questions/5668531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nested class with numba I tried using numba to speed up the implementation, but when using jitclass, there was a problem with class nesting. I plan to use numba with multiple nested classes, does anyone know what is causing this error? from numba.experimental import jitclass from numba import f8, njit, typeof, void,...
{ "language": "en", "url": "https://stackoverflow.com/questions/73524787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make complete button process the data ? mean submit i wanna ask how to make the final step process the data ? , i've tried use form method to redirect process but it not work . i'm using modal-steps. Already search on stackoverflow but i got nothing, if somebody know how to do it please tellme. i'm using this...
{ "language": "en", "url": "https://stackoverflow.com/questions/59854485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the use of software watchdog in a controller? Heyya, I would like to what is the use of Software Watchdog and why they are used in controllers please.. A: Assuming you mean micro-controllers: A watchdog timer (sometimes called a computer operating properly or COP timer, or simply a watchdog) is an electro...
{ "language": "en", "url": "https://stackoverflow.com/questions/45885834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to share same instance of domain model in Angular2, and propagate changes? So i have a very simple domain model Shell : import {Injectable} from 'angular2/core'; @Injectable() export class Shell { public loggedIn: boolean = false; Change(item : boolean) { this.loggedIn = item; } } I have...
{ "language": "en", "url": "https://stackoverflow.com/questions/36271916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Custom device to be emulated in chrome device emulator I am building a mobile webapp for a 10.1 inch screen tablet with 1900x1200 resolution. The device is an HP Elitepad 1000 I would like to know how to set chrome to emulate the specifications above. A: Just press ALT + CMD + I and the Dev.Tools will open. With S...
{ "language": "en", "url": "https://stackoverflow.com/questions/33518199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring - Using property-placeholder to load properties file that is outside the war file or the classpath but is in the filesystem I have configured the loading of the properties file as shown below (Spring 3.1) my-spring-xml <context:component-scan base-package="com.mypackage"/> <context:property-placeholder locati...
{ "language": "en", "url": "https://stackoverflow.com/questions/11141193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to develop gtalk plugin? I want to develop a simple plugin for gtalk is this possible? Is there api's or tutorial that shows how to do that? Thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/3611548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Seam App accessing data via an EJB I have to investigate the possibility of using JBoss and Seam to build user interfaces to data held in a database controlled by an off-the-shelf package. I've been reading through some of the Seam documentation, and various other sources, but I can't seem to clear the confusion I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/11742026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Double integration with a differentiation inside in R I need to integrate the following function where there is a differentiation term inside. Unfortunately, that term is not easily differentiable. Is this possible to do something like numerical integration to evaluate this in R? You can assume 30,50,0.5,1,50,30 fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/73135559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What kind of language should I design for a particle engine scriptable engine? I was wondering which kind of expressiveness fits a language used to generate particle effects.. Supposing to want an engine as flexible as possible what kind of 'features' should it have? (in addition to trivial ones like color, position...
{ "language": "en", "url": "https://stackoverflow.com/questions/1077563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Share Maven repository ***only one user connected at a time*** We have a bank of virtual machines used by developers to make changes and perform tests of a large suite of projects using Maven for dependency management. Each user has a unique login, so their local .m2/repository folders are separate from one another....
{ "language": "en", "url": "https://stackoverflow.com/questions/32315796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to adjustsFontSizeToFitWidth to UIButton label ? ios when i set adjustsFontSizeToFitWidth to the button UILabel, the text go out side of the button frame, I don't know why ? here is my code: shareBtn = UIButton() shareBtn.setTitle(IconsConstants.share, forState: UIControlState.Normal) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34896858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i change the clicked button Currently i have 3 buttons with names start_btn , about_btn and stats_btn which are movieClips.All 3 of them are in a container (also a movieClip) with the name of group_btn.So my question is how do i tell the exact element to change its ScaleX and ScaleY when im using only one Mou...
{ "language": "en", "url": "https://stackoverflow.com/questions/18748549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call loadmore function(only once) on scroll down javascript function? i am using the following code to trigger my onloadmore funciton when user scroll down and reaches bottom of page. But i notice that many times the function get called multiple times on scroll down! could any one tell me why loadmore functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/30830282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to plot ROC-AUC figures without using scikit-learn I have the following list containing multiple tuples of (TP, FP, FN): [(12, 0, 0), (5, 2, 2), (10, 0, 1), (7, 1, 1), (13, 0, 0), (7, 2, 2), (11, 0, 2)] each tuple represents the scores for a single image. This means I have 7 images and I have calculated the sco...
{ "language": "en", "url": "https://stackoverflow.com/questions/68951426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Avoid adding NSWindowWillEnterFullScreenNotification in OS version prior Lion(On Leopard or Snow Leopard) How can I avoid adding NSWindowWillEnterFullScreenNotification in OS version prior to 10.7 because it is only available in OS 10.7 or above and I want to use this notification in above 10.7 but my application g...
{ "language": "en", "url": "https://stackoverflow.com/questions/13267714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error - "Cannot invoke "org.openqa.selenium.WebElement.sendKeys(java.lang.CharSequence[])" because "this.UserName" is null I am a newbie in Java and Selenium. Below are my java classes for POM, Driver Utilites and Test Case. When I run the Test Case as TestNG test, I have : FAILED: verifyLogin java.lang.NullPointerE...
{ "language": "en", "url": "https://stackoverflow.com/questions/67957566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display message if user clicks on browser button? My question is it possible to display a message if browser buttons have been pressed in order to be able to display a message stating if user should leave the page or stay on a page? Also can a message be displayed if user tries to change a url if they are on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14187850", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TCP Server Applet I have an open Social container and I need to put an applet in that container, the applet is required to act as a tcpServer, I need some guidence how can I do this? A: The networking tutorial explains, in full detail, how to create a TCP server socket and accept connections from it. Here's the g...
{ "language": "en", "url": "https://stackoverflow.com/questions/14745318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get Current balance of each user from a bunch of transactions in MongoDB using NodeJS? Im using Node.js with Mongoose to Store data in MongoDB. I need to show a list of all the users with their current available balance. I tried using multiple for loops, but I kept getting errors somewhere or the other. I'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/45375724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the testability problems of window in javascripts which is solved in $windows in Angular JS As a novice start to learn angular js and with a weak javascript background, could someone give some more illustrative examples and explain further what is the idea/purpose behind the $window, a built-in service in An...
{ "language": "en", "url": "https://stackoverflow.com/questions/44611762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Function calls in smart contract from script and checking value of variables I am currently using Brownie to learn smart contract and blockchain development. I am having trouble understanding how to call functions and check value of variables from smart contracts using python script. How would I be able to do this? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70173962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Git - Weirdness when using .gitattributes to force consistent line endings So, I've recently added a .gitattributes file to one of our repositories to try to force consistent line endings: # All Perl Sources should use Unix style line endings *.pl text eol=lf *.pm text eol=lf But both myself and a lot of othe...
{ "language": "en", "url": "https://stackoverflow.com/questions/52637974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ios adding a collectionView inside UITableView's header view I've an UICollectionView inside the headerView of my UITableView which is made in other xib file (custom view) . So my question is, should I declare delegate methods on the same class I've declared my tableView or on the custom view which is header of tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/40713323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Subscript indices must either be real positive integers or logicals with interp2 What does the error "Subscript indices must either be real positive integers or logicals" means when using interp2. X,Y,Z,XI,YI are all vectors of the same length. A: It means that you trying to access an element in an array by using ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3956011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Nokogiri to search through XML file based on user input in Rails app So I've got an XML file (XML file) with a schema (XML schema). I'm trying to create a quick Rails app to allow users to search through the XML file based on the 'lastName" element that are children of an sdnEntry element. I don't have any pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/8017667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Copy 12MB folder with 2500 files from assets to sd card quickly I'm trying to copy a large number of folders and subfolders from my apk asset folder to my sd card quickly. the folders contain 12mb of small files, probably 2500 total. The code example from this SO question works but it takes over 5 minutes on my devi...
{ "language": "en", "url": "https://stackoverflow.com/questions/17862901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Emacs server and emacsclient on other machines as other users I know that after I call (start-server) inside an existing Emacs session I can then use emacsclient -c (on the same computer) to create new frames that connect into that server, so that each new frame created by emacsclient has access to the same se...
{ "language": "en", "url": "https://stackoverflow.com/questions/12546722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: SAP UI5: Re-align simple form label and fields to left side I need to move all these highlighted elements to left side of the page(Screen attached). Below is the code for simple form in my xml view: <---XML View---> <f:SimpleForm id="SimpleFormDisplay354" minWidth="1024" maxContainerCols="3" editable="false" layou...
{ "language": "en", "url": "https://stackoverflow.com/questions/50975174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenShift - no awt in java.library.path I use Openshift for a small app. In this app, I upload images and resize them and stores them in a database. I use: BufferedImage bufferedImage = ImageIO.read(inputStream); But today when I run this part of code I got this exception: java.lang.UnsatisfiedLinkError: no awt in j...
{ "language": "en", "url": "https://stackoverflow.com/questions/33729798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Splitting one table into multiple tables based on columns using velocity Ok below is the code that i have. Here we read a map from a JAVA object and populate columns based on the key and values of the map. The Java object map is of the form HashMap<HashMap<String, Object>>. The required table will have columns equa...
{ "language": "en", "url": "https://stackoverflow.com/questions/45561330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: log4j2 filePattern doesn't interpolate I've tried to add the following RollingFile appender; <RollingFile name="appFile" fileName="${sys:catalina.base}${sys:file.separator}logs${sys:file.separator}${web:contextPath}${sys:file.separator}app.log" filePattern="app-%d{dd-MM-yyyy}.log"> <PatternLayout pattern...
{ "language": "en", "url": "https://stackoverflow.com/questions/41934268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Identityserver4/OpenId Connect, Hybrid mode, Token Refresh Fails I have as ASP.net Core MVC site, that uses OpenId connect to authenticate with another ASP.net Core site, that uses IdentityServer4, that uses another IdentityServer4 site as identity provider. On the client, there is a very few pages, that in theory c...
{ "language": "en", "url": "https://stackoverflow.com/questions/43052630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flutter: disable dropdownbutton option I have this widget: DropdownButton<String>( value: rentPeriod, items: rentPeriods.map((String value) { return DropdownMenuItem<String>( value: value, child: Text(translate("expense.$value")), ); }).toList(), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68039731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find the file associated with a memory mapped address in C Is there an existing example of how, in C, to take a memory address and get which, if any, file is mapped to that address? Specifically, I am modifying how msync works and I want to know what file is associated with the address being synced. I can see...
{ "language": "en", "url": "https://stackoverflow.com/questions/30602859", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Split MySQL fields by character count to the nearest full word? I have a MySQL field for the body texts of blog posts in markdown format. Due to an API I'm using I can only send 3000 character blocks, however some of my posts are as large as 4500 characters and there are over 2000 of them so I don't want to manually...
{ "language": "en", "url": "https://stackoverflow.com/questions/40832395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to apply an attribute to a descendant element? XSLT Take a look at the following code: <xsl:template match="tocline[@toclevel='2']"> <xsl:copy> <xsl:copy-of select="@*"/> <xsl:for-each select="descendant::toctitle"> <xsl:if test="position() = last()"> <xsl:attribu...
{ "language": "en", "url": "https://stackoverflow.com/questions/14380209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reason to use String instead of Text in Haskell I hear that good practice in Haskell to use Text instead of String. I am trying to follow this rule, and coming up with the following question: Why parseRoute of Network-HTTP-Client is designed to work with String and not Text? What is the general recommendation to use...
{ "language": "en", "url": "https://stackoverflow.com/questions/57617292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: angularjs and localStorage change event I store some data in the localStorage what I want in my angularjs app is that when the data in the localStorage changed, the app rerender the app, how can I do this? A: I recently created a module allows you to simply bind a localStorage key to a $scope variable and also stor...
{ "language": "en", "url": "https://stackoverflow.com/questions/16150311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: How to get value of completed task while uploading video to AWS? I have implemented the AWSS3 to upload the video to the AWS server and also I want to get the value of task which has been completed using AWSS3TransferUtilityUploadExpression() to show the value on progress bar. But I am not getting the value please s...
{ "language": "en", "url": "https://stackoverflow.com/questions/65808501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can we find the IRR of cash flows in a Dataframe? I can easily find the NPV if items in a dataframe using the code below. But how can I get the IRR of the same items? import numpy_financial as npf import pandas as pd # Intitialise data of lists data = [{'Month': '2020-01-01', 'Expense':1000, 'Revenue':5000, 'Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/71774505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: map function in React-Native I am new to React Native and I am using Typescript for my project. I am difficulty to do mapping in React Native. Below is my code for interface: interface Teacher { name: string; sex: string; age: number; student: Student[]; } interface Student { name: string; sex: string; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60784800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Build url string using C# I've been trying to build the request url for my json request but been getting a 404 error. This is the code I put together after reading some threads on it. Can anyone help? var apiKey = "123456"; var Query = "some search"; var Location = "San Jose, CA"; var Sort = "1"; var SearchRadius = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18452322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is it possible to copy the default frambuffer to a framebuffer object without showing anything on the screen? If so, I can save the content of the FBO as an image file. Other question: This image will have a resolution related with the screen? Or, it will have the same resolution as the input image that was texturiz...
{ "language": "en", "url": "https://stackoverflow.com/questions/31686577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert R text variables into Latex expressions keeping normal formatting I want to create Section headers with a for loop and have managed to do this however the text is stuck in math mode formatting. I've tried using Latex syntax to undo this however it did not work as expected: Code: --- title: "Troubleshoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/56178556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to erase string completely in VB6? I want to erase confidential string like password, creditcard number from memory. In C#, there is a class named SecureString. But In VB6, I didn't find any solution. Is there a way to erase string completely from memory? A: A SecureString is encrypted while at rest ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32622849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove sections of audio in SoX What's the easiest way to remove the specified sections of a wav file using SoX? Right now I use the trim command to break up the file and then concatenate the parts. However, that seems a little tedious and backwards since trim takes a section of audio and copies it to a new file, so...
{ "language": "en", "url": "https://stackoverflow.com/questions/31881106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Trying to print only string data I'm trying to get the for-loop and if statement to just print out string data only. var languages = { english: "Hello!", french: "Bonjour!", notALanguage: 4, spanish: "Hola!" }; // print hello in the 3 different languages for (var x in languages) {...
{ "language": "en", "url": "https://stackoverflow.com/questions/33985410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular Bootstrap UI - how to save data from modal directive to controller? I am using Angular Bootstrap UI in my project. I have a directive 'HelpDirective', which is used in different controllers. That directive calls HelpService which opens a modal and after it is closed the data is supposed to still remain in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/34991186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: find the source of duplicate data in an Ember.js view A while ago I made a chatting app using Socket.io, Redis and Node.js. Recently, a friend forked my repository on Github and implemented the same chat implementation in Ember.js. I figured I'd help along, because a lot of the stuff he added broke a lot of the func...
{ "language": "en", "url": "https://stackoverflow.com/questions/14932594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongoose Schema TypeScript Error + Index signature for type string is missing I am using inversify in my express API for dependency injection and I am trying to define my schema using typescript 4.9.4 if I downgrade to 4.3.2 the error goes away but if possible I would love to figure this out. Interface export interf...
{ "language": "en", "url": "https://stackoverflow.com/questions/74974446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using the finance gem in a rails project I am trying to use the "finance" gem for a rails project. I have successfully installed the gem by editing my Gemfile and using "bundle install". I have included the line: application_controller.rb include Finance This allows me access to the finance gem functions in control...
{ "language": "en", "url": "https://stackoverflow.com/questions/11479236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does order of constructors / cases / guards / if-then-else matter to performance? I saw this comment in Containers/Data/Set/Base.hs -- [Note: Order of constructors] -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- The order of constructors of Set matters when considering performance. -- Currently in GHC 7.0, when type has 2 cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/27323911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Local Host is not sending any data Whenever i ran this node server on Port "8000" const http=require('https') const PORT=8000 const server=http.createServer() server.on('request',(req,res)=>{ if (req.url==='friend'){ res.writeHead(200,{ 'Content-Type':'text/plain', }) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70945369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix redux-observable Parameter 'action$' implicitly has an 'any' type I am trying to implement TS epic function, but "action$" need to have some implicit type that differs for , i could not find working example of this type of function... I made function that works just fine but i cant fix TS error of ANY typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54516933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create a record and add an image in database in TYPO3 I use TYPO3 version 10.4.21 and I created an own extension for leaflet. In frontend I can't see a picture. My code in js-file for now: var map = L.map('map', {crs: L.CRS.Simple}); var bounds = [[0,0], [750,1200]]; L.imageOverlay("../Parks/Park.png", bounds...
{ "language": "en", "url": "https://stackoverflow.com/questions/70708141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding multiple columns to excel from TCL I'm trying to add multiple columns to excel from TCL. Here is the code set rows [array size atten] set columns { B} for {set row 1} {$row <= $rows} {incr row} { foreach column $columns { $cells Item $row $column $atte...
{ "language": "en", "url": "https://stackoverflow.com/questions/9577040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to set encoding of a variable when passing between ASP pages Let's say I have page A, which uses ks_c_5601-1987(Korean) as encoding and page B, using UTF-8 (Korean) as encoding. I need to pass a string variable from A to B that is in Korean. Because two pages use a different encoding, the variable gets jumbled u...
{ "language": "en", "url": "https://stackoverflow.com/questions/14702226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apache CXF dependencies We are in the process of upgrading our JDK(Tomcat), we upgraded CXF to 3.2.12 from 2.4.0 and we were getting an error which was fixed by adding -Dorg.apache.cxf.stax.allowInsecureParser=1 as an JVM argument based on this CXF web service client: "Cannot create a secure XMLInputFactory" but I d...
{ "language": "en", "url": "https://stackoverflow.com/questions/60403425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using termios in Swift Now that we've reached Swift 2.0, I've decided to convert my, as yet unfinished, OS X app to Swift. Making progress but I've run into some issues with using termios and could use some clarification and advice. The termios struct is treated as a struct in Swift, no surprise there, but what is s...
{ "language": "en", "url": "https://stackoverflow.com/questions/31465943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Updating UI from another Thread extended Class What I want to do: [Web Scraping with Jsoup] Adding elements to a TableView from an another Thread extended Class. Button click -> start Thread -> Thread add elements to TableView. Files |javafxapplication5 |-->FXMLDocuments.fxml |-->FXMLDocumentController.java |-->Java...
{ "language": "en", "url": "https://stackoverflow.com/questions/64470319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Apache Wicket application global settings for database connection I wrote small web application with wicket and sql2o. I have several DAO classes where I create new Sql2o instances with hardcoded username and password: Sql2o database = new Sql2o("jdbc:oracle:thin:@127.0.0.1:1521:test", "test", "test"); If I change ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21286040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can I run a command in Tkinter without Button so basically I'm trying to make a command line interface using python and I have text area where commands are being entered. what I wanted to achieve is each command is executing without pressing the button at all( simply on pressing enter) A: You can bind the Enter key...
{ "language": "en", "url": "https://stackoverflow.com/questions/60402442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: zend framework project shows blank page without any errors i created a simple project with zf and it works fine, but when i copy it to other pc it just show a blank page without any page or errors ? my zf version is 1.9 and in other pc zf version 1.9 too what do you do about this problem? A: Do you have error repo...
{ "language": "en", "url": "https://stackoverflow.com/questions/2539965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Double buffered ListBox I have a CheckedListBox (WinForms) control (which inherits from ListBox; googling shows that the problem is with ListBox) that is anchored to all four sides of its form. When the form is resized, the ListBox has an ugly flicker. I tried inheriting CheckedListBox and setting DoubleBuffered t...
{ "language": "en", "url": "https://stackoverflow.com/questions/1131912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Java BigDecimal divide What am I doing wrong here? Pretty sure this is right, I'm able to print the total, but then it breaks on calculating average. public static void main(String[] args) { BigDecimal test1 = new BigDecimal("67"); BigDecimal test2 = new BigDecimal("76"); BigDecimal test3 = new BigDecim...
{ "language": "en", "url": "https://stackoverflow.com/questions/42616046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any other way to stop persistence of field(which is also a domain class object) in a Grails domain class other than using transient keyword? class ContentA{ String name ContentB[] contentBList } class contentB{ Long typeId String typeName } Both ContentA and ContentB are domain objects which will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27314342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loop over List of ints vs List of Dictionary in Python I want to know why changing a variable in python's for loop changes dictionary element but not list? In another word I want to compare following codes with each other, why the output is different? list1 = [10, 20] for item in list1: item += 1 print(list1) # ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57544175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I paint / repaint / paintComponents outside of the JViewport in my JScrollpane? I have a class that extends JFrame and pops up a window (frame). I successfully added a jpanel and a jscrollpane that uses that panel. I have a Jbutton on the jpanel that uses actionlistener and will call repaint (or paintComponen...
{ "language": "en", "url": "https://stackoverflow.com/questions/9382645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: php maverick htaccess not parsed on port :8888 I've install a dev environment on my mac running os x maverick and everything works fine excepted url rewriting. To be exact, when I go to localhost on the default port, it works. but when I go to the website folder in terminal and I start apache on the port :8888 using...
{ "language": "en", "url": "https://stackoverflow.com/questions/22541727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting ActionBarSherlock Theme for Android app READ UPDATE 2 BELOW FOR THE ANSWER I'm trying to use ActionBarSherlock in my app. I checked out the 4.0.0 release from the project github repo, built it in Netbeans, then copied the library-4.0.0.jar file into my project's lib directory (I'm not using Eclipse). It's ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/9757400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: I have a data structure defined as QMap, how may I sort this by value? I have a randomly generated a list of integers and populated a QMap with these values but i would like to get the QMap sorted by value A: This is a demonstration of how to sort a QMap <int, int> by value and not by key in qt C++. The values of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/13463698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting webpage into HTML I want to convert a webpage into an HTML page programatically.I searched many sites but only providing details like converting into pdf format etc.For my program now I'm saving a page as .html and then extracting the necessary data.Is there any way to convert the webpage to an html page...
{ "language": "en", "url": "https://stackoverflow.com/questions/23267017", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: User Pool allows two users with same email despite configuration Background I'm using aws-amplify to interact with Cognito. So when a user registers with my app, I call Auth.signUp(). I'm passing only username (email) and password to this function. My user pool is configured to allow sign in by email only: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50730759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Programmatic import in Python 3? Say I have a directory foo that contains some .py files. Each of these python files has a class Bar defined. Say there were three .py files called baz.py, qux.py and quux.py - then to get the bar classes I could write: import foo.baz import foo.qux import foo.quux bars = [ foo....
{ "language": "en", "url": "https://stackoverflow.com/questions/65260813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to install Kafka inside a docker image? I am working on docker for the first time where I am trying to run my pyspark code on a docker container. This my project structure. My Dockerfile content: from gcr.io/datamechanics/spark:platform-3.1-dm14 ENV PYSPARK_MAJOR_PYTHON_VERSION=3 WORKDIR /opt/application/ RUN...
{ "language": "en", "url": "https://stackoverflow.com/questions/71724263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }