text
stringlengths
15
59.8k
meta
dict
Q: Using react hooks, how would you write an event listener dependent on state that does not need to be added and removed every time the state changes? The code below shows a working, but inefficient implementation of an Android BackHandler within React Native to have the app exit after two presses in two seconds. This...
{ "language": "en", "url": "https://stackoverflow.com/questions/72292879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to execute simultaneous PHP CLI scripts in Mac I have 50 php files that I would like to run simultaneously from the command line. Right now, I am running them in multiple CLI windows using the code: php Script1.php I would like to be able to call one single script file that would execute all 50 php files simulta...
{ "language": "en", "url": "https://stackoverflow.com/questions/9882376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: BASH: how to store subshell variables into an array? I have array1, array2 and a function. I am trying in a for j=0 to ARRAY_SIZE loop to get the data from array2[j], pass it to a function and the returning output store it in array1[j]. Below is the part of the code that I am working on: exec 3>&1 ${ppart_block_fsty...
{ "language": "en", "url": "https://stackoverflow.com/questions/19188610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Issue on creating an application for facebook Currently i am creating an sample facebook application. The problem is its asking for my application url in two types. Canvas url and Secure canvas url i had hosted my application on this link Fb app url but the hosting is not providing me ssl i.e. the link with https Be...
{ "language": "en", "url": "https://stackoverflow.com/questions/12550932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java: How to parse string? Just started a programming class a few months ago, and I'm going over some review questions for a test. I'm not sure how to tackle this one. We have to format a few lines of text. So something that looks like this: 2002/Bourne Identity/Action/1:58 Will have to look like this: 2002 - Bourne...
{ "language": "en", "url": "https://stackoverflow.com/questions/36705815", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: If column 1 is a match, change value of column 3 using Awk I have to edit a big file where the columns for each record are not delimited by a character but have a fixed lenght. I would like to search a value in the first column and if found, change the value of the 3rd column. I can't take the file out from where it...
{ "language": "en", "url": "https://stackoverflow.com/questions/47504358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any difference between normal and static local variables in static methods? class A { static void f(void) { int a; static int b; } }; Is there any (formal or practical) difference between a and b? A: Yes, consider the following: #include <iostream> using namespace std; class A...
{ "language": "en", "url": "https://stackoverflow.com/questions/27048672", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Mule connector config needs dynamic attributes I have develop a new Connector. This connector requires to be configured with two parameters, lets say: * *default_trip_timeout_milis *default_trip_threshold Challenge is, I want read ${myValue_a} and ${myValue_a} from an API, using an HTTP call, not from a file...
{ "language": "en", "url": "https://stackoverflow.com/questions/44888623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: background-image doesn't appear with span class <span class="arrow" style="width:20px;height:20px;background-image: url(image/arrow.png);display:inline-block;"></span> However the arrow doesn't show up. I double checked the path. It's correct. What wrong am I doing? I even tried display:block; No change. A: You ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/27470249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to convert timezone inside bindings? I tried to calculate unfinished downtime duration. Start time is stored in GMT timezone and finish time is local datetime in my timezone (GMT+2 or GMT+3). I want to calculate difference in seconds. Null datetime is 1900-01-01 00:00:00, so I have expression that means start ti...
{ "language": "en", "url": "https://stackoverflow.com/questions/57515632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: select sum() from multiple table with same column I have a table for product, sales_item and a stock with following structure Product table: +----+-----+-------------+ | id |name |description | +----+-----+-------------+ | 1 |Pr1 |prod1 | +----+-----+-------------+ | 2 |Pr2 |prod2 | +----+-----+-...
{ "language": "en", "url": "https://stackoverflow.com/questions/44128784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery how to make div visible after valid mail is written I wanna make form, which will show its next part, after valid email adress is written in input. I have some code to validate, but i need some code, which will wait until email adress is in input. <input style="border-radius: 4px;" name="editsubsemail" type="...
{ "language": "en", "url": "https://stackoverflow.com/questions/17136339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How can i show the count value as well as % on my highchart pie chart? var json= [ { "a": "OOCBER", "b": "OOCL BERLIN", "c": "CHINA", "d": "GREAT BRITAIN", "e": "*PI", "f": "NGB", "g": "CN", "i": "GB", "j": "9PIO5090196", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/33915718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bottleneck of Web Applications I am developing a web application using django, postgreSQL, html5 and javascript. The application is javacript intensive and is both read/write intensive. What are some common bottlenecks? What are some things to keep in mind when designing a web application that scales well? What are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7955237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Convert AMPL Model to ORTools I am trying to convert my AMPL Model to ORTools. This is the model: set NUTR; set FOOD; param cost {FOOD} > 0; param f_min {FOOD} >= 0; param f_max {j in FOOD} >= f_min[j]; param n_min {NUTR} >= 0; param n_max {i in NUTR} >= n_min[i]; param amt {NUTR,FOOD} >= 0; var Buy {j in FOOD} ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69938803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reference Column data in a rolling window calculation? Error ValueError: window must be an integer 0 or greater I am currently working on a large DF and need to reference the data in a column for a rolling window calculation. All rows have a separate rolling window value so i need to reference the column but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70932728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: text from With statement to geometry and geography WITH values(location, userid) as ( VALUES (st_geomfromewkt('0101000000000000C04141464000000000FE174440'),5)) SELECT st_distance(p.location,(SELECT location FROM values where v.userid = "blacklisterId")::geometry) FROM values as v,live.partners as p Inner JOIN backe...
{ "language": "en", "url": "https://stackoverflow.com/questions/50170741", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I deduplicate a list based on hourly intervals in Java? First of all, I have this object that I call MyObject; public class MyObject{ private google.protobuf.Timestamp timestamp; private String description; } Then I have this list: List<MyObject> myList = new ArrayList<>(); Now let's imagine that my...
{ "language": "en", "url": "https://stackoverflow.com/questions/72880991", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can i store a pointer to RAM in flash at compile time My problem explained: On my microcontroller (Atmel AT90CAN128) i have about 2500 bytes of RAM left. In those 2500 bytes i need to store 5 times 100 data sets (size could change in the future). The data sets have a predefined but varying length between 1 and 9 byt...
{ "language": "en", "url": "https://stackoverflow.com/questions/50177738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Power Query Assistance: How to return the range of three consecutive fields across a row with highest value out of all fields New to Power Query. Have pieced together what I've needed until now. I need to return the sum of the three consecutive cells with highest value out of a range of cells. See the screenshot I...
{ "language": "en", "url": "https://stackoverflow.com/questions/66711688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to display Bootstrap Autocloseable alert message on asp.net button click? How to display Bootstrap Autocloseable alert message on asp.net button click? Code as follows: <div> <asp:Button ID="btnLogin" runat="server" Text="Login" CssClass="btn btn-block org" Style="margin-top: 0px" OnClick="btnLogin_...
{ "language": "en", "url": "https://stackoverflow.com/questions/29365677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How conv2D function change the input layer In my ResNet32 network coded using Tensorflow, the input size is 32 x 32 x 3 and the output of the layer is 32 x 32 x 32. Why 32 channel is used ? tf.contrib.layers.conv2d( inputs, **num_outputs**, /// how to determine the number of channel to be used in my layer?...
{ "language": "en", "url": "https://stackoverflow.com/questions/58181449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to resolve libraries when changing from jcenter() to mavenCentral() So I am working on an old project and Android Studio warned me to change from jcenter() to mavenCentral() as jcenter() is not beeing updated. So this was my initial project build.gradle: buildscript { repositories { google() ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73433875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python pylab chart plot and loops I'm just learning Python and I'm wondering if someone could help me get the chart to render properly in the following code, i.e. plot the sequence of data points. I have put print statements so I can see if the calculations are correct which they are. Thanks from pylab import * de...
{ "language": "en", "url": "https://stackoverflow.com/questions/56100837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to generate flexible number of tabs in php? Hello guys I really need your help. I am very new php or programming in general. So maybe my question is already solved but I wasn't able to adjust the code in correct way or see the correct solution. I have the following problem: I need a procedure that can handle fle...
{ "language": "en", "url": "https://stackoverflow.com/questions/65277887", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I write in a user input in Python? I would like to add a "default value" to an input(). Something like this: >>> x = input("Enter a number: ", value="0") Enter a number: 0 So that the user can edit it, like the value attribute in html <input> I tried using pyautogui: import pyautogui def input_value(): x =...
{ "language": "en", "url": "https://stackoverflow.com/questions/71609779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: system.webServer/security/authorization in web.config how to migrate to aspcore I'm using a asp.net webapp which uses system.webServer in web.config and have a list of user accounts as roles. <system.webServer> <validation validateIntegratedModeConfiguration="false" /> <security> <authorization> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43038447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: StandardOutput.ReadToEnd() always NULL I have a problem with this function. It is supposed to output an install command to a textbox but install.StandardOutput.ReadToEnd() is always null. I get the error: Expression cannot be evaluated because there is a native frame at the top of the call stack Can you help me out ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60643262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Register a Facebook user for an existing web app I have a Flex application that I would like to embed in a Facebook canvas. The app already runs on my website and is accessible there once the user has created an account. I am trying to work out the flow of integrating with Facebook: * *User accesses my app in Fac...
{ "language": "en", "url": "https://stackoverflow.com/questions/18492783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: TFS Sub-area name change I would like to know if its possible to edit the name of a sub-area in TFS. I know I can create new areas and delete but I can't seem to find a way to rename. There might be implications around this that would keep someone from performing this task. A: In TFS 2012, you should be able to go ...
{ "language": "en", "url": "https://stackoverflow.com/questions/14244281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to abort only the current git cherry-pick and not previous ones? I have cherry picked multiple commits by doing git cherry-pick -x <SHA> and one of them failed (due to conflicts). I haven't pushed anything to the branch yet and I just want to abort the last cherry pick alone (the failed one) and keep everything ...
{ "language": "en", "url": "https://stackoverflow.com/questions/72791909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VBA: Replace text from txt for each line and save as Could somebody help me with the following? I tried making it on my own, but all I could do is open a txt and replace a static word with static word. VBA script: Open and Read first line of ThisVbaPath.WordsToUse.txt Open and Find USER_INPUT in ThisVbaPath.BaseDoc....
{ "language": "en", "url": "https://stackoverflow.com/questions/39109383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Display an overlay when submitting a form I want to display an overlay when the user is submitting a form. I'm using $('form').submit(function { [...] }) to achieve this. The problem is that I'm using client-side validation. The immediate solution is of course to manually validate the form: if ($('form').validate()....
{ "language": "en", "url": "https://stackoverflow.com/questions/9311752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mysql utf8 turkish characters not correct recognized In mysql utf8 coded turkish data i can't search "İ" and "ı". when i search its giving result contains "Y" or "y". Because in latin1 "İ" displaying as "Ý" and "ı" as "ý". in latin1 data i was used latin1_general_ci for correct result. but there is not alternative c...
{ "language": "en", "url": "https://stackoverflow.com/questions/2706266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does Facebook allow CORS headers? How can I discover if Facebook allowes cross domain requests? Can I make a JavaScript which can handle a Cross Domain Request to Facebook? A: Are you talking about the Facebook API? Anyway: http://www.test-cors.org
{ "language": "en", "url": "https://stackoverflow.com/questions/16496622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to bulk load JSON with values into Synapse SQL dedicated pool I'm attempting to bulk load json files, along with their filenames and paths into a synapse analytics dedicated sql table but I'm just stumped on how to accomplish it. I can load the json files solo without a problem, but I really need the additional ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74307160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to check for bounced emails in rails? I'm currently creating an email app that is able to send emails to many users. However, I want to know whether there are bounced emails. I'm currently using Amazon SES to notify me if the email is bounced. However, I want the bounced email's data to be automatically entered ...
{ "language": "en", "url": "https://stackoverflow.com/questions/12077481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Sql view from multiple tables I am stuck in a query, please help. I want to create view. Table1 ID | Acode | Bcode | Ccode | 1 | 10 | 101 | 102 | 2 | 11 | 100 | 101 | 3 | 10 | 100 | 102 | Table2 Acode | Adescription | 10 | English | 11 | Math | Table3 Bcode | Bdescription...
{ "language": "en", "url": "https://stackoverflow.com/questions/29452123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get artist and title information using python-vlc? I'm trying to record and get song information (title and artist) from web radios using python-vlc lib. The recording functionality is working well but the media parse to get the song information doesn't work! This is my code: inst = vlc.Instance() # Create a...
{ "language": "en", "url": "https://stackoverflow.com/questions/54524434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: badimageformatexception dynamic code generation I'm trying to dynamically generate an executable with the CSharpCodeProvider whose only purpose is to invoke one single method from a specific dll. When I execute the generated file I get a BadImageFormatException. I already set the platform to x86. When I manually wri...
{ "language": "en", "url": "https://stackoverflow.com/questions/28500100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Distinguish swipe and click in Angular I use ng-click to show details of an item in a list and also I attach jQuery mobile swipe event to the list item to show delete button when a user swipes to the left. The problem is that when I swipe on the element, it doesn't only emit swipe event, but click event as well. So,...
{ "language": "en", "url": "https://stackoverflow.com/questions/16694554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: iOS - How to set nil in UITextField (It should be visible) I know this is tricky question. Is there any way to visible nil value in UITextField? I tried with this code but TextField showing blank. myTextField.text = nil; For this task we can't use myTextField.text = @"nil"; (Without using @"nil" I need to complet...
{ "language": "en", "url": "https://stackoverflow.com/questions/39707135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MacOS Application Reopens After the User Quits I have an app on the Mac App Store and over the last few weeks some people have complained that when they quit the app, it will reopen again. Since the app is sandboxed, it should be technically impossible for my app to reopen itself (even if I want it to) after the use...
{ "language": "en", "url": "https://stackoverflow.com/questions/48136265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Make nested API call to fetch all list In my scenario, I've got an API call to hit and on the response of the API, I've to call the final API to get records of list. From the first API, I'll get a flag on which I've to make the conditional API call to get the records. The problem is, GET_LIST gets called by react-ad...
{ "language": "en", "url": "https://stackoverflow.com/questions/57107799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "The SQL statement is not valid. There are no columns detected in the statement" I am merging data from one file that contains six different sheets or tabs. All sheets contain the same headers. For the task I am using PowerPivot. 1st I created a connection using Excel and selected the file/imported Sheet1 2nd I acti...
{ "language": "en", "url": "https://stackoverflow.com/questions/33183234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pandas boolean dataframe search returns False but should be True The Problem I'm attempting to search through a pandas dataframe to find a single value. The dataframe columns I'm searching through are of type float64. Working Example Here is a working example of what I'd like, with a dataframe of type int64. myseri...
{ "language": "en", "url": "https://stackoverflow.com/questions/48818340", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Infinite loop through array of strings in React New to programming, and I'd really appreciate some help in rendering a React component. I have an array of strings, and I'd like to display each string in that array every 5 seconds on an infinite loop. The error I'm running into when trying to set the state is 'this.s...
{ "language": "en", "url": "https://stackoverflow.com/questions/42542103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error when plotting using ggplot2: Error in validate_facets(x) : object 'set' not found I want to plot data in R but I keep getting an error related to facet_grid(-set) which is: Error in validate_facets(x) : object 'set' not found install.packages('Tmisc') library(Tmisc) data(quartet) View(quartet) quartet %>% ...
{ "language": "en", "url": "https://stackoverflow.com/questions/69810152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to delete data from the list view after checked in android Hi the issue is that the selected data's are appearing in the list view, but actually we would like to delete the data's from the list view which is checked means position deletion can anybody join us to resolve the problem coding protected void onAc...
{ "language": "en", "url": "https://stackoverflow.com/questions/29821463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to do restful ajax routes to methods in Laravel 5? So I have a route that looks like this: Route::any('some/page', ['as' => 'some-page', 'uses' => 'SomePageController@index']); However, I also have ajax calls at the same URL (using a request parameter called ajax like: some/page/?ajax=my_action) that I want to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/28970350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I scaffold with bootstrap different number of columns? Is there a way to scaffold on a fluid layout two rows with the one having 3 the other 4 and have those centered on my page. _________________ __________________ ______________________ ______________ _______________ __________...
{ "language": "en", "url": "https://stackoverflow.com/questions/16308557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to sort by texture? Now and then the phrase "sort by texture" appears in OpenGL-related posts. While I see how this sort could be implemented for a single texture bound to a certain texture unit, I am not certain how this might be done for multiple textures bound to arbitrary texture units. Perhaps by capturing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/23338048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Spread two rows to one with tidyr I've seen this, this and this but still don't know how to solve the following problem within the tidyr::spread() function. Here's my example data frame: libary(tidyverse) df <- structure(list(Jaar = c(2014L, 2018L), Gemeente = c("Stichtse Vecht", "Stichtse Vecht"), GMcode = c("GM1...
{ "language": "en", "url": "https://stackoverflow.com/questions/49409325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PyInstaller and EasyOCR I have a ocr gui application which has easyocr in it. When I ran the project from pyCharm, it works without any problem. However when I build the project with pyinstaller to an exe form, other ocr algorithms work but easyOCR terminates without showing any error. python -m PyInstaller --paths ...
{ "language": "en", "url": "https://stackoverflow.com/questions/71644061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding views with controllers to a view with controller - proper way? I have to add several views (each having own controller) to a main view (with controller). I am following MVC. Should the code to add these subviews be written in view class or controller class? Also, what is proper way, MyViewController1 *myViewC...
{ "language": "en", "url": "https://stackoverflow.com/questions/14576447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's wrong with my camera? I'm using VS2010 together with C# and XNA 4.0. I'm following the book "Learning XNA 4.0" by Aaron Reed. I added the camera game component to my project but this camera behaves really weird. Moving mouse makes it "jump" and then crash. I don't know what is causing this. It looks that the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6822037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use SharedPreferences value to fill EditText? I'd like to know how to fill EditText field with the values of SharedPreferences. My code is as follows: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); T...
{ "language": "en", "url": "https://stackoverflow.com/questions/37551489", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OCI with long double I'm developing a C++ library with oracle OCI library. I'm loading from a Oracle Database 11g database. Here I need to load large values with decimal places. In this case I need to use long double instead of double. I'm not sure whether OCI supports for long double. According to the documentation...
{ "language": "en", "url": "https://stackoverflow.com/questions/12156403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Resolve Host I am getting the following error while trying to access the web-service. Error in http connection java.net.UnknownHostException: Unable to resolve host "192.168.1.109" Web-service is working fine, when checked using browser. I am using AsyncTask to access web-service, so it cannot be a backgroun...
{ "language": "en", "url": "https://stackoverflow.com/questions/23204260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Azure Table Storage Not saving Property I have an abstract class that inherits from Table Entity. public abstract class AzureEntityBase : TableEntity { public AzureEntityBase() { } public virtual string TableName { get { return string.Empty; } } priv...
{ "language": "en", "url": "https://stackoverflow.com/questions/47567651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Weird error when initializing SKView I have this block of code on my project to practice SpriteKit. But, for some unexpected reason, it gives me this error(compiles fine). Just for the reference, I don't have anything on my HelloScene.h file. I hope this doesn't matter. There's nothing else other than these code. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24533291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Go create struct from XML Please see this playground: https://play.golang.org/p/FOMWqhjdneg As you can see I have a XML response which I want to unmarshal into a Product struct. The XML has an "assetBlock" which contains nested nodes and extract data to Product struct. Any help would be appreciated A: You need to m...
{ "language": "en", "url": "https://stackoverflow.com/questions/48945851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Forcing UTF8 Format with PHP's XMLReader, DOM and SimpleXML We have a script that parses XML feeds from user generated sources which from time to time contain improperly formated entries with special characters. While I would normally just run utf8_encode() on the line, I'm not certain how to do this as DOM is progr...
{ "language": "en", "url": "https://stackoverflow.com/questions/10169211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Value are showing different results can anybody explain why this below code is showing different values class ABC: UIViewController { var Distance : Int! override func viewDidLoad() { super.viewDidLoad() var obj_A = ABC() obj_A.Distance = 10 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/48009500", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lit-html not found when using polymer build I have a fairly basic lit-html app that works locally when it's not build. However when I build it using polymer build using the following config: { "entrypoint": "index.html", "shell": "src/school-home.js", "sources": [ "src/**.js", "package.json" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/62473035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 'Can't find' repo error - missing a repo and can't move past it I'm new to git/github. A few months ago, I put an old wordpress site as a repo on there, that I've since deleted from my computer. Had alot of trouble since then with github. When I try and put a new repo on github, it won't let me, and says it's mi...
{ "language": "en", "url": "https://stackoverflow.com/questions/71607997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Radio buttons are circle on PC, but square on mobile I have coded some simple radio buttons (with no styling) <input onclick="calcAdult()" type="radio" name="age">Adult <input onclick="calcPup()" type="radio" name="age">Puppy (younger than 1 year) On pc they show as normal circles, but on mobile they are check boxe...
{ "language": "en", "url": "https://stackoverflow.com/questions/64821737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How to make Youtube videos play from code without having the user to switch to that tab I am making a chrome extension where user can make playlists of songs. For that when I click on play button I need that new tab should open and the video should start playing but youtube video doesn't play without switching over ...
{ "language": "en", "url": "https://stackoverflow.com/questions/55273352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to channel some HTTP server events into a single javascript function? I have a C# webserver which provides some html/js/css and images to a browser-based client. I create the page dynamically using javascript, filling images and divs while receiving messages from a websocket C# server. Sometimes, I re...
{ "language": "en", "url": "https://stackoverflow.com/questions/13934240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Selecting records based on maximum value of another field I am trying to pull a list of distinct city names with their latitudes and longitudes based on the maximum value of the land area field. The best I get is a "SQL: Error correlating fields" error. SELECT a.primary_city as city ; , a.state as state_id ; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/58511479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery closest() or children not working jquery code :- $('.cycle-status-update') .on('mouseenter', (function(){ $(this).closest('.delete-status-update-link').show(); })) .on('mouseleave', (function(){ $(this).closest('.delete-status-update-link').hide(); })) html code :- .status-partial -@user...
{ "language": "en", "url": "https://stackoverflow.com/questions/14767379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Dynamically Populate the linear layout depending upon Markers on the Map I am working on the android project in which I need to draw a UI something like below. I need to divide the android screen in two half. In the Top Half I need to show the google maps. And in the Bottom Half I need to show the user information a...
{ "language": "en", "url": "https://stackoverflow.com/questions/11927967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Is this a bug in Power BI? I have several .pbix files where I mostly consume live from SSAS. Last week I was able to see the model, (I downloaded today the december 2022 version) and after I installed it, I can't see them anymore... why? Is this the expected behavior? it seems like a bug...
{ "language": "en", "url": "https://stackoverflow.com/questions/75218905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I detect if in Android , soft-keyboard's delete has been long pressed when a particular TextInputLauout field is in focus I have many custom TextInputLayout with custom TextInputEditText views in the XML. For some TextInputFields I need to give the below feature: * *When the field is in focus *Soft keyboa...
{ "language": "en", "url": "https://stackoverflow.com/questions/74883903", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Conditional Left Join I'm trying to figure out how to return columns only when needed. Data will only exists in the 1_finance_add_details and the addresses e tables when t.trans_type=2 SELECT t.*, a.company, a.house_number, a.flat_number, a.house_name, a.address1, a.address2, a.address3, a.town, a.county, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/21361315", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Hibernate enableFilter not working when loading entity by id I have 3 classes: * *Event *PublicEvent extends Event *PersonalEvent extends Event my hibernate mapping file is somethings like bellow. i wanna add one filter for PersonalEvent and before loading this object, i was enabled that's filter. but this is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/42173894", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Node Js Firestore accessing a database value with a space new to node Js expecting this to be very easy! in node JS with Firestore i want to access "display name": James, "Age": 22 Age has no space so i can just put const newValue = doc.data(); const age = newValue.Age; but display name contains a sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/50743471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Control Android LED from shell I have seen several questions (and blog posts, elsewhere) with Java code for controlling the notification LED on an Android device. That's not what I'm looking for. I'm wondering if there is any way to access the appropriate commands / controls / frameworks from the shell (Perl, ruby)....
{ "language": "en", "url": "https://stackoverflow.com/questions/17201867", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How to use palettes in SDL 2 I'm updating a program from SDL 1 to SDL 2 and need to use color palettes. Originally, I used SDL_SetColors(screen, color, 0, intColors); but that does't work in SDL 2. I'm trying to use: SDL_Palette *palette = (SDL_Palette *)malloc(sizeof(color)*intColors); SDL_SetPaletteColors(palette,...
{ "language": "en", "url": "https://stackoverflow.com/questions/29609544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Trouble predicting with tensorflow model I've trained a Deep Neural Network on the MNIST dataset. Here is the code for training. n_classes = 10 batch_size = 100 x = tf.placeholder(tf.float32, [None, 784],name='Xx') y = tf.placeholder(tf.float32,[None,10],name='Yy') input = 784 n_nodes_1 = 300 n_nodes_2 = 300 def...
{ "language": "en", "url": "https://stackoverflow.com/questions/51335512", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Azure Table Storage - Entity Design Best Practices Question Im writing a 'proof of concept' application to investigate the possibility of moving a bespoke ASP.NET ecommerce system over to Windows Azure during a necessary re-write of the entire application. Im tempted to look at using Azure Table Storage as an altern...
{ "language": "en", "url": "https://stackoverflow.com/questions/5662393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: c++ overloading function including bool and integer arguments a simple and I guess easy to answer question (if I did not already got it myself). The following overloaded functions: void BR(const bool set) { backwardReaction_[nReac_] = set; } bool BR(const int reactionNumber) const { return backwardReaction_[reaction...
{ "language": "en", "url": "https://stackoverflow.com/questions/60681839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert Images to gif using ios I am trying to convert 10 UIImages in .gif format programatically using IOS Xcode 4.5 and save it in gallery, but am having no luck I even tried a question at stackoverflow Create and and export an animated gif via iOS? I am not getting the point what are the variables like __brid...
{ "language": "en", "url": "https://stackoverflow.com/questions/16996690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP use variable to populate associative array I am currently populating an associative array like this: $plates_data['data'][] = array("drilldown"=>$sImageUrl, "type"=>$Type, "job_no"=>$Job_No, "customer"=>$Customer); I'd like to be able to do something like this: $myvar = '"drilldown"=>$sImageUrl, "type"=>$Type, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/24748318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Discord.PY JSON So I was working on something and weird things are happening. My amounts.json is resetting and the code isn't adding to the amounts.json. (ex. I type the command that adds to the number and it does nothing to the amounts.json) Code: @bot.command(pass_context=True) async def redeem(ctx, key): with...
{ "language": "en", "url": "https://stackoverflow.com/questions/60067229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Run Code Before First View Controller is Initialized (Storyboard-based App) My app needs to perform some cleanup tasks -delete old data stored locally- every time on startup, before the initial view controller is displayed. This is because that initial view controller loads the existing data when initialized, and di...
{ "language": "en", "url": "https://stackoverflow.com/questions/35054284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to work with maybe to detect sudoku values I want to form a list of Bools for if values suite a Sudoku format. i.e either Nothing or Just x where (1 <= x <= 9). Here is my code below: import Data.Ix import Data.Maybe isSudokuValues :: (Ix a, Num a) => [Maybe a] -> [Bool] isSudokuValues list = map (maybe True in...
{ "language": "en", "url": "https://stackoverflow.com/questions/33032501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to send message to django form Originally I made a script in PHP and because I put html in .php file it was easy to show a message when adding data to database was done. Now I'd like to do the same in Django. I have simple form, and view that add the data. And when adding is done I want to display some div with ...
{ "language": "en", "url": "https://stackoverflow.com/questions/31629785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tablesorter widgets break the pagination Using tablesorter without the widgets, I can set the size attribute in the tablesorterPager and it works well: I can change the table size dynamically, using a dropdown with several values, but if I refresh the page, it displays correctly the number of rows setted with the si...
{ "language": "en", "url": "https://stackoverflow.com/questions/33246430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Angular 2 popup form on-click I need a pop-up screen on click in angular 2. A pop-up screen will include different tabs and form I tried with angular2-modal but it has only prompt are alert but not sure whether it support custom form creation. If angular2-model support custom form how to do else Is there any other p...
{ "language": "en", "url": "https://stackoverflow.com/questions/43584551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Applying user patterns in pytesseract I'm using pytesseract to try to detect certain pattern of strings in images. As far as I understand, the correct use of user patterns will help pytesseract make a better scan for a certain pattern of string. However, I can't figure out how to put that to work. This question help...
{ "language": "en", "url": "https://stackoverflow.com/questions/62560122", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Meteor load static data once for several templates I'm working with meteor and FlowRouter. I have a collection of a country's administrative divisions and the data is about 2000 documents. I read this data in several routes so at the moment I'm subscribing to the same collection every time I visit one of the routes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/35202452", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does following program shows error Q and D are not declared? I wrote this program for an FIR filter and used D flip flop for delay. I needed to implement filter with Impulse response h(n) = {1, -1} Despite various efforts, it shows the same error that D and Q aren't defined/ declared properly. There was another...
{ "language": "en", "url": "https://stackoverflow.com/questions/40255099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How can I pass a line from a file as argument to a c program via bash? I have a c program that accepts as argument a string. The string input as argument is a single line of a file, so for example one of my files contains the following: 0410000340000230 1111111111111111 1800400700032050 So far I've writen a bash sc...
{ "language": "en", "url": "https://stackoverflow.com/questions/55997237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to call function expression of javascript from angular7 How to call function expression of JavaScript from angular 7? My problem is similar to this here is my test.js: 'use strict'; var val = (function() { function launch() { console.log("val"); }; return { launch: launch }; })();...
{ "language": "en", "url": "https://stackoverflow.com/questions/53946828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pg_restore not restoring a certain table? In a Django project, I have a model Question in the lucy_web app, but the corresponding lucy_web_question table does not exist, as seen from a \dt command in the database shell: (lucy-web-CVxkrCFK) bash-3.2$ python manage.py dbshell psql (10.4) Type "help" for help. lucy=> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/51316479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A puzzled result after calling pandas.get_dummies() I get data like this way: train.MSZoning.value_counts() Out: RL 1151 RM 218 FV 65 RH 16 C (all) 10 Name: MSZoning, dtype: int64 And I try label encode it in this way: C (all) => 0 Fv => 1 RH => 2 RL => 3 RM => 4 SO, I gue...
{ "language": "en", "url": "https://stackoverflow.com/questions/53763162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to access Vue Component from plain vanilla DOM Situation I'm building a SPA with Vue. There are pop-up notifications, made with Vue-Noty ( https://github.com/renoguyon/vuejs-noty ). I have a vuex action, checking session status, if it finds out the session is expired, there will be a noty displayed ("Your Sessio...
{ "language": "en", "url": "https://stackoverflow.com/questions/62813688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting internal page links including anchors in sitecore 8 The new design for Inserting an Internal link( using General Link field type) in Sitecore 8 doesn't include Anchor attribute field but in an older version (i.e. sitecore 7), this field is available. Is there a way by which authors can add anchor to an inter...
{ "language": "en", "url": "https://stackoverflow.com/questions/33006910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Changing the Folder security permissions using Excel VBA I am trying to write some code to put a text file into a secure folder. The folder has attributes already set to read-only so that the files within are secure and cannot be altered but still read. The FileSystemObject will allow me to use the attribute proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/40403321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }