text
stringlengths
15
59.8k
meta
dict
Q: JWT x5c token validation .net core I would like to validate a JWS token with "alg": "ES256", "x5c" header fields only. x5c field contain 3 certificates. I'm able to load them but .net return a IDX10503 error telling me kid field is missing. here is my code : var handler = new System.IdentityModel.Tokens.Jwt.JwtSecur...
{ "language": "en", "url": "https://stackoverflow.com/questions/70677968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Logistic regression with small and differing sample sizes I am relatively new to statistics and confused about the best way to proceed with this logistic regression model (and if it is the correct statistical test to use). I ran the model in SAS and I can't make sense of the results. My first question- does it matte...
{ "language": "en", "url": "https://stackoverflow.com/questions/62903855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: updating NSManagedObject doesn't call NSFetchedResultsControllerDelegate using MagicalRecord I have a model with this one to many relationShip: Order -->> LineItem I display LineItems in UITableViewCells: I use UIPickerView for changing quantity of LineItems. GOAL=> by changing picker value, subTotal be recalcula...
{ "language": "en", "url": "https://stackoverflow.com/questions/24579860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery Mobile changePage() not working in WP8.1 Hi I've spent a long time trying to get my jquery mobile (v1.4.5) and cordova (v5.3.1) app running on WP8.1. It runs fine on iOS and Android. I am aware of this SO question, and the problem I'm having is not related to this, or any others on SO. Changepage seems to get...
{ "language": "en", "url": "https://stackoverflow.com/questions/32757265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Trying to use geojson data to plot a district level choropleth I recently been interested in doing a chloropleth map of average rent prices in San Francisco over time. For example if I had a dataset like example Dataset data = {'district' : ['6a', '6b','7a', '7c', '5f'], 'price' : [1000, 1500,2000 ,2500, 175...
{ "language": "en", "url": "https://stackoverflow.com/questions/73264582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to install specific branch of git repository using yarn? I am able to install one GitHub package but not other using yarn. Please let me know what could be the issue here. I can add https://github.com/fancyapps/fancybox#3.0 but not https://github.com/opentripplanner/otp-react-redux#result-post-processor ravis-Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/49992677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: JdbcPagingItemReader with SELECT FOR UDATE and SKIP LOCKED I have a multi instance application and each instance is multi threaded. To make each thread only process rows not already fetched by another thread, I'm thinking of using pessimistic locks combined with skip locked. My database is PostgreSQL11 and I use Spr...
{ "language": "en", "url": "https://stackoverflow.com/questions/70719117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XML Schema is not validating I am working on XML and Schemas. I need help validating my schema, as when I put it in an online validator, I get an error of: S4s-elt-must-match.1: The Content Of 'sequence' Must Match (annotation?, (element | Group | Choice | Sequence | Any)*). A Problem Was Found Starting At: ComplexT...
{ "language": "en", "url": "https://stackoverflow.com/questions/58653209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove the dots from custom menu with CSS I want to remove(hide) bullets (dots) with css code, but I can`t Please tell me what I do wrong: 1) I give class name in my case: .no-bullets 2) I use this css code: .no-bullets { list-style-type: none; } this is not working for me... Then I use this css in theme...
{ "language": "en", "url": "https://stackoverflow.com/questions/37094612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Click to drop widget using gwt-dnd library I'm using gwt-dnd library and I would like to know how to make click to drop. That is, click the widget to move, release the mouse button, drag the widget and click to drop. Thank you. A: It's pretty big hacking. gwt-dnd handles mouse events by MouseDragHandler class and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4259462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to avoid repeated jobs (one per core) when I'm trying to launch different threads? I'm processing multiple big independent files (same process for each file, no communication between processes). So, I have a situation that seems great for parallel multicore processing. And, in fact, I have access to a nice serv...
{ "language": "en", "url": "https://stackoverflow.com/questions/18276484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to launch console application using CreateProcess with Minimized main window I have a native c++ windows application that is launching two child processes using the following code - if (!CreateProcess(NULL, // No module name (use command line) cmdLine, // szCmdline, // Command line NULL, // Process handl...
{ "language": "en", "url": "https://stackoverflow.com/questions/4380575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: UITableViewCell Not Sizing To UIImageView I was wondering if anyone knows hot to fix this issue. When I run the app, the image gets cut off instead of displayed. I have attached photos to show in detail. A: Since you have two kind of Cells in the Table View, you have to set the height of both cells programatical...
{ "language": "en", "url": "https://stackoverflow.com/questions/39196432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Deserialize XML to correct class type I am using the XmlSerializer to do some serialization work. I was wondering if it is possible to "generically" deserialize from the XmlDocuement. Concrete: If I have an XML File I would watch the tag and compare it with my DTO Model. Is this possible (better: Does .NET suppo...
{ "language": "en", "url": "https://stackoverflow.com/questions/24671538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP and an int with a value of 200 being treated as 2 100%, to declare another variable I have quite an original problem and am unsure how I can achieve it in the best way. I have a variable let us say that it is called percent, it is an int that can hold any value between 0 - 200. While the number of percent is not...
{ "language": "en", "url": "https://stackoverflow.com/questions/8370507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to verify the current page is a collection page with Javascript in Shopify I know you can check the template with liquid to check if a template is a collection template. However, I need to check if the template is a collection template with JS in a main JS file.
{ "language": "en", "url": "https://stackoverflow.com/questions/73116368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selenium - get all child elements from div class I want to get the values contained in the span class with value "indigo-text descfont" for the following: <div id="WineDetailContent"> event <span class="blue-text codefont">...</span> <span class="indigo-text descfont">Alsace</span> <br> <span class="blue-text co...
{ "language": "en", "url": "https://stackoverflow.com/questions/73223578", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: docker how to commit but exclude directory from image I have running docker container and I want to commit the changes on that container, but the size of one of the directories is very huge and I want to exclude it from the snapshot. How to commit changes on that container while excluding a directory from that image...
{ "language": "en", "url": "https://stackoverflow.com/questions/29740079", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Database design for school management to keep track of current and previous school years What's the best way to design a students registration records and keep tracks of previous academic years? I have a table to enroll students, something like this: CREATE TABLE [dbo].[Students] ( [StudentID] INT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67676113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: QTableWidget - Drag and Drop a Button into a cell in the QTableWidget When i drag and drop the button into the QTableWidget, the button disappers from the old position and nothing is displayed in the cell where i drop the button. Could anyone suggest what's the problem? Please find below the code import sys from PyQ...
{ "language": "en", "url": "https://stackoverflow.com/questions/10524178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Angular 6 component re-binding I have an Angular Component named Dashboard. This component displays a dashboard page with data. I also have a menu component. When I am in the dashboard page, I click on a menu item and it opens up a popup screen. The popup is nothing but a hidden div that can be made visible/invisibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/62467243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby string.scan(/#{regexp_pattern}/) - execution time Problem: ruby .scan with regex pattern taking up to 5 minutes. Time depends on string that are scanning. Tests run on ruby '2.5.1', and ruby '2.4.2'. Examples: def time_regexp_test(string) start = Time.now puts "parse start: #{start}" regexp_pattern...
{ "language": "en", "url": "https://stackoverflow.com/questions/49925688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Problems with netlink socket, kernel opps 0002 I try to send some data from user mode to my kernel module. But when it send something, it triggers a kernel error: Bug:unable to handle kernel paging request ad ffff88022f168bc0 IP: [<...>]build_skb+0xf5/0x1c0 #include "socket.hpp" using namespace std; KernelSocket::...
{ "language": "en", "url": "https://stackoverflow.com/questions/14738580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Shopify Public App - How To Get Key, Token & Url I am totally new to Shopify Public App development and I will need your help to understand it a bit better. For a client, I need to build a Shopify Public App that will be used by several Merchants. This application will have to access the Merchants' store via the Adm...
{ "language": "en", "url": "https://stackoverflow.com/questions/72498355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting address of pointer from a method returning pointer Suppose I have: class Map { public: Map(); vector<Territory>* getTerritories(); }; vector<Territory>* Map::getTerritories() { vector<Territory> t; for (int i = 0; i < 8; i++) { Territory ter; ter.setName("Territory " + std::...
{ "language": "en", "url": "https://stackoverflow.com/questions/32925974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the reliable way to get all entries of the Elasticsearch index (in Java with Rest client) As far as I understand the server and its Java Highlevel Rest client make me use paging when retrieving long sets: _query = QueryBuilders.matchAllQuery(); SearchRequest sr = new SearchReque...
{ "language": "en", "url": "https://stackoverflow.com/questions/50513849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to run each sampler in parallel with same csv data Need to run these sampler request in parallel with same csv file provided CSV have LN,Userid columns that with three values I want to run all three samplers at same time for each values. So total would be 9 requests ( 3 values ins CSV) Submit1|Submit2|Submit3 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65010656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Triger Pipeline on any Pull Request from any branch and feature branches I have pipeline for some backend app for example, I would like to create trigger that run the pipeline whenever a pull request is created (before the approve and merge) but not only for the main/master branch, also for any branches For example ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73192273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Improve performance of count and sum when already indexed First, here is the query I have: SELECT COUNT(*) as velocity_count, SUM(`disbursements`.`amount`) as summation_amount FROM `disbursements` WHERE `disbursements`.`accumulation_hash` = '40ad7f250cf23919bd8cc4619850a40444c5e90c978f88635a09ccf66a...
{ "language": "en", "url": "https://stackoverflow.com/questions/14329000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cannot pass std::vector to winrt::array_view I trying to consume Windows::Gaming::Input::RawGameController via C++/WinRT library. Calling RawGameController::GetCurrentReading() to acquire current controller state: std::vector<bool> buttonsArray(rawController.ButtonCount(), false); std::vector<GameControllerSwitchPos...
{ "language": "en", "url": "https://stackoverflow.com/questions/57059598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Run a java program from svn in Jenkins I have a job on Jenkins that runs the functional tests and generates test results. After i get results I need to run a new job that will trigger a java program from svn. What the program does it updated test results in bug tracking datebase. My question is how to setup a new jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/12965481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Any possible way to get the locale with language and region in angular? Is there any way in angular to get the locale with region? I know i can inject the locale id into components but most of the time i just get the language tag, i.e "en" when i need "en-US". There are some functions in angular that i've looked at ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71743145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails/ActiveRecord Model.Find returns the wrong record This is the wackiest. When I visit: /ingredients/14.json I get { id: 13, name: "Tomato", category: "Vegetable", created_at: "2013-11-20T04:35:36.704Z", updated_at: "2013-11-20T05:59:34.444Z" } And in the logs: Started GET "/ingredients/14.json" for 127...
{ "language": "en", "url": "https://stackoverflow.com/questions/20088781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.Net C# 4.0 - How to catch application thread exceptions I have an ASP.Net website that has custom internal threads, for periodically occurring tasks. If I get an exception on one of these threads, it is not caught in Global.ASAX's Application_Error() function. It is allowed to bubble up to IIS and I find out ab...
{ "language": "en", "url": "https://stackoverflow.com/questions/26281154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: d3 - how to format xAxis ticks depending on weeks I have a d3 time scale chart. At the moment, the axis ticks render a date for every data object. The data could have a range of anything from 1 day of data, or 2 weeks in 1 month, or 5 months worth of data or even more, for example. Ideally, we want to display ticks ...
{ "language": "en", "url": "https://stackoverflow.com/questions/36128327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unexpected NestJs error: Nest can't resolve dependencies of the UserService I'm trying to build a simple api in NestJs with authentication to save recipes to a MongoDB. I was trying to add an email service to send a confirmation email for new users and ran into a dependency error I'm not able to figure out myself. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/75160406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Visual studio : adding columns to localdb reset all data I was working with VisualStudio 2017 C# and localdb2016 I created a table in server explorer's database desginer window with 10 columns added X rows. I have already set copy if newer so rows wont get deleted everytime but when i try to add a new column (1...
{ "language": "en", "url": "https://stackoverflow.com/questions/51054762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to loop over viewbuilder content subviews in SwiftUI So I’m trying to create a view that takes viewBuilder content, loops over the views of the content and add dividers between each view and the other struct BoxWithDividerView<Content: View>: View { let content: () -> Content init(@ViewBuilder content: @...
{ "language": "en", "url": "https://stackoverflow.com/questions/64238485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: permission denied while using fb_graph rails3 SA I have a application written in RubyonRails and I want to make him post periodically on facebook fan page. I used fb_graph gem to do that. I created my facebook app and I get my Access Token to use it but when I use this peace of code me = FbGraph::User.me(ACCESS_TOKE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7027325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: XQuartz Gnuplot Mac Sierra trackpad issue I'm using Mac Sierra and plot with XQuartz Gnuplot version 5.0. I can plot but after that not much else with the plot. I cannot zoom, double click to get coordinates to clipboard etc (and all the other keyboard commands don't work) as it is said in gnuplot bind that it shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/43846976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Unable to Select Specific Fields into DataTable from ListItemCollection Connecting to a SharePoint list I'm pulling back a ListItemCollection, which is being fed into a DataTable, however I only want to select certain fields from the ListItemCollection into the DataTable. Can anyone advise how to do this. New to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75473743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gatsby WhereInput query compiles with errors I have a GraphQL query which I can run perfectly using GraphQL playground. However, when I put it within Gatsby page it throws an error and gives no further diagnostic. export const query = graphql` query($path: String!) { cms { headerActions: callToActions( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53921926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TensorFlow object detection fails on Xamarin Android with a reshape issue I am following this blog post and GitHub almost exactly: Blog Github But when I run, take a picture and call this line: var outputs = new float[tfLabels.Count]; tfInterface.Feed("Placeholder", floatValues, 1, 227, 227, 3); tfInterface.Run(new[...
{ "language": "en", "url": "https://stackoverflow.com/questions/55526797", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I use Rails Selectize in my Rails Project? I'm getting the error Selectize: Dependency MicroPlugin is missing Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize. application.js: //= require jquery //= require jquery_ujs //= require...
{ "language": "en", "url": "https://stackoverflow.com/questions/39556778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to enable javascript alert and confirm boxes in Microsoft Edge when a website installed as PWA? I'm testing the installation of a Progressive Web App with the new Windows 10 support (https://blogs.windows.com/msedgedev/2018/02/06/welcoming-progressive-web-apps-edge-windows-10/#La19KKkTBKLj90k8.97 ). I generated ...
{ "language": "en", "url": "https://stackoverflow.com/questions/49360231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populating a FlowLayoutPanel with a large number of controls and painting thumbnails on demand I'm trying to make an ImageListBox kind of control that will display a large numbers of thumbnails, like the one that Picasa uses. This is my design: I have a FlowLayoutPanel that is populated with a lot of UserControl obj...
{ "language": "en", "url": "https://stackoverflow.com/questions/470863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Command line escaping single quote for PowerShell I have a Windows application and on events, it calls a command like this: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass "G:\test.ps1 -name '%x' -data '%y'" The name parameter sometimes has ' in it. Is it possible to escape that so...
{ "language": "en", "url": "https://stackoverflow.com/questions/20958388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Custom camera UI for wp8 I tried to create an image based app that actually uses camera task when the app is opened. But instead of using the default camera app, I am trying to create a custom UI for the camera like other third-party apps does. Well, my camera UI will be basic, so i would like to know whether this c...
{ "language": "en", "url": "https://stackoverflow.com/questions/30383023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change location.href with jQuery I need to change the location.href of some URLs on my site. These are product cards and they do not contain "a" (which would make this a lot easier). Here is the HTML: <div class="product-card " onclick="location.href='https://www.google.com'"> I mean it is pretty simple, but I just...
{ "language": "en", "url": "https://stackoverflow.com/questions/67723886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Current location using an IP address and the iPhone SDK In an application there is extreme use of the current location, and I got success in using the current location, but I am not able to find the current location in a house or basement, etc. So what I think that we can use is the IP address to get the location an...
{ "language": "en", "url": "https://stackoverflow.com/questions/5141380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Django, passing JSON to frontend, 'str' doesn't have 'iteritems' I'm creating json data this way: def get_all_from_database(): urls = Url.objects.all() ips = Ip.objects.all() urls_json = serializers.serialize('json', urls) ips_json = serializers.serialize('json', ips) return urls_json, ips_json ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21701475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set type for variables from form data in Lumen framework. If I send form in Lumen, data can be validated via validate method. For example, in some method in some controller: $this->validate($request, [ 'id' => 'required|integer|exists:user', ]); $user_id = $request->input('id'); But variable type of $user_id s...
{ "language": "en", "url": "https://stackoverflow.com/questions/35577313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mixing script and static in app.yaml I wish to use Google App Engine for serve static files and REST request in one application. I use this app.yaml application: test version: 1 runtime: go api_version: go1 default_expiration: "7d 5h" handlers: - url: /(index.html)? static_files: static/app/index.html upload:...
{ "language": "en", "url": "https://stackoverflow.com/questions/30664333", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How reduce stock quantity in SQL Server and show messagebox when is zero in C# The update is working fine, but stock value when is purchased I want to show messagebox, and stop the purchase when the value is zero in the stock update code. I tried this code, but he only reduces value if the quantity is zero showing m...
{ "language": "en", "url": "https://stackoverflow.com/questions/74506455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Defining a number as an image So I am making a 2d game hardcoded with wxWidgets, and I'd like at the top to say something like #Define 2 hero.png or wall.png or monster.png, etc. So my idea was originally to just swap values in the matrix, and move the png around but how can I define the object so when the program r...
{ "language": "en", "url": "https://stackoverflow.com/questions/43288949", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Handling conflicts in CouchDB Say I have a doc with two properties, "Start" and "End." One revision may have a time for Start and null for End, and vice versa. Rather than choosing a single revision as the winner, I want the final doc to contain the Start time from the revision where it is not null, and same for End...
{ "language": "en", "url": "https://stackoverflow.com/questions/38727207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the difference between these statements I have these two statements. What is the difference between string(sample_string).erase(i,j) and sample_string.erase(i,j) ? A: sample_string.erase(i,j) Calls the erase method on the sample_string object (assuming that this is an instance of a class that implemen...
{ "language": "en", "url": "https://stackoverflow.com/questions/30613707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I declare GlyphRun object? I need to draw just a couple of digits. Is it enough to define only GlyphRun and FontRenderingEmSize? If not, please, suggest me, how to draw, for example, string "123" (how to define GlyphRun object for that). I wrote this code: var gr = new GlyphRun(); gr.Characters = new List<ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/73101580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Class Name does not declare type C++ I am trying to compile my code, but I am getting an error with classes. One of the classes compiled fine(Example.h), but the other(Name.h) keeps giving me the class does not name type error. I think it has something to do with circular dependency, but how do I fix that without a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22627682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook Android API- How to know when friend list of a user has updated? Currently i am working on facebook based android application and i store all friends of user to a sqlite database on login. I want to update this database only when user adds or removes a friend. How to know friend list updated not?? any FQL o...
{ "language": "en", "url": "https://stackoverflow.com/questions/18372997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calculating distance between latitude and longitude in python? I need help calculating the distance between two points-- in this case, the two points are longitude and latitude. I have a .txt file that contains longitude and latitude in columns like this: -116.148000 32.585000 -116.154000 32.587000 -116.159000 32.5...
{ "language": "en", "url": "https://stackoverflow.com/questions/57294120", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Could not cast value of type NSSingleObjectArray to NSMutableArray Since iOS10, i am facing to this issue : Could not cast value of type '__NSSingleObjectArrayI' to 'NSMutableArray' . There is my code : manage.POST( url, parameters: params, constructingBodyWithBlock: { (data: AFMultipartForm...
{ "language": "en", "url": "https://stackoverflow.com/questions/39723539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: syntax error near unexpected token - R package Install I am trying to install an R package along with its dependencies. But it is throwing error. $ install.packages(rvest_0.3.5.tar.gz, dependencies=True) -bash: syntax error near unexpected token `rvest_0.3.5.tar.gz,' I am new to R please help me how can I download ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62356163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Snakemake: Random FileNotFoundError for a shared file in a rule when submitting jobs in parallel I have the following rule: rule run_example: input: counts=config['output_dir'] + "/Counts/skin.txt" params: chrom=lambda wildcards: gene_chrom()[wildcards.SigGene] output: config['out...
{ "language": "en", "url": "https://stackoverflow.com/questions/62531737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using @use "sass:math" in a Vue component In a Nuxt 2 project i have created a button component with the following style: <style lang="scss"> .my-button { // lots of cool styles and stuff here $height: 28px; height: $height; border-radius: $height / 2; } </style> The problem is the border-ra...
{ "language": "en", "url": "https://stackoverflow.com/questions/69161159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Collapsing a data frame over one variable I have a data frame in the following format: Site Year Month Count1 Count2 Count3 Patch 1 1 May 15 12 10 1 1 1 May 8 0 5 2 1 1 May 3 1 2 3 1 1 Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/25555154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where can I find an extension or website with PHP user snippets to be used in an HTML file? (Visual Studio Code) I recently installed the extension PHP Awesome Snippets of Visual Studio Code, which includes lots of useful snippets for PHP programming. However, the snippets of this extension can only be used within p...
{ "language": "en", "url": "https://stackoverflow.com/questions/62533059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble with Rails assets in production I've ran rake assets:precompile RAILS_ENV=production rake assets:precompile git add -A git commit -m "message" git push heroku master This is the live site - http://www.collegeinsideview.com/. It seems that none of the assets are available. I can't figure out why. * *Both...
{ "language": "en", "url": "https://stackoverflow.com/questions/27649691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Login does not work in django I want to login with a username and password that is in the database. I get the error 'object has no attribute 'authenticate'. My code for views.py def login(request): c = {} c.update(csrf(request)) return render_to_response('polls/login.html', context_instance=RequestConte...
{ "language": "en", "url": "https://stackoverflow.com/questions/27040036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: asp.net framework plugin application I really don't know if someone else has already written down a question similar to this one. I searched on google but maybe i don't know the right tag to search for. I'd like to project and develop a web-based framework with a number of functionalities like a cms (user management...
{ "language": "en", "url": "https://stackoverflow.com/questions/5061497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can we use KeyStore to store sensitive data This is in addition to my previous question answered by Makoto object or container used to store sensitive information After reading some articles, I see that in Java we can use KeyStore to store web certificates, but can I use this object to store application-specific dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/48246805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to fetch data from oracle in xml format using php I would be very happy if anyone help me :) I am trying to write php web service that read a query from Oracle DB and display the result as XML. I spent days in searching for solution but unfortunately it didn't work Below is some queries I tried it: <?php $...
{ "language": "en", "url": "https://stackoverflow.com/questions/13516370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parse Json in VB.NET into listview I'm developing a costum launcher for Minecraft, with more functions. I have a problem with parsing this json file:https://s3.amazonaws.com/Minecraft.Download/versions/versions.json (I'm using Newtonsoft.json to parse), I want to parse, and display result in listview (like this: htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/27055138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add/Remove Items to Android ListView I am creating a listview as ListView listView = new ListView(context); in my activity and I code MyCustomAdapter that extends BaseAdaptor.setting this custom adapter to my listView.setAdapter(myCustomAdpObj) object that I created as above.Now at run time I want to add/remove elem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7712321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: assign userID as value and username as ng-model to a select tag My question is probably easy, but I am having difficulties to solve it. I am developing an application using ASP.Net MVC and AngularJS. And I am using select tag to list users. I assigned to the select tag the same ng-model that I have assigned to div f...
{ "language": "en", "url": "https://stackoverflow.com/questions/37933595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: EclipseLink converts Enum to BigDecimal I try to convert an Enum into a BigDecimal using the Converter of EclipseLink. The conversion works, but the resulting database column has a type of String. Is it possible to set a parameter, that EclipseLink builds a decimal column type within the database? I use a class, whi...
{ "language": "en", "url": "https://stackoverflow.com/questions/13307452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: c# convert yyyymmdd text to dd/MM/yyyy I have some text in rows as yyyymmdd (eg: 20181211) which I need to convert to dd/MM/yyyy I am using: cashRow["BusinessDate"] = Convert.ToDateTime(row.Cells[ClosingDate.Index].Value.ToString()).ToString("dd/MM/yyyy"); I get the error "string was not recognized as a valid DateT...
{ "language": "en", "url": "https://stackoverflow.com/questions/53809405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular 2 component .html path I try to use relative paths for html in component also i am mapping my js files in dist folder.. my component code is app/app.component.ts import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'my-app', templateUrl: 'app.component.html' }) export ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39319517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Laravel 5 and Carbon discrepancy on Forge Hopefully I'm not mad and I'm only missing something. I have a project on Laravel 5.0 and I have a requestExpired function called every time I have an incoming request. Now, to calculate the difference between current time on the server and the timestamp within the request I...
{ "language": "en", "url": "https://stackoverflow.com/questions/28499941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: End-of-Session Handling in EmberJS I have an Ember application that requires user authentication on the server side. Once authenticated (via login), application runs normally. The application shows a logout button. Pressing this logout button sends a message to the server, which causes the server to terminate the...
{ "language": "en", "url": "https://stackoverflow.com/questions/20851263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Deploy Azure Container App to different Resource Group in Azure pipeline I´m playing around with Azure Container Apps, but I'm running into a small issue when trying to deploy through Azure Pipelines, the thing is that I have one Azure Container Registry and I want to create a new Revision for ca-sandbox-1 and ca-sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/74854822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I use windbg as a post mortem debugger for Windows services? I have Windbg set as the default post mortem debugger. I did this by running windbg -I. However, this only appears to catch unhandled exceptions from applications run by the user I'm logged on as, not Windows services. Does anyone know how I can con...
{ "language": "en", "url": "https://stackoverflow.com/questions/13798220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using ajax with MVC I see my product’s bag ViewShoppingCart.ascx <%= Ajax.ActionLink("Посмотреть карзину", "ViewShoppingCart", "Products", new AjaxOptions { UpdateTargetId = "content" })%> And I want to change the quantity in ViewShoppingCart.ascx. <%using (Ajax.BeginForm("UpdateItem", "Products", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/1610531", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trying to click on an image area with bootstrap I am using the Bootstrap CDN library building my website. (And I'm new to HTML in general) I'm trying to use an Image as index page. The Image contains 2 places where buttons should be: I managed to determine and calculate the areas, but I can't make it work... <div i...
{ "language": "en", "url": "https://stackoverflow.com/questions/41700468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to place text on a diagonal line? Hey guyz, I guess you got my concept by seeing the above picture. I'm unable to place diagonal line behind the text and it should get masked by the content placed on it. I wanted it in pure css. Background should be visible through the text. A: You can use a rotated pseudo ele...
{ "language": "en", "url": "https://stackoverflow.com/questions/29604553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: I'm trying to perform a delete request but I'm facing this error Front End import React,{useState, useEffect} from 'react' import axios from 'axios' function Renderreview() { const [renderReview, setRenderReview] = useState([]) useEffect(()=>{ axios.get('/reviews') .then(res => { console.log(res) s...
{ "language": "en", "url": "https://stackoverflow.com/questions/74735050", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: sizeof is used to calculate the size of any datatype, measured in the number of bytes. Doesn't it mean that number of bytes is an integer? When I run these two programs which uses sizeof() operator produces the following output. The only difference between 2 codes is that d is initialized to 0 in first code and -1 i...
{ "language": "en", "url": "https://stackoverflow.com/questions/27793137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Kafka duplicate read I am using Kafka version 0.10.2.1 and Spring boot for my project. I have 5 partitions of a topic which can be consumed by multiple consumers (having the same Group-Id) which are running on different machine. What Problem I am facing is : I am getting duplicate read of a single message with thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/45470749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how retrieve metadata from shoutcast on android? I am developing a player that plays a url of the form shoucast http://292.3.23.23:8000 is, as I can restore the metadata? artist name mediaplayer use the title etc. play no problem, but I can not retrieve metadata anyone know how I can do it and display it in a text t...
{ "language": "en", "url": "https://stackoverflow.com/questions/6638251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Delete row from its id in table using ajax I want to delete spacific row after clicking button from the reference of its id, here is my php code, while($row = mysqli_fetch_array($values)) { echo "<tbody>"; echo "<tr id=\"12\">"; echo "<td>" . $row['pid'] . "</td>"; echo "<td>'<img src='/Login/product...
{ "language": "en", "url": "https://stackoverflow.com/questions/38968144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Update ttl of all documents I have a Document Collection which already have a property named ttl and have values which is greater than 0. Now I need to implement the actual ttl which is provided by Azure. How can I do that ? A: Not exactly sure how to answer what's in your question's title, aside from running some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37650118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wait for submit to explode data in php So I'm basically trying to wait for the user to input a series of numbers before exploding them into an array. Its attempting to explode the data before it is actually entered so I'm getting a Undefined index: numbers error. <form> <input type="text" name="numbers"/> <d...
{ "language": "en", "url": "https://stackoverflow.com/questions/49441931", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is it possible to block IDM on my website? I don't know how the chrome extensions work, but I just want to know. Is it possible to block Internet Download Manager to not run on my website. For example if a user plays a video the IDM should not show a download option
{ "language": "en", "url": "https://stackoverflow.com/questions/45654159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to dynamically send category, cation, label and value to Analytics via Tag Manager? I have managed to create an event to register data on my Google Analytics account with Google Tag Manager. But I can't set any information dynamically. Here is my current setting: I'm firing this event with: dataLayer.push({'ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/41770529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to Create Python Package for Internal Use I am trying to create a package of my simple python program, so that i could distribute it to other developers internally. I am able to import the package in my virtual environment but when I try to install it through pip outside of that virtual environment, I get fol...
{ "language": "en", "url": "https://stackoverflow.com/questions/68575222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Firebase Auth failing to render Sign In Pop-up on mobile Chrome App sometimes My mobile web apps Firebase auth is failing sometimes on Android devices in Chrome It's failing across all 3 federated services: Google, Facebook, Twitter - with newest versions of Chrome and Google Play Services installed. It is failing o...
{ "language": "en", "url": "https://stackoverflow.com/questions/59597670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Error RECURSIVE data type Persistent model with YESOD TL;DR How to make (Key record) an instance of Eq/Show/Read in Yesod I'm having a problem with module recursion. I've declared some of my own data types in a file which I want to be available to Models.hs, since I need to use it in the config/models file. But one...
{ "language": "en", "url": "https://stackoverflow.com/questions/35368294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Transform and copy all properties of an object I have a large monthly summary object with lots of fields. When creating a new one, I need to calculate the amount / percent diff for each field from the previous month, something like so: public Summary addSummary(Summary current) { Summary previous = getPreviousSum...
{ "language": "en", "url": "https://stackoverflow.com/questions/68489334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Creating ad for someone else's page using the Marketing API I'm trying to create an ad for someone else's page using the Marketing API. So far I have * *My own access token which works fine for creating and managing ads for my own page *Another user's access token with pages_manage_ads and ads_management permissi...
{ "language": "en", "url": "https://stackoverflow.com/questions/64656258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Objective-c: passing data from UITable to ViewController with prepareForSegue this is my very first app and, basically, this part consists in passing data from a UItableView to a second View Controll. I managed to learn how to pass data from a simple NSarray (also in a UITable), but my goal is to pass values from a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/42007888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }