title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Read a Specific Value from Firebase Database in android
<p>I am trying to get a specific value from a firebase database that I have already created. I have followed this <a href="https://www.youtube.com/watch?v=Yt75ZIGdJ4Y" rel="nofollow noreferrer">youtube tutorial</a> and another <a href="https://stackoverflow.com/questions/38652007/how-to-retrieve-specific-list-of-data-f...
1
3,292
html, css img to stop shrinking <div> :)
<p>I have one more question(first one is here: <a href="https://stackoverflow.com/questions/5291783/html-css-with-center-div-problem">html, css with center div problem</a>)</p> <p>So, I have three columns on my web page and when I put image in one of the and I want to shrink window(browser), image is "going" behind t...
1
1,565
Unable to write policy document in aws cdk using python
<p>Hi I am working on AWS CDK. I am trying to create policy. Below is my code.</p> <pre><code>MWSECSServiceRole = iam.Role(self, 'MWSECSServiceRole', assumed_by=iam.ServicePrincipal('ecs.amazonaws.com')) MWSECSServiceRole.add_to_policy(iam.PolicyStatement( effect=iam.Effect.ALLOW, re...
1
1,167
GridView Error: Object reference not set to an instance of an object
<p>have a gridview with template fields, one column contains a dropdownlist that should be populated with a sql statement. I have created the grid dynamically and called the rowdatabound in order to access the dropdownlist but I keep recieving the error: Object reference not set to an instance of an object. Anyone have...
1
2,181
VHDL - Does not match a standard flipflop
<p>Im trying to program something pretty easy with "VHDL". But Im stuck with it for a few hours already and I cant find a way to make it work.</p> <p>Im trying to find a way to use the same signal in different process or combine them into one process. Using a signal in different processes is not possible and if I comb...
1
1,638
Drop event when select OK to restart Launcher when ANR occurs
<p>When ANR occurs for Launcher,dialog pops up and the Launcher resume then. Select OK to restart Launcher after the launcher resume to respond, the rest keys will be dropped.</p> <p>The problem occurs in my developing environment and it's hard to reproduce.So I do a test for this:</p> <ol> <li>Create a simple APK as...
1
7,693
JDBC connects with 'jdbc:mysql://127.0.0.1:3306/xxx' but hangs and throw socket exception for 'jdbc:mysql://172.29.198.142:3306/xxx'
<p>I have a very strange kind of problem here. JDBC connects to mysql server using '127.0.0.1' but when I use real IP-ADDRESS in that place it hangs like forever and throws some socket exception</p> <p>so "jdbc:mysql://127.0.0.1:3306/xxx"; works like a charm....</p> <p>"jdbc:mysql://172.29.198.142:3306/xxx"; thr...
1
1,098
Select data from an ODBC connection into a MS Access database
<p>A little background first. Where I work we have limited access to programming tools. We have access to the Microsoft Office Suite and therefore most of our projects are created in Access even though there are better solutions out there. We recently received access to Visual Studio 2013 and I am interested in convert...
1
1,037
Make an image in container fill the half of the page
<p>So, I have a question that I haven't been able to find the answer to on Google, so I hope that you can help me here.</p> <p>I have banner that's divided in two, where I want each of the two images to go full left, and full right - but the text needs to stay in the container size.</p> <p>At the moment i have made a...
1
2,014
Apollo federation with gateway server as service
<p>The summary of the issue has been described in a Github issue:</p> <p><a href="https://github.com/apollographql/apollo-server/issues/2794" rel="nofollow noreferrer">https://github.com/apollographql/apollo-server/issues/2794</a></p> <hr> <p>In short, is there a way to implement Apollo Federation such that the gate...
1
1,175
how to load array of objects data with select2
<p>My Issue: </p> <p>I have created the complete scenario of my problem.</p> <p>My Html:</p> <pre><code>&lt;select data-placeholder = "Sending" id = "sender" data-allow-clear = true &gt; &lt;option &gt;&lt;/option &gt; &lt;/select &gt; &lt;select data-placeholder = "Receiving" id = "receiving" data-allow-cle...
1
1,749
Highcharts Backgroundimage for bar graph
<p>I want to add a background image to a bar chart using Highcharts and display it in a <code>UIWebView</code>.</p> <p>So far I've been using this little plugin, which is working fine in latest Chrome. However, as soon as I load this into my UIWebView, the image is not displayed. I think this is related to the fact th...
1
1,039
CAS: Unable to validate ProxyTicketValidator
<p>I'm currently trying to setup a CAS server and use it to login at several local applications.</p> <p>Cas Server(https): localhost:8443 (this is working correctly)</p> <p>Application: localhost:82</p> <p>When i go to localhost:82, it instantly redirects to localhost:8443. When i try to login, it returns to localho...
1
1,812
Radio button Css Style
<p>Below my radiobuttons I have something such as bottom padding, while I do not use any padding CSS statement</p> <p><img src="https://i.stack.imgur.com/3MMg9.png" alt="enter image description here"></p> <pre><code>.radio-button { -fx-font-family: "Arial"; -fx-font-size: 11; /* -fx-text-fill: rgb(255, 255, 255, 0...
1
3,498
Type mismatch when I enter string for Int in one of the form parameter when I submit form in spring 3
<p>I have a jsp form as following :</p> <pre><code>&lt;form:form method="POST" commandName="command" action="RouteGradesGoals.html" &gt; &lt;tr&gt; &lt;td class="style4" colspan="2"&gt; Goal&lt;/td&gt; &lt;td colspan="2"&gt; &lt;form:input path="goal" type="text" id="goal" style="width:200px;" /&gt;...
1
7,674
UIScrollView - content goes out bound when scrolling
<p>I design the scrollview in interface builder like this</p> <p><img src="https://i.stack.imgur.com/WhE2K.jpg" alt="enter image description here"></p> <p>It looks good here. But unfortunately when I run it on emulator or device</p> <p>it becomes</p> <p><img src="https://i.stack.imgur.com/B0cOr.jpg" alt="enter imag...
1
1,232
HTML/Javascript calculator with dropdown
<p> </p> <pre><code> function calculate() { try { var value1 = parseInt(validate(document.getElementById("value1").value.trim())); var value2 = parseInt(validate(document.getElementById("value2").value.trim())); document.getElementById("result")...
1
1,635
ag-Grid not working in AngularJS
<p>I am trying get a datatable using ag-Grid. I am not using any npm or bower to do installation.</p> <p>All I have do is including the link and script tags for the same in index.html. But it does not seem to work.</p> <p>The dependency injection is throwing error for me as below:</p> <p><code>Error: $injector:modul...
1
1,668
OpenCV3.1 compilation error 'ffmpeg/avformat.h' file not found
<p>On <em>MacOS 10.9.5 Mavericks</em>. I used homebrew to install <code>Python</code>, <code>cmake</code>, <code>ffmpeg</code>. Entering <code>ffmpeg</code> in terminal shows it is installed. I downloaded <code>Opencv3</code> and <code>opencv_contrib</code></p> <p>Then <code>cmake</code> with this:</p> <pre><code>cma...
1
1,104
How to implement custom css in Ruby on Rails application?
<p>I could not implement customer css in Ruby on Rails application. The changes that I've made locally don't shown up on the pages in Heroku.</p> <p>I find similar question and one answer on it.<br> Even so this answer was not marked as the solution, I’ve changed files accordingly this answer and the link provided(see...
1
1,525
How to configure log4j2 to log for HikariCP
<p>I have written a small Gradle project so that I can learn how to configure HikariCP and JDBC and Log4j2 all together in the same project. I have placed the below log4j2 config in the <code>src/main/resources</code> directory in my project. When I execute the project using <code>gradle run</code> I get a warning abou...
1
1,321
"Can't pickle <type '_csv.reader'>" error when using multiprocessing on Windows
<p>I'm writing a multiprocessing program to handle a large .CSV file in parallel, using Windows.</p> <p>I found <a href="https://stackoverflow.com/questions/2359253/solving-embarassingly-parallel-problems-using-python-multiprocessing">this excellent example</a> for a similar problem. When running it under Windows, I r...
1
3,530
How to upload a excel file using tomcat 5.5?
<p>how to update file to tomcat 5.5.</p> <p>i tried with the follwoing code but the code does not run with tomcat5.5 and shows </p> <pre><code>Tomcat version 5.5 only supports J2EE 1.2, 1.3, and 1.4 Web module </code></pre> <p>the code is:</p> <pre><code>package org.slingemp.fileupload; import java.io.IOException;...
1
5,642
How to use custom widget and uic.loadUi without importing custom widget class package?
<p>Using PyQt4's <a href="http://pyqt.sourceforge.net/Docs/PyQt4/designer.html#PyQt4.uic.loadUi" rel="nofollow">uic.loadUi</a>, I’d like to load a .ui file and use a custom widget in it. This means using the third <code>package</code> argument of <code>uic.loadUi</code> which will import the package with the custom wid...
1
1,460
Yii2: $model->validate() is not working
<p>I wanna create my own login method, but firstly I may try to work with validation and then redirect to the page; however, the validate() method is not working. Here is my code. LoginController:</p> <pre><code>&lt;?php namespace backend\controllers; use yii\web\Controller; use common\models\LoginForm; use Yii; cl...
1
1,552
installing/upgrading tensorflow 2 on windows
<p>I ran below command after opening <code>cmd</code> with admin rights. I currently have tensorflow <code>'1.15.0'</code> and my python is <code>3.7.3</code> and my pip is <code>pip 19.3.1 from c:\users\nnn\anaconda3\lib\site-packages\pip (python 3.7)</code></p> <ol> <li>should i upgrade <code>grpcio</code>?</li> <li...
1
7,891
Libicu, undefined reference while compiling
<p>I'm trying to use the lib icu in my shared library. So i generate my .so who use libicu functions, this parts works well.</p> <p>Then i try to compile my main program, using the shared library that i created before. But i get the following error:</p> <pre><code>release//libstring.so: undefined reference to `u_erro...
1
3,279
Finding images in RAM dump
<h2>Extracting screenshots from RAM dumps</h2> <p>Some classical security / hacking challenges include having to analyze the dump of the physical RAM of a system. <a href="http://www.volatilityfoundation.org/" rel="nofollow noreferrer">volatility</a> does a great job at extracting useful information, including wire-vi...
1
1,432
IE8 and Primefaces p:selectOneMenu misbehave when having a lots of p:selectOneMenu in a form
<p>First of all, I want to apologize for the long code I post, they are very simple, it is just a <code>p:selectOneMenu</code> that repeat 17 times (that why it is long). <strong>The problem that I experience is that if I have too many <code>p:selectOneMenu</code> in a form, the <code>selectOneMenu</code> bugged out an...
1
6,178
Grafana Elastic-Datasource not finding time field
<p>Given following mapping:</p> <pre><code>{ "iot_data" : { "mappings" : { "device_data" : { "properties" : { "device_id" : { "type" : "keyword", "cql_collection" : "singleton", "cql_partition_key" : true, "cql_primary_key_order" : 1 ...
1
1,092
SurfaceView.lockCanvas() does not properly clear the bitmap buffer
<p>I have created a class that extends SurfaceView in order to cycle a series of ARGB bitmaps. This mostly works, except that the state of the underlying bitmap is (usually, but not always) preserved for each new frame.</p> <p>In other words, if the first frame I display is opaque, and subsequent frames are transparen...
1
1,301
Return a QString from a function - thread safe?
<p>I'm new to Qt - but this may be a very basic c++ issue. I have a simple function that returns a QString:</p> <pre><code>QString testclass::myfunc(int i) { QString result; switch (i) { case 1: result = "one"; break; case 2: result = "two"; break; } return result; } </code></pre> <p>Is this ...
1
1,113
React router dynamic routes not rendering component
<p>I’m trying to get react router dynamic routing to work by following this example: <a href="https://github.com/rackt/react-router/tree/master/examples/huge-apps" rel="nofollow">https://github.com/rackt/react-router/tree/master/examples/huge-apps</a></p> <p>Here’s my setup:</p> <p><code>webpack.config.js</code>:</p>...
1
1,164
Callback method for opening Google Maps InfoWindow
<p>I am using Google Maps v3 and have markers on the map which show an InfoWindow when clicked. The InfoWindow needs to contain an image carousel. In order for me to initialize the carousel, I need to run some javascript after the InfoWindow has opened. In effect I need a callback for the InfoWindow.open() method.</p...
1
1,418
HTML-BROWSER ZOOM CAUSES ALIGNMENT PROBLEMS
<p>I have 2 div elements with float left and float right withiin a div element..when i zoom the browser,all the alignment changes..the zooming should be like...how we zoom an image....can anyone give suggestions to resolve this problem</p> <pre><code>&lt;html&gt; &lt;style type="text/css"&gt; div.advancedDrugSearchOu...
1
2,989
Getting error while running storm connection with accumulo
<p>I have Storm Bolt like follows,</p> <pre><code> package storm.bolt; import java.util.Map; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.BatchWriter; import org.apache.accumulo.core.client.Connector...
1
4,622
jQuery form serialize - just returns an empty string
<p>I am not getting any data from serializing my html form. Here is the form</p> <pre><code>&lt;form method="post" action="#" name='basicForm' id='basicForm'&gt; &lt;input type="text" name="n_username" id="id_username" class="form-control uname" placeholder='Username' value='test_user' data-msg-required='The input fi...
1
1,043
Kendo validator not working on text change
<p>I am using kendo controls for my project. I was using jquery validation to validate my controls at client side but as jquery validation is not working for kendo controls so I am using kendo validators to validate the controls. </p> <p>I am using dataannotation validation with MVC 5 project. Here is sample <a href="...
1
1,040
Automatically get logged in user's username in Name field of html form
<p>Currently users logged in have to type their name manually to comment or post but i want to get the username in the field name of html form inserted automatically. Also at the same time user cannot change the name field.</p> <p>how can i create such session in username field, i tried but code isnt working..</p> <...
1
1,327
Simple MPI_Send and Recv gives segmentation fault (11) and Invalid Permission (2) with CUDA
<p>I am attempting to MPI a CUDA code for lattice boltzmann modelling, and have run into frustrating problems with the MPI_Send and MPI_Recv functions. I have verified that I have CUDA-aware MPI with some simple device buffer to device buffer MPI send/recv code, so I can send and recv arrays between GPU device memory f...
1
3,865
Flask Nginx uWSGI 504 Gateway Timeout Error
<p>I'm desperately trying to figure out the issue of why I cannot deploy my flask application with uWSGI nginx and Ubuntu server.</p> <p>Here is my error in <strong>nginx error log</strong>:</p> <pre><code>2019/05/12 09:00:19 [error] 10154#10154: *1 upstream timed out (110: Connection timed out) while reading respons...
1
1,500
How to wrap a relative layout in a Scrollview?
<p>I tried to modify my main activity to convert to a scroll view but when I added the Scrollview elements around the layout xml,the formatting is messed up.</p> <p>Can anyone spot where I made a mistake when wrapping it in a ScrollView? </p> <p>This is the layout before adding Scrollview:</p> <p><img src="https://...
1
1,960
Kendo Grid - Read() not working
<p>I am working with a Kendo Grid with a details subgrid. I unfortunately am having a difficult time getting it to update. We have our own custom popup editor for each item (not a custom version of the kendo, but an entirely different popup altogether as we had other requirements we had to meet.)</p> <p>The save but...
1
1,850
Remove headers from Email Body
<p>I am having trouble with email synchronization application, i am developing an conversation module for my project so i had extracted email body and attachments from the Email Account but problem is i also got some header text in email body like </p> <pre><code>"--PHP-alt-9ce0b24f8d52c4d37de61cb315107795d140f8b7 Con...
1
1,381
AllowAnonymous is not ignored in ASP.NET Core custom AuthenticationHandler after migrating from .NET Core 2.2 to 3.1
<p>I have an ASP.NET Core 2.2 Web API which was working with the Basic Authentication. So far it worked fine and has no troubles. In one of the Controller, one Action Method is Decorated with <code>[AllowAnonymous]</code> to make the User Login, as usual.</p> <pre><code>[Produces("application/json")] [Route("user")] [...
1
3,238
Primefaces exception INFO: java.lang.ArithmeticException: / by zero java.lang.ArithmeticException: / by zero
<p>I have implemented LazyLoading for datatable. When I run through datatable by using pagination I am getting the following exceptions. </p> <pre><code>com.sun.faces.context.PartialViewContextImpl processPartial INFO: java.lang.ArithmeticException: / by zero java.lang.ArithmeticException: / by zero at org.primef...
1
1,962
The before_destroy callback prevents child records from being deleted in Ruby on Rails
<p>Because RoR does not offer a <em>validate_on_destroy</em>, I am essentially implementing one by using the <code>before_destroy</code> callback.</p> <p>Using <code>before_destory</code> works and prevents a <em>project</em> that has had <code>effort_logged?</code> from being deleted. The below implementation does no...
1
1,486
Expecting EDGE_TYPE or ID. Microsoft SQL Server MS
<p>So, here's the code in which I'm asking for help with the following error: </p> <blockquote> <p>Incorrect syntax near '('. Expecting EDGE_TYPE or ID.</p> </blockquote> <p>The following database is a project for UNI, in which i need to create a car/owner database. Can the same model I used in /* CERINTA 4 <em>/ b...
1
1,669
Spring Integration Spring Batch Java config
<p>We are working on a Spring Batch project (spring boot 1.2.2.RELEASE) with a requirement to read files from a server location by polling at a certain frequency using Spring SFTP integration. We have implemented Spring Batch using java config and in the process of using Spring Integration java config. I am unable to f...
1
7,265
Making mouse movements humanlike (using an arc rather than a straight line to the destination)
<p>I am making and auto clicker using java.awt.Robot. One of the concerns i have however is the movements aren't very humanlike. Can anyone suggest some changes to my code to make it more human like? Right now it just moves in a straight line.</p> <pre><code>/** * * @param robot The java.awt.Robot being utilized *...
1
1,846
Application crash on device but works fine on iphone simulator
<p>My app worked fine on my device but I have added features and when I test on my device (iphone 4 iOs 4.2.1), it crashes just on launching; But it works fine on simulator. I have looked for an answer to my question on the web and this forum but I don't find...</p> <p>Here is the crash report :</p> <pre> Incident Id...
1
2,680
How to save an image to another folder using ajax and jquery
<p>i have registration form (Spring mvc application) which having some fields as well as image upload option, i am sending fields value to controller using ajax through serialize() function </p> <p>now i want to send image through same request, and what ever the image selected by user that should be previewed by user ...
1
1,043
How to change progress dialog box size in android?
<p>I used this method to create progress dialog box.</p> <p>But it not fit with the screen size. I want to minimize size of this progress dialog box. </p> <p>This is the (AsyncTask) code i used:</p> <pre><code>ProgressDialog myPd_bar; @Override protected void onPreExecute() { // TODO Auto-genera...
1
1,194
WCF Service over netTCPBinding timing out for Clients in LN, working fine for Clients in US
<p>I have a WCF Service exposed via TCPbinding running on a server in NY. I have no issues connecting to the service and getting back the results from clients connecting to this service from Americas but having issues for clients from London/Europe. I am not quite sure why this timeout issue happens but below are by Cl...
1
1,938
Switch statement with non-constant-expression - Extends C#/IDE ability
<p>Before you start criticizing and pointing me §8.7.2 of <a href="http://www.microsoft.com/download/en/details.aspx?id=7029" rel="noreferrer">C# specification</a>, read carefully :)</p> <p>We all know how switch looks like in C#. Ok so consider the class <code>MainWindow</code> with "nasty" <i>Bar</i> method</p> <pr...
1
1,625
Google maps api parallel path lines
<p>I am working on a sort of itinerary mapper for packaged vacations, and I'm really happy with what I've done so far; I have the directions api implemented with a custom renderer, so I can take driving directions, and plot my own polyline complete with directional arrows that aren't google's awful ones spaced along th...
1
4,122
Understanding "layout_weight" in Android
<p>I want to use tables in my applications design however unlike HTML in Android's XML layouts you are unable to set the width of something using a percent. From looking on Google it seems like I can use "layout_weight" for the same functionality as long as the values add up to 100.With information from this question(h...
1
2,992
Ehcache not evicting cached entries
<p><strong>Main question is</strong> does ehcahce 2.6.2 do ANY eviction of expired elements based on ehcache configuration; or do I have to evict programatcially?</p> <p>After reading various parts of the documentation (<a href="http://ehcache.org/documentation/configuration/data-life" rel="nofollow noreferrer">data li...
1
2,231
Passing Java Object to AngularJS using Spring MVC Controller
<p>I am developing an application with <code>AngularJS</code> and <code>Spring MVC</code>. Everything is working fine but my object is going as <code>null</code> to the <code>Spring Controller</code> so it's returning <code>null</code>. I just don`t know how to make the AngularJS populates the object.</p> <p>I will po...
1
4,099
Java-Reflection - find the Arguments and the annotation before the method
<p>I am able to get the class and it's method name when for given package name. the code is below :</p> <pre><code>package com.hexgen.reflection; import java.lang.reflect.Method; import java.util.Iterator; import java.util.List; import org.springframework.web.bind.annotation.RequestMapping; import com.hexgen.ro.req...
1
2,374
Cannot insert node into ...[]. Dimension mismatch
<p>I'm trying to replicate simulations with a piece of jags code by Mark the Ballot, but jags is sending me an error message..</p> <p>If I understood it correctly, it should have a problem with indexing house effects for each party somewhere, but I'm unable to find it because the node seems to be already indexed. Does...
1
2,189
Attempt to invoke virtual method '(java.lang.String)' on a null object reference
<p>New to Java and Android Studio here.</p> <p>Working on this image application, and I am trying to format a query from a search bar that replaces any white space into underscores and returns a string with the formatted string.</p> <p>Been having a hard time trying to analyze this code, it seems that it's returning a ...
1
2,001
Angular Modal Service
<p>I'm trying to get modals working in my Angular application. I tried using Bootstrap and Angular Material modals but I could not make them work. I decided to try with Angular Modal Service, however I'm getting the same error. Whenever I call the function ModalService.showModal I get the following error:</p> <pre><co...
1
1,780
rails3 rspec issue
<p>I am trying out rails3. I am using <a href="http://railstutorial.org/" rel="nofollow noreferrer"><strong>railstutorial</strong></a> site to explore more about rails3; the tutorial is very good to begin with (I have minimal experience with rails2).</p> <p>I have an issue with rspec which is currently blocking my pro...
1
2,011
PyQt MainWindow using multiprocessing on Windows
<p>I try to create a <code>PyQt</code> application. In order to run process in background and keep the <code>PyQt5</code> application available for new instruction, I want to use <code>multiprocessing</code>. On the Windows OS, when I call a function from the Qt <code>MainWindow</code> class with <code>multiprocessing....
1
1,794
SVG image not rendering properly in IE11 / Edge unless container has fixed width
<p>Both Edge and Internet Explorer 11 seem to <em>scale</em> SVG images rather differently than regular raster images.</p> <p>Take a look at the following example:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-c...
1
1,067
C# ASP.NET MVC 3 SQL database to html.dropdownlistfor and AutoPostBack to Browse action on selecting and item
<p>How to post back selected Category item from html.dropdownlist to the browse action method in the event controller? I am thinking of AJAX and JQuery.</p> <p><img src="https://i.stack.imgur.com/25JCY.png" alt="enter image description here"></p> <p>EVENT CONTROLLER</p> <p>EventController.cs</p> <pre><code> // ...
1
1,791
Calling convention for function returning struct
<p>For the following C code:</p> <pre><code>struct _AStruct { int a; int b; float c; float d; int e; }; typedef struct _AStruct AStruct; AStruct test_callee5(); void test_caller5(); void test_caller5() { AStruct g = test_callee5(); AStruct h = test_callee5(); } </code></pre> <p>I ge...
1
1,530
Error while trying to ssh a docker container : System is booting up
<p>I am trying to build an image and run container as an ssh server. I want to be able to ssh that container (remote_host) from another container (jenkins/jenkins)</p> <p>I am using a VM with Centos.</p> <p>I am using this docker file. I run it from my VM host machine(Centos too)</p> <pre><code>FROM centos RUN yum ...
1
1,366
change interval of the LocationRequest depending on distance between current and some location
<p>I want to save battery by changing the interval of updates using the Fused Location API. As far from some location, bigger should be the interval.</p> <pre><code>public class service extends Service implements GooglePlayServicesClient.ConnectionCallbacks,GooglePlayServicesClient.OnConnectionFailedListener,LocationL...
1
1,160
Maya 2018 start-up error
<p>First time running maya 2018 and I got this script error. I did a fresh reinstall after uninstalling maya and I still get the error (I cannot import or export any files). I installed maya 2017 and it was also throwing errors (when trying to import, an error pops up and maya 2017 crashes). I installed python 3.6.2 an...
1
4,109
451 4.4.0 Primary target IP address responded with 235 error in exchange 2007
<p>The following error is occurred in the exchange server 2007 and mail are not disseminating to all recipients.</p> <p>I tried with <code>get-queue | fl</code> commands and also followed some of the online suggestions made for other users. But nothing worked out to fix my issue. Can some one help me out to fix this...
1
2,153
NginX reverse proxy for Kibana over Docker
<p>I have a Docker Compose setup with NginX, ElasticSearch and Kibana like the following:</p> <pre><code>web: build: context: . dockerfile: ./system/docker/development/web.Dockerfile depends_on: - app volumes: - './system/ssl:/etc/ssl/certs' networks: - mynet ports: ...
1
2,206
Apply rolling function to groupby over several columns
<p>I'd like to apply rolling functions to a dataframe grouped by two columns with repeated date entries. Specifically, with both "freq" and "window" as datetime values, not simply ints.</p> <p>In principle, I'm try to combine the methods from <a href="https://stackoverflow.com/questions/28642511/how-to-apply-rolling-f...
1
1,809
'int android.view.View.getVisibility()' on a null object reference onphone but not in emulator
<p>I am getting an java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.View.getVisibility()' on a null object reference error when I load my app on my android marshmallow phone but it does not on the the avd emulator This question is diferent as the error only seems to occur on android 6...
1
13,042
JNDI datasource to oracle with grails 1.3
<p>I can't get my JNDI datasource running. Followed the official grails doc I set up a datasouce in Config.groovy:</p> <pre><code>grails.naming.entries = [ "mydatasource": [ type: "javax.sql.DataSource", auth: "Container", description: "Development Datasourc...
1
1,485
libMobileGestalt.dylib crashed when Hooking MGCopyAnswer for ARM64
<p>When I try to hook MGCopyAnswer, I get a crash. I'm trying this on a jailbroken iPhone 5s in iOS 8.3, arm64 binaries.</p> <pre><code>#import &lt;substrate.h&gt; extern "C" CFTypeRef MGCopyAnswer(CFStringRef); MSHook(CFTypeRef, MGCopyAnswer, CFStringRef key) {   return _MGCopyAnswer(key); } %ctor {   NSString *app...
1
1,884
Spring ERR_CONNECTION_REFUSED
<p>I am following a tutorial on spring, and so far my code allows you to add a user and view all users. I am now trying to include delete functionality. I added the below code to achieve this. I believe it is exactly as shown in the tutorial, but as a result I get ERR_CONNECTION_REFUSED. In the tutorial this error show...
1
1,259
Kotlin Android Studio Wait for a function to finish before calling another
<p>I am trying to do an edit profile function where I am required to wait for the edit function to be COMPLETED before running the finish() method and returning to the view profile activity screen.</p> <p>However, I am having issues where the toast is only being printed after the activity is finished and i am already ...
1
6,156
Mocking a class's construction
<p>I'm just getting started with using Python's <a href="http://www.voidspace.org.uk/python/mock/index.html" rel="noreferrer">mock</a> library to help write more concise and isolated unit tests. My situation is that I've got a class that reads in data from a pretty hairy format, and I want to test a method on this clas...
1
1,086
JavaFx Button-Event Bubbling
<p>I am working on a project using javafx within java8. I focused a weird situation: A panel ( of the class javafx.scene.layout.Pane) containing a button (javafx.scene.control.Button) and another pane. I expect a mouse-clicked event to be bubbled up to the parent. But this is only the case when I click on the pane and ...
1
1,093
Unkown Key in Elasticsearch Template
<p>Hi i'm using elasticsearch 7.6.1 for my project, I want to create index template elasticsearch with http-index_template but when i try PUT index mapping like this :</p> <blockquote> <p>curl -XPUT -H 'Content-type: application/json' <a href="http://my-ip:9200/_template/http-index_template?pretty" rel="nofollow n...
1
4,510
d3js returning "[object%20Object]" and "Uncaught TypeError: Cannot read property: nodes of undefined"
<p>I am new to Javascript and Django. I have to animate a svg file with D3js, so to practice and understand how it works I decided to add <a href="http://bl.ocks.org/mbostock/4062045" rel="nofollow">the miserables widget</a> to my local Django website. I have a simple view:</p> <pre><code>def miserable(request): r...
1
6,805
XSLT: Copy all the nodes except one in for-each loop
<p>I am looking for<br/> <strong>Input XML</strong></p> <pre><code>&lt;ClientInformation&gt; &lt;FirstName&gt;Steve&lt;/FirstName&gt; &lt;LastName&gt;Jobs&lt;/LastName&gt; &lt;MiddleName/&gt; ...
1
1,824
ASP.Net Core 2.1/WebAPI app: "HTTP 404 not found" calling a REST url with [Authorize]
<p>I'm working through a "hello world" tutorial on Asp.Net Core. I'm using WebApi (not MVC).</p> <p>Here is the controller for the REST API I'm trying to invoke:</p> <pre><code>... [Authorize] [Route("api/[controller]")] [ApiController] public class ManageCarController : ControllerBase { private IMapper mapper;...
1
2,510
How can I extract a Delphi class from this JAVA file for use with Android?
<p>My Delphi XE7 project needs to communicate with the <a href="http://www.ftdichip.com/Products/ICs/FT311D.html" rel="nofollow">FTDI FT311 Android Accessory Chip</a>. They helpfully provide an Android demo that includes their JAVA driver <code>FT311I2CInterface.java</code>(shown later in this post). Presuming that I n...
1
8,808
Displaying data in table asp.net mvc?
<p>I want to show data events into a table Before that i was able to show them without using a table inside But now i want to show in a table so far now i am able to do <a href="http://i.stack.imgur.com/EfTBg.jpg" rel="nofollow">this</a></p> <p>But i want to place "Faliure" under "Name" and 1st time in occur and se...
1
1,838
RuntimeError: Model class users.models.User doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS
<p>I am having trouble finding the solution for the error posted above for a long time. I looked at several of other similar questions but could not figure it out. I really appreciate if anyone could point me to the right direction. The exact error is the following:</p> <pre><code>Unhandled exception in thread started...
1
3,744
AddressSanitizer report breakpoint hit: dynamic-stack-buffer-overflow
<p>I have <code>protocols</code> that I use to describe various types of <code>Vectors</code>, and some shared functionality for all of them. I use this to get diagonal, aspectFit, aspectFill, etc. I have enabled <code>Address Sanitizer</code> in <code>scheme</code>. Unfortunately when I try to use generic function tha...
1
3,357
How to validate nested objects in cerberus?
<p>I have the following schema:</p> <pre><code>schema = { 'person': { 'name': {'type': 'string', 'required': True, 'minlength': 2}, 'gender': {'type': 'integer', 'required': True}, 'weight': {'type': 'integer', 'required': True}, 'age': {'type': 'integer', 'required': True, 'min': 5...
1
1,109
BouncyCastle PGP and McAfee eBusiness Server 8.6 Incompatibility
<p>I have been banging my head against the wall now for a couple of weeks trying to figure out why our bank cannot decrypt a message that has been single-pass signed and encrypted using BouncyCastle PGP. The bank is using McAfee E-Business Server 8.6 for decryption.</p> <p>The data is encrypted with the bank's public...
1
3,877
Vue.js Multiple definitions of a property not allowed in strict mode
<p>Good day.</p> <p>We are building our application using Vuejs/Vuex/vue-router using the <a href="https://github.com/vuejs/vue-hackernews-2.0" rel="noreferrer">https://github.com/vuejs/vue-hackernews-2.0</a></p> <p>When building and viewing our application using IE11 we get a <code>SCRIPT1046: Multiple definitions o...
1
1,099
heroku db:push Error: time zone displacement out of range
<p>I made a <code>heroku db:push</code></p> <p>at first it went fine</p> <pre><code>Sending schema Schema: 100% |==========================================| Time: 00:00:06 Sending indexes schema_migrat: 100% |==========================================| Time: 00:00:01 Sending data 3 tables, 8 records schema_mig...
1
3,750
How to Export Html Table to CSV and PDF with formatting using Php
<p>I created Html Table, in which there is data from mysql tables, and now i want to export the data into CSV and PDF file, how? <br> I want to, when i click on button (separate for both CSV and PDF), it automatically download in CSV and PDF file with correct Formatting.<br> I try some of script i found on internet, b...
1
3,263
POST Request using .Net Core 3.1 and HTTP Request of Power Automate
<p>I'm having a problem is sending a parameter on a post request from Power Automate using .Net Core 3.1 MVC. I created a simple person application that has parameters Name and Age, then a View has a button that when you click it send a reply to a POST request provided by Power Automate HTTP Request and I will receive ...
1
1,304
java GUI trying to get multiple inputs from multiple text fields
<p>How do you get multiple inputs from the multiple textfields you have created? I want one text field to get the port number, another to get file location. So once the user enter the int and the string, I can use these inputs for the program. </p> <p>I am new to this, so when I tried to implement this, I would enter ...
1
2,038
Create multiple div with multiple elements dynamically using javascript?
<p>I am new in javascript, I want to create div which have multiple div and multiple elements.See code below</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;style&gt; ...
1
1,172
How to create Material UI component in Om Clojurescript?
<p>First of all, this <a href="https://github.com/taylorSando/om-material-ui" rel="nofollow">https://github.com/taylorSando/om-material-ui</a> doesn't work with latest React/Material UI. The main reason, I think, is this warning in console:</p> <p><code>Warning: Something is calling a React component directly. Use a f...
1
1,070
How to display JfreeChart ( ChartPanel ) in Jpanel generated by NetBeans
<p>i've generated a gui using netbeans gui generator. I have two panel and in one of this i want to show a chartpanel. The code generated by netbeans is:</p> <pre><code>private void initComponents() { jPanel1 = new javax.swing.JPanel(); org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop...
1
1,807
Error:In <declare-styleable> - unable to find attribute
<p>I'm getting Gradle errors for missing attributes when trying to build my project;</p> <p><code>Error:In &lt;declare-styleable&gt; ReflowText, unable to find attribute maxDuration</code></p> <p>and </p> <p><code>Error:In &lt;declare-styleable&gt; ReflowText, unable to find attribute velocity</code></p> <p>I've ju...
1
6,658