title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to toggle a rectangle grid using react-leaflet's LayerControl?
<p>I want to show or hide a grid of rectangles (the overlay) over a map (the base layer).</p> <p>I'm using the react Leaflet layers control : <a href="https://react-leaflet.js.org/docs/en/components#layerscontrol" rel="nofollow noreferrer">doc</a></p> <p>Problem : My grid shows all the time even if I uncheck the check ...
2
1,215
Unrecognized function or variable 'f' error
<p>I am new to Matlab and I am trying to implement Hough transform without using Matlab builtin function; hence I am learning possible ways to do so. I found a function written in a book that seems to be correct. I got an error and cannot figure it out. </p> <p>I want to implement hough transform function and later ap...
2
1,063
Terraform CustomScriptExtension reports unable to download files
<p>G'day,</p> <p>I am running a Terraform extension - CustomScriptExtension. However it reports the error that it is unable to load the files.</p> <pre><code>resource "azurerm_virtual_machine_extension" "tf-vm-grpprd-ad-ext-install-addom" { count = "${var.count_ad_vm}" name ...
2
1,809
Spring MVC + Spring Data, error when inject a Repository on Service
<p>I'm get the follow errors, when i try to inject with @Autowired annotation a Repository interface (extends CrudRepository) on a Service (@Service), in a project using Spring MVC + Spring Data + MariaDB:</p> <pre class="lang-java prettyprint-override"><code>GRAVE: StandardWrapper.Throwable org.springframework.beans....
2
6,964
Rails 5: validation of acceptance for a checkbox
<p>I have a sign-up form with some nested fields, and inside this form I have added a checkbox for the terms of service.</p> <p>I'm trying to validate when the checkbox is checked or not and return an error if not. </p> <pre><code> validates_acceptance_of :agreement, :allow_nil =&gt; true, :accept =&gt; true, :on =&g...
2
1,457
Running Drools as a fat jar(Compile drools into jar)
<p><strong>Problem:</strong></p> <p>When I runs my test or run my application from the main method drools initialize fine and every thing works. BUT as soon as I compile my application to a jar file (as a fat jar), this code throws a <code>NullPointerException</code>.</p> <pre><code>KieServices ks = KieServices.Factor...
2
2,129
CSS is not working in IE 7 and IE 8 .. specially ul li
<p>This is my HTML. You can see more www.tuvid.ee . My biggest problem is that the menu on the left is not the same in IE. The second problem is, when I will resize my page then the content is moving wit it. Maybe somebody could tell me what's wrong there with the position element. </p> <pre><code>&lt;aside&gt; &l...
2
1,676
Saving HandsOnTable data with Flask
<p>I'm trying to load and save data from a <a href="http://handsontable.com/" rel="nofollow">HandsOnTable</a> using Flask. I'm following <a href="http://docs.handsontable.com/tutorial-load-and-save.html" rel="nofollow">these instructions</a> for loading and saving (retrieving and sending) data using ajax. I have manage...
2
1,964
Read a whole XML line and save it into an array? JDOM
<p>I have a very simple question, yet i cant solve it, I hope you can help me.</p> <p>How can I read a whole line of an XML file with JDOM? I need the Tag and the attribute and want to save it in one array. How can I do this?</p> <pre><code> package converter; import java.io.FileReader; import java.io.FileWriter;...
2
1,579
Conda entry_points configuration
<p>I am trying to create a conda package from my sources but I get the stuck with the <code>build/entry_points</code> part of the <code>meta.yaml</code> configuration file.</p> <p>Explanations:</p> <p>Here is my <code>setup.py</code> file which works correctly with <code>pip</code> :</p> <pre><code>from setuptools ...
2
4,853
Install wordpress in subdirectory with docker-compose and nginx
<p>I am going to build a website with docker-compose.</p> <p>When user enter the root directory, it goes to the web app. When the user enter the <a href="http://example.com/blog" rel="nofollow noreferrer">http://example.com/blog</a>, it should redirect to the wordpress.</p> <p>In order to do so, i have config the docke...
2
1,421
only part of task executed when connection lost on redis using django celery
<p>I have a django celery task that is only partly executing.</p> <p>I start up the app and the connection looks good:</p> <blockquote> <p>INFO/MainProcess] Connected to redis://elasticache.cache.amazonaws.com:6379/0 [2018-02-17 23:27:24,314: INFO/MainProcess] mingle: searching for neighbors [2018-02-17 23:27...
2
2,100
Retrieving image from Firebase Storage
<p>I know this is a discussed topic, but here I am, after all other solutions I've found did not solve my problem. I saved multiple images in Firebase Storage and now I want to get one of them and put it into an <code>ImageView</code> on an <code>AlertDialog</code> (or another Activity).</p> <p>I've read about <code>Gl...
2
2,768
Refreshing (updating) individual rows of a table with the data returned by the action class using ajax call
<p>from so many days i am trying to get this done,but m failing. Have a look at my jsp once below:</p> <p>Here i have one table and all each row i have refresh icon,i want to refresh individual row when clicked the icon.</p> <p>onclick i am calling a function-> <code>refreshRecord(value);</code> value(parameter) is t...
2
7,292
RubyMine and RVM, not detecting Rails
<p>I've followed the guidelines [here][1]</p> <p>I have <code>rvm</code> set to use the <code>ruby-2.3.0@rails4.2</code> as the default. The app is working. However, I wanted to use RubyMine as I enjoy JetBrains other IDEs. </p> <p>However, even though rails is installed, and going into <code>settings&gt;Ruby SDK a...
2
1,676
Android, second activity does not launch
<p>I have a basic Android app set up with two activities. The problem is that the first one opens, and just stays there forever, and the second one does not launch.</p> <p>Could anyone say what's wrong?</p> <p>MainActivity.java</p> <pre><code>package com.desecrationstudios.firstapp; import android.app.Activity; imp...
2
1,109
SqlBulkInsert with a DataTable to a Linked Server
<p>I'm working with 2 SQL 2008 Servers on different machines. The server names are <code>source.ex.com</code>, and <code>destination.ex.com</code>.</p> <p><code>destination.ex.com</code> is linked to <code>source.ex.com</code> and the appropriate permissions are in place for <code>source.ex.com</code> to write to a da...
2
1,654
jQuery access table inside a frame
<p>I've got a problem. I want to select an element inside a frame (not iframe). The name of the frame is main, but I can't add an ID (complicated to explain, but not possible). How can I manipulate the data inside that frame?</p> <p>I already tried various different things (also from stackoverflow) but they didn't wor...
2
5,320
Asp.Net MVC5 Web Pages - using @RenderSection in _Navigation view
<p>I have a _Navigation.cshtml view, to which I am trying to add some conditional <code>&lt;ul&gt; &lt;/ul&gt;</code> tags using the Razor <code>IsSectionDefined()</code> and <code>@RenderSection()</code> directives.</p> <p>However, I'm getting the following exception:</p> <p><code>The file "~/Views/Shared/_Navigatio...
2
1,462
Navigate to welcome page after login page using React Router Dom v6
<p>I'm a beginner learning React and using React v 17.0.2, react-router-dom v 6.0.2. I'm following a course made for react-router-dom v4. I'm not able to get page navigation working if I try to navigate from a successful login to append a welcome message to the url. In v4 this is achieved by a <code>{this.props.history...
2
2,165
Laravel - 500 (Internal Server Error) on Ajax Call
<p>I've been trying on this tutorial (<a href="https://www.youtube.com/watch?time_continue=7&amp;v=D4ny-CboZC0" rel="nofollow noreferrer">https://www.youtube.com/watch?time_continue=7&amp;v=D4ny-CboZC0</a>) with respect to my context and I'm getting this error:</p> <blockquote> <p>POST <a href="http://127.0.0.1:8000...
2
1,383
Issue setting up solr multi-core using apache tomcat 7 on windows 8
<p>I was trying to do multi core setup in <code>solr</code> using <code>apache tomcat 7</code> on <code>windows 8</code>. The solr home opens up , but no cores appear. I checked the logging section and there was the following error:</p> <pre><code> org.apache.solr.common.SolrException:org.apache.solr.common.SolrExcept...
2
3,294
jQuery sortable: style table same as list
<p>Contrast these two snippets of HTML:</p> <pre><code>&lt;ul class="ui-state-default" style="list-style-type: none; margin: 0; padding: 0;"&gt; &lt;li&gt; &lt;table&gt;&lt;tr&gt; &lt;td&gt;Testing.&lt;/td&gt; &lt;td&gt;One&lt;/td&gt; &lt;td&gt;Two&lt;/td&gt; &lt;td&gt;Three&lt;...
2
1,485
disable FormGroup by using Validators
<p>I had <code>formArray</code> checkbox on my <code>checkboxForm</code>, I need to disabled button submit if no checkbox are <code>checked</code>, I had implement custom validator on my <code>checkboxForm</code>, this is what I had tried;</p> <p><strong>Ts file</strong></p> <pre><code> get formReceivedSummons() { ...
2
1,171
APPLICATION FAILED TO START following method did not exist:org.springframework.plugin.core.PluginRegistry.of(org.springframework.plugin.core.Plugin[])
<p>I have newly created a spring boot project and added swagger dependencies, now while I am trying to run my application I am getting below error, I have tried this solution <a href="https://stackoverflow.com/questions/66930313/orrect-the-classpath-of-your-application-so-that-it-contains-a-single-compatibl">Link1</a> ...
2
2,912
Kivy support for SDL2 in Virtualenv
<p>I followed following steps to install kivy in virtualenv (Mac OSX) with support of sdl2</p> <pre><code>$ brew install sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer $ pip install -I Cython $ USE_OSX_FRAMEWORKS=0 pip install kivy </code></pre> <p>but when tried to run basic documentation code</p> <pre><code>from ki...
2
1,119
SpringFramework registerWebSocketHandlers not working
<p>I am trying to register a AbstractWebSocketHandler implementation in a class that implements SpringFrameworks WebSocketConfigurer and extends SpringFrameworks AbstractWebSocketMessageBrokerConfigurer. In the websockethandler, I print out messages on the afterConnectionEstablished and afterConnectionClosed methods bu...
2
2,499
Tic Tac Toe Programming
<p>I am pretty new in C++ programming. I am coding for Tic Tac Toe game to understand how its algorithm works. My question is about I have two functions. One of them is clearBoard function and the other one is drawBoard function. I got little help about them but I couldnt figure it out the way those functions works. Ca...
2
1,784
Telerik Grid dynamic column names and values are not displaying from the Datatable
<p>My Code:</p> <pre><code> @(Html.Telerik().Grid&lt;System.Data.DataRow&gt;() .Name("reportsGrid") .ClientEvents(events =&gt; { events.OnDataBinding("onDataBinding"); }) .DataBinding(dataBinding =&gt; ...
2
1,212
using long (int64) as a hashCode and still use IEqualityComparer for concurrent Dictionary
<p>I have a problem using a self made IEqualityComparer and GetHashCode in a concurrent dictionary.</p> <p>The class below (simplified with used two properties) works perfect when I implement it like this:</p> <pre><code>ConcurrentDictionary&lt;TwoUintsKeyInfo,Int64&gt; hashCodePlusIandJDict = new ConcurrentDictionar...
2
2,300
gevent + redis-py: SystemError: NULL result without error in PyObject_Call
<p>I am using redis-py with redish together with gevent and I have my own class EventBot which inherits from Greenlet.</p> <p>In the <code>__init__</code> method of this class I am initialising connection to redis using</p> <pre class="lang-py prettyprint-override"><code>self._redis = Client(serializer=serialization....
2
1,617
Android problems with parsing json
<p>Hello I'm trying to parse json from my website. Te jsonString I get from te httpresponse is working fine but when I try to parse it in an JSONObject it gives a NPE. This is the json im testing with right now:</p> <pre><code>{ "galgjejson" : { "Nederlands" : { "length7" : [ ...
2
8,098
IdentityServer - Using Hybrid Flow
<p>I implemented an IdentityServer3 and try to use it with my new ASP.NET Core MVC application. </p> <p>I want to use the Hybrid Flow but I don't seem to get it working.</p> <p>My client on the IdentityServer3 is setup like this:</p> <pre><code>new Client { ClientName = "Test", ClientId = "Test", ClientU...
2
2,866
How to identify which SMS has got Delivery report in Android
<p>My application retrieves records from sqlite database and SMS to other application by merging the records based on the size of the record, i am intruble to identify which messages have got the delivery report and which does'not . i am using BroadcastReceiver on reciveMethods but unfortunately i can't understand ho...
2
3,007
How to make disabled button after click in Vuejs
<p>I have a button on my website that gives bonuses to the user. Button have several conditions in 1 button:</p> <pre><code>&lt;button class=&quot;btn btn--small btn--purple&quot; :disabled=&quot;isDisabled&quot; @click=&quot;takeBonus&quot;&gt;Take&lt;/button&gt; &lt;script&gt; ...... computed: { isDisabled()...
2
2,149
How to validate together-uniqueness of two (foreign key) related fields of a model?
<p>Let's say I have three models in my app that lets user write a review for a book. The requirement is that every user can only do one review for each book.</p> <p><code>Review</code> model has two foreign keys to <code>User</code> and <code>Book</code> models. I want to be able to validate user input before creating ...
2
1,085
KnockoutJS: Handling Select Boxes. Selecting a default value and removing an existing item
<p>I am having trouble handling checkboxes in Knockout JS.</p> <p><strong>jsfiddle link</strong>: <a href="http://jsfiddle.net/wenbert/Xyuhk/72/" rel="nofollow noreferrer">http://jsfiddle.net/wenbert/Xyuhk/72/</a></p> <p>Note that I have provided 2 select boxes for each parent (Hero). Each one is using a different wa...
2
2,499
Switch source of embedded Vimeo video clicking on a thumbnail image
<p>I have an <code>iframe</code> for embedding a <code>Vimeo video</code> inside a div of a carousel menu. Below the menu there are 2 thumbnail images of the videos. The thumbnails are composed by an image and an overlay play button image (I used <code>z-index</code> for putting it on top). I gave an <code>id</code> to...
2
1,355
How to perform looped queries in transactions properly with node.js, mssql and msnodesqlv8
<p>I am attempting to do what I've previously done in c# and asp.net webforms and execute a number of insert stored procedures, some of which are in loops, in a transaction. I am now trying to do so in my angular application through node.js with the mssql package. What I have so far is as follows.</p> <pre><code> ...
2
3,457
Dynamically change the data in a component angular 6
<p>I'm new to angular so i'm not much familiar with the angular functions. Currently i'm facing a situation ie, i want to change data of a component while clicking a function from another component.</p> <p><a href="https://i.stack.imgur.com/2h421.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2h421...
2
2,188
D3 focus/context chart: synchronization of brushing and panning
<p>I have a d3 focus/context chart where I would like to be able to pan on the focus portion after brushing the context, and I would like the brushed section of the context area to move in sync with the panning of the focus area. However, when I click on the focus portion after I select a region in the context chart, ...
2
6,600
PHP read text from file then fill fields
<p>I've a page that shows some fields that can be saved to a file by the following code:</p> <pre><code>&lt;?php if($_POST['Submit']) { $company = $_POST['company']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $address3 = $_POST['address3']; $address4 = $_POST['address4']; $contact = $_POST['conta...
2
1,384
How to implement Google Map search by address location in fragment
<p>I am trying to create an app. I want to add search by address on google map in fragment Using the following code-</p> <pre><code>public class Search extends Fragment implements OnItemClickListener{ private final String TAG = this.getClass().getSimpleName(); MainActivity main=null; PlacesTask placesTask = null ; ...
2
3,612
numpy ctypes "dynamic module does not define init function" error if not recompiled each time
<p>sorry for yet an other question about <code>dynamic module does not define init function</code>. I did go through older questions but I didn't find one which adress my case specifically enought.</p> <p>I have a C++ library which should export several functions to python ( like ~5 functions defined in <code>extern "...
2
1,404
XPath select child node by type condition and for certain type all its children
<p>This is my XML given:</p> <pre><code>&lt;WorkItem&gt; &lt;Id&gt;717&lt;/Id&gt; &lt;WorkItemType&gt;Product Backlog Item&lt;/WorkItemType&gt; &lt;TreeLevel&gt;1&lt;/TreeLevel&gt; &lt;Children&gt; &lt;WorkItem&gt; &lt;Id&gt;719&lt;/Id&gt; &lt;WorkItemType&gt;Product Bac...
2
3,770
Dropdown CSS issue - hidden list shows up when hovered over
<p>my problem is that when I hover over the area where the hidden list is, it shows the hidden list. I only want it to show the hidden list when hovered over the 'Language' link on the dropdown menu. Why is it doing this, it's probably something blindingly obvious that I can't spot.</p> <p>Cheers :)</p> <p>EDIT: I've...
2
1,501
Java.sql.SQLException: ORA-00604
<p>I developed a website using jsp and servlet but it gives exception java.sql.SQLException: ORA-00604.After restarting the server it is working fine. Below is my code </p> <pre><code>public class LoginCheck extends HttpServlet { private static final long serialVersionUID = 1L; /** * @see HttpServlet#Ht...
2
3,518
Android studio radio button single select and The record button is clicked
<p>I have ten questions from my succession. I want to do,</p> <p>1- an answer to a problem (only one button should be clicked)</p> <p>2- When I go to the next question, see the answer I clicked radiobutton the previous</p> <p>JAVA Class</p> <pre><code> public class Sinavsorulari extends Activity { TextView...
2
9,795
Elastic search not return all fields
<p>I have an index which name is news, here is the stored mapping in the elasticsearch:</p> <pre><code>{ "news": { "mappings": { "newsdetail": { "properties": { "active": { "type": "long" }, "authorId": { "ty...
2
2,198
How to best sort the corners of a rectangle without knowing the width or height?
<p>I have four coordinates of a detected rectangle. I want to find out which of these is the top left, top right , bottom left and bottom right points. The method I have written myself is (unnecessarily) long and hasn't actually worked (possibly because I made a mistake somewhere). Either way I'm sure there is an easie...
2
2,069
Getting high precision values from qnorm in the tail
<h2>The problem</h2> <p>I am looking for high precision values for the normal distribution in the tail <code>(1e-10 and 1 - 1e-10)</code>, as the R package that I am using sets any number which is out of this range to these values and then calls the <code>qnorm</code> and <code>qt</code> function.</p> <p>What I have no...
2
1,544
Exception message in Servlet
<p>I have JSON-RPC Service (a class with methods invoked using Reflection) and I want to pass exception as data to error object. So I try to catch Exception in Servlet but e.getMessage() return null, showing backtrace don't show my code at all (only function that get Stack trace and a place where I call it):</p> <pre>...
2
1,127
MySQL 100% CPU every 12-18 hours
<p>I've inherited a Windows Server (2016) and we have a proprietary piece of software not written by me which uses a MySQL db. I am a novice w/ SQL.</p> <p>There is client software that will connect to the server randomly throughout the day. Anywhere between 10 and 200 different computers will log into this server thr...
2
3,505
Escape Catch-22 with extension attributes in .NET 2.0
<p>How can a single .NET assembly, targeting 2.0, 3.0, 3.5, 4.0, and 4.5 concurrently, support extension methods for both C# and VB.NET consumers?</p> <p>The standard suggestion is to add this:</p> <pre><code>namespace System.Runtime.CompilerServices { public sealed class ExtensionAttribute : Attribute { } } </code...
2
1,326
Cart funcionality using Context Api
<p>I am trying to achieve cart functionality, but I want to save the cart on the refresh of the page. Anyway, the problem is this I have Context Api and cart logic (add to cart, removeitem, amount, setCartItem) so when I try to add an item to the cart, nothing happens, and when I check the cart nothing is in there. I k...
2
3,483
Spark IllegalArgumentException: Column features must be of type struct<type:tinyint,size:int,indices:array<int>,values:array<double>>
<p>I'm trying to use the <code>org.apache.spark.ml.regression.LinearRegression</code> fit my data. So I've got the original RDD transformed to <em>dataframe</em>, and have tried to feed it to the <em>linearRegression</em> model.</p> <pre><code>val spark: SparkSession = SparkSession.builder.master(&quot;local&quot;).get...
2
1,075
Jetty custom LoginService
<p>Can anyone point me to a working example of a custom LoginService for Jetty?</p> <p>I am just trying to do something as simple as making a copy of HashLoginService in a package in my project then reference that class from jetty-web.xml. When I do so, I always get: </p> <pre><code>2017-05-23 21:16:36.511:WARN:oejw...
2
1,188
ClassCastException from View objects in android studio
<p>In Android Studio, when i try to run my project i get a <code>ClassCastException</code> as following:</p> <p><code>Caused by: java.lang.ClassCastException: android.widget.EditText cannot be cast to android.widget.RelativeLayout</code></p> <p>when the View object is 100% RelativeLayout and not EditText. The problem...
2
3,908
doctrine:migrations:migrate : SQLSTATE[42000]: Syntax error or access violation: 1064
<p>I am trying to migrate my database in production (MySQL 5.6) with command: <code>php bin/console doctrine:migrations:migrate</code></p> <p>I put this in Doctrine.yalm:</p> <pre><code>doctrine: dbal: url: '%env(resolve:DATABASE_URL)%' driver: 'pdo_mysql' server_version: '5.6' </code></pr...
2
1,947
How to grep only the last 30 days of input from a log file?
<p>I want to see the all the packages that were upgraded in the last 30 days.</p> <p>So I run this command:</p> <pre><code>cat /var/log/apt/history.log | grep -a -A 2 Upgrade </code></pre> <p>I get this output:</p> <pre><code>... Upgrade: gcc-8-base:amd64 (8.3.0-6ubuntu1~18.04.1, 8.3.0-26ubuntu1~18.04), libgcc1:am...
2
1,085
paginate custom post type in single page WordPress
<p>I have two <strong><em>custom posts type</em></strong> :</p> <ul> <li><code>School</code> </li> <li><code>teacher</code></li> </ul> <p>and there are connected using <strong><em>post 2 post</em></strong> plugin. so when I display a school single page <code>school-single.php,</code> it's show me school informations ...
2
3,234
auth::check in laravel 5 not working
<p>I am new in laravel 5 and trying to create a simple authentication system where an user can simply registers and logs in, if the user is logged in it would show a welcome message, otherwise the registration and login buttons. But I'm trying to check whether the user is logged in using Auth::check() it's giving me fa...
2
2,247
No route matches {:action=>"show", :controller=>"users"} when clicking the link to root_path - user is signed in
<p>I am following Michael Hartl's tutorial and am currently on chapter 9 - I am using Rails 3.2.12 and Ruby 1.9.3p362</p> <p>There is only one test that is not passing:</p> <pre><code>1) Authentication authorization as wrong user visiting Users#edit page Failure/Error: before { visit edit_user_path(wrong_user) ...
2
1,788
How to hide table footer on DataTables if no results found?
<p>I'm using the generic dataTable attached in the preview. What I'm looking for is to hide the tfoot if the data table search returns no results. For example, if you type 5000 in the attached data tables search it will return "No matching records found" as there will be no results I don't want to show the tfoot becaus...
2
1,280
Using Savon and nokogiri to make a Soap Request
<p>A sample request that I am trying to make looks like this:</p> <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;s:Body&gt; &lt;GetList xmlns="http://tempuri.org/"&gt; &lt;listRequest i:type="b:NpsListRequest" xmlns:a="http://schemas.datacontract.org/2004/07/Services....
2
1,140
WAMP - ySQL - DIsabling secure-file-priv
<p>I read every single thread about this, but none of the solutions work for my situation. I made a function to dump a MySQL database table to a CSV/TSV file, heres the code:</p> <pre><code>function db_to_tsv($conn,$table) { $file_path = "C:/wamp64/tmp/{$table}_dump.tsv"; $columns_array = $conn-&gt;query("SELECT...
2
1,548
How to make simple calculator give back the final result in EditText on android
<p>i'm now in java and eclipse, i just tried to build a simple calculator, but i can't make it to return with the result. </p> <p>My plan was basicly that when the user click one of the operators, and the EditText isn't empty, then First variable will be equal with the EditText, and the Operator variable change, and w...
2
3,338
Get State and County from Address
<p>I want to have the State and county from an Address using geocode with Google API. This is my code:</p> <pre><code>$geocode=file_get_contents('http://maps.google.com/maps/api/geocode/json?address='.$street.''.$plz.''.$city.'&amp;sensor=false'); $output= json_decode($geocode); $lat = $output-&gt;resu...
2
1,792
what to use instead of ` Command Argument property`in a` gridview` When I create the gridview in client side using jquery?
<p>Suppose I have following table in my database:</p> <pre><code>Tbl_Persons: Id Country Name 1 Australia Ben 2 Japan John 3 Korea Libby 4 Australia Raymond </code></pre> <p>I use following Query and bind the result using <code>DataTable</code> to a <code>Gridview</code>.</p>...
2
1,341
Asp.Net Core localization not working using VSCode
<p>I'm using VSCode to create an Asp.Net Core API. I'm trying all day to figure out how to make localization to work but with no results. When I do the exact same thing in Visual Studio 2015 Community Edition everything works fine. But not with VSCode...</p> <p>So I created the following super simple project with the ...
2
4,321
My cell's resize after scrolling upwards?
<p>I have a problem with my TableViewCell's layout. Currently when I scroll upwards in my tableView I have found a strange and annoying bug. When I decide to release the "scroll", meaning I am dropping "the scroll" so the "View" will return to its normal position showing all of the TableView's content, some of my cell'...
2
1,374
Spring Data REST and IdClass - not compatible?
<p>I am trying to use Spring Data REST with a given SQL schema, which uses the JPA @IdClass annotation for associative tables (intersection table, or many-to-many resolution table). These mapping entities do not get serialized properly.</p> <p>I created a small project, that illustrates the problem. It's a fork of spr...
2
1,110
No implementation found for int io.netty.internal.tcnative.Library.aprMajorVersion()
<p>I have been trying to implement Google's Natural Language API. When I go to validate my credentials it's having a problem with netty. Any clue on how to solve this? I'm using Java8 btw. I saw on some other threads that it was a Java version that was this issue. </p> <pre><code> String text = "My name is Teneala....
2
1,940
What does $loop do in this code sample?
<p>Phil Sturgeon wrote this <a href="http://philsturgeon.co.uk/blog/2013/11/benchmarking-codswallop-nodejs-v-php" rel="nofollow">article</a> about benchmarking. </p> <p>What I am concerned with is this technology called ReactPHP.</p> <p>I have been to their GitHub, but still cannot wrap my mind around it without an e...
2
1,339
Jersey : Error creating a JAXBContext for wadl processing
<p>I have a REST API coded with jersey which need authentication. To authenticate you need to post to this url : <a href="http://localhost:8080/login" rel="nofollow noreferrer">http://localhost:8080/login</a> with your credentials in the body.</p> <p>It works fine when posting from an API tool like paw but I can't get...
2
2,062
Fatal exception in main thread
<p>I am new to android. My project is related to networking. I am getting this error FATAL EXCEPTION: main</p> <pre><code>android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java1133) </code></pre> <p>... ...</p> <p>My code is :</p> <pre><code>package com.e...
2
1,563
OpenSUSE 13.1 openvpn
<p>So I need to setup a openvpn connection for my work to get access to services etc. I used to work with a OpenSuse Virtual Machine to get things done, but now i set up a vagrant environment (<a href="https://github.com/tcdev0/openSUSE-13.1-vagrant-ansible" rel="nofollow">https://github.com/tcdev0/openSUSE-13.1-vagran...
2
1,679
JSONArray parsing using Retrofit Library and Display on ListView
<p>I am currently working on reading a JSONArray from a web service and populating it on a List View. Currently the app doesn't show me anything, or does it give any errors, so can anyone please tell me what I did wrong. Thank You in Advance.</p> <p>Here is my JSON File</p> <pre><code>{ "products": [ { ...
2
4,270
Flex 4 Datagrid s:MXDataGridItemRenderer issue - default styles are lost?
<p>All, I have implemented a HeaderRenderer on all my Datagrid columns. When I do this, it appears that all the default DataGrid column header styles are being lost, eg: </p> <ul> <li>When I hover over a column header, the default in the DataGrid is to show it in another colour (same colour as the row selection colour...
2
1,292
Line 1034: Char 34: runtime error: applying non-zero offset 8 to null pointer (stl_vector.h) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
<pre><code>class Solution { public: static bool nonDec(vector&lt;int&gt; a, vector&lt;int&gt; b){ return ((a[0]*a[1])&gt;(b[0]*b[1])); }; int maxHeight(vector&lt;vector&lt;int&gt;&gt;&amp; cuboids) { int n=cuboids.size(); int rotLength=3*n; vector&lt;vector&lt;int&gt;&gt...
2
1,271
My ViewModel does not survive configuration changes
<p>I'm trying out Dagger 2 with MVVM. Here is what I have so far,</p> <p>My ViewModel binding module:</p> <pre><code>@Module public abstract class ViewModelModule { @Binds @IntoMap @ViewModelKey(MedicationsViewModel.class) @Singleton abstract ViewModel bindMedicationsViewModel(MedicationsViewMode...
2
1,225
Spring Boot WebMvcTest, what is causing IllegalArgumentException here?
<p>i have the following WebMvcTest in a Spring Boot project. I have HTTPS and JWT token authentication enabled. The test worked before i had HTTPS and JWT, but after adding them it gives an IllegalArgumentException.</p> <p>I can't for the life of me figure out where the exception is coming from. Can anyone point me in ...
2
2,682
I'm trying to install Unreal engine 4
<p>error when running the make command in the directory after running ./GenerateProjectFiles.sh</p> <pre><code>bash "/home/heisenberg/Downloads/UnrealEngine-release/Engine/Build/BatchFiles/Linux/Build.sh" CrashReportClient Linux Shipping Fixing inconsistent case in filenames. Setting up Mono Building CrashReportCl...
2
1,171
UITabBarController rotation problem with popViewControllerAnimated and selectedIndex (iPhone SDK)
<p>This is a very important auto rotate issue and easy to reproduce. </p> <p>My application has a UITabBarController. Each tab is a UINavigationController. Auto rotation is handled with normal calls to shouldAutorotateToInterfaceOrientation and didRotateFromInterfaceOrientation.</p> <p>The interface rotates normally ...
2
1,104
Codeigniter default layout like in Twig
<p>I'd like to know how to implement this in codeigniter cause it's kind of a hassle to always have this code in the controller.</p> <pre><code>$this-&gt;load-&gt;view('header'); $this-&gt;load-&gt;view('content_view',$data); $this-&gt;load-&gt;view('footer'); </code></pre> <p>In twig, you can define a default templa...
2
1,346
Cannot clear content of wxBoxSizer
<p>For some reason my <code>sizer.Clear()</code> does not seem to work properly.</p> <p>As far as I have understood from the docs it should work.</p> <p><strong>Am I doing something wrong that causes this behavior?</strong></p> <pre><code>import wx import os import sys import time import string import urllib2 class...
2
1,337
Facebook Video Embed API allowfullscreen=false doesn't work which makes .play() function throw error
<p>I am trying to embed facebook video on my mobile site and used their Video API <a href="https://developers.facebook.com/docs/plugins/embedded-video-player/api" rel="nofollow noreferrer">documented here</a> to do it.</p> <p>I have initialised the video player as described and created Play &amp; Pause buttons to cont...
2
1,318
Decoding unnamed JSON array swift 4 with structure
<p>I have been trying to decode an array for an app where I have to decode JSON.</p> <p>I just can't decode it with my actual structure and others which I tried before.</p> <p>Here are my latest structures:</p> <pre><code>struct peticion: Decodable{ let datos_conexion: datos_conexion let estado_lanzamiento: est...
2
1,193
Jquery : To redirect from one page to another page
<p>I have two js pages(Source.js and Target.js) at two different location, now all i want to do is when user clicks on dropdown list of source page , it redirects user to target page and vice-versa. I am providing you the exact coding with all location and everthing, i just want to know how to switch from one page to ...
2
1,158
"Filtering the paginated list" is not working on vue-paginate node
<p>in my project i have added the pagination by vue-paginate node, and i added filtering by vue-pagination too and it works fine. When i type in my input field something that does not exist in my list it's blank and thats ok too, but when i start to delete letters nothing shows up on the list, and when i remove all let...
2
1,096
C# SOAP v1.0 project with WS-Encryption & WS-Signing
<p>I have been tasked with a job to create an app that connects to a web service that uses Soap V1.0 with WS-Security.</p> <p>I have been able to connect successfully using Soap UI. The Soap Service is sent via HTTPS, the SOAP message must be signed with a x509 cert and the soap body must be encrypted with their SSL.<...
2
9,928
how to properly build.yaml?
<p>I just started to learn Flutter. I use vscode as editor</p> <p>I need to use json_serializable on my code. I read <a href="https://pub.dev/packages/json_serializable" rel="noreferrer">https://pub.dev/packages/json_serializable</a> and make my build.yaml just like what show there.</p> <pre><code>targets: $default: ...
2
8,899
Installing R package plyr, stringr and reshape in Linux
<p>I keep getting an error when trying to install R packages on Linux: </p> <pre><code>* installing *source* package âstringrâ ... ** package âstringrâ successfully unpacked and MD5 sums checked ** R ** inst ** preparing package for lazy loading ** help *** installing help indices converting help for package âstring...
2
1,885
Owner draw CSliderCtrl using MFC: why my program-created slider has an incorrect channel rect?
<p>I am trying to implement an owner draw CSliderCtrl. It seems drawing is fine, however the mouse to change the thumb position is very weird. It is limited only in a very small rect. And I found that the rect by GetChannelRect is much smaller than the rect I used to create the slider control. Below is .h file:</p> <p...
2
2,662
Code becomes slower as more boxed arrays are allocated
<p><strong>Edit:</strong> <em>It turns out that things generally (not just array/ref operations) slow down the more arrays have been created, so I guess this might just be measuring increased GC times and might not be as strange as I thought. But I'd really like to know (and learn how to find out) what's happening here...
2
2,664
mongodb 3.0 wiredtiger unexpected shutdown
<p>I am having an expected shutdown of mongodb 3.0 with wiredtiger storage engine with following log. This happens </p> <pre><code>2015-03-08T13:28:14.026-0400 E STORAGE WiredTiger (2) [1425835694:25835][10671:0x7fc3ce4d0700], log-server: /home/main/mongo/database/journal: opendir: No such file or directory 2015-03-0...
2
2,224
What is the better method to convert JSON to GeoJSON for Leaflet map
<p>I wanted to convert JSON to GeoJSON to plot divIcons on a Leaflet map from a JSON file that I get from an API. Being new to javascript I am having a really difficult time finding a working solution. I thought I had my issue resolved in my other post <a href="https://stackoverflow.com/questions/55887875/how-to-conver...
2
1,722
Greasemonkey Javascript, Speed up xmlHttpRequest
<p>I want to know the methods to speed up an XHR (xmlHhttpRequest) GET.</p> <p>I have an application that keeps sending an GM_xmlHttpRequest every X seconds.<br> The essential idea is, the faster I get the a response that satisfy a condition, faster I can take an action.<br> What I've done so far, is to set a timeout,...
2
1,330
How can I add relation to my repository pattern with c#?
<p>I have a repository pattern that I am using for an application. Everything is working perfectly today. However, I want to add ability to include relations to other models.</p> <p>Here is my current <code>IRepository</code></p> <pre><code>public interface IRepository&lt;TModel&gt; where TModel : class { //...
2
1,392
Unable to deploy Spring Ws on WAS 8 - class conflicts?
<p>I am trying to deploy a Spring-Ws application on WAS 8 with the below configuration:</p> <p><strong>Web.xml</strong></p> <pre><code>&lt;context-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt;/WEB-INF/xxx-servlet.xml&lt;/param-value&gt; &lt;/context-param&gt; &lt;co...
2
5,048