text
stringlengths
15
59.8k
meta
dict
Q: Search Using IN Condition in MySql I am writing Web services for IOS In cakePhp and stuck in IN condition. I have a table dog_temperaments and it has values "happy,dependent,shy". Now if IOS send me array (happy,shy) Then I search Like this Select dog_temperaments.* where temperaments IN(happy,shy) Its work fine bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/30258959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Python copying multiple files simultaneously (Multithreading) I have some python code that I use to copy files from one directly to another, however it is a very slow process and is sequential. I would like to find a way to do multithreading, copying more that one by one file, but rather have 10 or 100 processes run...
{ "language": "en", "url": "https://stackoverflow.com/questions/72617538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python Module issues Im pretty new to python, and have been having a rough time learning it. I have a main file import Tests from Tests import CashAMDSale CashAMDSale.AMDSale() and CashAMDSale import pyodbc import DataFunctions import automa from DataFunctions import * from automa.api import * def AMDSale(): ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31078140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to insert an array into database in python? I have a database called my_python and I have a table called my_transport. There are 3 columns in the table: id, transport, and fee. for the first columns "id", I make it auto increment so that I don't have to insert any value into it. My question is how to insert the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/57156097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to make autocommit false work in kafkajs scenario: im setting autocommit false, producing 12 messages consuming them.. (say from offset 100) shutting down consumer start a new consumer in that stage, I expect to the 2nd consumer to read all messages again starting offset 100 (because no committing was done) b...
{ "language": "en", "url": "https://stackoverflow.com/questions/62193441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Cannot use the count() function in a query containing subquery I have the below query working fine. SELECT (SELECT MAX(LOG_DATE) FROM LOGTABLE WHERE ID=A.ID AND STATUS = 'NEW') AS DATE1, (SELECT MAX(LOG_DATE) FROM LOGTABLE WHERE ID=A.ID AND STATUS= 'OLD') AS DATE FROM TABLE1 A WHERE A.STATUS ('NEW') OR ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73661076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to fix 'PHP code not working in laravel public folder' I embed a php in one of my views with: <iframe src="{{URL::to('/')}}/game/game.blade.php" width="1519" height="690"></iframe> In this file I have the following code: <script> var userID = {{ auth()->user()->id }}; var userCredit = {{ auth()->user()-...
{ "language": "en", "url": "https://stackoverflow.com/questions/58142451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Beginner Scoring program button development in Java I'm trying to add a "green team" to an example scoring GUI I found online. For some reason, the code compiles, but it runs with only the original two teams. I've tried playing around with the sizes/locations somewhat clumsily, and since no change was observed with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12944744", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: function calls not working on baremetal c code for cortex m0 with gnu toolchain I am building a custom soc based on the arm cortex m0 design start. The SOC now has a cortex mo core attached to a AHB lite bus with some ram on it and a gpio module. I am currently struggling to write and compiling code for it using the...
{ "language": "en", "url": "https://stackoverflow.com/questions/68610294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can I use delete clause in Case Clause in teradata I am newbie to teradata. I need to delete a row once the case condition is satisfied. Eg: case condition true delete the selected row. A: Maybe I am misinterpreting what you are trying to accomplish with the CASE statement, but based on my understanding you can use...
{ "language": "en", "url": "https://stackoverflow.com/questions/11745334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HttpModule fires several times I have ASP.NET MVC 4 with an HttpModule. I am aware that module's Init method may be called several times, once for each HttpApplication object, but I expect the actual BeginRequest event to fire only ONCE for each incoming web request. That's not what's happening. I noticed that Begin...
{ "language": "en", "url": "https://stackoverflow.com/questions/13932742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why forwarding unit in MIPS processor does not store always data from WB stage to ID stage? Hey to everyone I am trying to understand 5 stage pipeline MIPS with forwarding unit So I found a problem which has raw data hazards The problem is the following : Ι1 and $1, $1, $2 Ι2 add $2, $1, $2 Ι3 lw $2, –20($3) Ι4 sub...
{ "language": "en", "url": "https://stackoverflow.com/questions/73705644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: redis redis.client rq Queue job.result # => None I'm trying to figure out rq queuing with redis. I have simple test_job function which I want to use in queue. def test_job(): return "OK" And the script taken mainly from rq documentation: #!/usr/bin/env python import redis.client from rq import Queue import tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/14090215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use excel_sheets() for multiple .xls files in a folder? I'm trying to use excel_sheets() from the read.xl package to get the workbook info from multiple Excel sheets in a folder. Here's the folder: I can use excel_sheets() to process one file, and then then continue with lapply(): library(readxl) path = "/Us...
{ "language": "en", "url": "https://stackoverflow.com/questions/74272499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Insert static rows in Target Table So I have a scenario based on the picture attached. In my source table, I only have TIER 1 available value and will be inserted in the target table. But the requirement requires that even if TIER 2 to 7 is not available, I should still insert it to the target table regardless if t...
{ "language": "en", "url": "https://stackoverflow.com/questions/55162296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding scope correctly in PHP (versus Javascript) I know that scope works differently in PHP and in Javascript. When I first started learning Javascript (after a couple of years learning PHP), I did not initially realise that variables declared outside a function were also accessible from inside the function....
{ "language": "en", "url": "https://stackoverflow.com/questions/47096660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to create an event with Setup in vue js? So I want to update my graph which I am creating using v-network-graphs, when a user enters a value in the input box. setup(props,oa) { const nodes={} const edges={} const { prac } = toRefs(props) const n = reactive( prac.value ) // const n= prac.leng...
{ "language": "en", "url": "https://stackoverflow.com/questions/72355731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Does a javascript library for parsing URL path segment (matrix) parameters exist? Given the URL: var urlString = "http://somehost:9090/cars;color=red;make=Tesla?page=1&perPage=10" I'd like some javascript (node) library which i can use to get the matrix parameters (color and make) for the cars path segment, for exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/29001857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Ending a Loop with EOF (without enter) i am currently trying to end a while loop with something like this: #include <stdio.h> int main() { while(getchar() != EOF) { if( getchar() == EOF ) break; } return 0; } When i press CTRL+D on my Ubuntu, it ends the loop immediately. But on...
{ "language": "en", "url": "https://stackoverflow.com/questions/46950315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: how to instantiate objects inside the class to be tested is an abstract class in Junit testing? I have a class below for which I want to write a unit test abstract class ProductImpl{ @Inject DataServices ds; // using Guice public Response parse(String key, Long value){ Response res = ds.getResponseObje...
{ "language": "en", "url": "https://stackoverflow.com/questions/59051580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: HTML div with A4 dimensions is larger than A4 I set the size of a parent div to A4 (size="21cm 29.7cm"). However, in Chrome print preview, with A4 and no margins, the HTML page won't fit on A4. I have to scale it to 80%. Is there something in my HTML causing this? I expected the size="21cm 29.7cm" to force the page ...
{ "language": "en", "url": "https://stackoverflow.com/questions/65862676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Serilog and ASP.NET Core enrich `WithUserName` and `WithHttpRequestUserAgent`? Is there a way to enrich Serilog log data in ASP.NET Core 2.1 application, similar to how enrichers WithUserNameand WithHttpRequestUserAgent work for classic ASP.NET (System.Web)? I tried implementing ILogEventEnricher interface, but it d...
{ "language": "en", "url": "https://stackoverflow.com/questions/51420093", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Required field 'reversed' was not found in serialized data I have this code: sliceRange.Start = UTF8StringToBytes(strStart) sliceRange.Finish = UTF8StringToBytes(strFinish) sliceRange.Reversed = True sliceRange.Count = intCount predicate.Slice_range = sliceRange Dim results As List(Of ColumnOrSuperColumn) = client.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/13382869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: silex and twig css cache issues - odd behavior I've run into a very frustrating bug. I can't reload changes in my css file. style.css seen in PhpStorm looks like: body { background-color: blue; } Yet seen in Chrome shows: body { background-color: green; } Here's the odd behaviour: If I change style.css to "foo...
{ "language": "en", "url": "https://stackoverflow.com/questions/29942153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Auto adjusting web page to screen size (HTML) I have tried several different sources on the Internet. I am not using bootstrap; I enjoy doing my site from scratch. It helps me program. I can't get my web page to auto adjust to the screen size. For example if you make the browser smaller the page collapse nice and n...
{ "language": "en", "url": "https://stackoverflow.com/questions/25817589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-6" }
Q: BeginForm overload that accepts RouteValueDictionary and Dictionary as htmlParameters I came across this old question from 2009 that is asking the exact same question as I am now, but the solution no longer appears to work. I am currently using MVC 5. I am calling BeginForm like this: helper.BeginForm("Edit", contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/43941585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I populate data in Entity Framework code first on database creation? I'm using code first entity framework and I would like to know how to run some code when the database is being created so that I can populate my database with some data. (note that I'm asking for on database creation, not everytime the appli...
{ "language": "en", "url": "https://stackoverflow.com/questions/4591014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Show serializer attribute only for current user and certain role I need the auth_token attribute to only be outputted for the current authenticated user. My User controller has class Api::V1::UsersController < ApplicationController before_action :authenticate_with_token!, only: [:show, :create, :update, :destroy...
{ "language": "en", "url": "https://stackoverflow.com/questions/34016598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Storing function returns in a table in R (quant finance) For the purposes of this question, I would like to construct a data frame or similar to be able to "stack rank" and sort various metrics that are generated from functions. Let's take an example from the Performance Analytics package: * *I have the close-cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/17847219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is mat-expansion-panel lazy rendering broken? See this Stackblitz. Angular Material mat-expansion-panel allows lazy rendering, <mat-expansion-panel> <mat-expansion-panel-header> This is the expansion title </mat-expansion-panel-header> <ng-template matExpansionPanelContent> Some deferred content </...
{ "language": "en", "url": "https://stackoverflow.com/questions/49498639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Display two images with SRCSET at different screen size issue I have looked over examples online, yet I believe I am overlooking something. I have two similar images that need to be rendered when the screen is at a different size. One image at 1440px screen size and one at 375px screen size. Right now with my code I...
{ "language": "en", "url": "https://stackoverflow.com/questions/67511523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Any way to do conditional including in javascript? We're developing a portal with lots of portlets (independent application within the page/portal). Each portlets have to be independent : They have to be able to run on stand-alone page from within the portal. We've been ask not to add tons of javascript files to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/6903215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Async deep folder deletion recursively I'm working on a chrome extension that lets users create video annotations. I render an iframe with a file system to help the use sort their files. The representation of the file system in chrome.storage is the following: const storage = { "ROOT": { files: [], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73159002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting input of Android TV using android App Currently, my HiSense Q8 android TV has a start up screen that has App, Youtube and Netflix icons. There is a series of clicks on the remote I need to go through to have it show input from HDMI input 1. What I'd like to have is an android app causes HDMI input 1 to be di...
{ "language": "en", "url": "https://stackoverflow.com/questions/59938698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bandwidth Source Please sorry if the following question seems stupid. Otherwise direct me to the appropriate place to ask it. My question is, the webhosting companies where do they lease/get their bandwidth from? Do they rent the bandwidth from telecommunication companies? thanks A: Yes. Typical providers include m...
{ "language": "en", "url": "https://stackoverflow.com/questions/9297299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to replace df column names with df1's I have 2 dfs with an identical amount of columns, however, they have 2 different naming conventions because I got the data from 2 different places. I want df_cont to have the same column names as df1. I know I could do it like this: df_cont.rename({'bitcoin':'BTC'}, axis='...
{ "language": "en", "url": "https://stackoverflow.com/questions/55086404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Represent nested list as an array of strings I have a list which could look like this: let list = [ { name: "Level 1", children: [ { name: "Level 2", children: [ { name: "Level 3A", children: [ { name: "Level 4A", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67018507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: how can I change this mysql code to mysqli how can i convert this code $result = mysql_db_query($db, "SHOW FIELDS FROM $table") or mysql_die(); I don't found equivalent of function mysql_db_query() in mysqli A: Use of mysqli is quite simple actually just need to call the query function of a mysqli object, equival...
{ "language": "en", "url": "https://stackoverflow.com/questions/31706045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Changing Tabs in a Tab Control does not send Child a Message In a C# Windows Forms application using Framework 2.X, clicking on a tab control does not send a message to the child controls (such as a lost focus event). Using Microsoft Spy++, I do not see messages sent to my child control. I do get messages when I c...
{ "language": "en", "url": "https://stackoverflow.com/questions/4491471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Installing npm live-server on MacOS Catalina I'm trying to install npm live-server but I am getting the following errors: stl34>>npm install live-server -g npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated [email protected]: The ...
{ "language": "en", "url": "https://stackoverflow.com/questions/63349139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Difference between `vector v;` and `vector v = vector();` What is the difference between std::vector<int> v; and std::vector<int> v = std::vector<int>(); Intuitively, I would never use the second version but I am not sure if there is any difference. It feels to me that the second line is simply a default construct...
{ "language": "en", "url": "https://stackoverflow.com/questions/54937426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "32" }
Q: AngularJS ng-pattern and required can not work together on number field correctly? I have a form and i need to validate a field with both ng-pattern and required but they can't not work together correctly. Form have only a number field which expects the value is an integer value. When i type "0.3" the validation dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/27313477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to modify mapping for already mapped entities in other assemblies? I'd like to custom mapping for entities in EF For example, I have an entity: public class User { public int UserId { get;set;} public string Firstname { get;set;} public string ColA {get; set;} public string ColB {get; set;} } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/9325741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Adding rows to gridView I want to add new rows after the inserted rows. I have a button that shows bootstrap modal with some DropDownLists and Textboxes. The button in modal on click should insert the data from modal to the table. The problem is that when i try to add new row it will replace current row. What im doi...
{ "language": "en", "url": "https://stackoverflow.com/questions/40436567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How Apache Mina SignalListner works? I want to terminate the Apache Mina Ssh Server on the basis of Ctrl+c that are basically SigInt I searched on the google and have looked there are SignalListener but not find any good example of it. Please share any good example and use in ssh server. A listener will only trigge...
{ "language": "en", "url": "https://stackoverflow.com/questions/42488097", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the most Cocoaish way to show that a text field is invalid? I have a text field which is validated whenever it loses focus. I want to be able to indicate that the value invalid during input so the user has the opportunity to correct their mistake before explicitly moving focus away from the box and triggering...
{ "language": "en", "url": "https://stackoverflow.com/questions/3448416", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Eclipse fails to build android project Background: this problem occured after an update through the android sdk Manager eclipse plugin. Currently, when i try to build any android project, this error occurs. THe information i gathered so far, is that this is a java related issue, as i'm trying to compile newer versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/37241270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: strange * padding issue chrome (padding only works sometimes in chrome) Ok so I am having a strange problem which only happens in the chrome web browser. everything works fine in firefox and ie. I have created a navigation menu using images. I have place padding on each list item to space them out a bit. so when us...
{ "language": "en", "url": "https://stackoverflow.com/questions/41911673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the position of GameObjects with Unity Input.GetMouseButtonDown method? I already know how to click on 3D Objects in the scene by using the Input.GetMouseButtonDown. I'm trying to change the 3D Object position by clicking on the object. I added a Box Collider in the object and I'm calling the following...
{ "language": "en", "url": "https://stackoverflow.com/questions/73737328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Apply a shadow to a fitted image with Tailwind CSS I wrote this code: <script src="https://cdn.tailwindcss.com"></script> <div class="m-6 space-x-3"> <div v-for="m in media" class="w-[200px] h-[200px] inline-block"> <img class="object-contain w-full h-full shadow shadow-black" src="http://placekitten.com/20...
{ "language": "en", "url": "https://stackoverflow.com/questions/75541226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to validate file type in java I have created a text file with some content. I changed its extension to .xlsx. I used this code to validate file- String filepath = "C:\\Users\\prabhat.sameer\\Desktop\\test.xlsx"; File f = new File(filepath); String mimetype= new MimetypesFileTypeMap().getContentType(f); String ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/40488973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PhpStorm can't resolve @ionic/angular I've got an Ionic v4 project that is running fine, but PhpStorm cannot find my references to @ionic. It looks like the code is actually in the /dist directory, so if I change the reference to: import { NavController } from '@ionic/angular/dist' PhpStorm doesn't complain and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/54936638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Overloading constructor with 2 same datatype members lets say i have a class with two std::string member and one int value, like: class DataGroup final { public: explicit DataGroup (const std::vector<int>& groupNr, const std::string& group1, co...
{ "language": "en", "url": "https://stackoverflow.com/questions/61988477", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RSACryptoServiceProvider rsa = (RSACryptoServiceProvider)cert.PublicKey.Key does not work in .NET Core I have an assembly compiled with .NET Framework 2.0 (yes, pretty old stuff) which performs encryption with a certificate's public key. The code is extremely simple: X509Certificate2 objCert = new X509Certificate2(p...
{ "language": "en", "url": "https://stackoverflow.com/questions/60102646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why technically does ScrewTurn uses .ashx to create wiki page? Why ScrewTurn Wiki does use ashx type to create wiki page? Isn't it dangerous to create asp.net page on the fly? update: they didn't create any physical pages. But how do they do that because the url is actually some-newpage.ashx ? A: I think it uses t...
{ "language": "en", "url": "https://stackoverflow.com/questions/5702115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to connect sockets and receive Data? I am new to sockets, I was hoping someone knows how to connect sockets on Android Studio and receive data. This is the websocket which uses socket.io that I am trying to receive data from: https://ws-api.iextrading.com/1.0/stock/aapl/quote This is a link to the API which exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/49957964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I use HttpClient-4.5 against a SOCKS proxy? How can I use a ClosableHttpClient from HttpClient-4.5 over a configured SOCKS proxy? Is there a way to accomplish this without specifying a global SOCKS proxy with java -DsocksProxyHost or setting a custom default ProxySelector? The explicit documention about prox...
{ "language": "en", "url": "https://stackoverflow.com/questions/43292049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: why won't my text area show up I'm trying to implement a program where the client will send a fix message to the server side, and the UI I have for the server side will show up the FIX message on the text area. However when I start the program, the textfields and all the labels will show, except the text area. And...
{ "language": "en", "url": "https://stackoverflow.com/questions/18003049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PromiseKit flatMapError ReactiveSwift has this great function called flatMapError that allows you to respond with an event stream when an error occurs. A simple example might look like: authenticationProducer.flatMapError { _ in self.reauthenticate() } Whenever an error occurs, that error gets mapped into a produce...
{ "language": "en", "url": "https://stackoverflow.com/questions/44051126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to use pattern matching on functions in python? Like, a function that will respond to multiple calls I am trying to make a class that acts like a list. However, I would like to be able to use all of the built-in list repr() functions and such, Is there any way to do something like this: class myList: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/56300707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: OpenGL glTexImage2D cube map and width/height parameters I am trying to setup shadow mapping in OpenGL using cube maps so I can do shadows for point lights. The following throws a GL_INVALID_ENUM at me: for (uint32_t i = 0; i < 6; i++) GLCALL(glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_DEPTH_COMPONEN...
{ "language": "en", "url": "https://stackoverflow.com/questions/19879546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Granular error handling in Passport authenticate I am authenticating a user in a REST call and I implement a custom callback as explained in the docs. app.get('/login', function(req, res, next) { passport.authenticate('local', function(err, user, info) { //.. do something with user here and send a response }...
{ "language": "en", "url": "https://stackoverflow.com/questions/27534766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Fixed row on the bottom of grid I have summary row in my table. But user can see it only when he will scroll down all grid. But it could be better, if summary row will be fixed at the bottom of the grid, and it will be visible always, when the grid is shown. How can I modify it? A: I'm not sure how to fix a row l...
{ "language": "en", "url": "https://stackoverflow.com/questions/9290319", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to move database calls to application server behind a firewall I would like to use BreezeJS for data access in a Durandal SPA. I have the initial app set up and working fine and uses a MVC 5 backend. However, one of the requirements is that the public IIS server is not making calls directly to the database. In...
{ "language": "en", "url": "https://stackoverflow.com/questions/30484722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Handling IAP Fullfilment results for Windows 10 Store When providing consumable In App Purchases on the Windows 10 Store, there are FullfillmentResults when ReportConsumableFullfillmentAsync is called. The user of my app has had their IAP fullfilled by the time I get this result. This means they have their Coins/Gem...
{ "language": "en", "url": "https://stackoverflow.com/questions/43197459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Laravel elements in queue are processed multiple times We use the Laravel Redis Queue and a supervisor setup with multiple parallel running workers. Sometimes it happens that one element in the queue get processed multiple times. Is there a trick, like a flag i can set or something else to avoid this behavior? A: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/39873948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does it have closed form solution of KL Divergence between Logistic Distributions? KL Divergence between Gaussian Distributions As above Figure, KL divergence between Gaussian distributions has closed-form solution. Does it have closed form solution of KL Divergence between Logistic Distributions(https://en.wikipedi...
{ "language": "en", "url": "https://stackoverflow.com/questions/73903434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to detect which level on the dom is selected I have the following selector $('#navigation ul li a').click(function(evt) {} this get the elements i need, but also retries child elements. ie i get me this as well #navigation ul li li a // extra li Just wondering the best way to detect what level of the dom i am...
{ "language": "en", "url": "https://stackoverflow.com/questions/2128890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: parseerror SyntaxError: Unexpected token < in JSON at position 1 I have an error: Unexpected token and uncaught in the promise in my code below. function getReportData(type,shutdown,period){ var applyButton = $("#apply-filter"); var textApplyButton = applyButton.html(); applyButton.attr("disabled", true)...
{ "language": "en", "url": "https://stackoverflow.com/questions/73256948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I get only the object with my arrays returned from a function with a promise? I want the data in res passed to my notes variable. But it's returning a bigger nested object. Why is it happening? If I inspect in the console the value of cleanArrayOfNotes I get the object that I want, but once its assigned to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31672288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WinAPI. How to redraw window which has no background? Hi I have WNDCLASSEX structure which has this data: m_wndClass.cbSize = sizeof(WNDCLASSEX); m_wndClass.style = CS_NOCLOSE; m_wndClass.lpfnWndProc = WndProc; m_wndClass.cbClsExtra = 0; m_wndClass.cbWndExtra = 0; m_wndClass.hInstance = GetModuleHandle(NULL); m_wndC...
{ "language": "en", "url": "https://stackoverflow.com/questions/18608852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C++: Containers of Arbitrary Template Type In C++, suppose I have a templatized class, like template <typename T> class Foo { ... }; and suppose that I have several kinds of Foo objects, like Foo<int> intFoo = Foo<int>(); Foo<double> doubleFoo = Foo<double>(); ... and so on. Actually, its worse than that. I re...
{ "language": "en", "url": "https://stackoverflow.com/questions/23812603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Prometheus sum of different Counters having common lables I have two counters like below . Both counter have common label interface_name. Counter A= {app_kubernetes_io_component="xyz-rest-ep",interface_name="N7",command="create","job="kubernetes-pods",monitor="prometheus",namespace="xyz-foo",pod="xyz-rest-ep-9f568...
{ "language": "en", "url": "https://stackoverflow.com/questions/61294395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using Stata Variable Labels in R I have a bunch of Stata .dta files that I would like to use in R. My problem is that the variable names are not helpful to me as they are like "q0100," "q0565," "q0500," and "q0202." However, they are labelled like "psu," "number of pregnant," "head of household," and "waypoint." I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/2151147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Supported Device - Android I am uploading an app to the playstore and it is showing Supported devices: 5569 Unsupported devices: 9628 Can someone please confirm me the total supported devices for: minSdkVersion 21 targetSdkVersion 26 I am not using any hardware dependent features in the app. How can increase these...
{ "language": "en", "url": "https://stackoverflow.com/questions/48570245", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing parameter between thread C# i have a regular multithread which process a parameter/value public void testThread (int fib) { int a = 1; int fib2 = fib + a; Console.WriteLine(" Thread : "+fib); } how can i pass the result value back to MainThread or another Thread ? A: You usually pass data...
{ "language": "en", "url": "https://stackoverflow.com/questions/45490819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How don't let draggable div go outside of the screen I have this code: $("#drag").draggable({ cursor: "move", start: function() { $("#drag").css("transform", "translate(0, 0)") } }); #main-div { text-align: center; } #drag { position: fixed; top: 50%; left: 50%; transform: transla...
{ "language": "en", "url": "https://stackoverflow.com/questions/44330939", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Zipping a directory to a remote location in Java I'm trying to create a zip file from a directory in Java, then place that file on a remote server (a network share). I'm currently getting an error because the Java File object cannot reference a remote location and I'm not really sure where to go from there. Is ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/1329220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Wrong owner upon file creation in particular directory I'm facing @subj . If I try to create a file/dir in my home directory it gets created as root:daemon instead of user:staff. I found this behaviour only for one directory ( all the other dirs aren't affected). It used to create files properly before and now it se...
{ "language": "en", "url": "https://stackoverflow.com/questions/63189839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Gcloud LoadBalancer: change Google Managed certificate without downtime I intend to use Gcloud managed certificate. The way it works is that I already have a custom certificate managed by Let's Encrypt, which is assigned to my LoadBalancer. Now I want to swich to the Google Managed certificate. In order to achieve t...
{ "language": "en", "url": "https://stackoverflow.com/questions/73640772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nhibernate: what are the best practices for implementing equality? I think that Entities should implement equality by primary key comparison as default, but the nhibernate documentation recommends using business identity: The most obvious way is to implement Equals()/GetHashCode() by comparing the identifier value...
{ "language": "en", "url": "https://stackoverflow.com/questions/2100226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: how to avoid code duplication with const and non-const member functions being input into templates when attempting to get functions' signatures when they are input into templates its fairly easy, just do the following: template <class OutType, class... ArgTypes> void foo(OutType (*func)(ArgTypes...)); it is only ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/58224846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Android Thread Pool to manage multiple bluetooth handeling threads? So I have my Android Bluetooth application that has it's host and clients. The problem is, because I am making multiple connections, I need a thread to handle each connection. That's all milk'n'cookies, so I thought I'd stick all the threads in an a...
{ "language": "en", "url": "https://stackoverflow.com/questions/9707395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Uncaught ReferenceError: getSelectedOption is not defined at HTMLButtonElement.document.getElementById.onclick I am a super beginner in javascript and html and doing an experiment to build an webapp. I ran npm install http-server -g and http-server '' -o and it opened up a browser tab. But in the console, I get this...
{ "language": "en", "url": "https://stackoverflow.com/questions/62117053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java initializing iVars outside the scope of any method New to Java, and I am a little confused about this piece of code: public class CitiesDialog extends DialogFragment { private AsyncHttpClient client = new AsyncHttpClient(); } client is being initialized outside the scope of any method. What does this exact...
{ "language": "en", "url": "https://stackoverflow.com/questions/22568456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scrolling SwipeRefreshLayout with RecyclerView Refresh anywhere in android 2.2 I have problem with my layout, I created SwipeRefreshLayout with RecyclerView inside. in android 4.2.2+ all is working good, but in andorid 2.3.4 I cant to scroll up because in any place in the RecyclerView it will refresh, and I must to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/27641359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: height of HorizontalFieldManager How to display chatting data on horizontal field manager., because, i m not sure that how long my text length would be. Like as we do chat in Gmail or facebook. If is there any other way for displaying the chat data. so please let me know now. A: The HorizontalFieldManager will gro...
{ "language": "en", "url": "https://stackoverflow.com/questions/6276604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android video streaming from url I use following code to play video from a url. It works fine except that It first downloads video and then plays that video Uri uri = Uri.parse(URL); video.setVideoURI(uri); video.start(); But I want to stream the live video instead of downloading it and then play A: There...
{ "language": "en", "url": "https://stackoverflow.com/questions/17407207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Use variable to reference named binding in an Ecto Query I'm trying to build a function that searches for a term in a field of a given table in a query. For a query like initial_query = Answer |> join(:left, [a], q in assoc(a, :question), as: :question) |> join(:left, [a, q], s in assoc(a, :survey), as: :surv...
{ "language": "en", "url": "https://stackoverflow.com/questions/54469604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to get all filtered data rows in excel (with hidden columns)? My data sheet has filters and hidden columns. When filter(s) applies, I need to loop through all filtered data. I use: Excel.Range visibleRange = this.UsedRange.SpecialCells(XlCellType.xlCellTypeVisible, missing) as Excel.Range; Now visibleRange.R...
{ "language": "en", "url": "https://stackoverflow.com/questions/1296026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Escaping references - how to legitimately update object data? Been reading and watching escaping references and I get the idea of why and how to fix it, but I'm still confused on one thing... What if the data does need to be updated? For example, I copied the code from the blog post down below and also added an addi...
{ "language": "en", "url": "https://stackoverflow.com/questions/61764986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Calling delegates in a boxing-like fashion I have often seen code examples of delegate invocation being done as follows: ` public delegate void DelegateThreadActivity<T, U> (T sender, U e); public event DelegateThreadActivity<Thread, System.EventArgs> OnStart = null; public event DelegateThreadActivity<...
{ "language": "en", "url": "https://stackoverflow.com/questions/10467467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to log selected markers in Google fusion table map My fusion table map contains about 5000 markers. I want to generate lists of selected markers. The simplest way to do this would seem te be to click on the relevant markers, and then write the IDs of these markers to a logfile. I think I should be able to use a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/30383352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Clear javascript on dynamic load I have a javascript plugin for a special image scroller. The scroller contains a bunch of timeout methods and a lot of variables with values set from those timeouts. Everything works perfectly, but for the site I am working on it is required that the pages are loaded dynamically. Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/6545736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pure virtual destructors in c++ Clion and VS2019 I'm trying do declare pure virtual destructor, in VS2019 I'm writing like that: virtual ~A() = 0 {}; and it's fine, but in Clion don't accept that I'm getting the following message: pure-specifier on function-definition virtual ~A() = 0{ }; and it forces me to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58097214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Bar colors reverting back to original colors I am using angularjs-nvd3-directives. I have a need to color individual bars based on their values. I can do this with angularjs-nvd3-directives by using a callback that selects the bar and colors it after it is rendered. <nvd3-multi-bar-chart data="vm.ch...
{ "language": "en", "url": "https://stackoverflow.com/questions/27773081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CKEditor text value is lost on post in BLAZOR I have a Textarea control in a Blazor applicaiton that is a CKEditor 5 WYSIWYG editor. <div class="form-group"> <label for="image">Content</label> <textarea id="editor" class="form-control" @bind="@PostObject.Content" /> <ValidationMessage For="@(() => PostOb...
{ "language": "en", "url": "https://stackoverflow.com/questions/59921004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can Retrofit2 be use on Android 4.1.2? My app results in fatal exception caused by Retrofit2 Is there a way to use Retrofit2 on older Android versions (for me a minimum of 4.x)? My app works as expected on Android 6, but I get a fatal exception on Android 4.1.2: E/AndroidRuntime: FATAL EXCEPTION: main java.lang....
{ "language": "en", "url": "https://stackoverflow.com/questions/62721973", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using a UDF MySQL query from PHP I read from the MySQL doc For the UDF mechanism to work, functions must be written in C or C++ and your operating system must support dynamic loading. ... A UDF contains code that becomes part of the running server, so when you write a UDF, you are bound by any and all constrain...
{ "language": "en", "url": "https://stackoverflow.com/questions/23707101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Select more than one columns when using Group By Is it possible to select more than one columns in entity framework than just key & value when doing Group By.
{ "language": "en", "url": "https://stackoverflow.com/questions/24872693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }