text
stringlengths
15
59.8k
meta
dict
Q: find the k-th element in a unimodal array Given a unimodal array A of n distinct elements (meaning that its entries are in increasing order up until its maximum element, after which its elements are in decreasing order), an integer p (that is the length of the increasing first part) and k (the k-th minimum element) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15625316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: flatten dataframe containing list with multiple dictionaries I have currently a pandas dataframe with 100+ columns, that was achieved from pd.normalize_json() and there is one particular column (children) that looks something like this: name age children address...
{ "language": "en", "url": "https://stackoverflow.com/questions/68127827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: React-router Uncaught TypeError: type.toUpperCase is not a function I'm using the latest version of react, react-router, gulp and browserify I got this in beowser console: Uncaught TypeError: type.toUpperCase is not a function my code in app.js: "use strict"; var React = require('react'); var Router = require('reac...
{ "language": "en", "url": "https://stackoverflow.com/questions/32812055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changing data on db on a specific day and time - nodejs I have a specific requirment for a web application which is build with Nodejs/MongoDb/Express/Angular. Application itself is a application for mentors and has a kind of schema like this: var userSchema = new mongoose.Schema({ email: { type: String, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41532732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VSCode uses different System Path's for Python with Run command and Debugger Seemingly out of nowhere my python scripts in VS Code are no longer running correctly. None of the python packages I've installed are importing correctly anymore, getting a ModuleImport error. When I printed sys.path, and sys.version, I fou...
{ "language": "en", "url": "https://stackoverflow.com/questions/71391476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Missing package property files in war build Littered throughout my project are various property files located in packages that are not being included when the package goal is run from a Maven build. Using the 0.10.2 m2eclipse plugin and the default "package" goal. In the project: src->main->java->mypackage->MyPro...
{ "language": "en", "url": "https://stackoverflow.com/questions/3354564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: RxJava - retrieving entry in Observable in second flatMapSingle We have a vertx verticle which receives an id and uses it see if an entity with the id exist in a database. It contains the following logic: if (itemFound) { e.onNext(item_which_was_found) } else { e.onNext(null); } Another verticle has an Observab...
{ "language": "en", "url": "https://stackoverflow.com/questions/56479534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery AJAX Event is Undefined on Firefox This code works in Webkit browsers, but not Firefox. I think I need to put "event" somewhere in a parenthesis, but not sure how and where...? html <div id="calendar_nav"> <span class="button-prev" role="button" onclick="javascript:reloadweek();" data-semana=<?php echo...
{ "language": "en", "url": "https://stackoverflow.com/questions/31031443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure Notification Hub Rest API with iOS Swift 401 Error from device I'm unable to generate a valid Authentication Token using iOS Swift and keep getting a 401 error when trying to send a push notification directly from a iPhone. The documentation on Microsoft Azure's website is incomplete and written in Objective...
{ "language": "en", "url": "https://stackoverflow.com/questions/43555746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reusing same connection in signalR while navigating through different pages I have an MVC project, with multiple pages. I have a long running process, which updates the client on its progress. However, this update is sent only to a single client, instead of broadcasting to all. Clients.Client(ConnectionId).sendMess...
{ "language": "en", "url": "https://stackoverflow.com/questions/16077519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Facebook post to wall £ shows up as special character I am trying to post a message to the facebook feed / wall / timeline that has a £ symbol in it. I have tried: mb_internal_encoding("UTF-8"); $message = "TEST: £ &pound; &#163;"; and setting: mb_internal_encoding("UTF-8"); mb_http_output( "UTF-8" ); No luck... ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11677944", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Auth Token in Redirect Url as Query String I have a .net core backend using Identity and when a user logs in using a password and email the client sends it up to the API and a auth token is generated, that token is then sent back in the redirect url as a query param so that the subdomian can store it in the local st...
{ "language": "en", "url": "https://stackoverflow.com/questions/67117645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is it possible to load a local file without having to ask the user to browse to it first in an AIR Application? I'm writing a small application for myself and instead of using a database I'd like to just use Excel to store the small amount of data I have on my local file system. I want to be able to load that data w...
{ "language": "en", "url": "https://stackoverflow.com/questions/6786236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Differernce between alphabets in C? I wanted to know how to you find the difference between alphabets,for ex: difference between a and d is 3, between s and u is 2. I would like to know the methods in both c and java. A: int i = 'd' - 'a'; will have i set to 3 which is the difference
{ "language": "en", "url": "https://stackoverflow.com/questions/28002635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: I'm adding columns to my mysql database - Migrating my database to south I have a mysql database. I want to add more columns, so I'm starting to use south. I want to set my database up to use south. How do I do this? I followed the steps at 1054 unknown column django after south migration to no avail NO CHANGES TO M...
{ "language": "en", "url": "https://stackoverflow.com/questions/18261117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between RemoveUntil and PopUntil in Flutter navigation 1)What is the difference between RemoveUntil and PopUntil in Flutter navigator? 2)If have 3 screens A->B->C and now assuming i'm at Screen C and i perform popuntil Screen A,so will this pop Screen A as well or will it pop till Screen B and keep Screen...
{ "language": "en", "url": "https://stackoverflow.com/questions/62710395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to output groupby to html table in flask python I have the following code to groupby data in a pandas dataframe and it works fine user_data=user_data.groupby('user searched coin', as_index=False)['predicted coin'].apply(lambda x: ", ".join(f"{k} {v}" for k, v in x.value_counts().items())) however when I try to...
{ "language": "en", "url": "https://stackoverflow.com/questions/68508190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auto fitting a cell to the size of the content? I'm new to tcpdf, creating my first document. I wonder if there is a way to fit the width of the cell automatically to the content. I currently only see options for fixed size, or taking the whole page width until the end of the line. I'm aware of GetStringWidth() bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/16645738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android.R.color.primary_text_light deprecated: What to do now? I am working on a custom android view. I want to draw a text with the standard android text color. Therefore I wanted to use android.R.color.primary_text_light, but the documentation says that it's deprecated and "a text color from your theme" should be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58214678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL Trigger usage : if column is null set other column null How do I realize the following in MySQL with Triggers: When value of some column is null -> set other column values to null and when value of some column is not null -> set other column values to null table definition: CREATE TABLE variations ( id in...
{ "language": "en", "url": "https://stackoverflow.com/questions/21551150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to set default value in material-UI select box in react? I am using Select box from material-ui I want to show "select the value" option by default selected but after that user is not able to select this option. <FormControl required className={classes.formControl}> <InputLabel htmlFor="circle">Circle</InputL...
{ "language": "en", "url": "https://stackoverflow.com/questions/52182673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Blazor @bind + @onchange for a select html tag I am trying to bind an enum value to a select tag and handle an @onchange event at the same time, this is the code: <select @bind="Val" @onchange="OnChange"> @foreach(var v in Enum.GetValues<MyEnum>()) { <option value="@v">@v</option> } </select> @code{ M...
{ "language": "en", "url": "https://stackoverflow.com/questions/71380421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ListView Images change back to original settings when scrolled out of view - Android I have a ListView that contains multiple ListView items. The ListView items Layout contains an ImageView. I use this ImageView as a button. When the button is clicked it changes the ImageView from a gray image to a green image. But ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20232964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Set AuthComponent when doing a manual login with AJAX Using CakePHP 2.0, when logging in the normal way, a helpful set of cookies is set and accessible via AuthComponent::user(). However, this does not get set when doing it the AJAX way. The verification works fine, but I would like to figure out how to set AuthComp...
{ "language": "en", "url": "https://stackoverflow.com/questions/16774509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP Curl request not working but works fine in POSTMAN I am trying to login to MCA portal ( POST URL : http://www.mca.gov.in/mcafoportal/loginValidateUser.do ) I tried logging in with POSTMAN app on Google Chrome which works fine. However, it doesnt work either in PHP/Python. I am not able to login through PHP/Pytho...
{ "language": "en", "url": "https://stackoverflow.com/questions/46377462", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Child nodes Appear in Every Parent Nodes Child nodes appear in every parent nodes. Expected result is that child nodes will appear on a specific parent node. There is also an instance where a children node has a children node again. We were advised not to use a library for this one because before, we used ngx tree v...
{ "language": "en", "url": "https://stackoverflow.com/questions/56201674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Move a file from the current users desktop? I was making a installer for some program I made, and I was wondering if I could copy the folder with the contents from the Current Users desktop to another area, how would I do so?Im using: My.Computer.FileSystem.MoveFile("", "") Move the folder "Emailer" (on the desktop)...
{ "language": "en", "url": "https://stackoverflow.com/questions/15991020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to access react-spring variables inside a nested tag I have the following code on which I would like to move the line strokeDashoffset={spring.x.interpolate(x => strokeDasharray - x)} inside the <polygon ... tag. function Star(props) { const strokeDasharray = 156 const spring = useSpring( { to: { x: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65270847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interaction has already been acknowledged Discord.js This command keeps on returning Interaction has already been acknowledged. How can I solve this? Here's the code I'm currently using: const { SlashCommandBuilder, EmbedBuilder, ButtonStyle, ButtonBuilder, ActionRowBuilder, ActionRow, } = re...
{ "language": "en", "url": "https://stackoverflow.com/questions/73787113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Navigation Bar and Title in Xcode Simulator I can't get the Navigation Bar Items to show in the app simulator using Xcode 7.2.1. I have my Navigation Controller and my Main Scene. My main scene has a Navigation Item set. This is my setup: But when I run the simulator, there's no title bar. Really frustrating. I've...
{ "language": "en", "url": "https://stackoverflow.com/questions/35687955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to test libgdx admob on java application if emulator not working? My emulator is not working fine simultaneously I want to test my "libgdx admob" code on my application. Is there any way to test it on desktop application of libgdx? Please help! A: No, there is no way to test the admob code in the desktop versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/12239488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Meaning of ir as a prefix in Odoo Reading odoo API or source code your would encounter the term ir ( usually as a prefix ), I can't seem to figure out what does it stand for ? for example ir_sequence A: The meaning is Information Repository. A: Although there's no official statement on the matter AFAIK, I tend t...
{ "language": "en", "url": "https://stackoverflow.com/questions/55476833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to open a listview item on a new page How to display an item on a new page by clicking on the item A: You have to register ItemSelected event handler for you ListView. ListView listViewJson = new ListView(); listViewJson.HasUnevenRows = true; listViewJson.ItemSelected += listViewJson_ItemSelected; In Event Han...
{ "language": "en", "url": "https://stackoverflow.com/questions/49441114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Dynamic type casting for JsValue field in Scala Play Since I'm writing a function to request data from another API in my Scala code, the response Json has the format like this: "data": { "attributeName": "some String", "attributeValue": false, "attributeSource": "Manual", "attributeValueLabel...
{ "language": "en", "url": "https://stackoverflow.com/questions/47253553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wrong scroll behaviour when using background-clip When using background-clip: text and -*-text-fill-color: transparent; together with overflow: auto the scrolling is inconsistent in Firefox and it seems to not scroll at all on Chrome (both MacOS). There seem to be rendering issues. I tried changing the background-at...
{ "language": "la", "url": "https://stackoverflow.com/questions/70291008", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Retrieving the name of the method from which HTTP call was made using an Interceptor I am using the Spring ClientHttpRequestInterceptor to capture all outgoing HTTP calls from my applications in order to log the data. In addition to the data that I am already collecting in the interceptor, I want to somehow fetch th...
{ "language": "en", "url": "https://stackoverflow.com/questions/64220282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Specifying Primary Key in JPA I have a class called Coach, that has an attribute of type Person. The person class has an attribute called id. Inside of the Coach table in the database, a field, id, is used as the primary key, which corresponds to the id of the person. How do I specify the @id for the Coach class, us...
{ "language": "en", "url": "https://stackoverflow.com/questions/19470257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error on compile or run the application on VS2010 & SQL Server 2012 Express I'm getting an error when I try to compile or run the application. Performing a simple tutorial, I worked at first but now when I generate the project F6 or try to run it, I always get the error Error 1 Unable to copy "C:\Projects\DatabaseE...
{ "language": "en", "url": "https://stackoverflow.com/questions/10237100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to read binary file data using dlang I'm trying to read struct data from specific position in a a binary file. Found out that I can use import std.stdio and its File, however all i seem to find is all about string handling. I have c-code written data on binary files that compose of several different structs and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/41138993", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Script for checking which button is clicked dosen't work I have N(1..500) buttons create dynamically and I want know which button is clicked by the user and get the Id. I'm using this jQuery function but it doesn't work: $(':button').click(function() { // reference clicked button via: $(this) var buttonEle...
{ "language": "en", "url": "https://stackoverflow.com/questions/25786663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How I can connect Apache server remotely (http://149.4.223.238:8080) through my local machine I am using Eclipse with Tomcat 8.0 and successfully run and deploy web application into Apache server. Now my question is how I can access online apache host address app manager in order to deploy my application on this hos...
{ "language": "en", "url": "https://stackoverflow.com/questions/52721237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SwiftUI View does not update The content of CardView inside the ForEach of CardNavigatorView is correctly updated thanks to an async download task (inside CardView) that downloads an image, and the Image() is displayed correctly, but I detected that the frame around CardView in CardNavigatorView is not updated accor...
{ "language": "en", "url": "https://stackoverflow.com/questions/60048369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Facebook share throwing connection error when sharing Every article on the following website fails when attempting to share the page via the share link in our social media widget. for example: the following page, http://news.gc.ca/web/article-en.do?mthd=index&crtr.page=1&nid=957389 when shared via the following link...
{ "language": "en", "url": "https://stackoverflow.com/questions/29394290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: non-recursive JavaScript JSON parser I have a very large JSON string that I need to parse with in-browser JavaScript. Right now, in a few browsers, I run out of stack space. Unfortunately, my JSON can contain user strings, so I can't use eval or otherwise let the browser parse it. I've looked at a few of the standa...
{ "language": "en", "url": "https://stackoverflow.com/questions/3557497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: PHP recursion issue My idea is simple: if child->indent, if parent->make bold. Lets say p0 is the parent of p1 and p2, p3 and p4 are the childs of p1. p5 is the independent page like p0. So what i wanna get is p0 (bold font) [3px]p1(bold font) [ 6px ]p3 [ 6px ]p4 [3px]p2 p5 (bold font) The problem is, I can't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7599575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add token authentication in the headers with interceptor and the token can be null? I have Application Angular13 with authentication OAuth and I try to add this token for all services. But I don't manage undefined token. I have tried several techniques for calling the token but I always end up with an error, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73802773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Load multiple models within same function of controller I have two functions in my model as class Jobseeker_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function result_getall($id) { $this->db->select('*'); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/32477243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF VisualTreeHelper.HitTest using multiple threads In my application, there is a transparent InkCanvas on top of a Viewport3D object. The Viewport3D shows a large 3D mesh. The user will sketch on the InkCanvas in order to select a portion of the 3D model that the Viewport3D is rendering. The user is allowed to draw...
{ "language": "en", "url": "https://stackoverflow.com/questions/30004430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to link to official PHP documentation in phpDocumentor 2? I use the phpDocumentor 2 to describe few methods. I want to link to the official PHP documentation of a native function. I can write something like this: /** * @see http://php.net/manual/en/function.ucfirst.php ucfirst */ These don’t work: /** * @see...
{ "language": "en", "url": "https://stackoverflow.com/questions/41436377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Node.js with Socket.io on multiple pages? I am building an app with Node.js that will have multiple pages and will be setup like so: * *Page1 : Default home *Page2 : Connects to RabbitMQ and gets data then pushes it to the client via Socket.io. *Page3: Same thing as Page2 except it pushes different data and sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/28357240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prevent navigation from one state to another state in angularjs? I need to intercept when user clicks on browser back button from a specific view to navigate it to home view rather than the default back page. Any ideas on how to do this? I have states defined as below. I can't allow to navigate from the state...
{ "language": "en", "url": "https://stackoverflow.com/questions/37932089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Selenium WebDriver simulate mousemove event with movementX and movementY other than zero I want to test my web application using selenium webdriver and I can't get mousemove event invoked with movementX or movementY other than 0. I've tried using Class: Selenium::WebDriver::ActionBuilder: driver.action.move_to(eleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/40914303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hide bubble in Amcharts Is there anyway to hide bubble in bubble chart of Amcharts. I have a requirement where I need to hide bubble on click on a button. I checked the documentation, where I couldn't able to find anything. can anyone guide me how to do that
{ "language": "en", "url": "https://stackoverflow.com/questions/50589725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Get JSON response for each df row Imagine you have the following df: d = {'KvK': [72941014, 76912027, 75090058], 'line amount#2': [0.0, 0.05, .05], 'ExclBTW': [0.5, 0.18, .05]} df = pd.DataFrame(data=d) df KvK line am ExclBTW APIOutput 0 72941014 0.00 0.50 https://api.kvk.nl/api/v2/search/com...
{ "language": "en", "url": "https://stackoverflow.com/questions/67371534", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to call child function from parent class For example i have class A { void Afunction(); }; and i have #include "A.h" class B: public A { void Function(); }; #include "B.h" class C { void UpdateStuff(); void CreateStuff(); B* Stuff; } I need call CreateStuff(); fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/64533800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Callstack and event loop when running asynchronous queries in JavaScript I am new to JS so please forgive my lack of understanding. Suppose I work with MongoDB and I want to fetch details from a particular database in an asynchronous manner. I would love to understand how this happens in JavaScript because the langu...
{ "language": "en", "url": "https://stackoverflow.com/questions/67678526", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set visual studio setup and deployment release location for multiple projects I have several different services in separate VS solutions that I want to create a single image setup file in a particular location. I can set the Releases (Setup) tab as shown: However, if I set more than 1 solution to create a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/48420889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: convert gstreamer pipeline to python code Im trying to convert gstreamer pipeline to python code using gi library. This is the pipeline which is running successfully in terminal: gst-launch-1.0 rtspsrc location="rtsp://admin:123456@192.168.0.150:554/H264?ch=1&subtype=0&proto=Onvif" latency=300 ! rtph264depay ! h264p...
{ "language": "en", "url": "https://stackoverflow.com/questions/60230807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Group rows in Pandas dataframe, apply custom function and store results in a new dataframe as rows I have a pandas dataframe df_org with three columns - Index (integer), Titles (string) and Dates (date). I have a method process_title(text), which takes a string as input and tokenize, remove stop words and lemmatize...
{ "language": "en", "url": "https://stackoverflow.com/questions/68974288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enum unbinds from the model on ajax call I am reading an enum value from the db then bind it to the model. When i post the form with ajax, somehow the enum is unbound or the model property in null or zero but it display properly on the view. I have posted code below. Im using entityframework and mvc3 //model code co...
{ "language": "en", "url": "https://stackoverflow.com/questions/11116239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ¿How to find request's parameters @ debug mode? Excuse my writing, but English is not my native tongue. This is my situation: I'm checking source code of a web application base on Java. Well, when I want a parameter of request variable, I call request.getParameter(key). But there is an missing parameter, and I execu...
{ "language": "en", "url": "https://stackoverflow.com/questions/29333445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSP Spring-MVC Reusing Controller Logic psuedo: @RequestMapping("/news/feed/featurednews/{feedname}") public List<NewsModel> getFeed(String feedname, @RequestParam("start", optional) Integer startIndex) { return feedService.getFeaturedNewsByName(feedname); } @RequestMapping("/news/{newsPageName}") public String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/3102248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HtmlAgilityPack select "p" nodes that don't have child "p" How can I efficiently select all nodes of type x that are not children of a node of type x? Example with type as p: <p id="top1"> <ul> <li>Text</li> <li>Text</li> <li>Text</li> </ul> <div> <p id="sub"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6699880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Replacing "۔ "with in python I am working in python2.7 with urdu text. what i am doing is reading a text file and replacing "۔" with "end of senetence marker" it is replacing in file but it is placing this in start. i want to add markers at the place of "-" that is at the end of sentences. My code is here: import c...
{ "language": "en", "url": "https://stackoverflow.com/questions/47121058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Control raspberry pi via website in React.js? I've written a nodejs application and put it on my raspberry pi. That's all good. However, I would now like to control my nodejs application via a web browser interface / website built in React. How would I do this? The website would be on the internet, but would need to...
{ "language": "en", "url": "https://stackoverflow.com/questions/41271604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using OLEDB parameters in .NET when connecting to an AS400/DB2 I have been pulling my hair out trying to figure out what I can't get parameters to work in my query. I have the code written in VB.NET trying to do a query to an AS/400. I have IBM Access for Windows installed and I am able to get queries to work, just ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2511442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to initialize object, call its method, then pass it as function argument, in just the function call scope? Is there a way to initialize an object, call a few of its method (it is not possible to just construct the object to be in the needed state), then pass it as an argument to a function, and possib...
{ "language": "en", "url": "https://stackoverflow.com/questions/72559640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 404 errors when calling an asp.net MVC 3 controller with an big URL list I've an action that I've to put in a GET request. The URL is build live, and looks like this: https://my-domain.com/MyController/MyAction?MyParameter=8259%2C8318%2C8201%2C8188%2C7155%2C6894%2C8221%2C8187%2C7030%2C8214%2C7489%2C8145%2C8223%2C82...
{ "language": "en", "url": "https://stackoverflow.com/questions/12564308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getting the actual bytes in a Socket (raw?) Ok im pretty new in this networking stuff in .net especially in sockets. I've already "made" a proxy application and tried using it with my own local website (using wampserver) i selected few pictures that are around 60~k bytes of size yet i receive in my proxy counter aro...
{ "language": "en", "url": "https://stackoverflow.com/questions/4377934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CRUD with external REST service as Model in Loopback A couple quick questions: * *I would like to use an external REST API service (e.g. AgileCRM). With their service, I would like to use the REST Connector within a model that allows me to CRUD AgileCRM's API. Is this possible? If so, what model should be the bas...
{ "language": "en", "url": "https://stackoverflow.com/questions/30291570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loading data from database in the background to tableview JavaFX when I use the scrolling mouse The database has more than 10k rows of data. Everyone will be processed (translated) before it is displayed. That is, one column will be loaded on the rigid and the other is compared with the dictionary and displayed if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/39634081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Downloading Java JDK through Script I have been using the following to download JDK 8u112 via a script. wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jdk-8u112-linux-x64.tar.gz Recently, it throws ERROR 404:...
{ "language": "en", "url": "https://stackoverflow.com/questions/44162061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Parse incomplete ellipses from DXF files I am developing a DXF parser by using the dxflib library. I have a problem parsing ellipses. When I parse an ellipse I receive the following data: struct DL_EllipseData { /*! X Coordinate of center point. */ double cx; /*! Y Coordinate of center point. */ dou...
{ "language": "en", "url": "https://stackoverflow.com/questions/31137778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I change a FL_Window's caption other than in a constructor argument? MainWindow::MainWindow(int w, int h, const string& c) : Fl_Window(w, h, c.c_str()) // Don't call constructor over here { script.load_file(WIN_CONFIG_SCRIPT); int width = script.get_global_int("width"); int height = script.get_globa...
{ "language": "en", "url": "https://stackoverflow.com/questions/8805472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: django channels str doesnt suppoer buffer API I am trying to work with django and channels with the help of https://blog.heroku.com/archives/2016/3/17/in_deep_with_django_channels_the_future_of_real_time_apps_in_django however this code doesn't seem compatible with python 3.4 on my ws_connect: @channel_session def w...
{ "language": "en", "url": "https://stackoverflow.com/questions/36113651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Alignment in 64bit machine is not 8 Bytes I am trying to find out alignment on my 64bit machine(Win10 on Intel iCore7). I thought of this experiment: void check_alignment(char c1, char c2 ) { printf("delta=%d\n", (int)&c2 - (int)&c1); // prints 4 instead of 8 } void main(){ check_alignment('a','b'); } I was...
{ "language": "en", "url": "https://stackoverflow.com/questions/51622751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to use PhpUnit/DbUnit with a real Doctrine EntityManager for functional testing I'm using PhpUnit/DbUnit to create a set of 5 to 10 fixture records. I use in-memory sqlite. I successfully can use a Doctrine\DBAL\Connection to access it, so I can use methods like ->insert( $tableName, $data ); for my tests. Now I...
{ "language": "en", "url": "https://stackoverflow.com/questions/52864751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get p-values for random effects in glmer I want to analyze when the claims of a protest are directed at the state, based on action and country level characteristics, using glmer. So, I would like to obtain p-values of both the fixed and random effects. My model looks like this: targets <- glmer(state ~ ENV + ...
{ "language": "en", "url": "https://stackoverflow.com/questions/53685637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JSON in HTML escaping I'm including JSON in an HTML tag, considering the only possible input characters for the JSON will be "':{},[a-z][0-9] is it possible for JSON or HTML to be broken with my approach? What should I be wary of when using JSON across HTML and Javascript? <input type="hidden" value="<?=htmlspecialc...
{ "language": "en", "url": "https://stackoverflow.com/questions/11090308", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Generate a Random Number That Evenly Divides into Another in C# I am making a quiz that quizzes a user on basic arithmetic skills. The problem I have is that I don't want to be able to generate a division question that allows real numbers. I want all answers to have integer answers. How can I randomly generate a num...
{ "language": "en", "url": "https://stackoverflow.com/questions/35571589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sum negative and positive values separately I am attempting to sum up positive and negative values separately in XSL v1.0. I have XML like this: <Billing_Statements> <Statement_Details> <Invoice_Details> <Meter_Details> <Consumption>XX</Consumption> </Meter_Details...
{ "language": "en", "url": "https://stackoverflow.com/questions/15491152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can you sign hyperledger-sawtooth transactions using metamask keys? Hyperledger sawtooth uses secp256k1 ECDSA to sign transactions: https://sawtooth.hyperledger.org/docs/core/releases/1.2.5/_autogen/txn_submit_tutorial.html?highlight=transaction%20sign And aparently ethereum uses the same type of signature: http...
{ "language": "en", "url": "https://stackoverflow.com/questions/64582064", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binary search tree successor How can I change the following function to let me return the successor of an integer k to a level between h1 and h2? h1 and h2 are ranges for example h1 = 0 and h2=3, I want the successor of k who is at depths between 0 and 3 //BST declaration struct node { int key; struct node *le...
{ "language": "en", "url": "https://stackoverflow.com/questions/32468544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to share to git a Dynamic Web Project in Eclipse I make a new Dynamic Web Project, and then go team->share Project. Eclipse advises against using a repository in the same place so I do as I am told and create one somewhere else. After doing this WEB-INF and WEB-INF/lib and also "Java Resources/src" end up with "...
{ "language": "en", "url": "https://stackoverflow.com/questions/21893588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sum the values for different keys with id same in javascript I would like to know how to sum more than one key values of object for same id in javascript for same id, how to sum price and total in my obj I have tried the code below var obj = [{ id: "1", price: 100, total: 200 }, { id: "1", price: 1...
{ "language": "en", "url": "https://stackoverflow.com/questions/59855649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: reading value from a file in batch script We can set the value of a variable (say, "upper_bound") in a batch file in the following way: SET upper_bound=3 But is there any way to read this value '3' from a input.txt file which will just contain value 3? A: Like this: SET/P upper_bound=<input.txt
{ "language": "en", "url": "https://stackoverflow.com/questions/40289122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Data only shown when application starts I have two problems. First, I managed to connect a DB which I created in visual studio and connected it to the form, but the changes are shown only when the form is started from the .exe file. Could someone explain to me why? Second, know I want to connect a second WinForm to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/59254638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bash, searching in all pdf files I want a script that would find my everything what I want in all of my pdf files. So I wrote this #!/bin/bash for file in */*.pdf; do printf "$file\n" echo "--------------------------------------------" pdftotext $file - | grep -i "$1" echo "----------------------------------------...
{ "language": "en", "url": "https://stackoverflow.com/questions/35069650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Inline for a constructor I am trying to completely understand what inline does but I get confused when it comes to constructors. So far I understood that inlining a function will put the function in the place it is called: class X { public: X() {} inline void Y() { std::cout << "hello" << std::endl; } }; i...
{ "language": "en", "url": "https://stackoverflow.com/questions/18036359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Segmentation Fault 11, Xcode 8.2.1, Swift 3 I'm trying to create an archive of my application, but I'm getting a segmentation fault when building for an iOS Device. I do not encounter this issue when building for the simulator. So far, I have: * *Cleaned my project *Cleaned my build folder *Deleted my derived d...
{ "language": "en", "url": "https://stackoverflow.com/questions/42239781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to open a file upon button click PySimpleGui my goal is to create a button and when the button is pressed to open txt file. I have already created button in the layout but I can't figure out how to make a txt file open upon button click. This is python and I'm using PySimpleGui as framework. The txt file is very...
{ "language": "en", "url": "https://stackoverflow.com/questions/67065794", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: App is crashing due to connections left open. Should I close them in the DAL, or in the domain repositories? I have an ASP.NET MVC application that was running fine in dev & test but is crashing under load. The culprit is failure to close the OdbcConnections that I'm using in a custom DAL. The underlying database is...
{ "language": "en", "url": "https://stackoverflow.com/questions/37815873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Re-opening stdout and stdin file descriptors after closing them I'm writing a function, which, given an argument, will either redirect the stdout to a file or read the stdin from a file. To do this I close the file descriptor associated with the stdout or stdin, so that when I open the file it opens under the descri...
{ "language": "en", "url": "https://stackoverflow.com/questions/9084099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Remove planes if boolean = true not working I'm trying to remove my planes when the user inputs that they have landed. This doesn't work. Can anyone see any problems with my code to why it does not work. Here is my code: Plane static boolean isLanded; public boolean isLanded() { return isLanded; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13860033", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how can I display UIImage from image url The code below works fine if I give statically but imgDescView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL: [NSURL URLWithString:[NSString stringWithFormat:@"http://4cing.com/mobile_app/uploads/pageicon/6.jpg"]]]]; Same code - I am passing the image url nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/15519277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's wrong with following google ecommerce analytics code I have waited for more than 72 hours but ecommerce data is not tracked. Tracking is enabled in the analytics account. <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-xxxxx-1']); _gaq.push(['_setDoma...
{ "language": "en", "url": "https://stackoverflow.com/questions/6221933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why numeric enums can be assigned to any number in typescript? I want to know why numeric enums can be assigned to any number. what's different between numeric enums and string-based enums? enum TYPES { False = 0, True = 1, UnKnow = 2, } type IType = { type: TYPES } const demo1: IType = { type: 9 // w...
{ "language": "en", "url": "https://stackoverflow.com/questions/57051076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get the six week sunday's weekno in SQL server 2008 r2? I want to get the six week sundays weekno using the SQL Server 2008.For example i have the November month, date 18, year 2012. The WeekNo of the November month 18 th date is "47". A: Try this: SELECT DATEPART(week,'18-nov-2012')
{ "language": "en", "url": "https://stackoverflow.com/questions/13639005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can i put my searchbox and navbar at the same line? I'm trying to make my search box in the same line with the "home, about, contact..." stuff but it doesn't seem to worrk, i guess my CSS just not enough to make that, can anyone help me to make them stand in the same line? Thank you so much! This is css: .contai...
{ "language": "en", "url": "https://stackoverflow.com/questions/68463019", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Notification Builder action not working on API 31 (Android 12) I'm stuck while dealing with this api 31. i made a chat app. When I create an action button to receive a phone call it works on android below API 31 or below Android 12, but it doesn't work on Android 12 (only work if the notification is not has action)....
{ "language": "en", "url": "https://stackoverflow.com/questions/74733208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }