text
stringlengths
15
59.8k
meta
dict
Q: pass current browser url address to bean I want to send the browser url address to bean,I found this HttpServletRequest requestObj = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest(); String url = requestObj.getRequestURL(); I did not get the right browser address,so I will us...
{ "language": "en", "url": "https://stackoverflow.com/questions/46065600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to upload an artifact to an Azure DevOps build using the API Can anyone shed some light on how to use the ADO API to upload an artifact to a build. I can't find an example that shows how to do this. https://learn.microsoft.com/en-us/rest/api/azure/devops/build/artifacts/create I know there is the vso task: ##vso...
{ "language": "en", "url": "https://stackoverflow.com/questions/75259572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tkinter - the button I made doesn't work I have tried to make a following program: when opening the program, it shows an entry and a button labeled as '9'. Character '9' is added at the end of the entry when clicking the button '9'. The code given below is I have written, but it doesn't work as I intended. The butt...
{ "language": "en", "url": "https://stackoverflow.com/questions/31097722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I can access Class method variable in instance method OR Use a common variable for both? I have this Class method to create a hero object. +(id)hero { NSArray *heroWalkingFrames; //Setup the array to hold the walking frames NSMutableArray *walkFrames = [NSMutableArray array]; //Load the TextureA...
{ "language": "en", "url": "https://stackoverflow.com/questions/31740027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Function template argument deduction with variadic class template as function call parameter All the examples are from here and here. Specifically, template<class...> struct Tuple { }; template< class... Types> void g(Tuple<Types ...>); // #1 // template<class T1, class... Types> void g(Tuple<T1, Typ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33426328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Xamarin ListView item click animation For some reason, i have this animation/effect by default when I press any items of my ListView (chat). I dont have any codes for that, it is just present/default. Why is that? How can I turn it off or on? A: It called "Ripple effect". there are many related question in SO, see...
{ "language": "en", "url": "https://stackoverflow.com/questions/48047343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: R - Looping through Values in Variable and Dropping Duplicates Based on Condition I would like to loop through each unique value in the variable "Item" (i.e. A, B, C), and only keep the rows with the lowest ID number for each item, deleting the other rows for each corresponding item. So, I have a data frame that loo...
{ "language": "en", "url": "https://stackoverflow.com/questions/43711069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery image change doesnt work The following code should work but I cant seem to find the problem why it doesnt work, I am testing it with google chrome <html> <head> <script type="text/javascript" src="js/jquery_1.7.1_min.js"></script> <script type="text/javascript"> $('#unos').clic...
{ "language": "en", "url": "https://stackoverflow.com/questions/13434500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to enable (or set up) MySQL to use "group commit"? I've read a lot of good reviews of MySQL Group Commit, which was broken in MySQL 4.x but was fixed in 5.1 and 5.5. See http://dev.mysql.com/doc/innodb/1.1/en/innodb-performance-group_commit.html But I could not find any document showing how to enable (or set up)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7650575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using MDX Correlation() function to find correlation of 2 dimentional members I'm trying to find the Pearson correlation of a single measure between two members of a dimension, but the msdn docs are a bit sparse. Specifically I have a cube with a fact count measure, a date dimension, and a tool dimension and I'd li...
{ "language": "en", "url": "https://stackoverflow.com/questions/4028470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: find and replace string on a line I'm trying to make a find and replace on strings ?version(.*) -> ?versionMyVersionHere ex : <script src="js/script.js?versionSomeVersionHere"></script> <script src="js/messages.js?version"></script> <script src="js/script.js?versionMyVersionHere"></script> <script src="js/messages...
{ "language": "en", "url": "https://stackoverflow.com/questions/61074627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: order_products column connected with Google Checkout transaction in osCommerce I am using Google Checkout with osCommerce and want to know which column of the order_products database table is connected with the transaction. Google Checkout displays the price details of every product and I want to know from where in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3537131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSIS - Detect drivers available and let the user decide where to install an specific file (the license of the software) What I need is: After the software is installed, I need to identify the drivers available (Hard Disks, Pen Drives, etc), and the user can chose in which drive he wants to install the license of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/16566707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to measure distance between apple watch and iPhone? I know that core bluetooth is not available in watchOS2 so there is no way to read RSSI. But app like lookout released watch app that has a distance indicator. How did they do that? Any thought? A: Using interactive messing pass mobile location to apple watch ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37220005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to have make a div take a minumum of 50% space but if no sibling is present take 100% Simply put I have: #Container { display:'flex'; flex-wrap:'wrap'; } .item { flex-basis: '50%' } Scenario one: <div id=Container> <div class="item"></div> 33 % <div class="item"></div> 33 % <div class="item"></div> 33% <...
{ "language": "en", "url": "https://stackoverflow.com/questions/69495155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Good practice for finding existing instance of a class from another class that is not a child I'm trying to develop simple TowerDefense game but it seems like I miss the very basics of OOP as I encountered problem must be somehow fixable as everyone programming in OOP must have enountered it. Here's very very basic...
{ "language": "en", "url": "https://stackoverflow.com/questions/20502724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to check if x-staticmap-api-warning response header exists? I'm working on a project for school using the google static map api. There is a table with a list of locations. When you click on a location it brings up a modal window with the google map. If the api cannot find the location it just shows a map of wate...
{ "language": "en", "url": "https://stackoverflow.com/questions/51971250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Swift 3 CollectionView scaling I recently implemented a collection view in a app, the only problem I'm experiencing is that the collection view goes from 2 column to 1 column on smaller devices with a lot of padding on both sides heres on a display smaller then a iPhone 6: and heres how it looks on a display bigger...
{ "language": "en", "url": "https://stackoverflow.com/questions/40822239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: R How to take Median of Rows in Dataframe I am wondering if there is any way to a median of the rows in a data frame. I understand the function rowmeans exists, but I do not believe there is a row median function. I would like to store the results in a new column in the dataframe. Here is my example I tried to look ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54366592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Akka-http: How do I map response to object Not sure if I'm getting this whole routing DSL thing right but here's the question. I want to do a post to external service such as: val post = pathPrefix("somePath") { post { //get the response mapped to my Output object } } Then I want the response (which is...
{ "language": "en", "url": "https://stackoverflow.com/questions/48241925", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading CSV file through Flask I'm currently trying to read through a CSV file that is being provided through Flask-WTF(orms) and I continue to run into issues when trying to load it through csv.DictReader or pandas. The file (a FileStorage object) is not actually being uploaded anywhere, and I am trying to grab th...
{ "language": "en", "url": "https://stackoverflow.com/questions/48435033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Create Resource Group with Azure Management C# API Is there a way to create a Resource Group with the Azure Management C# API? Basically this REST API call: https://msdn.microsoft.com/en-us/library/azure/dn790525.aspx I found a way to create an Affinity Group by using client.AffinityGroups.Create, but that's the clo...
{ "language": "en", "url": "https://stackoverflow.com/questions/31189931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Download handler (php code) is called multiple times for a single request I have a PHP script which handles the download requests. this script can be accessed by the client using a GET request like this (Javascript): if (true) { window.open('/download?mode=paper&fid=' + fid, '_blank'); return; } And here is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/59209198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: User Generated Hyperlinks to Files Hosted on a Network Share My ultimate goal is to allow users to select a file from a dialog as if they are uploading a file. Instead of file being saved to the server, a hyperlink will be generated from the file's path. This hyperlink will then be used on our intranet page in ord...
{ "language": "en", "url": "https://stackoverflow.com/questions/1627419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: php group array together based on key value being the same I have the following array Array ( [0] => Array ( [id_product_option] => 1 [id_option] => 1 [id_product] => 3 [option_value] => White [option_name] => color ) [1] => Array ( [id_product_option] =>...
{ "language": "en", "url": "https://stackoverflow.com/questions/27024299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change Icon on Bootstrap 4.6 accordion I want to have a 'plus' icon when the accordion is collapsed, and a 'minus' icon when the accordion is 'expanded'. I have checked other answers on the internet, but what am I asking is can't I do something simple like this? (For learning purposes) Say I place both the plus and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73417196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to push data from AWS IoT MQTT broker to a random file in S3 bucket I have created a rule to forward all messages published to any topic e.g. foo/bar of my AWS IoT core managed MQTT broker to a nested folder in S3 bucket. For that, I am using key section. I can send data to nested folder like a/b/c. The problem ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54441780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wordpress + Divi: Custom Section Toggle I have a child theme editing the main-structure-elements.php file from the Divi parent theme. I have tried to override this file by moving it into the child theme and making the changes there, as well as modifying the functions.php file to require that file, still no luck. I j...
{ "language": "en", "url": "https://stackoverflow.com/questions/68371107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: show compiler phases like `scalac -Xprint:parser` javac -Xprint only shows the class's API. i can write a scala program, compile it with scalac -Xprint:<phase>, and print out the tree with whatever processing has done at any phase. i want something that can emit the representation at each of the fundamental st...
{ "language": "en", "url": "https://stackoverflow.com/questions/23318933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I group objects by similiar items that they contain? I have 10,000 baskets. In each basket, I have 10 food objects, no repetitions. I need to group baskets in groups where all baskets in the group have >=6 of the same objects within them, with no repetitions in any group. Basically, if a group has basket1, ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/69659707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grooy/Grails or Java : viewing YouTube videos marked private Greatings! I've been tasked on a groovy/grails project to display YouTube videos relating to the project that are marked private. I'm guessing they want to keep the videos accessible but only through their site. So I've been given the YouTube dev api guide...
{ "language": "en", "url": "https://stackoverflow.com/questions/5681241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sum dynamically added column values? I have dynamically added rows that I need to sum. Added columns and total will be displayed in separate fields. I want to sum user enter data one particular column that is "DEBIT*" columns. for example user enter 1st row on debit coloumn 100rs and user click add new row a...
{ "language": "en", "url": "https://stackoverflow.com/questions/58143623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generate list month 1 year above from current month Currently I want to create function to generate list 1 year above (for example the current month is august 2021, I want to create list from july 2021 - august 2020) any recommend class or built-in function in dart/ flutter? this is the current code void getListOfMo...
{ "language": "en", "url": "https://stackoverflow.com/questions/68723086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to generate a horizontal sinusoidal text in C without graphics.h? I am trying to write a program on generating a sinusoidal text in C. I tried the code below and got a vertical sine wave. Is it possible to make it horizontal? I am new to C programming, so if you could, please explain the code in simplest manner....
{ "language": "en", "url": "https://stackoverflow.com/questions/49213910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: PHP Using DOMXPath to strip tags and remove nodes I am trying to work with DOMDocument but I am encountering some problems. I have a string like this: Some Content to keep <span class="ice-cts-1 ice-del" data-changedata="" data-cid="5" data-time="1414514760583" data-userid="1" data-username="Site Administrator" und...
{ "language": "en", "url": "https://stackoverflow.com/questions/26677257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to get a reference to target element inside a callback I'm building a component which displays a series of generic input fields. The backing store uses a simple array of key-value pairs to manage the data: [ {fieldkey: 'Signs and Symptoms', value:'fever, rash'}, {fieldkey: 'NotFeelingWell', value:'false'}, {fie...
{ "language": "en", "url": "https://stackoverflow.com/questions/29682321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Resque with Rails 3 + Heroku + RedisToGo giving Postgresql error I'm writing an app which needs to send many emails and creates many user notifications because of these emails. This task produces a timeout in Heroku. To solve this, I decided to use Resque and RedistToGo. What I did was to send the email (it's actua...
{ "language": "en", "url": "https://stackoverflow.com/questions/9915146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are there any tools to monitor performance of Puma process queuing in Rails? I'm trying to isolate puma process queuing as requests come into my application. I've adde middleware to determine the time between requests being received and responses sent back. Though, I'd like to see if, for whatever reason, Puma is ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/45556461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to hide a form's frame at runtime I have a form. At runtime, how can I hide the form's frame? (The borders with the form name.) A: Set the form's FormBorderStyle property to None.
{ "language": "en", "url": "https://stackoverflow.com/questions/10990274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cantor function translated from java to Python I wrote a cantor function in java and I'm trying to translate it to Python. Can anyone give me some pointers ? Should I compare the fractions as one variable each or treat the top and the bottom as separate variables? java: import java.util.Scanner; public class...
{ "language": "en", "url": "https://stackoverflow.com/questions/22480134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can we simply get the edges of the graphs when using networkx GraphMatcher? We use Python networkx GraphMatcher to find matchings of two graphs G1 and G2: from networkx.algorithms import isomorphism GM = isomorphism.GraphMatcher(G1, G2) matchings_list = list(GM.subgraph_isomorphisms_iter()) For example, matchings_...
{ "language": "en", "url": "https://stackoverflow.com/questions/64843968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Joomla! Unable to edit modules PHP codes I'm quite new to Joomla! as well as PHP. Currently i'm developing a Joomla! site using Joomla! Version 1.5.14. I have downloaded and installed VirtueMart 1.1.3 on my site and now i want to edit the registration fields for the VirtueMart Module. I went to C:\xampp\htdocs\mysit...
{ "language": "en", "url": "https://stackoverflow.com/questions/8570870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check an input type=“file” has a file selected? I am developing an app with HTML, JavaScript and CSS3 with VS2012 (MetroApp) I need to trigger a verification for enabling or disabling a button after adding a file on my <input type="file"/> so far I have this: HTML: default.html: <!DOCTYPE html> <html> <head>...
{ "language": "en", "url": "https://stackoverflow.com/questions/20292557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: start-all.sh: command not found. How do I fix this? I tried installing hadoop using this tutorial, link (timestamped the video from where problem occurs) However, after formatting the namenode(hdfs namenode -format) I don't get the "name" folder in /abc. Also the start-all.sh and other /sbin commands dont work. P.S ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59813573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Unable to connect from my credential into Microsoft Sample Key Storage Provider (Cryptographic Provider Development Kit) My current environmental situation: 1. on the client side I installing the certificate issued from a window server (ADCS) with a provider type (Microsoft Enhanced Cryptographic Provider v1.0) an...
{ "language": "en", "url": "https://stackoverflow.com/questions/62443324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I make a signed apk with upload key? I follow Manage your app signing keys which states "To create an upload key for new apps, follow the instructions on sign your app." I check here under section "Use google play App signing", which redirects me to Manage your app signing keys. This link is the same as the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/47835959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add elements to ArrayList I'm trying to add several events retrieved from a database to an ArrayList in order to populate a listview. I've created an event class and I've set up all the methods. EventsFunctions eventsFunctions; JSONParser jParser = new JSONParser(); JSONArray events = null; ArrayList<Torneo>...
{ "language": "en", "url": "https://stackoverflow.com/questions/16283039", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recursively rename files using find and sed I want to go through a bunch of directories and rename all files that end in _test.rb to end in _spec.rb instead. It's something I've never quite figured out how to do with bash so this time I thought I'd put some effort in to get it nailed. I've so far come up short thoug...
{ "language": "en", "url": "https://stackoverflow.com/questions/4793892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: Cortex-M0+ dual application/image linking For most products, we implement a bootloader+application approach which uses an external SPI flash for storing different application versions. Upon startup, the bootloader checks if a new image is stored in the SPI flash. If so, it flashes the application area of the µC and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70677559", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get string length after it has changed but before its assigned Lets say I want to do something like this: $string = 'arbitrary string' # << is random $string = ($string + 'randomstring').Substring(0, [math]::Min(20, $string.lenght) # < doesn't work properly How do I get current length of $string, when it is not yet...
{ "language": "en", "url": "https://stackoverflow.com/questions/42435275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Parsing of multiple Arrays in android Please tell me how i can parse this model, i am a fresher in android. i tried like this way:- { "error": false, "response": { "comdata": [{ "id": "35", "address": "Address" }], "empdata": [{ "cid": "33", "comi...
{ "language": "en", "url": "https://stackoverflow.com/questions/52717669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Filttering json data in html-table I have to display json data in HTML-table and have succeeded in it. My problem is that I also need to filter this data by genders and studyfields using radiobuttons and dropdown list in the webpage. I have managed to do so but the filters clash with each other and mess the results ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53337612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programmatically Position Views in RelativeLayout I want my TextView to appear below my ImageView in a RelativeLayout that is going into a GridView. I've tried: public override View GetView(int position, View convertView, ViewGroup parent) { RelativeLayout rl = new RelativeLayout(context); Rela...
{ "language": "en", "url": "https://stackoverflow.com/questions/9200813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQLite returned: error code = 1 I have a pre-filled database in assets folder, which I move to internal storage on first run. It works fine on some devices, but on some I get the following error: sqlite returned: error code = 1, msg = no such table: FTSgesla, db=/data/data/com.example.enigmar/databases/gesla The men...
{ "language": "en", "url": "https://stackoverflow.com/questions/14800907", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ArgumentException vs. ArgumentNullException? I’m refactoring some code and adding a method which will replace a (soon-to-be) deprecated method. The new method has the following signature: FooResult Foo(FooArgs args) { ... } The deprecated method contained a growing list of parameters. These parameters are now pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/8459755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Make intersection of two methods in typescript I have intersection type GetSet and instances of Get and Set. How can I compose the GetSet instance? get & set gives two errors: * *TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type *TS2345: Argument of ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/75432261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP MySQL SELECT from 2 tables not working I am trying to select records from two tables. Please see the screenshots for the table structures: Table listing Table c_profile I want to display the records of listing table and few from c_profile table.. SELECT c_profile.c_name,c_profile.logo, c_profile.email, listin...
{ "language": "en", "url": "https://stackoverflow.com/questions/36574105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copy HTML to UIPasteboard with React Native I have a simple react-native app that has some functionality to copy HTML to the global clipboard such that it preserves the styling. The expected result is I copy HTML and can paste it into another app with the styling intact. Note, I’m not looking to paste HTML source co...
{ "language": "en", "url": "https://stackoverflow.com/questions/65308176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need to commit open transaction? Is it need to commit opened hibernate transaction.What will happen if someone didn't? Is it caused to some issues? thanks A: Commit will make the database commit. The changes to persistent object will be written to database. If you don't commit you will loose the changes you made i...
{ "language": "en", "url": "https://stackoverflow.com/questions/20759676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Correcting country names to make them match a different naming convention I want to make a world map with ggplot as follows: library(ggplot2) library(countrycodes) library(dplyr) library(tidyverse) worldmap_AMIS_Market <- map_data("world") # Set colors vec_AMIS_Market <- c("Canada", "China","United States of Americ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70127083", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Sticker App : UnsatisfiedLinkError after releasing app AsyncTask I am getting error as I got following crash from Play Console. Its sticker application and I just updated, before that I have updated many times but didn't get any error. In this updates I just changed assets folder by adding one folder with 25 images....
{ "language": "en", "url": "https://stackoverflow.com/questions/54905094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use pure SQL in ASP.net MVC? hello guys i need to use pure SQL queries for my database project at the same time i wanna use ASP.net MVC so i can learn a new technology !!! can i use SQL with ASP.net MVC WITHOUT using " LINQ to SQL " ?! i'm still learning so i'm sorry if it so stupid using things the OLD SCHO...
{ "language": "en", "url": "https://stackoverflow.com/questions/4594233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to extract information from the command line? I would like to analyze the options passed via the command line using C++ and QT, without using external libraries. In particular, assuming that the possible lines of command are the following ones, what is the easiest way to analyze and extract the required informat...
{ "language": "en", "url": "https://stackoverflow.com/questions/23361944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: The web server hangs while calling 3rd party Web API from my Web API I need to call a 3 party Web Api from my ASP.net Web API, when it runs the line HttpResponseMessage response = await client.PostAsJsonAsync("api/ArTrx/postDocument", poMaster); the web server hangs. I have tried to put below code in to a console ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31237989", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Create maven dependency instead of .jar Is there a way where I can take an existing java project (it's an automation framework) and actually export it out in a way that another project can consume it using the maven GAV instead of having to add it as an external jar? I was able to create a jar of the framework proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/54961881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CURL to C# HttpWebRequest I need help with converting PHP's CURL to C# HttpWebRequest. My c# code doesn't work well, the request loads all the time ending with timeout exception. Here is my PHP code: $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_URL, 'https://...
{ "language": "en", "url": "https://stackoverflow.com/questions/20315684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: My website is accessible to some users but throws "this site can't be reached" for others I recently set up a website http://shehara.co and it works fine on my pc and phone and some of my friends, when working properly it should display "nothing to see here" on the top left corner, But for most users, it does not lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/61097385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Images and Icons for Apps (Android - iOS) I am creating my first App for the iOS and Android platforms and want to start with some good icons and images. I do not want to spent a lot of money on them. I also do not have experience with softwares like photoshop to create my own images and icons. I am trying to find s...
{ "language": "en", "url": "https://stackoverflow.com/questions/23810110", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: raspberry pi camera motion detection I'm programming a motion detection system using Raspberry Pi, the official Raspberry Pi Camera and OpenCV with Python. While I'm using the absdiff and bitwise_and operation it comes up with this: OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /home/pi...
{ "language": "en", "url": "https://stackoverflow.com/questions/30416045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selenium Webdriver error: An item with the same key has already been added Can someone advice me how to prevent this error: "An item with the same key has already been added."? I have two tests that runs fine when run individually, but when I "run all" in visual studio, I get that error. [Binding] public sealed clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/47341135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to read this data into a .json file format? private ArrayList<Double> celciusList = new ArrayList<Double>(); private ArrayList<Double> farenList = new ArrayList<Double>(); private ArrayList<Double> LDRlist = new ArrayList<Double>(); private ArrayList<Double> inchList = new ArrayList<Double>(); private ArrayL...
{ "language": "en", "url": "https://stackoverflow.com/questions/23224412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: how do i make my website background a gradient colour? I am currently trying to create a website. I have created the logo for the website but I'm not sure how to make my header and footer background a gradient color on Dreamweaver CS6. I can only put it as a solid color and I am not sure if I need to use CSS or HTML...
{ "language": "en", "url": "https://stackoverflow.com/questions/32798595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamically serving users from one of the multiple servers behind a single domain? When someone registers to my SaaS app they are assigned to a region (US/EU/Pacific), and it is saved into the DB. In this example I have 3 servers, 1 for each region. When a user logs in (it could be a single central server/subdomain ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42101671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to keep ui-router parameters on browser refresh I'm using a ui-sref which takes two strings and an object as parameters. All works fine under normal circumstances, however when I refresh the browser on the page which I have navigated to the object becomes null. The two strings in the URL are fine after a refre...
{ "language": "en", "url": "https://stackoverflow.com/questions/39456146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Min Fibonacci Heap - How to implement increase-key operation? I have been trying to implementing heap data structures for use in my research work. As part of that, I am trying to implement increase-key operations for min-heaps. I know that min-heaps generally support decrease-key. I was able to write the increase-ke...
{ "language": "en", "url": "https://stackoverflow.com/questions/57432502", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Invalid hook call inside arrow functional component although the code runs I'm learning react and am trying to get a simple pop-up to show whenever the Show Toast button is clicked using Toast. However, I'm receiving this error: Error in /turbo_modules/react-dom@16.13.1/cjs/react-dom.development.js (12408:27) Invali...
{ "language": "en", "url": "https://stackoverflow.com/questions/64411953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calculating 3D pixel variance from 4D array Let there be some 4D array [x,y,z,k] comprised of k 3D images [x,y,z]. Is there any way to calculate the variance of each individual pixel in 3D from the 4D array? E.g. I have a 10x10x10x5 array and would like to return a 10x10x10 variance array; the variance is calculate...
{ "language": "en", "url": "https://stackoverflow.com/questions/51638870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dictionary comprehension inside insert() method not working I am making a MappingList class which is a list implemented as an OrderedDict. This is the MappingList class (some methods omitted): class MappingList(MutableSequence): """ A MappingList is a regular list implemented as a dictionary """ def...
{ "language": "en", "url": "https://stackoverflow.com/questions/68834085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Downloading files from an sftp site - how? I have the username and password. Using Firefox, the URL ftp://myuid@ftp.xxx.com pops a dialogue asking fo the password. The the response is '503 User not logged in' Using IE, the URL ftp.xxx.com pops a dialogue asking for username and password; the response is the same as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/8405781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What naming convention for a method/function that both sets and gets a value? This may come across as a strange question, since the convention is usually to have separate set and get methods. But in my case, it is a bit different: an argument to a function decides whether that function is a getter or a setter, so I...
{ "language": "en", "url": "https://stackoverflow.com/questions/15737692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is shallow copy sufficient for structures with char[]? I have a structure containing character arrays with no any other member functions. I am doing assignment operation between two instances of these structures. If I'm not mistaken, it is doing shallow copy. Is shallow copy safe in this case? I've tried this in C++...
{ "language": "en", "url": "https://stackoverflow.com/questions/2241699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: python. how to export to csv file after gather data on web I did some web scraping with selenium and was able to generate to print a table with the data I need to export (see image below). How can now export it to csv (place a .csv in a specific folder with todays date). Thanks a lot for your inputs. from selenium i...
{ "language": "en", "url": "https://stackoverflow.com/questions/35429746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Nested ListView in wicket throwing IndexOutOfBoundsException I have a nested ListView in wicket which for some reason is throwing an IndexOutOfBoundsException. Here is the relevant markup: <table> <tr wicket:id="dataRow"> <td wicket:id="dataCell"><span wicket:id="dataContent"></span></td> </tr> <table> and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39205636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: -Replace Operator not accepting capture group variable and user variable at once In the below example if I use single quotes for the -Replace operator ('Tag000: (.*)', 'Tag000: $1 hello $scategory') the capture group variable ($1) gets resolved at run time, while $scategory does not. If I use double quotes (-replace...
{ "language": "en", "url": "https://stackoverflow.com/questions/73387890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hadoop, MapReduce Custom Java Counters Exception in thread "main" java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING Error is: Exception in thread "main" java.lang.IllegalStateException: Job in state DEFINE instead of RUNNING at org.apache.hadoop.mapreduce.Job.ensureState(Job.java:294) a...
{ "language": "en", "url": "https://stackoverflow.com/questions/31480400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS Access SQL Query to Concatenate or Consolidate Related Fields If I had the following MS Access table and sample data, Status tbl UpdateID PK CustomerNo text StatusType text UpdateDate date UpdateID, CustomerNo, StatusType, UpdateDate 001, 0099, Open, 2011-01-01 002, 0099, Pend, 2011-01-02 003, 0100, Open, 2011-01...
{ "language": "en", "url": "https://stackoverflow.com/questions/4785713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ruby on rails new project gemfile error I recently installed and created a new project, I followed rails tutorial (http://guides.rubyonrails.org/getting_started.html) and everything was ok. Now, when I tried to create a new project and start the server I get this: => Booting WEBrick => Rails 4.0.0 application starti...
{ "language": "en", "url": "https://stackoverflow.com/questions/18700953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the GET function on AWS S3 Are Get functions read-only? like if a GetObject, GetBucketPolicy or GetBucketLogging event is executed on an s3 then does that mean the user only read the information Thanks! A: Yes that is a standard practice. While building any REST API; ( just like when we create beans and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/64702991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Minimum code coverage threshold in Jacoco Gradle on the whole project level(not on the module level) Our project is using Gradle 3.5, jacoco 0.8.1 It has 3 modules -- module-A, module-B and module-C, and its code coverage is 50%, 6% and 42% separately, and the code coverage for the whole project is 38%. Now we want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51372406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Date and Json in type definition for graphql Is it possible to have a define a field as Date or JSON in my graphql schema ? type Individual { id: Int name: String birthDate: Date token: JSON } actually the server is returning me an error saying : Type "Date" not found in document. at ASTDefinitionB...
{ "language": "en", "url": "https://stackoverflow.com/questions/49693928", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "59" }
Q: Spring Boot 2.1.0 Web app and Java 11 fail to maven clean install The following web app fail to maven clean install: https://github.com/cassiusvm/sfg-pet-clinic The error is below: [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/cassius/git/sfg-pet-clin...
{ "language": "en", "url": "https://stackoverflow.com/questions/53269168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: unable to find matching constructor for: java.time.ZonedDateTime() i have a very simple code base and i feel really silly here. Why am i getting the error groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.time.ZonedDateTime() import org.testng.annotations.Test import java.time.ZonedDa...
{ "language": "en", "url": "https://stackoverflow.com/questions/63563576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Querystring for Paypal I am making the following get request to Paypal Sandbox. But it says some problem with merchant account. Is there any way that i can see what i am sending wrong? Here is the request URL https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart&business=raheel.exile@gmail.com&invoice=1949&currenc...
{ "language": "en", "url": "https://stackoverflow.com/questions/26558639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using blocks that returns and takes a parameter So in AFNetworking there is a function as follows: + (AFImageRequestOperation *)imageRequestOperationWithRequest:(NSURLRequest *)urlRequest imageProcessingBlock:(UIImage *(^)(UIImage *))imageProcessingBlock ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10628447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to handle both `with open(...)` and `sys.stdout` nicely? Often I need to output data either to file or, if file is not specified, to stdout. I use the following snippet: if target: with open(target, 'w') as h: h.write(content) else: sys.stdout.write(content) I would like to rewrite it and handle...
{ "language": "en", "url": "https://stackoverflow.com/questions/17602878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Negative margin on table row How do I give a <tr> a negative margin to move it up? I'm trying to move .small-item-block <tr> <td class="item-name">Caprese</td> <td class="item-description">Fresh mozzarella, tomato, fresh basil and balsamic vinegar on a bed of spinach.</td> <td>$4.00</td> <td>$20.00</td> </tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/24148495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: VueJS Front-end never receives response from NodeJS backend I'm trying to set up a login feature in my web application, where the backend uses a MongoDB database and is done with NodeJS (express), and the front-end with VueJS. However, whenever I try to send back the response from the backend to the front-end, the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/65415228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Have trouble to understand why this code fails Have been working on this problem for days and cant figure it out. On line with ExecuteMso I get following error message Method "ExecuteMso" of object "_CommandBars" failed. I'm having difficulty to understand or find why. Searched web for days. Sub GenerateReport() Dim...
{ "language": "en", "url": "https://stackoverflow.com/questions/57269151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Selecting Single XML from Multiple XMLs rows in a Table I have an XML column in a table where each row of the table is a complete XML node. I am trying to simply trying to select a subset of these rows and generate an XML document out of it with a root node. I thought I could do the following, but it keeps added a...
{ "language": "en", "url": "https://stackoverflow.com/questions/14283480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Should we use Visual Studio 2010 for all SQL Server Database Development? Our company currently has seven dedicated SQL Server 2008 servers each running an average of 10 databases. All databases have many stored procedures and UDFs that commonly reference other databases both on the same server and also across link...
{ "language": "en", "url": "https://stackoverflow.com/questions/2987047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }