text
stringlengths
15
59.8k
meta
dict
Q: how to snip or crop or white-fill a large. expanded (by 10%) rectangle outside of a polygon with ggplot2 this question is a follow-up of my prior SO question and is related to this question. i'm just trying to white-fill an area 10% bigger than a simple polygon with ggplot2. maybe i'm grouping things wrong? here's...
{ "language": "en", "url": "https://stackoverflow.com/questions/26359909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How can I update a value in a view in Yii Framework? Hi I have a question about yii Framework.I want to update a value in view.php and I use the following code in BilgiformuController public function actionView($id) { $this->loadModel($id)->okunma=1; $this->render('view',array( 'model...
{ "language": "en", "url": "https://stackoverflow.com/questions/33498060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular Library Project - how to build and use a library with own dependencies (not peerDependencies)? I have created an Angular Library Project, and a simple application next to it where i show the usage of it. The structure looks like this: This is how it looks in the library's package.json: "@angular/cdk" is us...
{ "language": "en", "url": "https://stackoverflow.com/questions/72453231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Securing uploaded files in PHP I have a site with user logins and sessions. I'd like to allow my users to upload files to the webserver, but only have them available for their login. I understand if I upload to some sort of public web directory that the file would be still accessible via: http://www.mydomain.com/fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/14008652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NGRX and the tsconfig strict flag Perusing the ngrxplatform repo here, I was pleased to see that the strict flag is enabled in the tsconfig.json file. This ensures that the strict typechecking is enforced during the compile. However, looking at the sample applications listed on the Ngrx website here, none of these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59128727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My code in JS isn't coming out with a letter grade I wrote a function in JS towards the end that is suppose to give you a letter grade once you get the average of 5 subjects, but it's not showing me anything I'm lost right now The forth function I wrote doesn't seem to produce any letter grade. I believe everything ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74323511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Infinite scroll with angularfire2 I'm attempting to recreate this simple example for infinite scroll with a firebase backend: https://angularfirebase.com/lessons/infinite-scroll-with-firebase-data-and-angular-animation/ The problem is that i want to use the latest version of angularfire2, and I just can't figure out...
{ "language": "en", "url": "https://stackoverflow.com/questions/49081614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CollectD server system load look scary Please excuse my poor server skill here. However, I just installed collectD on Linux (web server) about minutes ago and found that the system load look a bit scary. All graphs (cpu, memory) look fine except this one. Can you guys let me know if everything is ok given by the gra...
{ "language": "en", "url": "https://stackoverflow.com/questions/21134297", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculating which compiler is faster in terms of cycling I just have a simple question, a bit silly, but I just need some clarification for an upcoming exam so I don't make a stupid mistake. I am currently taking a class in computer organization and design and am learning about execution time, CPI, clock cycles, etc...
{ "language": "en", "url": "https://stackoverflow.com/questions/55567336", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: CKEditor ReadOnly I got a problem since I use the CKEditor (http://ckeditor.com/). The problem is that I can't find a way to make the editor ReadOnly and I can't just use a textarea since I want to keep consistency. I've already seen lots og questions like this at StackOwerflow, but none of them work or are too old....
{ "language": "en", "url": "https://stackoverflow.com/questions/16237093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android pin activity on boot I've got an app that registers itself as the default launcher and pins itself automatically when started. This all works fine when installing the app. It pins itself and only the back button is visible. The problem is that when the device first boots up, it does not pin properly. I see ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39965124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Connecting to remote HBase service using Java I have a small sample code in which I try to establish a connection to a remote HBase entity. The code runs on a windows machine without HBase installed and I try to connect to a remote Ubuntu Server that has it installed and running. The IP in the below snippet is of co...
{ "language": "en", "url": "https://stackoverflow.com/questions/39725234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Trying to use hashmap to count frequency of words in array This is my code: public static void main(String args[]) throws Exception { BufferedReader infile = new BufferedReader(new FileReader(args[0])); HashMap<String,Integer> histogram = new HashMap<String,Integer>(); while ( infile.ready() ) { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22927184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: No "Location" header in JMeter for Auth 2.0 Auth 2.0. "code" parameter is required to perform POST /.../oauth2/v2.0/token with code value. In Fiddler code value could be found in Location header of response to /kmsi request: However, here is no Location header in JMeter for the same request: Why? Are there any tip...
{ "language": "en", "url": "https://stackoverflow.com/questions/68358295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Text file with columns and records, analyze Python I have text file with some columns and records(<1000 records). Name Surname Age Grade Faculty Chris M 20 5 Electronics Jack A 22 3 Computer science Michael J 21 4 Computer science ... Now I want type a functions with dicitionary. * *1) Show students names wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/44508036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: r-value Reference Casting and Temporary Materialization The output for the code below produces: void doit(const T1 &, const T2 &) [T1 = unsigned long, T2 = int] t1 == t2 t1 == (T1)t2 t1 != (T1&)t2 t1 == (T1&&)t2 I understand that the t1 == t2 case is simply an integral promotion. The second case t1 == (T1)t2 is the...
{ "language": "en", "url": "https://stackoverflow.com/questions/48796854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how to make an operation wait until the other operation finish in swift I'm working on an application which fetches data from api's I'm using alamofire to fetch data my question is how could I make an application wait until the data fetching finish I'm using following code to fetch data class abc:NSOperation{ stati...
{ "language": "en", "url": "https://stackoverflow.com/questions/34063789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Process functions from a list of strings in Python I have a module that I import to my main application called pageprocs.py with a collection of functions in it that generate different content and return it in a string. pageprocs is supposed to be a way of allowing authenticated users to create plugins for the diffe...
{ "language": "en", "url": "https://stackoverflow.com/questions/11705546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Removing duplicates from a list of lists based on a comparison of an element of the inner lists I have a large list of lists and need to remove duplicate elements based on specific criteria: * *Uniqueness is determined by the first element of the lists. *Removal of duplicates is determined by comparing the value...
{ "language": "en", "url": "https://stackoverflow.com/questions/34334381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Downloading files from expressJS (sendFile) server to VueJS, is returning corrupted files? I have an API written in expressjs, that sends a file when provided with a fileID. The backend is working fine, as it sends the correct file (uncorrupted) when the route url is typed directly int the browser. ex. http://localh...
{ "language": "en", "url": "https://stackoverflow.com/questions/51810331", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Continuous subset and ranking using sql I have a dataset like below: Now, I need the output as below: start_time end_time count 10:01 10:04 3 10:05 10:07 2 For this purpose, I wrote a query but it is not giving me the desired sequence. My query is as below: with on_off as ( select time,status,case w...
{ "language": "en", "url": "https://stackoverflow.com/questions/72221504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: load a url after a specific amount of time I have a single url that I need to open it after a specific amount of time. I think this can be done using js/jquery and I see it working like this: I open the page created with the js code inside and the url loads automatic in a new tab and after 5 minutes this same url is...
{ "language": "en", "url": "https://stackoverflow.com/questions/9186574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to use parameters for lambda expressions correctly in C#? I was wondering, if I use Lambda expressions correctly in the following short code snippet? I want to store function calls over time and then execute them all together in Update_Calls(). Most importantly, I am asking whether the parameters var1-3 keep the...
{ "language": "en", "url": "https://stackoverflow.com/questions/41792395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery image slider auto play and click Please suggest any change where i need to make in this code in order to make this slider auto play after 4000 milliseconds.right not it is working fine on click.i made few changes after following few suggestions but its not working <script type="text/javascript"> $(function()...
{ "language": "en", "url": "https://stackoverflow.com/questions/15675590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reject a transition based on user input, without confirm() EmberJS: reject an upcoming transition How would I reject an upcoming transition via willTransition, but using a custom pop up or jQuery .dialog box such as this: willTransition: function(transition) { //Some conditional logic would go here to determine ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22459898", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Do I need an iOS developer license for TestFlight I am going to be creating an iOS app to run on an iPad using the PhoneGap framework. Instead of putting my app on the App Store I'm going to use TestFlight. If I'm not going to be using the App Store do I still need to purchase an iOS developer license? A: Yes, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18569959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: jQuery error after setting anchor tag dynamically I am trying to set the href property of an anchor tag using jquery, by writing this code: myPage.URL != null ? $pages.find("#myPage").attr("href", myPage.URL.Url) : $pages.find("#myPage").attr("href", "#") ; Where myPage object contains an object called URL 2 prop...
{ "language": "en", "url": "https://stackoverflow.com/questions/41045382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populate second dropdown based on first dropdown using CodeIgniter I need to select first the source_type and then it automatically populate the location based on the source_type view file <select name="source_type" id="source_type"> <option value="">Source Type</option> <option value="Internal">In...
{ "language": "en", "url": "https://stackoverflow.com/questions/15061348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Will I get a postback each month when using subscriptions? I am using Google Wallet For Digital Goods. Will I get a callback each month when money gets transferred or will the postback URL only get called once when setting up the subscription? A: I'm afraid at this very moment Google Wallet only notifies the user w...
{ "language": "en", "url": "https://stackoverflow.com/questions/14758031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Enctype issue when I try to upload a file with a Coldfusion webservice Can't get to work a Coldfusion webservice that uploads a file in an external server. My application runs in "Server A" and the file repository (external server) is in "Server B" The template (inicio.cfm) which contains the form with the <cfinput ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67544009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to update a table using cursor I need to write a procedure to update a column of a table Xyz if today date is between the start_date and end_date of table ABC. table ABC fin_cycle start_date end_date account_class ---------------------------------------------------- F2018 27-05-2020 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62049450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you view HTML entities in Firefox Developer Edition's inspector Firefox Developer Edition was showing HTML entities (e.g.  ) in the DOM inspector. For some reason it stopped. I've created a fresh Firefox profile but I still can't see them. Anyone got any ideas how to view them in Firefox? A: @luke-h I'm fair...
{ "language": "en", "url": "https://stackoverflow.com/questions/31713076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is binding events in jQuery very expensive, or very inexpensive? I just wrote a $().bind('event') function and then got concerned that this kind of a call might be very expensive if jQuery has to run through each element in the DOM to bind this event. Or maybe, it's just about as efficient as an event could be. The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/905883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Is there a function to select a group of hours from different days? I'm looking for a way to select in Amazon Athena a selection of hours for different days. I have a table with visitors to a specific location for every half hour, I now want to know the visitors during opening hours for a store, for the period of a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63050452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding CURL as static library to a C++ CMake project I have a problem with adding CURL library to CMake project. In my CMakeList.txt I have the following lines for adding CURL: #option(CURL_STATICLIB "Set to ON to build libcurl with static linking." ON) if(WIN32) add_definitions("-DCURL_STATICLIB") endif() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50783730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert string date to Datetime C# How can I convert 1-2-2016 to Datetime format dd-MMM-yyyy For Example : The output of 1-2-2016 should be 1-Feb-2016 I've tried the following code but it's returing 2-Jan-2016. Updated_Value = Convert.ToDateTime(Updated_Value).ToString("dd-MMM-yyyy"); The Data in Update_Value vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/39160102", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visitor pattern. Is void* an acceptable return type for a completely abstract interface? I have an AST, represented in the usual way (a tree of nodes of an abstract type). I have several uses cases for traversing this tree (an optimizer, which returns another AST; IR code generation, which returns a llvm::Value*; an...
{ "language": "en", "url": "https://stackoverflow.com/questions/22430211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Intellij Accessing file from hadoop cluster As part of my intellij environment set up I need to connect to a remote hadoop cluster and access the files in my local spark code. Is there any way to connect to hadoop remote environment without creating hadoop local instance? A connection code snippet would be the ideal...
{ "language": "en", "url": "https://stackoverflow.com/questions/43791120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery loading other html pages, but how to revert to original content So i have done this small piece of jQuery code to load html files into a DIV but I'm struggling to work out how i can for example place a back button on the loaded content and once clicked will revert to the original content any ideas? Ideally i ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25207106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AEM: How common component injected in multiple components can have dynamic value I have a common component which is injected in multiple components via data-sly-resource. componentA <div data-sly-resource="${ 'abc' @ resourceType = 'btplayer-cms/components/content/some-common-component' }"> </div> componentB <div...
{ "language": "en", "url": "https://stackoverflow.com/questions/63980155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reset a variable after 3 seconds in Android? I am trying to create a Service. In this Service I ahve this variable: String command="Go" I want to design a function that does this: Within 3 seconds, the command will return value "Go" If the time is bigger than 3 seconds, the command will be reset to "". My ...
{ "language": "en", "url": "https://stackoverflow.com/questions/40189075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Custom Wix Burn bootstrapper doesn't detect MSI install state I'm creating a custom wizard-style bootstrapper based on Wix/Burn (3.6 release version). I've based in on the Wix 3.6 bootstrapper code. The problem is that I cannot get the bootstrapper to detect the install state of my setup.msi that is part of the bun...
{ "language": "en", "url": "https://stackoverflow.com/questions/14238488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Plotting population density map in R with geom_point I'm working on a simple population density plot of Canada. I have data for population based on postal code and latitude/longitude here I want to improve the plot to show color change as the density of points increases. This is the code I have: library(maptools) li...
{ "language": "en", "url": "https://stackoverflow.com/questions/32622174", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to open a file and remove certain characters based on args passed from command line So I have a function which will essentially run and generate a report and save it with args.current_date filename. The issue I am having is to remove the extension .json from the filename being saved which really is not readable....
{ "language": "en", "url": "https://stackoverflow.com/questions/54278087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: SCM choice for a new user? Real easy one here guys. Best justification gets the win. I'm a computer science student at a school you've heard of, and have been programming for several years now (about 8), so I've written a fair few lines of code. But since I've never really been distributing - source or binaries - no...
{ "language": "en", "url": "https://stackoverflow.com/questions/4420566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: is it possible to give margin-left css/scss dynamically to its Childs element on the basics of position (nth + 2px) I have a form which show Package Hierarchy, Package Input depend on package type so is it possible to give margin-left dynamically by css/sass to its Childs element on the basics of position enter code...
{ "language": "en", "url": "https://stackoverflow.com/questions/65573239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python recursive function to dump a tree in Excel I have a very simple directed traversal graph structure in a Django models.py file that translates into the following two Python classes : class Node(models.Model): position = models.IntegerField() # from 1 to 3 name = models.CharField(max_length=255) val...
{ "language": "en", "url": "https://stackoverflow.com/questions/21759721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any protocol that all Swift SIMD float types conform to? Most of the Swift SIMD float types have +-*/ operators, so we can just calculator the sum like below: import simd float2(2.0) + float2(2.0) // float2(4.0, 4.0) float4(2.0) + float4(2.0) // float4(4.0, 4.0, 4.0, 4.0) Now, Lets say I have a generic f...
{ "language": "en", "url": "https://stackoverflow.com/questions/33537666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open simple JQM dialog from codebehind I'm using the dialog script for JQM 1.0 below. It Works fine, but I want to open it from asp.net codebehind on page_load. How could I accomplish that? Something like, but I can't make it work: Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "open", "opendialog", True...
{ "language": "en", "url": "https://stackoverflow.com/questions/19403541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using MAYA 3D Model in a .Net application If I want to render a 3D model created by Maya and do some animation with it in a .net application what should be my choice of platform - plain WPF or XNA? A: XNA is an interesting platform, but I have noticed it having some performance issues when loading in models. I hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/3625919", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Login script registers in database but I can't login (PHP &MYSQL in easy steps, Mike Mcgrath) The script has 5 pages. Registration, Login, Login tools,Login action and Home. PHPMYADMIN registers the registration form but the login page keeps saying "enter your email" even though it is entered and matching the regis...
{ "language": "en", "url": "https://stackoverflow.com/questions/21383912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: FirebaseApp is not initialized on real devices Please advice, I'm trying to add push notifications in PCL Xamarin.Forms. On emulator Genymotion it's work fine but on real devices i have an error: Default FirebaseApp is not initialized.Make shure to call FirebaseApp.initializeApp(Context) google-services.json is pre...
{ "language": "en", "url": "https://stackoverflow.com/questions/49222799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert faker data via knex I want to insert data via knex using a for look to create an object to insert data. I tried the following: const faker = require('faker'); const dataLength = 10 const obj = [] exports.seed = function (knex, Promise) { // Deletes ALL existing entries return knex('posts').del() .the...
{ "language": "en", "url": "https://stackoverflow.com/questions/46381900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python version shipping with Mac OS X Snow Leopard? I would appreciate it if somebody running the final version of Snow Leopard could post what version of Python is included with the OS (on a Terminal, just type "python --version") Thanks! A: bot:nasuni jesse$ python Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)...
{ "language": "en", "url": "https://stackoverflow.com/questions/1347376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Getting 500 | Internal Server Error when using getServerSideProps in NextJS after deploying in Vercel I'm using server rendered pages in NextJS using getServerSideProps. It's in index.js (root page). When I'm making build locally, website working fine. But when i'm hosting this site in Vercel, it's showing 500 | Int...
{ "language": "en", "url": "https://stackoverflow.com/questions/72158672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Google Sheets pivot data with multiple values I'm trying to display sample data as follows. I'm able to do this using pivot tables and multiple values with no problem but would like to find a way using either Query or some other method. This problem was partly solved using the formula below but does not include the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71079986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: phpThumb creating corrupted/oversized thumbnails I'm having a very strange problem with the phpThumb library, for some reason when the thumbnails are generated they are being created very large in size (550k for a 150x65 image) and in many cases do not load at all. I have narrowed the issue down to the phpThumb libr...
{ "language": "en", "url": "https://stackoverflow.com/questions/25847002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to load image to imageview with url without downloading image I'm trying to load following image link to imageview. https://pbs.twimg.com/profile_banners/169252109/1422362966 Can't it problem to image size to load imageview ? activity_profile.xml <android.support.v4.widget.DrawerLayout xmlns:android="http://sch...
{ "language": "en", "url": "https://stackoverflow.com/questions/32319209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to check if the matched EMPTY line is the LAST line of a file in a while IFS read I have a while IFS read loop to check for different matches in the lines. I check for and empty/blank line like this: while IFS= read -r line; do [[ -z $line ]] && printf some stuff I also want to check if the matched empty/blank ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43483560", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to randomize points on a sphere surface evenly? Im trying to make stars on the sky, but the stars distribution isnt even. This is what i tried: rx = rand(0.0f, PI*2.0f); ry = rand(0.0f, PI); x = sin(ry)*sin(rx)*range; y = sin(ry)*cos(rx)*range; z = cos(ry)*range; Which results to: img http://img716.imageshack.u...
{ "language": "en", "url": "https://stackoverflow.com/questions/8839086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need help on implementing NMS (Non-Max-Suppression) python I save the results of my object detection model in a .json file and it has the score, box coordinated, the detected class of multiple objects. There are multiple overlapped detections on the image and I heard that NMS can help do exactly that. I found a code...
{ "language": "en", "url": "https://stackoverflow.com/questions/72948093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: LARAVEL: All elements from foreach have the id 1, which makes deleting them impossible I'm in a difficult situation. I'm building a birthlist clone with a scraper but it's difficult to code it because I'm not that experienced. I've managed to create an admin page with multiple forms to insert websites, categories an...
{ "language": "en", "url": "https://stackoverflow.com/questions/72448253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .click() triggering twice and also results in having to click the browser back button twice to return to the previous page The code below represents two sets of radio buttons. One button in each set must be clicked at all times. Clicking on one button in each set will navigate the user to a new page where they'll ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/71382751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Modify errors in Redux-form from 'outside' I got a random component with Redux-form, e.g.: {code...} <form> <Field component={TextField} name="firstName" /> </form> export default connect(mapStateToProps)(reduxForm({ form: 'myForm', validate, })(injectIntl(myForm))); And a validate.js ...
{ "language": "en", "url": "https://stackoverflow.com/questions/46077544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'class' object has no attribute 'object' What am i doing wrong here. I have been trying to figure this out for hours. I think i am having issues with Django get_context_data function. Error is 'PatientBedAllotmentList' object has no attribute 'object' views.py @method_decorator(login_required, name='dispatch') class...
{ "language": "en", "url": "https://stackoverflow.com/questions/51574458", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Remove timezone information from datetime object What is the fastest way to trim datetime object of this form 2016-12-14 15:57:16.140645 to become like this: 2016-12-14 15:57:16? doing str('2016-12-14 15:57:16.140645').strip(".")[0] is painfully slow for large datasets and besides I need the returned format to be a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41166093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: NgRx redirect to dashboard on loginSuccess Action I'm learning NgRx and I have a basic question. I've been looking at sample projects and other answers and they are all from 2017 where the architecture was a bit different. I'm implementing a login feature, everything so far is working fine, actions are being called,...
{ "language": "en", "url": "https://stackoverflow.com/questions/65620804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to write sublime text snippet to make setters and getters and instance variable for ruby? I want to learn how to create snippets for future, and want a snippet that can create setter and getter for instance variable in Ruby files. Something like this name:= {TAB KEY} it becomes like this def name=(n) @name...
{ "language": "en", "url": "https://stackoverflow.com/questions/31921020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: I added a CSS animation but it doesn't work and everything looks fine So I tried to add a simple vibration animation to a link from my website but it simply doesn't work. Anyone see anything wrong with my code? I took the animation code from animista.net and there they were working Here is my code: a { text-dec...
{ "language": "en", "url": "https://stackoverflow.com/questions/46264543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: nhibernate : how to query collection inside parent entity I have the following method. This works fine if i remove the following line .Add(Restrictions.Eq("Product.IsPopItem", true)) The error message is could not resolve property: Product.IsPopItem of: EStore.Domain.Model.ProductCategory I'm confident the "Product...
{ "language": "en", "url": "https://stackoverflow.com/questions/2996294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yii - CGridView activerecord relation I need to print out the result in CActiveDataProvider with CGridView and with pagination The following is my function in model public function getCompaniesJobsByCompanyId ( $companyId ) { $criteria = new CDbCriteria(array( 'with'=>array( 'jobs'=>array( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18189323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Save changes failing, but no exception thrown I have a case where I am calling SaveChanges, it is failing, throwing out of the try block, but not being caught. I have never heard of this happening, and your help would be appreciated. I am using C# in Visual Studio 2008, with .net framework 3.5SP1. The code in questi...
{ "language": "en", "url": "https://stackoverflow.com/questions/5227465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTML parser for phrase and case sensitive searches, in Java I would like to know if there are any HTML Parsers in Java that would support phrase and case sensitive searches. All I need to know is number of hits in a html page for searched phrase and support for case sensitivity. Thanks, Sharma A: Have you tried thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/4750871", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I make these Flexbox columns work simply? When width >960px, this element looks great with a row of three columns, but when I go smaller than 960 the cards default to one column. I am unsure how to style this so that it has a desired behavior of going form three columns, to two columns and then one column Wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/55983346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Sending email with different domain name While sending the mail it showing Mailer Error: SMTP connect() failed It was not working properly.Please check the code and give me valuable answer. require 'PHPMailerAutoload.php'; if(isset($_POST['send'])) { $email = $_POST['email']; $password = $_POST['password'];...
{ "language": "en", "url": "https://stackoverflow.com/questions/40084048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Global Match Anchors \G: rolling lover over an input file See: https://www.oreilly.com/library/view/mastering-perl/9780596527242/ch02.html I'm having some trouble getting the perl Global Match Anchors \G to work with my input file proved below with my perl code... I would have thought \G keeps picking up where it le...
{ "language": "en", "url": "https://stackoverflow.com/questions/74349631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Append "i" tag plus text to span I have this angular script to build out a div. the problem i'm having is that it appends the .text inside the i tag and not as a sibling of i. Hope this makes sense. var body = placeWrapper .append('div') .attr('class', 'thm-listing__body')...
{ "language": "en", "url": "https://stackoverflow.com/questions/41822453", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If Statement Condition If Element Exists Using PHP I want to check if an element exist then show the div, if it doesn't then hide the div. I'm lost as to exactly how to place it. If I add for both divs combined or each div has to have an IF. <?php if() ?> //if there is no content or image don't show this entire div ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58544286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to show pdf in webview in flutter How to show pdf in webview in flutter. I have already uploaded pdf fle to fireabse database and storage. . Now I want to download and open te pdf in retrieving page or homescreen I have recieved the downloadURL of the pdf uploaded too Container( child: PDfFile1 != null && W...
{ "language": "en", "url": "https://stackoverflow.com/questions/65625416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get a percentage to 1 decimal place as a string when I divide two integers? Here's what I am using right now: var pc = (p * 100/ c).ToString(); Both p and c are integers but I am not sure how to get the answer as for example something like: 43.5% Would appreciate some advice on what I can do. A: You ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53148482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Speech Recognition using service I have an Android application that uses speech recognition in an Activity. I would like to port this over to a service so I can talk to the application while it's running in the background. However, as far as I know, the speech recognition service has to use onActivityResult, which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13420967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flutter plugin develoment: importing libraries I'm trying to create a Facebook login plugin for Flutter and already got the native code running. There is one thing I don't get though. Where do the dependencies, uses permissions and meta data go? I guess the dependencies and permissions could be added to the plugin's...
{ "language": "en", "url": "https://stackoverflow.com/questions/44707548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems with rpath in CMAKE I'm having a problem with cmake, like One of the libraries which I want to link to my shared library which I'm compiling is boost. So, I tried like: target_link_libraries(my_project ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY} ${Boost_CHRONO_LIBRARY} ${Boost_DATE_T...
{ "language": "en", "url": "https://stackoverflow.com/questions/50408029", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change text of buttons after clicking on them for multiple buttons? I am using multiple buttons and my problem is when i am clicking on any button then the text changes of first button, but not that button on which i am clicking. I am using here same button id for all buttons but it is hard to use different b...
{ "language": "en", "url": "https://stackoverflow.com/questions/41047226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the "Use Trait Body" setting for? Recently I've started using PHP (worked for MS shops since graduating, and that was mostly what I used in college too). To help with this, I'm using Netbeans and am in the process of configuring it so that it's more similar to Visual Studio. Under Options -> Editor -> Format...
{ "language": "en", "url": "https://stackoverflow.com/questions/42275235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I find which Dlls contain specific W32 functions? My app is a WPF application and it already has code for the older type of System DPI awareness that works well in every version of windows except 8.1. It turns out that Microsoft added a number of functions to Windows 8.1 as part of their implementation of pe...
{ "language": "en", "url": "https://stackoverflow.com/questions/21565739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Shiny dashboard, user authentication I am trying to include a shiny dashboard inside a code snippet I found (https://github.com/treysp/shiny_password) that wraps a shiny app inside functions to set up user authentication. This snippets works perfectly with fluidPage() but I noticed that it is not working when I wrap...
{ "language": "en", "url": "https://stackoverflow.com/questions/44708473", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to let excel VBA only run the next codes after the queries for data connection have finished refreshing? I realized that even if the Refresh of the query is done first and foremost, the code below the refresh query will run even before the database information is extracted completely. This will leave a gap on my...
{ "language": "en", "url": "https://stackoverflow.com/questions/49994127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TypeScript: Constant array as type definition I am working on a typescript project and struggle a bit with defining a fitting type. Context: I got the following constant inside my project: export const PROPERTYOPTIONS = [ { value: "tag", label: "Tag" }, { value: "composition", label: "Composition" }, { value:...
{ "language": "en", "url": "https://stackoverflow.com/questions/72700877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: laravel custom command to generate file I came across this article on Spatie Actions https://freek.dev/1371-refactoring-to-actions and I would like to make a command to generate the files for me, similar how you can generate Model or livewire components etc. php artisan make:action PublishPostAction Post This is as...
{ "language": "en", "url": "https://stackoverflow.com/questions/73656148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF listbox is causing a stackoverflow when it has a button as a child When trying to add a button as the datatemplate to a listbox, I ran into a stackoverflow. When using a textbox instead, there is no stackoverflow. What is causing this? I'm using Visual Studios 2012 Update 4. XAML code: <Window x:Class="StackOver...
{ "language": "en", "url": "https://stackoverflow.com/questions/35846917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java Reflection dynamic path: ClassNotFoundException I'm trying to create an object dynamically using java reflection and when I try to execute Class.forName() it returns me the ClassNotFoundException, this is my code: Class cls = Class.forName("foo.bar.baz.turn."+ nextStateName); where nextStateName is the class n...
{ "language": "en", "url": "https://stackoverflow.com/questions/50683111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Database design, how to setup tables I have a simple ecommerce type site that will have users with accounts, orders, and contact/billing information for those users. I just wanted to know the best way to setup these tables from an efficiency and logical point of view. So far I have basically two different entities, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/651450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ngx-translate failed to translate all keys The translations fails on some words (found at least 2 keys that don't work - 'Home' and 'Currency'). The funny thing is that the translation works, but not with all the items... I've checked the files, no duplicates found for those 2 items that i mentioned above Home and C...
{ "language": "en", "url": "https://stackoverflow.com/questions/55377212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create checkboxes dynamically for selected dates of a calendar With JavaScript or with Ajax I need to enter the start date with the start time, and the end date with end time. And create four checkboxes for each day of the selected date range, in-line with the date mentioned in front. BUT the last checkbox of...
{ "language": "en", "url": "https://stackoverflow.com/questions/72778212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selenium python how I preform a click on toggle button I am trying to click in call loop toggle with Selenium with the WebDriver on Python. the html code: this is the button: I have tried few options: button_element = driver.find_element_by_class_name("iPhoneCheckContainer") button_element.click() the filed messa...
{ "language": "en", "url": "https://stackoverflow.com/questions/66179401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Splashscreen orientation wrong since iOS 9.x As described in 34942234 and 34919547 I am fighting with a wrong splashscreen orientation since longer. I am pretty sure I have nailed down the root cause, which has to do with iOS 9.x (I am using iOS 9.2). When running the identical code in XCode/iOS simulator with iOS 8...
{ "language": "en", "url": "https://stackoverflow.com/questions/35172244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Installing .NET framework from USB drive when necessary We have a .NET application that will be distributed through USB drive. End users will connect the drive and double click on the EXE (a .NET exe) to run it WITHOUT installing it. Now the problem is, if .NET is not installed we would like to trigger the .NET inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/852550", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prestashop localization fail to Import a localization pack Prestashop (1.6.1.10) localization fail to Import a localization pack (Israel) I get [PrestaShopException] Property Currency->decimals is not valid at line 909 in file classes/ObjectModel.php 904. } 905. 906. $message = $this->val...
{ "language": "en", "url": "https://stackoverflow.com/questions/42249756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS span wrap with padding I've got a pretty annoying problem. I have to make a "table" fwhich containes 3 elements next to each other. The first 2 elements are simple divs, floated left, but the third is a little bit complicated. It must have padding on each sides. By the way, it's a text which can be wrapped by th...
{ "language": "en", "url": "https://stackoverflow.com/questions/9115757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }