title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
@Convert in Hibernate not working with spring 4,java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAttributeConverter(Ljava/lang/Class;)V
<pre><code>&lt;project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.aratan.myapp&lt;/groupId&g...
2
12,963
Exception on casting Dispatcher Servlet
<p>I have a maven web in eclipse and on compiling it, i am getting some exception saying <code>java.lang.ClassCastException: org.springframework.web.servlet.DispatcherServlet cannot be cast to javax.servlet.Servlet</code> I am not able to understand the exception and i dont know whats going wrong.</p> <p>pom.xml:</p> ...
2
2,730
Use of Dojo 1.8 functions to execute on JSF ajax result
<p>I am new to Dojo (and in fact all front end programming, I have been working on server side for years in Java and C#). I am currently working with Java Server Faces (JSF) 2.1 and trying to put together a simple demo using JSF and Dojo Grid (dgrid) with Dojo 1.8. I have a example from the dgrid site that shows how ...
2
1,326
Trying to emit an event to show main menu after login, but my variable never receives the event
<p><strong>EDIT:</strong></p> <p>This might be a more applicable Question to answer for me as it is more useful <a href="https://stackoverflow.com/questions/35397198/how-can-i-watch-for-changes-to-localstorage-in-angular2">How can I watch for changes to localStorage in Angular2?</a></p> <p>So I have my main app.compo...
2
1,785
How to resolve flutter dropdownButtonFormField dynamic selection checking for dropdownButton's value
<p>I am trying to ask the user to select the type of item in the first dropdown and then select from its corresponding available colours in the second dropdown. However, when after I have selected a colour (i.e. white) and now want to switch to another item that does not have this colour, an error is thrown:</p> <pre><...
2
1,512
Heroku Django Images not loading
<p>Been trying to fix this a few hours, can't seem to wrap my head around it. I have whitenoise installed and the website works fine besides the images not loading. Here are my media codes:</p> <p>├───.idea</p> <p>├───analyst</p> <p>│ └───<strong>pycache</strong></p> <p>├───blog</p> <p>│ ├───migrations</p> <p>│ │...
2
3,426
React Native, iOS - ScrollView doesn't work on device
<p>ScrollView works on iOS Simulator but it doesn't work when it is actually run on Exponent on device. It goes back to the top after touch release. I'm not sure if this is the problem with my code or it is a bug on React Native or Exponent side. Here are the details of my environment:</p> <p>React Native Version: 0.4...
2
2,853
how to handle execution timeout in flink
<pre><code> Connected to JobManager at Actor[akka.tcp://flink@localhost:6123/user/jobmanager#-1119198862] with leader session id 00000000-0000-0000-0000-000000000000. org.apache.flink.client.program.ProgramInvocationException: The program execution failed: Couldn't retrieve the JobExecutionResult from the JobMan...
2
1,590
Arduino mega + esp 8266 sending get request
<p>i have a php script which help to store data into google firebase.</p> <p>i am using this url to access my php scipt and input the data: arduino.byethost22.com/FirebaseTest.php?slot1_data=empty&amp;slot2_data=occupied</p> <p>i have tried it and it is able to store slot1_data as empty and slot2_data as occupied. Ho...
2
1,427
How to select a file from Android Emulator?
<p>These are the codes which appeared to have no error but activity stops when I clicked on the Select File button. I wish to upload a file to Amazon S3 but I have to choose a file before uploading. The File I wish to upload is from "Downloads" of the emulator. Anyone know what's wrong?</p> <pre><code> package sit.ny...
2
1,187
Add hours,minutes,seconds to the input fields &display as hh:mm:ss am/pm using js & convert to Timespan before saving to db in Blazor
<p>Add hours, minutes, and seconds to an input field, display <code>hh:mm:ss.fffffff am/pm</code>, save this to the database in the <code>timespan hh:mm:ss.fffffff</code> in Blazor. Here, I used <code>input type=&quot;number&quot;</code> for inserting hours, minutes, and seconds. And a dropdown for am/pm.</p> <p>I wan...
2
2,909
passing geojson data from flask app to javascript to be used in leaflet map
<p>OK, I have a map on a webpage using flask, python, html, javascript. My problem is that when I hard code the geoJson data, it works fine. When I pass the geoJson data from the python script to the Javascript to be used in leaflet, it does not work. I am not getting any errors other then the visual error of no dat...
2
1,327
Sorcery registration not going through
<p>I'm trying to use the Sorcery gem for authenticating users, but after the registration form is filled out it redirects back to the registration page with an error. I'm able to create a user from the console, however.</p> <p>log file:</p> <pre><code>Started POST "/users" for 127.0.0.1 at 2012-01-23 13:54:12 -0500 P...
2
1,049
Edit value in CSV using powershell
<p>For a small project, I want to create AD users from a small CSV file. I made jobs (PowerShell scripts) that run every few minutes, to pick-up the user creation based on the status of the user I define in the script. Per example; when a user is created in the AD, I change the status to <code>addmailbox</code>. Then a...
2
1,756
Javascript: When to use a dollar sign before a variable name
<p>I cannot figure out the meaning of putting a dollar sign before certain variables.</p> <p>For example: $(document).ready <br> Another example: (function ($) {$.fn.aToast = function (options) {...</p> <p>Here is example code I found on the internet:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <di...
2
1,870
ld: 1 duplicate symbol for architecture x86_64 in Xcode
<p>I have been cracking my head over this one. I've searched all over and all I seem to find are issues with the same error messages but involving either building complete iphone apps or dealing with header files, all sorts of stuff.</p> <p>I was just writing a simple C++ program, I wanted all the classes in one file ...
2
2,504
Get returned data after posting with axios (vue+ laravel)
<p>I wanted to create a custom login system with vue as my frontend, laravel handling the api, and axios as the controller between the two. I wanted to get the returned data from my <code>AuthController</code>. Here's my codes:</p> <p>Vue:</p> <pre><code>export default { name: 'Login', data(){ return { us...
2
1,032
Alignment in android NDK project
<p>I have an existing C++ project which I would like to port to android. Unfortunately the program causes an "Fatal signal 7 (SIGBUS)" error on android. It is working fine on other platforms (32bit/64bit Linux and Windows). Here is the part of the code, that causes the problem:</p> <pre><code>RawMem3::RawMem3(uint8_t ...
2
1,089
Limit playback range of HLS m3u8 playlist
<p>Is there an open-source implementation of limiting the playback range of HLS m3u8 playlists?</p> <p>I'm able to render the video using the <a href="https://github.com/video-dev/hls.js/" rel="nofollow noreferrer">hls.js</a> library, specify a start time for the video and impose a duration to identify the end time. My...
2
1,296
How to properly reset _bstr_t to `NULL`
<p>In the snippet bellow (simplified scenario of a loop)</p> <pre><code>_bstr_t original(OLESTR("MyString")); // ref-count = 1 _bstr_t another; another = original; // ref-count = 2 // do something with another another.Assign(NULL); // expected: ref-count = 1, and another = NULL // reset another to NULL before doing ot...
2
1,179
Error: 'Objects are not valid as a React child' in a very simple redux app
<p>In this little Redux app i'm trying to make two very simple counters which can operate independently from each other.</p> <p>At the moment only Counter1 is connected to the store:</p> <pre><code>const App = connect(mapStateToProps, mapDispatchToProps)(Counter1); </code></pre> <p>And store is made up from allReduc...
2
1,778
Drag drop into google visualisation datatable array
<p>I'm beginner to web developing and coding so sorry if I ask trivial question...</p> <p>I want to create a job scheudle tool with timeline so I find on net this example <code>almende.github.io/chap-links-library/js/timeline/examples/example15_mobile.html</code> based on google visualisation api.</p> <p>All is works...
2
2,754
GetView in BaseAdapter Calling Infinte Time
<p>In app i am loading data from Url and displaying it in list view.Total Item which I retrieve from Url is 5 Item, Which are displayed successfully in listview.But getView() runs infinite times at backend.<strong>IT keeps on calling till activity is alive</strong> .I am unable to figure it why it is calling so much ti...
2
5,629
Django blog post by authors
<p>I am building a blog in django 3. I want to filter all posts by author and display the results in author page. I can't seem to figure what is wrong with my code. Please help. If i can get an explaination on what is wrong with my code, that will be appreciated.</p> <p><strong>Views.py</strong></p> <pre><code>class ...
2
1,105
Cart conditions won't save to table in laravel
<p>I have products with and without conditions in my cart, when I add my cart data to <code>orders</code> table all my cart data will save except my products conditions.</p> <p>dd of <code>my cart</code> data:</p> <pre><code>CartCollection {#699 ▼ #items: array:1 [▼ 2 =&gt; ItemCollection {#670 ▼ #config:...
2
4,055
reactJS logout does not prevent back button from reentering application
<p>I have a reactJS application where I provide a bootstrap menu to navigate the application. In my home page, this is the code of the menu that provides the user the link to log out:</p> <pre><code>&lt;div className="collapse navbar-collapse" id="navbarSupportedContent"&gt; &lt;ul className="nav navbar-nav"&gt; ...
2
1,608
How to Access Custom Add-In Ribbon Check Box in VBA?
<p>I've spent 2 days now trying and searching and nothing seems to be working...</p> <p>I created a custom ribbon Add-In for Visio in VSTO that installs and buttons work fine. I just recently added a couple of checkboxes to the ribbon whose states I want to read from within a VBA project.</p> <p>I can't for the life...
2
1,066
Generate different pdf files for each row in data table and send Email Attachment
<p>I need to have a functionality that on click of a button i need to generate pdf file for each record in the data table using C#.net</p> <p>I require to generate PDF for each and then Email attachment that PDF to each person. the data for PDF is fetched into a data table for all students.</p> <p>I just need a funct...
2
1,881
Kubernetes Dashboard is not available
<p>This is my first time what I'm installing Kubernetes and trying to understand how it works. First problem that I can't solve is opening Dashboard via HTTP protocol using <code>proxy</code> by visting the URL from documentation:</p> <p><a href="http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/ht...
2
1,115
Sending a renamed file using Intent.ACTION_SEND
<p>Let's say I have a save file, <code>saves.xyz</code>, and I want to share it, by mail.</p> <pre><code>Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_SUBJECT, content.getShareSubject()); intent.putExtra(Intent.EXTRA_TEXT, content.getShareText()); File savesFile = new File(Environment.g...
2
1,150
Add new Formelemts and transform it with jqtransform
<p>I'm just trying to change my formfields with jqtransform.</p> <p>With the following Javascript Code, I added new formfields:</p> <pre><code> &lt;script type="text/javascript"&gt; $(function() { var scntDiv = $('#p_scents'); var i = $('#p_scents p').size() + 1; $('#ad...
2
1,094
Liferay protlet webservice error
<p>I have a problem with my liferay portlet. </p> <p>I deployed the portlet fine and am using it in the site. </p> <p>I have an API/Web Service in my portlet. It was working fine a few days ago, but now I am getting a ClassCastException. </p> <p>What seems to be the problem? </p> <p>Here is the stacktrace : </p> <...
2
7,762
Creating an userform object hierarchy with grouping in vba
<p>First things first. There's a good chance what I want to do should really be done with VB and not VBA. But as long as it is possible I would rather use VBA.</p> <p>I have a userform of essentially a big diagram made of hundreds of labels. I want to separate these labels into groups. And then separate these groups i...
2
1,163
Cannot extract label from form to translate
<p>Im using JMS Translation Bundle to extract, and below is my setting:</p> <p>jms_i18n_routing:</p> <pre><code> default_locale: %locale% locales: [en] strategy: prefix_except_default jms_translation: configs: app: dirs: [%kernel.root_dir%, %kernel.root_dir%/../src] out...
2
1,544
EndRead throws IO exception
<p>This is for local communication between a MoSync application and an external DLL, MoSync does not allow me to use 3rd part DLLs and that is the reason why I have to implement this bridge software instead of using a simple call to a DLL, I have to convert from xml to the DLL Message format, and again to XML. I know t...
2
3,509
How to detect crop row using python OpenCV?
<p>I am new to machine learning and image recognition. I did quite a lot of research and found that we can detect the line on python using Pattern Hough Transform. With all my research and implementation, I couldn't get to the correct solution. </p> <p>Basically, I need to detect the crop rows, draw the line and get t...
2
1,141
GtkGrid is not showing new widgets attached to it
<p>I've decided to make a toy application in which I resize a table of labels by adding rows/cols of elements to GtkGrid.</p> <p>When adding a new element to the GtkGrid from inside a button callback function, the grid widget updates its size, but fails to update the contents.</p> <pre><code>#include &lt;gtk/gtk.h&gt...
2
1,386
Running error within function using solve() in R?
<p>With this program below, I will get the error:</p> <pre><code>solve.default(Sigma0[cs.idx, cs.idx]) : 'a' is 0-diml </code></pre> <p>But, when I check the <code>em()</code> function step by step, I mean, sentence by sentence without function, there is no error within <code>solve()</code>. So I am confused and desp...
2
1,225
Random poem generator
<p>I need to create a random poem generator while using arrays and input from the user (the user needs to input a minimal of 3 adjectives and 3 nouns) then the program has to randomly combine an adjective with a noun (a noun and an adjective can not be re-used twice) and display it. There needs to be 3 lines in the poe...
2
1,069
Getting a new refresh token with AD FS 4.0 (2016) or higher
<p>I configured AD FS 2016 to support authentication of a &quot;Native Application&quot; via OAuth2/OpenID Connect using Authorization Code Grant with PKCE. I created a relying party and configured (for testing purposes) token lifetimes by setting the following:</p> <pre><code>Set-AdfsRelyingPartyTrust -TargetName MyRP...
2
1,506
Android studio camera2 eliminate noise
<p>I am working with camera in android studio and i have YUV420_888 as output from camera2 via ImageReader. Problem is that i got this strange noise, or whatever it is called. Here is <a href="https://s21.postimg.org/8wg5a6jef/Screenshot_2016_08_31_18_12_48.png" rel="nofollow">link</a> to a picture. If you look close t...
2
10,189
ReactJS Dropdown menu, close other menus before opening current
<p>I have made some dropdown menus:</p> <pre><code>export default class DropdownMenu extends Component { constructor(props) { super(props) this.state = { menuOpen: false, highlight: false, count: this.props.count | 0 } this.showDropdown = this.s...
2
1,161
How to add properties to ArrayLists that include inheritance?
<p>I'm doing an assignment on inheritance and I have so far created a superclass a subclass. Within these classes, there are methods that have been added to define information such as an animal's name or age. Now I have been asked to do the following:</p> <ul> <li>Create a Demo class with a main method that creates an...
2
1,095
MongoDB Select MIN/MAX from values inside Array
<p>So I'm having issues performing a Query to return just two values, MIN and MAX for a field inside an Array field...</p> <p><code>client.files.uploads</code> is the field I want to get the MIN/MAX.</p> <p>The result will be just "<code>0,10</code>" for example, I don't want to get more fields, just look into every ...
2
1,190
Getting Action controller UNKNOWN FORMAT error- for rails 4 + AJAX call
<p>I am trying to do a remote search in a ajax form, where the user types into a code, and submits via ajax, the controller gets the code and see if anything in the database matches, then controller then returns a response appropriately. I keep getting an UNKNOW <code>ActionController::UnknownFormat</code> when I try t...
2
1,178
influxdb-java: org.influxdb.InfluxDBIOException: java.net.SocketException: Connection reset by peer: socket write error
<p>I'm testing InfluxDB to store sensor time series. I'm using the <a href="https://github.com/influxdata/influxdb-java" rel="nofollow noreferrer">influxdb-java</a> client library (version 2.15) and I'm running InfluxDB 1.7.6 locally for test purpose.</p> <p>All my points are stored .csv files (one per sensor) which a...
2
1,352
Move div up and down dynamically by clicking content menu buttons
<p>I have a move up and move down button in my context menu for multiple div drop. I want to move my div down after clicking move down, but I am unable to do so.</p> <p>Below is the code that I am currently using.</p> <pre><code>$(".propertyClass").live('click', function(event) { tempId = this.parentElement.pare...
2
1,865
NoHostAvailableException :: Java to Cassandra SSL Cluster connection failed
<p>I am trying to connect to a 3 node Cassandra cluster from a Java client program, with Cassandra cluster configured with Client to node encryption enabled. I deployed three self signed certificate in all three nodes, and imported the public certificates to each of other nodes as per the document <a href="https://docs...
2
1,729
Read and Write from serial port in java without listener event
<p>I want to read bytes from the serial port and write to it sequentially.Is there any way i can read and write from/to the serial port by creating two separate functions for read and write in java?.I wrote a program but here,serialPort.getInputStream() is giving a null pointer exception even after opening the desired ...
2
1,393
Why does F# generic struct have extra __dummy field?
<p>Using F# Interactive, you can verify the following sizes:</p> <pre><code>// sizeof&lt;A&gt; = 4 bytes type A (i: int) = struct end // sizeof&lt;B&lt;int&gt;&gt; = 8 bytes (use any type parameter) type B&lt;'T&gt; (i: int) = struct end </code></pre> <p>The reason for the extra size seems to be the presence of an i...
2
1,111
package com.google.android.gms.iid does not exist import com.google.android.gms.iid.InstanceID
<p>Am trying to include GCM as native bundle. This runs as a background service but i cant get the build to compile successfully. I have android.playService.gcm=true as build hint. But i get the folliwng errors. It seems nothing in com.google.android.gms is being picked up. I have also enabled gradle build.</p> <pre><...
2
1,746
Database design - "Separate Tables Vs One table" for Select Queries
<p>I have a MySQL table like following</p> <h3>Books Table</h3> <pre><code>book-id category author author_place book_name book_price --------other 50 columns directly related to book-id 1 adventure tom USA skydiving 300 2 spiritual ...
2
1,516
Extract Field Names and max lengths from a text file using C#
<p>I have a file that is a SQL Server result set saved as a text file. </p> <p>Here is a sample of what the file looks like:</p> <pre><code>RWS_DMP_ID RV1_DMP_NUM CUS_NAME 3192 3957 THE ACME COMPANY 3192 3957 THE ACME COMPANY ...
2
2,875
How to pass JSON data to rest API in symfony2
<p>I am creating rest api for symfony 2,but not able to pass JSON data to post method. <code>$userform-&gt;isValid()</code>always failed.</p> <pre><code>curl -v -H "Accept: application/json" -X POST -d '{"username":"hitesh","userpassword":"hitesh123"}' http://localhost/us/serenify/web/app_dev.php/user/login </code></p...
2
2,177
Edit form in Symfony2
<p>I am not using Doctrine's generator because I think the code is ugly, thus I am trying to make it work my <code>editAction</code> and render the form in my <code>edit.html.twig</code> page, but I can not make it work. I tried to follow other examples given by other answers but they did not work either.</p> <p>First...
2
1,168
Java BlockingQueue produces/consumes not properly
<p>I'm working on a project where I need to retrieve Twitter messages using the TwitterAPI, process them and store them in a database. I am using Producer/Consumer BlockingQueue where the elements act as follows:</p> <ul> <li>Producer : retrieves the Twitter messages using the TwitterAPI and stores it in a BlockingQue...
2
1,338
timer_gettime not working with multiple timers
<p>The issue is that I am trying to run a code which can trigger different timers at the same time. That is, when 3 is typed by the user, the firstimer is triggered. If before expiration another 3 is introduced, the second timer will be launched, and the difference between both triggers will be shown. Under this circum...
2
1,572
How can I transmit via MQTT and Receive on AMQP with RabbitMQ and Spring-AMQP
<p>So I've gotten MQTT -> MQTT and AMQP -> AMQP to work; the translation of MQTT -> AMQP doesn't seem to be working somewhere though. Here's my test, it passes if my "listener" is also in MQTT using paho, but this rabbitmq implementation doesn't.</p> <pre><code>@SpringBootTest @SpringJUnitConfig internal open class Pr...
2
1,101
Couldn't install php55 by brew, tried all the possible solutions
<p>I had pre-installed php 5.4.24 when I bought my mac. Then with Brew I installed php 5.5.8 which was working fine. Yesterday, I wanted to install php 5.2 which I started via brew install php52. It gave issue-</p> <p>1) Configure error: freetype.h not found After I fixed that I had another issue-</p> <p>2) configure...
2
2,218
Atomikos rollback doesn't clear JPA persistence context?
<p>I have a Spring/JPA/Hibernate application and am trying to get it to pass my Junit integration tests against H2 and MySQL. Currently I am using Atomikos for transactions and C3P0 for connection pooling. </p> <p>Despite my best efforts my DAO integration one of the tests is failing with org.hibernate.NonUniqueObje...
2
1,239
custom uitextfield with custom inputAccessoryView
<p>is strange to se no question about this problem in all stack overflow, but i can't find it :(</p> <p>So let me explain. I have a simple <code>UITextField</code> that should present a custom <code>inputAccessoryView</code>. </p> <p>The expected behavior is:</p> <ol> <li>tap in the textfield (ACTextField)</li> <li>...
2
1,959
Generating Dynamic bootstrap Menus with Angular
<p>I am trying to create bootstrap navbar menus dynamically using Angular.</p> <p>The source data for the menu comes from json which looks like below:</p> <pre><code>{ "Menu": [ { "title": "Individual", "url": "#", "subMenu": [{ "title": "Individual Address", "ur...
2
1,904
How can I use Spark Dataset with Thrift
<p>My data format is defined with apache thrift, with code generated by scrooge. I store it in spark using parquet, very much like what is explained in this <a href="http://engineering.ooyala.com/blog/using-parquet-and-scrooge-spark" rel="nofollow">blog</a>.</p> <p>I can read that data back into a Dataframe very easil...
2
1,763
Binary Search Tree getHeight() function
<p>I am attempting to write a function that will return the height of a BST. I'm writing my code using test-driven development but, unfortunately, it's not passing my test and I can't figure out why. </p> <p>I'm passing parts 0, 1, and 2 of my test but am failing at part 3. Any help in figuring out what is wrong wi...
2
2,338
Tridiagonal Matrix Inverse C
<p>Hello I am trying to make an inverse function for a tridiagonal matrix in c, but my code is giving me a segfault error. The code is</p> <pre><code>/* Inverse of a n by n matrix */ #include&lt;stdio.h&gt; #include&lt;math.h&gt; #include&lt;stdlib.h&gt; double J[3][3]; double phi(i, n) { double p; if(i==n) { re...
2
1,082
JAVA Web Service with SOAP Client Objective C---Response problem
<p>I have this web service in Java:</p> <pre><code>@WebService(serviceName = "Catalogo_V1") public class Catalogo_V1 { /** This is a sample web service operation */ @WebMethod(operationName = "hello") public String hello(@WebParam(name = "name") String txt) { return "Hello " + txt + " !"; ...
2
1,301
Website has too much Padding when on Firefox Browser
<p>My team created a website for a University Writing Conference. Our problem is that when using Firefox, there is too much white space on the bottom of the page, almost a whole page worth!</p> <p>On Safari and Explorer, the white space ends right after the footer. </p> <p>Why is it like this on Firefox? </p> <p><a ...
2
2,282
Camera starts to lag when using setPreviewCallbackWithBuffer
<p>In my camera application I want to use <code>setPreviewCallbackWithBuffer()</code> instead of the normal <code>setPreviewCallback()</code> method. However, I noteced that when I use <code>setPreviewCallbackWithBuffer()</code> the camera preview starts to lag a couple of <code>ms</code> wheras when using <code>setPre...
2
1,349
mvn release - svn error while tagging
<p>While trying to execute the release:prepare goal, I get the following failure :</p> <pre><code>... [INFO] Checking in modified POMs... [INFO] SVN commit directory: C:\dev\eclipse\workspace\xxx-parent [INFO] Tagging release with the label xxx-parent-0.0.1... [INFO] SVN checkout directory: C:\dev\eclipse\workspace\xx...
2
1,190
is the Java Servlet I've created in Netbeans adding something strange?
<p>This is my second try to solve this problem. My first try was <a href="https://stackoverflow.com/questions/1389834/applet-server-communication-how-i-can-do-it">here</a> but perhaps my explanation of my problem was insufficient, my problem was that the applet received the exception: </p> <pre><code>java.io.StreamCor...
2
2,918
jQuery lavaLamp, misbehaving with child <ul>'s
<p>I've been playing around with <a href="http://nixboxdesigns.com/projects/jquery-lavalamp/" rel="nofollow noreferrer">http://nixboxdesigns.com/projects/jquery-lavalamp/</a> for a navigation menu on a new site I'm building and it works great with minimal fuss, I then started wondering if I could add some sub navigatio...
2
1,031
Django- ModuleNotFoundError: No module named 'django.urls'
<p>I am new to python and Django. I am learning using the MDN text guide. This is what I followed to setup my computer-<a href="https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/development_environment#Using_a_virtual_environment" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Learn/...
2
1,810
Way to add instance variable in class?
<p>Hi i'm trying to add all the space requirements of each subclass of animal (tiger, giraffe, penguin) so I can print it out in the zoo class. With my current program (below) i get that every size requirement is 0. Plus some extra random zeros. Help?? Please and thank you!?</p> <pre><code> public class Zoo { pr...
2
2,313
ActionBar error "incompatible types"
<p>I am stuck with making tabs using ActionBar. When I make it to run app with some code changes, my app crashes instantly without even starting. The current code is closest to working where I could get. This is MainActivity here:</p> <pre><code>import android.app.FragmentTransaction; import android.support.v4.view.Vi...
2
1,119
Vue js Search Filter - Data & Binding Load Issues
<p>I have a form which currently pulls in a set of data from an external JSON as a list of options, I am trying to incorporate a search filter to display the options as you type. Here is the computed code I have created:</p> <pre><code>computed: { searchedSlots: function() { return this.items...
2
1,872
Shiny App to Run Simple Regression-Error: Reading objects from shinyoutput object not allowed
<p>I am new to shiny but I am trying to write a shinyapp that allows users to choose a dependent variable and select a number of independent variables and the app outputs the regression table. </p> <p>Currently the code I have looks like the following. </p> <p>ui.R </p> <pre><code># Define UI for application shiny...
2
1,142
RabbitMQ durable queue does not work (RPC-Server, RPC-Client)
<p>I wondering why my RabbitMQ RPC-Client always processed the dead messages after restart. <code>_channel.QueueDeclare(queue, false, false, false, null);</code> should disable buffers. If I overload the <code>QueueDeclare</code> inside the RPC-Client I can't connect to the server. Is something wrong here? Any idea how...
2
1,536
Django: writing a view to delete multiple object with checkboxes
<p>So I have a table that lists all the record from my model. But now I'm trying to make a Checkbox and delete it (kinda like the Django admin way), I can't find the documentation for this , as I'm sure there are several ways to to this. But I'm trying to figure out like whats the proper way for doing this , should I d...
2
1,513
org.springframework.messaging.converter.MessageConversionException: No converter found from actual payload type 'byte[]' to expected payload
<p>I have a spring boot application , using @EnableJMS in configuration class and @JMSListener in listener class</p> <p>In configuration class i have created a bean for connection Factory and a bean for message converter</p> <p>something like this:</p> <pre><code>@Bean // Serialize message content to json using TextMes...
2
1,559
Twitch API v5 -- Find out if streamer is live
<p> Hello, I am working with the Twitch API v5 and I figured out how to find out whether or not the twitch streamer is live or not, but I can't seem to figure out how to display whether or not it's live per user. I have 10 results show up per search in my app. The only way I can really explain it is by showing the code...
2
6,380
Realizing Top Level Entity in Testbench using VHDL
<p>I'm a newbie in VHDL and hardware world. I'm trying to make a Count&amp;Compare example using Top Level Hierarchy and test it with testbench and see the results on ISIM.</p> <p>Here is my block diagram sketch: <a href="https://i.stack.imgur.com/LAxY3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
2
2,046
How to choose only one row at a time in html table using javascript
<p>I want to choose only one row at a time from html table... Im using php,html and javascript.. if i choose one row means that the value only show in alert box at a time using javascript.. I wrote some js coding but it shows all the row values one by one in alertbox.. Please anyone help for me..</p> <p>My html code...
2
1,839
How to catch FileSizeLimitExceededException in a spring boot multipart controller action in a tomcat container?
<p>When I upload a file of size that exceeds the configured max file size, the response returned is not very pretty or useful to my JS UI. So, I want to catch it and handle it. But, the issue is error is thrown before my controller is entered. Thus, I'm at a loss as to where to place my error handling code. One idea I'...
2
2,224
Spring security 3 with primefaces does not work : HTTP 404 .... The requested resource (/j_security_check) is not available
<p>I have an issue with using Spring security 3 with primefaces 3 . when i deploy my project i get the login page but when i try to login i get this error</p> <pre><code>HTTP 404 .... The requested resource (/j_security_check) is not available </code></pre> <p>can you help me guys ? this is my application-security....
2
2,080
Wrong render target ID2D1Bitmap
<p>I'm trying to save a ID2D1Bitmap based on this <a href="https://stackoverflow.com/questions/11447489/how-to-save-id2d1bitmap-to-png-file">How to save ID2D1Bitmap to PNG file</a> but unlike him at hr=pRT2->EndDraw(); my hr =-2003238891. which means D2DERR_WRONG_RESOURCE_DOMAIN. how do i use the source render target (...
2
1,685
Strongly typed Linq filtering method
<p>I am a bit tired of writing lines of service layer codes like these:</p> <p>Below codes just an example for readers. So they may have errors or typos, sorry about it :)</p> <pre><code>//ViewModel public class EntityIndexFilterPartial { public int? Id { get; set; } public DateTime? StartDate { get; set; } ...
2
1,428
Google App Engine - calling new Gson() creates "java.lang.VerifyError: Cannot inherit from final class"
<p>This works when debugging locally but once deployed any servlet call to new Gson() produces this error. I've not been able to google a fix for it. What will fix the issue?</p> <pre><code>import com.google.gson.Gson; import com.google.gson.GsonBuilder; public void doGet(HttpServletRequest req, HttpServletResponse r...
2
1,816
Masonry flexbox with order going horizontal instead of vertical with different heights
<p>I am currently using the following code to make a pure CSS masonry grid</p> <pre><code>.flex-container { display: flex; flex-flow: column wrap; height: 29em; } .flex-item { display: flex; font-size: 30px; min-height: 200px; /* Would use just `height` but Firefox is weird */ flex: 0 0 auto; width: ...
2
1,258
Running JUnit tests on eclipse-test-plugins from maven
<p>I have a maven3 multi-module RCP eclipse project. I want to run JUnit tests from maven. The modules that have JUnit tests are eclipse-plugins. I've tried to run them using <code>Tycho Surefire Plugin</code> by adding this at pom file:</p> <pre><code> &lt;packaging&gt;eclipse-test-plugin&lt;/packaging&gt; &lt...
2
2,297
ActivityUnitTestCase and Google Maps Android API v2
<p>I have an Android project that uses external library project for Google Maps Android API v2 (<code>google-play-services_lib</code>).</p> <p>I also have testing project, which tests my project form first point.</p> <pre><code>package third.task.android.test; import third.task.android.CompassActivity; import third....
2
1,327
CSS Flyout menu gets cut off by borders of its container in IE9
<p>I have a flyout menu that (of course) looks great in FF/Chrome, but in IE, it's choking. I have a complete example up on JS Fiddle: <a href="http://jsfiddle.net/JXw3S/4/" rel="nofollow">http://jsfiddle.net/JXw3S/4/</a></p> <p>If you hover over the second 2 menu items, there should be a flyout menu there. However,...
2
2,597
Add serial number to <tr> in ajax
<p>Iam using ajax to to dynamically generate table rows. I want to add serial number with every table row ie - td1. Everything else is working fine, please help me to add serial number with every tr.</p> <pre><code>&lt; script &gt; $(document).ready(function () { $('form').on('submit', function (e) { ...
2
1,554
nant task to create queue with c# code
<pre><code>&lt;project name="aa" default="createqueue" xmlns="http://nant.sf.net/release/0.85/nant.xsd"&gt; &lt;target name="createqueue"&gt; &lt;echo message="started" /&gt; &lt;script language="C#" &gt; &lt;references&gt; &lt;lib&gt; &lt;include name="C:\WINDOWS\Mic...
2
1,211
Anchor Imageview at view bottom on scrollview layout
<p>I have a scrollview layout with several linear layouts inside. The last view of the scrollview is an ImageView which I need to appear always at the bottom of the screen. The content of the view is dynamic, and sometimes the screen does need to be scrolled and sometimes not. If the screen needs to be scrolled, the Im...
2
2,274
WPF: initial visibility and template loading
<p>I have encountered an issue where the bindings are not properly set on one of my user controls if that control is not visible when it is initialized. I have duplicated the issue with the following dumbed-down controls:</p> <pre><code>public class Test3 : Control { static Test3() { De...
2
2,681
how to group multiple 3d objects as one using AR core
<p>here i am displaying multiple 3d object in scene (check below pic ) <a href="https://i.stack.imgur.com/pi51A.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pi51A.jpg" alt="enter image description here"></a></p> <p>and here i am having 3 3d model objects and now is it possible to to group the th...
2
1,541
Debian bumblebee problems
<p>I am on a clean minimal Debian Stretch install with just a couple of graphical packages installed. I instelled these: </p> <pre><code>sudo apt install xserver-xorg-core xinit bumblebee-nvidia primus primus-libs:i386 libgl1-nvidia-glx:i386 </code></pre> <p>But I could swap propietary <code>bumblebee-nvidia</code> w...
2
1,941
Submit a handsontable to a spring mvc3 controller - Content type 'application/x-www-form-urlencoded' not supported
<p>im new to spring mvc3 and am looking at a jquery handsontable example. </p> <p>here is my part of my jsp page that includes the form</p> <pre><code> &lt;form:form action="${pageContext.request.contextPath}/app/${application.id}/user/bulkImport" method="POST"&gt; &lt;div id="dataTable"&gt;&lt;/div&gt; ...
2
1,162
WCF not handle 1000 call per second
<p>I am working on a WCF Service that is hosted in Windows Service, using nettcpbinding.</p> <p>when i tried to perform load test on the service i built a simple client that call the service about 1000 call in second, the return from the service take about 2 to 8 seconds at first and after leaving the simple client ru...
2
1,588
Undefined strip for Hash with custom headers on Savon 2.1.0
<p>I'm having an exception when trying to build custom headers with Savon 2.1.0 for Authentication, here is the sample code to reproduce the issue, I'll appreciate any help on this subject.</p> <pre><code>require 'open-uri' require 'savon' headers = { 'IvansWSAuthentication' =&gt; { 'User' =&gt; 'my_user', ...
2
1,913