text
stringlengths
15
59.8k
meta
dict
Q: luajit run error after it use much memory My program embedded luajit. It run well most time. Buf after is uses much memory, it began to run some logic error such as the result of > will be wrong. How to find and solve the problem? My program is use lua,it runs well for years. I recently change it to luajit. My progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/58603681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to filter elements of an array based on a property inside double nested array Well, i have a complicated issue. at least it is complicated for myself. So i have an Array which has an Array that has an Array in it. and i want to filter The very top array based on properties inside the deepest array. Lets say i h...
{ "language": "en", "url": "https://stackoverflow.com/questions/55629114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to calculate quarterly wise churn and retention rate using python How to calculate quarterly wise churn and retention rate with date column using python. with date column i want to group that quarterly using python. This is used to calculate the churn count groupby quarterly quarterly_churn_yes = out.loc[out['Ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/49355891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to make an icon fit into a row element in react-bootstrap I am having a small issue fitting an icon into a Row element. right now the icon takes up the whole row :: <LinkedInIcon /> I was able to make it not take up the whole row :: <div style={{ background: "white", display: "inline-block" }}> <LinkedI...
{ "language": "en", "url": "https://stackoverflow.com/questions/74777687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get value by xPath knowing only the child of another node - selenium I have some problem. I have a few checkboxes but there are no id or name for tags. Structure looks like this: I would like to get green value but I only know red value: name=onlyWebsite. But this is different node. Ofcourse when I do: //input[@nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/68180806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How move the scroll only when there are the keyboard I used this function to move my scroll, but this function is activated when I don't have a keyboard, I only want to use it when there is a keyboard, how can I solve this? <Entry Placeholder="entry" Focused="EntryKeyboardHandle_Focused" void EntryKeyboardHandle...
{ "language": "en", "url": "https://stackoverflow.com/questions/61279486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Grid resizes the line based on the largest widget I'm having trouble resizing the ComboBox. Instead of being on the "Filter Order Status" side, she walked away. I realized that this happened because the size of the grid line was increased due to the size of the largest widget, which in this case are the tables. How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62662206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Applying/removing last-child styling in a dynamic listing I have an unordered list with dynamic contents that can be shown/hidden, with all the li having border-bottom except the last child. However, with jquery's .hide() applied to the last child, the element is just given display:none, therefore making the visual...
{ "language": "en", "url": "https://stackoverflow.com/questions/37536498", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: PHP variable declaration I have some simple system to upload files and keep track of them for each particular user, using a database. The problem of mine is, I connect to the database in the file checklogin.php, which is responsible to handle the $_POST from main_login.php. In file 'checklogin.php': $current_user_na...
{ "language": "en", "url": "https://stackoverflow.com/questions/21694986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Plot "extended" predicted survival on top of KM ggsurvplot I would like to have those two plots gathered on one single plot. This would allow me to check how survival evolve on the long run while visually assessing the goodness of fit of the distribution. Can you help me? library(survminer) require(flexsurv) data(b...
{ "language": "en", "url": "https://stackoverflow.com/questions/59435385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use clang to compile code with gnu directives Is it possible to compile this code with clang so that it does not produce the "unknown directive" error? .list .text .globl _main .align 16, 0x90 _main: ret .nolist Edited: clang version 3.6.2. test.s:1:1: error: unknown directive .list test.s:7:1: error: unknown direc...
{ "language": "en", "url": "https://stackoverflow.com/questions/46489043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Backbone Routers: wait for data to be fetched first I think I don’t quite get the idea behind the proper usage of Backbone routers. Here’s what I’ve got: I have some data that I fetch from the server when the page loads and then pack it into models and collections. The number of those models and collections is indef...
{ "language": "en", "url": "https://stackoverflow.com/questions/7822542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Storing the name of a radio button when checked, then removing it when it's cleared This is the HTML code I currently have: JSFiddle <div class="container-cell col1 row1 component-sortable component-droppable ui-block-a" style="width:48%; text-align: left; vertical-align: top;" data-col="1" data-row="1"> <style> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48075136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ : avoiding compiler dependencies vs. avoiding pointer overuse I know it's considered old-fashioned / out-of-date style to overuse pointers where they aren't necessary. However, I'm finding this ideal conflicts with another consideration of avoiding compiler dependencies. Specifically, I can use forward declarati...
{ "language": "en", "url": "https://stackoverflow.com/questions/18340719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Invalid access_token when using RSpec request specs to authorize a request I'm trying to test CredentialsController, which works fine in production, using RSpec request specs. Code Controller class CredentialsController < ApplicationController before_action :doorkeeper_authorize! def me render json: current_...
{ "language": "en", "url": "https://stackoverflow.com/questions/60764500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Cannot publish .net application or to install Web Deploy 3.5 When I tried to publish my .net application on the server using using Web Deploy 3.0 I got this error: Web deployment task failed. Microsoft.Web.Deployment.DeploymentBaseOptions' does not contain a definition for 'UserAgent' Searching the web I found that...
{ "language": "en", "url": "https://stackoverflow.com/questions/26831934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: database functional dependency decomposition Table - Person {ID, Name, Age, Line1, City, State, Zip} FD set 1) ID -> every other attribute as it is PK 2) I'm not able to determine whether zip -> {Line1, City, State} or.. {Line1, City, State} -> zip? [both of these are candidate keys I guess] In either case, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8161484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Append only if there are no duplicates I'm making a simple notification list with AJAX and I made it append html with data from a PHP script to a div with setInterval. It should only append if it hasn't appended that specific div already, and when I insert a new row in database it should add the new row only and not...
{ "language": "en", "url": "https://stackoverflow.com/questions/48804841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: --inspect-brk node-args for hardhat js scripts I run a hardhat script like this: npx hardhat run myscript.js I'd like to be able to debug this in the Chrome inspector, but when I do npx --node-arg=--inspect-brk hardhat run myscript.js I get the error message "ERROR: --node-arg/-n can only be used on packages with...
{ "language": "en", "url": "https://stackoverflow.com/questions/68785576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Creating and appending a DOM element with the content of another element My code is as follows ;(function(window){ var $description_window= document.querySelector('.mg_post_description'), $headings= document.querySelectorAll('.mg_blog_main_content h3'), $paragraph = document.createElement('p');...
{ "language": "en", "url": "https://stackoverflow.com/questions/43817360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pipe and select : sample code not working Am I missing something ? I want to come out of select by calling write in another thread... It never comes out of select. Code is tested on OSX snow. fd_set rio, wio; int pfd[2]; void test(int sleep_time) { sleep(sleep_time); char buf[] = "1"; write(pfd[1], buf, 1); }...
{ "language": "en", "url": "https://stackoverflow.com/questions/5185836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: symfony (doctrine): DQL query, how to exclude results? I have very basic knowledge of SQL and don't how to modify my query so it returns the expected result. My entities Activity has a field members (a manyToMany relation). An activity can be done by several members. I want to select all the activities a specific me...
{ "language": "en", "url": "https://stackoverflow.com/questions/36637186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how check if doc was updated using updateOne() [mongoose,React , Node js, Mongodb] here is my updating code apparently this works but I have no clue as to how to programmatic check if it had worked, I had an idea of storing the field want to update in temp variable before updating and then compare it against update...
{ "language": "en", "url": "https://stackoverflow.com/questions/64271816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing Sharepoint Project web app REST from separate app I need to connect to our corporate PWA. This is the code I'm using: // var endpointUrl = 'https://<companySite>.sharepoint.com/sites/pwa/_api/web/lists'; var endpointUrl = 'https://<companySite>.sharepoint.com/sites/pwa/_api/ProjectData/Projects?$select=Pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/41719686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send array of custom object as a multiform data content to asp.net web api via postman? How to properly send array of custom objects to asp.net web api via Postman? What I have done is: Custom class: public class SystemConsumerConfiguration { public int SystemId { get; } public Uri Callbac...
{ "language": "en", "url": "https://stackoverflow.com/questions/54146281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I put my Extjs 4.2.x project inside latest Angular App I have a large app built in Ext4.2.x. Now the requirement is to do further development in Angular. I am trying to create a wrapper of Angular around Ext app so that we can use angular for further development/ migration of code piece by piece. till the ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/48524407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I trigger action back in the react-native from my WebView? I have a component <PaymentView />, this component display a credit card/cvc/expiry form. It is displayed in a react-native application using react-native-webview. I must trigger the form event and update the view on submit, the submit button is curr...
{ "language": "en", "url": "https://stackoverflow.com/questions/62346035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python, creating a new variable from a dictionary? not as straightforward as it seems? I'm trying to create a new variable that will consist of an existing dictionary so that I can change things in this new dictionary without it affecting the old one. When I try this below, which I think would be the obvious way to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3525453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP Delete MySQL Records Older Than 3 Days I have the following at the top of every page so when the website is loaded by anyone PHP deletes any record in a specific database table that is older than 3 days. $conn = getConnected("oversizeBoard"); mysqli_query($conn, "DELETE FROM postedLoads WHERE date < DATE_SUB(DAT...
{ "language": "en", "url": "https://stackoverflow.com/questions/36383351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xamarin Forms Image to ASP.NET API Controller (Post) I have a controller in my API that requests a HttpPostedFileBase as one of the parameters. I also have a Xamarin Forms application that is going to send out a post request to this API, passing the image as data. What would be the best way to send an image, I cann...
{ "language": "en", "url": "https://stackoverflow.com/questions/52820602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nuxt: Cannot read property 'title' of undefined I am doing a Nuxt tutorial and I cant figure out why I keep getting thisCannot read property 'title' of undefined error. Is there something I am missing or could it be that Nuxt/Vue has been updated since the tutorial was released? Recipes page: <template> <sect...
{ "language": "en", "url": "https://stackoverflow.com/questions/52948004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error in Github Action for Laravel / PHPUnit I have an error in my github action for my laravel unit/feature tests using PHPUnit. My tests are passing locally. This is the error: 1) Tests\Feature\ClientControllerTest::test_clients_index_page_is_rendered Illuminate\Database\QueryException: SQLSTATE[HY000]: General er...
{ "language": "en", "url": "https://stackoverflow.com/questions/70669966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript - Would 'lunr' be a viable search library for Firebase? I'm trying to implement a search bar for my website that uses Firebase as its database. It's a bunch of links to certain images and embed videos. I'm thinking is it best to have a "tag" field for each link, that the lunr library would query for? I'd ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38231475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extracting the city boundary coordinates from an OpenStreetMap dataframe I have the OpenStreetMap data for a country stored in a dataframe df. How can I get the coordinates (which together form a polygon in OSM terminology) of specific cities? A previous answer on how to access a city give me this code: df.filter(df...
{ "language": "en", "url": "https://stackoverflow.com/questions/69242873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Definitive List of Common Reasons for Segmentation Faults NOTE: We have a lot of segfault questions, with largely the same answers, so I'm trying to collapse them into a canonical question like we have for undefined reference. Although we have a question covering what a segmentation fault is, it covers the wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/33047452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Deploy Play 2.1 RC1 Java Application to Heroku Got 'NoSuchMethodError scala.Predef$.augmentString' This application was migrated from Play 2.0.4. to 2.1-RC1. When push to heroku, I got this error from heroku logs. Should I use a different build pack for Play 2.1? 2012-12-11T03:04:36+00:00 heroku[web.1]: Starting pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/13813078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: multiple database access from one application I am working on a C# application with SQL Server 2008. I have two different databases. I will be selecting the database name from the drop down list at login time. When I'm inserting 5 rows into the table, that time 3 rows are inserted in the table of the database which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/29540277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Camera View Corner Borders In Css This is question not more specific. I want to so common, because most of the web developers have this problem. We all know the camera view which has border in 4 corners but not in the right/left/bottom/top. How can we make this effect using css? html <div id="div1" /> <div id="div2...
{ "language": "en", "url": "https://stackoverflow.com/questions/51646033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why javax.servlet package is distributed only as part of application servers? I'm not new to servlets. But I'm still curious: why javax.servlet package isn't distributed on its own? Why I need some application server installed before I can compile my code? A: Short answer, it is distributed separately. Servlets are...
{ "language": "en", "url": "https://stackoverflow.com/questions/14967338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF - databinding controls in UserControl to class members within the same UC (C#) How can I databind the controls within my usercontrol to a class instance within the same UserControl in WPF/C#? For example if I move the slider the value of a certain class member should update. If I change the class or some value ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6812783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot view code in Azure portal for function created / deployed via Visual Studio, yet I can when I make the function via the portal I have an Azure function that I created in the Azure portal. I added a timer function and some dummy code and it works fine; I created and wrote the code in browser - let's call this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48798453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: add values from list to another list I am trying to add values from ListArray coords to the ListArray linhasCoords but the linhasCoords doesn't get all values. My point is, for each ID, save all the coordinates Lat and Long. My code: http://pastebin.com/P2k82wQ3 public HashMap<Integer, ArrayList<LatLong>> load_Road...
{ "language": "en", "url": "https://stackoverflow.com/questions/23371907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert Object properties into their own objects possible? Let's say I'm pulling some JSON data: [{"a": "1", "b": "2", "c": "3"}] Is it possible to convert the above to: [{"a": "1"}, {"b": "2"}, {"c": "3"}] How can this be achieved in JS? Thanks in advance. A: Assuming: var myObj = [{"a": "1", "b": "2", "c": "3"}...
{ "language": "en", "url": "https://stackoverflow.com/questions/26255867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: python3.9 pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 61] Connection refused)") pls tell me how to deal with the problem import pymysql conn = pymysql.connect(host='localhost',port=3306,user ='root',password ='123456',database ='account',charset ='utf8') ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71600650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Grails many-to-many and one-to-one with belongsTo I'm trying to achieve the following with Grails / Gorm: Some users are lecturers. Several users can be assistants for several lecturers and several lecturers can have several assistants. I'm trying to add an additional many-to-many relation to the existing one-to-one...
{ "language": "en", "url": "https://stackoverflow.com/questions/43258158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R how to reference a dynamically created object I have the following R code which creates 5 objects dynamically with names such as cluster1_dataset, ...., cluster5_dataset as follows: # Extract cluster data for (i in 1:K) { assign(paste("cluster",i,"_dataset",sep=""), subset(clustered_input_dataset, cluster == i))...
{ "language": "en", "url": "https://stackoverflow.com/questions/34403654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check ID element via tagname? How I can get the ID of an element selected via getElementsByTagName? I want to check elements' IDs that are <img> elements. A: You can access all element's attributes document.getElementsByTagName("td")[0].id // returns the id attribute document.getElementsByTagName("td")[0]....
{ "language": "en", "url": "https://stackoverflow.com/questions/33131488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: My grid quickly disappears on page load due to incorrect force being applied? So I'm recreating the warping grid from Geometry Wars in a web page to further test my skills with JavaScript and I've hit another snag. I'm following a tutorial written in C# over on TutsPlus that I used a long time ago to recreate it whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/58033180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL to return list of years since a specific year I need a list of years as a recordset starting with 2004 to current year (in desc order), without writing a stored procedure. Is this possible? (SQL Server 2005). So it should return: 2009 2008 2007 2006 2005 2004 A: Updated to return current year plus previous 5 ye...
{ "language": "en", "url": "https://stackoverflow.com/questions/626797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: Printing on a thermal printer Java I'm using the following code to print some text on a thermal printer with 80mm roll paper: public class printnow { public static void printCard(final String bill) { final PrinterJob job = PrinterJob.getPrinterJob(); Printable contentToPrint = new Printable() {...
{ "language": "en", "url": "https://stackoverflow.com/questions/17977510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: RewriteRule is not working after upgrade 2.4 I had upgrade my server to apache 2.4. After doing some configuration some .htaccess file is not working. Following .htaccess is not working. It jest return 404 error. But this URL is working in land area. RewriteEngine On RewriteRule ^(.*)$ http://10.0.2.40/LandBank/$1...
{ "language": "en", "url": "https://stackoverflow.com/questions/27481410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Replicate Webbrowser Save Page As function in C# I'm looking for a method that replicates a Web Browsers Save Page As function (Save as Type = Text Files) in C#. Dilemma: I've attempted to use WebClient and HttpWebRequest to download all Text from a Web Page. Both methods only return the HTML of the web page which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51289244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenModalWindow throws error first time the screen calls it I have been building an IT Ticketing / inventory system, and the program is done, now I'm adding instructions for the end users and the other techs in our school. Since I know nobody will read an instruction manual, I opted to make instructions for each scr...
{ "language": "en", "url": "https://stackoverflow.com/questions/18516223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide Qcheckbox when Qcombox box selects an item? from PyQt5 import QtCore, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(762, 590) self.centralwidget = QtWidgets.QWidget(MainWindow) self.centr...
{ "language": "en", "url": "https://stackoverflow.com/questions/52976860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: angularjs: directive and ng-repeat add extra div I've got the directive as follows: app.directive("photos", function () { return { restrict: "E", replace: true, scope: { "photoid": "@", "scrollable": "@", "size": "@", "list": "=", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25961966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to implement SSL on Apache 2.2 Is there a step by step way to configure SSL on Apache 2.2. I have searched and tried a lot of things but the configuration is not working. A: Check these links. These might be useful for your case http://extrimity.in/content/enable-ssl-or-https-ubuntu-1104-apache-2 http://wiki.vp...
{ "language": "en", "url": "https://stackoverflow.com/questions/17218968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I search for a string using Line Input and then print the next 5 lines in Excel cell How do I search for a string, then when the string is found, write the entire line where the string is found, and then the next five lines into the same Cell in Excel using VBA? Basically, I have a text file that I am importi...
{ "language": "en", "url": "https://stackoverflow.com/questions/21067749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python threading - continuously save results from other threads I want to get data from two sensor by means of threads. Assume, that these data are available by calling a corresponding funtion. These sensors should continuously be queried, but their values should only be saved when the time difference between two me...
{ "language": "en", "url": "https://stackoverflow.com/questions/68576589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JNA with Fortran assumed size array I have a Fortran subroutine taking an assumed size array: subroutine sub(arr) implicit none double precision arr(*) end subroutine I made a native call from Java using JNA, the Fortran subroutine is compiled as a shared library mylib.so: import com.sun.jna.Library; import com...
{ "language": "en", "url": "https://stackoverflow.com/questions/37710480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Calling service from one docker container to other container is causing net::ERR_NAME_NOT_RESOLVED i am running application with multi containers as below.. feeder - is a simple nodejs container from image node:alpine api - is nodejs container with expressjs from image node:alpine ui-app - is react app container fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/53899300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Substring extraction using bash shell scripting and awk So, I have a file called 'dummy' which contains the string: "There is 100% packet loss at node 1". I also have a small script that I want to use to grab the percentage from this file. The script is below. result=`grep 'packet loss' dummy` | awk '{ first=match...
{ "language": "en", "url": "https://stackoverflow.com/questions/2573009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to display percentile stats per URL on the console I'm am working on writing some performance tests using Taurus & Jmeter. After executing a set of tests on a some URLs, I see the stats on console as below. 19:03:40 INFO: Percentiles: +---------------+---------------+ | Percentile, % | Resp. Time, s | +---------...
{ "language": "en", "url": "https://stackoverflow.com/questions/52693979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: open a new page using onClick but after that back to the previous page is not working when I click a image. It's open a new page and a value pass through this click. It's working properly. but when I click back, It's do not show the previous page. I use this code for click. <img src="images/view.png" hspace="5" titl...
{ "language": "en", "url": "https://stackoverflow.com/questions/35357948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: PHP & MySQL username submit problem I want to allow users to either have there username field empty at any time but I get the username error message Your username is unavailable! how can I correct this problem? Here is the PHP code. if(isset($_POST['username'])) { $u = "SELECT * FROM users ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2650043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Important topics/APIs list for Java interview This is little different from what already been asked for here I would like to know what topics/APIs are most important for Java interviews. for example - * *Concurrency, *Collections .....and like that. The reason is because implementations like ConcurrentH...
{ "language": "en", "url": "https://stackoverflow.com/questions/4085089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to determine the facet content in a custom controls design definition? I'm putting together the design definition for a custom control and would like to vary how it displays based on whether or not a different custom control has been placed in the one of the facet areas. Is this possibe with the desig...
{ "language": "en", "url": "https://stackoverflow.com/questions/10245764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to perform a simple Couchbase Lite query I wanted to know how it's possible to do some simple CouchbaseLite queries. I have a document named "test", with key-values "id": 5 and "name":"My first test". I wanted to search following: * *I want to get the id (5) where name = "My first test". *I also wanted ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58919815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Lifting a function which takes implicit parameter using functor (Scalaz7) Just started learning Scalaz. Here is my code trait Monoid[A] { def mappend(a1: A, a2: A): A def mzero: A } object Monoid { implicit val IntMonoid: Monoid[Int] = new Monoid[Int] { def mappend(a1: Int, a2: Int): Int = a1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38300335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS Chart Control Scale - Line graph show 12 months On my X Axis, I have months. The chart shows up to 11 points, i.e. Jan - Nov of the same year, but when I add 12 points (Jan - Dec), it will do an auto label thing and change the interval for every 4 months. How can I change the graph so that it shows 12 months befo...
{ "language": "en", "url": "https://stackoverflow.com/questions/2993879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you mount a VueJS UMD build onto existing HTML? I've been attempting to take a couple of small components from our main app to use on a landing page, but haven't had much luck! I have some existing HTML in the DOM, let's say: <div id="app"> <h1>Demo Feature #1</h1> <demo-component /> </div> I have the foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/60568885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting error while installing mongodb on Mac Warning: No available formula with the name "mongosh" (dependency of mongodb/brew/mongodb-community). Did you mean mongocli? ==> Searching for similarly named formulae... This similarly named formula was found: mongodb/brew/mongocli ✔ To install it, run: brew install mon...
{ "language": "en", "url": "https://stackoverflow.com/questions/72387960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Button onClickListener on AlertBuilder not working I have an activity and a layout to call in AlertBuilder, I have 3 buttons in layout and some code for each one. The problem is that when I create and show alert, onClickListener not working I don't want use alert buttons and have to use my buttons on layout MainAc...
{ "language": "en", "url": "https://stackoverflow.com/questions/57781489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Concatenating user input? I want to concatenate user input with a ':' colon in-between. My script is taking options through user input and I want to store it like: Red:yellow:blue I have created a loop to read user input, but not sure how to store it. while True: color = input("please enter Color of your choice(...
{ "language": "en", "url": "https://stackoverflow.com/questions/44629956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Redirect/Forward data from Spring MVC Controller to other page as POST? I'm working on a project which is a mix Spring MVC and coldfusion, I want to know how to redirect from the SpringMVC Controller to the cfm using a POST request. I have this mapping defined @RequestMapping(value = "/preprocess", method ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54933140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Combine IsNumeric and Right() Trying to return field [doc] that have no letters. Results are all over the place. SELECT Right([doc],4) AS ex1, IsNumeric([ex1]) AS ex2 FROM stat_converted; The query returns two fields as it should but not evaluating correctly. Results with all numbers and others that are all lett...
{ "language": "en", "url": "https://stackoverflow.com/questions/41492444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get the contents in brackets in a file Python I am working with files right now and i want to get text from a bracket this is what i mean by getting text from a brackets... { this is text for a this is text for a this is text for a this is text for a } [ this is text for b this is text for b this is text for...
{ "language": "en", "url": "https://stackoverflow.com/questions/66833782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Returning value from query based on results I have this query I'm trying to build to display specific information for a stored table. I'm needing the query to also display the Enemy Guild Name but I'm having trouble getting the query to take the Enemy Guild ID and link it to the name. SELECT g.wPos as wPos, g.szGuil...
{ "language": "en", "url": "https://stackoverflow.com/questions/57764841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auto check textfield length and Hit a method UITextfield Hello I need to enter mobile number with validation that mobile textfield range should be 10. And when textfield value ==10, i need to call a function when mobile textfield.text length becomes 10. My below code work fine but i need to press 1 more character (m...
{ "language": "en", "url": "https://stackoverflow.com/questions/30593816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java/Jsp XML Dom looks like I need help again! :-/ Im trying to read this XML file with Java/Jsp: <?xml version="1.0" encoding="iso-8859-1" ?> <universal_campaign> <campaign_details> <campaign_id></campaign_id> <campaign_title>Test Campaign</campaign_title> <campaign_sdate>2010-01-21</ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/2362732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: When to catch java.lang.Error? In what situations should one catch java.lang.Error on an application? A: Very rarely. I'd say only at the top level of a thread in order to ATTEMPT to issue a message with the reason for a thread dying. If you are in a framework that does this sort of thing for you, leave it to the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/352780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "122" }
Q: CSS - Conditional for Exact Mobile Aspect Ratio I'm trying to have the mobile browser (iOS Safari) load a webpage with a different fullscreen exact-pixel-dimension image (.bg tag) based on the aspect ratio of the iOS device. For some reason, every time, I try loading the page on an iPhone X (which has a rather lon...
{ "language": "en", "url": "https://stackoverflow.com/questions/51797358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Iterating through JSON with nested structure I have a JSON with the following structure: data": { "password": { "en": "Password", "ar": "Password", "zh": "Password", ... }, "confirmPassword": { "en": "Confirm password", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62023201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove 'u' from json data using Python I have a Python code which basically extracts the data from Amazon SQS, I need to index this JSON data to Elasticsearch. Currently my code looks like: import os import json import uuid import time import boto.sqs import boto from boto.sqs.connection import SQSConnection from bo...
{ "language": "en", "url": "https://stackoverflow.com/questions/33498675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "An error was encountered with the requested page" in jmeter even capture variables by using regular expression extractor I have used jmeter to record login flow of application , when i re run it there are some requests failing so i fetch dynamic values from earlier responses and supplies those values to subsequent ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69784422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populate array with resource images I'm trying to make a Blackjack game in VB. What I'd like to do is populate an array with each of the cards so that I can randomly generate integers and use those integers to pull an index from the array, basically randomly selecting a card. My problem is that I can't seem to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/8024290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I return value of a column based on the min value of one column and max value of another column? Supposing I have a df like the following, column1 | column2 | column3 |column4 | column5 A | B | 5 | 4234 | 123 A | B | 2 | 432 | 3243 A | B | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68769578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery check dropdown selected value contains particular characters I would like to check the selected value in the dropdown on page load. If selected option has a text 'abc' then it disables another text field. If option 1 or 2 is selected in below example then it will disable a text. my code below disables the tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/66701079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CustomCell Crash I am using CustomCell tableview, download data and binding it.When i tap multiple time am getting this error. [NSCFString numberOfSectionsInTableView:]: unrecognized selector sent to instance 0x1bd170 Sat Jan 22 12:03:26 unknown Fridge[535] <Error>: *** Terminating app due to uncaught exception 'NSI...
{ "language": "en", "url": "https://stackoverflow.com/questions/4766520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL query to get all unique rows with uid I want to see which user has received the most highfives using a SQL query. My table looks like following, id | uid | ip. Now, I want to count the amount of rows a uid has, but it has to be unique with the ip. So nobody can give multiple highfives to a person. I searched ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/53995185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Recycler swipe left and swipe right perform different actions I have the following recycler view code that that allows the user to swipe right (deleting card from view and also deleting data from SQLite db) and also allowing the user to move tags to rearrange. It works. I'm happy. ItemTouchHelper.SimpleCallback si...
{ "language": "en", "url": "https://stackoverflow.com/questions/42875299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SQL 2008 HierarchyID - Select X descendants down How can I query a table which has a column of data type HIERARCHYID and get a list of descendants X levels deep under an employee? Here is the current structure: CREATE TABLE [dbo].[Employees]( [NodeId] [hierarchyid] NOT NULL, [EmployeeId] [int] IDENTITY(1,1)...
{ "language": "en", "url": "https://stackoverflow.com/questions/2768652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can i get the call-sid from response of callback in twilios AddOn's "IBM Watson" We enable the Twilios AddOn "IBM Watson Speech to Text" for recording transcribe.and we set our server webhook while enabling the addon. Now twilio calling webhook once call is completely done. after completing call twilio give resp...
{ "language": "en", "url": "https://stackoverflow.com/questions/71792315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unable to load a file at WEB-INF location There is a json file in my war in the following location WEB-INF/classes/META-INF/jsonFolder/file.json I am trying to access file using the path and following method to load my file. public static File deserializeJSONFile() throws IOException { File file = null; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46244413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: my smart contract is not responding and error saying web3 is not defined [error saying web3 is not defined][1]<script> var myContract; async function CheckMetamaskConnection() { // Modern dapp browsers... if (window.ethereum) { window.web3 = new Web3(window.ethereum); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65932405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error while executing command: conda activate command on Linux EC2 instance I am building a build server on AWS as part of my pipeline. I am using a buildspec file, which runs the following commands after my code is copied over to the linux instance, using the image (aws/codebuild/amazonlinux2-x86_64-standard:2.0): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63662111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to fetch email from mail server immediately I would like to "misuse" my email a little for a printing work. I have the whole setup ready but lack how to get my emails from my mailserver immediately as soon they arrive. In short I will get an email with a pdf attachment and need to print the attachement. It work...
{ "language": "en", "url": "https://stackoverflow.com/questions/55544486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: In Django, whitenoise do not show static files? I am trying to show static files while debug=false.I am using whitenoise library but still website don't show the static files and media files. My settings.py file like this: MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware...
{ "language": "en", "url": "https://stackoverflow.com/questions/69077368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to rename a column in pandas if column name has space. For example : Nom restaurant i am trying to rename my column name, but however it does not change because of space. my column name is Nom restaurant i already have tried df.rename(columns = {'Nom restaurant':'Names', 'x_coor':'X_coor','y_coor':'Y_coor','Weig...
{ "language": "en", "url": "https://stackoverflow.com/questions/59543215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: What is the difference between these two programs which compute triangular numbers? Both of these codes compile, but only the second one does what I want it to. First Code: #include <stdio.h> #include <cs50.h> #include <math.h> int main() { int TriNumber = 0; int n; for(n = 5; n <= 50; n += 5) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38708029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Firebase Auth: A user (email) logged using signInWithEmailAndPassword, won't work with signInWithRedirect I'm building a Web application that uses Google Identity Platform to authenticate users. All users belong to an Azure AD Domain, which is connected to Google Identity Platform through the use of an OIDC Provider...
{ "language": "en", "url": "https://stackoverflow.com/questions/71969888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }