title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to call function after async requests finish in SwiftUI?
<p>I have a function that calls 2 types of api requests to get a bunch of data i need in my app. In the function I make a request for locations, then for each location in the response I make a different request to get details of that specific location. (ex. if request 1 returns 20 locations, my second request is called...
1
2,792
Dynamic Packer Variables Name
<p>Use-Case is to use PACKER variable file to build AWS AMI in &quot;us-east-1&quot; and &quot;us-east-2&quot; region. I can have two separate file for NV and OH region. But I am trying out if that can be done using same variable file.</p> <p>Based on the value of variable '<strong>PACKER_BUILD_REGION</strong>' in <str...
1
1,847
HBase regionserver is aborted and can never be brought up after that
<p>I used OpenTSDB over HBase (pseudo-distributed Hadoop on virtual box) to send data at very high load (~ 50,000 records / s). The system worked properly for a while but it went down suddenly. I terminated OpenTSDB and HBase. Unfortunately, I could never bring them up again. Every time I tried to run HBase and OpenTSD...
1
8,294
Interactive Brokers C++ Error: error: 'min' was not declared in this scope
<p>I am trying to setup the <a href="https://www.interactivebrokers.com/en/index.php?f=5041" rel="nofollow noreferrer">Interactive Brokers API</a> on Ubuntu (18.04). I have installed both the IB Gateway, which is used for communicating with exchanges, as well as other API software for developing trading algorithms in J...
1
3,325
Adding header-only dependencies with CMake
<p>I have a simple project which requires three header-only libraries in order to compile: <a href="https://github.com/zaphoyd/websocketpp" rel="noreferrer">websocketpp</a>, <a href="https://github.com/gabime/spdlog" rel="noreferrer">spdlog</a> and <a href="https://github.com/nlohmann/json" rel="noreferrer">nlohmann/js...
1
2,088
java.lang.ClassNotFoundException: com.game.mrnom.MrNomGame loader dalvik.system.PathClassLoader [/data/app/com.game.mrnom-1.apk]
<p>In my title, MrNomGame is a java file in com.game.mrnom folder (of src folder).<br> When I run my app, Android Emulator error: <code>The application has stopped unexpectedly.</code> When I view logCat, there are many errors. and above error is one of the first lines of logCat and directly tell about my error. Here ...
1
3,372
Get list with start and end values from table of datetimes
<p>Currently i have a table built up like this way</p> <pre><code>DeviceID Timestamp Value ---------------------------------------- Device1 1.1.2011 10:00:00 3 Device1 1.1.2011 10:00:01 4 Device1 1.1.2011 10:00:02 4 Device1 1.1.2011 10:00:04 3 Device1 1.1.2011 ...
1
1,058
Horizontal Scroll View with Custom View child
<p>I am trying to implement a custom view inside of a HorizontalScrollView parent. The custom view repeatedly draws a line to its Canvas based on timing from a Handler. I want to set the <strong>visible</strong> width of the Custom view to be 1207px x 548px, but I want the line to be able to extend beyond what is visib...
1
2,383
Apache Beam : Transform an objects having a list of objects to multiple TableRows to write to BigQuery
<p>I am working on a beam pipeline to process a json and write it to bigquery. The JSON is like this. </p> <pre><code>{ "message": [{ "name": "abc", "itemId": "2123", "itemName": "test" }, { "name": "vfg", "itemId": "56457", "itemName": "Chicken" }], "publishDate": "2017-10-26T04:54:16.207Z" <...
1
1,757
Trouble on making example on primefaces autocomplete component
<p>I am learning how to use primefaces framework. I set up a project for making examples and I'm having some trouble with making an autocomplete component work. I wanted to show hints for "players" on this autocomplete component by it's name based on a source of players but no hints are shown. I don't have much experie...
1
1,444
com.google.gdata.util.AuthenticationException: Error connecting with login URI
<p>I have written a Java application which I am launching with the following command:</p> <pre><code>java -jar MyApp.jar </code></pre> <p>The application uses Google's GData Java libraries to edit a Google Spreadsheet. When I run this application from my Mac, it runs fine. However, I need to run it on my dedicated se...
1
1,561
AclNode::node() - Couldn't find Aro node identified by "Array ( [Aro0.model] => User [Aro0.foreign_key] => ) "
<p><strong>User.php</strong></p> <pre><code>App::uses('AuthComponent', 'Controller/Component'); </code></pre> <p>class User extends AppModel {</p> <pre><code>public $primaryKey = 'usu_codigo'; public $foreignKey = 'usu_gru_codigo'; public $useTable = 'painel_usuario'; //public $recursive = 0; public function befo...
1
2,882
Understanding FacesContext instantiation details
<p>Mojarra 2.2.12</p> <p>Here is the piece of code taking over the instantiation of the <a href="http://grepcode.com/file/repo1.maven.org/maven2/javax.faces/jsf-api/2.1/javax/faces/webapp/FacesServlet.java" rel="nofollow">FacesContext</a>:</p> <pre><code>FacesContext context = facesContextFactory.getFacesContext ...
1
1,113
WPF Bind Visibility of Validation Adorner in MVVM
<p>I am currently working on an MVVM Solution, using WPF Validation. </p> <p>What I'd like to do is be able to control when the Validation Adorners are shown using a "ShowErrors" Visibility Property in my Context.</p> <p>I have the following Template for the WPF ComboBox Validation Adorners, contained within my Appli...
1
1,564
How to scroll stacked containers with sticky header in Flutter?
<p>I am trying to achieve scroll in Flutter Web where I have few containers which are stacked and I use SingleChildScrollView to scroll the widget. However, when I scroll the first container everything working fine but the second one which is a child of the second container responds to the scroll without completing the...
1
1,191
Javascript mouseover mouseout menu
<p>I'm trying to make this javascript menu work where, when I hover over AAA its submenu shows and on BBB its submenu shows.</p> <p>It is implemented as a javascript which toggles the #subnav1 and #subnav2 css visibility where the two overlap one another.</p> <p>However it seems only BBB mouseover works correctly, I ...
1
1,756
Angular JS function not defined error
<p>I am learning AngularJS from AngularJS.org video tutorials but when I run my code it says </p> <blockquote> <p>Error: [ng:areq] Argument 'ReviewController' is not a function</p> </blockquote> <p>I got undefined in my console but my code looks the same as in the video here is my html</p> <pre><code>&lt;!doctype ...
1
3,233
Cannot find reason for java.io.OptionalDataException in my code
<p>I'm trying to serialize an object and store it on the SD card. Essentially I am saving the game state. So I just serialize a single object called GameState, which itself contains various other objects and primitives, the objects are all serializable.</p> <p>Now serializing and saving the file works fine. No errors ...
1
1,506
How to use the response in fetch request React Native
<p>I am new in react native world and (JS). I want to send <strong>phone number</strong> and <strong>password</strong> to the server to login. I can send data and receive response, however, I don't how I should handle response. I have a function called <strong>_response_recognizer</strong>. But it is not working. Even ...
1
1,367
OpenGL lines not colored
<p>I'm working in OpenGL, with VBOs, and I have a set of three lines (along the X, Y and Z axes - think Czech hedgehog). The lines are grey by default, but I want them bright red so I can see them better. Unfortunately, though I added color information as vertex data, the lines still appear grey. I'm probably missing...
1
2,040
onPress() function of TouchableOpacity does not work at first if the keyboard is open
<p>I have used TouchableOpacity as my submit button, after filling the form(Login/Registration/...) when I click on submit button(TouchableOpacity), the keyboard hides (if open), and then I need to press again on submit button and then the onPress method gets called.</p> <p>What I want to achieve is if I click on subm...
1
2,218
Mock Async method on Service using Moq
<p>I am working in a .Net Core API. I wish to unit test the <code>GetArtists</code> method on the <code>ArtistsController</code>.</p> <p><strong>CODE</strong></p> <p>Here is my controller code:</p> <pre><code>[Route("artists")] public class ArtistsController : Controller { private readonly IPermissionsService _per...
1
1,141
Signals and Missing Positional Arguments
<p>I developed two windows in QtDesigner (SourceForm, DestinationForm) and used pyuic5 to convert their .ui pages. I am using a third class <code>WController</code> as a way to navigate between the two windows using a stacked widget. I have a button in <code>SourceForm</code> that populates <code>treeWidget</code> with...
1
1,285
MongoError when uploading a file using mongoose, gridfs-stream and multer
<p>I am running express 4 using <a href="https://github.com/expressjs/multer" rel="nofollow">multer</a>, <a href="https://github.com/aheckmann/gridfs-stream" rel="nofollow">gridfs-stream</a> and <a href="https://github.com/LearnBoost/mongoose" rel="nofollow">mongoose</a> with mongodb and I am attempting to upload a fil...
1
1,383
Unhandeled exception in application
<p>I have been working on a code that will grab the userName from the local machine and place it in a log file and start a .exe if the username has not been recoreded into the log file. I was able to run the code on my local machine, but when I put it on the server and run it I am given an error that reads: </p> <p>"U...
1
1,784
Sequelize ES6 Model Methods No Existing
<p>While trying to use Sequelize JS v4 with ES6 classes I'm having trouble with the execution of the instance methods. For some reason, they seem to not exist although being defined in code.</p> <p>Here's an example - </p> <p>Model File</p> <pre><code>'use strict'; const Sequelize = require("sequelize"); class Mode...
1
1,599
How to create a complete `.war` file with pom.xml
<p>I have a web service project (SOAP) implemented in Java, as a Maven project. I want to create a <code>.war</code> to deploy into a Tomcat.</p> <p>To create the <code>.war</code>, I always used the Eclipse Juno interface (Right click -> Export -> WAR File). The Eclipse is configured with Tomcat 7 and Axis 1.5.6. Usi...
1
1,644
Bootstrap Modal, iFrame and Smart Wizard form
<p>I am trying to launch a smartwizard form from a bootstrap modal via iframe and I am having issues with the first page of the form. The modal opens correctly, but STEP 1 of the form has not been opened. If you click next STEP 2 appears, and you can go back to STEP 1 again, but why wont it do it on launch?</p> <p>I ...
1
2,451
Finding SQL Server Instance & service pack build with PowerShell
<p>I am trying to create a script to look at a list of servers from a .txt doc and find the SQL instances that are on that server as well as the sql service pack version build for each instance. The script runs but returns no info. I think I am having trouble with the $svcPack variable and the corresponding variables t...
1
3,519
JQuery rebinding on vs bind after AJAX query
<p>I would like to know why Jquery's <code>.on</code> was never called to rebind my submit button after a AJAX call, Since <code>on</code> is suppose to replace <code>.bind</code> I could not fathom that it was the problem. but i tried various things and the only thing to have worked was to use <code>.bind</code> inste...
1
1,259
how to host 2 wcf services in 1 servicehost
<p>i'm working on a wcf project i have 1 service with 2 contracts (2 endpoints) and 1 service with 1 contract (1 endpoint) i want to make 1 single ServiceHost for both my services. i can make 2 host for 2 services but i need only 1 host.</p> <pre><code>ServiceHost myService = new ServiceHost(typeof(Custome...
1
1,197
kubeadm: master node never ready
<p>I'm following <a href="https://medium.com/@SystemMining/setup-kubenetes-cluster-on-ubuntu-16-04-with-kubeadm-336f4061d929" rel="noreferrer">a blog post</a> to setup a kubernetes cluster with kubeadm. So I have a Virtualbox created with bridge network and simply followed the instructions.</p> <p>I initially just did...
1
1,082
How to get value from page using WebDriver >> find elements
<p>How to get value from hierarchy with Selenium WebDriver and WebElement? The web page application is Telerik model.</p> <p>Part of my <strong>java code</strong>:</p> <pre class="lang-java prettyprint-override"><code>public void ChangeElementSaveAndVerify() throws InterruptedException { ...
1
1,057
C - join arrays
<p>why can't i use Join? it doesn't have the 4 (e) from set B... why?</p> <pre> #include &lt;stdio.h&gt; #define SIZEOF_A 6 #define SIZEOF_B 6 typedef enum { a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z } set; void dispSet(set numbers[], int size_numbers) { int i; printf(...
1
1,216
Azure DevOps - how to build bundles using webpack during deployment
<p>I have been trying to deploy an web app to local IIS by using Azure DevOps Repos and Pipelines.</p> <p>I would like to build bundles using webpack on Azure DevOps service rather than uploading already bundled javascript, style files to Azure Repos. </p> <p>FYI, App uses ASP.NET Core 2.2, webpack 4.30, webpack-cli ...
1
1,100
How to submit an ajax form to a different url
<p>I have an ajax form where the select controls actually call the ajax functions and set the other controls dynamically. The submit button does not work at all right now, but I need it to submit the form to the action url normally [not submit to the ajax url]</p> <p>How is this done correctly? </p> <p><strong>UPDATE...
1
2,487
LDAP Authentication not working for login page
<p>I am trying to create simple login page for Intranet users to login and get a webpage of helpful links. The login uses PHP and LDAP authentication to get logged in, however it fails.</p> <p>The authenticate.php file verifies their login and verifies that they are a member of a security group in AD to gain access. B...
1
1,523
The required property {0} does not exist on the type {1}. Entity framework (model first) when adding FK
<p>I am trying to add foreign key to the database and then I am updating the model. After I update the model, the application gives following error:</p> <pre><code>System.Data.Entity.Core.MetadataException was unhandled HResult=-2146232007 Message=Schema specified is not valid. Errors: The relationship 'Accountin...
1
6,568
Unable to get a facebook page's feed onto my app
<p>I want my app to just display the posts published by a facebook page without any authentication. Here is the code:</p> <pre><code>public class Main extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ...
1
1,171
Keras model.predict, InvalidArgumentError, ConcatOp : Dimensions of inputs should match
<p>I am using the unit standard network and I can easily train it with keras. But when I want to use model.predict I get the following error massage, InvalidArgument. I have no idea why this is happening. I have my input shape when training network as [H,W,3],and the same shape when doing the model.predict</p> <p>Can ...
1
3,930
Different floating point precision from RDD and DataFrame
<p>I changed an RDD to DataFrame and compared the results with another DataFrame which I imported using read.csv but the floating point precision is not the same from the two approaches. I appreciate your help.</p> <p>The data I am using is from <a href="https://github.com/dgadiraju/data/tree/master/retail_db" rel="n...
1
1,194
Reading data from a RS232 port with RFID
<p><strong>UPDATE</strong> </p> <p>I'm reading an <code>RFID Card</code>, and signing it's value into my <code>textbox.text</code>.<br> It's working in the first time I pass the card in my <code>RFID Reader</code>, but form the second time I pass the card, instead it shows the whole card's id on my <code>textbox.text...
1
1,503
Parse.com - Error 101 when saving new PFObject
<p>I'm creating a new PFObject, setting some objects on it, then saving it like so:</p> <pre><code>// Add a new 'madeTitle' Activity Object PFObject* madeTitleActivity = [PFObject objectWithClassName:kPAPActivityClassKey]; [madeTitleActivity setObject:aComment forKey:kWSActivityCommentKey]; [madeTitleActivity setObjec...
1
1,502
Is it possible to bind a reactive form array controls to ngx-datatable?
<p>My form array html mark up works perfectly, (shortened snapshot)</p> <pre><code> &lt;div formArrayName="partners"&gt; &lt;div class="row" *ngFor="let ctrl of this.patientRestrationForm.get('partners').controls; let i = index"[formGroupName]="i"&gt; &lt;div class="col-xs-8"&gt; &lt;input type="text" ...
1
1,033
pandas dataframe from a nested dictionary (elasticsearch result)
<p>I am having hard time translating results from elasticsearch aggregations to pandas. I am trying to write an abstract function which would take nested dictionary (arbitrary number of levels) and flatten them into a pandas dataframe</p> <p>Here is how a typical result look like </p> <p>-- edit : I added the parent...
1
1,666
C++ no matching function for call to error
<p>I am trying to simulate a certain game as an exercise (dont ask me which, you will know if you know the game), however, I just learnt objects and class on the internet and the whole thing is still so confusing to me. The following is a section of my code that is giving me an error.</p> <p>The error I have is:</p> ...
1
2,639
Unable to determine the provider name for provider factory of type 'Npgsql.NpgsqlFactory'
<p>I trying running a test project but I not have a success because have a fail with npgsql connection. I reinstalled Npgsql, Npgsql.EntityFramework, EntityFramwork... but the problem persist. Result Message:</p> <blockquote> <p>MΓ©todo de teste TestUserControl.ControleBaseTest.TesteGetPermissoesUsuarioFixo gerou exceΓ§Γ£...
1
2,114
Google App Engine - Basic Cookie Handling with URLFetch
<p>Experts,</p> <p>It seems that retrieving even the most basic websites using google app engine can be quite challenging!</p> <p>In my case I would like to retrieve the website at this url:</p> <p><a href="http://tdbank.mortgagewebcenter.com/PowerSite/CheckRates.aspx/Index/9809" rel="nofollow">http://tdbank.mortgag...
1
1,880
Displaying/Converting PDF Documents and Google Apps Script
<p>I have been trying to learn google apps script in an attempt to reduce my reliance on excel due to macros. I have been trying to learn it by creating something. I have half created a double entry accounting system using spreadsheets so I can automatically create invoices, record expenses and reconcile against bank t...
1
1,372
Good OO design - The Singleton Design Pattern
<p>All of a sudden I'm having a bit of an OO crisis. Over the last couple of years I've made quite good use of Singleton objects. I used them in many places.</p> <p>For example, in designing an MVC Java application, I'd create a Singleton 'SystemRegistry' class to store the model and view classes (I've only worked on ...
1
1,037
Laravel The Response content must be a string or object implementing __toString() error
<p>I am getting the following error when I am POSTing an update form for my site: "UnexpectedValueException: The Response content must be a string or object implementing __toString(), "boolean" given." on my production site. </p> <p>What makes this more confusing is I have a copy of the same exact code and the same ex...
1
8,064
Why AWS is rejecting my connections when I am using wholeTextFiles() with pyspark?
<p>I use</p> <pre><code>sc.wholeTextFiles(",".join(fs), minPartitions=200) </code></pre> <p>to download 6k XMLs files from S3 (every file 50MBs) on single dataproc node with 96cpus. When I have minPartitions=200 AWS is rejecting my connections, but when I use minPartitions=50 everything is ok. Why?</p> <p>Some logs ...
1
1,881
Spring JDBC NullPointerException
<p>I'm a first time poster who is a beginner at Spring. I believe I have the basic concept down, however I am running into some errors when I try to write my own code. I did my homework and I looked at other related topics on the site, but I still have not found why my code is not working.</p> <p>Please forgive me if ...
1
2,700
Matplotlib: Polar plot axis tick label location
<p>How would you move the labels along each axis so they're all readable? For example, how would you move the '$156, $158, $160' out of the way of the axis?</p> <p>This post shows how you can move these labels if you only have one axis, but what would you do if you had multiple as in my situation? <a href="https://sta...
1
1,229
The ConnectionString property has not been initialized IIS 8.5
<p>I have inherited a website from a friend to host as he fell out with the current person hosting it for him.</p> <p>Its an old site, was hosted is IIS7 by looks of things and i cant get it online.</p> <p>Im on a server 2012r2 box with IIS</p> <p>Basically this is the error i get:</p> <pre><code>The ConnectionStri...
1
1,346
File upload working under Jetty but not under Tomcat
<p>I have a web application with spring in which I do some file upload. Under eclipse, using Jetty (the maven plugin) it works perfectly. But when I deploy the application under Tomcat it does not and I get the following Exception :</p> <pre><code>org.springframework.web.bind.MissingServletRequestParameterException: R...
1
1,188
How to setup multiple data sources with Spring and JPA
<p>In our application, we want to set multiple data source with Spring and JPA. Hence we have created 2 entityManagerFactory, 2 data source and 2 transaction- manager. </p> <p><strong>web.xml</strong></p> <pre><code> &lt;param-value&gt; /WEB-INF/a_spring.xml /WEB-INF/b_spring.xml &lt;/param-value&gt; </code>...
1
2,350
How to load .glb models in a-frame?
<p>I am trying to load <code>.glb</code> models in a-frame using the <code>gltf-model</code> component but I get the following error;</p> <p><code>components:gltf-model:warn Unexpected token g in JSON at position 0</code></p> <p>Based on the docs <a href="https://aframe.io/docs/0.8.0/components/gltf-model.html" rel="...
1
1,047
java.io.BufferedReader.readLine() is nonblocking
<p>I have a problem with readLine() in Java. I have a server and a client. From client I want to send a message to the server. The problem is that first, the client has to insert a text into a JTextField and when presses send then server to read the input from client, but server doesn't wait the input from client but i...
1
1,881
OnClick of Checkbox selecting row and Open the Row on Button Click with existing data
<p>I m stucked here very much and it is going some serious.</p> <p>I have a Gridview which I am using to show the data from the backend. What I did is For inserting the data, I have made a button on top of the Gridview to add the data in the gridview.</p> <p>Like this:-</p> <pre><code>&lt;asp:Button ID="btnAdd" runa...
1
1,744
How do I find all the distinct keys of json records in c#?
<p>Why this question is <strong>not duplicate</strong>? (Added after seeing comments)</p> <ul> <li>It is not related to Entity framework. </li> <li>It has to deal with parsing huge json files and find distinct keys, but not records!</li> </ul> <p>I've 200+ files and each of them is 2+ GB, implies total size is 400+ G...
1
1,862
How to stop adding duplicate username into database table?
<p>I'm working with ASP.Net web application project . in my Registration form the <code>Username</code> and the <code>Email</code> will be check if it's exist in the database or not. but my problem is if the <code>username</code> and the <code>Email</code> are exist the user can register normally and his data will be a...
1
2,269
git add <filename> not working
<p>When i am typing </p> <pre><code>git add *.c </code></pre> <p>the error shown is </p> <pre><code>warning: could not open directory 'AppData/Local/Application Data/': Permission denied warning: could not open directory 'AppData/Local/ElevatedDiagnostics/': Permission denied warning: could not open directory 'AppD...
1
2,444
How to add row in jqGrid, that also has a checkbox
<p>I am adding to my jqgrid with below code all except <code>cfgname</code> and <code>updateDate</code> gets displayed into my grid, what is the problem here?</p> <pre><code>function addRow(cfgid,cfgname,hostname,cfgDesc,productId,cfgType,updateDate,emailAddress,absolutePath) { console.info(cfgid+", "+cfgname+", "+hos...
1
1,591
Masonry grid not loading correctly and columns are too wide
<p><a href="http://www.scrubsandbeyond.com/bold-colors.aspx" rel="nofollow">link to page</a></p> <p>Hello! I am trying to get this masonry grid to show up correctly, meaning equal space on all sides and it should stack evenly like <a href="http://s7d2.scene7.com/is/image/scrubs/Screen%20Shot%202016-03-21%20at%209.35.4...
1
2,052
How to change angular reactive form select dropdown options dynamically
<p>I'm trying to create a custom drop-down cascading component using angular reactive form .</p> <p>problem is, how to change 'state' drop-down box option(s) on country drop-down value change.</p> <p>This part of the <strong>app.component.html</strong></p> <pre><code> &lt;mat-sidenav-container class="example-contai...
1
1,190
Passing key-event through to a component in Vue and Typescript
<p>I'm kind of new to Vue, so please correct me if I'm formulating the question in a wrong way.</p> <p>Use Case:</p> <p>I have a very simple form it contains a TextField &quot;Name&quot; and a Button &quot;Create&quot;. When the user have written a name then I wish that the user can press &quot;Enter&quot; to create th...
1
2,301
PHP loop to create an HTML table
<p>I have an array which is populated from a MySQL query:</p> <pre><code>if ($result) { $foundResult = true; foreach ($result as $row) { array_push($searchResultAccount,$row-&gt;Account); array_push($searchResultUsername,$row-&gt;Username); array_push($searchResultPassword,$row-&gt;Pass...
1
1,232
Neo4j merge performance VS create/set
<p>I have a tree I store in Neo4j, in the tree, each node contains an identifier and a counter. I want to be able to increment that counter in a fast way, for a bunch of nodes.</p> <p>So I used MERGE (with ON CREATE SET and ON MATCH SET), however the performance is quite poor. And it seems that if I do it with two tra...
1
1,096
HTML page disappears when javascript is included above content
<p>I have an ASP.NET MVC 3 site that I'm trying to enable client-side validation on but I'm running into a really strange problem. The page loads and renders just fine until I include any javascript files. Once I do, any content below the script tag disappears completely. For example, this renders just fine (note the l...
1
2,539
Search bar in modal-body for auto search based on text entered
<p>Here is the html code:</p> <pre><code>&lt;div class="modal-dialog"&gt; &lt;!-- Modal content--&gt; &lt;div class="modal-content"&gt; &lt;div class="modal-header"&gt; &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt; ...
1
2,021
Heroku Sporadic High Response Time
<p>This is very specific, but I will try to be brief:</p> <p>We are running a <strong>Django</strong> app on <strong>Heroku</strong>. Three servers: </p> <ol> <li>test (1 web, 1 celery dyno) </li> <li>training (1 web, 1 celery dyno) </li> <li>prod (2 web, 1 celery dyno). </li> </ol> <p>We are using <strong>Gun...
1
1,199
Updating the wordpress Custom table
<p>I am building a dashboard with custom User Data. Each element on the dashboard goes into the loop and shows the related information regarding that user.I am able to show the the custom field using session and loops but i need to update the information as well, somehow it is not updating. Please help with this:</p> ...
1
1,255
Nginx Configuration: failed: Error during WebSocket handshake: Unexpected response code: 400
<p>I am struggling with nginx and websockets.</p> <p>My client is Javascript and I am using Fleck in the server code.</p> <p>So: My JS:</p> <pre><code>var ws; var url = "wss://192.168.0.12:8080/"; $(document).ready(function () { function Connect() { try { $("#lblConnectionStatus").html("Reconnecting.....
1
1,084
How to set the linear layout width in a HorizontalScrollView?
<p>I have a <code>LinearLayout</code> (let's call it <strong>A</strong>)that it's width set to <code>fill_parent</code>, this layout contains a bunch of another <code>LinearLayouts</code>(let's call them <strong>B</strong>), I want the screen only display <em>four</em> <strong>B</strong>'s so i assigned the <code>weigh...
1
2,903
How to pass the DTOptionsBuilder and DTColumnBuilder to the controller in angular-datatables
<p>I started to learn <code>AngularJS-1.5.7</code> and also <code>angular-datatables</code>. I followed some examples in this page <a href="https://l-lin.github.io/angular-datatables/#/withResponsive" rel="nofollow">https://l-lin.github.io/angular-datatables/#/withResponsive</a> the one that is for responsive tables, a...
1
1,151
AngularJS - how to sync result of calculated input field to a scope variable
<p>I'm trying to sync the result of a calculated form field into a scope variable. For example:</p> <pre><code>&lt;div class="form-group"&gt; &lt;label for="val1" class="control-label"&gt;Val 1&lt;/label&gt; &lt;input class="form-control" name="val1" type="number" ng-model="data.val1" id="val1"&gt; &lt;/div&gt; &l...
1
1,107
Parameter 1 of method batchConfigurer in org.springframework.boot.autoconfigure.batch.BatchConfigurerConfiguration$JdbcBatchConfiguration required
<p>I am using Spring Batch and using @Scheduler annotation to scheduled a job at some frequency.</p> <p>From the error message it looks like Spring Boot expecting atleast Spring DataSource related entry but I dont need it, because I am not dealing with the DB as of now.</p> <pre><code>*************************** APPL...
1
1,111
uploading large xml to WCF REST service -> 400 Bad request
<p>I have been trying to search for this error but no luck so far.</p> <p>So I have a service on my client with this web.config</p> <pre><code> &lt;system.serviceModel&gt; &lt;serviceHostingEnvironment&gt; &lt;baseAddressPrefixFilters&gt; &lt;add prefix="http://www.mywebsite.com/"/&gt; &lt;/baseAddressPrefix...
1
1,983
How to reduce the execution time of the following query in Oracle?
<p>I'd written the following SQL query in Oracle 11g.</p> <pre><code>SELECT p.matchcode pmatchcode, p1.matchcode p1matchcode, p.digits digit, p1.effectivedate peff, p1.expirydate pexp, p.expirydate p1exp, p.tariff_id tariff_id FROM tt_matchcodes_...
1
1,120
Angular 5 canActivate not working
<p>I'm trying to make an AuthGuard to check in every route if user is logged in. After a click in login button, I go to dashboard page and everything is ok. The problem is when I click in any other route by routerLink, the application reloads and redirect to login page again.</p> <p>I'm tying to reproduce what this pr...
1
4,487
How to fix simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
<p>I am getting error Expecting value: line 1 column 1 (char 0) when trying to create a new woocommerce product using woocommerce rest api in my python project.</p> <p>The error happens at <code>create_woocommerce_product_individually()</code> function</p> <p>The urls passing to the photo_gallery_dictionary_list work...
1
1,257
Hide Repeater Element with condition
<p>I want to hide the repeater element that already added in table but now I faced some problem which is even I done for the comparison condition the repeater will also show out the overall content based on the table. Here is my coding part. Hope will know the mistake that i made. </p> <p>Designer code :</p> <pre><co...
1
4,456
Proguard and RecyclerView item decoration
<p>I'm experiencing somewhat unexpected behavior with <code>ItemDecoration</code> for <code>RecyclerView</code> elements.</p> <p>On some phones (Samsung Android 5 devices), my ItemDecoration is not showing when proguard is applied with the build (minify true). Without proguard/minify it's working fine, you can see the...
1
1,920
Enable CORS for azure blob storage
<p>Im totally new to <code>Azure Blob Storage</code> and Im having a problem in setting up the <code>CORS</code> for the angular client side. I am using this <a href="https://github.com/kinstephen/angular-azure-blob-upload" rel="nofollow noreferrer">module</a>. I successfully generated a <code>sasToken</code> on my <co...
1
3,292
Dynamically rendered JSF 2 content in request scoped - listener not called when in dynamic content
<p>I have put my problem case below, which simplifies a real world problem I am having. By changing the Bean to @SessionScoped I can solve this, but that is really undesirable. As is @ViewScoped. I think it should work in @RequestScoped. My questions are:</p> <ul> <li>Why does JSF need access to <code>#{simpleBean...
1
1,275
How to include styles in React create portal
<p>I have ViewAllGraphs class:</p> <pre><code>import '../styles/Graph.css' export class ViewAllGraphs extends React.Component { constructor(props) { super(props); this.state = { showWindowPortal: false, } </code></pre> <p>And render method:</p> <pre><code>return ( &lt;div&gt;...
1
1,380
Switch image to full screen on ipad
<p>I have a lot of trouble to accomplish this task on an ipad : when double tape on an image switch this image to full screen and when double taping again come back to the original display, same thing using pinching. I'm using <code>UIGestureRecognizer</code> to try to do this. Thanks for your help.</p> <blockquote> <...
1
1,329
Why I can't scroll down on my page
<p>I can't scroll down on my page, i have looked for the overflow property to change it from hidden to scroll but its still not working.</p> <p>I hope someone can help me with this frustrating problem... I have pasted all my css files in the overflow editor so you guys can see what is going wrong.</p> <p>Here is my s...
1
4,318
Severity: Notice Message: Trying to get property of non-object codeigniter
<p><strong>My Controller:</strong></p> <pre><code>function generateallmonthreport() { $month = $this-&gt;input-&gt;post('month'); $year = $this-&gt;input-&gt;post('year'); $familyid = $this-&gt;session-&gt;userdata('family_id'); $fulldata['dates'] = $this-&gt;Itemreport_model-&gt;g...
1
3,904
Parse an array of objects in C++ using rapidjson
<p>I'm trying to parse the following JSON file in c++. I would like to iterate over the 'attributes' array and obtain the value of the string:'value' for a specific value of a string:'name' of that attribute object. For ex: I would like to parse this JSON file and obtain the 'value' for 'mass'. </p> <pre><code>{ "acti...
1
1,150
How add jQuery to Joomla Template?
<p>Sorry for my ignorance but I am starting in Joomla and I would need to add to my Joomla Template named Lumiere some jQuery scripts and their images. I am looking at the template and I saw that Index.html is empty of code but the index.php file is the code and I guess I should add this one "there" The code in the php...
1
5,787
Azure Data Factory V2 Dataset Dynamic Folder
<p>In Azure Data Factory (V1) I was able to create a slide and store the output to a specific folder (i.e. {Year}/{Month}/{Day}. See code below. </p> <p>How do you create the same type of slice in Azure Data Factory V2? I did find that you have to create a paramater. Yes, I was unable to figure out how to pass the ...
1
1,618
Flink job fails after 10 minutes from initialization
<p>I'm having problems with flink application fail.</p> <p>This streaming job runs shortly after deploying on Yarn.</p> <p>But is fails after some minutes with below error messages.</p> <p>Can it be the evidence of high load in low performance yarn cluster?</p> <ul> <li>1.5.0 flink and yarn single job</li> <li>Sing...
1
9,043
Symfony 3 Authentication/Login Form Not Working
<p>I am using symfony 3 to create an application that will be used to reserve lanes for a gun range. I have followed the symfony 3 documentation for getting a login and registration form setup and configured. My registration form is working, but my login form does not work. I just get "Invalid Credentials." returned to...
1
3,215
Problems related to Microsoft HTTP Client Libraries v2.1.10 NuGet update
<p>Note: This question was totally rewritten several days after it was originally posted.</p> <p>I have an ASP.NET MVC app developed in VS 2012, deployed to Azure. The original projects were created from the ASP.NET MVC 4 project template.</p> <p>NuGet recently started showing a whole slew of updated packages from M...
1
4,319
how to pass values of dynamically created form fields to a textarea
<p>I'm trying to create a simple form with a dynamic form element 'add'/'remove' feature. Ultimately, once the entries are complete, I would like the form results to display in a textarea.</p> <p>I searched through this forum and managed to cobble together something that does some, but not all of my goals. It will dyn...
1
2,631
aspnet identity using guid as key
<p>I am trying to use Guid's instead of strings for my primary key and have followed the following posts: <a href="https://stackoverflow.com/questions/19553424/how-to-change-type-of-id-in-microsoft-aspnet-identity-entityframework-identityus">How to change type of id in Microsoft.AspNet.Identity.EntityFramework.Identity...
1
1,745
Print qr code in Java
<p>I would really appreciate if you can help me with this little problem I`ve had for a while now.</p> <p>The thing is that when i print a pdf wich contains a qr code, the qr code is not shown in the printed document, it just shows a blank space. Please, I hope you can help me...Here is the code I`m using:</p> <pre><...
1
1,592
Wizard Component PrimeFaces Updating other variables
<p>I have two tabs. With the wizard component, when i press the 'Next' button (FROM THE FIRST TAB), I need to populate a list(with SelectItem objects) and then show these SelectItems in a SelectOneMenu tag IN THE SECOND TAB. As i soon i have finished entering data on THE FIRST TAB and then press the 'Next' button, this...
1
3,318