text
stringlengths
15
59.8k
meta
dict
Q: how inadvertently adding UTF8 format while copy paste? I have a string with non uft8 format $str = Processing’s; following json_encode works fine because i'm copying and pasting code to my editor $str = Processing’s; echo json_encode($str); output: Processing\u2019s" if i retrive the same string Processing’s from...
{ "language": "en", "url": "https://stackoverflow.com/questions/32883088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Check if users are a member of an AD group - Powershell i have a txt file with a list of usernames and I want to check if these users are a member of a specific AD-group. If they aren't a member of this group, their username has to be written in a csv file. So the output should be a csv file with all usernames who a...
{ "language": "en", "url": "https://stackoverflow.com/questions/72011628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Null when sharing data between Activity and Fragment I got a problem that I can't share a RxBleClient between MainActivity and Fragments. I pass a instance of RxBleClient to MyViewModel, and while trying to receive from ViewModel in Fragment it is just a Null. Fragment is a part of ViewPager2. Here is how I did this...
{ "language": "en", "url": "https://stackoverflow.com/questions/66808886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use config.py file in other directories of my poject My project's structure is: My_Project: ├── scripts │ ├── script.py ├── _main_config │ ├── config.py I'm trying to call from script.py file the config.py file in main_config. I'm working with sagemaker studio so currently my project is not a module. First I ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/74420794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mysql query staying in 'SENDING DATA' state for long time when using LEFT JOIN I have query which is going in the SENDING DATA state for very long period of time. Can someone please help me with this : below are details Mysql Query: select a.msgId,a.senderId,a.destination,a.inTime,a.status as InStatus,b.status as S...
{ "language": "en", "url": "https://stackoverflow.com/questions/3510944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the preferred way to undo a `svn switch` with svn 1.7? Switching below the root of a project, svn switches that subdirectory only. Prior svn 1.7 one could simply delete that directory and run an update. But now with svn 1.7, it doesn't store svn-information per directory. How can I undo the effect of the sw...
{ "language": "en", "url": "https://stackoverflow.com/questions/11900427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: A simple model in Winbugs but it says "This chain contains uninitialized variables" I have some simple time to event data, no covariates. I was trying to fit a Weibull distribution to it. So I have the following code. Everything looks good until I load my initials. It says "this chain contains uninitialized variable...
{ "language": "en", "url": "https://stackoverflow.com/questions/38665210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Solving Matrix elements by using while iteration in Matlab I have a known 5X6 sized M matrix, and a 6x1 sized K matrix which its 4 elements unknowns and two knowns. P matrix obtained by multiplication of these two matrices and has different 5 elements all which function of an x variable. Altogether, there are 5 equa...
{ "language": "en", "url": "https://stackoverflow.com/questions/44032023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: truncate git repository keepinng regular snapshots I want to keep track on a 500kb json text that changes its content minutely. I would like to use git, so I can use git pull on another server to download the latest version of that file without the problem, that the file could change during download and I also want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46157791", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculate How Many Overlapping Dates There Are Within Multiple Date Ranges I need to be able to calculate the number of days when someone was taking at least 1 drug from Class A and 1 drug from Class B. One of the biggest issues I am encountering is that prescriptions for the same Drug Class may overlap each other a...
{ "language": "en", "url": "https://stackoverflow.com/questions/68370598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating a completely custom pagination component for tabulator Is there any way with which we can create a custom pagination component for tabulator? I don't want to : * *Add custom controls to the Footer. (Already Checked Footer docs) *Put the pagination element in a custom container. (Already checked with Pagi...
{ "language": "en", "url": "https://stackoverflow.com/questions/68177939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reshape a large matrix with missing values and multiple vars of interest I need to reorganize a large dataset into a specific format for further analysis. Right now the data are in long format, with multiple records through time for each point. I need to reshape the data so that each point has a single record, but i...
{ "language": "en", "url": "https://stackoverflow.com/questions/29376509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Simple way to get Twitter users home feed Does anyone know a good way to, using oAuth, retrieve a users home feed (using PHP or JavaScript)? I've been searching the web (Google, YouTube and the Twitter website), but have not yet found a simple tutorial like developers.facebook.com has. If you know of a good tutoria...
{ "language": "en", "url": "https://stackoverflow.com/questions/16132609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does MrBean module still automatically support dynamically implementing simple interfaces when deserializing? When converting from Jersey1 client to Jersey2 client (with jackson 2.8.6), I now get a mapping exception when trying to read my interface WebTarget resource = helper.resource(path); if(schedule != null) res...
{ "language": "en", "url": "https://stackoverflow.com/questions/48575742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: scilab sending java main-class error and doesn't wanna work scilab was working just fine 2 weeks ago but now after i updated software ubuntu if i try to open it nothing happens and if i try to open it using Terminal i get this error WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflec...
{ "language": "en", "url": "https://stackoverflow.com/questions/61426014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete old versions of tables in Delta Lake As I understand from documentation, delta lake allows to roll back or "time travel", as they say, to some specific version of a table. But how can I make sure that deleting data will actually delete it without creating a new version? A: This can be implemented usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/58184611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get PowerShell to keep a command window open? When I run a program on PowerShell it opens a new window and before I can see the output, the window closes. How do I make it so PowerShell keeps this window open? A: The OP seemed satisfied with the answer, but it doesn't keep the new window open after executing...
{ "language": "en", "url": "https://stackoverflow.com/questions/9244280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: how to play you tube embeded code in android application? Hi all this is my youtube embed code. But I have no idea about this how to play this in android application? Can we play this in webview or device player ? "object width="441" height="353" param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?fs...
{ "language": "en", "url": "https://stackoverflow.com/questions/5813833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to run jQuery before loading page? I have many images on site and some scripts on it. But scripts can run only after loading whole page. How to accelerate this? A: $(document).ready(function() { //code here }); will run a script when the document structure is ready, but before all of the images have loaded....
{ "language": "en", "url": "https://stackoverflow.com/questions/7821813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Kubernetes (AKS) : nginx ingress error 308 Permanent Redirect error. Private nginx Ingress controller Over all description of what I am doing: I am using a private nginx ingress controller in AKS (Azure Kubernetes Service) and setting up Secrets Store CSI Driver to enable NGINX Ingress Controller with TLS using this...
{ "language": "en", "url": "https://stackoverflow.com/questions/72975387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding feature with duplicate ID to Vector source Right now, if I add two features with the same id to a Vector source, it seems like the second one is discarded. Is there anyway to force OpenLayers to replace features with the existing ids? A: var features=layer.getSource().getFeatures(); for(var i=0;i<features.le...
{ "language": "en", "url": "https://stackoverflow.com/questions/35036808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best strategy to update web project from JSF 1.1 to JSF 2.x? We have a large - and quite old - project using JSF 1.1 (specifically the MyFaces implementation) with JSP as view technology. Right now we want to upgrade the used JSF version, view technology and taglibs in use. Migrating from JSF 1.2 to JSF ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43091931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unable to set custom colors inside ExpandableListView I'm an Android newbie. I'm trying to set custom colors inside an ExpandableListView adapter. I have defined my colors in colors.xml, but I'm unable to use them in my adapter. I get an error "The method getResources() is undefined for the type ExpandableListAdapte...
{ "language": "en", "url": "https://stackoverflow.com/questions/17846084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: calculating marginal tax rates I found part of the answer to my problem of calculating marginal taxes using this: income_tax <- function(income, brackets = c(18200, 37000, 80000, 180000, Inf), rates = c(0, .19, .325, .37, .45)) { sum(diff(c(0, pmin(income, brackets))) * rates) } I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/74311623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Docker Couchbase: Cannot connect to port 8091 using curl from within entrypoint script Running docker-machine version 0.5.0, Docker version 1.9.0 on OS X 10.11.1. I've a Couchbase image of my own (not the official one). From inside the entrypoint script, I'm running some curl commands to configure the Couchbase serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/34131670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to query associations in Linq to Entity framework in .NET Ria Services I have just started with Linq and Linq to Entity Framewok. On top of that with the .NET Ria services. My problem is that I have 2 tables Folder and Item with a many to many relationsship using a third "connection" table FolderItem like this:...
{ "language": "en", "url": "https://stackoverflow.com/questions/1370239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: HTML::Entities::encode_entities_numeric: Convert hex output to decimal I am using HTML::Entities module to encode some special chars. Here is my sample code: use HTML::Entities qw(encode_entities_numeric); my $str = "some special chars like € ™ © ®"; encode_entities_numeric($str); print $str; Output: &#x20AC; &#x21...
{ "language": "en", "url": "https://stackoverflow.com/questions/34042846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to update a user's friends from facebook on my site? I have an app in Rails and I have it configured so that when a user logs into my app, a list of their facebook friends who have authorized my app is stored in my database so that I can display this info to the user. But does anyone have any best practices for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11712824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upload image using Django I am trying to upload an image using Django and there is no errors. But there is no file or directories inside the media folder.And except image field all other fields are updated in table. Models.py from django.db import models # Create your models here. class Player_Profile(models.Model...
{ "language": "en", "url": "https://stackoverflow.com/questions/18250577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SQL Server stored procedure or function has too many arguments specified, when trying to pass 2 arguments in C# I am trying to execute a stored procedure called getLastFeatureUpdate. I will explain below the problem, step by step: I have created a table in SQL like this: CREATE TABLE testTable ( DayTime INT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64228888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javafx TableView Scroll not working Guys I am trying to make an application involving a tableview. I want my program to run a certain method when the user is scrolling, stopped scrolling, or scrolled to the bottom of the page in the TableView. I was trying to the use the on Scroll, on Scroll Finished in Scene Builde...
{ "language": "en", "url": "https://stackoverflow.com/questions/49215594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error with gtkmm 3 in ubuntu 12.04 i install libgtkmm-3.0-dev in ubuntu 12.04 and i try to learn and write program with c++ and gtkmm 3 i go to this link "http://developer.gnome.org/gtkmm-tutorial/unstable/sec-basics-simple-example.html.en" and try to compile simple example program : #include <gtkmm.h> int main(in...
{ "language": "en", "url": "https://stackoverflow.com/questions/11076059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: is there any conditional annotation in JUnit to mark few test cases to be skipped? As far as I know to skip a test case the simplest thing to do is to remove the @Test annotation, but to do it over a large number of test cases is cumbersome. I was wondering if there is any annotation available in JUnit to turn off f...
{ "language": "en", "url": "https://stackoverflow.com/questions/6096061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Removing an item from a stack, whilst iterating over it, in android Usually, in java, to delete an item from a stack (or set) I would do something along the lines of: Stack<Particle> particles = new Stack<Particle>(); int i = 0, ; while(i < particles.size()) { if(particles.elementAt(i).isAlive()) { i ++;...
{ "language": "en", "url": "https://stackoverflow.com/questions/19041763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: "Event driven" static webpage updates I get that by the very nature of static web pages, their content is, well, "static". In a world though where it's becoming ever more popular to host static pages on a service like AWS S3 and run some cloud computing functionality through something like AWS Lambda, I was wonderin...
{ "language": "en", "url": "https://stackoverflow.com/questions/42589664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I change keypair path in cli to create Solana token? I make a Token on Solana. For my practice, first I create a token in Devnet. But now I create a token in Mainnet Beta . When I work in Devnet, I create a file system wallet ,and now, I create a file system wallet and when I change the path of old keypair path ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72508955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSTextView / NSScrollView - A few questions to help me understand it's proper usage I have created a "notes" field designed to hold multiple paragraphs of text which I would like to store in a custom object. Originally, I just used an NSTextField as a temporary solution, but this does not allow me to scroll or have...
{ "language": "en", "url": "https://stackoverflow.com/questions/10704629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error while importing tensorflow in jupyter environment Its repetitively showing this error while importing tensorflow I am using a separate environment in anaconda with jupyter installed.Can anyone help me solve this error ImportError Traceback (most recent call last) E:\Anaconda2\Lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/64513180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android SQLite database schema from xml file Is it possible to create SQLite database schema using XML db definition. Does OrmLite provide such functionality?
{ "language": "en", "url": "https://stackoverflow.com/questions/16541579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Cancel backButton click in my navigationController I have a custom navigationController : #import "customNavigationController.h" #import "StartViewController.h" #import "EtapeViewController.h" @implementation customNavigationController - (UIViewController *)popViewControllerAnimated:(BOOL)animated { // Accueil...
{ "language": "en", "url": "https://stackoverflow.com/questions/5236640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: using .wrapInner instead of .show() newbie here. I am trying to used jquery wrapInner to show the next choice for the user while trying to hide the original element. Here is my jsfiddle. Once I click endorse radio button it hide the elements in between . The cancel button show the elements back. But clicking endors...
{ "language": "en", "url": "https://stackoverflow.com/questions/17228645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Read XML with attribute names in Scala I have the following XML: <TABLES> <TABLE attrname="Red"> <ROWDATA> <ROW Type="solid" track="0" Unit="0"/> </ROWDATA> </TABLE> <TABLE attrname="Blue"> <ROWDATA> <ROW Type="light" track="0" Unit="0"/> <ROW T...
{ "language": "en", "url": "https://stackoverflow.com/questions/67642800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CSS wordwrapping and overflow not breaking paragraph I have a paragraph next to a heading. Both are display:inline-block but when the page is compressed through a resolution reduction then the entire paragraph falls to the next line. I have tried wordwrapping and overflow but they seem to have no affect. Is there so...
{ "language": "en", "url": "https://stackoverflow.com/questions/70751766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to decode unicode string to unicode value I have a program in Python 2.7 that does the following: * *Ask the user for input (In Non English characters. E.g. Hebrew, English) *Split each character of the sentence in a list. (The input can be a small paragraph, or an email) *Convert the characters to Unicode ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33188609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Random number generator that doesn't use rand()/srand() C functions I'm developing some library in C that can be used by various user applications. The library should be completely "transparent" - a user application can init it and finalize, and it's not supposed to see any change in the running application. The pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/12897992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I have the same height for the color bar? I would like to plot some data, however the color bar is higher than the plot. How can I fix this? import numpy as np import matplotlib.pyplot as plt import scipy.interpolate fig, ax = plt.subplots() # Generate data: x = np.linspace(1, 1, 10) y = np.linspace(1,100, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/26897467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File_get_contents not evaluating to false when file does not exist I'm trying to test an exception in my code. public function testGetFileThrowsException(){ $this->expectException(FileNotFoundException::class); $file = "db.json"; $this->review->getData($file); } The "db.json" file doesn't exist. My goal...
{ "language": "en", "url": "https://stackoverflow.com/questions/44042711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Excel VBA insert row plus copy last row formula Formula below just inserts the row and changing color for certain offset. I need to copy formula from previuos cells H, M, N. Any ideas? Sub button() LastRow = ActiveSheet.Cells(Rows.Count, "D").End(xlUp).Row Range("D" & LastRow + 1).EntireRow.Insert With Range("D" & R...
{ "language": "en", "url": "https://stackoverflow.com/questions/60270416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Apply Function on DataFrame Index What is the best way to apply a function over the index of a Pandas DataFrame? Currently I am using this verbose approach: pd.DataFrame({"Month": df.reset_index().Date.apply(foo)}) where Date is the name of the index and foo is the name of the function that I am applying. A: A lot...
{ "language": "en", "url": "https://stackoverflow.com/questions/20025325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "124" }
Q: Call component from another module not working Module to be shared exports: [ PatientClinicalTabComponent ], which is having a emitter patient id Module to be Imported imports: [ PatientModule ] Html Page <ng-template ngbNavContent> <app-patient-clinical-tab [patientId]='patientId'> </app-patient-clinica...
{ "language": "en", "url": "https://stackoverflow.com/questions/73862344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between overflow: auto and overflow: clip? Simple question, one element has overflow:auto and another element has overflow:clip. What is the difference? .some-div{ overflow: auto; } .another-div{ overflow: clip; } A: From the specification If the computed value of overflow on a block ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72791248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: nHibernate statistics per session I know I can get global statistics for nHibernate using these techniques http://nhibernate.info/blog/2008/10/26/exploring-nhibernate-statistics-part-1-simple-data-fetching.html What I'm after is a way to get statistics for the current session in the current thread. EG, I want to kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/23525341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Regex to remove whitespace in between quotes but not between words inside the quotes? I am programming in Java. I am struggling to transform this: Text0 Text1 " Text2 Text3 Text4 " Text5 Text6 into this: Text0 Text1 "Text2 Text3 Text4" Text5 Text6 I have tried lookaheads and lookbehinds: (?<=\")\s+(\w*\s*\w...
{ "language": "en", "url": "https://stackoverflow.com/questions/47477247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: monaco editor theme can not be changed dynamically I want to update monaco editor theme on the fly, but I found it does not work: this.editorOptions = { ...this.editorOptions, readOnly: true, // this.readOnly, value: this.code, language: 'java', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69181035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Connecting to W3Schools sample WebService via jQuery I am trying to connect W3Schools sample webservice via jQuery Ajax but it's not working for me. Here is the JS: function ConnectToWebService() { var pdata = "Celsius:123"; $.ajax({ type: "POST", dataType: "text", data:pdata, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25182486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .NET desktop app to run on all screen size I have to develop an .NET app using C# that runs on all screen size(8", 10, 14, 22, etc). So whatever is the screen size, the app should work & dispaly properly. How should I start up with this ? With this in mind I believe using WPF would be the best rather than WinForms (...
{ "language": "en", "url": "https://stackoverflow.com/questions/10631374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is PhantomJS one process per browser instance just like Chrome or is it single process? Google Chrome works in a single process per browser instance mode. This is a problem if the number of browser instances goes up to a very large number. I wish to do a lot of testing with PhantomJS with many browser instances and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20160251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Material Design on KitKat 4.4 I am starting to learn Android development. I read on the Google dev site that Material Design is only available on Android 5.0. I wonder why some applications on Android 4.4 have material design. I am using Android 4.4. Any guides or tips give me? Thanks. A: There is a design ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39394729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to compare two URLs in java? Here's a simple problem - given two urls, is there some built-in method, or an Apache library that decides whether they are (logically) equal? For example, these two urls are equal: http://stackoverflow.com http://stackoverflow.com/ A: URL::equals reference URL urlOne = new URL("ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/5402485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Is that correct work of recycleView android 7.0+? I have list of data, and size of data = 7, but when I try to display all the elements, it displays only 6 and in the debug mode in the method onBindViewHolder the last binds position is 5. I thought that was some bugs with my list, so i added 8th element, but it all ...
{ "language": "en", "url": "https://stackoverflow.com/questions/47809274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Disposal of Shared members in a ServicedComponent with ActivationOption.Server For several reasons I need to create a COM+ component in .Net Framework 4. The intent is to host the component in its own process (dllhost.exe), hence the usage of ActivationOption.Server. My component code needs to persist data between o...
{ "language": "en", "url": "https://stackoverflow.com/questions/32659436", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: String Is Empty When Read So basically I call a MYSQL query that grabs a secret key that was generated and saved to the database. Then it sets a string called "ServerCryptKey" to the output of the query which should be "yQnK9xDCxaLIGwzpsKEXeJR2Iz5ZoHnWyLHHikkQv5zbC8B5Sf36ZU9HteHSW5Ov". $SQLGetUsers = $odb -> query("...
{ "language": "en", "url": "https://stackoverflow.com/questions/42449277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular bootstrap button click function I am using a simple form of my template. In form there is already a validation is added i just need to check when user click on button after all required field how is it possible ? <section class="contact-area pb-80" style="margin-top:10%"> <div class="container"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60922131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the most efficient way I can to get a list of locations sorted by proximity given a location? For example, Say I have a database of locations (latitude/longtitude), and a point. How can I grab the top 25 nearest locations from the database of locations? Is there too a library, or a resource I can read up on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7325068", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grouping data using a value from a deep subarray How can I assign first level keys using a column value from the third level of a multidimensional array? My input: $array = [ [ ["ID" => 2, "vendor_id" => "37", "order_id" => 776], ], [ ["ID" => 2, "vendor_id" => "37", "order_id" => 786], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59289636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Sharepoint - Load a form's view based on user I am using a data connection list to load desired views in an InfoPath form on SharePoint. I have a permission list with 2 columns: usernames and control group. My form on the main list loads a specific view based on what the username and group are of the permission li...
{ "language": "en", "url": "https://stackoverflow.com/questions/20505189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I remove space between children in the row? enter image description here I would like to remove space between icon and text. How can I remove space between children in the row?///////// ///////////////////////////////////////////////////////////////////////////////////////// Widget topSection() { return Ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/62502238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to use pillow module in pyscript to open screenshot using an html onclick button? <button id="button" type = "button" class="btn btn-primary" pys-onClick="run_python"> NEXT </button> <py-script> from PIL import Image op = Element("output") def run_python(*args,**kwargs): image = Image.open("home/saikumar...
{ "language": "en", "url": "https://stackoverflow.com/questions/73622503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: KeyEvent.KEYCODE_VOLUME_UP(DOWN) registering double hits I have a simple app where I do the following: public void onClick(View v){ switch(v.getId()) { case R.id.buttonup: onButtonUp(); break; case R.id.buttondown: onButtonDown(); break; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15778008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are the next step after compiling PYBIND11_MODULE in C++ file I was trying to use PYbind 11 to wrap the following small C++ test programme into a Python module, so I can call the test C++ function from python files. My problem is : while the C++ file compiled successfully, I have no clue as to what steps to tak...
{ "language": "en", "url": "https://stackoverflow.com/questions/63054260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: scaling up angular firestore app by associating data to each user I created an app using Angular 7, and crud with firestore. Everything is working fine with one user. Now, I am trying to scale it, and associate data with each logged user. I can't find detailed material on the web. I have users in collection. I want...
{ "language": "en", "url": "https://stackoverflow.com/questions/56013795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Laravel 5 dynamically run migrations so I have created my own blog package in a structure of Packages/Sitemanager/Blog I have a service provider that looks like the following: namespace Sitemanager\Blog; use Illuminate\Support\ServiceProvider as LaravelServiceProvider; class BlogServiceProvider extends LaravelServ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37953783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: logits and labels must be broadcastable, labels and logits dimension mismatch I am new to Tensorflow and making a Multiclass Classifier. My dataset has 6 classes with images 150x150. I am getting error regarding Mismatch of dimensions of Logits and Labels, I have seen other such questions on stackoverflow and my pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/62779735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add dimension to pandas DataFrame I have a pandas DataFrame that includes a pipe-separated string in one of the fields. I've split this into a list inside an apply and added it to the DataFrame. The number and content of the values in the pipe-separated string vary. df = DataFrame([{'wibble': 'a', 'pipestring': 'aa...
{ "language": "en", "url": "https://stackoverflow.com/questions/15390280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MaxJsonLength error in NewtonSoft JsonConvert.SerializeObject I have a ASP.NET project, with some AJAX calling a webmethod, that would return JSON. If the DataSet has about 100 lines, there is no problem. But with 1000 lines, it launch the error: Error during serialization or deserialization using JSON JavaScriptSe...
{ "language": "en", "url": "https://stackoverflow.com/questions/53657225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Multiple web docker containers on a host What is the best practice concerning multiple web containers running on a single host. How would I assign these subdomains subdomain1.mydomain.com to container1 and subdomain2.mydomain.com to container2 when both containers run on host1 with ports 50000 and 50001? How woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/46452578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to process the files in NodeJS sent from client FormData? I use HTML5 FormData to upload files from the client to Node Server. In the node server, I have included multiparty module to process the uploaded, but not sure of how it works. server.js: var parms = urlLib.parse(req.url, true); var form = new multiparty...
{ "language": "en", "url": "https://stackoverflow.com/questions/39064542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: socket.io client not able to connect and receive messages emit by server I am emitting messages from socket.io server running on port 8001 but my socket.io client not able to connect and receive these messages my index.html (client): <script src="https://cdn.socket.io/socket.io-4.0.0.js"></script> <script> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/66648712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OpenVPN Test cases I am looking for the answer: how can I auto disconnect connection of VPN Client after specific idle time or specific connection duration? There are many clients connected to my OpenVPN server but they forgot to disconnect VPN client or they connect for a long time but do nothing. I am using OpenVP...
{ "language": "en", "url": "https://stackoverflow.com/questions/72880702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP site/script map with dependencies Just inherited a large PHP 5.3 site and wondered if there were some sort of crawler or site map tool that would identify the files and their dependencies. A: You can determine PHP version and extension dependencies with PEAR's PHP_CompatInfo package. As for PEAR packages the a...
{ "language": "en", "url": "https://stackoverflow.com/questions/5930074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Difference in the Validation and Evaluation Accuracy I am using pre-trained GoogLeNet and then fine tuned it on my dataset for classifying 11 classes. Validation dataset seems to give the "loss3/top1" 86.5%. But when I am evaluating the performance on my evaluation dataset it gives me 77% accuracy. Whatever changes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37674651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Resolving Promises sequentially angular Actually I need to do execute var1 before var2 in angular Please let me know how I can achieve this. Thanks for your help let var1 = Promise.resolve(database.query(sql)) .then((res) => { someVar = res; return someVar; })) let var2 = Pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/67798079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why check if value of an array is an array? I came across the following code in the book PHP Solutions, 2nd Edition <?php foreach ($_POST as $key => $value) { // assign to temporary variable and strip whitespace if not an array $temp = is_array($value) ? $value : trim($value); // if empty and required, a...
{ "language": "en", "url": "https://stackoverflow.com/questions/12919009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Simple regex redirect not working I'm trying to setup a simple regex redirect. I have the following: ^.+?testurl\.com/folder-path/(\w+?$)/secondfolder Which should then redirect to http://www.testurl.com/folder-path/$1 This works if I don't add the /secondfolder to the end of the regex, but as soon as I add /secon...
{ "language": "en", "url": "https://stackoverflow.com/questions/21022168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to bundle asset error with CDK + Lambda I have this project structure (where control is the name and root of my project): control |_ src |_ control_loader -> this has a function inside called also control_loader |_ utils |_ some_helper_function.py |_ __init__.py |_ __init__.py |_ lib |_ som...
{ "language": "en", "url": "https://stackoverflow.com/questions/72080147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Implementing a scheduler for a backup program for a backup program I am doing I have already finished the GUI. Now I want to do the functional requirements. Each backup can have schedules. There are predefined settings like every Sunday or Monday but the user can also specify his own schedules. As I have never done...
{ "language": "en", "url": "https://stackoverflow.com/questions/17421676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Current Status of Sproutcore/Ember/Blossom/Sencha and Mobile devices (or alt frameworks) I've been looking over Sproutcore, Ember and Blossom and other competitive framework efforts (e.g. Sencha) to select for a HTML5 client side application project. The state, information, and documentation from these projects is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/9695033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQ ignore incorrect type being assigned to property So, I have my own mapper (NOT AutoMapper) which maps models to each other. You give the model you'd like to map to, and with the Map method you push an object in. Beside of this I wrote the Extend method which functions as a override for the Map method to, for ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/26358093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wrapper Function for a Recursive Function that takes a "pass by reference" value Here's the question: I'm trying to do, Node* foo(Node *& ptr, other args) { // some work here } In the wrapper function, I have to declare a temporary value (which is meaningless): Node* wrapper( ... ) { Node* p = nullptr; return...
{ "language": "en", "url": "https://stackoverflow.com/questions/18973964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: GCC cosine optimization and sigbus I have a program that writes in some FPGA memory. When the program is compiled with optimizations (either O1, O2 or O3) it crashes with a bus error. However there is no crash when the program is compiled without optimizations. Here is a minimal example which crashes: void set_reg(c...
{ "language": "en", "url": "https://stackoverflow.com/questions/37970290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: split textarea value properly jQuery regex I am having problems to properly split textarea value. My current snippet split each line that starts with "-" and displays it as value of span element, but, it wont collect next line value which does not start with "-". For example if I paste this text into textarea: - fir...
{ "language": "en", "url": "https://stackoverflow.com/questions/65173969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ansible.vars.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'private_ip' From: Best way to launch aws ec2 instances with ansible - name: Add the newly created EC2 instance(s) to the local host group (located inside the directory) local_action: lineinfile dest="/etc/ansibles/aws/host...
{ "language": "en", "url": "https://stackoverflow.com/questions/45895990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Message/Folder permissions Is there a way to change folder and/or message permissions? I noticed that folders created on root folder of a user, are not visible - is this a bug or a feature? Thank you. A: I sent a POST request with: URL= outlook.office.com/api/v2.0/me/MailFolders/root/childfolders content inside: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36452849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: calculate values In an order form, each row has 3 fields: quantity, price, total. How do I create a function that on changing a number the subtotal is calculated and so is the total? Can anyone suggest a way? A: You'd need to add a listener to each row so that when the price or quantity are updated, you can get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/12786618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: published bot on skype but it's not working I have a bot that I've created by merging LUIS and QnA together in a single project using Microsoft Bot Builder. I published the bot to an EC2 instance from visual studio and I'm using the Bot Framework Emulator for testing and it works perfectly. (MUST use ngrok for tunne...
{ "language": "en", "url": "https://stackoverflow.com/questions/44923000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Posting on same form in JSP I want to search for a product...so I have made a form... but my products are being retreived in the doGet() method and when I search for a product, the doPost() method is called.... SO what should i Do? A: It's actually unclear what your problem is. If you want the form submit to be ide...
{ "language": "en", "url": "https://stackoverflow.com/questions/5763993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Gradle Plugin Exec task with extension does not use input properly I am following the Writing Custom Plugins section of the Gradle documentation, specifically the part about Getting input from the build. The following example provided by the documentation works exactly as expected: apply plugin: GreetingPlugi...
{ "language": "en", "url": "https://stackoverflow.com/questions/38004295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to obtain enrollment certificate from CA in PHP I'm writing a service that is supposed to receive DER format PKCS#10 certificate request in Base64 encoding from mobile device and then return certificates obtained from CA. I'm trying to use "https://CA-server/certsrv/mscep/mscep.dll?operation=PKIOperation&Messag...
{ "language": "en", "url": "https://stackoverflow.com/questions/14497060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create this in flutter enter image description here I have tried different ways like transform and rotation but not able do it A: I think you've been getting some downvotes because you didn't share any of your previous attempts, on which the solution could be built. I think what you might want to do is use a...
{ "language": "en", "url": "https://stackoverflow.com/questions/71409897", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Inserting image to database I am trying to fetch image from the database, insertion of images are successful but are not displaying when I fetch it. Here's my code for uploading image include("p1-connect.php"); if(isset($_POST['upload'])){ $file = $_FILES['picture']; $fileName = $_FILES['picture']['name']; $file...
{ "language": "en", "url": "https://stackoverflow.com/questions/49721424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }