text
stringlengths
15
59.8k
meta
dict
Q: Converting an existing Nodejs Express application to a aws serverless App I have a Nodejs express app using Mongodb, and I want to go serverless. Do I have to write again all my endpoints express with aws Lambda ? How can I convert my mongoose schemas to work with Dynamodb ? I tried to use aws codestar service and...
{ "language": "en", "url": "https://stackoverflow.com/questions/48172714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Integer type values in ArrayList in XPages I would like to create an array list and all values in array should be Integer. But at the end I need to sum all values in arrayList just like this below. I could not find to correct formula for this. is it possible to use using like @Sum or another formule without creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/35886453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is htmlentities($password_string) necessary? I watched a php login tutorial on a commercial platform where it is advised to use htmlentities() on a password string which is given via POST-Method. As the password is never displayed isn't it wrong to use this function as it alters the password which was entered by the...
{ "language": "en", "url": "https://stackoverflow.com/questions/41343281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to fit title in jquerymobile dialog's Title bar? I am using jquery mobile for web app development , I used jQM-SimpleDialog (jQM-SimpleDialog) to show message to user. My message string truncated. How to show complete sentence? I got this output in iPhone But I want to show this message : "Please fill the form ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8967516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading in .txt files to Apple's Numbers I have a list of .txt files all in the same directory with the name "w_i.txt" where i runs from 1 to n. Each of these files contains a single number (non integer). I want to be able to read in the value from each of these files into a column in Apple's Numbers. I want w_1.txt...
{ "language": "en", "url": "https://stackoverflow.com/questions/15324029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Clarification on thread pool max threads I've read here that : In v2.0, 3.5, and 4.0, ASP.NET initializes the CLR ThreadPool with 100 threads per processor(core) That is correct , I checked it (I have 8 core machine , so 8*100 = 800): But then I saw this and this: maxWorkerThreads — Configures the maximum nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/24100277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Android set Tag, findViewWithTag I'm trying to find an ImageView by tag. I assign a tag for the ImageView, but when I try to findViewWithTag, it returns null. I read that I should add to the view the childer with addChilder, but the view doesnt have this function. Can someone explaim to me how I can do this? ImageVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/17233271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to setup encrypted payment settings in paypal production? I successfully worked through Ryan Bates screencasts http://railscasts.com/episodes/143-paypal-security and got Paypal Website Payments Standard working with IPN and encrypted payment settings in the Sandbox. When I try to setup the encrypted payment sett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7917743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firefox extensions & XUL: get page source code I am developing my first Firefox extension and for that I need to get the complete source code of the current page. How can I do that with XUL? A: You will need a xul browser object to load the content into. Load the "view-source:" version of your page into a the brows...
{ "language": "en", "url": "https://stackoverflow.com/questions/2337889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Generating Forms for Lumen I'm searching a pretty way to get HTML forms with the Lumen framework. I've tried Former (http://formers.github.io/former/), but even with the 4.0 branch, I couldn't get it working at all (tell me if you could and I'm wrong) with Lumen (some Class path.config does not exist - did you try a...
{ "language": "en", "url": "https://stackoverflow.com/questions/29803706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to read a txt file and use its data to compare it with other variables? I want to create a program, which reads 2 txt files. The first txt file is a logfile, the second is a short one with names. The task is to read both of the files, and count the specific names(from the second txt) in the first txt.
{ "language": "en", "url": "https://stackoverflow.com/questions/52279755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: dependsOnGroups annotation in Test NG @Test(groups = { "init" }) public correctVM() {} @Test(groups = { "init" }) public serverStartedOk() {} @Test(dependsOnGroups = { "init.* }) public method1() {} // Above TestNG code in method1, for the dependsOnGroups regular expression is used. Is it mandatory to use regEx or i...
{ "language": "en", "url": "https://stackoverflow.com/questions/39700441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Twitter Bootstrap: How to see the state of a toggle button? How do I see the state of a toggle button? With a checkbox I can listen to "changed" event of the checkbox and do a $(this).is(":checked") to see what state it has. <a id="myId" class="btn" data-toggle="button"/> But not sure how to do that with a toggl...
{ "language": "en", "url": "https://stackoverflow.com/questions/13323671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: how to find the most repeat word in string? can you please tell me how to find the most repeat word in string ? Example If input is this "how do you do" Output is "do" var str="how do you do" function findMostReaptedWord(str){ var res = str.split(" "); alert(res.length); var count; var compareString...
{ "language": "en", "url": "https://stackoverflow.com/questions/25644056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamically creating javascript file in Rails 3.1 I am attempting to create a plug and play shopping cart in Rails 3.1 that allows users to add a shopping cart to their site by just adding a link to a javascript file. The items for sale are input on my end and stored in this js file and rendered with jquery templat...
{ "language": "en", "url": "https://stackoverflow.com/questions/6453520", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sort the array How to sort array by preserving key $arr = array(strong text 'a' => array('date' => time() - 1000), 'b' => array('date' => time() - 2000), 'c' => array('date' => time() - 3000), ); I want to sort according to the time(). A: function cmp($a, $b) { if($a["date"] == $b["date"]) r...
{ "language": "en", "url": "https://stackoverflow.com/questions/31902135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Can I use jQuery to toggle 'reversed' on an ordered list? I'm working with ten <section>'s. All sections have a header <h1> followed by an ordered list <ol>. Only two sections have a <span>sort</span> inside their header. I wish to use those sort-span's to toggle (reverse) the order of only those two lists. Section...
{ "language": "en", "url": "https://stackoverflow.com/questions/66780135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AngularJS submit on blur and blur on keypress I want to submit some data to the server when a input field is blurred. The User should also be able to blur the input field by pressing enter. Unfortunately this results in the following: $rootScope:inprog: $apply already in progress error. Plunkr - thanks in advance! ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18389527", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Trying to learn boost::intrusive Q2 if I uncomment these //BaseList baselist; //MemberList memberlist; outside the loop and comment out the ones inside the loop it crashes. I need to be able to have the baselist (and memberlist) outside any loop. How is this achieved? Edit The actual problem I am trying...
{ "language": "en", "url": "https://stackoverflow.com/questions/26857832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to block incoming calls from unknown numbers programmatically? I want to create an app that blocks all numbers that are not in contacts. I have read this but it is not perfect. How to do this? Thanks for reading A: This is one way to use it. First, you have to use ITelephony in your project. I will give you an...
{ "language": "en", "url": "https://stackoverflow.com/questions/34175670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Binding to ToolTip.IsOpen reports 'false' the first the ToolTip is opened Currently I am trying to bind the IsOpen property of a ToolTip to a property of my backing view model. Additionally The binding mode is set to 'OneWayToSource'. This is the Style that is applied to a TreeViewItem and contains the ToolTip defi...
{ "language": "en", "url": "https://stackoverflow.com/questions/19717857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to maintain status of failed file I am new in java .I am developing an app in java to transfer a large number of files to server.The requirement is to check the status of failed file and store somewhere and transfer those files later.The application should be maintain a daemon process. Thanks and Regard sanjeet ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23307737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostgreSQL function to return text array with two elements I am trying to return a text array with two elements using postgresql function. But the output seems to generate one element. Here's result from pgAdmin query: Here, it does seem like the result array with two elements select "address_pts".usp_etl_gis_get_...
{ "language": "en", "url": "https://stackoverflow.com/questions/47041248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Coding a family tree style app I want to code up an app. ( for my own learning) that helps build a family tree. So I want the user to add the users grandparents, parents etc. to this app. and I want to be able to maintain this data. I am wondering what components would go into this. Here's what I am thinking: - A da...
{ "language": "en", "url": "https://stackoverflow.com/questions/22699716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how can i assign a randomly generated integer to a string in C? i'm trying to make a slot machine type thing and i wanted to assign the randomly generated numbers to certain symbols like 1 = cherry, 2 = bell and so on so i could print out the results in symbol form at the end. i tried putting the symbols as strings ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64830125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unknown error in XPath One of our web application, which has been running in our production environment for a long time, most recently it is running into an weird error when there is a high volume of transactions. We couldn't figure out what is exactly the root cause of the problem, but we found some similar issues ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12291840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Session Time out problem Dear All I have a website hosted on the cloud server and I have added sessionState mode ="InProc" timeout="1440" /> in the web.config file. But the session gets timed out in 1-2 minutes. I think the web.config settings should override the IIS settings.But it's not working. Is there solution...
{ "language": "en", "url": "https://stackoverflow.com/questions/5474524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Correct way to pass data from one view to another in django? Currently Im trying to build an app using Django that pull data from fitbit. Im in the process of getting the Oauth2.0 connection to work. So I generated a authorization url from a bunch of user inputs: fitbit url, fitbit api, fitbit client id, fitbit cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/50049320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if any type of user is signed in I'm using devise and have set up helper methods to check if any type of user is signed in. I have player and coach user types and current_player and current_coach are devise methods that exist. Here is my application_controller: helper_method :current_account, :account_signed_i...
{ "language": "en", "url": "https://stackoverflow.com/questions/37195171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: App crashes after adding the AdSupport.framework Hi I get this error on startup: dyld: Library not loaded: /System/Library/Frameworks/AdSupport.framework/AdSupport Referenced from: /Users/owner12/Library/Application Support/iPhone Simulator/5.1/Applications/823A0485-7443-4206-B9F5-A84C03DBFB89/BusinessPlan.app/Bus...
{ "language": "en", "url": "https://stackoverflow.com/questions/15956234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: IQueryable return type with Lambda statements i am facing problem with the return type for this function and not really getting anywhere near solving can someone help me with this? here goes the function, public IQueryable<System.Collections.Generic.Dictionary<discussion_category, List<discussion_board>>> GetDiscuss...
{ "language": "en", "url": "https://stackoverflow.com/questions/6223229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: send multiple responses to client via nodejs i am using nodejs and i want to send back multiple responses to client.And my code is below //addwork var agenda = require('../../schedules/job-schedule.js')(config.db); exports.addwork = function(req, res) { var work = new Work(req.body); work.user ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27902277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I update application versioning, are there conventions to follow, are there tools? I do not know why I feel insecure of the things that I am about to do, and I always seek for some advice in the community before doing my move. Have you used bower and/or npm, they have this cli commands: bower init or npm init...
{ "language": "en", "url": "https://stackoverflow.com/questions/26086666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page. Wordpress media When I try to upload an mp4 file with 84mb. It gives me this error "Unexpected response from the server. The file may have been uploaded successfully. Check in the Media L...
{ "language": "en", "url": "https://stackoverflow.com/questions/68581368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why doesn't InputStream fill the array fully? Dude, I'm using following code to read up a large file(2MB or more) and do some business with data. I have to read 128Byte for each data read call. At the first I used this code(no problem,works good). InputStream is;//= something... int read=-1; byte[] buff=new byte[128...
{ "language": "en", "url": "https://stackoverflow.com/questions/24791360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Extract elements of multiple sublists in a list and transform to multiple dataframes Hello Dear Community, Following this post, I am searching how to create multiple data frames from a list that contains multiple sublists with different names So, from a list called tier.col I would like to create a function tier2c...
{ "language": "en", "url": "https://stackoverflow.com/questions/22067166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS : Is there a way to know if GPU is being used? I know some CSS properties, on some browsers, on some OS, can trigger GPU acceleration. Is there a way to see, somewhere within the browsers' debugging tools, if the GPU is actually being used or not ?
{ "language": "en", "url": "https://stackoverflow.com/questions/36643971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Break string in Javax.Swing.JTextArea without escape characters Is there a way to automatically break a string entered into JTextArea (in package javax.swing), for example via the keyboard, into a readable form, without the need for escape characters, i.e. \n and \r ? Edit2: With the help of @matt, I realized that t...
{ "language": "en", "url": "https://stackoverflow.com/questions/74251435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kafka producer unable to connect to broker via Internet. Works well if in local network as broker. Telnet connectivity working from internet I have a Kafka broker running on a computer on my home network. When I connect my java producer (on another computer) to this broker from the same wifi network, it works absolu...
{ "language": "en", "url": "https://stackoverflow.com/questions/64522336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interactive Legend onclick or mouseover - D3js I've been looking for a way to have my legend control my chart animation (similar to NVD3 examples). I've run into a problem though - nested selections. var legend = svg.append("g") .attr("class", "legend") .attr("transform", "translate(70,10)") ; var legen...
{ "language": "en", "url": "https://stackoverflow.com/questions/16310102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ warning: Not all control paths return a value Well, I have some warnings that cause my program to crash, when I enter size 3. Not all control paths return a value. I am trying to solve N matrix, input, output and some operations. I store first column _vec[0:size-1],last column _vec[size : (size*2)-1] and diago...
{ "language": "en", "url": "https://stackoverflow.com/questions/60632921", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error in running RMIC via Ant using wsejbdeploy taskdef I get the following exception when trying to generate RMIC using Ant task. [wsejbdeploy] Error generating RMI code: RMIC command failed on project: .... with message: [wsejbdeploy] error: The IBM RMIC version 0x1500 does not match the IBM runtime version 0x1600...
{ "language": "en", "url": "https://stackoverflow.com/questions/10892737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails - 3 nested models in one view I'm struggling with grasping the fundamentals behind writing model methods, which is I think what I need to do to get this to work. Basically, I have a project view that's showing project_todos that belong to that project. Then nested under that I have project_todo_comments that b...
{ "language": "en", "url": "https://stackoverflow.com/questions/13881258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why isn't transition for my input forms working? I have tried to add transitions to my input forms but it doesn't work. I've read a lot of stack overflow posts but they haven't worked for me. A person said that it's because input has display: none but even after changing it, it still didn't work. I tried to be more ...
{ "language": "en", "url": "https://stackoverflow.com/questions/68123872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: can not use http.begin() in HTTPClient Arduino Library to open my IP i have an esp32 cam with 192.168.1.54:8082 IP. i want use from http.begin ("http://192.168.1.54:8082"); in HTTPClient Arduino Library that not working while when i am using "http://192.168.1.54:8082" in a browser working fine. any help can be usef...
{ "language": "en", "url": "https://stackoverflow.com/questions/67547776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Netsuite PHP Toolkit - Limit returned fields in Saved Search I'm working on an integration for Netsuite. When I return my saved search, there are 300+ fields returned for the searchRowBasic property. I'll include a var_dump below. My source code is from Magento 2, so the factory methods are out of scope, but you can...
{ "language": "en", "url": "https://stackoverflow.com/questions/57795752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use X,Y coordinates to plot points inside a circle Is there a way in javascript to plot x,y coordinates so they fall into a circle rather than a square? For example if I have the following code: circleRadius = 100; context.drawImage(img_elem, dx, dy, dw, dh); I need to figure out a combination of x,y values tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/4707796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Styling buttons for Microsoft Outlook I am currently setting up my first newsletter i Mailchimp. After checking the newsletter in different email clients I can see that my "buttons" does not look right in Outlook. Below is my code for the button; <td align="center" valign="middle" bgcolor="#96d1eb" style="color: #f...
{ "language": "en", "url": "https://stackoverflow.com/questions/26619899", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dart code acts differently in my Flutter application. List' is not a subtype of type 'List> When I run this in a "Dart" main, everything works, and I get a List of attendees. However, when I call it within my Flutter application, I get the error: flutter: type 'List' is not a subtype of type 'List>' I have been rou...
{ "language": "en", "url": "https://stackoverflow.com/questions/50729769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is this not downcasting? If I do double d = 34.56; int i = (int)d; Am I not "downcasting"? OR Is this term only used in terms of classes and objects? I am confused because in this case we are "downcasting" from a bigger double to a smaller int, but in case of classes, we "downcast" from a smaller base class to a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2724197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Spark Feature Vector Transformation on Pre-Sorted Input I have some data in a tab-delimited file on HDFS that looks like this: label | user_id | feature ------------------------------ pos | 111 | www.abc.com pos | 111 | www.xyz.com pos | 111 | Firefox pos | 222 | www.example.com pos | 222 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35020895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Laravel base64_decode error on fresh install I'm trying to get started with laravel but it seems like hell to get it working. First of all, here is the error (this happens when i try to access /myapp/public): Some considerations: * *I'm using MAMP Pro with php 5.4.4 *Already installed MCrypt extension *Already...
{ "language": "en", "url": "https://stackoverflow.com/questions/23749471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting an import error while trying to import sqlalchemy When I am trying to import sqlalchemy I am facing the below mentioned error. I have also upgraded the typing_extensions to 4.4.0 version but nothing seems to work for me. Code: import sqlalchemy Error: ImportError: cannot import name 'dataclass_transform' fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/75452661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I read a key and store the value of that key into a variable in ASM? I am working on making a C#-like language that compiles directly to x86 NASM code. I have written a function similar to Console.ReadKey(). It is supposed to wait for a key and then store the value of it in a string. Here is the code for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/27157805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Count number of points outside confidence interval (CI) in qqp (Quantile-Comparison Plot) plot I've like to find any function for calculated number of points outside confidence interval (CI 95%) in qqp (Quantile-Comparison Plot) plot. In my example: Packages require(MASS) require(car) Simulated 60 Poisson values Re...
{ "language": "en", "url": "https://stackoverflow.com/questions/55072784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add newline inside table cell in Markdown in Bitbucket Wiki? How to add newline inside table cell in Markdown in Bitbucket Wiki? <br> -- doesn't work <br/> -- doesn't work bullets -- doesn't work A: If <br> or <br /> don't work, then you probably can't. Unfortunately, Bitbucket's documentation regarding tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/48746793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I use Crashlytics for my React Native Android App? I am trying to figure out how to use Crashlytics from Fabric for my React Native Android APP. I followed the steps on the Fabric homepage and added some lines in my build.gradle files. But the builds always crash. Is there a difference using Crashlytics for R...
{ "language": "en", "url": "https://stackoverflow.com/questions/33501522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: numpy insert & append I have an array: X ndarray 180x360 The following does not work X = numpy.append(X, X[:,0], 1) because X[:,0] has the wrong dimensions. Is not this weird? This way around the problem seems a bit dirty: X = numpy.append(X, numpy.array(X[:,0],ndmin=2).T, axis=1) In MATLAB one could just wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/41381266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scrapy: How to send data to the pipeline from a custom filter without downloading To catch all redirection paths, including when the final url was already crawled, I wrote a custom duplicate filter: import logging from scrapy.dupefilters import RFPDupeFilter from seoscraper.items import RedirectionItem class Custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/39222639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding default header for all requests in Unfiltered We have Unfiltered with underlying Jetty server (not sure but I believe Unfiltered uses Jetty 8). And now we would need to add header entry for all responses we return. I can get underlying Jetty Server and tried adding Handler directly to it. Not sure if I did so...
{ "language": "en", "url": "https://stackoverflow.com/questions/28106755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: user input a list of numbers and use it in a Python function I am trying to run this function with the following user input structure but cannot get a correct answer: def biggest_number(*args): print (max(args)) return max(args) a = (int(x) for x in input().split()) # 3,4,5 print (biggest_number(a)) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45868818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Accessing listview items from another form Let's consider I have two forms: Form1 and Form2. On Form1 I have a listview DataVisualizationList. If I want to work with selected items of the listview from Form1, foreach (ListViewItem dr in DataVisualizationList.SelectedItems) works perfectly. How to do the same from F...
{ "language": "en", "url": "https://stackoverflow.com/questions/21038225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS Speech Recognition crash on installTapOnBus - [AVAudioIONodeImpl.mm:911:SetOutputFormat: (format.sampleRate == hwFormat.sampleRate)] Most times I launch the app, the test-to-speech audio and speech recognition work perfectly. But sometimes I launch it and it crashes when first starting speech recognition. It see...
{ "language": "en", "url": "https://stackoverflow.com/questions/60101205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Move object forward in facing direction basically I am trying to make my character dash forward a specific distance in the direction the camera is facing. This a fps and the best I have been able to do so face is dash forward in the global X axes, which obviously is wrong. I have this function which is called from t...
{ "language": "en", "url": "https://stackoverflow.com/questions/25854551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I save information to a model on Devise.sessions#destroy? I'm using Devise and Piggybak for a Rails project and Piggybak uses a cookie named cart to store the user cart. The problem is that Piggybak doesn't destroy the cookie on user sign_out so, if I sign_in with another user, it uses the same cookie and the...
{ "language": "en", "url": "https://stackoverflow.com/questions/16215646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DJI SDK UI: Customizing contentViewController in DULDefaultViewController I am using DJI SDK iOS 4.2.2 with DJI UILibrary 4.2 (with Swift) I want to replace the default FPV view in DULDefaultView/DULDefaultViewController with a custom map view, which the API reference suggests is possible. I have not been able to fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/45072664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I edit .json data with python? So I'm making a Discord bot and I need to edit some data in my .json file Here's the json file: "name"'s variable is player I want to edit the balance, there's gonna be a command to add and subtract, so how do I do that? I tried writing and deleting it, but either I did it wron...
{ "language": "en", "url": "https://stackoverflow.com/questions/71638997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TCP as connection protocol questions I'm not sure if this is the correct place to ask, so forgive me if it isn't. I'm writing computer monitoring software that needs to connect to a server. The server may send out relatively urgent messages, such as sound or cancel an alarm, and the client may send out data about th...
{ "language": "en", "url": "https://stackoverflow.com/questions/21148538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android button shadow/margin top I have a Button and an ImageView in one line. But Button has margin to top. And I use a simple background drawable. Part of XML Code: <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layou...
{ "language": "en", "url": "https://stackoverflow.com/questions/30531852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compare and Multiply I want to compare two cells and obtain a percentage, for instance: A1 is 190 B1 is 200 C1 is the answer I tried: B1 >= A1 but the answer is TRUE. I will create a report if cell B1 s greater than cell A1 then: IF YES I need to get the 12% percent of cell B1 and the answer would appear o...
{ "language": "en", "url": "https://stackoverflow.com/questions/32088917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: UDP Broadcast stress I am writing an application that relies on UDP Broadcasting. Does anyone know what kind of stress this puts on your network? I would like to have multiple clients on the same network broadcasting frequently. Any information on this would be helpful Thanks A: It all depends. It depends on the sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/2983710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linux Container on Android without Root Is it possible to start a linux container on a android device without rooting the device? If so, what would be the best way to go about that? Any hints would be very much appreciated!
{ "language": "en", "url": "https://stackoverflow.com/questions/20629817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get current directory with subprocess? How can i get the current directory to which I am in? like the use of os.getcwd() A: First, I presume you're not asking about a particular subprocess that exists simply to tell you the current working directory and do nothing else (Apducer's answer). If that were the...
{ "language": "en", "url": "https://stackoverflow.com/questions/58615929", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Porting a Netbeans JavaFx project to Eclipse I'm working on a JavaFx project on NetBeans 7.3 my question is : Is it possible to port a Netbeans JavaFx project to eclipse (juno preferably) successfully, what are the issues I may face, and if it is possible what is the best way to do it A: Have a look at the plugins ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16526488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generate an independent and identically distributed (i.i.d.) random gaussian matrix What is the best/accurate way to create an i.i.d. random Gaussian matrix using Python? What is pseudo-random? And would that suffice?
{ "language": "en", "url": "https://stackoverflow.com/questions/35675378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding images to eclipse java project using ImageIcon(getClass().getResource() Can anyone help why am I getting error for my Java swing application that makes use of ImageIcon(getClass().getResource() to load images as shown below. Thanks in advance. Code where error is shown: jButton9.setIcon(new javax.swing.I...
{ "language": "en", "url": "https://stackoverflow.com/questions/24970603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sharekit - Facebook configuration I am trying to integrate sharekit in an ios app. Everything works properly but I have problem with Facebook. What I'have done so far : * *created an app on Facebook (no extra configuration on Facebook, like native etc..) *edited SHKConfig.h and added #define SHKFacebookAppID @...
{ "language": "en", "url": "https://stackoverflow.com/questions/9093451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: SSAS adding members to server administrator role using PowerShell I am trying to add a member to server administrator role using PowerShell. I am able to add a role and member to each individual database available, but I would like to add it to the top level so that the given user can access the database. This is w...
{ "language": "en", "url": "https://stackoverflow.com/questions/43538887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SonataUserBundle with multiple doctrine database: Validators uses default doctrine manager, not the one for the User class I've setup my Symfony project with multiple databases, in the hope to one day implement a modular monolith infrastructure. My User class is stored in a specific database which is not doctrine de...
{ "language": "en", "url": "https://stackoverflow.com/questions/74209900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-c shouldRecognizeSimultaneouslyWithGestureRecognizer disable otherGestureRecognizer I have viewdeck controller and I can open left side-bar menu by swiping to the right. For my center view controller, I also have uitableview. Problem is that I can swipe to right to open menu and I also can scroll my tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/26793003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to enable remote debugging with headless chrome when using ruby and selenium? When I set the option "--remote-debugging-port", it will throw an error. And without this option, it can work properly. However, I want to debug when using the headless chrome. How can I do ? .rvm/rubies/ruby-2.2.5/lib/ruby/2.2.0/net/p...
{ "language": "en", "url": "https://stackoverflow.com/questions/51440216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Change number format and get it as a number I am using MUI and Formik to create form. I need to change numbers format in the all inputs: 1000.00 -> 1.000,00 A created function formatNumber(num) to do this, it works. But problem is that it returns string, and my API wait number (I can do nothing with that). I tried t...
{ "language": "en", "url": "https://stackoverflow.com/questions/72257821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Implicit conversion from std::string to class doesn't work I get an error C2664 in Visual Studio 2010 saying that there is no conversion from std::string to my class Filename. I don't really understand why this is happening, because I have constructors for accepting an std::string and this works for code like this: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32399500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Client application is not registered as a resource server I set up KeyCloak on my Quarkus application. Realm is 'quarkus', as is the client. I successfully get token from KeyCloak, but when I'm about to use it in whatever method on my service, I get this: Caused by: org.keycloak.authorization.client.util.HttpRespons...
{ "language": "en", "url": "https://stackoverflow.com/questions/71861002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: LINQ doesn't work with a "select isnull" query..? Possible Duplicate: Equivalent of SQL ISNULL in LINQ? Using IsNull or select COALESCE in Linq..? I've tried this query in LINQ: string query = @"SELECT ISNULL(P.firstname, s.firstname) AS Expr1,ISNULL(P.lastname, s.lastname) AS Expr2 FROM comment AS C LEFT OU...
{ "language": "en", "url": "https://stackoverflow.com/questions/11063709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to fix Copy other pages data below mainActivity data in Android I want develop Android application for one website, i fetch website posts from JSON and show in RecyclerView. I show title, image, description and category in MainActivity and i want when click on Category go to categoryActivity and show this catego...
{ "language": "en", "url": "https://stackoverflow.com/questions/37097182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add image at the end of text line using pdfmake? I'm using pdfmake. I'm trying to figure out how to add image to the end of text line instead of the new line. For example: var dd = { content: [ 'Test text', {image: 'sampleImage.jpg', width: 24, height: 24} ] } Using this description...
{ "language": "en", "url": "https://stackoverflow.com/questions/39201585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Add unmarshalling method to JAXB generated POJOs I have a bunch of XSDs that i transform into POJO with the jaxb maven plugin. For logging purposes, i'd like to have a "unmarshal" method directly integrated inside the JAXB objects, so that i could call something like generatedPOJO.toXMLString(), knowing that generat...
{ "language": "en", "url": "https://stackoverflow.com/questions/31859059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EF Check a Lazy Property without load it I have an instance of class loaded by db.MyclassSet.AsNoTracking(). So the entity is not tracked on the context. I need to know if the OneToMany property of MyClass is loaded. If I try to access by reflections I get an exception: When an object is returned with a NoTracking...
{ "language": "en", "url": "https://stackoverflow.com/questions/32862626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Draw inscribe square into the circle I am trying to draw inscribing square into the circle, but I don't know, how should I calculate the start and end point: import numpy as np import cv2 img = np.zeros([300,300,3],dtype=np.uint8) img.fill(255) # or img[:] = 255 imageWithCircle = cv2.circle(img, (150,150), 60, (0,...
{ "language": "en", "url": "https://stackoverflow.com/questions/61330239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to connect reactJS front-end with PHP? I am developing a front-end with ReactJS. How can I serve this app via PHP (plain PHP or Yii1)? A: I suppose you'd want to go through the HTTP Protocol to create communication between the two. In ReactJSX you want to make a fetch/get call that is provided with an EndPoint/...
{ "language": "en", "url": "https://stackoverflow.com/questions/55276763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: I would like to disable fast forward but not rewind in Youtube I am curious if there is an embed code that will allow me to disable the fast forward feature, but still allow a user to rewind videos in Youtube. I am trying to embed a video used by students.
{ "language": "en", "url": "https://stackoverflow.com/questions/53179711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Round Robin Matches using mysql I have table like below and Want to generate a round robin match schedule. Input Table. TID PlayerID 2 14 2 1 2 21 2 37 2 17 Output 14 V 1 14 V 21 14 V 37 14 V 17 1 V 21 1 V 37 1 V 17 21 V 37 21 V 17 37 V 17 A: If you want all possible combinations regardless...
{ "language": "en", "url": "https://stackoverflow.com/questions/59272305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Show only a portion of an image with java If I have a large image that is made up of 25 x 25 smaller images in a grid. How can I use java to only show a portion of that larger grid (such as drawing a portion that starts at 125,25 and ends showing at 150,50)? A: I'd break up the image into smaller images, put the sm...
{ "language": "en", "url": "https://stackoverflow.com/questions/8526837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Role provider in console/WPF/WinForms application I have written a role provider which assumes Windows authentication and so far works well with WCF services and ASP.NET. Is it possible to use it also with a console/WPF/WinForm application? I tried a configuration like this on a very simple console app but the Initi...
{ "language": "en", "url": "https://stackoverflow.com/questions/16659130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wordpress plugin uninstall.php I am trying to write a simple plugin that, among other things, creates a custom post type. I have been searching everywhere but I have really no idea on how to write the uninstall function that delete the custom post type and all its entries from the db. I have found this on the WordPr...
{ "language": "en", "url": "https://stackoverflow.com/questions/25198700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React parsing Unexpected token I'm having some problems with my React code. I'm trying to add authentication but it's giving me error like ./src/components/UserInfo/index.js Line 29: Parsing error: Unexpected token, expected "," 27 | 28 | 29 | {authenticated ? ( | ^ 30 | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59482848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using validationRules in Models to validate form Codeigniter 4 So I have these variables $skipValidation (set specifically to FALSE), $validationRules, $validationMessages set according to this documentation but for the life of me I can't figure out what trigger this $validationRules to run, I just assume that $skip...
{ "language": "en", "url": "https://stackoverflow.com/questions/66134075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ORA-01427: SELECT * FROM TABLE gives error single-row subquery returns more than one row I tried using the following variants: SELECT * FROM "DB"."TABLE" SELECT COUNT(1) FROM "DB"."TABLE" SELECT reference FROM "DB"."TABLE" SELECT reference FROM "DB"."TABLE" WHERE rownum < 2 where reference was a specific field of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/52161776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling multiple arguments in an array from a function [PHP] I am trying to call multiple arguments from a function in php using an array. Class useful { function callFunctionFromClass($className, $function, $args = array()) { return $className::$function($args); } } <?php require("library/...
{ "language": "en", "url": "https://stackoverflow.com/questions/31725382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }