title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Dojo DGrid applying formatting to cell contents
<p>I have a dgrid and i am attempting to style cells by underlining the text in the cell when the checkbox(s) are selected for the row.</p> <p>My approach was to attach a css class to the item once the checkbox is checked for the row. However this does not work. Under is a fiddle and my code. </p> <p>How can i style ...
1
1,440
Android refresh actionbar and title on fragment change
<p>in my app i am developing an activity using the actionbar in <code>NAVIGATION_MODE_TABS</code>-mode. Each tab is showing a fragment (list, detail). Initially the list-tab is visibile. The list is implementing <code>setMultiChoicheModeListener()</code> and modifies the <code>ActionBar</code> and the title of the acti...
1
1,376
How to bind Nested Repeaters?
<p>I have a service page, which shows service details and has a sub-section like service features and charges. I created two repeaters for features and charges. Please refer to the following sql tables image for more information:</p> <p><img src="https://i.stack.imgur.com/o5sSV.png" alt="enter image description here">...
1
1,635
Compiling an IronPython WPF project to exe
<p>What is the best way to pack up an IronPython application for deployment? After scouring the web the best thing I've come up with (and what I'm currently doing) is using <code>clr.CompileModules()</code> to glue together my entire project's .py files into one .dll, and then having a single <code>run.py</code> do thi...
1
2,412
How to manage multiple versions of documentation with Sphinx?
<p>I maintain a small library project written in C++. I'd like to use Sphinx to maintain the library website + user documentation per release version. I have found [similar question asked <a href="https://groups.google.com/group/sphinx-dev/browse_thread/thread/fb8ba5cfa890b587/" rel="nofollow noreferrer">How to manage ...
1
1,085
No Koin Context configured. Please use startKoin or koinApplication DSL
<p>koin works fine with most of my devices of same model but it cause crash in single device with the IllegalStateException, i have give android context as applicationContext but still it is cause crash.</p> <p>Before Updating to Latest Version it was throwing &quot;Caused by: java.lang.IllegalStateException: KoinAppli...
1
1,061
VBA - Find all numbered lines in VBE Modules via pattern search
<p><strong>Task:</strong> </p> <p>My goal is to find all <i>numbered lines</i> in procedures of my Code Modules. The <em>CodeModule.Find</em> method can be used to check for search terms (target parameter). </p> <p><strong>Syntax:</strong> </p> <p>object.<strong>Find</strong>(target, startline, startcol, endline, e...
1
1,317
zend module not loading library
<p>My application.ini looks like this:</p> <pre><code>phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace = "Application" resources.frontController.cont...
1
1,259
How to handle dynamic allocated variable in a class?
<p>I am trying to create a class that holds a dynamically created variable. My class currently looks pretty much like this:</p> <pre><code>class Foo { private: int *dynamic_int; public: Foo () { dynamic_int = new int; } ~Foo () { delete dynamic_int; } }; </code></pre...
1
2,150
How to encrypt a string and save it in a file and read the decrypted string from the same file?
<p>I found an useful code on the net to encrypt and decrypt strings. So i wanted to change it a little , in order to let the encryption and decryption in the same batch and not into two separate files here is the link <a href="http://forum.imgburn.com/index.php?/topic/21566-batch-encryption-working/" rel="nofollow nore...
1
1,223
Django-CKEditor with normal Django Forms and bootstrap
<p>I'm new to Django and CKEditor and had been struggling with integration of Django-CKEditor in forms from past 1 week. It works perfectly fine in Django Admin forms but does not work in normal forms.</p> <p>This is my forms.py</p> <pre><code>class ArticleForm(forms.ModelForm): content = forms.CharField(widget =...
1
2,009
How to display live camera output in a UIView
<p>I want to display live camera output in a view controller. I start <a href="https://stackoverflow.com/questions/28683863/front-camera-to-fill-circular-uiview">with this example</a>.</p> <p>This is what I did: I created a new View Controller in the Story board and connected it to the class below. The code and the ou...
1
2,043
visual studio mvc 5 creating table with data from different models/tables
<p>I recently started using the vs mvc 5 framework and most tutorials say how to use a single data source for a table in a view, I however would like to make a table in a view which takes data from 2-3 different tables and connects them together, I tried doing it basing on some questions on stackoverflow etc. but nothi...
1
2,271
ClickOnce InvalidDeploymentException (ManifestParse) wrong URL only for some users
<p>One of our customers has a problem deploying our ClickOnce application. Notice that he is the only one that has problems and all others deploy successfully. In the log we can see a "wrong" URL. The details log file:</p> <pre class="lang-none prettyprint-override"><code>PLATFORM VERSION INFO Windows ...
1
1,875
Flutter: Adding Custom Transition with AutoRoute
<p>In my App i want to add Custom Transitions. I use the Plugin Auto_Route for my Routing, inside the Doc there is written how to do it, but when i do the same i get thrown Error's. For the &quot;Normal&quot; Routing without a Custom Tranisition i use &quot;ExtendedNavigator.root.push(Routes.shoppingFormScreen),&quot;....
1
2,464
Convert JSON from one format to another JSON format in java
<p>I have to covert a specific JSON response and covert to some other format</p> <p>For E.g. My input JSON is like </p> <p>JSON1 </p> <pre><code>[ { "propertyId":10081, "roomId":0, "startDate":"2018-01-29T00:00:00", "endDate":"2018-01-30T00:00:00", "priority":1, "m...
1
1,222
Binary stream '0' does not contain a valid BinaryHeader. Occurs randomly
<p>I'm working on c# windows service that handles firebird database requests. My problem occurs at random moments (sometimes after 5 minutes, sometimes after just 4 calls to database), when I try to deserialize object on client application. It happens though only at specific position (stops at 18th byte in 54 byte arra...
1
1,836
TypeError: issubclass() arg 1 must be a class, while I am quite sure arg 1 is a class
<p>Somewhere within my code I have the following line of code.</p> <pre class="lang-py prettyprint-override"><code>from inspect import isclass if isclass(route.handler) and issubclass(route.handler, web.View): </code></pre> <p>Unfortunately this line of code gives the exception below in my production environment.</p> ...
1
1,294
Exception while trying to consume a JMS Topic message using Spring Boot
<p>I am trying to consume message from ActiveMQ Topic. Below is the Code: </p> <pre><code>@Configuration @EnableJms public class Config { @Value("${activemq.broker-url}") private String brokerURL; @Bean public ActiveMQConnectionFactory activeMQConnectionFactory() { ActiveMQConnectionFactory activeMQConnectionFac...
1
1,484
Bootstrap Carousel: Data Slide symbols are missing
<p>When building up a simple template for Bootstrap's carousel, the ">" symbols are missing. You can easily spot <a href="http://twitter.github.com/bootstrap/javascript.html#carousel" rel="nofollow">them in the documentation</a>. Do I have to provide them somewhere? If yes, how and where? Here's the code:</p> <pre><co...
1
1,479
CKEDITOR5 - Angular8 : TypeError: this.editor.create is not a function
<p>I am trying to integrate CKEDITOR 5 in my Angular 8 project. I have created custom super build with additional plugins and with both ClassicEditor and InlineEditor(using this guide: <a href="https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/advanced-setup.html#creating-super-builds" rel="noreferre...
1
3,763
Magento, enabling DHL, "Site Id is wrong"
<p>We have just tried to enable DHL shipping method on our Magento backend, and for some reason the mentioned "Site Id is wrong" error keeps coming up. We have checked and re-checked that our information is correct, and have tried searching for similar problems, but can't find any that match or have been answered. Afte...
1
1,441
Does Inmobi works with Admob Mediation
<p>I am getting the following in logcat which might be the cause for NOT loading the Inmobi ads</p> <pre><code> VFY: replacing opcode 0x22 at 0x0010 VFY: dead code 0x000d-000f in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.a (Landroid/content/Context;)V VFY: dead code 0x0012-002c in Lcom/inmobi/commons...
1
1,126
JSON, CURL and Google's geolocation
<p>I am trying to use Google's geolocating "browserlocation" service. I have it figured so far that when I try something like</p> <pre><code>https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&amp;sensor=true&amp; wifi=mac:00-14-bf-28-80-69|ssid:10160|ss:-26&amp; wifi=mac:00-26-50-38-ca-11|ssid:2...
1
1,483
Deleting file from FTP server using PowerShell
<p>I wrote a PowerShell script to download files using FTPto my local machine. </p> <p>After the file is downloaded, I want to delete it from the FTP server. I wrote this code too. But unfortunately it's not working. </p> <p>Can anyone help me to point out what is wrong with my code? Any clues will be helpful ...</p>...
1
1,069
Jetty Error: java.lang.NoClassDefFoundError: com/mysema/query/dml/UpdateClause
<p>I run </p> <pre><code>mvn jetty:run-war </code></pre> <p>See this error:</p> <pre><code>java.lang.NoClassDefFoundError: com/mysema/query/dml/UpdateClause at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2436) at java.lang.Class.g...
1
9,773
Spark on yarn jar upload problems
<p>I am trying to run a simple Map/Reduce java program using spark over yarn (Cloudera Hadoop 5.2 on CentOS). I have tried this 2 different ways. The first way is the following:</p> <pre><code>YARN_CONF_DIR=/usr/lib/hadoop-yarn/etc/hadoop/; /var/tmp/spark/spark-1.4.0-bin-hadoop2.4/bin/spark-submit --class MRContainer...
1
1,390
How to re-render one component from another in React
<p>In my React code, I have an Employees page rendering both a Table component and a Filter component. The Filter code manipulates some data stored in the Employees page and then updates the Filter's state through useEffect. The data in question is passed as a prop to both the Filter component and the Table component. ...
1
2,111
WCF Repository Service pattern with entity framework
<p>I need presentation layer in silverlight, asp.net etc , so everything is through wcf services. I have number of doubts in my implementation of repository layer, service layer, wcf services</p> <p>things i currently do</p> <ol> <li>I have repository , its not per table its created per aggregate root</li> <li>I have...
1
1,303
How to iterate through an XDocument, getting complete XML structure, object by object?
<p>I have an <code>XmlDocument</code> which I can traverse with <code>XmlNode</code> or convert it to a <code>XDocument</code> and traverse it via LINQ.</p> <pre><code>&lt;Dataset&gt; &lt;Person&gt; &lt;PayrollNumber&gt;1234567&lt;/PayrollNumber&gt; &lt;Surname&gt;Smith-Rodrigez&lt;/Surname&gt; ...
1
1,315
MVVM MediatorLiveData observer onchanged called multiple times
<p>I am using MVVM + LiveData + Dagger 2.11 on my app.On SignInFragment click on a textview send request to server and show respopnse on snackbar. It works fine on first time click of textview.If I click again,it sends request(inbetween shows snackbar response message here) and ViewModel MediatorLiveData observer onCha...
1
1,565
ASP.NET MVC custom validator client-side validation not firing
<p>I have created a custom group validator that ensure that the user has filled in at least one field from a given group. This works when I load the page and submit the form without entering anything.</p> <h3>Invalid Form </h3> <p><a href="https://i.stack.imgur.com/UCTA3.png" rel="nofollow noreferrer"><img src="https...
1
2,032
Error in ASP.NET (Server Error in '/' Application.)
<p>for about month I'm trying to solve this problem which is driving me mad, so i said to myself let me post it on this site so may some one could help me.</p> <p>let's get to the point</p> <p>my program is asp.net connected to SQL Server 2008, once i try to run the program using the visual studio 2008 it just give t...
1
1,279
Erro:Unable to determine type from: <. Last 1 characters read: <
<h2> Questions and Help</h2> <h3>Please note that this issue tracker is not a help form and this issue will be closed.</h3> <p>For questions or help please see:</p> <ul> <li><a href="https://webchat.freenode.net/" rel="nofollow noreferrer">SeleniumHQ IRC channel</a></li> <li><a href="https://seleniumhq.herokuapp.com...
1
2,711
Use WinPython distro in Eclipse + Pydev?
<p>I've used python in Eclipse+Pydev for about one month. (32-bit Win 7) I recently installed WinPython (<a href="https://code.google.com/p/winpython/" rel="noreferrer">https://code.google.com/p/winpython/</a>) because I wanted several interdependent packages for data analysis, and this was an easy solution for Python...
1
1,122
Personal Vue 3 component package missing template or render function
<p>I recently uploaded my own Vue 3 component to NPM to make it usable for others. When using it in other projects it gives this warning:</p> <pre><code>[Vue warn]: Component is missing template or render function. at &lt;VueToggle id=&quot;1&quot; title=&quot;Toggle me&quot; &gt; at &lt;App&gt; </code></pre> <p>What...
1
1,042
Clear selected input in angular bootstrap typeahead
<p>I am using <a href="http://angular-ui.github.io/bootstrap/#/typeahead" rel="nofollow">http://angular-ui.github.io/bootstrap/#/typeahead</a> for a simple array lookup example.</p> <p>I would like to trigger <code>list()</code> when I empty the <code>input</code> field and press enter. Currently I could program anoth...
1
1,109
Java Calendar date month not set correctly
<p>i have created a calendar where a suer can scroll through previous and next months calendar but the issue i am having is when the user tries to scroll into the previous month. </p> <p>when the user clicks to the previous month the first time the app is run, it works but when the user clicks again it doesnt dispite ...
1
1,476
Batch Insert in Azure storage table
<p>I am new to using azure storage table. I was trying to insert my entities in batch but I found that you cannot do batch operation having different partition key.</p> <p>Is there some way I can do that there are about 10,000 - 20,000 of file details which I want to insert in a table.</p> <p>Here is what I have trie...
1
1,254
Error: class uri 'eventlet' invalid or not found
<p>I've been running a dockerized flask application that uses Celery to run tasks. To run the app I'm using gunicorn with eventlet and It's been working fine using alpine linux distribution.</p> <p>However I had to move to ubuntu due to some issues with sklearn and other libraries, and now I'm having problems to run m...
1
1,645
Delete a specific row TO DATATABLE using jsf and mysql
<p>I'm trying for four days to pass a value from my (xadmin.xhtml) to my (JadminBeans.java) but no luck so far. what i want to do is when i push the delete button inside a row using datatable all the data inside that row should be deleted form my datatable and mysql database. so this is a part of my code : P.s: i'm new...
1
1,713
How to make an HTTP Patch request from C# with a parameter [FromBody]
<p>I am creating a web API Service but I am having some problems when it comes to calling HTTP Patch requests. Though I know how to create them. If you could help me with this I would appreciate it, here is my code:</p> <p>HTTP PATCH CODE:</p> <pre><code>[HttpPatch(&quot;{username}&quot;)] public async Task&lt;...
1
2,242
What went wrong: Execution failed for task ':fluttertoast:compileDebugKotlin'
<p>After updating my flutter project when I was going to run the application in the android studio, I got the following error.</p> <pre><code>e: C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\fluttertoast-7.1.5\android\src\main\kotlin\io\github\ponnamkarthik\toast\fluttertoast\MethodCallHandlerImpl.kt: (...
1
1,084
STL Unordered Map- inserting into a vector
<p>I am not too familiar with the STL's unordered map and I'm having trouble inserting elements into it. </p> <p>So I have an unordered map where the key is a string and the mapped value is a vector of integers. I have it declared as:</p> <pre><code> unordered_map&lt;string, vector&lt;int&gt; &gt; catego...
1
1,546
MenuItem.setIcon() method doesn't work
<p>I've tried already all possible solutions. Here's my code:</p> <pre><code>private Menu mMenu; @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.fragment_article_detail_menu, menu); mMenu = menu; } void changeStar(boolean added) { if (mMenu != null) {...
1
1,181
Android: App Crashes when trying to save data to Firebase Database
<p>I'm trying to save data to a Firebase DB. Really nothing that complicated, but I'm finding that my app crashes whenever I click the saveInfoButton. I'm pretty experienced with Firebase with Swift/iOS, but newer to Android. It doesn't seem like this would be a problem with Firebase.</p> <p>The specific message (when...
1
4,602
X and Y values in html5 drag events are inconsistent across browsers
<p>Check out the following jsFiddle in Chrome, Safari, and Firefox. It should explain in good detail what I'm seeing.</p> <p>In summary, the drag and dragend events either do not have x and y values or have bizarre x and y values.</p> <p>(see code pasted below) <a href="http://jsfiddle.net/CgzV3/10/">http://jsfiddle...
1
1,453
Program type already present
<p>I am having the following issue, and could not find any solution:</p> <p><a href="https://i.stack.imgur.com/vYEXP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vYEXP.png" alt="enter image description here"></a></p> <p>Build.gradle :</p> <pre><code>apply plugin: 'com.android.application' andr...
1
2,511
open bootstrap modal after php form submit
<p>I'm trying to submit my contact form, send the data in an email with PHP, stay on index.html and open a bootstrap modal with a "Thank you" message.</p> <p>All the other examples I've seen that might do this have used AJAX. BUT I'd like to do it through PHP alone as my AJAX knowledge is non existent. Does anyone kn...
1
1,138
Not able to connect to Elasticsearch from docker container (node.js client)
<p>I have set up an elasticsearch/kibana docker configuration and I want to connect to elasticsearch from inside of a docker container using the @elastic/elasticsearch client for node. However, the connection is "timing out". </p> <p>The project is taken with inspiration from Patrick Triest : <a href="https://blog.pat...
1
2,291
React Native app - crash/close on startup on Android 8 real device
<p>I have a React Native project (not Expo) initialized with <code>react native init myapp</code>. I can run this application on Emulator and Real Device with Android 5, but cannot run the app on my Android Mobile with Android 8.</p> <p>Here's the <code>package.json</code>:</p> <pre><code>{ "name": "myapp", "vers...
1
3,022
Javafx location is required (loading FXML file from another folder/package)
<p>I have an issue using Java with FXML files. </p> <p>I searched for hours now and couldn't find anything that solves my problem, so my last hope is to ask the question for my specific case (I'm aware of question like <a href="https://stackoverflow.com/questions/13785919/error-loading-fxml-files-from-a-folder-other-t...
1
3,806
The getView() method of a custom ArrayAdapter is not executed
<p>In my project I have to display a list of reports so in the <code>Activity</code> I write the following code:</p> <pre><code>super.onCreate(savedInstanceState); setContentView(R.layout.report_full); List&lt;Employee&gt; data = new ArrayList&lt;Employee&gt;(); Employee eg=new Employee(); ...
1
4,123
sqlbulkcopy - does not allow DBNull.Value
<p>i just want to make one xls mapping facility. here is my sql table :</p> <pre><code>Id --&gt; int(Not NULL) auto incremented Name --&gt; varchar(50) (Not NULL) type_id --&gt; int(Not NULL) Ownername --&gt; varchar (Allow NULL) Ownermob --&gt; varchar (Allow NULL) Room --&gt; varchar (Allow NULL) Build --&gt; varcha...
1
9,080
Memory leak in Ionic(or angular)?
<p>I'm new to both Ionic and Angular, so I'm not sure where the problem would actually lie between the two(if either). I seem to have a problem with ng-repeat not clearing memory. I've written a bare bones example to demonstrate</p> <p><a href="http://codepen.io/pen/pvQyxj" rel="nofollow noreferrer">http://codepen.i...
1
1,320
Membership.ValidateUser always returns false
<p>I'm struggeling with setting up default membership. I can register, but later I'm unable to login to my app. The Membership.ValidateUser always returns false.</p> <p>This is the configuration I'm using:</p> <pre><code>&lt;connectionStrings&gt; &lt;clear /&gt; &lt;add name="DefaultConnection" providerName="Sy...
1
1,150
Caching response data with retrofit2+okhttp3
<p>I`m using retrofit_2 (beta4) with okhttp_3 libraries in network requests. And i need to cache response data for situations when network is off and application must show responce data from last identical request. All guides for solving this problem that i found were with okhttp lib (not okhttp_3). I tried to solve p...
1
1,090
Error: Can't create handler inside thread that has not called Looper.prepare()
<p>Im getting that famous "Can't create handler inside thread that has not called Looper.prepare()" error in my below code. based on most of my Google search result, this happens when i try to update UI from my none-ui-thread, but im not updating the UI at this point when i call the method from my other helper class (o...
1
2,770
how to display portfolio category above the content in loop portfolio page
<p>i want to display portfolio category above the content where all portfolio is displayed. i know some of the modification is required in loop portfolio.php but how put that so that it display above the content post. i want to display in ul li format how it possible?? i m using broadscope theme</p> <p>my code for loo...
1
1,412
Cannot install npm package in Angular project
<p>I clone my project from GitLab and I need to install the NPM packages in my project. </p> <p>When I run <code>npm install</code> it shows me this error:</p> <p><a href="https://i.stack.imgur.com/WNT5s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WNT5s.png" alt="Error"></a></p> <p>and I go to...
1
2,047
Cannot import react, Uncaught SyntaxError, Unexpected Identifier
<p>I have a following problem. I setted up a React in my ASP.NET Core application as always, but now I have one irritating problem and I don't know how to fix it.</p> <p>When I try to import react from 'react', nothing import. In Chrome Developer Tools I see a red underline under the sentene: "import React from 'react...
1
1,439
android.support.design.widget.tablayout Tab Indicator colour
<p>I am using TabLayout and a View Pager to show multiple tabs. I want to change the selected tab indicator. I have used <code>app:tabIndicatorColor</code>but the colour is not changing. It shows a greenish colour. I have read that by default the tabIndicator colour is set to<code>color/accent</code>, however the green...
1
1,053
spring boot EntityManagerFactory must not be null
<p>I am working on a Spring boot project, the spring boot version is 1.5.4.release. We need to user hibernate 5.2.10, so I set the hibernate.version to 5.2.10.Final. there is error: java.lang.IllegalStateException: EntityManagerFactory must not be null. code on git <a href="https://github.com/shuanshuan/springbootdemo...
1
9,116
to save/overwrite machine learning model as single file in spark cluster
<p>I have machine learning model using LinearRegression. I have spark clusters of 5 vm. After training the model, I want to save the model so I can use it afterwards simply loading into memory.</p> <p>I have tried using</p> <pre><code>model.save("/tmp/model.pkl"). </code></pre> <p>When saved like this, it creates th...
1
2,005
Can I have multiple instances of a RequireJS Module?
<p>I am obviously missing some concept/understanding and most definitely javascript OO basics!</p> <p>I am loving using RequireJS, and my web app now looks more like a structured app now rather than a whole heap of crazy code.</p> <p>I am just struggling to understand how/if the following is possible.</p> <p>I have ...
1
1,290
Border background image will not span entire border
<p>I am writing a WPF application. In the application I have a grid that has two columns. The one column has a border tag that, when the application runs, spans the height of the main window with no issues. </p> <p>The problem that I am running into is that I want a background image to also span the height of the a...
1
1,373
Appending options to a select, using jQuery, resizes it?
<p>In this small, but full example, I am trying to recreate a dual list box UI component. I simply wish to be able to move items from one box to another. (Would be nice if I could add sorting, but one hurdle at a time I think!)</p> <p>I am getting a problem with this code in IE7 (FF, Chrome, Opera all seem to work f...
1
2,167
The client is not authorized to request an authorization code using this method
<p>I need to on GET request Authlib generated an authorization token. The user doesn't need to confirm the access to resources because it is closed network and only trusted services (our services) can send requests.<br> Using <a href="https://github.com/authlib/example-oauth2-server" rel="nofollow noreferrer">this samp...
1
1,296
MultiValueDictKeyError at /account/register
<p>Error: MultiValueDictKeyError at /account/register 'first_name' Request Method: POST Request URL: <a href="http://127.0.0.1:8000/account/register" rel="nofollow noreferrer">http://127.0.0.1:8000/account/register</a> Django Version: 2.2.7 Exception Type: MultiValueDictKeyError Exception Value:<br> 'first_name' Exc...
1
4,371
Committed JDO writes do not apply on local GAE HRD, or possibly reused transaction
<p>I'm using JDO 2.3 on app engine. I was using the Master/Slave datastore for local testing and recently switched over to using the HRD datastore for local testing, and parts of my app are breaking (which is to be expected). One part of the app that's breaking is where it sends a lot of writes quickly - that is beca...
1
1,475
WebSocket connection to 'ws://localhost:52312/' failed: Error during WebSocket handshake: Unexpected response code: 200
<p>I am trying to implement a simple HTML5 WebSocket, But the connection is simply not getting established &amp; I am getting below error as WebSocket object is created</p> <blockquote> <p>WebSocket connection to 'ws://localhost:52312/' failed: Error during WebSocket handshake: Unexpected response code: 200</p> </bl...
1
1,100
Bootstrap: scrollbar disappears after closing modal
<p>I'm using Boostrap 3 and I have one modal displaying some HTML contents, and it has a scrollbar since all content doesn't fit into viewport. Inside this modal, there's a link to open another modal. Everything works fine, the second modal opens but when I close it, the scrollbar disappears and I can't scroll on the f...
1
1,590
Expected undefined to be truthy - Jasmine/Karma
<p>I have develop a simple reactive form in angular 2, Which includes username, password and login button. Here button default disable up to getting email and password values. Here i am trying to write a test case for button enable and disable( If we give input data to the both fields button should enable otherwise but...
1
2,134
How to create rewrite rule to Rename PDF file on the fly while Downloading using nginx?
<p>i am working on site where i am allowing users to download PDF files. Each PDF file is stored on server using random hash names, eg.</p> <pre><code>file 768E1F881783BD61583D64422797632A35B6804C.pdf is stored in /usr/share/nginx/html/contents/7/6/8/E/1/768E1F881783BD61583D64422797632A35B6804C.pdf </code></pre> <...
1
1,125
Ext JS 4: Convert JSON object to another JSON object using JavaScript
<p>What is the easiest way to convert JSON A to JSON B using JavaScript?</p> <p><strong>JSON A:</strong></p> <pre><code>{ "d": [ {"__type":"Web.Controls.Shared.GeneralService+DropdownKeyValuePair","key":"0","value":"one"}, {"__type":"Web.Controls.Shared.GeneralService+DropdownKeyValuePair","ke...
1
1,488
'Exception while reading request', 'detail': 'Cannot decode: java.io.StringReader@1aac9ea'}, 'status': 'failure'}
<p>My first question is, what does "cannot decode: java.io.stringreader" mean?</p> <p>My second question is, why do some strings work and others do not? I'm guessing that there's an issue with python passing certain strings with d0rked encoding? </p> <p>My third question is, am I converting the XML values correctly b...
1
3,277
Webservice client for Java 6 not working in Java 8
<p>I am using wsimport to generate client for a WSO2 webservice (/services/RemoteUserStoreManagerService?wsdl).</p> <p>WSO2 is running on a separate server on JAVA 6.</p> <p>My problem is that when the client is generated using JAVA 8. I am not able to invoke the webservice.</p> <p><strong>JAVA 6</strong> </p> <p>T...
1
1,146
What is causing PHP Notice: Undefined index:?
<p>I have a user registration form in my jQuery mobile app but when I submit the form via an $.ajax call it inserts only a blank row and the error_log says:</p> <pre><code>[01-Dec-2013 13:27:13] PHP Notice: Undefined index: fname in /home2/hedonsof/public_html/tcob/php/register.php on line 10 [01-Dec-2013 13:27:13] ...
1
2,830
AndEngine Sprite/Box2D Body removal crashes my program with no error/exception information?
<p>I am making a skateboarding game with obstacles you have to jump over using box2D and AndEngine. I am trying to make it so that when the player collides with an object, the object is removed and an explosion is placed at the objects old position, however something in the sprite removal code is freezing my program ca...
1
6,140
No animation during resizing Angular Material2 sidenav
<ul> <li>Have a <code>mat-sidenav</code> (<code>opened="true"</code>) with <code>mat-nav-list</code></li> <li>Each <code>mat-list-item</code> has a <code>mat-icon</code> and a <code>span</code> </li> <li><code>mat-sidenav-container</code> has <code>autosize</code> directive</li> </ul> <p>But there is <strong>no anim...
1
1,045
Form Table with java, thymeleaf and spring mvc
<p>My problem:</p> <p>In my method save, i receive a inscriptionsForm but it contains is null; inscriptionsForm.getInscriptions() == null, Why?</p> <p>I have tried multiple ways such as: </p> <pre><code> &lt;div th:each="inscription, stat : *{inscriptions}"&gt; &lt;div th:each="inscription, stat : *{inscripti...
1
4,023
Is Nginx support http/2 upgrade from http/1.1 in clear text(h2c)
<p>Is there any way to support http1.1 upgrade to h2c (not in ssl) in nginx?</p> <p>use curl test site <a href="http://nghttp2.org/" rel="nofollow noreferrer">http://nghttp2.org/</a> </p> <pre><code>$ curl --http2 http://nghttp2.org/ -s -o /dev/null -v </code></pre> <p>I get the following result:</p> <pre><code>* ...
1
1,199
Rails 3 Nested Models unknown attribute Error
<ul> <li>I have a model "Issue" and a nested Model "Relationship"</li> <li><p>In the issue.rb I have mentioned:</p> <pre><code>has_many :relationships, :dependent =&gt; :destroy accepts_nested_attributes_for :relationships, :allow_destroy =&gt; true </code></pre></li> <li><p>In relationship.rb I have mentioned:</p> <...
1
1,026
How to get all files from a directory using javafx
<p>I'm new on JavaFx and I can't manage to get all the files from a directory (I need to display some pictures using an interface built with javafx). I've been trying to use listFiles() but I keep on getting null when displayed to test. Here's the code :</p> <pre><code>package sample; import javafx.fxml.FXML; import ...
1
1,611
How edit <rich:fileUpload> CSS?
<p>I'm trying to show only the button <code>add</code> and the uploaded picture below the button, but it doesn't matter what I do in my CSS, the table generated by <code>richfaces</code> is always the same:</p> <p>This is my form using <code>richfaces</code>:</p> <pre><code>&lt;ui:define name="content"&gt; &l...
1
1,279
BeautifulSoup scraping nested tables
<p>I have been trying to scrape the data from a website which is using a good amount of tables. I have been researching on the beautifulsoup documentation as well as here on stackoverflow but am still lost. </p> <p>Here is the said table:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="sni...
1
2,008
Limit sorted conditional xsl:for-each results to n values
<p>I looked around on the site but wasn't able to locate a solution to a particular XSL problem. If you recognize this as a duplicate post I apologize and would be thankful to be pointed in the right direction.</p> <p>Based on the relatively simple XML data set below I want to create a table by project but also limit ...
1
1,763
How to display a message window in the right bottom corner of the active display using Delphi
<p>These days you see a lot of software displaying <strong>message windows in the right bottom corner of the active screen</strong> for a few seconds or until a close button is clicked (f.i. Norton does this after it has checked a download).</p> <p>I would like to do this using <strong>Delphi 7</strong> (and if possib...
1
3,238
How to configure gradle to use logback-classic ONLY for unit tests in Android?
<p>I have an Android app thich uses slf4j + logback. Gradle file looks like this:</p> <pre><code>... compile('com.github.tony19:logback-android-core:1.1.1-6') { exclude group: 'ch.qos.logback.core.net' } compile('com.github.tony19:logback-android-classic:1.1.1-6') { exclude group: 'ch.qos.logback.core.net' } ...
1
2,629
ASP.NET Core Deserializing From Body, w/ Default Values
<p>I have the following controller (abbreviated):</p> <pre><code>public class ServicesController : Controller { private readonly IServiceRepository _repo; public ServicesController(IServiceRepository repo) { _repo = repo; } [HttpPost] public async Task&lt;StatusCodeResult&gt; CreateSer...
1
2,207
PHP-FPM is not working as expected
<p>I am using Debian Squeeze and set up PHP-FPM with fastcgi. I have several virtual hosts defined on the same host. I defined chroot for each pool configuration but somehow it is possible to change directory and go above the root directory definition at the pool conf.</p> <p>disable_functions at the conf file is not ...
1
1,057
LC3 assembly programming gives me a strange label error?
<p>I am making an LC3 assembly program that calculates x factorial. I have this label called "OUTERLOOP" that is utilized as long as my counter value is not negative. However, the assembler is giving me this error: "32: label OUTERLOOP has already appeared." It does not give me this error for the inner loop. For some r...
1
1,244
Karaf with Hibernate does not start my persistence unit
<p>I need some help with troubleshooting why my persistence unit is not loaded in Karaf using Hibernate. The log file reports </p> <pre><code>Bundle com.vogelware.simple.remote.combined is waiting for dependencies [(&amp;(&amp;(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=person)(objectClass=javax.persiste...
1
3,723
Disable back button
<p>I am working in an android application and I want to disable a back button in my android application. I am redirecting it to a url and I want to disable back button there. Please help me.</p> <p>Here is ma code</p> <pre><code>public class PrepareRequestTokenActivity extends Activity { final String TAG = getCl...
1
1,800
FAIL - Application at context path /MyProject could not be started (JndiException and NameNotFoundException)
<p>I am trying to deploy my project on Tomcat 7. I included</p> <p>at tomcat/config/context.xml:</p> <pre><code>&lt;ResourceLink name="jdbc/MyProjectDS" global="jdbc/MyProjectDS" type="javax.sql.DataSource" /&gt; </code></pre> <p>and</p> <p>at tomcat/config/server.xml:</p> <pre><code>&lt...
1
4,413
Symfony v4, php bin/console doesn't work as expected. Automatically Aborted
<p>I just installed composer, php, apache etc. on my new SSD. After that I wanted to start coding. I opened my project from another drive in IDE. Then I wanted to load my fixtures into my new database, but I cannot. I cannot even make migrations etc. The php bin/console is broken (It automatically aborts any terminal i...
1
2,095
SimpleCov calculate 0% coverage for user model
<p>I decided to try using <a href="https://github.com/colszowka/simplecov" rel="nofollow noreferrer">simplecov</a> gem, and I think it's a cool tool, but I have one problem:</p> <p>I have a model <code>User</code>, and I have <code>user_spec.rb</code> which contains test cases, but simplecov shows 0% coverage of this m...
1
1,067
How to catch JSON object on server side and respond back (in javascript)
<p>I tried to build an application <code>using Javascript, HTML, CSS, AJAX, JSON</code> in which client fill a form and send to server , and after that server respond to client.</p> <p><strong>For this problem, I have done these steps,</strong></p> <blockquote> <ol> <li>Firstly I build a HTML page having form.</...
1
1,596
Unable to solve an error while running Gridsearch
<p>I am new to the realm of machine learning, and I started competing in Kaggle competitions to get some practical experience. I am competing in the knowledge competition CIFAR 10- Object Recognition in Images, where you have to classify thousands of images in 10 classes,all the data I use can be found there. I tried t...
1
2,661
Parse Complex JSON in SCALA using spray-json
<p>I am trying to parse a JSON string to a case class in Scala (So I can do the filtering data processing etc). After some research I am going with <a href="https://github.com/spray/spray-json" rel="nofollow">spray-json</a> as there are several examples on the link. Unfortunately the link does not show how to parse a J...
1
7,914