text
stringlengths
15
59.8k
meta
dict
Q: Can anyone help me with this shadow upload script? I have the shadow uploader also and works great for the 5 form fields (added 2 from original code) in the exmple but want 11, as soon as i add an extra field I get an error: Request object error 'ASP 0104 : 80004005' Operation not Allowed /a20couk/includes/ShadowUpl...
{ "language": "en", "url": "https://stackoverflow.com/questions/24054669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery beginner - accordion menu, but jittery buttons I built an accordion FAQ menu as part of a personal exercise here There's a slight jitter/shake when clicking the buttons that I can't seem to solve for. I've searched Google, but to no avail for something that works. Any ideas? Also, is there a more efficient wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/19967646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Vue 3 rellax.js usage i have installed rellax.js in vue3 project. import App from './App.vue' import VueRellax from 'vue-rellax' createApp(App).use(VueRellax).mount(#app) but when i add rellax class on any components template tags its not working <section class="rellax section portfolio-section pd-34" id="port...
{ "language": "en", "url": "https://stackoverflow.com/questions/74408890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading Core Data as Objects I have 1 entity in my database "Message" with the values MessageID, messageText and i want to read every row of Core Data, make an object of my class "Message" and put the new object into an array. It's the first time I'm using Core Data and I don't quite get it yet, how I manage to do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/20214686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Update statement in stored procedure with varbinary parameter I have the following table: CREATE TABLE NZQA_Unit( NZQAUnitID int IDENTITY(1,1) PRIMARY KEY NOT NULL, NZQAUnitNumber int NOT NULL, Title nvarchar(255) NOT NULL, L...
{ "language": "en", "url": "https://stackoverflow.com/questions/66205026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Heroku Automated Generated Name How to change heroku automated created name (ex: glacial-dawn-22102 ) its not related to my project name! When I input the command git push heroku main then it creates the name of the file. Is there any opton to modify this? git push heroku main
{ "language": "en", "url": "https://stackoverflow.com/questions/72174175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Recording video with webcam using VideoCapture I want to record a video with python (using my webcam) and I came across VideoCapture which was easy to install on windows. I know there is OpenCV out there, but that was too much for me. So far I can create every 0.04 seconds a .jpg with this code: from VideoCapture im...
{ "language": "en", "url": "https://stackoverflow.com/questions/22440350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is lastApplied and matchIndex in raft protocol for volatile state in server? I am using the following pdf as reference. It says that lastApplied is the highest log entry applied to state machine, but how is that any different than the commitIndex? Also is the matchIndex on leader just the commitIndex on followe...
{ "language": "en", "url": "https://stackoverflow.com/questions/46376293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: gradlew.bat invalid directory in android studio How do I address the following error? ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk1.7.0_67\bin; Please set the JAVA_HOME variable in your environment to match the location of your Java installation. I've been researching this for hours to...
{ "language": "en", "url": "https://stackoverflow.com/questions/25374303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Programmatically layout buttons I am new to Android Development, having much experience in desktop and Web Application coding, and am just getting to grips with how the view layouts work. I have been using Linear Layouts and weights previously to solve my design issues, but due (I believe) to this design not being, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50084779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kieran Healy's emacs starter kit in linux (fedora19): "/bin/bash: osascript: command not found" message I am user of Kieran Healy's Emacs Starter Kit. I have run it on the Fedora distro of Linux for around a year or so. Things have always run smoothly, but now that I have upgraded from Fedora17 to Fedora19, when I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19429188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Delete action doesn't work for entities without dependencies in entity framework Here is my Delete action code and when I try to delete an entity which doesn't contain any dependencies. It always return index without delete. I just want to set it only for the entities with dependencies and others should allow delete...
{ "language": "en", "url": "https://stackoverflow.com/questions/58317035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to initialise QTextEdit find options I am trying to set the options in the following call: bool QTextEdit::find(const QString &exp, QTextDocument::FindFlags options = QTextDocument::FindFlags()) But the signature of option is complicated for a Python programmer. I tried the following: option = 0 option = option...
{ "language": "en", "url": "https://stackoverflow.com/questions/57209842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: changing React.js form values from a chrome extension I'm not developing in React.js, but I'm working on a chrome extension that needs to programatically fill form values for different kinds of sites. The site uses React.js, and I'm filling the value in the usual way with: element = document.querySelector("input[nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/39202120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Merge specific keys in a multidimensional array into one-dimensional array I have a complex data that structure I want to simplify. This array depth may change since it's dynamic data coming from external resource. I want to merge all arrays that has key price into one dimensional array. I want to turn this: array( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63830100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Redirect a php script after sending header I have an html page with a form and a submit button. Once I click submit all the form data, thanks to fpdf, gets turned into pdf. This pdf is sent without problems to my email. Building this little page everything always worked without problems and I was able to redirect my...
{ "language": "en", "url": "https://stackoverflow.com/questions/12145625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: vim: NERDTree how to: create/rename/move file/directory I checked the documentation of NERDTree, but didn't find the way to create new file/directory or rename/move it (once I'm browsing directory tree). In the netrw plugin it would be easy, but this one is not used any more as NERDTree just replaced it. And I don't...
{ "language": "en", "url": "https://stackoverflow.com/questions/19765721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Cannot open website link in J2ME I am working on a simple J2ME application and i have a StringItem linked to a terms and conditions page online. I have the StringItem setup and it appears underlined (giving the feeling that it is linked); but when i click on it, it does not perform any action. Find below my code: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10498664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Any way to run an internal python script from a webpage? I finally made a project that I wanted to make since a long time : I'm using an Arduino Uno to replace my PC power button (with a simple relay) and that Arduino Board is connected to a Raspi 3 for network connection purposes My wish is to do a webpage (or a AP...
{ "language": "en", "url": "https://stackoverflow.com/questions/65369383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using MultiValuedMap with Jackson Hello I am trying to create an object from the following json : { "property1": "value1", "property2": [ {"key1":"value1"}, {"key1":"value2"}, {"key2":"value1"} ] } The reason am using MultiValuedMap is because the keys in property 2 can be du...
{ "language": "en", "url": "https://stackoverflow.com/questions/71508956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Closest point from List for every point of other List I have a population of so called "Dots" that search for food. Every Dot has a sight_ value, which indicates the range in which it can see food. The position of each Dot is saved as a pair<uint16_t,uint16_t>. The positions of all foodsources are in a vector<pair<u...
{ "language": "en", "url": "https://stackoverflow.com/questions/59432185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can you append strings to variables in PHP? Why does the following code output 0? It works with numbers instead of strings just fine. I have similar code in JavaScript that also works. Does PHP not like += with strings? <?php $selectBox = '<select name="number">'; for ($i=1; $i<=100; $i++) { $sel...
{ "language": "en", "url": "https://stackoverflow.com/questions/9050685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: Pandas Dataframe sum row based on column header I have the following dataframe and want to create two columns, one will show the amount MTD and the other will show the cumulative YTD based on a date parameter for each Account Name. This is easily achievable in Excel using a =SUMIFS formula and want to know the Pytho...
{ "language": "en", "url": "https://stackoverflow.com/questions/72329919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firefox Password Field is not empty I'm new here on stackoverflow. I'm writing a Form to add a Album to a gallery, but now I discovered a problem in Firefox which I've never had. The password field is already set. I never filled out the form. Does somebody knows, why Firefox fills text in? A: If it is a saved passw...
{ "language": "en", "url": "https://stackoverflow.com/questions/34298010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can you use "first class" concept on Python methods/attributes? Can the "first-class" concept be applied to Python methods/attributes like it can functions? >>>a=sum >>>a([1,2,3]) 6 I would like to do something like: >>>case='lower' >>>'UPPERCASE'.case() To produce the string object 'uppercase'. Otherwise, would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38317314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Reduce 3G data consumption using Google Map API for Android I am developing an android application that requires to display the current location of a user and to load KMZ file (with poly lines) on Google Map (use of google map api). My application opens the google map, loads the KMZ file and diplays current ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25607168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remap the copy-paste keyboard shortcuts in MATLAB on Ubuntu? The default keys are alt-w for copying and ctrl-y for pasting. Is there any way to remap this to ctrl-c for copying and ctrl-v for pasting? A: Yes. Go to Preferences -> Keyboard. There you will find "Command Window keybindings" and "Editor/Debugger...
{ "language": "en", "url": "https://stackoverflow.com/questions/35730436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Google breakpad crashes when run under a debugger We have a problem where initializing the Google Breakpad exception handler errors out when the program is run under lldb, but not when run normally from the shell. The system is MacOS 13 (Ventura) and the IDE is Visual Studio Code. The code below fails on a call to i...
{ "language": "en", "url": "https://stackoverflow.com/questions/74645275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony 2 - Form collection for one entity without parent entity I have problem with form collection. I want to show one form with all values from one entity and I want to be able to add or remove some record(line) from this entity on one page. I have the following solutions, which is ok. CurrencyController class Cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/27150736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to set the color of margins in a QGridLayout? How to set the color of margins in a QGridLayout? I want to show the different columns and rows separately by placing lines between various rows and columns. In other words, how to display items in grid-layout such that they are in a table. A: QGridLayout doesn't d...
{ "language": "en", "url": "https://stackoverflow.com/questions/3233133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL table with a lot of text So I have this database (Size 3.1Gb total), but this is due to one specific table I've got, containing A LOT of console output text, from some test runs. The table itself is 2.7Gb, and I was wondering if there could be another solution for this table, so the database would get a lot sm...
{ "language": "en", "url": "https://stackoverflow.com/questions/68994225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set dashed axes on a box plot I would like to figure out if it is possible using pyplot setting a dashed box (I mean the axes of plot contours) of the plot. I know that could sound strange and horrible. but I would like to try using it. A: The axes "box" consists of 4 "spines", which are accessible via ax.sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/52794309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Having issues with fetching an environment variable In the root of my React project, I have this .env file containing the following. DS_API_URL=[http://url.com](http:url.com/) In another file of the project, an axios call utilizes this to return some stuff. const url = 'http://url.com/graph/tech-stack-by-role' will...
{ "language": "en", "url": "https://stackoverflow.com/questions/74132164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Capture 2nd entry from database I'm quite new to the programming world and have become stuck with querying a database in C#. I am trying to return a date and an Int32 from the second entry in a database using the code below: OleDbCommand com101 = new OleDbCommand("SELECT TOP 2 [Flight_Date], [No_Launches] FROM Fligh...
{ "language": "en", "url": "https://stackoverflow.com/questions/22337552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating an if/elif statement with regex error in python So recently I started learning python through an online education platform and currently I hit a wall. So the problem is: Create an if statement that takes an age value. This if statement should print the word “child” if age is 12 or less, “teenager” if age is...
{ "language": "en", "url": "https://stackoverflow.com/questions/68371648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java.util.NoSuchElementException: No line found* I keep getting this error java.util.NoSuchElementException No line found when I use this method public boolean hasMoreCommands() { if (input.hasNextLine()) { return true; } else { //input.close(); return false; } } public void adva...
{ "language": "en", "url": "https://stackoverflow.com/questions/26708184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Axios + Typescript: how to pass a param of type "ResponseType"? Axios defines ResponseType as export type ResponseType = | 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' I'm trying to pass a configuration to axios.post const config = { headers: { 'X-Requested...
{ "language": "en", "url": "https://stackoverflow.com/questions/56987042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get source branch name in commit-msg hook of merge commit In the commit-msg hook for a merge commit, how can I get the branch name of the immediate source branch for the merge? I can get the target branch with something like git rev-parse --abbrev-ref HEAD But HEAD and HEAD^ both refer to the target branch. Is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/29936978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get a range of elements from an array in Redisjson? I have a simple array as such : [1,2,3,4,5] and I wish to get a range for example from index 2 to index 4. I can get the last element of the array by : json.get key .[-1] However I cannot find anyway to return a specific results without trimming the array....
{ "language": "en", "url": "https://stackoverflow.com/questions/71897854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to hide url in the popup window opened using window.open I am using below code to open a popup window in my page: window.open("myPopupWindow.html", "_blank", "height=400, width=550, status=yes, toolbar=no, menubar=no, location=no, addressbar=no, top=200, left=300"); Although the url is disabled but even then i...
{ "language": "en", "url": "https://stackoverflow.com/questions/22982105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: QFileDialog::getOpenFileName doesn't set the initial directory on Mac OS 10.8 Mountain Lion I can not change the current directory with QFileDialog with Qt 4.8. The same code works fine on Windows and Mac OS 10.6 Snow Leopard. It also works fine if I don't use the native Mac OS X dialog. This works: fn=QFileDialog::...
{ "language": "en", "url": "https://stackoverflow.com/questions/16194475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Navigator.getUserMedia and Navigator.webkitGetUserMedia undefined after updating to Chrome 74 After updating from Chrome 73 to 74 navigator.getUserMedia and navigator.webkitGetUserMedia return undefined. Here https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia I see that getUserMedia is actually ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56005165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: ng-file-upload issue on IE9 - after uploading one file receiving error var prevFiles = ((ngModel && ngModel.$modelValue) || attr.$$ngfPrevFiles || []).slice(0); I am getting an error that the result of this statement does not have a slice method. A: Without knowing too much about the module I have a theory: The f...
{ "language": "en", "url": "https://stackoverflow.com/questions/33740352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can the code being allowed to continue from one question to another question even though the input answer had wrong for 3 attempts? import time import random #declare variables and constant guessingelement = ["Hydrogen", "Magnesium", "Cobalt", "Mercury", "Aluminium", "Uranium", "Antimony"] nicephrases = ["Nice...
{ "language": "en", "url": "https://stackoverflow.com/questions/74487482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: if_attribute on declarative authorization I have a many-to-many relationship like this: A user has_many organizations through affiliations and vice-versa. I'm using declarative organizations and I only want a user to edit a particular organization if he is affiliated and the affiliationtype attribute of affiliation ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2439747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Print "hello world" every X seconds Lately I've been using loops with large numbers to print out Hello World: int counter = 0; while(true) { //loop for ~5 seconds for(int i = 0; i < 2147483647 ; i++) { //another loop because it's 2012 and PCs have gotten considerably faster :) for(int j = 0;...
{ "language": "en", "url": "https://stackoverflow.com/questions/12908412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "148" }
Q: how to create a single webapplication as a sub domain for many companies i am working on a project that you can subscribe with your company name and you can use all features of site specificly to your company. for example company abcd can get its own url from our website like www.test.com/abcd/productlist.aspx compa...
{ "language": "en", "url": "https://stackoverflow.com/questions/2084393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to send a Whatsapp message to a specific user using third party apps in iPhone? Let my app be A and the app user is called A1 I have a completely different person with his mobile mobile number - N1 Now I want achieve the following in my app A - When the user A1 clicks on a button, Whatsapp is opened(if present) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25810824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ember : sortBy or Ember.computed.sort I saw an example of Ember sortBy somewhere which goes like: model.sortBy("time").reverse().sortBy("place") It was working, but am not sure if this is a good way to do that. Would the below a better fit for this. If yes, why. sortOptions: ['time:desc','place'] Ember.computed.sor...
{ "language": "en", "url": "https://stackoverflow.com/questions/37650565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP extension conflict with Ioncube extension The problem is with the IonCube obfuscation library being used to encode/obfuscate their PHP application. This IonCube library which is a zend extension, is interfering with PHP extension. When IonCube is enabled, for all encoded/obfuscated PHP pages monitored, PHP exte...
{ "language": "en", "url": "https://stackoverflow.com/questions/52215962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: can't get href from beautifulsoup from 'a class' I'm trying to extract the href from this web site, but I can't find the way to do that, I tried using this: busqueda = requests.get('https://autos.mercadolibre.com.ar/vento/_DisplayType_LF') auto_cont = BeautifulSoup(busqueda.content) auto_cont.find_all('a',{'class':'...
{ "language": "en", "url": "https://stackoverflow.com/questions/56828578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Installing erlang 19.3 with ubuntu 18.04 gives the following error: crypto: No usable OpenSSL found, ssh : No usable OpenSSL found My OS is ubuntu 18.04, erlang version is 19.3, openssl version is 1.1.1, and when I use . /configure --prefix=/opt/erlang , the error report: ********************************************...
{ "language": "en", "url": "https://stackoverflow.com/questions/71478497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automate data extraction from Elasticsearch Dev Tools? I have to do the following steps two or three times a day * *log in into Elasticsearch *Go to Dev Tools *Run a specific query by selecting it and pressing ctrl + enter Query that I have to run *Select the results that returns in the "buckets" and cop...
{ "language": "en", "url": "https://stackoverflow.com/questions/74993417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Express JS not rendering jade template I'm going to keep this short, I'm just trying to render a jade template using express js. I'm using express 3.0.0rc5 and jade 0.27.6. Here's my jade templates, the layout: // test-layout.jade doctype 5 html head title My title block head body #content bloc...
{ "language": "en", "url": "https://stackoverflow.com/questions/12849746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP number_format() and round() not producing valid upper-range results 3 CODE: in_array($number, round(range(65,74))) or round(in_array($number,range(65,74))) I'm doing a switch case whenever the user inputs 73.4 the result is null. But whenever I input 73 or 74 it executes. How to do it I'm a newbie in php here...
{ "language": "en", "url": "https://stackoverflow.com/questions/21495876", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Autolayout is expecting a different height I'm struggling with autolayout in my iOS 7 project on Xcode 5. Let's say I want to show these buttons : Something - | 10 pts fixed space from top - Button 1 50 pts height on 4" display, reduce height if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22097320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Firebase login with GCP service account I am trying to login to the Firebase Tools CLI with a GCP service account. I have the path to the service account credentials saved as GOOGLE_APPLICATION_CREDENTIALS. I have logged out of firebase with firebase logout and have tried to sign in with the service account with fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/61229315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert Indirectly Into a Naming Table? Let's consider this diagram With this JPA snippet of the Track class. @Entity @Table(name = "track") public class Track { @Id @Type(type="pg-uuid") private UUID id; @Column(name = "genre") private String genre; /* Getters, setters, etc */ } And the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/19789141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why not wrap content within ``? It seems common to use the following HTML structure to accommodate users who have enabled/disable javascript: <html> <style> div.body { display:none; } .body > ... { ... } </style> <script> document.onload( function() { javascri...
{ "language": "en", "url": "https://stackoverflow.com/questions/65817298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django form isn't rendering at all I'm trying to make a non model form that just gets input text for a chat like interface. views.py def get_input(request): if request.method == 'POST': form = inputForm(request.POST) if form.is_valid(): return HttpResponseRedirect('/thanks/') els...
{ "language": "en", "url": "https://stackoverflow.com/questions/31686259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hash created from CSV row not behaving like a normal hash I'm getting some weird issues. I'm trying to allow importing of a CSV into my model. I'm getting an unknown attribute 'hashtag' for Job. error, but that's not the issue. My model definitely has a hashtag column. When I get the error, if I try doing job.to_ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/50700567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiling cross-referenced classes in Codelite I'm sure this topic has come up before, but I am not sure what even to google for: I am new to C++ and while learning I wrote first a Vector class, then a Matrix class (which uses the Vector class). While working on the Vector class the program compiled fine, but when a...
{ "language": "en", "url": "https://stackoverflow.com/questions/74408088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why are rails development credentials gitignored by default? I'm generating credentials using the following command: rails credentials:edit --environment development I notice that rails puts this in the gitignore: +/config/credentials/development.key I dont understand why, based on the following reasons: * *The de...
{ "language": "en", "url": "https://stackoverflow.com/questions/72634772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python/Bash - Tab completion not including files when arguments are provided I'm not sure whether this is a Python issue or a bash issue, but I'm having trouble with tab completion not working on files (only directories) when I'm providing arguments to my python script. Example of how I want it to work: python myscr...
{ "language": "en", "url": "https://stackoverflow.com/questions/34062349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Issue with stock Browser picking photos from Gallery I am working on a web page for uploading photos from a mobile device, using the <input type="file" accept="image/*"/> tag. This works beautifully on iphone and on chrome on the android, but where we are running into issues is with the stock android browser. The is...
{ "language": "en", "url": "https://stackoverflow.com/questions/17702396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Passing params in Knockout component as a AMD Module My tagname component is like below and while the component is registered as a single AMD module, I want to get the all params. ko.components.register('tagname', { synchronous: true, require: params.url }); <tagname params="url: 'some/relative/url'"></tagname...
{ "language": "en", "url": "https://stackoverflow.com/questions/32264853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can this element button be clicked using protractor? I'm trying to select this button using protractor: <button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)"> <i class="glyphicon glyphicon-chevron-up"> </i> </button> the only unique element in this is ng-click=...
{ "language": "en", "url": "https://stackoverflow.com/questions/38591172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML - Send email without open new windows in Outlook I send an email to a client that contains a button that must be pressed to send a user's cofee. Pressing the button opens a new Outlook window and then the user must click on SEND I would like the new window not to be opened but automatically the email must be se...
{ "language": "en", "url": "https://stackoverflow.com/questions/48972855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Success on emulator, Force stop on real device I deployed an application for Android which is successfully running on emulator. But, when I try to run on real device (My device is Acer A200, tablet), my application always forced stop. The requirement of the operating system is no problem. The error in logcat when I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24775644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter a list of data using a select box in Blazor I have a table called SchoolsTable and there is a view that will show all the records that have been entered. Here is the my model: public partial class SchoolsTable { public int Id{ get; set; } public int Name{ get; set; } public int St...
{ "language": "en", "url": "https://stackoverflow.com/questions/73740524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FileNotFoundException when restarting the app I don't know why but I get an FileNotFoundException from my Init() function. What's happening is, when I launch the app for the first time, it's normal to get one (the file does not exist). Then I press a button which calls Save and so creates the file (if I add a Log j...
{ "language": "en", "url": "https://stackoverflow.com/questions/24205177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AngularJS ng-cloak: empty page is displaying in IE9 when browser cache is cleared I just encountered a weird issue on angular's ng-cloak. When I cleared my IE9 browser's cache and close and open my browser again, when i accessed the page, it display empty page :( but when i tried to refresh the page it the page is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/22064030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery compare data/object differences on checked I'm trying to make a checkbox to hihglight the differences between data inside a div rather than table. So if row has differences "Single, Single, Married" this should be highlighted. http://jsfiddle.net/Ly61u493/1/ Logic: $('.check-diff').click(function() { if($(th...
{ "language": "en", "url": "https://stackoverflow.com/questions/32583563", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detecting unused props passed in components in React I currently refactoring some old code and I'm curious if there's any way to detect parameters which are passed into the component but never actually used inside it? Without looking at all the places where the component is called and checking manually. Eg. detectin...
{ "language": "en", "url": "https://stackoverflow.com/questions/73052061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access Windows.Services.Store from Java application We have a Java application that we publish in the Windows Store. We would like to implement in-app purchases, for which we need to use the Windows.Services.Store API. How can we access the Windows.Services.Store API from Java?
{ "language": "en", "url": "https://stackoverflow.com/questions/73737061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML5 swipe.js css3 transitions; offscreen rendering and caching of page elements I am building a HTML5 magazine for tablets and desktops with use of swipe.js (http://swipejs.com). Everything seems to work fine, In one HTML page I have set next to each other fullscreen list elements. The whole magazine is build up ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12284820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: AngularJS Form data is not defined In AngularJS, I have a form, that when submitted, passes data off to a controller and sends it to an API. Form: <form ng-submit="newCompany()"> <div class="form-group" ng-controller="CompaniesController"> <label>ID</label><input type="text" name="id" id...
{ "language": "en", "url": "https://stackoverflow.com/questions/33802005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to switch to another branch while recursively initing submodules I have a git repository with several submodules (see an example). Its structure looks like this: I--A--B <- main \ C <- branch-c * *Commit A adds a submodule-a *Commit B adds a submodule-b *Commit C adds a submodule-c on branch ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72272371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Phone emulator in Visual Studio 2015 RC on Windows 10 preview build 10074 does not work I had some problem in running some Phone of the emulators in VS2015 RC so I tried to install also the "Pre-release Microsoft Emulator for Windows 10 Mobile" and then also the external SDK ... Now, even thought I uninstalled the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30460642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Check File Extension in android i made a small method to check whether defined folder has files with a specific extension or not. I m getting null point exception on run.pls help to find mistake.method is checking .mp4 files and returning true if found and message is displayed. Here is Code: import android.os.Bundle...
{ "language": "en", "url": "https://stackoverflow.com/questions/40492184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I define custom comparison (0 < mytype) in python? So I'm currently (ab)using python notation to create a domain specific language. As part of this I'm overriding comparison functions to return non-boolean values. So, for (mytype1 < mytype2) and (mytype < 0) I can easily do this by defining the __lt__() magic...
{ "language": "en", "url": "https://stackoverflow.com/questions/37514787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: iOS SDK - using @2x, and icons.. where do they go? I have been developing my app for about a week and have loaded some images into it. I noticed that you can put an image into the app and it scales correctly. I have some larger images that have scaled down and look great. I guess this is discouraged because it take...
{ "language": "en", "url": "https://stackoverflow.com/questions/17627510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Swift iOS 13 : Click on push notification how to open textfield? User want to interact on click of push notification and send comment/reply/message. I have following code in AppDelegate: func configureNotification() { let center = UNUserNotificationCenter.current() center.requestAuthorization(o...
{ "language": "en", "url": "https://stackoverflow.com/questions/60829980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: unable to read lines of log file I have an AWS S3 bucket with a bunch of log files in them. I have a lambda function using node.js 8.10 runtime that reads each line of the log file. This is what I have: const readline = require('readline'); exports.handler = async (event) => { try { let bucket = event....
{ "language": "en", "url": "https://stackoverflow.com/questions/55107692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AngularJS: Ng:init - how to assign ng:model? I have ng:repeat, created by json (methods), inside it creates a series of radio buttons that are characterized by iteration (method). Below, I need to create a variable that will be based on method selected radio button, for use in the future. I will prepare the template...
{ "language": "en", "url": "https://stackoverflow.com/questions/36187635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What errors can WebSocket emit? Is there a list of all possible error events a js websocket client can emit? Are the errors spec'ed or are they implementation dependent? webSocket.on('error', (event) => ...) // What can event be? A: here is a list of Websocket errors codes that you might receive. websocket-close-c...
{ "language": "en", "url": "https://stackoverflow.com/questions/56075080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ORA-00060: Deadlock Trace file query found but can we get its parameter values As this ORA-00060 is quite famous and I too have analyzed it in past and have solved a few of them in past. In my case I have ensured there is no common update from multiple session, still the error was occurring, and for such solutions I...
{ "language": "en", "url": "https://stackoverflow.com/questions/70678272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to rotate AVPlayerViewController when fullscreen The app I am working on has UIInterfaceOrientationPortrait set as UISupportedInterfaceOrientations. I create an AV player like so: let playerVC = AVPlayerViewController() // Some AVPlayer input playerVC.player = player presentableViewController?.present(playerV...
{ "language": "en", "url": "https://stackoverflow.com/questions/68543846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get Rectangle of Image JPG and generate thumbnail in rectangle I try explain: I have a JPG image (img A). This A.jpg has contents -colors, it's a picture of persons- and a one more little white rectangle (color white; the head of person is a white rectangle). I need get the position of rectangle in A.jpg. Then, I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/3525728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Perform optimization with F# and Accord.net I'm using F# with Accord.NET, and I'm trying to perform an optimization using the Nelder-Mead algorithm. After a week of attempts, trying to follow the examples from website, I still can't perform the operation. I didn't find the way to write the expression for optimize th...
{ "language": "en", "url": "https://stackoverflow.com/questions/38248229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Socket.IO Client How to Connect? I was following the second example here: https://github.com/socketio/socket.io-client and trying to connect to a website that uses websockets, using socket.io-client.js in node. My code is as follows: var socket = require('socket.io-client')('ws://ws.website.com/socket.io/?EIO=3&tran...
{ "language": "en", "url": "https://stackoverflow.com/questions/41319028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Loading a new window from local files and accessing it's contents I am setting up a local webpage which shows videos in a HTML5 video tag. I just want to be able to do database search from a PHP request and show the results from which I can click on and show the video I want. The problem I have is that hte videos lo...
{ "language": "en", "url": "https://stackoverflow.com/questions/55351033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In GreenDao, build a join query with OR instead of AND I generated an SQLite DB with GreenDao v2.1.0. Here is its diagram (a tiny piece of it) A CONTACT can have many phone numbers. I want to make a search query : list all contacts whose GIVEN_NAME or FAMILY_NAME or PHONE.NUMBER contains a specific word. For example...
{ "language": "en", "url": "https://stackoverflow.com/questions/35043891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Evenly Distribute Players between 2 teams in Excel I have a group of players, 915 in total, each with different engagement scores that I am trying to break out into two evenly distributed groups based on their engagement scores. I tried using Solver in excel to set contstraints, indices etc, but unfortunately Solver...
{ "language": "en", "url": "https://stackoverflow.com/questions/62000127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I create a nested list from a list of ages? I am downloading tables of data in csv format from an online model. The data includes a column for age. My program works fine when all the data in the column has the one age, but now I am downloading data for a large range of ages so that I might have 400 rows of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58891086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to have vertical scrolling in Webviews that are inside a Scrollview? I have a Webview that is embedded inside a scrollview. The Webview itself has areas that are vertical scrollable. Now if I try to scroll inside the webview, the scrollview intercepts the touchevent and scrolls the whole webview instead that on...
{ "language": "en", "url": "https://stackoverflow.com/questions/11138788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does Laravel's rollback transaction support polymorphic relations? I've got these polymorphic relations: staff: id - integer name - string orders: id - integer price - integer photos: id - integer path - string imageable_id - integer imageable_type - string And in a controller: public function example() { \...
{ "language": "en", "url": "https://stackoverflow.com/questions/38562296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: PHP values that come before negative and after numbers That probably doesn't make a ton of sense. I want to know if there are any values that you could put in an array and sort it and it would come before all negative entries or after all positive entries. $keys = array('m1' => 1, -500 => 1, 0 => 1, 1000 => 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/15092541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Check if login already added in User Defined Database Role I am working on a script to add a Login to a user-defined role, where it will take RoleName and Login as input parameters. Checking if already exist before adding, but the following check is returning NULL. USE [MYDatabase]; DECLARE @AddUser NVARCHAR(100) = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39763596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: align dotted circle and botted Line equally in dart Need to align the dotted circle and dotted line like the image shown below. Tried aligning in a row but it somehow merged with a row and it's not displaying exactly like the image. The first line is aligned well but not below the other ones. Here is the code for di...
{ "language": "en", "url": "https://stackoverflow.com/questions/73543455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }