text
stringlengths
15
59.8k
meta
dict
Q: React Native, AWS, Error only on Android "TypeError: Cannot read Property 'handle' of null" I ran into a bug whenever I run my React Native app on an Android device (physical and emulator). Yet, no problem at all on iOS. These functions are supposed to scan the database table for user handles and return an object if...
{ "language": "en", "url": "https://stackoverflow.com/questions/53489605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stop div overlapping a container Ok so I am currently building a bespoke WordPress theme and I'm just having one of those moments where my head is completely blank... It's like I know it but I just can't figure it out! Basically I have a spotlight section where it has an image, and then a container at the bottom of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/52248939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python appending to List from a nested Dictionary I have a nested dictionary like the example below: dev_dict = { "switch-1": {"hostname": "switch-1.nunya.com", "location": "IDF01"}, "switch-2": {"hostname": "switch-2.nunya.com", "location": "IDF02"}, "...": {"hostname": "...", "location": "..."}, "s...
{ "language": "en", "url": "https://stackoverflow.com/questions/72481157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In reactstrap, how do I customize the alert message and visible state from a child component? I'm using React 16.13.0 and trying to use the reactstrap Alert component to display messages when certain forms are submitted. I have positioned the Alert component where I want in my App template ... import { Alert } from...
{ "language": "en", "url": "https://stackoverflow.com/questions/62882456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: my users not null but showing cannot read user.name when I try to fetch all the post.user.name it shows error like Cannot read properties of undefined (reading 'name') I just wanna display all the user in my node Although user is not null when I write like post.user it shows me result like { _id: new ObjectId("632ea...
{ "language": "en", "url": "https://stackoverflow.com/questions/73888848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can resolve Shibboleth error: Invalid Attribute Id I integrated Siteminder with shibboleth using SAML2. In the saml2 response, in the Assertion section, I have the double "Id" : In the shibboleth I've the following error: Invalid attribute Id. It's possibile to ignore the attribute "Id"? I am not able to resol...
{ "language": "en", "url": "https://stackoverflow.com/questions/57954773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: changing element value with event onkeyup() javascript Please help me with my script. I don't understand why my script does not working :( <html> <body> <input type="text" id="input" onkeypress="myFunction()"> <input type="button" value="Hallo" id="but"> <script> function myFunction{ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/45847192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework Scaffold-DbContext Login failed for user I am trying to build an API using Visual Studio 2017 and .NET Core 2 with Entity Framework Core. I am following the directions from This Link. I am on the section titled: Reverse engineer your model The command they give to run is as follows: Scaffold-DbCon...
{ "language": "en", "url": "https://stackoverflow.com/questions/47399666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How do I retrieve the row with the max value from this table? Hopefully this is the correct place to ask this question. In this SQL cross-join exercise from codeacademy with the following code: SELECT month, COUNT(*) FROM newspaper CROSS JOIN months WHERE (start_month<=month) & (end_month>=month) GROUP BY month; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69315831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Angular-formly: Why does the directive behave differently from the type? I have two input fields, both generated by the same template. On both I am setting ... templateOptions: { ... required: true } One input field is registered using formlyConfig.setType the other using a directive. I have created a JS Bi...
{ "language": "en", "url": "https://stackoverflow.com/questions/34660454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Identifying the data type of an input I am trying to print the data type of a user input and produce a table like following: ABCDEFGH = String 1.09 = float 0 = int true = bool etc. I'm using Python 3.2.3 and I know I could use type() to get the type of the data but in Python all user inputs are taken as strings and...
{ "language": "en", "url": "https://stackoverflow.com/questions/22199741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: adding dashboard state (as described in get started tutorial) failed Hi I am following the get started video tutorial and stuck when I try to add the dashboard state. After filling in the Name and id I press the add button and the state window is closed and the edit modus is cancelled. Am I doing something wrong or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54080881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stay on the page after minimizing the app with WebView Xamarin Forms I try to keep the contents of webView after minimizing the application. how to do? here are my codes public partial class ItemCompte : ContentPage { string _fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/63602426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using Scanf with pointers I am fairly new to C and I am having trouble using scanf with pointers. I have been told to get user inputs for 3 int and 1 char values and then print them back out using pointers. This is the best I could come up with so far: int a, b, c; char d; int *x = &a; int *y = &b; int *z = &c; char...
{ "language": "en", "url": "https://stackoverflow.com/questions/73996103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Binding a JavaScript array of dates to a page's view model on form submit I added the following field to my form: <input asp-for="MyDates" type="hidden" name="MyDates" id="MyDates" /> In my JavaScript I allow the user to select multiple dates from a schedule and store them in an array. Everytime the array is update...
{ "language": "en", "url": "https://stackoverflow.com/questions/35186942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Call external JS file based on "media screen" value I'm trying this but it is not working: <html> <head> <script src="js/menu-collapser.js" type="text/javascript" media="media screen and (max-width: 599px)"></script> </head> ... </html> //menu-collapser.js : jQuery(document).ready(function($){ $('.main-navigati...
{ "language": "en", "url": "https://stackoverflow.com/questions/15823137", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Native Base picker for iOS and Android with dynamically created item list I'm trying to write a Native Base Picker component in a Vue Native project that's compatible with both iOS and Android. The following code works properly on both: <template> <nb-content> <nb-text>Picker</nb-text> <nb-picker mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/60386455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Varnish Service + PHP URL Paramaters I am using varnish service to speed up my website, but I cannot make work basic php function. Can you please help me with that ? $purecookie = $_GET['id']; setcookie( 'purecookies', $purecookie, time() + (10 * 365 * 24 * 60 * 60), "/", ".domain.com" ); If I turn down varnish ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/32456988", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Escape HTML on ExtJS application generally? I have already develop ExtJS application that application has more than 200 grids. Some of grid have <> like HTML. My grid can't view HTML So i change Server side function(common get function) as htmlspecialchars($value, ENT_QUOTES); After that grid can view HTML value lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/29115500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to find the data from the array? First, I apologize asking about the code that I didn't understood. Here is the code that is currently used to find from the array. In this code there is a function findProducts(p). I am confused about the way this function is being called this.findProducts, [p.id]. Can anybody pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/53531710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cast a list column into dummy columns in Python Polars? I have a very large data frame where there is a column that is a list of numbers representing category membership. Here is a dummy version import pandas as pd import numpy as np segments = [str(i) for i in range(1_000)] # My real data is ~500m rows nums = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/74432537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using html-base tag in aspx page I have an aspx page which shows preview of html-email. The html email comes from DB as text. This is assigned to a div. Now i have a base tag which carries a url which is dynamic based on the DB server name. When i assign the html from DB to the div, the base for the relative url of...
{ "language": "en", "url": "https://stackoverflow.com/questions/6436490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Google Geocode Returning Undefined (Can't figure callback function) I'm trying to store the values of the latitude and the longitude from the response that I get from the Google Geocoding API. Right now I am using a fixed location in California. My HTTP request keeps returning undefined. I've been looking...
{ "language": "en", "url": "https://stackoverflow.com/questions/29666093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Running flutter web app locally without android studio I have a flutter app using Firebase's cloud firestore. I've done the web build and running it on Chrome through Android Studio works well. I would like to share my web app progress to my client but don't want to host it (because it's not finished yet). Hence I'd...
{ "language": "en", "url": "https://stackoverflow.com/questions/65036423", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why can't I use IIFE with "this"? My test code: var colorChanged = function (c) { //valid syntax: (function (x) { x.css('color', '#f00') })($('.' + c)); //invalid syntax: (function (this) { //Uncaught SyntaxError: Unexpected token this this.css('color', '#f00') })($('.' + c)); }; <div...
{ "language": "en", "url": "https://stackoverflow.com/questions/34172799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Retrieve next id in database which may not be the next auto incremented number php mysql apologies as this seems to me to be a very simple answer, but am struggling to find a solution having searched around. I have a pretty simplistic table that stores a series of info for booking a caravan - options are one week or...
{ "language": "en", "url": "https://stackoverflow.com/questions/26253322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: hMailServer adress of recipient instead of distribution list We use the hMailServer to forward incoming mails via distribution list. The problem is that the recipient receives the mail with the address of the distribution list instead of the actual recipient address. Is there a possibility that the recipient receive...
{ "language": "en", "url": "https://stackoverflow.com/questions/75285459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to insert dynamic image as option in php and mysql im currently developing a small school project that involve creating a style survey for an interior design website to identify the type of room that a client wish to decorate. i created a dynamic list that will return the list of option from the database which...
{ "language": "en", "url": "https://stackoverflow.com/questions/39689702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Grails Searchable plugin and GORM marshalling I have an one-to-one relationship (hasOne in User domain and belongsTo in UserInfo domain). When the BootStrap is executing I get an exception: org.compass.core.converter.ConversionException: Trying to marshall a null id [id] for alias [UserInfo] this line of code prod...
{ "language": "en", "url": "https://stackoverflow.com/questions/13358117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ignite topology and partition owners left am facing below issue either when the Kubernetes or Ignite client nodes are getting restarted then we are not able to establish the connection to Ignite pods. We deployed the ignite as a Service and running in a Client/server mode. Caused by: org.apache.ignite.internal.proce...
{ "language": "en", "url": "https://stackoverflow.com/questions/73237161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Qt - Keyboard Hook I'm using Qt 5.1.1 and I want make keyboard hooks, but Qtx do not accept my version, but I REALLY need this, for an autoclicker project. Any lib is good to me, but it need to be multiplatform, and what's the best way to "click" in Qt?
{ "language": "en", "url": "https://stackoverflow.com/questions/19470827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linking CSS file in php document nested in pages folder Web development newbie here. My site is becoming large enough that recently took a few steps to help manage it including: * *Using a separate header.php; footer.php; and navigation.php file with an includes tag. *Filed additional pages under root/pages. Belo...
{ "language": "en", "url": "https://stackoverflow.com/questions/64668065", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WinCE 6.0 device not responding to ping i am working on WinCE 6.0(On ARM9) based (Headless)Device. i established a ethernet(EMACB1) connection between My Desktop(XP-SP3) and WinCE Device. the device shows network established but wince device not respong to ping. Below are my TCP/IP Settings: Desktop: IP Address: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/11985853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to wrap Erlang code to a certain character limit Suppose I have a method timer:apply_after(timeout, module, method, [Hosts]) Is there a tool that can help format this into something like: timer:apply_after( timeout, module, method,...
{ "language": "en", "url": "https://stackoverflow.com/questions/39695448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding delete button to a div I am going to add a delete button to new items made. This delete button removes the item my-item from the page without affecting others. Code I have tried: <!DOCTYPE HTML> <html> <head> <meta charset = "UTF-8"> <title>Simple Demo</title> <style> .my-item{ widt...
{ "language": "en", "url": "https://stackoverflow.com/questions/34613076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SQL query to group multiple groups I'm parsing some IIS server logs (with LogParser) and I'm having a little trouble creating a query that will give me the aggregate count of each type of browser (user agent). Here is my query so far: SELECT COUNT(*) as totalHits, CS(User-Agent) as browser FROM E:\Logs\ex111101.log ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9012613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: javax.el.ELException: Property 'askQuestiοn' not found on type trainforjava.domain.Questiοn My problem is the following. I've a list which i s well created, but I can't manage to display it on my web page. Here is the pojo : package trainforjava.domain; public class Question { public int id; public String ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39090700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Space Complexity of generating all possible binary search trees I used the following recursion algorithm to calculate the possible cases of binary search trees given its number of nodes being n public List<TreeNode> generateTrees(int n) { if(n == 0){ List<TreeNode> empty = new ArrayList<TreeNode>(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61577493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: zypper dependency resolution I am facing problem while installing an "Company-hardening-1.0-1.noarch.rpm" RPM through zypper. There are 2 systems involved. Both are SUSE-Linux-Enterprise-Server-11-SP3 VMs. System 1: (working) In this system I am able to install the rpm, in this case, zypper is automatically resolvin...
{ "language": "en", "url": "https://stackoverflow.com/questions/40262734", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Black bar when increasing window size in WPF I have a small program with two checkboxes. The window height is 120. When one of them is checked the windows height should increase to 180. If both are checked it should increse to 220. If you uncheck them they should decrease to 180 for 1 checkbox and 120 if none are ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/47451882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Split from list in python In my list I have few items, i.e., List=['a/c/d/eww/d/df/rr/e.jpg', 'ss/dds/ert/eww/ees/err/err.jpg','fds/aaa/eww/err/dd.jpg'] I want to keep only from 'eww' till last '/' Modified_list=['eww/d/df/rr/', 'eww/ees/err/err.jpg','eww/err/'] A: Use find(sub_str) function. new_list = [item[ite...
{ "language": "en", "url": "https://stackoverflow.com/questions/72272668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: One Click at .click(function() Not Working in Ajax I want to open another page on my site with this ajax: <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <div onclick="$(this).click(function(){$(this).html(loadE);$(this).load('http://domain/page2 #idContent')});">OPEN</div>...
{ "language": "en", "url": "https://stackoverflow.com/questions/37606218", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Neo4j 1 to 1 Relationship I have two nodes, "client" and "builder". I want to find only the relationships where the client only has 1 builder, and that builder only has that one client so a 1-1 relationship. So far my query is MERGE(b:Person{name:csv.name) MERGE(c:Person{name:csv.name}) WITH collect(distinct b) as...
{ "language": "en", "url": "https://stackoverflow.com/questions/54429747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open & write to a file-like object but avoid AttributeError about missing open() I want to have function that can write content into a file-like object. It accepts pathlib.Path objects or io.StringIO. The first one need to be open()'ed first, the second one not. Because of that it seems to me I have to explicte type...
{ "language": "en", "url": "https://stackoverflow.com/questions/74900422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: std::ranges::find_if - no type in std::common_reference I'm using the SG14 flat_map as a container. As per a standard map, it takes Key and Value template parameters. Unlike a standard map, however, it doesn't store std::pair<Key, Value> in a binary search tree, but rather stores the keys and values in two separate ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71143920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Installing ASP.net DNX with Powershell 2.0 I am trying to get an install of ASP.Net DNX on Windows. I followed the instructions at: https://github.com/aspnet/home#cmd The problem is. when I run this, I get an error stating: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights re...
{ "language": "en", "url": "https://stackoverflow.com/questions/30127178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to rearrange data from a set of columns to another set of columns in excel? Hey so I'm new to VBA and I'm trying to move data from a column to another column in a different format in the same worksheet. So the original data looks like this: Type Fx Fy Fz 1 DL 1 2 3 1 LL 4 5 6 1 C1 7 8 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/20103385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python remove all console output I want to erase all console output that was printed before each loop iteration. Currently I have a code like this: import sys from time import sleep def delete_last_printed_lines(n=1): CURSOR_UP_ONE = '\x1b[1A' ERASE_LINE = '\x1b[2K' for _ in range(n): sys.stdou...
{ "language": "en", "url": "https://stackoverflow.com/questions/38013983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Copy files from pwd to another directory using Python I'd like to copy all files in my present working directory to another location. I have tried variations of the below: import shutil shutil.copyfile('/*','/my/other/directory/location') This gives the error: OSError: [Errno 2] No such file or directory: '/*' I am...
{ "language": "en", "url": "https://stackoverflow.com/questions/21633692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SFML with Code::Blocks - "undefined reference to sf::Texture::getSize()" I used this tutorial http://www.sfml-dev.org/tutorials/2.0/start-cb.php to add SFML to my Code::Blocks project, but I got errors like that: undefined reference to sf::Texture::getSize() const undefined reference to sf::Sprite::Sprite() undefine...
{ "language": "en", "url": "https://stackoverflow.com/questions/27864412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Dynamic setTimeout causes "maximum call stack exceeded" error I am trying to create setTimeout that will call function and then function will call setTimeout again but with different interval value. The issue is that it seems to fall into infinite loop. These are starting variables: var interval = 1500; var elapsed...
{ "language": "en", "url": "https://stackoverflow.com/questions/41354357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Uploading a small .txt file and reading its line in Java Google App Engine I am trying to upload a small txt file with few lines and read it in my rest application. I am able to get it work on my local machine with GAE (1.9.25) run time on Jetty server. However when i deploy it to cloud and try to upload a file it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33263906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Attach author to POST request to create an object It's probably very basic, but I am starting to learn Django REST Framework. So far I've succeeded with read-only operations. And now I got stuck on this problem. I have a model: class PersonComment(AbstractComment): person = models.ForeignKey(Person, on_delete=mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/46268870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to actually reduce the AWS Elasticsearch cost with Ultrawarm setup? In my ES cluster, I was having 3 master nodes and 3 data (Hot) nodes with hundreds of indices. To reduce the cost, i added 2 Ultrawarm (warm) indices and migrated all my indices to warm nodes. But it seems like the price is not depend on the sto...
{ "language": "en", "url": "https://stackoverflow.com/questions/69157501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I rank a list of students and display their names in php Mysql table structure looks like this: subject ca quiz exam exam_cumulative positionineachcourse matric_no name Maths 10 20 34 64 HT/001 John Econs 14 14 40 68 H...
{ "language": "en", "url": "https://stackoverflow.com/questions/45334733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to switch Bash or zsh from Emacs mode to vi mode with a keystroke? I'd like to be able to switch temporarily from emacs mode to vi mode, since vi mode is sometimes better, but I'm usually half-way through typing something before I realize I want to use vi mode. I don't want to switch permanently to vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/2640141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: grails one-to-many dynamic form submitting I have the following domains in my application: class Sport implements Serializable { Set terms static hasMany = [terms: Term] static mapping = { terms cascade: "all-delete-orphan" } } class Term implements Serializable { String term Str...
{ "language": "en", "url": "https://stackoverflow.com/questions/27426955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Springmvc to raml document generation I want generate raml document using springmvc controller classes is there any already devloped source code exist or not if not ayone will please guide me how should i start it A: There are a few options, but the most popular is using SpringFox: https://github.com/springfox/spri...
{ "language": "en", "url": "https://stackoverflow.com/questions/51683119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to do a new data frame of the latest value reported in each column? I've got a table like this: country continent date n_case Ex TD TC -------------------------------------------------------------------------------- Italy Europe 2022-02-24 6 NA ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72241071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Making clean double successive axios requests with React/redux I need to make an axios post request to update a list and then an axios get request to fetch the updated list. I managed to do these operations with the following code axios(postOptions) then axios(getOptions): export function addItem() { ... return ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63910796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Decode only the first level of a JSON in PHP The question I have a JSON string which I would like to decode. However, I only want the first level to be decoded, the rest of the JSON should stay as string values instead of nested arrays. Using a similar technique, the generated array (with nested string values) shoul...
{ "language": "en", "url": "https://stackoverflow.com/questions/61974085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Cannot change the file property on ios 7 jailbreak iphone my device is iphone 5s with ios 7, it is jailbreak. I failed to change the file property using the follow code on jailbreak ios 7, but it will be successfuleif ios version is less than 7, my code is int main(int argc, char *argv[]) { @autoreleasepool { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21192647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Are TCP/IP Sockets Atomic? It is my understanding that a write to a TCP/IP socket will be atomic if the amount of data written is small. By atomic, I mean that the receiver will receive all of the data or none of the data. However, it is not atomic, if the amount of the data written is large. Am I correct? and if so...
{ "language": "en", "url": "https://stackoverflow.com/questions/43401927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Place Highstock inside a SVG can you help me to place a Highchart inside a SVG element instead of an HTML . Cascaded elements work fine. I have already done it with the jquery SVG plot. But Highchart throws an error 13. What can i do? Kind regards Markus Breitinger A: You can generate chart in div, which will hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/17678656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Meteor + React: cosmos:browserify error "Converting circular structure to JSON" I'm building a web application using Meteor + React and the project suddenly no longer runs and gives the incomprehensible error seen below. A friend cloned the same repository and it run perfectly on his computer. I suspect that it has ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35496422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to change each page header? This might seem like a silly question, but I am using VS 2010 and in the Site.Master page, there's a tag <h1> which allows users to type in the title header. E.g. In this case, the title is 'ASP.NET Application' I'd like to have a different title in every page of my application. How...
{ "language": "en", "url": "https://stackoverflow.com/questions/15915924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get sub array from a 3D array If I have an array: int[,,] mainArray = new int[10,10,3]; How can I get a sub array: int[] sub = mainArray[0,1]; // Unfortunately this doesn't work Where sub would contain the 3 elements sub[0] = mainArray[0,1,0]; sub[1] = mainArray[0,1,1]; sub[2] = mainArray[0,1,2]; It would be eas...
{ "language": "en", "url": "https://stackoverflow.com/questions/21842566", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: JavaFX Error: Incompatible types: ContentDisplay cannot be converted to VPos I use a GridPane as layout for Main, but when I add a Button like in my code... Show this type of Error.. Incompatible types: ContentDisplay cannot be converted to VPos My controller and Main class public class Main extends Application ...
{ "language": "en", "url": "https://stackoverflow.com/questions/38565914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I convert an int to two bytes in C#? How do I convert an int to two bytes in C#? A: You can use BitConverter.GetBytes to get the bytes comprising an Int32. There will be 4 bytes in the result, however, not 2. A: Is it an int16? Int16 i = 7; byte[] ba = BitConverter.GetBytes(i); This will only have two byt...
{ "language": "en", "url": "https://stackoverflow.com/questions/3919804", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Python - Which data structure to use? I have a large array of numerical data that I need to sort, insert, and move values backwards and forwards in the sorted order. I was previously using a simple array. Now each value has to be linked with an id (a unique int, just along for the ride). Can I extend the array class...
{ "language": "en", "url": "https://stackoverflow.com/questions/7961620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Cancel toggle when another toggle is activated? I'm having (a probably unnecessary) amount of trouble with a simple bit of code. I have 3 images, that when clicked open one of three divs below. I simply want to be able to cancel the toggle on any previously opened divs so that only one can be open at any given time....
{ "language": "en", "url": "https://stackoverflow.com/questions/12503521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: bang seems to not exclude files in .gitignore I have a foo directory which contains 2 files, bar and baz. I have the following .gitignore file, right above the foo directory: foo/ !foo/baz I expect this to ignore everything in the foo directory except it should not ignore baz. However, everything in foo is still be...
{ "language": "en", "url": "https://stackoverflow.com/questions/41559572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: I want to parse a Gson information but getting errors I am trying to send the data of source and destination. public void sendPost(final SearchSendModel searchSendModel){ //public void sendPost( String source, String destination){ Call call = mAPIService.sendSearch(searchSendModel); //Call call ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61833020", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sideNavBox cannnot do responsive on Master Page Why my sideNavBox can't be responsive? I tried to apply col-md-3 to my sideNavBox and it shows me like this, It seems that sideNavBox causing something not to move? Here is my Full Master Page code: https://gist.github.com/anonymous/a6e3b76d1d621903f7262920234c3e37
{ "language": "en", "url": "https://stackoverflow.com/questions/47301460", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting service instance in IAuthorizationPolicy Typically, you can get the service instance from the OperationContext like this: OperationContext.Current.InstanceContext.GetServiceInstance() However, when you're in an IAuthorizationPolicy, InstanceContext is null. Is there another way to get the instance of the s...
{ "language": "en", "url": "https://stackoverflow.com/questions/25627479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: GWT Development Mode in Eclipse leaving opening too many sessions I've had this problem for a couple days now. After about an hour or two of running my GWT dev server without restarting it, my "Development Mode" tab is showing many sessions remaining open. Open or at least it's showing them as active. I've seen a...
{ "language": "en", "url": "https://stackoverflow.com/questions/16595543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ std::bind to std::function with multiple arguments This question is going to be very much a duplicate, but I've read many of the examples on stack overflow and the common solution is not compiling for me, and I'm trying to figure out why. So I have a function I want to store in another class, the minimal example...
{ "language": "en", "url": "https://stackoverflow.com/questions/73589746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem with, ESP8266WebServer::on(const char [6], )' I'm learning how to use 'class' in C++, and when I'm trying to call a function from my class I'm getting this error: Error C:\Users\Mateus\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.0\libraries\ESP8266WebServer\src/ESP8266WebServer.h:90:8: note: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61644875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add Custom UIMenuController in SwiftUI I want to highlight some sentence inside the TextEditor by giving selection on the text, then I want a new custom UIMenuController but in Swift UI, I've followed some tutorial and it works in UIKit but it can't appear when I try to implement in inside swiftUI using UIRepresenta...
{ "language": "en", "url": "https://stackoverflow.com/questions/64303979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling functions from a C++ dylib and Header in a Cocoa Application Great website, has been super helpful these past few weeks. I am writing an app in Cocoa that requires the use of a C++ dylib and header files. I need to call functions from a header file in my app. Ive tried several ways to import and include thes...
{ "language": "en", "url": "https://stackoverflow.com/questions/3391543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Spring boot with data jpa getting error on startup Getting an error while starting my Spring boot application. Here is a stack trace but I am unable to find the root cause. I am using spring boot 2.3.4 with spring data jpa. Any help appreciated. {"timestamp": "12/21/2020 18:52:02:0871", "class": "org.hibernate.engin...
{ "language": "en", "url": "https://stackoverflow.com/questions/65393677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does C# compiler convert and store static variables? My program uses the code: Convert.ToDouble(Int32.MaxValue) Fairly regularly. I was just curious about how this is handled by the compiler. Is it stored as a static double or is it executed in run time? A: The constant Int32.MaxValue is stored at compile time, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/17182609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Parse string using C# LINQ Need help in parse string using C# LINQ I have a string like this 11=205129022,453=8,448=CompanyID,447=D,452=63,448=userid,447=D,452=11,448=CompanyName,447=D,452=13,448=W,447=D,452=54,77=O,555=2 I would like to split this string on 448= then take an array start getting line "starts with 4...
{ "language": "en", "url": "https://stackoverflow.com/questions/48367779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to time openGL animations on iPhone? I wonder if there is a time function in apples SDK that is guaranteed to be monotonically increasing? I heard about [NSDate timeIntervalSinceReferenceDate] (which isn't accurate) and the c function mach_absolute_time. How do all these people timing their animations in openGL ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4720288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WebPage font changing while opening in UIWebView within my app My Application is using custom font ("Roboto"), I am opening a HTML page( this web page is also using Roboto font in CSS) in UIWebView within application, in which font of web page is bold. can anyone help?, what could be the problem. A: You have follow...
{ "language": "en", "url": "https://stackoverflow.com/questions/37208148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make the if condition contain more than one condition? i.e.: if (number % 3 == 0) & (number % 5 == 0): Starting_Num = int(input('Please enter intial number: ')) Ending_Num = int(input('Please enter ending number: ')) for number in range(Starting_Num, (Ending_Num+1)): if (number % 3 == 0): print...
{ "language": "en", "url": "https://stackoverflow.com/questions/72147839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Streaming from obs to Nginx I'm trying to stream from obs to nginx server. I'm using videojs as a player. In OBS Settings I'm using custom Streaming server and the url is rtmp://localhost/live. this is the configuration file for nginx: rtmp { server { listen 1935; chunk_size ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54224598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Saving FB access token from FB JS SDK to DB I am implementing 'Login with FB' for my web app using FB JS SDK. I have got the user to return the access token in the response inside the statusChangeCallback function. However, I am not sure about the best method to store this info to a DB for later use (getting data f...
{ "language": "en", "url": "https://stackoverflow.com/questions/71346054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) (Redis::CannotConnectError) I try to connect to reddis On c9.io But get this error /usr/local/rvm/gems/ruby-2.4.0/gems/redis-4.0.1/lib/redis/client.rb:344:in `rescue in establish_connection': Error connecting to Redis on localhost:6379 (Errno::ECONNRE...
{ "language": "en", "url": "https://stackoverflow.com/questions/47650953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to distinguish four cosines from a FFT I have four cosines with frequencies 400e-3, 500e-3, 600e-3 and 700e-3 and I am trying to do the FFT of them but under the time I need, I cannot distinguish the four. Is there a way to distinguish the peaks without changing the tmax time of 1.76 and the frequencies? impo...
{ "language": "en", "url": "https://stackoverflow.com/questions/73154180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: .ajax, jquery, images that load late after upload I use .ajax jquery to upload images, but the images are still being uploaded when ajax finishes. The load event that is called after loads the same images. I have to refresh a few times before I get the right image. I tried using setTimeout but it did not work. How ...
{ "language": "en", "url": "https://stackoverflow.com/questions/22515424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: List store large amounts of data , Not enough memory public class ListKeywords { public int ID { set; get; } public string Keyword { set; get; } //关键词 public string Language { set; get; } //语种 public int WordCount { set; get; } //单词数 public int WordLength { set; get; } // 字符数 public int Stat...
{ "language": "en", "url": "https://stackoverflow.com/questions/23072983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PostgreSQL query by string is filtering even the values where there are nulls. I've created a table in PostgreSQL 9.5 as shown below and I added some data to it. However, when I try and query data by case insensitive search like !~* it removes even the null value rows. How can I do a query that will return all categ...
{ "language": "en", "url": "https://stackoverflow.com/questions/37308098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Functions using Dictionary name and Key as argument qualifier_2 = {'KKR' : {'Chris Lynn': 4, 'Sunil Narine': 10, 'Gautam Gambhir (c)': 12, 'Robin Uthappa (wk)': 1, 'Ishank Jaggi': 28, 'Colin Grandhomme'...
{ "language": "en", "url": "https://stackoverflow.com/questions/53256645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-9" }
Q: What is the big block of javascript that i see at the beginning of some html pages? I'm trying to increase my literacy of source code, however often times when I view page source for a site i will find a huge wall of what appears to be javascript code. A good example would be this site: http://www.torontossc.com/ Wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/24495642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How To Add A Back Slash To The TextBox For Date Format This Is My JavaScript: ` function ValidateDate(txt, keyCode) { if(keyCode==16) isShift = false; var val=txt.value; var lblmesg = document.getElementById("<%=lblMesg.ClientID%>") ; if(val.len...
{ "language": "en", "url": "https://stackoverflow.com/questions/26927106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scale image in CVImageBuffer I have a task - to scale down an image which I got from the camera. I need it in order to do heavy-lifting operations on smaller version of the image which will help me to save some processing power. I decided to go with vImage_Buffer from Accelerate. Here's my code with few comments jus...
{ "language": "en", "url": "https://stackoverflow.com/questions/57327226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: paint on a container being added to jcomponent i have a jrame on which i add some JComponent objects. Each JComponent has a list of containers i add by using JComponent.add( Component). Now in my main JComponent class, called MyComponent, i override the protected method paintComponent where i can paint things, which...
{ "language": "en", "url": "https://stackoverflow.com/questions/4642511", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Parameterized Async function returning Promise { "_40": 0, "_55": "English", "_65": 1, "_72": null, } [CLOSED] How to get the 'English' out of the promise object which is unneccesary Async Functions -> parameterized const getLanguageNamefromCode = async (lng_code) => { let response, langData, lang; try { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/61864005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Validation Summary vertical alignment I have a two column layout page with a Validation Summary (VS) control above the 2 columns. The VS is centered in the container above the columns, which is what I want, but I also want the different bullet points to be vertically aligned, if possible. I have tried several things...
{ "language": "en", "url": "https://stackoverflow.com/questions/10307817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }