text
stringlengths
15
59.8k
meta
dict
Q: Subsetting a vector base on another vector I have 2 input vectors, iv1 and iv2, as shown below. I would like to separate the elements of the second vector according to elements of the first. It works like this: The values in iv2 between the first 2 values of iv1 are stored in ov1, the values in iv2 between the secon...
{ "language": "en", "url": "https://stackoverflow.com/questions/46167349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to invalidate Asp.Net Session during IdP initiated Single LogOut with WSO2 we are implementing a Single Sign On process using WSO2 Identity Server. We have both Microsoft and Java web applications involved and we are facing a problem during the Single LogOut processing with Microsoft based web apps. The issue...
{ "language": "en", "url": "https://stackoverflow.com/questions/32884417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add fail to ant macrodef I created a macro to search for a file in a number of directories. That part is working. Now I'm trying to add fail to the macro if no file is found but this gives me an error macrodef doesn't support the nested "fail" element. Is there a way to achieve this ? <macrodef name="searchfi...
{ "language": "en", "url": "https://stackoverflow.com/questions/72096205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: POST to https://www.sandbox.paypal.com/cgi-bin/webscr gives 500 error , Classic asp I am working on classic asp to create donation site and payment gateway is paypal. I have implemented IPN and paypal is sending notification on that notify_url that i pass with form. Also payment is also working correctly i.e i can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40311176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unary operators, binary expression tree and shunting yard algorithm I am writing the mathematics expression solver which takes infix expression and solves them, both binary expression tree and shunting-yard are doing good for me (I have even solved the problem of handling unary and ternary operators). Encountered an...
{ "language": "en", "url": "https://stackoverflow.com/questions/35055669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AnimationDrawable Thread skipping frames I am in an Activity which must play an AnimationDrawable (a 'loading' animation) while the rest of the content loads. I started the animation in another thread since animations tend to give a lot of work to the main thread, however the animation can't be displayed correctly, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26789955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Has the generic version of HttpResponseMessage been removed from the ASP.NET WebApi? I just finished installing VS 2012 RC and have started working with the ASP.NET Web API. I am basing my work on some tutorials from PluralSight which I've been using as reference. In every tutorial and article which I've used, I not...
{ "language": "en", "url": "https://stackoverflow.com/questions/11427973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Inconsistent ParseExeption with Data Format in Java I wrote a simple Util method to convert a String in Java to util.Date. What I am not able to figure out is why the method works for the first input, and fails for the second one, given that the inputs are identical: Code: package util; import java.text.DateFormat;...
{ "language": "en", "url": "https://stackoverflow.com/questions/9965238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to import moment.js angular2 I'm trying to import moment.js into my angular2 application. First of all I have followed this guide, and I've found this answer but even if I've tried to follow the proposed solutions I'm still unable to import moment.js. The package is present, and in fact my IDE (visual studio) is...
{ "language": "en", "url": "https://stackoverflow.com/questions/38354048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get dictionary values as List I know this is asked earlier, but I tried but could not help. I have below dictionary, want to convert to List, What is the best way to convert to List dct = {'result': ['activeaddresses', 'exchangevolume(usd)', 'marketcap(usd)', 'mediantxvalue(usd)', 'price(usd)', 'txcount', 'txvolume(...
{ "language": "en", "url": "https://stackoverflow.com/questions/52552185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to loop between two dates I have a calendar which passes selected dates as strings into a method. Inside this method, I want to generate a list of all the dates starting from the selected start date and ending with the selected end date, obviously including all of the dates inbetween, regardless of how many days...
{ "language": "en", "url": "https://stackoverflow.com/questions/1199108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Jest encountered an unexpected token when working with React TypeScript I am building a reusable react component without using react-app and I am very new to Jest. I keep on getting this message. I have tried several post solutions on Stackoverflow but I am stuck at the moment: ● Test suite failed to run Jest encoun...
{ "language": "en", "url": "https://stackoverflow.com/questions/65717630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to reload a entire component with angular when route changes? I want to reload or rerender a sidebar component when route change i have the following code: constructor( private auth: AuthService, private router: Router, private changeDetector: ChangeDetectorRef ) { this.auth.currentUser.subsc...
{ "language": "en", "url": "https://stackoverflow.com/questions/54174594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: adding items to deep List of KeyValuePairs I wrote a deep list: public static List<KeyValuePair<string,List<KeyValuePair<string,List<KeyValuePair<string,bool>>>>>> ListBoxes = new List<KeyValuePair<string,List<KeyValuePair<string,List<KeyValuePair<string,bool>>>>>>(); Anybody has an idea how to add to this list any...
{ "language": "en", "url": "https://stackoverflow.com/questions/13634094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Python - How to get all possible combinations from nested list I have a nested list like this : values = [['DNO', 0.2], ['Equinor', 0.4], ['Petoro', 0.2], ['Total', 0.2]] How to get all possible combinations of elements that will have a sum(2nd element of each sub list) greater than 0.5? This is what I am using : d...
{ "language": "en", "url": "https://stackoverflow.com/questions/64098059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does extraction workers in google bigquery save the data into Columnar Storage follows a FIFO pattern? As I understand from bigquery streaming insert lifecycle also shown in the image below. The data goes through streaming buffer before it is available in the Columnar Storage. The work of processing the data is don...
{ "language": "en", "url": "https://stackoverflow.com/questions/51613136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use case for Lock.tryLock() At API docs of Lockinterface for method tryLock(), this code sample is pasted, A typical usage idiom for this method would be: Lock lock = ...; if (lock.tryLock()) { try { // manipulate protected state } finally { lock.unlock(); } } else { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41788074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Javascript giving me Uncaught ReferenceError: require is not defined error I have a file structure that looks like this: My index.js has this code const THREE = require("three") var scene = new THREE.scene(); console.log(scene) My index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta...
{ "language": "en", "url": "https://stackoverflow.com/questions/69549742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: problem in making records of a file by perl I'm trying putting a file into records with number starting from record 0 to n and saving it into an output file. my file is starting from AA to // and there are several AA's and // so I'm putting record number for each AA to // as there are 2000 to 3000 AA's so I want to...
{ "language": "en", "url": "https://stackoverflow.com/questions/6681891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CLLocationManager does not work for non-wireless connection? I have a Mac app and would like to use core location, however, when I am not on wifi but connected using an ethernet cable, core location (CLLocationManager) reports that the operation could not be completed. The exact error message is The operation coul...
{ "language": "en", "url": "https://stackoverflow.com/questions/5492439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MetaMask RPC error? 'MetaMask - RPC Error: Internal JSON-RPC error.' I'm developing the front-end to an application that I'm trying to test. However, MetaMask keeps giving me this error? I tried changing the gas limit like previously suggested and nothing. Any ideas? Error: MetaMask - RPC Error: Internal JSON-RPC er...
{ "language": "en", "url": "https://stackoverflow.com/questions/66924776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible for a translucent to have to affect on the items below it? I have kind of a weird situation, while trying to make a simple chrome plugin. The idea of the plugin is that it constantly overlays a half-transparent image on top of the page you are viewing. To accomplish this, I have the plugin inject Jav...
{ "language": "en", "url": "https://stackoverflow.com/questions/46938946", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Should I be using static or instance methods? I'm really confused with the concept of static vs instance methods. I have created a BMR calculator. I've seperated the GUI from the calculations using different classes. public class Calculations { /** * If user input is correct, this method will calculate the BMR val...
{ "language": "en", "url": "https://stackoverflow.com/questions/32304412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: C++ - Qt QObject::connect GET request usage across classes A quick overview of what's happening: I am trying to do a GET request using Qt's QNetworkAccessManager, but the callback function on my QObject::connect(..) function is not being called. My questions is can I call QObject::connect from one object, but connec...
{ "language": "en", "url": "https://stackoverflow.com/questions/13596199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decode hexadecimal number in IBM/360 column binary format I have this message \1004\1001\2001\1010\0900\0000\0006\2012. It's in IBM column binary format. Reading, and trying to understand, a lot of articles like the below ones can't even put me on track. https://v8doc.sas.com/sashtml/lrcon/z0695224.htm http://homepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/52612738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Connecting HTML/DOM with node.js I'm trying to find a way to write to a text file using node.js but I was trying to get the input from the HTML DOM. How do you write the output from the DOM to a text file using fs.writeFile? Here's some code that doesn't work but thought it might be relevant. Thanks <h3>A demonstrat...
{ "language": "en", "url": "https://stackoverflow.com/questions/67714849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I draw 2 lines with 2 different colors: each set of lines has set Coordinates. the Sets are not connected How do I draw two lines not connected to each other, the two lines must have to different colors, the two lines have points from four set of coordinates. So each line has its own set of coordinates. Using...
{ "language": "en", "url": "https://stackoverflow.com/questions/33288708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google maps reverse geocoding returns zero_results I have this code where I try getting address from coords in a google map,but my phone returns status error zero_results. I am sure my location is available because if I tested via browser and my address location for coordinates is returned. Any ideas? <!DOCTYPE html...
{ "language": "en", "url": "https://stackoverflow.com/questions/40683330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display next div only and hide other divs with same class Many versions of this question have already been asked but I can't seem to find a solution. I'm hoping to have just one div visible at a time and to toggle an 'open' class on the correct trigger. Here's what I have so far: <div class="wrap"> <div class="t...
{ "language": "en", "url": "https://stackoverflow.com/questions/33172592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: getting err_too_many_redirects in laravel when I use Request for validation for validating unique it is my error page I have used customize Request page for geting value from post request. in that request I am validating namespace App\Http\Requests; use App\Http\Requests\Request; class TaxclassRequest extends Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/36328358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Python 2.7 mechanize library I am trying to use mechanize to access a website and submit form to login. My end goal is to login to a ticketing system, fill in the required fields and submit which in turn would generate a ticket number which I need to grab. I have the following code. import urllib import mechanize b...
{ "language": "en", "url": "https://stackoverflow.com/questions/41973974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to report errors while parsing content in ES6 tagged templates? I'm working with a friend on a small Javascript experiment, which involves a basic HTML parser, implemented as a simple state machine - you can see the code here. My question is regarding tagged template functions which involve any kind of parser, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/46521414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Web Scraping using non-defined tags I'm trying to develop a tool to do some web scraping, I've done this before for specific websites using HTML Agility Pack, but in this case I want the user to be able to specify what information he wants to scrap by selecting the text on the website. What I don't know is if the us...
{ "language": "en", "url": "https://stackoverflow.com/questions/11728682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Textarea not filled with all $_GET data, cuts off at quotation marks I have a text area page which is launched from the previous page: $message = $_POST['editPost']; header("location:editPost.php?msg=$message"); The editPost.php retrieves this and fills the text area like so: echo "<form action='index.php' method='...
{ "language": "en", "url": "https://stackoverflow.com/questions/9833256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery Slider spacing fubar on ie7 and i6 So ive been trying to debug this friggin spacing issue for the last 4 hours.. and I cant friggin solve it!!! If you go to http://myurbanlunchbox.com you will see right away what I am refering to. The image slider has spacing issues, but only in IE6 and IE7.. (as usual). C...
{ "language": "en", "url": "https://stackoverflow.com/questions/1506817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parsing XML inside JSF could anybody tell me how to parse XML file inside a JSF page? The thing's that I've got XML file and want to put some data from it into my JSF page. My first thought was to include JSTL Core and XML libs and to do something like this: <c:import var="some-info-doc" src="some-info.xml" /> <x:p...
{ "language": "en", "url": "https://stackoverflow.com/questions/1640285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Waiting for multiple asynchronous JSON queries to finish before running code I am looking to run multiple different JSON request simultaneously, and then only perform a function once they have either completed or returned an error message (404 etc.). Here's what I have so far, but the function finished doesn't remem...
{ "language": "en", "url": "https://stackoverflow.com/questions/16939651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change color of the left aligned text? I'm new to reactjs, i tried to change the color of the left align text using reactjs. Can anybody help me in this? this would be jsondata in api: { "message": "Hello everyone", "isrespond": true, }, { "message": "hi", "isrespond": false, } Can anyone help me i...
{ "language": "en", "url": "https://stackoverflow.com/questions/58850603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display an image of expo camera in React Native I am working on camera in app, where I have took a picture and have convert into base64 now I want to display an image but did not able to display an image . Could someone please help me how to achieve this goal . Thanks takePicture = async () => { if (thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/63567411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ServiceStack OrmLite Join Issues I'm having a problem with ServiceStack OrmLite for SQL Server in a Visual Studio 2013 C# project. My problem is that I'm trying to use the SqlExpression builder and it's not capturing my table schema and the generated SQL code is not correct. When I run the code, I get a System.Data....
{ "language": "en", "url": "https://stackoverflow.com/questions/25044364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I change user presence status in RingCentral programmatically using C#? I have created as program in C# that is designed to display the users status and availability from RingCentral. This works brilliantly and I can sort the users by availability, name, etc. I need to add the functionality to change the stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/56393678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS Masonry Grid with JQuery .hover hiding images in grid other than hovered image and first column I am building a custom theme for koken based on their Blueprint framework theme and have coded it so the album template loops over all images in the album and outputs the images into a 4 column masonry-like grid using...
{ "language": "en", "url": "https://stackoverflow.com/questions/23706095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pyplot 3D scatter z axis issue Is there something wrong with the 3d plt.scatter(x,y,z) method? Plots all z values at zero: x = [1, 1] y = [1, 1] z = [-10, 10] fig = plt.figure(figsize=(16, 18)) plt.axes(projection ="3d") plt.scatter(x, y, z, color='k') plt.show() Working correctly: x = [1, 1] y = [1, 1] z = [-10,...
{ "language": "en", "url": "https://stackoverflow.com/questions/73756160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Remove a dead lock in the Internet Explorer on Thread.Sleep? I know all browsers are single threaded and impossible implements in JavaScript or Flash Player Thread.sleep. I decided to try using “System.Threading” library implements Thread.Sleep in the Silverlight. App.xaml.cs using System.Windows; using System.Windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/5302557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Progress bar hangs while deleting large files I have added the loading bar in below snippet.It’s worked fine which I have deleted small amount of data(say 30 to 150 mb). But the problem is when I deleted large size of data, the loading bar doesn't get loaded(approx 190mb). dispatch_async(dispatch_get_main_queue(), ^...
{ "language": "en", "url": "https://stackoverflow.com/questions/35124320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to publish dependencies into private npm repository I have created a private nexus repository to host my custom nodejs libraries. But when I publish my package, it doesn't publish any of its dependencies. Steps: npm set registry <registry url> npm login npm publish package.json { "name": "testpackage", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52645771", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Solr-Atomic Update changes other fields While running on atomic update,language field is getting changed.We have flow as below. During indexing object posted is { id:"234-567", fileName:"file1", content:"" } In the pipeline we analyse content as part of language detection and create a new field "language" which is w...
{ "language": "en", "url": "https://stackoverflow.com/questions/45773454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In Reactjs production mode, my app does not change url and not rendering component while I use Browser router, but it works fine with hashrouter index.js import React from 'react'; import ReactDOM from 'react-dom'; import Home from './home' import {Link,Switch,Route,BrowserRouter} from 'react-router-dom' ReactD...
{ "language": "en", "url": "https://stackoverflow.com/questions/59711804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: X Error of failed request: GLXBadFBConfig (opengl 4.3 - ubuntu) I'm reading the last version of the OpenGL Programming guide and it is updated for OpenGL 4.3. The first code they go through is a really simple code to make 2 triangles and of course it is the code I use to test OpenGL on my latop (running kubuntu). Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/17318392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery hyperlinks open a link before my onclick event In my popup page, I have a link with properties: id="myLink" href="http://..." target="_blank" when user click the link, it should open the link as default event and then close the popup window. I have following jquery code in the popup page to close popup windo...
{ "language": "en", "url": "https://stackoverflow.com/questions/8054960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bootstrap CSS transition onhover Hi I'm trying to replicate the beautiful CSS transition dropdown menu onhover of devdojo.com (https://devdojo.com/ebook/laravelsurvivalguide) but can't replicate it. It is the onhover of the 3 dots in the main menu. Maybe I'm missing something? Thanks! My CSS: .dropdown-menu-animated...
{ "language": "en", "url": "https://stackoverflow.com/questions/40704000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Safe truncate string contains color tag I have a string which contains color tags. var myString = "My name is <color=#FF00EE>ABCDE</color> and I love <color=#FFEE00>music</color>"; My string becomes "My name is ABCDE*(pink)* and I love music*(yellow)*" I want to truncate if the string reaches max length but still k...
{ "language": "en", "url": "https://stackoverflow.com/questions/67736547", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Amazon ec2-get-console-output returns "File not found" I just set up a free instance of an Amazon ec2 server. I'm trying to figure out how to SSH into it. I downloaded the command line tools for ec2 and, following what was written at this page: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html#E...
{ "language": "en", "url": "https://stackoverflow.com/questions/14805973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get userId for custom action in SharePoint When implementing a List Menu Custom Action in Sharepoint 2013 I have problem getting which user has actually executed the custom action. I would like to do that to check that the user has permission to do this by checking which AD-groups the user is a member of. Whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/34719051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Netfilter kernel module packet send I am trying to send a dummy syn packet from netfilter kernel module but i could not succeded does any body has working example or show me where i am doing the mistake printk(KERN_ALERT "Device a"); struct sk_buff *skb = NULL; struct iphdr *iph = NULL; struct tcphdr *tcph = NULL; p...
{ "language": "en", "url": "https://stackoverflow.com/questions/45971903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: DICOM CINE file C#.Net I have read the first frame of a DICOM CINE image, then I want to read the second frame and so on. How much byte should I seek the file pointer to get next frame(If the frame size is width=640, height=480). A: by DICOM cine image, you mean multi-frame DICOM files right? May i know : which pla...
{ "language": "en", "url": "https://stackoverflow.com/questions/5977655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alt tag possible for inline SVG? Is there a way to give an inline SVG an alt tag? Here is the code that I have for my inline SVG, but the alt tag is not showing (and I'm not even sure the way that I coded the alt tag is valid, after searching online for clarification): <svg version="1.1" id="svg-header-filter" xmlns...
{ "language": "en", "url": "https://stackoverflow.com/questions/23146570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Fast associative arrays or maps in Matlab I need to build a fast one-to-one mapping between two large arrays of integers in Matlab. The mapping should take as input an element from a pre-defined array, e.g.: in_range = [-200 2 56 45 ... ]; and map it, by its index in the previous array, to the corresponding...
{ "language": "en", "url": "https://stackoverflow.com/questions/4754181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can't upload images to WordPress I am trying to upload images via the dashboard but it gives me the following error, Unable to create directory uploads/2015/03. Is its parent directory writable by the server? I read forum posts online which guided to change the folder permissions to 777. I did so but the error is s...
{ "language": "en", "url": "https://stackoverflow.com/questions/29344200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Thread-safe classes explanation in Java Let's consider this situation: public class A { private Vector<B> v = new Vector<B>(); } public class B { private HashSet<C> hs = new HashSet<C>(); } public class C { private String sameString; public void setSameString(String s){ this.sameString ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27933934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using testthat with more than one expected outcome I wish to check an R function that may output one of two acceptable values using the "testthat" package. Here's a simplified example: Foo <- function () { if (uncontrolable_condition) { matrix(as.raw(0x0c)) } else { matrix(as.raw(0x03)) } } The best ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71082379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to uniquely identify email addresses, phones, etc. with Microsoft Graph API? Trying to set up a 2-way sync with Graph contacts. When I receive a response from Graph for a specific contact I can't seem to find a way to uniquely identify the phone/email attributes. In my use case, each email address and...
{ "language": "en", "url": "https://stackoverflow.com/questions/52107136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to extract a variable sub-string from a string I want to extract a sub-string from a string using javascript, then replace as set of characters by another character. I know the prefix and postfix of the string. Between the prefix and postfix is the variable sub-string that I want to extract and replace set of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/44872776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should I create separate endpoint for public user and current user in rails api I am building a rails api with a User model. My app will have a public profile for every user with basic attributes like username, avatar and bio. When you are logged in and you visit your profile, you see more information like which ema...
{ "language": "en", "url": "https://stackoverflow.com/questions/65727281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java.io.FileNotFoundException: /jacoco.exec: open failed: EROFS (Read-only file system) Facing this problem while trying to implement JaCoCo Offline Instrumentation. W/System.err( 1733): java.io.FileNotFoundException: /jacoco.exec: open failed: EROFS (Read-only file system) W/System.err( 1733): at libcore.io.IoBr...
{ "language": "en", "url": "https://stackoverflow.com/questions/56115583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to read and write to ElasticSearch with SparkR? Begineer SparkR and ElasticSearch question here! How do I write a sparkR dataframe or RDD to ElasticSearch with multiple nodes? There exists a specific R package for elastic but says nothing about hadoop or distributed dataframes. When I try to use it I get the fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/49141042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validation Question I get the following error when using the w3c validator why? Line 54, Column 9: No li element in list scope but a li end tag seen. </li><!-- LI Close --> Code <!DOCTYPE html> <html lang="en"> <head> <title><?php echo $name; ?> : Nationwide Housemovers</title> <link href="...
{ "language": "en", "url": "https://stackoverflow.com/questions/5838875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting rid of SettingWithCopyWarning in Python pandas I am loading a bunch of csvs and processing certain columns if they exist, after loading the csv with pandas data = pd.read_csv('Test.csv', encoding = "ISO-8859-1", index_col=0) this dataframe will be used in the example import pandas as pd data = pd.DataFrame(...
{ "language": "en", "url": "https://stackoverflow.com/questions/29725890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reassigning a React Components prop value using let I understand that a components prop value cannot be reassigned, but what if you destructure props using let and then reassign their value? I don't see any negative side effect when using this approach.
{ "language": "en", "url": "https://stackoverflow.com/questions/62518416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show different partial in Controller#show I have 3 different partials, each representing a different step of this process: "_overview.slim", "_setup.slim", and "_submit.slim". I want to show these 3 different partials all in "show.slim" only one at a time, and one after another as the user clicks on "Go to next step...
{ "language": "en", "url": "https://stackoverflow.com/questions/16086743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to publish Office add-in to Marketplace? Has anything changed about the way we publish Office.js add-in to Office Store? I'm following the documentation (which is pretty recent) and in there they ask me to go to Partner Store, then Office Store tab and choose New Offer > Office add-in: But in my Partner Center ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74860037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Deleting of DSpace Collection fails As Administrator in DSpace 5.3 I try to remove (delete) a collection that is not needed anymore, but I get the message: ERROR: update or delete on table "item" violates foreign key constraint "workspaceitem_item_id_fkey" on table "workspaceitem" Detail: Key (item_id)=(70) is still...
{ "language": "en", "url": "https://stackoverflow.com/questions/37925630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creting a graphical process control panel Dear Professor Hedengren and community: I was wondering if Gekko (or Python as a bigger entity) has any way to convert simulations into a graphical control panel. Say we have a Combined Cycle, and we want to calculate the net efficiency by altering the process parameters, su...
{ "language": "en", "url": "https://stackoverflow.com/questions/59768072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Polkadot: Weird Transaction Hash using JS API with Westend chain I’m using the Polkadot JS API to send transactions on Westend. For that, the snippet is something like this: const hash = await api.tx.balances .transfer(to, amount) .signAndSend(from, { tip, nonce: -1 }) .catch(e => { throw e...
{ "language": "en", "url": "https://stackoverflow.com/questions/68009452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ARM Cortex M7: can a cache clean overwrite changes made by DMA device? I am developing a driver for a DMA bus master device in the STM32H743 SoC, powered by a Cortex M7 CPU. Suppose I have two memory locations, x and y, which map to the same cache line, which is in normal, write-back cacheable memory, and suppose th...
{ "language": "en", "url": "https://stackoverflow.com/questions/68459164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel spreadsheet: Find lowest character value and from specific cells, not specific cell range I have a range of cell {B15:G15) with the following values. B15 B16 B17 B18 B19 B20 C D B C D F I would like to use a formula to find the lowest value character from few specific cells (only...
{ "language": "en", "url": "https://stackoverflow.com/questions/59656847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Some HTTPS connections failing in Chromium-based/IE browsers, but not Firefox Overnight, on two of my machines (Windows 10, which live on the same network but otherwise don't interact with my network), stopped loading static.twitchcdn.net and id.getmailspring.com in any Chromium-based browser and also Internet Explo...
{ "language": "en", "url": "https://stackoverflow.com/questions/74358093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: App with data at launch I'm currently working on an app which needs data. Exemple: A list of books. What is the best way to create a data base pre populated at first launch ? Or do we need to populate a core data base at its first launch ? Thanks in advance for your help :) A: You can store the "seed data" any way...
{ "language": "en", "url": "https://stackoverflow.com/questions/11951619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I add a Path, that has been defined in the XAML ResourceDictionary, multiple times to a WPF form at runtime? I have a defined path in XAML: <UserControl.Resources> <ResourceDictionary> <Path x:Key="N44" Width="20" Height="80" Stretch="Fill" Fill="#FF000000" Data="M 20,25.2941L 20,29.4118L 15.9091...
{ "language": "en", "url": "https://stackoverflow.com/questions/1377658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Unable to assign id to items fetched from firebase database I am using react and redux to make a social media app. I'm storing all the data regarding posts in the firebase realtime-database. But when I fetch it I'm unable to assign firebase name property as an id to each and every post. This is the action responsibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/69808868", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I close open OLE dialogs I have a function that closes all the forms in the application apart from the main form procedure CloseOpenForms(const Component: TComponent); var i: Integer; begin for i := 0 to pred(Component.ComponentCount) do begin CloseOpenForms(Component.Components[i]); if Compone...
{ "language": "en", "url": "https://stackoverflow.com/questions/10294392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unable to reference parent component data object I'm sure it's something simple but I can't figure this out. I'm trying to reference a JSON object (or any props at this point) in the function body of a child component. I tested whether I was able to reference data in the JSON by typing out the full expression in a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75245563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Rails 5 Paperclip Save Image from URL I'm a total Rails newbie so apologies if this is a simple question, but I've been unable to find a clear answer. I'm trying to allow a user to attach an image to a post either by uploading a file or entering the URL of an image using the Paperclip gem. File upload works fine, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/48976361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to calculate means and confidence intervals for different sample sizes automatically? I have a sample of a population (n=670), where I want to investigate how the sample size affects the results. I have calculated the "true mean" of the population, and want to compare this to the mean when n=20, n=30, n=40, etc....
{ "language": "en", "url": "https://stackoverflow.com/questions/74851120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make a button that removes contacts once someone clicks on them, in Android? So I saw two tutorials about removing contacts in Android Studio, but one was an entire project with "selecting features", which I don't have enough space to add in my app, and in the other one I was suppose to create databases an...
{ "language": "en", "url": "https://stackoverflow.com/questions/70250502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VM101:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at XMLHttpRequest.xhr.onload (app.js:134) I have some problems with my code in JS. When I want to detect if a person presses the button to eliminate, The console should show me an id with the register, but it shows me that error....
{ "language": "en", "url": "https://stackoverflow.com/questions/56566372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OAuth2: What is the difference between the JWT Authorization Grant and Client Credentials Grant with JWT client authentication? The OAuth2 JWT Profile introduces the possibility to use JWTs both as authorization grant and as client authentication. The JWT client authentication feature is independent of a certain gr...
{ "language": "en", "url": "https://stackoverflow.com/questions/29696728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: unfortunately app has stopped error when Changing the graphical layout I'm new to android development. I created a simple app that adds two numbers Using eclipse. It worked fine. But when I run the app after changing the positions of buttons and textViews, using graphical layout without directly editing xml files, "...
{ "language": "en", "url": "https://stackoverflow.com/questions/24146706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can I change the background color of table cell (td) using two buttons for different colors? My HTML file: <!DOCTYPE html> <html> <head> <title>Wolf and Rabbit Game</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="wolf&rabbit_game.css"> <script src="wolf&rabbit_game.js"...
{ "language": "en", "url": "https://stackoverflow.com/questions/26554237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Efficient Way to Replace Unicode Hex Character Codes in Snowflake String I currently have an issue where text I am importing includes Unicode Hex Character Codes in item descriptions. For example,   may appear for a no-break space, ê may appear for the French language "ê", etc. I am wanting the text returned in a vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/73491711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Element implicitly has type 'any', because expression of type 'any' cannot be used to index type '{}' I'm trying to solve the duplicateCount() function. Here is my code : export const duplicateCount = (text: string): number => { let countObj = {} if (text.length === 0) return 0 let allLetters = text.toLowerCas...
{ "language": "en", "url": "https://stackoverflow.com/questions/70563995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Parse v. TryParse What is the difference between Parse() and TryParse()? int number = int.Parse(textBoxNumber.Text); // The Try-Parse Method int.TryParse(textBoxNumber.Text, out number); Is there some form of error-checking like a Try-Catch Block? A: The TryParse method allows you to test whether something is par...
{ "language": "en", "url": "https://stackoverflow.com/questions/467613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "118" }
Q: How to show the preview of the input photo in page? I have an img tag and an input type file, Functionality The functionality is i will input one jpg file using input type file, i need to show this image in the image tag. How is it possible in angular 2 ? My tries I tried to get the file path on change event of inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/40431758", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaMail with gmail SMTP - How to handle an unexisting email addresses In my project I'm using a JavaMail implementation to send emails through GMAIL's SMTP server. The general concept is ok, my custom validators checks whether the e-mail was correctly formulated etc... Everything is fine, however I am not able to...
{ "language": "en", "url": "https://stackoverflow.com/questions/58564389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve multiple data from firebase database in one cloud function I am faced with the problem of retrieving two data values of a single node from my firebase database and reference it in my javascript file but don't know how to go about it. I have been able to retrieve just one data value from a node (in this case...
{ "language": "en", "url": "https://stackoverflow.com/questions/51029101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting Multiple Elements with same html criteria in python I'm novice with python and beautiful so this answer may be obvious. I'm using beautiful soup to parse the following html and extract the Date. html=''' <p><strong>Event:</strong>Meeting</p> <p><strong>Date:</strong> Mon, Apr 25, 2016, 11 am</p> <p><stron...
{ "language": "en", "url": "https://stackoverflow.com/questions/35947754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to split strings based on "/n" in Java I have got a string $key1={331015EA261D38A7} $key2={9145A98BA37617DE} $key3={EF745F23AA67243D} How do i split each of the keys based on "$" and the "next line" element? and then place it in an Arraylist? The output should look like this: Arraylist[0]: $key1={331015EA261D3...
{ "language": "en", "url": "https://stackoverflow.com/questions/39931342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-8" }
Q: Disable weaker TLS ciphers for a Linux hosted ASP.NET Core app I am looking at disabling RC4 and 3DES TLS ciphers in my application and wondering how to implement this? The application is Angular/ASP.NET Core currently in the latest versions of both technologies. The application is hosted on a Red Hat 7 server. A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71550920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular 2: How to render a multiple event in fullcalndar I am using FullCalendar in angular 2, Events for fullcalendar coming from other source, problem is how should i render the events which contain only multiple event on the day,need to hide or not clickable which show only single event. Please help me
{ "language": "en", "url": "https://stackoverflow.com/questions/47709958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: problems populating list view from text file Android Ok so I am trying to populate a list view in android from a linked list of objects. I am reading lines from a text file, splitting out two values from each line of the text file separated by a "," storing each of these values into a linked list of objects. Then I'...
{ "language": "en", "url": "https://stackoverflow.com/questions/10375300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }