text
stringlengths
15
59.8k
meta
dict
Q: Ruby thread safe thread creation I came across this bit of code today: @thread ||= Thread.new do # this thread should only spin up once end It is being called by multiple threads. I was worried that if multiple threads are calling this code that you could have multiple threads created since @thread access is not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57660980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spotify API device list empty after short inactivity period I'm trying to use the Spotify API for a personal project. My problem is that the "devices" endpoint that normally returns a list of my available devices (my phone) returns an empty array if I swipe out of the Spotify app for a short while before requesting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72955341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Polyline - Adding point by point I'm currently having a map, and each 10 meters I use LocationListener to refresh my location and get the new Latitude and Longitude. Now I wish that the route the user is taking will be displayed with a red line. So everytime the OnLocationChange() from LocationListener class...
{ "language": "en", "url": "https://stackoverflow.com/questions/17157454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to get the current (working) directory in Scala? How can I get the current directory (working directory) of the executing program in Scala? A: Use this: import scala.reflect.io.File File(".").toAbsolute A: I use new java.io.File(".").getAbsolutePath, but all the other answers work too. You don't really gain a...
{ "language": "en", "url": "https://stackoverflow.com/questions/49859866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Colspan in Backendlayout not working (TYPO3 8.7 LTS) The 3 columns in my backendlayout should be equal size, independent of their content. In my case their width get determined by their content though. Glad about any hints! Environment: * *TYPO3 8.7.0 *PHP 7.0.13 *MySQL 5.6.34 Installed Extensions: * *gride...
{ "language": "en", "url": "https://stackoverflow.com/questions/43539314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android OpenGL ES app crashes logging back in I'm using OpenGL ES 2.0 on Android to make a basic game. I discovered that if I hit the home key on my device (emulator or real device) when the GLSurfaceView is present and then log back into the app from the Android home screen the app will crash. In contrast, if I I h...
{ "language": "en", "url": "https://stackoverflow.com/questions/28975856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Update a MYSQL Column Based On Varying Conditions I need to update a MYSQL Table Here is a very simple look at Table_A ID VALUE RESULT 1 4 0 2 2 0 3 7 0 I want to update the RESULT Column based on conditions So my query statement needs to look something like UPDATE Tabel_A SET RESULT =...
{ "language": "en", "url": "https://stackoverflow.com/questions/14672688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: [Android - Kitkat ]Get/pick an image from Android's built-in Gallery app programmatically Try to pick only one particular image from the SD card.I am able to pick images from gallery and Photos app in kikat.But not getting file path when i pick image from recents am getting file path as null. I tried https://stackov...
{ "language": "en", "url": "https://stackoverflow.com/questions/20514973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: only rotate button and not it's text on button click I rotate a button on click: <button class="btn" type="button">Go</button> css: .btn:focus { transform: rotate(180deg); } now the problem is txt also rotates on btn click. How can I don't rotate the txt or rotate it 360 on button click? A: Wrap the button text...
{ "language": "en", "url": "https://stackoverflow.com/questions/52707370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SiteMapPath not working with route attribute in nodes I have this xml sitemap: <?xml version="1.0" encoding="utf-8" ?> <mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSi...
{ "language": "en", "url": "https://stackoverflow.com/questions/31563724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone -- [UITextField sizeToFit] does not always account for cursor When I call sizeToFit on a UITextfield that is being edited, the size reacts in an inconsistent way to the cursor. Sometimes it accounts for it; sometimes it doesn't. If it doesn't, part of the first letter is clipped. Has anyone found a way arou...
{ "language": "en", "url": "https://stackoverflow.com/questions/4016038", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mismatch between the processor architecture I have an issue with these two famous warnings which are raised during compilation of our solution. There are many forums about these already and I read those, but they still don't solve my issue completely... 1. There was a mismatch between the processor architecture of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/32141358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Delete AWS Cloud formation stack with resources created by it Based on this page I can do: aws cloudformation delete-stack \ --stack-name my-stack It says I can attach the command: [--retain-resources <value>] Does that mean that if I don't specify that line, all the resources created by the stack will be remov...
{ "language": "en", "url": "https://stackoverflow.com/questions/65762063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What does this error "Thread 1: EXC_BAD_ACCESS (code=2, address=0x30d51fff8)" mean? How do I fix it import UIKit class ViewController: UIViewController { @IBOutlet weak var triviaLabel: UILabel! @IBOutlet weak var trueButton: UIButton! @IBOutlet weak var falseButton: UIButton! @I...
{ "language": "en", "url": "https://stackoverflow.com/questions/75044756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should Context be injected with Dagger? I know it is possible to inject Context with Dagger. We can see examples here and here. On the other end, there are numerous posts about not placing context on a static variable to avoid leaks. Android Studio (lint) also warms about this: Do not place Android context classes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/44357735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Can a factory method pattern use different overloads I have a use case where I need to build a factory class that returns different concrete types based on an enum being passed. However, each of those types require different constructor parameters. So, in that case does it make sense to have multiple methods with di...
{ "language": "en", "url": "https://stackoverflow.com/questions/36787091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set/remove attributes dynamically in c#? I am using from attribute validation in my project. [Required(ErrorMessage = "DepartmentCode is Required")] public string DepartmentCode { get; set; } In some case DepartmentCode isn't required. How can I dynamically ignore Validation in my case? A: Take a look at: R...
{ "language": "en", "url": "https://stackoverflow.com/questions/9380321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why do Spark jobs require so much memory? I am experiencing memory issues when running PySpark jobs on our cluster with YARN. YARN keeps killing my executors for running out of memory, no matter how much memory I give them, and I cannot understand the reason for that. Example screenshot: Screenshot from SparkUI The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/50874168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Graphics rendering in thread game loop. Changing data on arrays I have two objects of 2D int arrays called: originalMap and rendedMap which they contain numbers that correspond to the puzzle game map. From the thread class i obtain the map array from the class call Puzzle.java and modifying the one. int [][] rend...
{ "language": "en", "url": "https://stackoverflow.com/questions/14735541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django m2m_changed signal with additional model I have a model looking like this: class Recipe(models.Model): name = models.CharField(_('Name')) components = models.ManyToManyField(RecipeComponent, through='alchemy.RecipeComposition') total_weight = models.FloatField(_('How much recipe will weight')) cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/51019866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Type 'List' is not a subtype of type 'Map' I'm developing a flutter application that depends on API REST calls.The Response from the API is a bit complex. I can see the response from the log when calling my API (e.g : api/products) : But i have this Error : type 'List< dynamic >' is not a subtype of type 'Map< Stri...
{ "language": "en", "url": "https://stackoverflow.com/questions/60805129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Spring @Autowired(required = true) is null I have a webmodule with JSF 2 end Spring 4.3. In a backing bean I use @Autowired for DI of a service of a JAR. In EAR module there are WAR, JAR with @Service Spring and JAR with Spring configuration file. Below a web.xml snippet: <context-param> <param-name>loca...
{ "language": "en", "url": "https://stackoverflow.com/questions/38551532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: For excel VBA, using "for each...next" statement. How can you use all the iterated elements at once Here is a sample code that im testing Sub Selek() Dim fd As FileDialog Set fd = Application.FileDialog(msoFileDialogFilePicker) Dim item As Variant With fd If .Show = -1 Then For Each item In .SelectedIt...
{ "language": "en", "url": "https://stackoverflow.com/questions/63925955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why `boost::bind()` can't be replaced with `std::bind()` here? In this part of code from the example: int main() { boost::asio::io_service io; printer p(io); boost::thread t(boost::bind(&boost::asio::io_service::run, &io)); io.run(); t.join(); return 0; } If I replace the boost::bind(&boost::asio::io_s...
{ "language": "en", "url": "https://stackoverflow.com/questions/20158311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to convert date format range in php for ex below I am getting date range from input 22 Mar, 2021 - 22 Apr, 2021, so what my question is , in MySQL 2019-01-30 00:00:00 (created_at), how to set date range search laravel query A: You can use php's native functiion to convert string to date format. $startDate = dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/66743731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rspec not accessing datas updated via capybara? I have a form containing a "name" regular input field and a "content" CKeditor textarea. As described here I can fill in the form and if I stop here I can see the "name" and "content" columns correctly updated in the Test DataBase. Fine. Now, if I do : template = Contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/17432409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficient way to convert units from one system to another I'm having an hard time figuring an efficient way to converts differents types of unit to various other types. Switch cases would work, but IMO that's not an efficient way has I will have 3 different Systems (SI, Imperial and US). My converter (inside my ap...
{ "language": "en", "url": "https://stackoverflow.com/questions/17219261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Writing UTF-8 fields from mysql in PHP to CSV format I am using a php class, where it writes and stores CSV files in the folder of my site. But am unable to write UTF-8 characters of different languages which is present in my database. I am using the following class to write csv file. How can I add support to write ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22816496", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ignore Rewrite Rule for images folder I have a .htaccess file on a website I'm working on which rewrites urls from mydomain.com/sub/folder/ to mydomain.com?index.php?controller=sub&view=folder Unfortunately the way I've written it means I can't access images, stylesheets and other linked files anymore. Could anyone...
{ "language": "en", "url": "https://stackoverflow.com/questions/8042631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I save the array to a text file and import it back? Basically, I want to know how to get my array that gets data from peoples input saved to a text file and automatically imported back into the array when the program starts again. Edit: Now after this, it seems saving and reopening adds data to the same sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/20223236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Post data in C# and use response in CefSharp I'm trying to post parameters to a website and use the response in my CefSharp browser. Using my current code it posts the data and loads the html in CefSharp. The html page that loads is exactly what I want meaning the post works but as soon as I click a button it just l...
{ "language": "en", "url": "https://stackoverflow.com/questions/42441793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make Recycle Bin in ASP.Net i want to create a Recycle Bin in my web project, i use a Details View with EDIT and DELETE option to present and edit data from database and its worked perfectly but want a Recycle Bin for Deleted Data and if Owner wants to delete completely Delete from Recycle . if u have some co...
{ "language": "en", "url": "https://stackoverflow.com/questions/25645142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Losing custom gridview font when new page selected I am using this code to change the font color in a grid view for a single column depending on value: For Each row As GridViewRow In gvSearch.Rows If row.Cells(8).Text.Trim = "Used" Then row.Cells(8).CssClass = "CautionRow" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24922092", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can't attach Unity script to a GameObject I'm a new Unity user, and I'm having issues when trying to attach a C# script to a GameObject: Can't add script component XYZ, because the script class cannot be found. Make sure there are no errors and that the file name and class name match. Searching online this issue u...
{ "language": "en", "url": "https://stackoverflow.com/questions/59594391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript not working on mobile site I'm using JavaScript to submit the current URL, all works fine until I enter to mobile screen, then the JavaScript appears to be gone, this is not only for "mobile" apparently the problem is based on the screen width. $( document ).ready(function() { $( "#widgetu117_input" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45728832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Returning a strongly typed promiseValue from angular $modalInstance with TypeScript TypeScript newb Question. I'm trying to return a strongly typed promise from angular's $modalInstance. I have something similar to: this.$modal.open(options).result.then(result => { Currently result is type 'any'. How do I...
{ "language": "en", "url": "https://stackoverflow.com/questions/32401777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Transition not working properly on vue when div is being hiding I have simple transition to toggle a div text, however the transition works only when the text is being hiding, however when I click to show the text the transition doesn't work here it is my code: <template> <div> <transition name="fade"> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/70311429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Crash startActivityForResult(intent,1); I have a problem in my android application, I have a hand page, I change my business with startActivityForResult (intent, CODE_DE_MON_ACTIVITE). It works, but then when I replace this page since the second activity with the same code but nothing works. The application crashe...
{ "language": "en", "url": "https://stackoverflow.com/questions/11245638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Function with arguments in requestAnimationFrame I'm trying to define a recursive function with arguments using "requestAnimationFrame". animate(frameElapsed,points,canvas){ console.log("test"); if(frameElapsed<points.length-1){ requestAnimationFrame(this.animate(frameElapsed+1,points,ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/62554546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Codeigniter - array of json objects in post In fire bug I view my jquery post request parameters, its like this adults 1 applicants[] [object Object] attendees 1 children 0 In this post request the array called applicants contains json object which I want ti iterate over and pull out values in my...
{ "language": "en", "url": "https://stackoverflow.com/questions/19073619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Race conditions I'm currently stuck trying to understand two things related to race conditions. Issue 1: I have been presented with the following question: We consider the digital circuit and the value of its inputs a, and b as given below. For all logic gates, we assume that there is a gate delay of exactly one ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/11002774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Write a Data Trigger to open Popup by Clicking dynamic Button in WPF? I'm having a dynamic Button in my WPF application, while clicking any one of the button the popup should open and the corresponding Button should turn the Background Color to Orange and rest of the Button should be in default Backgroud Colo...
{ "language": "en", "url": "https://stackoverflow.com/questions/34304313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Expensive to set UILabel.attributedText to the same value? I have a view controller within my app that I use for debugging purposes to display some of the internals of the app (only for local xcode builds, the app store version doesn't have this controller). In this controller, I have a label which I want to reflect...
{ "language": "en", "url": "https://stackoverflow.com/questions/43592287", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NVARCHAR to VARCHAR2 insert I have the following table structure: UDA_ID (NUMBER) Translation (NVARCHAR2) I need to insert in the table UDA_ID (NUMBER) Translation (VARCHAR2) How do i convert NVARCHAR2 to VARCHAR2 ? A: You can try like this: insert into mytable(Translation) (select to_char(Translation) from somet...
{ "language": "en", "url": "https://stackoverflow.com/questions/34648744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: VB 6.0 debugging breakpoint doesn't hit I have a VB 6.0 Project having Class (cls) files. When I start (Debug) my project, and try to execute following statement in Classic ASP page, Set objMyObject = Server.CreateObject("ProjName.ClassName") No breakpoint is hit and following error occurs. Microsoft VBScript runt...
{ "language": "en", "url": "https://stackoverflow.com/questions/6792162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Line Chart (Currency) I'm trying to develop a line chart using a third-party API and I'm using both react-chartjs-2 and chart.js The problem is, the line doesn't appear in the chart and I assume the reason is: the date. This is my first time to develop a web application using Chart.js. Also, I read the documentation...
{ "language": "en", "url": "https://stackoverflow.com/questions/75222647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gperftools: modify makefile to install in a different folder? I was installing gperftools: https://code.google.com/p/gperftools/ Everything worked, and I see that the project links to /usr/local/lib I'd like to put the library in a folder local to my project, instead. The reasoning behind this is that I'm putting t...
{ "language": "en", "url": "https://stackoverflow.com/questions/27387958", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Microsoft.EntityFrameworkCore dont have method IsOptional() for PropertyBuilder I try transfer my solution from .Net Framowork to .Net Core.When I did mapping and I dint found method IsOptional() for PropertyBuilder: .Net Framowork: public class PictureMap : EntityTypeConfiguration<PictureExt> { public Pictu...
{ "language": "en", "url": "https://stackoverflow.com/questions/52328577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading multiple offline html files to a list in R I have rawdata as 20 offline html files stored in following format ../rawdata/1999_table.html ../rawdata/2000_table.html ../rawdata/2001_table.html ../rawdata/2002_table.html . . ../rawdata/2017_table.html These files contain tables that I am extracting and reshapi...
{ "language": "en", "url": "https://stackoverflow.com/questions/51707309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: deleting arrays during run time in C++ to spare some memory I have a C++ script running with a C++98 version on a microcontroller ( No upgrade is possible). In this script I need to initialize two vectors of doubles of 405 already existing elements each. I tried initializating two arrays : double a[405]= {7.05925826...
{ "language": "en", "url": "https://stackoverflow.com/questions/64557853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to find the distribution in python? I have data set from Goodreads with Number of books read over a year with details like number of pages of the each book, date read etc. I want to know in which month/week I have read most/least. How do I do that in Python ?
{ "language": "en", "url": "https://stackoverflow.com/questions/34505475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iCloud - Moving the file completed I can able to move a file from the local directory to iCloud using the condition setUbiquitous:YES. The file has been moved successfully. If the file size is large, it takes certain time to complete moving. Is there any method to identify, if the file has completed moving to iCloud...
{ "language": "en", "url": "https://stackoverflow.com/questions/8047950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: OSX equivalent of SymGetLineFromAddr or SymGetLineFromAddr64 I want to add source file and line numbers to my backtraces, on Windows there is a nice function SymGetLineFromAddr64 which provides such information if available. I can't find something similar on mac. dladdr outputs only symbol name without file informat...
{ "language": "en", "url": "https://stackoverflow.com/questions/29230654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rubycas-server character encoding issue (Internal server error) Since a couple of months ago we are using in production environment a rubycass-server 1.0 validating against Active directory (Microsoft 2008 r2 server). We are using ruby 1.9.2p180, sinatra-1.1.3... We are having problems with Spanish and Catalan lang...
{ "language": "en", "url": "https://stackoverflow.com/questions/10976728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: alternative method for getting http response in android I get the null response with HttpResponse response = client.execute(post); This method some time give correct response but mostly give the null response without any code change. I also tried it using the AsyncTask, but got same behavior. Following is my code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/5695326", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Testing ServiceLoader in Eclipse Plugins I have four Eclipse plugin projects (create a new Java Project, right-click, configure, Convert to Plugin Project) in my workspace. The first (my.runtime) contains an interface (MyFactoryInterface) and a class (MyClient) that defines a method (List<String> getAllFactoryNames(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7526615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Return from function or pass into function? What would be the better way to process this data? Is this just a matter of personal preference? Guessing 2 is less prone to accidently modifying the monday...friday arrays and there is less code at this layer. Is there a best practices approach? Is there a performance dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/72597471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Joining multiple columns into one with union, exclude results with same id I want to join columns from multiple tables to one column, in my case column 'battery_value' and 'technical_value' into column 'value'. I want to fetch data for only given category_ids, but because of UNION, I get data from other tables as we...
{ "language": "en", "url": "https://stackoverflow.com/questions/65981983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Accessing bazel files outside the docker I am quite new to docker environment and need help in understanding / fixing the below issue. Scenario: I am running an application (assume App1) inside the docker. This application/docker uses bazel framework. So the run time files (some C++ .h and .cc files) which are getti...
{ "language": "en", "url": "https://stackoverflow.com/questions/52135032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What does the dot do in Racket? I know the dot for creating a procedure, which can take an arbitrary amount of arguments, but I saw several other examples, which use the dot in other places. One example is from the docs of csv-reading: (define next-row (make-csv-reader (open-input-file "fruits.csv") '((sepa...
{ "language": "en", "url": "https://stackoverflow.com/questions/41967505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the C++ equivalent of Python's "in" operator? What is the C++ way of checking if an element is contained in an array/list, similar to what the in operator does in Python? if x in arr: print "found" else print "not found" How does the time complexity of the C++ equivalent compare to Python's in opera...
{ "language": "en", "url": "https://stackoverflow.com/questions/44622964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "61" }
Q: Angular 2 How to make singleton service available to lazy loaded modules According to my understanding of Angular 2 rc5, to make a service from another module (not AppModule) available as a singleton to every component, even those lazy-loaded, we don't include the service in the providers array of that other module....
{ "language": "en", "url": "https://stackoverflow.com/questions/39010654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Exit position Pine Script How can I exit or close a position on a specific time of exchange in Pine Script. Example I have long position and want to close it on or before 1500 hrs as per Indian Time Zone. Please help? A: You can use the time() function for that. Here is an example where it marks candles between 120...
{ "language": "en", "url": "https://stackoverflow.com/questions/70817255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android device how to run one program? Here is the question I have android device version 4.1.1 and ı want change the android working style. For example I restart my android device and want to see my application on screen just one. Another app for example camera or notepad ı dont want to see that just one program in...
{ "language": "en", "url": "https://stackoverflow.com/questions/33837438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to automatically drop down DateTimePicker in Vb.net through a Citrix client Through a variety of reasons I am forced to use the incredibly frustrating vb.net DateTimePicker control, in the even more frustrating Citrix client, for an application. This isn't actually my main problem, the problem is, I have to make...
{ "language": "en", "url": "https://stackoverflow.com/questions/29629834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Xamarin Forms OnAppLinkRequestReceived event - Shell.Current is null I am testing App Links / Deep Linking / Universal Links on my Xamarin Forms app. I have an app that correctly intercepts URLs as expected, but when I go to navigate to the page using Shell in my app, Shell.Current is null. Visual Studio 2022, Andro...
{ "language": "en", "url": "https://stackoverflow.com/questions/71023111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set up the event Datagridviewcombobox cell selectionchanged? I have a DataGridViewComboBoxCell control with some items into it. I would like to get the values when user chooses a value from the dropdown. I cant use DataGridViewComboBoxColumn where EditingControlShowing can be used. I need similar event handle...
{ "language": "en", "url": "https://stackoverflow.com/questions/45412562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cannot register nested generic interface in .NET Core I am trying to register the nested generic type in DI container, but unable to register throws {Open generic service type requires registering an open generic implementation type. (Parameter descriptors)} error Implemented Interface method looks like: public clas...
{ "language": "en", "url": "https://stackoverflow.com/questions/63786924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP - how to watch for cookie (every second or time interval)? I want to watch for cookie and if this cookie exist do somethink. I tried this : while (true) { sleep(1); if ($_COOKIE['name']) { doSomethink(); } } But this code really make execution to 'sleep'. Is there a way to watch without...
{ "language": "en", "url": "https://stackoverflow.com/questions/16642941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access In XCUITestCase UITableViewRowAction and How to take action from XCUITestCase Leftswape delete tableViewCell Basically I want to access the UItableViewRowAction event in XCUITestCase. But I couldn't find any solution for this. A: I assume you have a table view with cells that can be swiped left, and...
{ "language": "en", "url": "https://stackoverflow.com/questions/62337192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Azure invalid AccessToken i am trying to use Microsoft.Azure.Management.Resources library to manage some Azure resources. I have registered app in Azure AD and i gave it all permissons. I took its ApplicationId and Secret + TennantId and SubscriptionId and tried to obtaion AccessToken like this: var clientCredential...
{ "language": "en", "url": "https://stackoverflow.com/questions/40498446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detecting the termination of multiple child processes I have to write code for creating multiple child processes using a parent. Parent process should be sleeping until it creates the number of processes. Child processes send SIGCHLD signal to parent process to interrupt from the sleep and force the parent to call w...
{ "language": "en", "url": "https://stackoverflow.com/questions/35538452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to create empty data table using PrimeNG I am creating a UI that allows users to input data in batches. Similar to an Excel spreadsheet but the columns are already fixed. I'm already using PrimeNG DataTable for other parts of my web app, and I would like to continue using it for the aforementioned feature if pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/44901856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Verify the palindrome in Java. Can you help me to find what's the issue with this code Can you help me to find the bug in this code. When I test this with a string that is not a palindrome, I get the message that it is a palindrome. import java.util.*; public class Main{ public static void main(String args[]...
{ "language": "en", "url": "https://stackoverflow.com/questions/19214088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Best practices on how to stream data to server .NET Say I want to have a server that can accept 2GB file over network, HTTP. And the data is easily readable with well known format, think something like CSV. Is there a way to gradually process the data the user has uploaded into file upload "INPUT = FILE" control whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/5745108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to print matrix with int10h? Well as my question says, I need to print a matrix with the int10h but not just that, this matrix is of 0 and 1 where the 0 has to represent the color blue and the 1 the color red. So my question is how do I print this matrix and how do I make the be color blue and red be color red w...
{ "language": "en", "url": "https://stackoverflow.com/questions/62626308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: subqueries inside laravel raw syntax I am trying to use DB::raw('raw sql query') to run the query below: $rates = DB::raw('SELECT mid, x.qty_t/x.qty_total, x.qty_t, x.qty_total, FROM (SELECT mid, SUM(CASE WHEN ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53600839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python dataframe:: get count across two columns for each unique value in either column I have a python dataframe with columns, 'Expected' vs 'Actual' that shows a product (A,B,C or D) for each record ID Expected Actual 1 A B 2 A A 3 C B 4 B D 5 C D 6 A A 7 B B 8 A D I want to get a count fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/69393976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include CocoaPods framework inside a MacOS system extension? I'm trying to create an application that uses a system extension (NEFilterPacketProvider to be exact). Currently I'm using CocoaPods to manage my dependencies. Everything works fine, up until the point when I try to use a framework inside my system ...
{ "language": "en", "url": "https://stackoverflow.com/questions/64929562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Music21 Analyze Key always returns c minor? I've been trying to use the Python module Music21 to try and get the key from a set of chords, but no matter what I put in it always seems to return c minor. Any ideas what I'm doing wrong? I've tried a variety of input strings, the print statement spits out all the right ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59010500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to sync zip file using git LFS, says I'm out of space I have a zip file that's about 600MB. I have the file setup to track using LFS. The zip changes frequently so I need to update it in the remote repo often. I have no problem pushing the file to LFS if my LFS storage is empty. However, when I try to push it...
{ "language": "en", "url": "https://stackoverflow.com/questions/63157515", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Running a script in bash I have a script in one of my application folders.Usually I just cd into that locatin in Unix box and run the script e.g. UNIX> cd My\Folder\ My\Folder> MyScript This prints the required result. I am not sure how do I do this in Bash script.I have done the following #!/bin/bash mydir=My\Fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/16053046", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Show loading icon whenever the browser loading icon is active This might be a stretch, but I'm wondering whether or not it might be possible. I'm working on a website that uses PHP for its backend. The problem is, some of the PHP scripts I'm running are quite lengthy, and can translate into page load times that can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/18658918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Unable to build Card-View I am trying to insert a card view in my layouts, but it is giving this rendering error. Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references. Failed to find style with id 0x7fff0...
{ "language": "en", "url": "https://stackoverflow.com/questions/33513312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reload NSTableView data when NSSearchField text changes I'm a bit stumped on how to reload a NSTableView's data upon a searchField's text changing. I assumed that I needed to filter the array that the tableView uses to populate itself based upon string matching and the call tableView.reloadData() all inside o...
{ "language": "en", "url": "https://stackoverflow.com/questions/71531283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using adapter pattern to plug multiple file types into single interface I'm trying to build a program to compare data in various file formats (e.g., CSV, JSON and XML). I want to be able to use a single interface that can handle different file formats and is easily extendible with additional file formats. The main i...
{ "language": "en", "url": "https://stackoverflow.com/questions/72212065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying an Azure Web App through Jenkins I am trying to deploy an Azure Web App through a Jenkins scripted pipeline using the Azure App Service Plugin. This is my deploy-command (GUIDs have been changed): azureWebAppPublish azureCredentialsId: 'a0774bb6-e471-47s9-92dc-5aa7b4t683e8', resourceGroup: 'my-demo-app', a...
{ "language": "en", "url": "https://stackoverflow.com/questions/58286357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pgAdmin 4 v3 Auto Indent not working Since upgrading to 4.3, Auto Indent is not working (working in a Query Tool tab). When pressing enter at the end of a line of code, the cursor appears at a random position on the next line (sometimes right at the end) and not at the correct indentation position. This is very frus...
{ "language": "en", "url": "https://stackoverflow.com/questions/51612558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Gremlin : How to get all the vertex details in the traversal? Sample Data A knows B A knows C A knows D B knows E C knows F Desired Output B C D E F I tried the following query, but it's not working, g.V('A'). out('knows'). as('x'). out('knows'). as('x'). project('Employee'). by(select('x')) A: If you just want ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62259384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Virtualenv Installation via pip & conda on Mac I want to install virtualenv on macOS. I tried pip install virtualenv which resulted in the below Collecting virtualenv Could not fetch URL https://pypi.python.org/simple/virtualenv/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] c...
{ "language": "en", "url": "https://stackoverflow.com/questions/44288952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get multiple url parameters in to isset I was wondering, how i could get two parameters from URL. I have a URl like this: www.example.com/simplepay-cancel/?r=eyJyIjo1MDE3LCJ0Ijo1MDIyOTI5NTIsImUiOiJDQU5DRUwiLCJtIjoiT01TNTMxNDU1MDEiLCJvIjoiMTE2Njk4ODAyOTk1NjMwIn0%3D&s=h%2FkKbYJWL3EYZiW%2FfGxaUhEkx3d7E0EGBCieMGUjWlT%2B...
{ "language": "en", "url": "https://stackoverflow.com/questions/74638737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: In scrapy, 'start_urls' not defined when passed as an input argument The following spider with fixed start_urls works: import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor class NumberOfPagesSpider(CrawlSpider): name = "number_of_pages" allowed_domains =...
{ "language": "en", "url": "https://stackoverflow.com/questions/38422546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: UPDATE Statement without changing value Currently, I am working on node with express library using mysql connector. So most likely I am working with string literal SQL Query. Now, I have implemented a design wherein I do have a constant formula on query. Table Structure: ╔═══╦═════════════════════╦═══════════════╗ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62080491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change plot from connecting points to vertical sticks? The following code will create a plot by connecting points. import numpy as np import matplotlib.pyplot as plt x = np.arange(0, 5, 0.1); y = np.sin(x) plt.plot(x, y) plt.show() How can I change the plot to vertical sticks instead of connecting points?...
{ "language": "en", "url": "https://stackoverflow.com/questions/30260221", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: frola editor react doesn't reflect any changes I'm using this npm https://github.com/Zeyton-co/react-froala-editor, I've passed in some of the config like this <FroalaEditor base='https://cdnjs.cloudflare.com/ajax/libs/froala-editor/2.3.4' value={this.state.editorValue} con...
{ "language": "en", "url": "https://stackoverflow.com/questions/43691651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to update the multiple file names in request from csv file using Jmeter We have a POST api and we can send multiple files in a request. I created a csv file with all file Names. Its updating same filename each json object. How can i get the unique filename in json object from csv? Or is there any approch to get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74398215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: multipart PUT request using AFNetworking What's the correct way to code a multipart PUT request using AFNetworking on iOS? (still Objective-C, not Swift) I looked and seems like AFNetworking can do multipart POST but not PUT, what's the solution for that? Thanks A: Here is code for Afnetworking 3.0 and Swift that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/30387985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to get alert text message inside my notification center using titanium studio for android and ios I need to display alert message in notification center for both (iOS and Android) titanium App. I am using an enterprise apple account for my app. I can play sound in the background service mode in titanium, but I a...
{ "language": "en", "url": "https://stackoverflow.com/questions/33859307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Koan Support Issue I need a little help with the code listed below. I'm working with Koans right now and am stuck on a problem...Probably making it more difficult than what it should be. If anyone can help me out that would be great...Just need to know what goes in "FILL_ME_IN". // Some ways of asserting equality ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35870721", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Odd HTML validation error I'm getting an odd HTML validation error from this piece of JavaScript any help appreciated, I think it may be causing a bug in the slider function that I'm working with... <script type="text/javascript" charset="utf-8"> sfHover = function() { var sfEls = document.getEle...
{ "language": "en", "url": "https://stackoverflow.com/questions/4985690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }