text
stringlengths
15
59.8k
meta
dict
Q: Web API Serialize/Deserialize Derived types I have a Web API that returns a list of objects, when the client passes Accept application/json I want my globally registered json formatter to include TypeNameHandling for the derived types during serialization. However this doesn't work and I can't see why this shouldn't...
{ "language": "en", "url": "https://stackoverflow.com/questions/39749090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Flutter add round app icon for android in VSCode I added app-icons to my app for both iOS and Android. I watched this Tutorial and it is working so far. But the problem I have is that my Android Icon looks like this at the moment: But the icon should fill the circle. In the tutorial it is shown how you can do it in...
{ "language": "en", "url": "https://stackoverflow.com/questions/68763960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to convert string object to json object in javascript I have changed data in string format where it was like [object object] but I want to change the string object into json object I tried json.parse but it not changing into json object can you please suggest me where I am doing wrong and how to fix this try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55572227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: plotting a sympy plot in web2py I want to plot a sympy plot in web2py by writing a web2py function myplot4() and call it using http://host:port/app/controller/myplot4.png This is the demo sympy code for a plot which works in a python shell. from sympy import symbols from sympy.plotting import plot x = symbols('x')...
{ "language": "en", "url": "https://stackoverflow.com/questions/46973057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Define multiple variables at the same time in MATLAB I want to define multiple variables at the same time. For example, I want to define a = 1 b = 2 c = 3 like this. So I made a matrix with [a,b,c]: x = [a, b, c]; y = [1, 2, 3]; x = y So I want to get the following answer. a = 1 b = 2 c = 3 If I use [a, b, c] =...
{ "language": "en", "url": "https://stackoverflow.com/questions/32244836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ERROR 1055 i fixed but why did it gave the error on the first place? I've set the username as a unique key not null CREATE TABLE IF NOT EXISTS `users`( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `username` VARCHAR(255) NOT NULL, `created_at` TIMESTAMP DEFAULT NOW(), PRIMARY KEY (`id`), UNIQUE KEY...
{ "language": "en", "url": "https://stackoverflow.com/questions/52121039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: velocity foreach loop - iterated array gets updated without being used in an assignment I faced a very strange behaviour in the foreach loop of the following velocity template: <html> <body> <table> #set( $arrayOfArray = [[1]] ) #set( $new_arrOfArray = [] ) #set( $new_arr = [] ) <tr><td>Line...
{ "language": "en", "url": "https://stackoverflow.com/questions/44153262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: String key phrase matching In levenstein how are you, hw r u, how are u, and hw ar you can be compare as same, Is there anyway i can achieved this if i have a phrase like. phrase hi, my name is john doe. I live in new york. What is your name? phrase My name is Bruce. wht's your name key phrase What is your name...
{ "language": "en", "url": "https://stackoverflow.com/questions/18841541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Studio: emulator won't install I am running Android Studio 3.2.1 on 32-bit Windows Vista. When it came to running a default tryout application and the emulator choosing window popped up I couldn't install am emulator. It asked me which version of Android and dimensions but then the window closes and the app ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53870916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Script, Run functions in sequence without exceeding execution time I have a lot of functions that fetch JSON API data from a website, but if I run them in sequence in this way, I get the exceeding execution time error: function fetchdata () { data1(); data2(); data3(); data4(); ... } I ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/47142481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I change the colour of my text without using the colour attribute? (HTML & CSS) On my website, I have used a customisable template for my navigation bar. The thing I want to do is to change the underlining colour of the text and not change the actual colour of the text (and as you know the underlining featur...
{ "language": "en", "url": "https://stackoverflow.com/questions/33423011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Error in React-Router: 'Type expected. TS1110' after deleting my node_modules folder and package-lock.json My project was working perfectly well but I went and accidentally deleted my node_modules folder and package-lock.json and then reinstalled everything using npm install and now I'm getting this error Type expec...
{ "language": "en", "url": "https://stackoverflow.com/questions/71315604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Array of Embedded Documents: comparison between fields and value I'm approaching MongoDB and I have a database with this structure: { "_id" : 14185, "ranges" : [ { "first" : 17, "last" : 19 }, { "first" : 6, "last" : 9 } ] } { "_id" : 16478, "ranges" : [ { "first" : 26, "last" : 30 }, { "first" : 3, "last" : 5 } , {...
{ "language": "en", "url": "https://stackoverflow.com/questions/56794693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: ASP.NET Core: How to skip running authentication on [AllowAnonymous] How to identify if authentication is not needed for current request? We have a custom authentication handler, simplified here: internal class CustomAuthHandler : AuthenticationHandler<CustomAuthOptions> { static readonly string[] DontCheckAuth ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57287569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linux Device Driver: Error reporting for partial read()/write() I am implementing a Linux device driver that can have partial reads and writes. For example, the caller may have requested to read N bytes from the device, but part of the way through an error was encountered and now the driver has M bytes available to...
{ "language": "en", "url": "https://stackoverflow.com/questions/50847121", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get the required key value from JMeter JSON Response I want to validate my API response which is in JSON format. In my case I want to get and validate 'IsActive' value for 'SysCreatedUserId' or for particular 'Id'. Please find the below JSON file. I tried with JSON Assertion but no success till now. Can anyon...
{ "language": "en", "url": "https://stackoverflow.com/questions/50970688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting up mysql with RoR, had XAMPP I just got my RoR environment all set up and running. I made my first application with sqlite. I now want to try Mysql. I have XAMPP from when I did a bit of PHP over a year ago, therefor MYSQL is installed. I now want to set up my applications with mysql. I am setting mysql to s...
{ "language": "en", "url": "https://stackoverflow.com/questions/14464352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Volumetric Fog using Unity's shader graph I was wondering if it was possible to create a volumetric fog using unity shader graph. I'm struggling to achieved this shader. Thanks in advance. A: It is possible, but it requires deep knowledge of shader writing. Why not use the built-in Volumetric Fog? Unity has its ow...
{ "language": "en", "url": "https://stackoverflow.com/questions/60971038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Include in Android Development I am very new in Android development. Was just wondering is there any way to include codes in "activity" just like we do in php? Can we use Layouts from one activity to another activity, without actually writing them. For eg. In php we can include <?php include("page.php");?> A: It is...
{ "language": "en", "url": "https://stackoverflow.com/questions/20764030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What is the alternate of numpy.digitize() function in Julia? I would like to know, how may I replicate the numpy.digitize() functionality in julia? I am trying to convert this python example to Julia. Python Example x = np.array([0.2, 6.4, 3.0, 1.6]) bins = np.array([0.0, 1.0, 2.5, 4.0, 10.0]) inds = np.digitize(x, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66235466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VB.NET Extension methods error ''' <summary> ''' Transforms an item to a list of single element containing this item. ''' '</summary> <Extension()> _ Public Function ToList(Of T)(ByVal item As T) As List(Of T) Dim tList As New List(Of T) tList.Add(item) Return tList End Function usage Dim buttonControl As N...
{ "language": "en", "url": "https://stackoverflow.com/questions/5218413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What does this construct mean "__builtin_expect(!!(x), 1)" Specifically, I am asking about the double '!' in the params of the __built_in. Is it a double negation, per the 'C' language? thanks- A: The !! is simply two ! operators right next to each other. It's a simple way of converting any non-zero value to 1, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/24999408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: run part of a script in IPython I'd like to run part of a scritp (script.py) in IPython, up to line 90. I have tried %run -d -b90 script.py as well as %run -d -b 90 script.py but I got the following message I failed to find a valid line to set a breakpoint after trying up to line: 100. Please set a valid breakpoi...
{ "language": "en", "url": "https://stackoverflow.com/questions/38483968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: issue with code=H10 error when deploying strapi with heroku I am trying to deploy a strapi app to heroku and followed all the instructions in https://strapi.io/documentation/3.0.0-beta.x/guides/deployment.html#heroku to the letter but the end results is an application error. can anyone please tell me where I am wron...
{ "language": "en", "url": "https://stackoverflow.com/questions/61123480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing CSS style with Vue.js I am trying to make website and I need to get access to my style thorough Vue. I need to access CSS with Vue because style .skill-bar is background of bar and .skill-bar-fill is green filament which is supposed to have width based on number defined in Vue: So I mean how can I change ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63161997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: increase/decrease each channel of image in android is to slow i m trying to implement some image filters fro that i use this code @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); imageView=(ImageView) findView...
{ "language": "en", "url": "https://stackoverflow.com/questions/12740042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extract a certain content from html using python BeautifulSoup I have been trying to extract Bacillus circulans from following html: <tr><th class="th10" align="left" valign="top" style="border-color:#000; border-width: 1px 0px 0px 1px; border-style: solid"><nobr>Organism</nobr></th> <td class="td10" style="border...
{ "language": "en", "url": "https://stackoverflow.com/questions/44476523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ibatis filling up Nested object in Java I have one java class which resembles to class A { String a; B bclass; } class B { String b; String c; } my ibatis query is : Select a,b,c from A_TABLE and resultmap I want is something like this where I can fill properties of class B (B.b,B.c) as well. <resultMap cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/70958299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Segmentation fault when trying to compare calling object with another object I have following code wherein I am trying to compare this object with another object. But when I try to run It gives segmentation fault. While telling me what changes to be made also tell me why this throws segmentation fault #include<iost...
{ "language": "en", "url": "https://stackoverflow.com/questions/36844315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Classic ASP Array not returning values, error 500 I'm working on executing the same code several times to produce a table. My first thoughts went out to using an array to do this. Here is what i have got so far: Dim iRow iRow = 0 'alternate color for rows Do While Not rsGlobalWeb.EOF If iRow Mod 2 = 0 Then ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7737756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gulp+browserify - get file name/line on error I use gulp to build my browserified files, problem is that when i have a syntax error the build fails with a generic message: events.js:141 throw er; // Unhandled 'error' event ^ SyntaxError: Unexpected token As you can see it's impossible to understand...
{ "language": "en", "url": "https://stackoverflow.com/questions/36263263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to retrieve a data from a table and insert into another table? I am trying to retrieve "customer_id" from Customer table and insert it into fare_tariff(tariff_id, customer_id, total_price) So I retrieve the customer_id from Customer table as below: using (SqlCommand command = new SqlCommand("SELECT customer_i...
{ "language": "en", "url": "https://stackoverflow.com/questions/16248174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WAMP 2.2 and Subversion 1.7.5., how does it work? So i have been working with WAMP for a long time and recently decided to include Subversion and try to connect it with the Apache server installed with WAMP. I have been running over about 6 to 8 guides so far of which almost all of them tell me the same deal. Copy t...
{ "language": "en", "url": "https://stackoverflow.com/questions/11924719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hadoop Mapreduce tasktrackers keep ignoring HADOOP_CLASSPATH. Zookeeper trying to connect to localhost rather than cluster address I have a Hadoop cluster (Cloudera CDH4.2) with 5 datanodes. I'm trying to run a MapReduce job which creates an HBaseConfiguration object. The tasktracker attempts fail, because they're t...
{ "language": "en", "url": "https://stackoverflow.com/questions/18232473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the difference between the reader monad and a partial function in Clojure? Leonardo Borges has put together a fantastic presentation on Monads in Clojure. In it he describes the reader monad in Clojure using the following code: ;; Reader Monad (def reader-m {:return (fn [a] (fn [_] a)) :bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/22264115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why am I getting Insufficient Mapping Error? I run code first based on a pre-existing database and I'm getting a Mapping Error. I tried to put foreign key annotation but without success. Here it the classes mapping: [Table("tablle_1")] public partial class Table1 { [System.Diagnostics.CodeAnalysis.SuppressMessag...
{ "language": "en", "url": "https://stackoverflow.com/questions/56703484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSONDecodeError: Expecting value: line 1 column 1 (char 0) / While json parameter include I'm trying to retrieve data from https://clinicaltrials.gov/ and althought I've specified the format as Json in the request parameter: fmt=json the returned value is txt by default. As a consequence i'm not able to retrieve t...
{ "language": "en", "url": "https://stackoverflow.com/questions/75263505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel validation - required only when two conditions are true I want purchaser_first_name and purchaser_last_name to be required only when the value of gift input in the request is true and the value of authenticated input is false. What I have tried so far: public function rules() { return [...
{ "language": "en", "url": "https://stackoverflow.com/questions/63776072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how do I figure out what version of xerces used in my OpenJDK library? I am developing a Java application using Spring framework. Spring uses the Apache Xerces library which is included inside rt.jar comes with my java OpenJDK 8 installation. I wonder how do I know what exact version of Xerces is used in rt.jar? The...
{ "language": "en", "url": "https://stackoverflow.com/questions/63243062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I get an iterator over the unique keys in a C++ multimap? I am using a std::multimap to map from a key to a set of matching values. I have a situation where I want to be able to list/iterate over the unique keys in the map. How do I get an iterator of the unique keys in a C++ multimap? Another option is using...
{ "language": "en", "url": "https://stackoverflow.com/questions/18282689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Destructuring argument for key along with object in javascript How can I get the passed in object course along with the id key using destructuring the argument as in following code snippet ? ... return ( <div> {course.map(course => { return <Course key={course.id} course={course} />; })} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59309523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: First time using decorators, what am I missing? class User: def __init__(self): self.score = 0 self.wins = 0 self.losses = 0 def tally(self, func): def wrapper_function(w): print("Wins: {}\nLosses: {}\nTotal Score: {}".format(self.wins, self.losses, self.score)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69127485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Block animations - how to cycle an array of UIImage I'm going the direction of block animations, having tried to implement multiple animations and an "on finish" event with UIImageView animations but failing. I have a UIImage array, which I need to cycle backwards through, displaying as I go. Here is what I have so...
{ "language": "en", "url": "https://stackoverflow.com/questions/7052485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using TS\ES6 getters for accessing deep properties (like shortcut) Is it fine to use getters for accessign deep properties of a class property? Or there's a more delicate way to do this? Example: const myObject = { very: { deeply: { nested: { property: { with: { a: { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67090081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Map matrix onto other matrix, row by row I am trying to map a matrix onto another matrix, row by row. Maybe it's better to show this by a simple example: Let startMatrix <- t(matrix( c(2.3, 1.2, 3.6, 6.9, 5.3, 6.7), nrow = 3, ncol = 2)) mapMatrix <- t(matrix( c(1, 1.3, 2, 2.5, 3, 5, 5.6, 6, 6.2, 7), nrow = 5, n...
{ "language": "en", "url": "https://stackoverflow.com/questions/33660344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PrimeFaces - JSF tree's context menu can't show Now I want to use JSF tree's mouse right menu, which is just like the link's example. When I click the mouse right, the menu can be show and disappear immediately. I don't know how to show the mouse right key menu (treecontext). Can you give some advice about that? Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/21047876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Watermark onto a posted imaged So on this website an admin posts an image, before it is sent to the database via sql I want to add a watermark. This is my code for this part. if(!$_POST['name'] | !$_POST['cat'] | !$_POST['frame'] | !$_POST['molding'] | !$_POST['price'] | $_FILES["photo"]["tmp_name"]) { die('Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/26816119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ternary operator in javascript when variable is empty I have used the ternary operator in php $foo = get_field('foo') ?: null; but I'm looking forn an equivalent in javascript. So far I've tried the var foo = <?php echo $foo; ?> || null;. But since <?php echo $foo; ?> in this case is null/empty the console is giving...
{ "language": "en", "url": "https://stackoverflow.com/questions/42693619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Intel HAXM install hangs on macOS Sierra I'm trying to install HAXM 6.2.1 on a MacBook Pro running MacOS Sierra, but the installer hangs. Attempting to install via the GUI .dmg, the dialog "This package will run a program to determine if the software can be installed" appears. I click "Continue," and then the instal...
{ "language": "en", "url": "https://stackoverflow.com/questions/46649216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stop eclipse formatter from removing certain useful parts of HTML code <tr ng-repeat="rows in CalendarBean.weekList"> <td ng-repeat="cellList in rows"> <div id="{{cellList.fullDate}}" ng-click="onDateSelect(cellList.fullDate)" class=" {{cellList.timeClass}} {{cellList.leaveFlag}}+{{cellList.hol...
{ "language": "en", "url": "https://stackoverflow.com/questions/49045188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to serve file under root path using Nginx? I have a website laike9m.com, which is served by Nginx. I want to access a text file AAA.txt with url laike9m.com/AAA.txt. The text file is on my server, let's say it's $HOME/AAA.txt. Redirection is not allowed. Current Nginx conf file is here. Thank you. A: location ~...
{ "language": "en", "url": "https://stackoverflow.com/questions/33075861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CFReadStreamOpen Returns Error kCFStreamErrorDomainPOSIXDomain I want to make a MD5 of an Image so I am doing this with below code CFStringRef FileMD5HashCreateWithPath(CFStringRef filePath, size_t chunkSizeForReadingData, BOOL *isAbort) { // Declare needed variables CFStringRef result = NULL; CFReadStre...
{ "language": "en", "url": "https://stackoverflow.com/questions/49666209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Telegram Menu Keyboard bot Hello i have a question about bots in telegram, 2 years ago we could create telegram bots easily with chatfual bot, now i need make a bot that has menu button from bottom and when user tap on the button it answers the user and send the message like before, is there any full tutorial about ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62443957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to upload canvas and image to the server with Javascript I have html code as follows: <div id="wrapper"> <img id="photo" src="http://autralis.blob.core.windows.net/thumbnails/1024x768/36/74/57/36745738883478623422431720268247042049573454290037543508541937745291910806066.jpg"/> <canvas id="canvas"></can...
{ "language": "en", "url": "https://stackoverflow.com/questions/48619138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any need/advantage of calling an api using the http client service when using websockets in angular? I am trying to learn how to use socket.io by building a simple chat app using the socket.io library and MEAN stack. From looking at some open source projects(like this one) I have seen that the client, mainl...
{ "language": "en", "url": "https://stackoverflow.com/questions/58654499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prioritize Tasks in Android I have a map application, and every time that the user moves the map I have to make a new request to the back-end to receive the points. Right now I'm already optimizing a lot the process of getting the points. But I'd like to add prioritizing functionality to my Threads. It's executing t...
{ "language": "en", "url": "https://stackoverflow.com/questions/30200393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ Can't figure out arrays and functions Possible Duplicate: Stuck on C++ functions and arrays Stuck on this problem: I can't get it to run and i am stuck on getting the array functions to return to main. Thanks for any help. Requires the utilization of a 2 dimensional array to store the pounds of food eaten by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13281089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How do I run several linear regressions at once in R? If I have a dataset with variable A, X, Y, and Z and I want to run two linear regressions - both have A as the dependent variable but one has X as the independent variable and the other has Y (note - NOT multiple regression), what can I do? lm(A ~ X, Y, df = df) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64391589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implement search box for dropdown in angular I want to implement search box without any third party libraries, i want search to be inside the dropdown. how to do this <select class="form-control" [(ngModel)]="selected5" [ngModelOptions]="{standalone: true}" formControlName="manpower_requirement"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64857213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getting HTTP Status 500 when location href or when forwarding from Servlet? I get this error: HTTP Status 500 - type Exception report message descriptionThe server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: java.lang.NullPointerExcep...
{ "language": "en", "url": "https://stackoverflow.com/questions/8013800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Why is execstack required to execute code on the heap? I wrote the code below to test shellcode (for unlinking /tmp/passwd) for an assignment in a security class. When I compile with gcc -o test -g test.c, I get a segfault on the jump into the shellcode. When I postprocess the binary with execstack -s test, I no lon...
{ "language": "en", "url": "https://stackoverflow.com/questions/23276488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Meteor JS: Organizing Code for Sharing Code Between Template Helpers Inside my Meteor JS Project's client/templates/pages folder I have these files: 1.) admin_add_product.html and admin_add_product.js 2.) admin_edit_product.html and admin_edit_product.js Inside both admin_add_product.js and admin_edit_product.js I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/29729993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Analytics with First Party Cookie I am in the process of setting up Google Analytics (GA) on a Wordpress site. As part of this, I want to include a custom cookie (for users that consent) that allows me to segment the analytics of users based on what settings they have active on the site (via a custom plugin)....
{ "language": "en", "url": "https://stackoverflow.com/questions/47817595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Image resize script I'm searching a javascript that can resize images similar to script thats available as a plugin in vBulletin CMS: I want the script to be used in blogger blog so that all images i upload into a post are resized to a smaller res and on clicking the image should be displayed in original dimensions...
{ "language": "en", "url": "https://stackoverflow.com/questions/6314005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to dynamically load the material-ci-icons icon I use Material-ui@next and material-ui-next@next material-ui@next load one icon usage: import AddIcon from 'material-ui-icons/AddIcon'; function AddIconButton(props) { return ( <AddIcon /> ); } But I want dynamically load the material-ci-icons icon...
{ "language": "en", "url": "https://stackoverflow.com/questions/45416796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: java.lang.AbstractMethodError: org.hibernate.search.elasticsearch.analyzer.impl.ElasticsearchAnalyzerStrategy.initializeAnalyzerReferences I am trying to integrate elastic search with hibernate search.For doing this I am using following maven dependencies. <dependency> <groupId>org.hibernate</groupId> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44454773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Observable in for loop? I would like to call an observable REST service in a for loop. It returns base64 encoded csv file. I would like to decode it and concatenate it into one string and return it. After that I am trying to subsrciibe to that method and click the DOM to download. I get empty string with only "\r\n"...
{ "language": "en", "url": "https://stackoverflow.com/questions/70500841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to set java web application's context root when working with reverse proxy * *My old way using mod_jk in apache and configure virtual host in tomcat In the JSP file, I refer to CSS as below /<%=request.getContextPath()%>/css/styles.css while the home link is set to /<%=request.getContextPath()%>/ so this wor...
{ "language": "en", "url": "https://stackoverflow.com/questions/8708009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to vectorize process of spltting vector I have a vector of numbers (here random). I'd like to calculate the consecutive relation of something (here means to clarify example) on the left and right side of each number in a vector. Here is a procedural example. I'm interested in the vectorized form. from numpy.rand...
{ "language": "en", "url": "https://stackoverflow.com/questions/58961233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Function that reads and stores values from configuration file I'm relatively new to C++ programming and I am just trying to create a function that opens a configuration file, reads each line and column, then stores the values into some array. So my config file will look like this which simply just stores values: 123...
{ "language": "en", "url": "https://stackoverflow.com/questions/64886675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access Parent Element Within href So... this is a simple question with a simple answer, but somehow my RTFMing isn't proving any results. I have a link within a div, like so: <div> <a href=''>Close</a> I'd like to close that div with that link, and I've been trying the following code: <div> <a href="javascript:this....
{ "language": "en", "url": "https://stackoverflow.com/questions/5054342", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create this below JSON response using python DRF Since I am new to this DRF I am facing some difficulties creating this JSON. I have created an API endpoint and the output of that API endpoint is like this now as shown below "meta": { "limit": 1, "page_count": 1, "total_count": 1 }, "results...
{ "language": "en", "url": "https://stackoverflow.com/questions/69783608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to empty/flush Windows READ disk cache in C#? If I am trying to determine the read speed of a drive, I can code a routine to write files to a filesystem and then read those files back. Unfortunately, this doesn't give an accurate read speed because Windows does disk read caching. Is there a way to flush the dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/122362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Python - huge memory consumption while parsing folder of CSV files I have several folders, each of them contains many CSV files. I need to parse them to make some plots etc. The problem is, that memory consumption is huge and after while it skyrockets to cca 3.4GB. I have no idea what's the cause of this behavior, I...
{ "language": "en", "url": "https://stackoverflow.com/questions/38789141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get clean website url with php? I'm using $wsurl as my websites clean url $wsurl = 'http://'. $_SERVER['HTTP_HOST'] . '/'; But recently when I want to echo it from websites admin panel it gave me result: http://localhost/admin/>http://localhost/?page=166 instead of http://localhost/?page=166 More Detailed Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7722104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CreateChooser is not working in Android v5.1 I am using intent to share pdf files. I am restricting apps when share file. I want to share the file to Good document, Kindle and drop box alone. I am using the below code to achieve this.But the below code is not working in android v5.1. The device have the required app...
{ "language": "en", "url": "https://stackoverflow.com/questions/46870684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Axios delete is ignoring the second argument This is my createAsyncThunk export const removePlayer = createAsyncThunk( 'player/removePlayer', async (playerId: any, thunkAPI) => { try { await axios.delete(URL, playerId) } catch (error) { return thunkAPI.rejectWithValue(...
{ "language": "en", "url": "https://stackoverflow.com/questions/74024498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a simple way to use OpenSSL BIO objects in Java or are there any alternatives? Could anyone tell me is there any way to use OpenSSL's BIO objects from Java? I'm working on a project, which is intended to provide support for handling of PEAP (https://en.wikipedia.org/wiki/Protected_Extensible_Authentication_...
{ "language": "en", "url": "https://stackoverflow.com/questions/33735188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: downgrade laravel project 5.5 to 5.0.* First of all sorry about my English! I'm in situation where I need to downgrade my Laravel project because some history about php version running on installation server (php 5.4). After I set my composer.json and run update, I get this error   composer update --no-interaction -...
{ "language": "en", "url": "https://stackoverflow.com/questions/51249680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue with ComboBox - DropDownStyles + Disable Text Edit So i've looked at a few stackoverflow posts and nothing seems to be solving my issue. Tried: How to show text in combobox when no item selected? And some others, can't find link now. Application: http://puu.sh/5mQtX.png So for the drop down menu at the bottom...
{ "language": "en", "url": "https://stackoverflow.com/questions/20064795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to integrate Google Play Games Services Realtime Multiplayer into LibGDX for both Android and iOS? I have integrated real-time multiplayer in LibGDX for Android. Now I am wondering how to implement it also for iOS. I have a few questions: Is this possible? Can Android and iOS players play together? Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/39674885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve the formated URL from open_id form I just added OpenID to my website using the PHP janrain libraries, and I got everything working but I have a question about how to do something. After receiving the openid_url from the user, I pass it to the openid lib, which then processes the url and gets it ready to sen...
{ "language": "en", "url": "https://stackoverflow.com/questions/1025160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to fix 'shopify.api_version.VersionNotFoundError' I am building a simple “Hello World” using Python, Flask and the Shopify Embedded SDK. Following this tutorial----> https://medium.com/@dernis/shopify-embedded-sdk-with-python-flask-6af197e88c63. After doing all the work when I go to the link ' https://localhost:...
{ "language": "en", "url": "https://stackoverflow.com/questions/56520956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can i see the log written by uisng Gauge.writemessage()? Just now i am started switching from testNg to Gauge framework for many reasons, now my question is where i can find the log which was written by using Gauge.writemessage inbuilt method. Or else is there any way to customize the location for the sam.? A...
{ "language": "en", "url": "https://stackoverflow.com/questions/54090709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I replace Fragment inside Dialog inside a DialogFragment? I'm trying to use https://github.com/rockerhieu/emojicon library in order to produce an EmojiKeyboard over the softkeyboard just like WhatsApp and Telegram does. After some research, I figure that the way they do is by creating a Dialog over the soft...
{ "language": "en", "url": "https://stackoverflow.com/questions/35381896", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: convert hex to decimal with awk incorrect (with --non-decimal-data or strtonum) awk hex to decimal result is incorrect, not equal with bash/python echo 0x06375FDFAE88312A |awk --non-decimal-data '{printf "%d\n",$1}' or echo 0x06375FDFAE88312A |awk '{printf "%d\n",strtonum($1)}' the result is 447932102257160448, bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/57781308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TSQL getting record count and records in single query I got this tasks table that has TODO items. We are retrieving the todo items and the count of Finished, Pending tasks using separate query in single stored procedure even though it is querying from same table. Here is the query, select TaskName 'Task/TaskName', C...
{ "language": "en", "url": "https://stackoverflow.com/questions/8784744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HID reports/scan codes for iPhone's/iPad's home button I'm creating a very simple Arduino BT keyboard for iOS using a RN-42-HID Bluetooth module. I've been able to connect to an iPad and send it a few HID reports. So far, I can make the cursor go left, right, up and down, as well as select a certain app. Yay! I do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/17621359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Use the same object animator property (translationx) twice on one object at the same time I have spent the entire day trying to figure this out. I have tried a plethora of code combinations but none of them want to work. Well technically they do work but not the way I'm wanting it to. If I add translationY property ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54230791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Transitions on tab load - bug I am creating a home screen and I have 3 tabs that you can go between on the home screen. When you click one all the li's within the tab transition in to the page but if you click between the tabs quickly then they don't always load. This only seems to effect Chrome on pc and mac an...
{ "language": "en", "url": "https://stackoverflow.com/questions/21768920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flutter & Firestore - problem about "startAfter" pagination I am able to use "startAfter" and "limit" to do pagination but it have bug. For example, in Firestore DB I have 7 records: {"title": "item1", "create_datetime": "2018-11-11 11:11:11"} {"title": "item2", "create_datetime": "2018-11-11 11:11:11"} {"title": "i...
{ "language": "en", "url": "https://stackoverflow.com/questions/53491952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: query nutch 2 table result from cassandra 2 dose not look right I am using Nutch 2.2.1 and Cassandra 2 to craw pages. for a test i just inject one url to Cassandra and explore the database. Using CQL i can query the table in the webpage keyspace cqlsh:simplex> select * from webpage.f; key ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23327152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Need help on choosing locks for thread synchronization I have several modifying threads and some reading threads, which all access the global variable X. I want to make my synchronization policy like this: When a thread try to modify X, it will require a lock first, and several modifying threads can have several loc...
{ "language": "en", "url": "https://stackoverflow.com/questions/976310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing a class method from within an Active Record scope? I am having issues with the scope in this model and I'm at a loss at how best to fix it. I would like to call the distinct_mechanics_sql from within the scope to keep things cleaner, but when I run this I get an "undefined local variable or method" error. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27259171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to correctly send a matplotlib.figure.Figure to a private telegram channel on Python3 via Telegram API? Say I have the following df called df_trading_pair_date_time_index which contains the following data: Open High Low Close End Date Start Date ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73331428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: question about SQLAlchemy's choice of join targets I'm going through the SQLAlchemy ORM tutorial (https://docs.sqlalchemy.org/en/latest/orm/tutorial.html#querying-with-joins) and there's a part that confused me more than it helped me: What does Query select from if there’s multiple entities? The Query.join() method...
{ "language": "en", "url": "https://stackoverflow.com/questions/55679506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using SVG, hover on X, Y or Z to make X and Z rotate I have an element (logo) on my webpage which contains three other elements, I want to make it so when the logo as a whole is hovered, two of the elements within the logo (two of the letters) will rotate around their centre indefinitely. I have achieved rotating el...
{ "language": "en", "url": "https://stackoverflow.com/questions/38726512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: json post request size limit (now a verified php-mysqli bug) I'm sending a request to my PHP application through a JSON-encoded ajax request (form process). A post-request with character length of 4174 is successfully processed and the result is received correctly. Adding one additional character to the request ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/612657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: nodejs proxy local api calls to external rest api service (no express.js) I'm running the demo app of angularjs (angular-seed) using nodejs with the default project file /scripts/web-server.js (see below) I would like node js to proxy/redirect all the local calls to /api to the external Rest api endpoint http://www....
{ "language": "en", "url": "https://stackoverflow.com/questions/20635799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: java.lang.IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling I am trying to remove an item from listview which is not starting a specific text "Dev". But the application is crashing when I remove an item and refresh the recycler list via notifydatasetChanged(). This ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48162513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }