text
stringlengths
15
59.8k
meta
dict
Q: How do you map PubSub value of a GraphQL subscription in Apollo? I'm making a GraphQL backend in Apollo, and I'd like to use subscriptions. I followed Apollo's docs, and I've gotten basic subscriptions working using graphql-subscriptions. This package also comes with filtering via the built-in withFilter function. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/72636926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use a Visual Studio 6 compiled C++ static library in Visual Studio 2008? Is it possible to use a C++ static library (.lib) compiled using Visual Studio 6 in Visual Studio 2008? A: It really depends. Does the lib expose only 'extern "C"' functions where memory is either managed by straight Win32 methods (CoTa...
{ "language": "en", "url": "https://stackoverflow.com/questions/723416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Rally RestAPi-unable to update Test set results Though i am able to pull all the test cases present in a particular test set and modify or update all the test Results. Test set is not reflecting the verdict(pass/fail) after updating the Test cases in that Test set. If i navigate to one of the tescase detail page, i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20281308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to listen specific value in DynamoDB I'm using aws DynamoDB and I Want the user to listen a value inserted on a Json value. So when this value is changed the user will trigger a function in the app. Somebody know how to make it? A: You have to setup DynamoDB streams. A lambda function attached to the stream is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70139550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Program to check if N^2 number of elements can be converted to a N*N symmetric matrix? I was solving some problems on matrices the other day when this question hit me. Is there any way we can check if N^2 number of elements can be arranged in such a way that they form a symmetric matrix? For instance, if N=3, then N...
{ "language": "en", "url": "https://stackoverflow.com/questions/60910948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Slow loading of Images using Glide on RecyclerView I have a recyclerView with a grid layout, at a time 6 cards are being displayed on the screen and JSON with 10 objects are called and for image loading, I'm using glide Now Image loading was not up to the marking So I search more regarding Glide and found a method f...
{ "language": "en", "url": "https://stackoverflow.com/questions/58451416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change the pitch of a .wav file in Android? Can somebody tell me how to change the pitch of a wave file in Android? A: Android does not have such functions built in, and the process is not at all trivial. If you would like to try and code it yourself, I suggest looking at such algorithms as PSOLA, WSOLA and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2025903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ms Access Gathering data from subdatasheet Im trying to find a query which shows only fields with IS NULL from a subdatasheet column. So far I have: SELECT EmployeeId,FirstName,LastName,Salary FROM Employee WHERE ServiceDate IS NULL Within the EmployeeId there is an expandable subdatasheet and I'm trying to figure...
{ "language": "en", "url": "https://stackoverflow.com/questions/25014819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Sizes of tensors must match except in dimension 2. Got 16 and 32 (The offending index is 0) I'm getting following error : Sizes of tensors must match except in dimension 2. Got 16 and 32 (The offending index is 0) in following code: x1=self.avg_pool(l1) print('x1:', x1.shape) x2=self.avg_pool(l2) print('x2:', x2.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/69420157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: mod_rewrite rule for "www to non www" doesn't redirect sub-pages I have made a thorough search before I have asked this question here. Please hear me out: I am trying to redirect my blog from www to non www and it doesn't redirect any sub-pages. I have an http > https redirect in place as well and it works perfectly...
{ "language": "en", "url": "https://stackoverflow.com/questions/51213679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Search files in shared Google Drive I have the problem. Earlier I had the file for search in my own Google Drive. And the script worked. function checkInFiles(){ var nameJSON = 'jobToCAF'; var files = DriveApp.searchFiles('title contains "' + nameJSON + '"'); while (files.hasNext()) { var file = files....
{ "language": "en", "url": "https://stackoverflow.com/questions/69103989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Different Java behavior for Generics and Arrays Why does java allows inconsistent type to be entered into a generic object reference but not in an array? For Eg: When initializing array: int[] a = {1, 2, 3}; And, if I enter: int[] a = {1, 2, "3"}; //Error for incompatible types While for generics, import java.util...
{ "language": "en", "url": "https://stackoverflow.com/questions/42975464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I can't fetch array elements on view section that have been passed from the controller using foreach() method I passed the array that have been fetched from the model into the view section. The values are fetched on controller part as well as on the view part. The used the foreach() method to fetch the array element...
{ "language": "en", "url": "https://stackoverflow.com/questions/31875662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change ASP.Net Label text colour if contains '-' I'm trying to change the text/font colour of my ASP.net label if it contains a '-' symbol. This is a for a percentage change label so negative numbers need to be green and positive red. I keep getting TypeError: document.getElementById(....) is null I know window.onL...
{ "language": "en", "url": "https://stackoverflow.com/questions/51964225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Value is POSTED definitely but isset() says NO See the code give given below. I was fighting with this code since last 5 hours to know why isset() is evaluating the condition as false if value is posted exactly what it shall POST. If I uncomment the line no. - 4,5,6,7,8 and put rest of the code from line no. 10 to 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/12697319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: retrieve a picture stored in a folder Zk Tomcat I'm new in zk programming, I had stored pictures from my app to a folder out the server(tomcat) and I want to retrieve it , the folder is c:\temps and supposing the picture names is myPic.jpg when I write pics.setSrc("c:\temps\myPic.jpg"); it doesn't work for me what c...
{ "language": "en", "url": "https://stackoverflow.com/questions/23954543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Carrierwave video thumbnail I am using the carrierwave gem (http://github.com/jnicklas/carrierwave) for ruby on rails. How do I go about creating thumbnails for video uploads? In my previous implementation with Paperclip, I was using FFMPEG. How / where should this be done in Carrierwave? There aren't too many usefu...
{ "language": "en", "url": "https://stackoverflow.com/questions/4143549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I iterate over a file more than once? Currently, this code is giving me all lines from searchfile once. But with my newbie understanding, it should print out all lines from searchfile for every infile line! searchfile = open('.\sometext.txt', 'r') infile = open('.\somefile', 'r') for line1 in infile: fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/59047840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Object Detection on Cloud using React-Native Expo Complete React Native noobie here. I am trying to make an app in React Native Expo that will send an image to a cloud platform (still haven't decided on which one). The cloud will then recognize the objects in the image, put them in a square, and then return the imag...
{ "language": "en", "url": "https://stackoverflow.com/questions/65389770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Position of an element in webpage I am trying to get the (x,y) co-ordinates of an element in javascript. I am using offset of jquery. My code is: var offsets = $('#11a').offset(); var top = offsets.top; var left = offsets.left; console.log("Coordinates of re-ranker (top,left): " +top + "," +left) My...
{ "language": "en", "url": "https://stackoverflow.com/questions/21110108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: location based services - how to improve the location with RSSI, TA and ARFCN? I get LAC,CellId from my device. With these values I can know the Lat/Lng and, by triangulation, the area where the device is. I also get ARFCN, TA and RSSI. Is it possible to improve the location by using these values ? A: You need to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10872623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Call servelt from jsp inside tag How can I call a servlet from jsp inside an <a> tag and pass him a parameter ? <a href="???" /> I can write <a href="/servletName" /> but how to pass him a parameter ? A: yes You can do that in two ways: * *create a function with an ajax call to your servlet. *point your href ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30125037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Update Field based on another table's Field values i want to update a filed named "outofdate"(type date : 2015-01-14 10:03:11 ) based on another filed name "lastmodification" . i want to add 10 days to "outofdate" field where :outofdate < NOW() (actual date) My code is not working: Update * `mytable` set outofdate =...
{ "language": "en", "url": "https://stackoverflow.com/questions/28395557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to replace url hyphen(-) with underscore(_) in CodeIgniter 4 $routes->setTranslateURIDashes(true); I have tried this method in routes.php file but it's not working. Plz help A: Add to app/config/Routes.php: $routes->setTranslateURIDashes(true);
{ "language": "en", "url": "https://stackoverflow.com/questions/61710765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase authentication - onVerificationCompleted and onCodeSent both called I have question which is same as Firebase authentication - I get onVerificationCompleted callback 3s after getting onCodeSent However above question doesn't help me with my problem. I've following flow in my app. Signup (Activity) -> onVeri...
{ "language": "en", "url": "https://stackoverflow.com/questions/71456899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct way to parse JSON payload with multiple root objects I'm using AFNetworking for my network requests. Assume that I have the following JSON payload: { "car": [{ "name": "Blue BMW", "owner_id": "123" }], "owners": [{ "id": "123", "name": "John" }] } What is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/17248750", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Assorting linked list in c i have a list of this struct and i want to sort the list depending on the value of draw_number, and the list has a pointer front that points to the first struct of the list and a pointer rear that points on the last struct of the list .I found many codes for sorting a list but i can't do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/17629898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: using current session for drupal_http_request() so I'm using drupal_http_request()Docs to fetch another page...the thing is that page is within a logged in area so the function returns the login page instead of the proper page that contains the current session....is there a way to configure drupal_http_request() so ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7149856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove specific things from given line in bash I am having this below as an output 2017-04-10 12:23:00.307411 IP 124.108.16.209.443 > 192.168.180.3.44526: tcp 1209 2017-04-10 12:23:00.836184 IP 192.168.180.3.43095 > www.facebook.com.443: tcp 303 2017-04-10 12:23:09.948709 IP www.facebook.com.443 > 192.168....
{ "language": "en", "url": "https://stackoverflow.com/questions/43317325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Minimum value that not zero In Applescript, I need to find the integer value nearest to zero but not zero. Numbers are all zero or greater than zero. At present, I have three integers. I guess I could write a loop, but is there an easier way? examples: {0,3,4} find 3. {1,0,0} find 1 {4,10,2} find 2 {0,0,0} find no...
{ "language": "en", "url": "https://stackoverflow.com/questions/55838252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i download some of content instead of all content of web page when i click on Save as HTML in browser When I click on save as HTML button its Download all content of web page but i have require to Download some for specific content from all content. function download(filename, contents) { const anchor = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67501059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unable to import the package in jupyter notebook I am unable to import the package in the conda env inside jupyter notebook. I can import the package via terminal but it's not loading in the notebook. Can someone help me to debug this? Update: Tried to add site-packages to path as well as per the suggestions by @Az...
{ "language": "en", "url": "https://stackoverflow.com/questions/73678066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to decrease deletion time in IBM db2 We are using IBM db2, trying to delete 200000 data from different tables, using stored procedure invoked through java code. It's taking 75+ hours to delete, suggest ways to optimize the deletion time. we can't stop the log for the deletion. we can't use the truncate feature. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65352558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I define a Java 9 module inside both a source and source-test directories? I'm having a really hard time with some Java modules. I'm working on an old Java project which has been "migrated" to Java 11. Nowhere in the project is there any module-info.java file defined. I'm getting compilation errors in Eclips...
{ "language": "en", "url": "https://stackoverflow.com/questions/55973047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why have I to write c - '0' instead of just c? Hey I can't understand why my code doesn't write when I put just ++ndigit[c] (instead of ++ndigit[c -'0'], then with ++nchar[c] it's ok. If you have any tuto I'll be really interested ! #include <stdio.h> int main() { int c, i, y, ns; int ndigit[10]; int nchar[26...
{ "language": "en", "url": "https://stackoverflow.com/questions/43468998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Share project between Windows Store Application And WCF Service Is it possible to create and "share" a class library project between an Windows Store Application and WCF Service project ? I created Windows Store Application project and WCF Service project. Now, both projects should refer a Class library project. If...
{ "language": "en", "url": "https://stackoverflow.com/questions/18720423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use the find command in Java Wanted to know if there is a find functionality in Java. Like in Linux we use the below command to find a file : find / -iname <filename> or find . -iname <filename> Is there a similar way to find a file in Java? I have a directory structure and need to find certain files in s...
{ "language": "en", "url": "https://stackoverflow.com/questions/30974148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linkedin authentication request error so I'm implementing the option to login with your linkedin account, but I find that sometimes you will get a request error saying: Request Error We’re sorry, there was a problem with your request. Please make sure you have cookies enabled and try again. Or follow this link to r...
{ "language": "en", "url": "https://stackoverflow.com/questions/25776169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to combine several list and create dataframe pandas I have list that contains something like this: [] [['a' 'b' 5] ['c' 'd' 2]] [] I don't understand, how to combine these several lists in one list and exclude empty lists. Finally, I need to get Data Frame with 3 columns. A: You can do something like this- from...
{ "language": "en", "url": "https://stackoverflow.com/questions/44108211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Looking to convert an console app to a asap.net web form I currently have this console app that extracts words from an image using Microsoft's Optical Character Recognition (OCR). the results currently post into a console app, I want to create the same thing but for a web page form. What's the best way to do that? C...
{ "language": "en", "url": "https://stackoverflow.com/questions/65130444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Combine JSON decoding pipeline, when response can be an array or an object at runtime I have an API that may return a JSON array of JSON objects or a single JSON object. How do I write a combine publisher pipeline that handles this case? I normally hard-code the type of the JSON-response when I add my combine decode...
{ "language": "en", "url": "https://stackoverflow.com/questions/63237595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to import normalised json data from several files into a pandas dataframe? I have json datafiles in several directories that I want to import into Pandas to do some data analysis. The format of the json depends on the type defined in the directory name. For example, dir1_typeA/ file1 file2 ... dir1_typeB/ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39632248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: accessing images I am new to Symfony. I created a layout page in which I have this : <img src="images/header.jpg" width="790" height="228" alt="" /> but the image isn't displayed in the page when accessed from the browser. I put the file header.jpg in the web/images/ folder. I thought I could learn Symfony in a we...
{ "language": "en", "url": "https://stackoverflow.com/questions/2071317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Distributed mutex There are hundreds of servers in our cloud. There is a script which can be invoked at any time by any of these servers. I have to make sure that at any given time only one server is running the script. While one server has acquired lock on the script, and another server tries to execute, just write...
{ "language": "en", "url": "https://stackoverflow.com/questions/18526843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why is my SPARQL query so slow? I'm trying to fetch a number of queries from the database of the EU plenary debates through a SPARQL interface (Interface here, schema here). As I do that I would like to retrieve the names of the speaker, their home country and their partyname. This takes me 5 minutes to complete for...
{ "language": "en", "url": "https://stackoverflow.com/questions/33540751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Joomla! K2 - How to fetch Author Item Count for user page? I have several authors on my website and each of them has a page of his own with his image, description and a list of all his items. I would like to add an "Item Counter" to their pages, so the page will look like this: author name, number of posts -> author...
{ "language": "en", "url": "https://stackoverflow.com/questions/24439788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not able to Update password and useraccountcontrol in AD using Spring LDAP I am new to Spring LDAP and Active directory and facing issue while updating password for new created user in AD. Using SPRING LDAP I have first created User in AD successfully and then tried to update password and useraccountcontrol of user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28964782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting the following error message TypeError: not all arguments converted during string formatting I am trying to read a circle with its coordinates and radius from the user and trying to return its details but on executing this code i am getting an error. import math class Circle(): def __init__(self, centre, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47074700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xna model parts are overlying others I am trying to import in XNA an .fbx model exported with blender. Here is my drawing code public void Draw() { Matrix[] modelTransforms = new Matrix[Model.Bones.Count]; Model.CopyAbsoluteBoneTransformsTo(modelTransforms); foreach (ModelMesh mesh in Mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/12341347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access unmanaged (external) Azure Databricks Hive table via JDBC I am using Azure Databricks with Databricks Runtime 5.2 and Spark 2.4.0. I have setup external Hive tables in two different ways: - a Databricks Delta table where the data is stored in Azure Data Lake Storage (ADLS) Gen 2, the table was created using a...
{ "language": "en", "url": "https://stackoverflow.com/questions/55042885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unable to load properties with Java Spring I am a complete newbie to Spring. I am trying to figure out how to access properties from props files injected into my app through Spring. I wrote a simple test provided below. I run it by passing location of the properties file through environment variables provided at JRE...
{ "language": "en", "url": "https://stackoverflow.com/questions/62936107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting "java.lang.ArrayIndexOutOfBoundsException" exception while trying to find duplicate number from an array Getting java.lang.ArrayIndexOutOfBoundsException while trying to find duplicate number in an array in Java. Here is the code: public class FindDuplicateNumberInArray { public static void main(String[]...
{ "language": "en", "url": "https://stackoverflow.com/questions/57555328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP If statement responding with all code rather than printing answer I'm fairly new to programming. I'm trying to write what should be a fairly basic if, elseif piece of code for my database, but when it compiles it just prints the code from the first if statement all the way to the end. I've been going over it for...
{ "language": "en", "url": "https://stackoverflow.com/questions/36403559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Get a sum of comple Json structure with linq I have a complex json structure (at least for me ) that looks like { "Assets": [{ "Name": "asset1", "Code": "SS-15", "Items": [{ "Name": "Item1", "KGs": 255, "Cartons": 1222, "Containe...
{ "language": "en", "url": "https://stackoverflow.com/questions/40911139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I convert a tuple to a parameter list 'inline'? traceback.format_exception() takes three arguments. sys.exc_info() returns a tuple of three elements that are the required arguments for traceback.format_exception() Is there any way of avoiding the two line "conversion": a,b,c = sys.exc_info() error_info = traceba...
{ "language": "en", "url": "https://stackoverflow.com/questions/26297360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Marginal effects for de-meaned polynomials in mixed models In the mixed model (or REWB) framework it is common to model within changes by subtracting the cluster mean (demeaning) from a time varying x-variable, see eg. (Bell, Fairbrother & Jones, 2018). This estimator is basically the same as a fixed effects (FE) e...
{ "language": "en", "url": "https://stackoverflow.com/questions/73303108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to modify or mock the Inversify container used by a Typescript class in a Jasmine unit test? I have a Typescript class that uses InversifyJS and Inversify Inject Decorators to inject a service into a private property. Functionally this is fine but I'm having issues figuring out how to unit test it. I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/54830746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Input Value is returning as undefined I am trying to retrieve the value of the input box and print it to the div. It keeps coming back as undefined and I don't know why. Here is my code: <body> <input type="text" id="name"> <button type="button" id="btn">Click me</button> <div class="square"></div> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62700885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP loop to echo all Joomla article id's With my very basic PHP knowledge I'm trying to make a module for Joomla V1.5. I am not quite into all the Joomla classes and methods but perhaps you can help me out. What I'm trying to do is create a php loop which echo's all the article id's (and some html) from a certain ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7298967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to fix a misconfiguration with Phusion Passenger and a VirtualHost directive? I have done this, can anyone tell me why my Rails application isn't loading? hack ~ # cd /www ; rails mysite.com ; cd /etc/apache2/sites-available hack sites-available # cat default <VirtualHost *:80> ServerName mysite.com ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10793629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send SMS to real device without SIM card with appium Is it possible to simulate sending SMS to a real device without SIM Card with appium?
{ "language": "en", "url": "https://stackoverflow.com/questions/72745204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: paypal payment integration from asp.net page can anyone detail the particulars that are required to send data collected from a asp.net web page using vb.net that has a bunch of text boxes for first name, last name, address... item price, quantity, total price... to paypal for processing and settlement? i have never ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2842352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to fix the assertion error in this problem? I'm having a problem fixing the error below. I'm returning correct outputs, then the assertion error occurred. How to fix it? What should I do? Example Usage: from vector import Vector v1 = Vector(1, 1, 0) # Initialize vector <1,1,0> v2 = Vector(2, 1, 3) # Initial...
{ "language": "en", "url": "https://stackoverflow.com/questions/71722461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mongo Nested array field selection Below is mongodb document is like this and these nested array field selection: object : { "_id": { "$oid": "5de775b53ec85e73da2b6d8a" }, "vpg_id": 2, "year": 2019, "am_data": { "822": { "am_name":...
{ "language": "en", "url": "https://stackoverflow.com/questions/59206998", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery checking that passwords match with php + Json I have a form that I am validating with JS and PHP. Everything is going well so far apart from when I try to check if the passwords match. Here is the form: <div> <label for="passlength">Password, valid: 0-9</label> <input ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2408318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert list of objects from one type to an other I have two objects. class User{ public int id{get;set;} public string name{get;set;} } class UserProtectedDetails{ public string name{get;set;} } How can I convert List<User> to List<UserProtectedDetails>? I know how to do it in reflection, but is there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/12018504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ORA-00928: missing SELECT keyword: update using with I am getting ORA-00928: missing SELECT keyword error when using "update" with "with". This is giving the error. with wr_double as (select...) update work_request r set r.name = r.name || '_old' where exists (select 1 from wr_double wd where wd.name = r.name and...
{ "language": "en", "url": "https://stackoverflow.com/questions/55363941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio Community Won't Load Default Files I'm trying to learn C++ and when I opened a new win32 console project it just gave me an empty project when it should have gave gave me like stdafx.h or the name.cpp file. Any way to fix this? A: Did you try updating your workloads? After installing VS, if you didn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/49552511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to connect Odoo with postgres (which is running on other server) I want to connect odoo 10 with the postgresql (which is running on other server). Is it possible ? If, yes! then please do help me out by posting step by step procedure or any sort of tutorial link (because I'm beginner). For now, I'm using odoo10 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42789112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: LESS support on older android browser(2.* specific) I am converting a website to responsive using media queries and less. I am compiling less on client side using js, but it doesn't support older Android browsers(2.X). Is there a fix for this? A: Returning to css is a good idea in this case: precompile the final ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/22628523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to simulate a browser version update? I'm developing an add-on and I want to test how code that gets executed during the onInstalled event behaves after a browser version update. Is there a way to simulate the browser update event, without waiting when an actual newer version of the browser will be ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/71082064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does WPF-Grid implement the SharedSizeGroup-behaviour? Im trying to figure out how Grid does with size-sharing in their columns and rows. Im looking at the Grid-code with Reflector but can't find any hits. The cols/rows sharing size should first get a desired size and then be measured again with the max found si...
{ "language": "en", "url": "https://stackoverflow.com/questions/5745547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Recursive looping over array of objects using reduce I have an array of objects with children. The goal is to remove every item from items arrays. Is it possible to do without using forEach and map loops? How to use reduce in this case? The problem is some arrays have items on one level and others have children arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/54052614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SelectFeature for features in layer underneath top layer I'm using the "OpenLayers.Control.SelectFeature" to hover over many features in a vector layer. However, when i add another layer on top, the hover 'highlight' ability is lost because the top layer is blocking it. Does anyone know if there is some "allow passt...
{ "language": "en", "url": "https://stackoverflow.com/questions/4379832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: visual basic for applications classes Compile error: Expected: end of Statement I am trying to rewrite some C++ into an excel macro, but can't seem to even get line 1 of any tutorial on classes in VBA to work. I have tried the following: Public Class gamepath End Class Sub Whatever() End Sub Then, when I run ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57479266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory still leaking even though all arrays are being deleted C++ My program includes some 1D and some 2D arrays. Because of style guidelines I have to use those and can't use things like std::vector etc. We also have to create new arrays on the heap and delete them afterwards. My code looks like this: void wordsfre...
{ "language": "en", "url": "https://stackoverflow.com/questions/66432355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R - mutate with regex in a loop I have a data frame in which every column consists of number followed by text, e.g. 533 234r/r. The following code to get rid off text works well: my_data <- my_data %>% mutate(column1 = str_extract(column1, '.+?(?=[a-z])')) I would like to do it for multiple columns: col_names...
{ "language": "en", "url": "https://stackoverflow.com/questions/64959733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to modify a certain system call in minix 3.2.1? I'm new at minix 3.2.1 and I'd like to change a certain system call and its output. For example when I type mkdir Newdirectory, I want to see in the screen New dir -> myNewDirectory 755 (755 stands for the access rights). How could I achieve this? A: first of all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36669816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What data structure to use for regexped result in Python? I parsed log file and now I have regexped result for every status: '/status1' '/status2' '/status3' For every result I need to keep some info : num1, num2, num3 What data structure to use in Python that I could use array of statuses in format: /status1, num1...
{ "language": "en", "url": "https://stackoverflow.com/questions/48127434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Redirect add to cart button woocommerce is it possible to redirect a link of the add to cart button depending on the product quantity? The button works in ajax, which hook should I use? I tried to use this code on the theme function, but it doesn't work: function check_quantity() { $adult_number=$_POST['adult_nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/70058567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting a specific number of JSON items with jQuery from tumblr feed I'm trying to populate a page with X entries from my tumblr feed, and I'm wondering how I can only pull that X number from the JSON object it returns. Here's my code, pulled from another Stack Overflow post and modified: //Tumblr retrieval $.getJSO...
{ "language": "en", "url": "https://stackoverflow.com/questions/2908561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Recover commit lost during commit amend I've made a mistake I guess Yesterday I created a new branch (feature/crud-suppliers), then yesterday and today I worked on that branch. 30 minutes ago, after I finished my changes I added the files modified and did a git commit --amend --no-edit then I remembered that I didn'...
{ "language": "en", "url": "https://stackoverflow.com/questions/64055403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to stop adding two of the same ID to a list? (C# Multithreading) I've got an issue which is probably easily solvable, but for some reason I can't wrap my head around... I have a single list, which contains a class which contains some information. One of these is an ID, which starts from 0 and increases by one wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/51759317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extend an Attribute Here is my situations, I use this attribute MyAttrAttribute all over my codebase, I would now like to give it the property such that any place that I use [MyAttr], it also applies a third party attribute [TheirAttr]. Of course, I could do a find a replace across my code to extend the attribute, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/31528169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: kafka jdbc sink connector: recreated all other connectors when create or update one connector I have about 500 connectors, and every time I create a new one, I have to wait long time to recreate the previous. It is too slow. The sink.properties is as follows { "name": "saas-saas_order-worder_fee_price-sink", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56556007", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ADF - How to copy an Excel Sheet with Multiple Sheets into separate .csv files I currently have an Excel file that has multiple worksheets (over 11). This Excel file currently lives in a remote file server. I am trying to use Azure Data FactoryV2 to copy the Excel file and split each worksheet as its own .csv file w...
{ "language": "en", "url": "https://stackoverflow.com/questions/67541195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: upload custom wordpress theme to website instead of the current one Good Evening the task is to replace new wordpress theme with new design with current old wordpres theme the new theme is ready and test on my laptop on localhost what should i do to upload it correctly ? A: Compress the theme into a zip file, and j...
{ "language": "en", "url": "https://stackoverflow.com/questions/69871709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to Round and Format Mail Merge Number I have an amount that fluctuates from 1 million to over a billion and want to show the result as $1.5 million or $1.5 billion using the field codes in Word 2013 for a mail merge. (ie. 1,500,000 should display $1.5 million and 1,500,000,000 should display as $1.5 billion.) I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37450742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Embedding password in and Internal Console App I'm about to release a console application onto one of our servers to be run by the task scheduler on a daily basis. Based on certain conditions, the application will email selected users through Office 365. In order to email users, of course, I'll need to use the crede...
{ "language": "en", "url": "https://stackoverflow.com/questions/47635106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WoW Addon (Lua) Variables and methods I've been messing with this for hours and I can't seem to get this to work for i=1, 10 do local frame = "MyFrame"..i frame:EnableMouseWheel(true) end and the error I get is attempt to call method 'EnableMouseWheel' (a nil value) but if I do MyFrame1:EnableMouseWheel(true) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15399281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I parse an XML file given it's path in Jquery? So I am trying to parse a XML file that a user choose through a file chooser. The problem I am having is on my input change event, the jquery is not being call. $('input[type=file]').change(function(e){ path = $(this).val(); $.ajax({ type: "GET"...
{ "language": "en", "url": "https://stackoverflow.com/questions/8889226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Typescript: Convert For loop to Promise and wait to resolve all ISSUE: save.emit() runs before all the iterations are completed in the below "for" loop which shows incorrect values of the addUpdate call inside loop. I am trying to convert a for loop to promise and then wait for each of those promise to resolve so th...
{ "language": "en", "url": "https://stackoverflow.com/questions/71312652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: porting the piece of code I have following pieces of code: code1: lis = ["a", "s", "d"] string.join(lis) code2: lis = ["a", "s", "d"] ' '.join(lis) Results: For both the cases the result is 'a s d' Now, there should be certain cases (if I'm correct) when the value of 'sep' which is the default separation value d...
{ "language": "en", "url": "https://stackoverflow.com/questions/4848862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AttributeError : 'tuple' has no attribute 'to' I am writing this Image Classifier and I have defined the loaders but getting this mistake and I have no clue about it. I have defined the train loader, for a better explanation I tried this for ina,lab in train_loader: print(type(ina)) print(type(lab)) and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63825841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: regex: combine capturing group with OR condition Let's say I have a string : s = "id_john, num847, id_000, num___" I know how to retrieve either of 2 patterns with |: re.findall("id_[a-z]+|num[0-9]+", s) #### ['id_john', 'num847'] # OK I know how to capture a portion only of a match with parenthesis: re.findall("i...
{ "language": "en", "url": "https://stackoverflow.com/questions/50144074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find the Autocoorelation Matrix of a 1D array/vector I've 1D array of size n which represents a signal in the time domain, I need to find the Autocorrelation Matrix of this signal using python, then I'll compute the eigenvectors and eigenvalues of this matrix. what I've tried is to use the Toeplitz method fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/63825355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a table to a particular Div in the codebehind? Just for testing, I made a page with nothing but the form and div tags and, in the codebehind, I created a table, added rows to it, then used the following code to add the table to the page: Page.Controls.Add(dtStatuses); What I'd like to do now, though, is add ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18616426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What lucene analyzer can be used to handle Japanese text? Which lucene analyzer can be used to handle Japanese text properly? It should be able to handle Kanji, Hiragana, Katakana, Romaji, and any of their combination. A: You should probably look at the CJK package that is in the contrib area of Lucene. There is an...
{ "language": "en", "url": "https://stackoverflow.com/questions/1625000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: webpack configuration: pixi.js imported in app.js generates an over 2MB distribution file Creating a pixi.js component based on pixi.js and es6 modules. In my app.js I am importing everything from pixi.js: import * as PIXI from 'pixi.js'; I am also transpiling the code with babel: rules: [ { tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/52427275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get canonical filename on a case-insensitive filesystem? Imagine I have a file foO/bar.txt. On a case-insensitive filesystem, I'm able to open the file as FOO/BaR.tXt. Now I would like to detect the "canonical" filename (foO/bar.txt), so I could warn my users, that they should use the correct spelling if they...
{ "language": "en", "url": "https://stackoverflow.com/questions/73463994", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }