text
stringlengths
15
59.8k
meta
dict
Q: Fixed container positioned on top of the body's scroll We are experencing Fixed container positioned on top of the body's scroll ( even with: box-sizing: border-box;), with those styles: display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: nowrap; flex-wrap: nowrap; z-index: 100; width: 100%; he...
{ "language": "en", "url": "https://stackoverflow.com/questions/52813451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to draw very specific annular sectors using visual basic .NET 2 This question furthers a previous question. In that question valter provided me with a very good answer that used two lines of code to perform all the math. I'm hoping he would like to try his hand at this problem also. Even though it looks similar ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25886948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RegisterClientScriptBlock within AJAX method call I am trying to RegisterClientScriptBlock in a method that is only called via an AJAX call. It doesn't appear to actually register the script on the page and I'm guessing this is because it's not actually reloading the entire page. Is there any way to register javas...
{ "language": "en", "url": "https://stackoverflow.com/questions/297081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Passing model property expression to view I want to have a way of getting a view to focus on a particular model property from a controller in a generic way. What i have so far is: Controller: // To become an extension/base class method private void FocusOnField<TModel, TProperty>(Expression<Func<TModel, TProperty>>...
{ "language": "en", "url": "https://stackoverflow.com/questions/11450774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Regex removing anything that is not a 14-digit number followed with space I'm trying to invert this expression: ([0-9]{14} ), so all 14 digit numbers followed by a space. I looked everywhere, and it seems that the best way should be using negative lookahead. But when I try apply q(?!u) to my case >> (?!([0-9]{14} )...
{ "language": "en", "url": "https://stackoverflow.com/questions/36696455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: semaphore/multiple pool locks in asyncio for 1 proxy - aiohttp I have 5,00,000 urls. and want to get response of each asynchronously. import aiohttp import asyncio @asyncio.coroutine def worker(url): response = yield from aiohttp.request('GET', url, connector=aiohttp.TCPConnector(share_cookies=True, verify_...
{ "language": "en", "url": "https://stackoverflow.com/questions/28406124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL Server Stress Test Tools? I am looking for a stress tool for SQL Server. I've seen a lot of suggestions on Google. But nothing of what I really need. I am really looking for a tool that could run a list of stored procedures in parallel to see how much contention on resources. The collect and reporting feature is...
{ "language": "en", "url": "https://stackoverflow.com/questions/3391002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I solve multicollinearity? I constructed a linear model and tried to calculate the VIF of the variables but I get the following error: vif(lm_model3101) Error in vif.default(lm_model3101) : there are aliased coefficients in the model To check which numeric variables are corelated, i calculated the corr...
{ "language": "en", "url": "https://stackoverflow.com/questions/71690598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Live changes Wordpress I'm looking for something like npm live-server, that refreshes my webbrowser every time I make changes to a document. Npm live-server doesn't work with PHP files. Currently using XAMPP Apache/MySQL to run WP locally. Any ideas? A: For the one's that are interested: here is the final solution....
{ "language": "en", "url": "https://stackoverflow.com/questions/63068397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access macOS Photo Library using Electron I am trying to write an Electron application that lets users select photos from their photo library on macOS. My assumption is that the only way to access the photos without exporting them is by going into ~/Pictures/Photos Library.photoslibrary. However, when passing the fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/62944967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Only create Perl hash key/value pair if value is defined I wish to create a key/value pair in a hash only if I have a defined value to assign. I am currently doing this: $hash{key1} = $val1 if defined $val1; which is OK - but can become annoying when $val1 is complicated. Is there a way that I can neatly get the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/16849830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get an attribute value with lxml on html I have some HTML that I want to parse with lxml using Python. There are a number of elements on the page that each represent a poster. I want to grab each poster's ID, so that I can then scrape a piece of information off the poster's page. Currently the poster's id is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47766150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you run a portion of a python script that requires superuser privileges, while the rest does not? I'm trying to make a script that will detect the color of a pixel, and have a keybind (say F5) to trigger this action. The pixel scan portion can be done with something like this (put together from what I've foun...
{ "language": "en", "url": "https://stackoverflow.com/questions/75266027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dynamic update for different colums using between two date like calendar date CREATE PROCEDURE [dbo].[CalendarMonthly] ( @FROMDATE VARCHAR(25) ) AS BEGIN SET NOCOUNT ON DECLARE @ADate DATETIME DECLARE @MonthCount INT SET @ADate = @FROMDATE SET @MonthCount = (SELECT DAY(EOMONTH(@ADate))) DECLARE @tmpTable TAB...
{ "language": "en", "url": "https://stackoverflow.com/questions/44366906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to copy parts of string in another strings? I want to send multi attach in email, but have problem with those. When I put all files what want to send in one string always get error, but when put one file in one attach inside of loop thing work. Now I have problem with copying one part of string in to another str...
{ "language": "en", "url": "https://stackoverflow.com/questions/10810972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MS-Access 2007: Query for names that have two or more different values in another field Hello & thank you in advance. I have an access db that has the following information about mammals we captured. Each capture has a unique ID, which is the capture table's primary key: "capture_id". The mammals (depending on speci...
{ "language": "en", "url": "https://stackoverflow.com/questions/35932043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Array range I find my self using _.range a lot, and sometimes I don't want to drag with me lodash just for that reason. What is the best way to do this without lodash? My best solution is: export function range(n) { return new Array(n).fill(0).map((a, i) => i); } A: return Array.from({length...
{ "language": "en", "url": "https://stackoverflow.com/questions/48892536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disposing Camera before initialization is ready In WP7.1, If I dispose camera before it is ready, I got the following exception: ExceptionObject {"Initialization canceled by .Dispose().\r\nObject name: 'Camera'."} System.Exception {System.ObjectDisposedException} How camera should be Disposed in the case I need ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10617831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a way to specify Character Spacing in SSRS/BIDS? I am trying to create a SSRS report. The report is essentially as certificate which will be printed on Custom Stationary (Some arty paper like certificates). The system we are migrating from used Word mail merge to specify the Certificate holder's name, certi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7567174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the meaning of the : in Swift function signatures and why is there no comma when it seems there should be one? Here's an example of what I'm talking about: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1410287-insert The insert function is shown as insert(_:at:) When it's actually ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54537403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What should I install to query SQL Server DB from Powershell - could not load file or assembly Microsoft.SqlServer.Types? On my computer I have only SQL Server Management Studio installed. I use runas.exe /netonly /user:myDomain\myUser powershell.exe to open Powershell console (I need to authenticate to SQL Server u...
{ "language": "en", "url": "https://stackoverflow.com/questions/48863821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery .outerHeight() after .append() Im trying to run .outerHeight() function on element that i just appended to html via .append() $("#someid").append("<ul id='#otherid'><li>something</li></ul>"); var h = $("#otherid").outerHeight(); After this "h" has wrong value. I think that it is caused by "append" not applyi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7598781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamically add, compile and link ng-class attribute from another directive In order give feedback on the validity in my input forms I'm using ng-class. These statements will look something like: <div ng-class="{ 'has-error': !frmSomeName.vcHeader.$valid && frmSomeName.vcHeader.$dirty }"> <input type="text" name...
{ "language": "en", "url": "https://stackoverflow.com/questions/33759883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MATLAB non-linear optimization data set I am trying to write a non-linear optimization program using fmincon. I want MATLAB to read through a data set and compare those values to the constraints. (It is the size of an electrical generator based on electric and heat demand over a one month period). How do I start thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/5929388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to change the value of an int, and recover and use the new value? While attempting at creating some movement for a ball in a pong game, I have run into a most annoying problem. The value of the x and y coordinate do not want to change (for lack of better words). Maybe this is due to the immutable nature of strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/15992746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Count the total number of times the sale was consecutive for a product - Sybase IQ I am using Sybase IQ, and from my data set, I need to count the total number of times the sale was consecutively 10 items. Please review the data set. Product Date Sale Jams 2020-01-05 10 Jams 2020-01-06 10 Jams 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/59762887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xdebug 3 docker mac PhpStorm broken pipe I see There was a problem sending 179 bytes on socket 11: Broken pipe. in the xdebug.log and cannot see why. Have gone around in circles for days trying all sorts of stuff. What am I doing wrong? * *Xdebug 3.0.3, *PhpStorm 2020.3.3, *Mac OS X latest, *Safari browser [17...
{ "language": "en", "url": "https://stackoverflow.com/questions/66774146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How i can create a Typescript interface that can take also a string? I need to create an interface that permit to have an array of objects and strings. For example: const array = [ '', {id: '', labels: ['']} ] I've tried with: export interface Obj{ id: string; label: string[]; } export interface Objs extends...
{ "language": "en", "url": "https://stackoverflow.com/questions/61677779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove trailing slash in DNN I have an angular app on a page loaded in DotNetNuke. As you know DNN puts a trailing slash at the end of URL like localhost/MyPage/, while I'm using Angular routing with html5mode(false) when opening the page the URL becomes like localhost/MyPage/#/ this cause a 404 Error for the templa...
{ "language": "en", "url": "https://stackoverflow.com/questions/45125283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Django datetime not validating right I'm using the HTML5 datetime-local input type to try and get some datetime data into my database. The ModelForm class Meta: looks like the following: class Meta: model = ScheduleEntry fields = ['calendar', 'title', 'start', 'end', 'assets', 'users'] widgets = { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53180600", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: from development to production - uploading a webpage First of all, I will excuse myself for possibly making vague questions. I am a newby freelancer webdeveloper, and I recently created a webapplication which works fine on my own computer, running it on localhost. More recently, using A2Hosting, i bought a domain an...
{ "language": "en", "url": "https://stackoverflow.com/questions/48627268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to use np.where while reading multiple columns I'm trying to create a new column called condition where it reads three different columns and fill it's rows based on given conditions. the dataset looks like this: print(df) IgG NC1 PCR 0 Neg Pos not_detec 1 Neg Neg not_detec 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61440568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using regex how do I stop identifiers matching strings Let's say I have this "code" I want to lex. var text = 'hello' Here's my regex. * *String: ([a-z\s]+) *Identifier: [a-z]+ Now when I put my code into regexr.com and use the identifier regex, it matches the string as an identifier, how would I stop it from...
{ "language": "en", "url": "https://stackoverflow.com/questions/50653916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Friendly URLs remain with the old portion of the URL I started to use friendly URL but I have two problems. I have a link pointing to www.mywebsite.com/articles.php/321312/some-text-here When I click on this link, on the next page all my links remains with a portion of the url. For example, the clickable logo image ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57807439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Warning: Each child in an array or iterator should have a unique "key" prop G'Day. I want to iterate over a bunch of JSON objects and turn them into React Elements. The objects look like this "fields": [ { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47322401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error while updating SAP backend data using OData and SAP Gateway services I am trying to update SAP backend using OData and SAP Gateway services. while executing it throws an error and doesn't update data in backend. I am trying to update 'accounts' data in SAP CRM backend. The error message contains this respons...
{ "language": "en", "url": "https://stackoverflow.com/questions/10370749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding a Resource to a View Model How do you bind data from the view model into an object in the resources of the user control? Here is a very abstract example: <UserControl ... xmlns:local="clr-namespace:My.Local.Namespace" Name="userControl"> <UserControl.Resources> <local:...
{ "language": "en", "url": "https://stackoverflow.com/questions/5009935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's wrong with my Vigenere Cypher CS50 My code for CS50 pset2 Vigenere cypher is as follows. Please help me find the bug. This code basically does nothing when the key includes the letter 'a'. It says "Floating Point Exception". I don't know what that means. Please go through the code and tell me what the bug is....
{ "language": "en", "url": "https://stackoverflow.com/questions/38233381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SceneKit: How can I position my 3D object from a 2D line obj? Scene: I have a 2 lines which is parallel to each other (on 2D) drawn on a UIImageView using UIBezierPath. Then I added a SceneView over the UIImageview to display my 3D object. Now I need to position my 3d object (which I created using SketchUp [.dae fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/31109244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: My test of whether a MySQL insertion was succesful doesn't work All, I created a table with three fields - an autoincremented ID and 2 fields of data. The 2 fields of data are foreign keys and by mistake I set them to NON NULL. Then I run the following PHP code: $inserted=false; $insertQuery=$dbConnection->prepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/11679093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JS get all URL parameters available for final form page I see a lot of ways and a number of them seem overly complicated. i do plan on appending a program that will use these parameters to test based on the results. But for now, I want a way to get all the URL parameters and post them using a p tag. A: Does this an...
{ "language": "en", "url": "https://stackoverflow.com/questions/72765263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Check new day using Shared preferences I have created an app. I have Put a button in my app. When I click on the button the click time is saved to shared preferences. private void saveClickTime() { String str = new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()); SharedPreferences.Editor local...
{ "language": "en", "url": "https://stackoverflow.com/questions/46537195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Html().replace() : RegExp : $1 and single quote I am faced with two problems. (with jQuery) for (var i=0; i<len; i++) { var e = arr[i], //<- strings re = new RegExp(e,"ig"); target.html( target.html().replace( re, "<span class='rep'>" + e + "</span>" ) );...
{ "language": "en", "url": "https://stackoverflow.com/questions/13239009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Dropdown not populating from MySQL I am trying to populate a dropdown list with PHP from a MySQL database. Right now nothing is populating in my dropdown. I have made sure I have the correct database name, server name, username, and password. Here is my PHP file queryfunction.php: <?php function connect(){ $serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/35859958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom form input component I want to create a custom form input component, that will work reactively. I created a component (TS) import { Component, forwardRef, Input, OnInit } from "@angular/core"; import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms"; @Component({ selector: "app-new-input", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60845833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL Server ALTER field NOT NULL takes forever I want to alter a field from a table which has about 4 million records. I ensured that all of these fields values are NOT NULL and want to ALTER this field to NOT NULL ALTER TABLE dbo.MyTable ALTER COLUMN myColumn int NOT NULL ... seems to take forever to do this update...
{ "language": "en", "url": "https://stackoverflow.com/questions/1153673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Where can I find the GCP cloud service ID's that is required to list down the sku's for each cloud service? I'm planning to create a table in bigquery which would categorize the SKU's of each cloud services in billing. Basically I'd like to replicate the strategy suggested in one of the presentation at last Cloud Ne...
{ "language": "en", "url": "https://stackoverflow.com/questions/58160449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Push was rejected due to missing or corrupt local objects I have a lfs local repo with its remote bitbucket. I work with Unity and Visual studio and my routine is assisted commit with visual studio. My current commits are not allowed to be push-ed. Git throws missing files errors but when I follow the path the file...
{ "language": "en", "url": "https://stackoverflow.com/questions/69867730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do you duplicate a file in XCode? Anyone know a good solution? So far I have not found a better way than using File>New file and then copying contents from old file to new. You can probably duplicate in Finder and re-import but that's almost same amount of work: switching to finder, duplicate, import new files. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1093287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Python: Log pixel-intensity values from a video-file I read in a video as a grayscale. I mark a circular contour on each frame of the video and try to record the intensity of each pixel on this contour: frameCount += 1 currentTimestamp = timestamp + frameCount/fps file = open("myRecord.txt", "a+") #a+ t...
{ "language": "en", "url": "https://stackoverflow.com/questions/56377798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a maximum Time Stamp Validity Duration when a client is set to a future datetime vs the server We set our Security on our custom Binding as below: var lSecurity = lCustomBinding.Elements.Find<TransportSecurityBindingElement>(); lSecurity.LocalClientSettings.DetectReplays = false; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10515093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In a makefile how do I make a variable within a rule become global? I have a makefile with separate rules that set a variable of the same name. How do I set this variable to become global from within the rule so that I can use it later. rule1: test_var=/path/to/folder/ rule2: test_var=/path/to/another/folder/ $(in...
{ "language": "en", "url": "https://stackoverflow.com/questions/54131046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run sentiment So, that I can get result for every file separately I am working on Sentiment Analysis. I have 542 text files and have to get sentiment scores for each of the files separately But in 1 Loop. How can I add for loop that prints results separately? Here is the code: path = 'C:/Users/Hamza/OneDrive/...
{ "language": "en", "url": "https://stackoverflow.com/questions/71482530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I let my list return the list within a specific range So I'm trying to move every '1' in list board to the bottom list of lists. Here is what I mean, If my input in this, board = [[" "," ","1"," "], [" "," ","1"," "], ["1","1"," "," "], ["1"," "," ","1"]] my output should return [...
{ "language": "en", "url": "https://stackoverflow.com/questions/69961094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the advantage of malloc? What is the advantage of allocating a memory for some data. Instead we could use an array of them. Like int *lis; lis = (int*) malloc ( sizeof( int ) * n ); /* Initialize LIS values for all indexes */ for ( i = 0; i < n; i++ ) lis[i] = 1; we could have used an ordinary array. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/18702531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Restful Webservice method for get request I am trying to write a web service method for get request and its return type is ResponseEntity. But when i trying to run this from Postman then its gives response body as Not acceptable. following is the result and code of my method. <html> <head> <title>Error</...
{ "language": "en", "url": "https://stackoverflow.com/questions/46804331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: RestSharp double-nested elements not being Deserialized So I am attempting to use the default XmlDeserializer from RestSharp to deserialize the following XML structure. For the life of me, I am unable to get the 'Picks' to be deserialized at all. <PlayerList> <Player> <PlayerName>Name</PlayerName> <P...
{ "language": "en", "url": "https://stackoverflow.com/questions/12200352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a few div elements responsive I'm having trouble with making some of my div elements responsive. The image with the magnifying glass is refusing to resize when the window is smaller, for example on a ipad. I have tried other methods of resizing but resulting in failure. Website link: http://onlinestaff....
{ "language": "en", "url": "https://stackoverflow.com/questions/46747781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What really lambda looks like? (not a linq lambda expression) I read this thread in converting a lambda to linq. And I am thinking about what slawekwin said in comment. this already is linq (which is using lambda expressions) Can someone please give me an example of what really lambda looks like?. Not in Linq Lambda...
{ "language": "en", "url": "https://stackoverflow.com/questions/39825021", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reducing size of an array (by creating a new one) - how does arrayList do it? In one of my classes, I have a method like so: public void setArray(int size){ myArray = new int[size] //myArray is declared already } Now, if I call this and pass in, say, 500 like so: setArray(500); And then, later on in my app, I n...
{ "language": "en", "url": "https://stackoverflow.com/questions/18063706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NoSuchPropertyException in signed build I am animating a Map Marker via the following code: final Property<Marker, LatLng> property = Property.of(Marker.class, LatLng.class, "position"); final ObjectAnimator animator = ObjectAnimator.ofObject(otherMarker, property, typeEvaluator, toLatLng); This wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/27326218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I check if any file in an item list exist using msbuild? I would like to run a task if any file in an item list is missing. How do I do that? My current script has a list of "source" files @(MyComFiles) that I translate another list of "destination" files @(MyInteropLibs), using the following task: <CombinePa...
{ "language": "en", "url": "https://stackoverflow.com/questions/802070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Django function based view allow is_active user whereas ClassBasedView does not allow is_active user I have 2 views. One is function based and the other is class based. When I call the function based view with an is_active user, django does not throw any errors but when I call the class based view it returns 403 err...
{ "language": "en", "url": "https://stackoverflow.com/questions/60510459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reducer not always deleting the correct item My delete callback is sending the correct id but I tested out the reducer with a few console logs and it's not working correctly.So I have a list of components in a menu that I can add to the "board". I notice that if I add only notes for example, it will delete the last...
{ "language": "en", "url": "https://stackoverflow.com/questions/68942377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: expand div onClick Hello i am trying to make an expandable div when i'm clicking on a button: and i want to make the animation with steps, the first step is clicking on the button, the second one the div width expand, and the step 3 the div height expand for get the full page. and the text inside the div have to cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/30402207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Count numbers and display a alert dialog I'm trying to create a timer here How do I create a jscript to count from 1 to 60 and to use alert when I've reached 30 using for loop and while loop method A: what about this for( var i = 1;i<=60;i++) { if(i == 30){ alert("value is:"+i); } } A: both ans...
{ "language": "en", "url": "https://stackoverflow.com/questions/42406433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: ValueError: check_hostname requires server_hostname I was going to install pandas and epanettools on my computer using the code shown below with python 3.8.5 and I received one Error exception. Code: pip install epanettools pip install pandas Actually, I could install epanettools on my old computer and I bought a n...
{ "language": "en", "url": "https://stackoverflow.com/questions/67297278", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Unusual behavior with std::vector I've written a rather complicated set of classes to deal with iterating over a stream (string, file or memory). These are NOT std streams nor are they related. Anyway, due to iterating over these buffers and performing actions depending on the buffer, I want to be able to see the cu...
{ "language": "en", "url": "https://stackoverflow.com/questions/17102840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: DocuSign API return URL that transfers control back from WebView to React-Native app after redirection I am using React-Native to build an Android application. I am also using the DocuSign Java API. My workflow submits a RecipientViewRequest and receives a URL that the android app must view within a WebView to perf...
{ "language": "en", "url": "https://stackoverflow.com/questions/36216486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Offset commit failed on partition Kafka consumer continues to print error messages I built a cluster (kafka version 2.3.0) using 5 machines kafka, which has a partition with a partition of 0 and a data copy of 3. When I consume the kafka-clients api, I continue to output exceptions: Offset commit failed on partition...
{ "language": "en", "url": "https://stackoverflow.com/questions/58678704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: spritenode child/parent I have a skspritenode(ship) that is the parent node then it has a child skspritenode(gun) that rotates freely. The gun has a child called skspritenode(bullet). The bullet shoots from the gun in the direction the gun is facing and that is perfct. The problem is when the ship moves or if the tu...
{ "language": "en", "url": "https://stackoverflow.com/questions/20428634", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I write BLOBs in android FAST? I have an app that downloads many images that are about 50k to 100k in size. The full database can be anywhere from 50MB to 500MB. We are currently using sqlite, but it has slow inserts. We did a test writing files and that was slow as well. It seems to be taking about 300 to 8...
{ "language": "en", "url": "https://stackoverflow.com/questions/32142676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how to represent web form variables in a form when submitted using Spring webmvc? I've been using using @ModelAttribute to "cast" my form variables into a class (which represents a table in the database) and this has worked quite nicely. But I'm working on another form and I need to have a hidden field in the form t...
{ "language": "en", "url": "https://stackoverflow.com/questions/14744113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: acessing network shared folder with a username and password string in vb.net i am using the following code to read the details from a network folder which is restricted for only one user shell("net use q: \\serveryname\foldername /user:admin pwrd", AppWinStyle.Hide, True, 10000) Process.Start(path) shell...
{ "language": "en", "url": "https://stackoverflow.com/questions/2727447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to build project with CoreData classes I am trying to migrate my sandpit code into my main project but for some reason I am getting the following strange error when trying to compile syntax error before 'NSManagedObjectModel' At first I thought this was because coredata wasnt in the prefix.pch file but I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/2159482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I am fetching data from api in react using useeffect hook.But its getting called multiple times.But i need to call it once I am fetching data from api in react using useeffect hook.But its getting called multiple times.But i need to call it once.Can anyone tell how to achieve that? I tried using useeffect hook cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/74374617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WooCommerce bug iPhone 7 plus iOS 10.3.* I am developing a website (WordPress + WooCommerce). When I tested the website on mobile (iPhone7+ with iOS 10.3), I found two bugs. * *custom loading symbol can't work (use svg with animation). *when add a item into cart. It show 2 items and can't add more items into ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/44283176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding a datasource to Codesmith I am trying to add a DataSource to Codesmith 7.1.0 rev 15317 This is a new install on a Windows 10 box. I keep getting the error Test Failed. Arithmetic operation resulted in an overflow. I have done this many times on my old win8 box. The provider I am using is SqlSchemaProvid...
{ "language": "en", "url": "https://stackoverflow.com/questions/34191825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP mailer not validating after sending a second email This is an updated msg's with a working code for sending two different emails using php mailer. It also has working validation server site. You need to create you own mail class or use the normal one. Hope someone else can use it two! Thank you!! <?php require"...
{ "language": "en", "url": "https://stackoverflow.com/questions/21243892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android SQLite take the first element from database column I am working on a project and created a database with SQLite. In my database I have just two columns, column names are r_id and m_id. I want to take the first element of the r_id and assign it in to a string. The elements of the r_id column is like 1, 2, 3.....
{ "language": "en", "url": "https://stackoverflow.com/questions/66785116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Add field to json in Postman I recieve json object as a response from a service (request 1). I need to add extra field to it and to send it again (lets' call it "request 2"). I have applied this code to responseBody of "request 1": var jsonData=JSON.parse(responseBody); jsonData.back_uri= "http:\/\/192.168.2.3\/newp...
{ "language": "en", "url": "https://stackoverflow.com/questions/52586352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how can i remove the path from zip file I have a zip file that has a path. When I unzip the file and put it in my target folder, it then creates folders of the path. public boolean doZip(String fileName, String zipfilename) { boolean zipStatus = true; try { String[] filesToZipP = new String[1]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14832522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moving Data from Matrix A to Matrix B in R I want to cut/move/replace some data (to be precise 2500) from Matrix A to Matrix B in R. for example Move cell(i,j) from matrix A to cell(i,j) in matrix B. both i and j have some fixed value(50 to be precise) and replace that cell(i,j) in matrix A with "0". Since I am newt...
{ "language": "en", "url": "https://stackoverflow.com/questions/29017575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Visual Studio - Outputting SQL table data to Datagridview Apologies if this has been covered. The examples I seemed to find were more complicated than I need it to be I'm trying to output the entire contents of an SQL table to a DatagridView when a button "Display All Records" is clicked I'm having a bit of troub...
{ "language": "en", "url": "https://stackoverflow.com/questions/35917841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error compiling project with NodeJs and Gulp I'm running the mvn clean install command to compile my project which is made with java in the backend and angular in the front. I do this on Linux normally but I'm configuring the environment on windows and I'm getting errors Error [10:52:34] Starting '<anonymous>'... in...
{ "language": "en", "url": "https://stackoverflow.com/questions/74744279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create Time Based User Sessions in R I have a dataset which consists of three columns: user, action and time which is a log for user actions. the data looks like this: user action time 1: 618663 34 1407160424 2: 617608 33 1407160425 3: 89514 34 1407160425 4: 71160 33 14071...
{ "language": "en", "url": "https://stackoverflow.com/questions/35957474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: expo run:android --variant release Running: expo run:android --variant release. Getting the following error: Package "expo-camera" does not contain a valid config plugin. Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin. Unexpected token 'export'. In my app.json, I added the following:...
{ "language": "en", "url": "https://stackoverflow.com/questions/70707345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to insert only digits in a string I have this code that should check if the user inputs 3 digits into a string variable: std::string digits; bool error = false; do { error = false; std::cout << "Type 3 digits. (0 to 9)\n"; std::cin >> digits; if (digits.size() != 3) { std::cout << "\nE...
{ "language": "en", "url": "https://stackoverflow.com/questions/67676272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: blob in data module I am using the data module in drupal 7 and i created a view which shows my table. * *But I have a blob in my table and this is filling my page with content.Is there any way that I can get the blob to display as a link and the file must be downloaded when clicked. *Also is it possible for the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9856263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Create Excel Formula to Get pass or fail in final level exam? There are 6 Subjects, (A,B,C,D,E,F are columns) A- Maths B- Bio Science C- Physics D -Chemistry E -English F -Computer Science all student's subject wise Passing score is 50, Maths and Bio and physics Pass is compulsory and also from remain 3 subj...
{ "language": "en", "url": "https://stackoverflow.com/questions/74229971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why PowerShell treats slash in DateTime format string as dot? PS C:\> (Get-Date).ToString("MM/dd/yyyy") 11.12.2016 PS C:\> [DateTime]::ParseExact('10/14/2016', 'MM/dd/yyyy', $null) Exception calling "ParseExact" with "3" argument(s): "String was not recognized as a valid DateTime."At line:1 char:1 + [DateTime]::Par...
{ "language": "en", "url": "https://stackoverflow.com/questions/40566528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: float fmodf(float_x, float_y) function, math.h, c++ hello I was hoping someone could help me with this. I am using the float fmodf(float_x, float_y) function from math.h. i am able to code with it properly but I was just wanted to know does anyone know the functions exact code is, so i can understand it better A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12656057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AttributeError: dlsym(RTLD_DEFAULT, Error_GetLastErrorNum): symbol not found I recently downloaded the OSMnx package to work with street networks. However, it always gives me back the error below whenever I try to import the package. I've followed several steps that people from other posts suggested, but nothing cha...
{ "language": "en", "url": "https://stackoverflow.com/questions/68464704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I unmarshall this XACML XML snippet using JAXB? <Policy xmlns="urn:oasis:names:tc:xacml:3.0:core:schema:wd-17" PolicyId="ClientType" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:first-applicable" Version="1.0"> <Target> <AnyOf> <AllOf> <Matc...
{ "language": "en", "url": "https://stackoverflow.com/questions/20605372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Send email from Android application I wanted to know if there is any way we can manipulate the android emulator to use the email clients available on devices to send email from a custom application. Will using third party emulators like the ones available on MANYMO make any difference? Thank you. A: The emulator d...
{ "language": "en", "url": "https://stackoverflow.com/questions/19045711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Jenkins Jmeter Distributed Testing in Cloud Current Setup Master – Local Desktop Slaves – 3 Linux machines in AWS So before starting the performance test I will be starting the master agents from the slave machines by logging in manually and then start with the performance test. Current Scenario Right now have creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/41286699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PNG truecolor, 8 bit depth, how to read IDAT chunk I have a question regarding a PNG file that I am trying to read (I have attached it in this question) The file size 328750 bytes Width 660 Height 330 Color type - truecolor Bit depth - 24 bits So here's my question. If it's true color, I assume it's RGB, which is 2...
{ "language": "en", "url": "https://stackoverflow.com/questions/39019568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Filter Fabricjs to remove the red-eye effect or change part of the image object I'm doing a red-eye filter for fabricjs: (function(global) { 'use strict'; var filters = fabric.Image.filters, createClass = fabric.util.createClass; filters.NoRedEyes = createClass(filters.BaseFilter...
{ "language": "en", "url": "https://stackoverflow.com/questions/48649760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot access AppDelegate while testing Xcode project func testExample() { let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate // some code ... } The above function always crash and gives this error: Could not cast value of type 'MyAppName.AppDelegate' (0x10dc09e80) to 'MyAppNameTe...
{ "language": "en", "url": "https://stackoverflow.com/questions/31179382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Testing a Meteor JS API endpoint I've recently created a small application using Meteor JS. The application handles user input via a series of forms and stores the data in MongoDB. One of the requirements for this projects was to developer an API with around 8 end-points. When requested, an end-point returns a JSON...
{ "language": "en", "url": "https://stackoverflow.com/questions/31921273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }