text
stringlengths
15
59.8k
meta
dict
Q: ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: YES) I'm trying to log in to mysql via a bash script or to be more specific, I want to check if the passed parameters for the mysql user are thes of an admin user. For this reason it has to be possible to log in to mysql via a one line c...
{ "language": "en", "url": "https://stackoverflow.com/questions/68984510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to exit from nested for loop using break statement in Python [tmp.py] #is_skip = False # Alt. approach for i in range(5): for j in range(3): if j == 2: # is_skip = True # Alt. approach break print('I, J => ', i, j) # if is_skip: # Alt. approa...
{ "language": "en", "url": "https://stackoverflow.com/questions/57603399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python Named Pipes Behavior I am primarily a PLC programmer who has been tasked with writing some code to run on a Raspberry Pi2B (Raspbian Wheezy) to grab some data from another process running on the RPi and making that data available on a Modbus TCP (old PLC protocol) interface. I have it working, but am now try...
{ "language": "en", "url": "https://stackoverflow.com/questions/33855556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Creating/Saving a Vim Layout Everytime I open a project/directory I use the exact same vim pane layout: --------- | |pane| |pane|pane| | |pane| --------- I would like to be able to open a new vim session with this layout, all of the panes on the right would start in :Explore mode, while the left pane would ...
{ "language": "en", "url": "https://stackoverflow.com/questions/34211242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: The application does not start (error due to _stprintf_s) When I execute code in Visual studio 2015, I get the following message Triggered a breakpoint. It seems that the error occurs in stdio.h at line 1265 { int const _Result = __stdio_common_vswprintf_s( // this is line 1265 _CRT_INTERNAL_LOCAL_PRINT...
{ "language": "en", "url": "https://stackoverflow.com/questions/43836957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Receive annotation value from annotated field Is it possible to receive annotation value inside a field, that was annotated? Imagine that I have this interface: @Target(ElementType.FIELD) @Retention(RetentionPolicy.RUNTIME) public @interface MyAnnotation { String value(); } And I have such implementation: class...
{ "language": "en", "url": "https://stackoverflow.com/questions/44112392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Combining Excel COUNTIFS with aggregate functions Say I have an Excel spreadsheet containing student details and dates of courses the student attended. Lets say the row headers are: Name - Student Grade - Date of course A - Date of course B - Date of course C etc... Then obviously a separate row per student containi...
{ "language": "en", "url": "https://stackoverflow.com/questions/9962881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to Get hosting WAS 7.0 server url inside a webservice code? I have a common codebase deployed in four different servers for various purposes like testing env, development env, production env etc. But I need to know inside the code, which server's code is running to decide the flow of my code. Anybody know how to...
{ "language": "en", "url": "https://stackoverflow.com/questions/12558852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MATLAB: Specify a fixed color for zero in imagesc I have sets of 2D data that spread across negative value to positive value. When plotted using imagesc for different set of data, it'll be inconsistent to look at as the zero value is not always at a fixed color. Is it possible to fix a color for 0 value and then bot...
{ "language": "en", "url": "https://stackoverflow.com/questions/49551782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to select only the contents of the ImageView and the Textview and download them as an image file to save in the device storage? I want to create a download button so that users can download the contents of the ImageView and TextViews (which is on top of the ImageView) as an image file and save it in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/46886504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: splitting string with regular expression in php using preg_split I am looking for a regular expression (using preg_split()) that can be used to split the following string: hello<span id="more-32"></span>world Desired result: $var[0]=hello $var[1]=world I tried using this code put it didn't work p...
{ "language": "en", "url": "https://stackoverflow.com/questions/18792070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: python regular expression repeating pattern matching entire string I am working with python regular expression basics .I have a string startabcsdendsffstartsdfsdfendsstartdfsfend. How do i get the strings in between consecutive start and end without matching the entire string? A: use the start.*?end in the re. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/15202913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WPF | C# - When WindowStyle = "None" and the window is maximized the Task Bar doesn't show up How can I be able to see the taskbar when WindowStyle="None". I'm trying to have my own buttons (Close, Maximize, Minimize) by removing the actual window title bar and using a dll too remove the border. Easy to maintain an...
{ "language": "en", "url": "https://stackoverflow.com/questions/24189280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Enable/ Create SSO (Single Sign On) in Asp.Net MVC applications I want to implement/enable SSO (Single Sign On) on my Asp.Net MVC applications. Please consider the points below below for your kind suggestions: * *I have 3 Asp.Net MVC applications where I want to enable SSO for them. *I know I can achieve SSO by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13738589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can you pipe into the bash strings command? The strings command is a handy tool to extract printable strings from binary input files. I've used it with files plenty. But what if I wish to stream to it? A use case is grepping a stream of data that may be binary for specific strings. I tried data-source | strings -- -...
{ "language": "en", "url": "https://stackoverflow.com/questions/72000727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Send email in asp.net,html This is my index.aspx form. <form role="form" method="post" action="SendMail.aspx"> <div class="form-group"> <input type="text" class="form-control" id="name" name="name" placeholder="Name" required> </div> <div class="form-group"> <input type="text" class="form-control" id...
{ "language": "en", "url": "https://stackoverflow.com/questions/34588595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I stop a uWSGI server after starting it? I have a Python pyramid application that I am running using uwsgi like so: sudo /finance/finance-env/bin/uwsgi --ini-paste-logged /finance/corefinance/production.ini Once it's running and my window times out, I am unable to stop the server without rebooting the whole...
{ "language": "en", "url": "https://stackoverflow.com/questions/38938440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Akka Generic Custom Directives I am using custom directives to validate my params: def optionalIntParamAs[C](parameterName: String, validator: Int => C Or ErrorMessage): Directive1[Option[C]] = parameter(parameterName.as[Int].?) .recoverPF[Tuple1[Option[Int]]] { case Seq(MalformedQueryParamReject...
{ "language": "en", "url": "https://stackoverflow.com/questions/42792100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Media Foundation - Sequencer Source Loop I'm trying to make a video player that plays videos in sequence, seamlessly and with looping. The "sequence" and "seamless" part was resolved by using Sequencer Source. But the "loop" part is giving me headaches! What I'm trying to do is capture the MEEndOfPresentation event,...
{ "language": "en", "url": "https://stackoverflow.com/questions/43529913", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is Controller.View returning null? I'm unit testing someone else's ASP.Net MVC4 Controller action method. Its last line is: return this.View("ConfirmAddress", addressModel); This returns null in my unit test. The Controller.View documentation says the first parameter is a view name but I can't step into this me...
{ "language": "en", "url": "https://stackoverflow.com/questions/15947533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: D3 tickValues not working I have following D3 axis: var x = d3.scale.ordinal() .domain(["A", "B", "C", "D", "E"]) .rangePoints([0, width]); var xAxis = d3.svg.axis() .scale(x) .tickValues(["a", "b", "c", "d", "e"]) .orient("bottom"); working fiddle here: https://jsfiddle.net/akshayKhot/1vusrdvc/ The tickValues ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/37738113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: doing a simple SSIS-style data flow in c# without any external libraries I'm looking for an example of a simple data flow in C# without relying on SSIS or external libraries such as Rhino-ETL (which is a very good library, BTW). Requirements: * *One arbitrary ADO .Net data source *One arbitrary ADO .Net data des...
{ "language": "en", "url": "https://stackoverflow.com/questions/8764426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ThenInclude with many to many in EF Core I have the following tables: public class Parent { [Key] public long Id { get; set; } [ForeignKey("ParentId")] public List<Person> Persons { get; set; } } public class Person { [Key] public long Id { get; set; } public long ParentId { get...
{ "language": "en", "url": "https://stackoverflow.com/questions/59506237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where to find jquery UI Tabs widget API document I find someone write the jquery codes as below: <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script> <script type="text/javascript" src="http://...
{ "language": "en", "url": "https://stackoverflow.com/questions/13504409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Syntax Error with Foreign Key in `` Quotes Need your small help here, I was trying to do a join which is showing syntax Error. syntaxError: invalid syntax df_results = df_tempTable2.join(df_parent, df_tempTable2.`entity_key|inv.entity|entity_id|entity_key|FK` == df_parent.enterprise_id,"inner") Not sure how to use ...
{ "language": "en", "url": "https://stackoverflow.com/questions/74388984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: nodejs route.get to SEND a post request The get to this route works fine. But how do I take my route.get() and make it do a post? If the post is written in jquery, or express, or something else I don't care. Below I just used the jquery as an example. router.get('/', function (req, res, next) { var url = 'blabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/43157227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Mega-menu for Modern team site I started a modern team site in SPO and added lots of pages and link to them in the quick link. Now the users want Mega-Menu instead of the quick link. I tried to copy the pages to a new communication sites that has mega-menu but there is a difference in the site template that does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/57793811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sleep function will abort when received a signal? #include <signal.h> #include <stdio.h> void ints(int i ) { printf("ints \n"); } int main(void) { signal(SIGINT, ints); sleep(10); } input Ctrl+C , the program will terminate immediately with output: ^ints I was wondering why,in my opinion,the program...
{ "language": "en", "url": "https://stackoverflow.com/questions/9661419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery UI Layout and Constraining Dialogs to the Central Pane I am trying to create a full page interface using the excellent jQuery UI Layout plugin. I want the central pane to hold multiple dialogs and allow them to be contained within that pane. So far so good. However, I also want to be able to drag the dialogs...
{ "language": "en", "url": "https://stackoverflow.com/questions/23226555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to post a jsf data in Android Can I post a jsf form data in Android?For example this jsf page ; <h:form> <h:panelGrid columns="2" border="0"> <h:outputLabel value="Adınız : "/> <h:inputText value="#{pd.ad}"/> <h:outputLabel value=""/> <h:commandButton value...
{ "language": "en", "url": "https://stackoverflow.com/questions/19291557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to launch an app from another app in my app i have to launch another app, only if it is not yet launched. To launch an app what i do is: PackageManager pm = getPackageManager(); Intent intent = pm.getLaunchIntentForPackage("package.of.app.to.launch"); startActivity(intent); My problem is that if app is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/13378628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Custom UIView from Interface Builder I'm trying to keep things organized and create hierarchy of views for my app. So for instance I want to create a custom view to display some text, another custom view to display progress and then use all those views in the main view created with View-Based Application template. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/4869424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Why is the containsKey() function not detecting the repeated char as the key in Dart in the problem below? The containsKey() function is not detecting the repeated value in my test 'current' string, where it just replaces the original value of the key 'r' with 3, when it should go through the containsKey() function,...
{ "language": "en", "url": "https://stackoverflow.com/questions/73808439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Loop through groups of spans in JQuery <td style="display:none;"> <span class="runId">4</span><span class="processName">Get End-Of-Day Reuters Feed Rates</span> <span class="runId">130</span><span class="processName">Get End-Of-Day Bloomberg Feed Rates</span> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6427490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unexpected value 'DecoratorFactory' imported by the module 'DynamicTestModule' - karma-jasmine I'm getting error during creating Test component instance. let comp: TaskviewComponent; let fixture: ComponentFixture; let deTaskTitle: DebugElement; let elSub: HTMLElement; describe('TaskviewComponent', () => { befo...
{ "language": "en", "url": "https://stackoverflow.com/questions/41277642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: JS Replace text in between unique expression in parentheses (i) My intention is to build a parsing function which searches within a string (think blog post) for any substrings wrapped around unique identifiers in parentheses, like (i). My current implementation isnt working. Would truly appreciate any help! let text...
{ "language": "en", "url": "https://stackoverflow.com/questions/72967685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Import numpy raise import error numba needs numpy 1.21 or less I tried to import numpy and I recieved the following error: "raise ImportError("Numba needs NumPy 1.21 or less") ImportError: Numba needs NumPy 1.21 or less" we already downloaded numba 0.48 and numpy 1.18.1 and it still asks to use numpy 1.21 or less. c...
{ "language": "en", "url": "https://stackoverflow.com/questions/71626701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: MySQL multi source replication Can somebody write me step by step how to make multi source replication. I read a lot of info about it but i have a problem with gtid-mode. I turn on gtid-mode in my.ini file on the master computer but when i make dump on databases i got error with gtid executed need to be empty. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/37781879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Python loop through single cell and column in a csv I have just picked up python and I am trying to use the module fuzzwuzzy in tandem with pandas to assist in matching names from PLACEMENT and CREATIVE_NAME columns. I have figured out how to test the first row of PLACEMENT against all rows of CREATIVE_NAME; howeve...
{ "language": "en", "url": "https://stackoverflow.com/questions/32225088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: add different widgets to each wxnotebook tab permanently in a txt file or sqlite Please how can I add permanently different widgets in the tabs and save them permanently <html> <pre> import wx tabs = [] with open('test.txt','r') as file: for element in file.readlines(): tabs.append(element) class TabPan...
{ "language": "en", "url": "https://stackoverflow.com/questions/61845435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why function argument evaluation cannot be ordered? As far as we know, the function argument evaluation order is not defined by c++ standard. For example: f(g(), h()); So we know it is undefined. My question is, why cant c++ standard define the order of evaluation from left to right?? A: Because there is no good...
{ "language": "en", "url": "https://stackoverflow.com/questions/50062906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Manually Calculate Intercept (Beta 0) and Coefficient (Beta 1) in Logistic Regression? I'm currently studying about Logistic Regression. But i'm getting stuck at calculating Intercept (Beta 0) and Coefficient (Beta 1). I've been looking for it through the internet, but only get tutorials using Microsoft Excel...
{ "language": "en", "url": "https://stackoverflow.com/questions/40318763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CloudFormation, S3 bucket access to cross-acccount IAM role I have 2 accounts, s3_buck_acct and iam_acct. I want to provision IAM role from iam_acct to certain actions on the S3 bucket from s3_buck_acct. Here is the CloudFormation template I came up with that ends up with error: Resources: S3BucketTest: Type: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/60662142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML - CSS for an image with radio button I would like to have an image with a radio button under it. The image should be get into a frame whenever the radio button is selected. I achieved that behaviour but with the radio button must be on top of the image, and I would like to have it under the image. /* IM...
{ "language": "en", "url": "https://stackoverflow.com/questions/64725661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to understand the print in GDB? I have an assembly code, .section .data value1: .int 1 value2: .short 2 value3: .byte 3 .global _start _start: nop movl value1,%ecx movw value1,%bx movw value2,%bx movb value3,%cl movl $1, %eax ...
{ "language": "en", "url": "https://stackoverflow.com/questions/75535365", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to read multiple files in parallel? I have a number of text files that I need to open, then allocate certain fields to set strings inside PHP to eventually write into MySQL. Each txt file does have the same unique value for app_id, eg So text file 1 has app_id name description text file 2 has app_id category tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/3281233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Get a list of files in a react web application I have a directory full of text files that I need to read in my react web app -resources |-file1.txt |-file2.txt |-file3.txt I would like to store this resources directory somewhere in the app such that the contents of resources can be listed, and individual files can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/70609856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Duplicate Rows dynamically jquery based on checkbox checked I am trying to dynamically add rows based in the checkbox checked. The idea here is to duplicate the selected row. For instance, initially there is only one row. On checking the checkbox corresponding to this row, it creates a duplicate of it. If i change t...
{ "language": "en", "url": "https://stackoverflow.com/questions/19722810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Populate labels in a loop I have 5 labels titled lblQuestion1, lblQuestion2, lblQuestion3... and as part of the loop below, when i=0, I want lblQuestion1.Text = reader["answer1"].ToString(); ... i=1 --> lblQuestion2.Text = reader["answer1"].ToString(); ... i=2 --> lblQuestion3.Text = reader["answer1"].ToString(); ....
{ "language": "en", "url": "https://stackoverflow.com/questions/24588779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AWS Http connection I observed the following behavior while working with AWS SDK. Test Scenario 1: Trying to download the multiple files of same size from S3 in sequential (back to back, no thread wait) calls using S3Client as singleton.(internally uses Http-core 4.3) Result : First call to download the document ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/26937455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to instantiate a child class with parent object in java? I have a base class say class A { private String name; private String age; //setters and getters for same } and a child class say class B extends A { private String phone; private String address; //setters and getters for same }...
{ "language": "en", "url": "https://stackoverflow.com/questions/24616381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Neural Networks works worse than RandomForest I have a classification problem that target contains 5 classes, 15 features(all continuous) and have 1 million for training data, 0.5 million for validation data. e.g., shape of X_train = (1000000,15) shape of X_validation = (500000,15) First, I used Random Forest that...
{ "language": "en", "url": "https://stackoverflow.com/questions/53063116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set default selected value for Rails SimpleForm select box I'm trying to figure out how to set the selected option of a select box generated by SimpleForm. My code is along the lines of: <%= simple_form_for(@user) do |f| %> <%= f.association :store, default: 1 %> Of course the default: 1 part does not work...
{ "language": "en", "url": "https://stackoverflow.com/questions/10441061", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Dockerfile: pass argument to RUN npm run build I have a dockerfile with these lines: ARG ENVIRONMENT ENV ENVIRONMENT $ENVIRONMENT RUN npm run ng build --configuration=${ENVIRONMENT} I cant get the "RUN npm run ng build --configuration= to pass the value of $ENVIRONMENT to the npm command. What is the syntax for th...
{ "language": "en", "url": "https://stackoverflow.com/questions/58461912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iPhone app crashes only in Release mode on 3G I have an app I'm writing that crashes when I call addSubview on a UIScrollView with "EXC_BAD_ACCESS". It only does this on iPhone 3G in release mode and only on the device. I works fine in all these other configurations: iPhone 3G - Debug mode iPhone 3GS - Debug AND Rel...
{ "language": "en", "url": "https://stackoverflow.com/questions/4149960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Populate future dates in oracle table I have a script to populate previous(2016), current(2017) and complete next year(2018). The script is intended to be run initially to populate table. It can be run only once since it populates prior dates. How do I populate future dates (2019)? insert into my_date SELECT TO_NUM...
{ "language": "en", "url": "https://stackoverflow.com/questions/53289070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: HTML::DOM stops forks module from working I have encountered a strange error. When I use HTML::DOM and forks module at the same time, the forks module doesn't work properly. Strange thing is, this occurs only at some machines, not on others. Example: use forks; use HTML::DOM; $|=1; print "before\n"; threads->new( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/4484798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android BLE connect to device by Name I'm developing an app that has to connect to a hardware device via bluetooth low energy. The code I'm working with right now enables me to connect just fine, but through the device's address through mBluetoothLeService.connect(String deviceAddress) (where deviceAddress = "F8:AF:...
{ "language": "en", "url": "https://stackoverflow.com/questions/24402179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using if else blocks getting missing right parenthesis error I'm new to Oracle and having knowledge of MS SQL. I'm trying to get a phone number depending upon the user_id from Table2 and here is the business logic: * *Case1: if a single match is found in Table1 then get it's respective toll free number from Table...
{ "language": "en", "url": "https://stackoverflow.com/questions/20712398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pagination in endless recycler view with firebase I am working on Q/A app . I have successfully loaded questions from firebase . But I am not able to apply pagination from Firebase like database . And how to recognize that we have reached end of recycler view so that next few questions can loaded . A: To recognize ...
{ "language": "en", "url": "https://stackoverflow.com/questions/43289731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Detailed Initialization Procedure class variable initializer I saw many confusing answers about the following point : Next, execute either the class variable initializers and static initializers of the class, or the field initializers of the interface, in textual order, as though they were a single block. does cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/57169969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Schedule a SQL-query to move data from one table to another with Azure SQL-db I have a simple query that takes old data from a table and inserts the data into another table for archiving. DELETE FROM Events OUTPUT DELETED.* INTO ArchiveEvents WHERE GETDATE()-90 > Events.event_time I want this query to run daily. As...
{ "language": "en", "url": "https://stackoverflow.com/questions/64537270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to set numberOfLines to 1 of each entry in the dropdown picker? (react-native-dropdown-picker) Code: <DropDownPicker //code here style={styles.dropdown_container} textStyle={styles.dropdown_itemstyle} props={{style: styles.dropdown_container}} itemProps={{ style: { height: 30, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/73616424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change color of caption text in toctree Is there a way to change the color of captions on a sphinx webpage? I'm using the :caption: directive with toctree, but the caption comes out almost the same color as the sidebar. For reference here is the link to the page with the hard to see captions and here is my index fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/31326830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Stored Procedure while using variable return value becoming zero Please check the stored procedure - what is my mistake? I am trying to assign the calculated value to variable. Alter Proc [dbo].[FindAnnualLeave1] @Empid varchar(20) as Declare @AnnualPending int Select @AnnualPending = (select (0.082...
{ "language": "en", "url": "https://stackoverflow.com/questions/26830940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Gradle Plugin Error. Gradle DSL method not found: 'compile()' This is the exact error I'm getting while making a build in release Variant. Error:(57, 0) Gradle DSL method not found: 'compile()' Possible causes: *The project 'spot' may be using a version of the Android Gradle plug-in that does not contain th...
{ "language": "en", "url": "https://stackoverflow.com/questions/41319749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I build a loop function that automatically creates multiple data-frames at one go? I have been struggling to try to nail down this coding dilemma. I have built a program that models and forecasts individual stock symbols. It works great, but I'm ready to take it to the next level where a user like myself can for...
{ "language": "en", "url": "https://stackoverflow.com/questions/59020355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: django filter on APIView I have a APIView class for showing all the rents and posting and delete etc. Now i want search feature so i tried to use DjangoFilterBackend but it is not working. I see in documentation, it has been used with ListAPIView but how can i use it in APIView. class Rent(APIView): """ Lis...
{ "language": "en", "url": "https://stackoverflow.com/questions/43906253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: How to find online android app hidden API? I want to scrape an online android app data, so first of all I'm searching for the API, I have tried Mitmproxy, but when I changed my wifi proxy setting then my internet connection won't work and due to this my app is not working or not sending the data because it's an onli...
{ "language": "en", "url": "https://stackoverflow.com/questions/73200179", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding a non-consecutive number pair in an array Given an array with a minimum length of 3 and a maximum length of 5, which always contains uniquely occurring integers from 0 to 4 in ascending order, I need to pick out two non-consecutive numbers from it. Non-consecutive refers to their numeric value, not their pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/45371282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Uninstall AFNetworking from Xcode Workspace Can somebody help me uninstall/remove AFNetworking from my xcode project? I have tried deleting the files, but then I recieve an error message. A: I've tried to delete all thing on Podfile archive and then install the pod again with the command "pod install" on the worksa...
{ "language": "en", "url": "https://stackoverflow.com/questions/30540183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Wait Cursor issue - Need help I have been searching in the net as well here to get some help/info on wait cursors, but couldn't find direct answer. I am having web project built in vs 2008 c#. As usual I have master page and child pages as well some user controls placed on some of the child pages. As child pages or ...
{ "language": "en", "url": "https://stackoverflow.com/questions/6623016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to block iOS screen capture on intune I use Microsoft Teams. Currently, we used the app policy using intune. When using Android's device, screen capture is blocked. However, if you use Teams app on iOS devices, you cannot block screen capture. I want to block screen capture when I use Teams app on iOS devices. P...
{ "language": "en", "url": "https://stackoverflow.com/questions/63500961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Building a routine to generate CREATE TRIGGER code in Postgres I haven't found a straightforward way to retrieve trigger definition code. I mean the trigger/binding declaration, not the trigger function. I figured I'd use some of the system catalogs to build up a script. The following, incomplete, version produces s...
{ "language": "en", "url": "https://stackoverflow.com/questions/60160781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: delete duplication in my db with 4 columns I have 4 columns with different numbers, each row is a different combination, my objective is to remove remove the duplicates in the table. As these are combinations where the order of the digits is swapped, i want to remove the swapped rows and keep only 1 (i'm guessing e...
{ "language": "en", "url": "https://stackoverflow.com/questions/42976421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: My app crashes when opening navigation drawer i am making navigation drawer but it crashes with following error: Error inflating class android.support.design.widget.NavigationView here is my code mainactivity import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.os.Handler impor...
{ "language": "en", "url": "https://stackoverflow.com/questions/48060620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the selected text from a WordEditor Object and change it's color? I'm trying to use the WordEditor object to modify the color of the selected text (Outlook VBA) but i'm unable to find documentation or examples on how to do it. Any ideas? I don't want to use the HTML editor, i need a solution for WordEdi...
{ "language": "en", "url": "https://stackoverflow.com/questions/4361293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: removing apostrophes for plotting of matplotlib graph i am trying to plot a graph on matplotlib but it will not work properly as the values are returned with apostrophes, here is my code, import matplotlib.pyplot as plt emp_data_list=[] def read_file(): infile = open ('emp_data.txt', 'r') for row in infile: if...
{ "language": "en", "url": "https://stackoverflow.com/questions/53772075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Memory-optimized Gauss-Seidel iteration on a tridiagonal matrix in Octave I'm trying to write a program in Octave that will solve a tridiagonal linear equation system. The specific part is that my data is not saved in a usual nxn matrix, but in a nx3 matrix where each column represents the lower, main and upper diag...
{ "language": "en", "url": "https://stackoverflow.com/questions/47514861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Auto screen orientation is not working one user ser screen orientation android I have create a custom media player.In which there is a button for landscape and portrait mode. When player opens media player,its all feature works fine.But on click fullscreen button, i set media player to landscape mode. After this but...
{ "language": "en", "url": "https://stackoverflow.com/questions/18056664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Accessing Java byte[] in C++ I have a Java application that persists byte[] structures to a DB (using Hibernate). I'm writing a C++ application that reads these structures at a later time. As you might expect, I'm having problems.... The byte[] structure written to the DB is longer than the original number of byte...
{ "language": "en", "url": "https://stackoverflow.com/questions/6299145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C# Read Block Implementation I am writing a program which is parsing large, non-predictable files. No problem with this part. I have been using the code below, looping through ReadLine until the end of the document to keep the memory footprint low. My problem being is an OutOfMemoryException when a line is simply to...
{ "language": "en", "url": "https://stackoverflow.com/questions/11849355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Call docker command line to remove all containers from python I am trying to port: https://coderwall.com/p/ewk0mq/stop-remove-all-docker-containers to a python script. So far I have: def remove_all_containers(): subprocess.call(['docker', 'stop','$(docker ps -a -q)']) subprocess.call(['docker', 'rm','$(docke...
{ "language": "en", "url": "https://stackoverflow.com/questions/48481138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Creating TextView by for loop, only the first created working I am trying to create a brunch of TextView and show them on the screen by a for loop. But only the first TextView shows the value "123" assigned. There are still many TextView created but only the first one shows value. I think I missed something, but do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/67455291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: pandas: how to get the percentage for each row When I use pandas value_count method, I get the data below: new_df['mark'].value_counts() 1 1349110 2 1606640 3 175629 4 790062 5 330978 How can I get the percentage for each row like this? 1 1349110 31.7% 2 1606640 37.8% 3 175629 4.1% 4 790062 18....
{ "language": "en", "url": "https://stackoverflow.com/questions/39243649", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to create Windows Server Failover Cluster using Terraform Hoping someone is able to assist with being able to create / automate a Windows Server Failover Cluster, on Windows Server 2019 DataCenter Edition VM/s (without SQL installed, and not on SQL Managed Instances) using Terraform, in Azure. There does not app...
{ "language": "en", "url": "https://stackoverflow.com/questions/72099016", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: first time in phpMyAdmin, error #1064 pops up this is my first time using phpMyAdmin and I was trying to import a sample database when this line of text happened, #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'source l...
{ "language": "en", "url": "https://stackoverflow.com/questions/74105142", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: angularJs filter nested object Track by I created a custom filter, but its giving me an error I created a fiddle here: Fiddle I have this user data: data: [{ profile: { firstName: 'John', lastName: 'OConner' } }, { profile: { firstName: 'Smith', ...
{ "language": "en", "url": "https://stackoverflow.com/questions/25044228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to intersect a list and a dataframe in pandas? I have a list that looks like this: set(['loc. 08652', 'loc. 14331', 'loc. 08650', 'loc.06045', 'loc.10160', 'loc. 08656'] I have a data frame that looks like this: lung heart kidney asx1.1_ox1.0.loc.08652 32.406993 51.709...
{ "language": "en", "url": "https://stackoverflow.com/questions/41744060", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Auth::user Trying to get property of non-object I'm using laravel 5.3 and using Multi-Auth Hesto Package. I used view composers to pass my current Auth::user to Welcome.blade I already logged in my Customer/Home.blade but when I go to Welcome.blade and accessing the current Auth::useran error says "Trying to get pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/41497940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to deserialize child nodes of xml file I've created an app using Xamarin Android. Plan is for it to open a read-only copy of Clients.xml from the Assets folder and create a copy in internal storage for future editing. The default file has a root node of clients and half a dozen child nodes of client. I've got it...
{ "language": "en", "url": "https://stackoverflow.com/questions/67252714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: oAuth 1.0 Authentication using Karate Framework I see no examples or documentation available in karate framework for 0auth 1.0 authentication testing. I am providing authorization details in the header as following and facing issues. Given url 'https://api.twitter.com/1.1/statuses/update.json' And header Content-Ty...
{ "language": "en", "url": "https://stackoverflow.com/questions/52824283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Rails 4 Guard is not updating the test count I just upgraded to Guard 2 and it is is telling me there are 7 examples and 7 failures. Here's the spec file i'm working on: # == Schema Information # # Table name: awardunits # # id :integer not null, primary key # nyaai...
{ "language": "en", "url": "https://stackoverflow.com/questions/19616145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wix deployment with oracle dlls I'm very new with .net applications and I'm trying to deploy a winforms app to many machines (32 and 64 bits) without having to install oracle client in each one. I'm using oracle 11g with Oracle.DataAccess.dll. I created two wix projects in my solution (setup and bootstrapper). My s...
{ "language": "en", "url": "https://stackoverflow.com/questions/33921063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: File Chooser inside DialogFragment (re-using code) In this tutorial : http://www.dreamincode.net/forums/topic/190013-creating-simple-file-chooser/ they are using a class that extends ListActivity, they show the results thanks to the next sentence: this.setListAdapter(adapter); ( whith a custom FileArrayAdapter) but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/19665123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Learning rate adjustment in tensorflow import tensorflow as tf slim = tf.contrib.slim def create_learning_rate(curr_step, lr_config): base_lr = lr_config.get('base_lr', 0.1) decay_steps = lr_config.get('decay_steps', []) decay_rate = lr_config.get('decay_rate', 0.1) scale_rates = [ lambda...
{ "language": "en", "url": "https://stackoverflow.com/questions/46100786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JS counter continuously updating How to implement a live and persistent number counter on a site So I was looking at this question (^) and I want to do the exact same thing except a little different. I need one of these that counts up 15.8 cents per second from the numb $138,276,343 Preferably I would like to have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/11965561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C++ Template Singletons in a dll In dll A I have a template singleton: template <class T> class Singleton { public: static T &instance() { static T _instance; return _instance; } private: //All constructors are here }; In Dll B I define a class Logger. Dlls C,D and E use the Logger and it is access...
{ "language": "en", "url": "https://stackoverflow.com/questions/17614172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Delete Firebase entries onclick in a button from a insertAdjacentHTML I am trying to delete some entries in FirebaseDatabase and I am having problems. The console returns the error Uncaught SyntaxError: Invalid or unexpected token only in the first entry, and for the others returns Uncaught ReferenceError: MXcLdklS3...
{ "language": "en", "url": "https://stackoverflow.com/questions/66981934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding a subset of `n` distinct vectors with minimum distance of `d` I have a set of vectors V (say a 64 dimension vector like [1,2,...64]). From vector set V, I want to find a subset of n (n is any number > 0) distinct vectors, V1, where * *any two vectors in subset V1 has a minimum distance of d and also; *for...
{ "language": "en", "url": "https://stackoverflow.com/questions/65580197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }