text
stringlengths
15
59.8k
meta
dict
Q: How to measure the data usage of my app in react native? I have a react-native app that I want to measure the data usage per user and gather them to optimize it later. I saw old questions for native android suggesting that trafficStats may give stats by UUID. What possibilities are there for react-native? A: Usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/45572570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: SQL Stored Procedure WHERE CLAUSE Variable I have a stored procedure and I cant work out how the string is meant to be built up. The SQL statement works fine when I do not have a variable in there so it is definitely the way I am writing it in. I am just a beginner so unsure about the syntax. Here is the code: CREAT...
{ "language": "en", "url": "https://stackoverflow.com/questions/24327532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Set colour of series dynamically from an array AM CHARTS I am using amCharts and have the graph working the way I want. I am trying to change the colour of the column series based on a HEX code stored in a dataset. My data is stored in an array: Array example: colour: "#629632" dt: "2020-09-03T00:00:00" max: 0 min: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64785108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Winsock server message isn't showing on client side terminal I created a simple TCP server listening on 8080 port that sends a message to the client once a connection is established. Here's the code. #include <iostream> #include <winsock2.h> #pragma comment(lib, "ws2_32.lib") #pragma warning(disable:4996) int mai...
{ "language": "en", "url": "https://stackoverflow.com/questions/46351658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: EL: how to print static variables? I have the following JSP page: <%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%> test #1: value of PI is <c:out value="${java.lang.Math.PI}" />. test #2: value of PI is ${java.lang.Math.PI}. test #3: value of PI is <%= java.lang.Math.PI %>. Somehow, only test #3 has outpu...
{ "language": "en", "url": "https://stackoverflow.com/questions/5892593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Aligning Text in android Email Intent I am working on an application in which I have some default text to be sent to some friend through email. To serve the purpose, I am defining the default Text as HTML string using (text/html) as intent type. I am having a problem aligning the text to center. All other tags are w...
{ "language": "en", "url": "https://stackoverflow.com/questions/11685664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tomcat 7 Guava issue? I'm working on a JSF2, MyFaces and Guava website. Earlier i deployed it on a Glassfish v3 server with no problem. Now i get this strange error when i trying to deploy it on my tomcat 7 server: YYYY-MMM-DD HH:mm:ss org.apache.catalina.startup.ContextConfig checkHandlesTypes VARNING: Unable to lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/13140999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting an old (4.2) laravel with multiple datasources to new API based datasource for one I have an older Laravel App that has 7 different databases in the app/config/database.php file, the type of databases are not even consistent 4 different types mysql, pgsql, sqlite and sqlsrv. The SQL Server is being repla...
{ "language": "en", "url": "https://stackoverflow.com/questions/65152572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot get value from array I seem to be having a problem checking if a string exists in my array. There is probably a really obvious answer to my question do forgive me but I'm new to PHP. Anyway here is my code: while($row = mysql_fetch_assoc($result)) { $result_array[] = $row; } if (in_array("496891", $resul...
{ "language": "en", "url": "https://stackoverflow.com/questions/11152296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Directly rename legend in word, when data is not available I have a scatter plot now in microsoft word. It seems this plot was created in excel and copied into word keeping source formatting. The legend in the plot is incorrectly labelled which looks unprofessional. Normally I would go to select data and rename the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35845855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to populate input type file/image value from database in PHP? I am writing the code for editing a form that contains an input file field. I am getting all the values pulled from database for different field types but the file type input does not show its value. I have a code that looks like this: <input name="ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/21952065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to alphabetize a list on C++ I have been having some trouble on my code for my final project. I have looked everwhere and I am having a hard time so I thought I would ask on here. I need to make sure that when all the names are listed in this phonebook that they will come out in alphabetical order but as of yet ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29832688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Migrating MySQL database to Firebird Server 2.5 I have a MySQL 5.5 database that I wish to migrate to Firebird Server 2.5. I have no issues with an existing MySQL database but after MySQL's acquisition, I am worried about the unavailability of Community Edition any time soon. I want to migrate to a true and robust R...
{ "language": "en", "url": "https://stackoverflow.com/questions/7545346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use scipy optimize.minimize function to compile keras sequential model using conjugate gradients? In model.compile(loss=keras.losses.mean_squared_error, optimizer=minimize(method='CG',fun=keras.losses.mean_squared_error(train_label,model.predict_classes(train_X)),x0=x0), metrics=['accuracy']) File "/usr/lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/54315014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating an order in Django Hi everyone I have a few questions about the django admin. First the relevant details. I currently have Client, Printer, Cartridge, and Order models. The Printer model has a ManyToManyField to the Cartridge model, which would allow you to select all the cartridges that can be used with th...
{ "language": "en", "url": "https://stackoverflow.com/questions/930379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Comparator: Comparing 2 objects with field which can be null I need to write a Comparator by implementing a typical compare-method of a default comparator. This is given due to the interface I need to implement. My objects are products with an Integer field vintage which can be null. Code is as following: @Override...
{ "language": "en", "url": "https://stackoverflow.com/questions/50022167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Method that changes even digits to zero I need to write a method that receives a number, and for any even digits in it, replaces them with the 0 digit. I think I'm going in the right direction, but when I run it with the debugger, I seen the even numbers don't return to 0 in even digit. This is what I have so far. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/48388096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Different mysql trigger from C app and mysql console I have a strange question. I have created a C program, that creates triggers on mysql database. There is one problem with that. When I create triggers manually from mysql console, everything works fine, but when my C program creates triggers, they are some kind a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42630150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selenium Actions Class cannot be resolved in selenium version greater then 3.1 We are using selenium 2.5.2 for our Java tests. And we decided that it is time to move forward to the latest selenium version (currently 3.14). After downloading selenium 3.14 from https://www.seleniumhq.org/ and adding it to our project,...
{ "language": "en", "url": "https://stackoverflow.com/questions/52027324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: writefln() throws: Incorrect format specifier: %(%s, %) Why does it throw exception: import std.stdio; void main(string[] args) { try{ writefln("My items are %(%s, %).", [1,2,3]); }catch(Exception x){ writefln("oops: %s", x.msg); } } (you can build and test the code at Ideone.com) The r...
{ "language": "en", "url": "https://stackoverflow.com/questions/24510678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unexpected row count in Nhibernate when deleting parent records with associated child records I have a parent table, Orders and a child table, [Order Details], I have setup the fluent mappings as - (In the parent Order class) HasMany<OrderDetails> (x => x.Details).KeyColumn("OrderId").Cascade.AllDeleteOrphan().Inve...
{ "language": "en", "url": "https://stackoverflow.com/questions/2282626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loading the Different Nib Files I created two nib files for the iPhone and iPad, so my app will be universal. I use this method to check if it is an iPad: if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) but I don't know how to load the proper nib when it knows which it is. Does anyone know the correct met...
{ "language": "en", "url": "https://stackoverflow.com/questions/6280442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lightbox gallery inside modal window When I open the modal window I want to be able to have lightbox in my gallery that's in the modal. However, when I click on the image to start the lightbox, nothing happens and when I close the modal window, the lightbox is opened. Probably it opens behind the modal. Any ideas on...
{ "language": "en", "url": "https://stackoverflow.com/questions/60791106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replace a newline with underscore '_' in bash variable I know I can replace a newline with a space using sed (in a file) using sed ':a;N;$!ba;s/\n/ /g' file.txt But how can I replace a newline with a underscore '_' in a bash variable? I tried to replace it with a space to test it out but that didn't work see what I...
{ "language": "en", "url": "https://stackoverflow.com/questions/59194176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overloaded methods in the class must have different Erasures - why only leftmost bound is considered to be the Erasure type? Consider the following two method definitions: static <T extends Do & Done>T whatToDo(T ele){return null;} static <R extends Done & Do>R whatToDo(R ele){return null;} Both will have the follo...
{ "language": "en", "url": "https://stackoverflow.com/questions/69865357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook graph api obtaining newsfeed data Hello anyone know how to get the newsfeed data from facebook graph api.Newsfeed as in not the timeline but me/home which is the actual newsfeed in home tab of the facebook .
{ "language": "en", "url": "https://stackoverflow.com/questions/62603944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pattern for sharing a large amount of data between the web application and a backend service in a Service Oriented Application I have a web application which performs CRUD operations on a database. At times, I have to run a backend job to do a fair amount of number crunching/analytics on this data. This backend job ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32540610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get all Photo file for xamarin.forms in IOS I want to implement based on Xamarin.Forms cross platform, Android and iOS respectively obtain the function of photo albums or pictures under the platform Use scenarios such as I have a page with all the pictures for users to choose from, for example, We-chat choose...
{ "language": "en", "url": "https://stackoverflow.com/questions/71246174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In c++ we declare a vector like this. std::vector v(6); how to do it for two dimensional vector std::vector<int> v(6); how to declare a two dimensional vector with limits like above code for one dimension I'm a noob in c++. I tried like this: ` std::vector<int> v(6)(2); ` I expected a two dimensional vector with 6...
{ "language": "en", "url": "https://stackoverflow.com/questions/74274934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javascript object property cannot be defined I have declared an object in JS and trying to assign a value to its properties. But I can do it when only one property is defined, but not with more than one property. This works fine: let User = { name }; User['name']='Praveen'; alert(User.name); But this doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/53251085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Floating number comparing in tcl I am getting problems when I calculating distance between point and line. There is floating point number calculation (compare expression) problem. Due to this I not able to know perfect value of $onextensionFlag. please see following... May I know what is wrong? proc calculateDistanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/5257707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can an Image crop, resize be expressed as an affine transformation? I've got an image that gets cropped and resized to the image input size. To my understanding this is the same as an affine transformation. I am trying to simplify the code below so it does the same by using the function: (something like the exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/32619184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Converting BNF to EBNF confused about the difference between left and right recursion I have this BNF rule: <S> -> <A> b | <A> b <C> <A> -> a | a <A> <C> -> c | <C> c i want to turn it into EBNF rule however i am confused about the left and right recursion in the <A> and <C>, how will it differs in EBNF or they...
{ "language": "en", "url": "https://stackoverflow.com/questions/61466422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cdap sandbox won't start - Unable to read transaction state version I have installed the binaries for the CDAP sandbox using the recipe found here. I was building a plugin and may have had a debugger blocking work. I rebooted my Linux PC on which the sandbox was running and now when I try and start the CDAP sandb...
{ "language": "en", "url": "https://stackoverflow.com/questions/64196056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Input, Process, and Output pairs of data We have a text file that contains drug administration data. Each line contains a patient ID, an administration date and a drug name, formatted as follows: A234,2014-01-01,5FU A234,2014-01-02,adderall B324,1990-06-01,adderall A234,2014-01-02,tylenol B324,1990-06-01,tylenol .....
{ "language": "en", "url": "https://stackoverflow.com/questions/40835432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Swift - Segmented control - Switch multiple views Until now I still can't figure how to switch multiple views in one view controller. My storyboard is like this one. Right now I want to embed two views inside my view controller. My code for segmented control to switch two views in one view controller so far. impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/27956353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "58" }
Q: How to connect output layers to the input layer of another neural network? The Actor-network has 5 input neurons representing the state values and will produce one output value held by one output neuron. The Q Network has 6 input neurons: 5 representing the state values and 1 representing the output of Actor-networ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62140076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get a random CGFloat for a constraint? I'm trying to randomize a leading constraint for a button in swift. To activate this I am selecting a button. When I select the button for the first time, it works well, but all the times after this, it shows a lot of errors in the NSLog. Here's the code: let button = UI...
{ "language": "en", "url": "https://stackoverflow.com/questions/34483959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pick main color from picture I'm new to Dart/Flutter framework and I'm still exploring their possibilities. I know in Android it's possible to take a picture and extract the main color value from it programmatically. (Android example) I wonder, how would this be achieved in pure Dart? I would like it to be compatibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/50449610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How can i return different value from what was in the dropdown in dart? I am working with dropbox, but what i want to do is retrieve value depending on what the user chooses on the dropbox; for example the users picks "apple" on the dropdownbox what i want to return will be "Vitamin C" Here is what i have so far: St...
{ "language": "en", "url": "https://stackoverflow.com/questions/67281492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java lazy reading of XML file? I am wondering how I can lazily read a large XML file that doesn't fit into memory in Java. Let's assume the file is correctly formatted and we don't have to make a first pass to check this. Does someone know how to do this in Java? Here is my fake file (real file is a Wikipedia dump w...
{ "language": "en", "url": "https://stackoverflow.com/questions/33771933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Distinct character SET of substring in string Suppose a SET is all distinct character in a string. I need to find out count of such distinct SET made from substrings in a string. 2 SETS are same when they have same characters in them. eg:-string=ABBC answer=6 distinct character sets of substrings are:{A},{B},{C},{A...
{ "language": "en", "url": "https://stackoverflow.com/questions/67773674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Issue integrating Node js with dialogflow I have created a Google Dialogflow agent, now I am trying to integrate it with a node js app so that I can create a custom UI for the chatbot. I have followed the instructions in the document... Enabled API for the project, generated the JSON key. Below is my code: const di...
{ "language": "en", "url": "https://stackoverflow.com/questions/62386006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mutating a slice of an array doesn't work import numpy as np def solve_eps(eps): A = np.array([[eps, 1, 0], [1, 0, 0], [0, 1, 1]]) b = np.array([1 + eps, 1, 2]) m_21 = A[1, 0] / A[0, 0] m_31 = A[2, 0] / A[0, 0] print("What A[1, :] should be:", A[1, :] - A[0, :] * m_21) A[1, :] = A[1, :] - A...
{ "language": "en", "url": "https://stackoverflow.com/questions/48798227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Update Stored Procedure - only update certain fields and leave others as is I'm currently making a stored procedure which will update a products details. I want to make it (if possible) so that only the fields entered under 'values' column when being executed are updated and the rest remain the same as before. ALTER...
{ "language": "en", "url": "https://stackoverflow.com/questions/43612860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: gpg verify of GNU Emacs download fails - Did I do it correctly? I have downloaded a GNU tar archive (emacs-26.1.tar.xz) and now want to verify it against its signature file. gpg returns with the verify option the following output: gpg: no valid OpenPGP data found. gpg: the signature could not be verified. O...
{ "language": "en", "url": "https://stackoverflow.com/questions/51074734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Null pointer exception to check whether a xml have the element or not My part of code is below see, NodeList nodes=doc.getElementsByTagName("user"); if(nodes.getLength()==0) system.exit(1); Initially, xml dont have user element. But, I got an null pointer exception. How to solve this... And how do I find the no of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32698817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Optimal solution for non-overlapping maximum scoring sequences While developing part of a simulator I came across the following problem. Consider a string of length N, and M substrings of this string with a non-negative score assigned to each of them. Of particular interest are the sets of substrings that meet the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/1409374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 99 Current browser version is 105 I am currently new to robot framework. currently using latest version of chrome and ChromeDriver which is 105 but when i try to run the test it gives the message "Sess...
{ "language": "en", "url": "https://stackoverflow.com/questions/73813019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Setting parent window URL from a child window? This is what I am trying to do: Once submit a form on my main JSP/HTML page a new page with some link opens. When I click on any of the link the link should open in the parent Window. I.e the Window I started from. How do i do this? A: You'll need JavaScript for this. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3553751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Deleting a Jtable row from a custom model extending AbstractTableModel I have a JTable that is using a custom model i have designed. This model is extending the AbstractTableModel as shown below. I have a button Delete that I would want when clicked will delete the selected/highlighted row Here is my table model: pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/28231979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding out zero frequency values from a column with inner join I have two tables named courses and teachers. I need to find the list of teachers who don't take any courses. This is the query I wrote for getting the teacher who took the most numbered courses - SELECT t.name AS teacher_name , COUNT(c.teacher_id...
{ "language": "en", "url": "https://stackoverflow.com/questions/65869048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Google api 3 returning nothing when WEB APi is published I have made a simple ASP.NET Web API that gets events from a shared google calendar, and serves them to me in json. When i fire it up from localhost i get 104 events returned: but when I've published it to my IIS server, the array contains no elements. I can'...
{ "language": "en", "url": "https://stackoverflow.com/questions/28508379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stripping value in PS and comparing if it is an integer value I am running PS cmdlet get-customcmdlet which is generating following output Name FreeSpaceGB ---- ----------- ABC-vol001 1,474.201 I have another variable $var=vol Now, I want to strip ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/51937717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Word VBA Tabstop wrong behaviour I have the following VBA code Private Sub CreateQuery_Click() Dim doc As Document Dim i As Integer Set doc = ActiveDocument i = doc.Paragraphs.Count doc.Paragraphs(i).Range.InsertParagraphAfter i = i + 1 For j = 0 To 1000 doc.Paragraphs(i).Range.InsertParagrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/1163975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IntelliJ IDEA: Move line? I really like IntelliJ IDEA's "Move statement" shortcut (Ctrl + Shift + ↑/↓). However -- I am not sure if this is a bug releated to ActionScript editing only -- move statement is not always what I want and sometimes it is not correct when editing AS code. So I just want to move a block of l...
{ "language": "en", "url": "https://stackoverflow.com/questions/1889561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "107" }
Q: Defining the BinarySearch for a user defined class in Java I have defined a class for storing the GPS data in Java as follows : class data implements Comparable { float lati; float longi; int time; // Time in seconds public int compareTo(Object obj) { data t =...
{ "language": "en", "url": "https://stackoverflow.com/questions/22709632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SOAPBinding.ParameterStyle.BARE vs SOAPBinding.ParameterStyle.WRAPPED : generated less parameters on request I use SOAPUI and generate java classes with JAX-WS import. I have an interface like this @WebService(name = "test", targetNamespace = "http://lang.java") @SOAPBinding(parameterStyle = SOAPBinding.ParameterSty...
{ "language": "en", "url": "https://stackoverflow.com/questions/26767801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Production Build Has Error: Uncaught ReferenceError: define is not defined I am basically just trying to serve a new ember created project on my production server. After running, ember build --env production And taking the files from dist/assets/ and putting on a page on my server that includes them I get the error...
{ "language": "en", "url": "https://stackoverflow.com/questions/42303668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: nativescript carousel by javascript I want to create a horizontal scroll-view with stack-layout similar to 'olx' app. But the problem i am facing is to achieve endless scroll or carousel like scroll. in the below link, carousel template was already implemented but it was too complicated to understand. https://play.n...
{ "language": "en", "url": "https://stackoverflow.com/questions/54495865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to extract search keywords from Google search result page URL by Swift? How do you extract search keywords from Google search result page URL by Swift? I was simply trying to get stings after "&q=" but I found out I needed to consider more complicated cases such as "https://www.google.co.jp/search?hl=ja&q=test#q...
{ "language": "en", "url": "https://stackoverflow.com/questions/35658342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why is the string 'andy' not printing please enter a new username? current_users = ['Andy', 'Brett', 'Cassie', 'Derek', 'Eric'] new_users = ['eric', 'greg', 'hank', 'ian', 'john', 'andy', 'frank'] new_users.sort() for current_user in current_users: current_user = current_user.lower() for new_user in new_users:...
{ "language": "en", "url": "https://stackoverflow.com/questions/60312954", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the list of duplicated values in a range I tried recording the macros but it's using copying and pasting, but I prefer the codes to be dynamic as the range of my data changes weekly. I have 2 columns, A & D. Column A is a pivot table, so I think, maybe that's why VBA codes for moving down rows don't work....
{ "language": "en", "url": "https://stackoverflow.com/questions/40598440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Extracting text after "?" I have a string x <- "Name of the Student? Michael Sneider" I want to extract "Michael Sneider" out of it. I have used: str_extract_all(x,"[a-z]+") str_extract_all(data,"\\?[a-z]+") But can't extract the name. A: I think this should help substr(x, str_locate(x, "?")+1, nchar(x)) A: Try...
{ "language": "en", "url": "https://stackoverflow.com/questions/30275708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Haystack and Solr- Fail To Clear Index I wanted to implement a search feature for my web app. I choose Haystack and Solr. After following the procedure in the docs. I tried to rebuild solr index ( python manage.py rebuild_index ) but I'm getting the below error. What I'm I missing? WARNING: This will irreparably ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11140116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to stop puppeteer from overwriting duplicate? I have to write a program as a schoolproject which automaticly screenshots the gasprices from 10 locations for 2 months . I used puppeteer and it works. However if i start it again it overwrites the files because they have the same name. I locked for solutions but co...
{ "language": "en", "url": "https://stackoverflow.com/questions/73204914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android reload grid view custom adapter While I have a working 'solution' I really don't like it and think it will lead to memory issues. Ultimately I have an activity that comprises of a GridView which is populated by a Object Array - subjectsArrayList On the activity I have a button where I want to 'reload' the ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/56651770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why are the document getter functions being reset? I am trying to create a small chrome extension to help find where cookies are using in websites. The extension is SUPPOSE to work by setting the getter method for the cookie on the document. Like so: document.__defineGetter__('cookie',function(){ alert("test"); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36368923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decorated python function with parameters only used by the decorator are seen as unused I have a number of functions that are RPC calls and all have to prepare several things before the main task and to do some cleanup afterwards. Especially their first two parameters are logname and password which are needed to set...
{ "language": "en", "url": "https://stackoverflow.com/questions/73732117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Static Quick Actions not working in objective c iOS I am very new to the iOS Application development and I have been following tutorials to build my career . So starting with I am trying to Implement Static Quick Actions in Objective C as per client project . I was able to add the keys and got the options while pres...
{ "language": "en", "url": "https://stackoverflow.com/questions/64792591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which is a good library/framework to use for single sign on in a java web app with ADFS 2 integration We are currently exploring OpenAM & Shibboleth. Our app is not built using Spring and we are not exploring use of Spring. A: In terms of libraries, the only one I know of is OpenSAML. I wouldn't call things like O...
{ "language": "en", "url": "https://stackoverflow.com/questions/11755196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to interact with another android app in tamper-proof way I am developing an app, which is soft dependent on what a user does in another app. E.g. my app may allocate a reward to to a user who shares our image on Instagram. What can be the best way for my app to verify that the user has done this action. Let's sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/68331876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Netbeans: Launch web application into PC host name and not localhost Anyone know if there's a way to have netbeans launch the website using url http://mycomputer.domain.com:8080/mywebapp instead of http:// localhost :8080/mywebapp ? I've tried editing the server.xml and other references to localhost but it doe...
{ "language": "en", "url": "https://stackoverflow.com/questions/17336818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TextBoxes randomly disappearing I have developped an Outlook addin in order to transfer some mails to an external ERP and all was working fine until some months ago. Since then, on one of the dozens computers on which it works perfectly fine, three TextBoxes started to randomly disappear. I've put some log, since it...
{ "language": "en", "url": "https://stackoverflow.com/questions/61779478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Twistd TAP change log verbosity I am currently writing an application that is meant to be started using Twisted's twistd script as a plugin. However my code is currently very verbose logging quite a bit of information. When running my application a a twistd pluging is there any way that I can filter the log messages...
{ "language": "en", "url": "https://stackoverflow.com/questions/6190166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding Subject to Lync Chat from javascript using sip action I am able to open lync for a particular user on intranet which is perfectly working fine using : sip:username@domain.com But i am looking if i can initiate the lync with some subject from javascript , anything like the following: sip:username@domain.com?...
{ "language": "en", "url": "https://stackoverflow.com/questions/50116489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jmeter not considering local domain in Server name or IP while test script recorder with Mozilla I am using Jmeter 4.0 for the first time and when I am trying for test recording with Mozilla linked to Jmeter, i am able to record .net and .com sites but I am unable to test my application deployed in the server and ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/51297796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CentOS7: copy file and preserve SELinux context In order to configure my CentOS system, I'd like to overwrite an arbitrary file preserving almost every attribute but timestamp and content. As an example, I'll use /etc/phpMyAdmin/config.inc.php Note: file being copied is in other filesystem [root@localhost phpMyAdmin...
{ "language": "en", "url": "https://stackoverflow.com/questions/43867771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: select only one value in 1:N relation i want to have only one value in the result of the query which is the first value, or the last value, i tried many things but i coudnt resolve it, the query is too long but i picked for you only the part where i am stucked. select eccev.extra_data , c.id, case when (eccev.e...
{ "language": "en", "url": "https://stackoverflow.com/questions/69709231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Serialization detection? class MyClass implements Serializable{} What must I write so that the Object knows when it is getting serialized and deserialized to do something before getting serialized and after getting deserialized? A: You can use readObject and writeObject methods for this purpose. writeObject method...
{ "language": "en", "url": "https://stackoverflow.com/questions/32127487", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image compresser webp in angular I am working on uploading images that are mostly taken from Hi-Res Cameras. But it is really increasing the upload time since the file sizes are 5-10MB I am using angular & I want to compress the image without loss in quality. I came across WebP and thought of implementing a converto...
{ "language": "en", "url": "https://stackoverflow.com/questions/70935723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Godaddy subdomain issue with htaccess I'm trying to understand what's wrong with my htaccess file. I'm placing my site under a subdomain in which the subdomain points to the www folder. The folder structure of the site is: project ----app (controllers, models, etc) ----www (index.php, js, styles) The htaccess is: R...
{ "language": "en", "url": "https://stackoverflow.com/questions/36463282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pickle in python, writing to files if group == 10G2: file_name='10G2 Scores.txt' fileObject = open(file_Name,'wb') pickle.dump(+str(name) + ' got ' + str(finalscore) + ' percent from ' + str(totalquestions) + ' question(s), this is ' + str(score) + ' out of ' + str(totalquestions) + '.') ,fileObject) fileObject.clo...
{ "language": "en", "url": "https://stackoverflow.com/questions/33858690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Logging a literal message in NLog and/or Serilog UPDATE: This turned out to be a discrepancy that exists in Serilog (which I tunnel to), but does not exist in NLog, which treats a single argument as a verbatim string (as one (and specifically, I) might expect) Using NLog, if I want to log something potentially cont...
{ "language": "en", "url": "https://stackoverflow.com/questions/49678739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Proper use of Class Inheritance Javascript OOP There seems to be some problem on my syntax but I don't know what seems to be the problem. I am using prototyping inheritance (if I'm not mistaken) The program should be like this: * *The class must inherit the features of the parent, so when I call on the function i...
{ "language": "en", "url": "https://stackoverflow.com/questions/22265001", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set SelectedValue in combobox that populated from Data Table in c#? I have a Combobox in my form. This Combobox is populated with values from a table(Faculty) in the database. I need to set the SelectedValue of this Combobox based on the record in another table(student). Both tables are in the same database. I trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/61358613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xcode UIProgressBar does not increment I am trying to increment progress bar and show percentage on a label. However, both remains without changes when "incrementaProgres" function is called. IBOutlets are properly linked on xib and also tested that, when function is called, variables have proper value. Thanks from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10121715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Best way to deploy an application that comes with lots of data I'm working on an Android application that will come with lots of data. I'd have expected to just distribute the SQLite database, but it's clear from researching this that the database can be included, but must be copied from raw to data, which if there'...
{ "language": "en", "url": "https://stackoverflow.com/questions/4010238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Create categorical variable from previous columns in R I have been trying to create a new categorical variable from previous binary variables. All the binary variables I'm trying to include (cough, fever, etc...) have values of either '1' or '0'. This is the code I've been trying: symptoms<-ifelse(cough==1,"cough",i...
{ "language": "en", "url": "https://stackoverflow.com/questions/72666197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Keras time series can I predict next 6 month in one time I use keras for time series prediction. My code can predict next 6 months by predict next one month and then get it to be input for predict next month again untill complete 6 months. That means predict one month 6 times. Can I predict next 6 month in one time....
{ "language": "en", "url": "https://stackoverflow.com/questions/53252152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I filter a list of words (string) by if the list element contains a string at a specific index? Say I have a word list of thousands of words. But, they're all the same length. so say for example, all 5 letter words, and I want to find all the words that have 'o' as the middle letter (3rd position, 2nd in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74032096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Run scheduler using spring I have rest api. A starttime is passed to this rest api. I want to schedule a job after that particular time. This job will run only once. My application where I need to add this feature runs as windows service. I have written some code but that is never scheduled. Please advise. @Com...
{ "language": "en", "url": "https://stackoverflow.com/questions/24812634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loss of precision in decimal display of double Why is there a discrepancy in the display of the following value? double x = (double)988530483551494912L; System.out.printf("%f%n", x); -> 988530483551494910.000000 System.out.println(Double.toString(x)); -> 9.8853048355149491E17 System.out.println(new BigDeci...
{ "language": "en", "url": "https://stackoverflow.com/questions/72393237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Catching return value from Tcl in batch This is my Tcl script return 2 It is doing nothing, but just returning value 2. Now my batch script call this tcl file called foo. tclsh foo.tcl The return value can change from time to time and I need to get this value in the batch file. Is thr a way to do that. I am new to...
{ "language": "en", "url": "https://stackoverflow.com/questions/22701073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to upsert document in flask_MongoEngine I've currently got a model: class Ticket(db.Document): name = db.StringField #issue.key project = db.StringField() #issue.fields.project.key issue_type = db.StringField() #issue.fields.issuetype.name summary = db.StringField() #issue.fields.summary d...
{ "language": "en", "url": "https://stackoverflow.com/questions/45500147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress API works with VPN only? I'm working on a project on my localhost for sometime now, and i've recently tried to make it online. My project works perfectly on my localhost, and I can post new articles to wordpress blogs with no problem. The problem is, after uploading my project to a online web server ( Host...
{ "language": "en", "url": "https://stackoverflow.com/questions/14812900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL query to find maximum tax brackets I have a database table of tax brackets in a variety of locations with the fields: location, tax_bracket, and tax_rate. I need to create a query that will return a list of countries, with their highest tax rate, that have at least one tax bracket with a tax rate over X. How c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7212793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: javax.servlet.http.Cookie vs javax.ws.rs.core.Cookie Being new to web development, I need some help in understanding what is the difference between the javax.servlet.http.Cookie and javax.ws.rs.core.Cookie.I assume that the latter can be used to set cookie into the response of a rest service. But can we also set the...
{ "language": "en", "url": "https://stackoverflow.com/questions/28565561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Running NPM install locally deletes required packages from my package-lock.json. This causes Git actions to fail when running NPM ci? When I run npm install, remove or add any package (or do anything that changes the local package.json) and commit to a PR branch, I get the following error in the github actions "run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73815415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ code -calling a constructor of one class within a constructor of same class I am trying to compile this C++ code unfortunately, I failed to compile the code below. Can you help me by explaining why I am getting this error ? #include <iostream> #include <cstring> using namespace std; class student { private: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67846046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }