title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Parsing xml in eclipse
<p>I'm writing code in java and trying to parse the xml from this URL: <a href="https://maps.googleapis.com/maps/api/directions/xml?origin=30.606595,33.546753&amp;destination=30.657406,33.712234&amp;sensor=false" rel="nofollow">https://maps.googleapis.com/maps/api/directions/xml?origin=30.606595,33.546753&amp;destinati...
1
1,446
Valgrind Conditional jump or move depends on uninitialised value(s)
<p>I am writing a program to select words from a txt file. Compiling flags: -std=gnu99 The program has some segmentation faults that I am debugging with GDB and Valgrind. Valgrind flags: --track-origins=yes --leak-check=full --show-reachable=yes I have some question about Valgrind error messages</p> <p>First of all he...
1
12,040
Three.js Cross Origin Error Loading Related Collada File Texture
<p>I have a Collada file being loaded by three.js. The file has an associated texture named Texture_0.png. My Collada file is loaded via a Web service as it and the texture are stored in the same blob with REST Web Service access. CORS is enabled so the Collada file loads as expected, but since the Collada file is look...
1
1,246
Cost function training target versus accuracy desired goal
<p>When we train neural networks, we typically use gradient descent, which relies on a continuous, differentiable real-valued cost function. The final cost function might, for example, take the mean squared error. Or put another way, gradient descent implicitly assumes the end goal is <em>regression</em> - to minimize ...
1
1,142
How do I obtain Energy spectrum of a signal after FFT in Matlab?
<p>EDIT:</p> <hr> <p>I stumbled on this explanation to obtain the energy spectrum from an IEEE paper(Open Circuit Fault Diagnosis in 3 phase uncontrolled rectifiers, Rahiminejad, Diduch, Stevenson, Chang). "A recorded sample of the signal containing a number of samples equivalent to 4T is captured and its FFT is det...
1
1,105
Vqmod improve error logging, by adding the parent file name the error is referring too
<p>A default error logging using vqmod is as follows:</p> <pre><code>---------- Date: 2012-10-09 19:46:06 ~ IP : 127.0.0.1 ---------- REQUEST URI : /oc/ MOD DETAILS: modFile : C:\wamp\www\oc\vqmod\xml\templace.xml id : Template version : 1.5.2 - 1.5.2.1 vqmver : 1.0.8 author : templace....
1
12,437
ContentPlaceHolder in UpdatePanel
<p>I have very simple a ajax enabled asp .net website with masterpage. I have a menu in master page and the other pages appear in MainContent placeholder. I have the following code.But when I click to the menu items i can see that sometimes page postbacks. </p> <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="s...
1
1,232
How to store the result of each iteration of a for loop into an array in java
<p>Score Finder (100 Marks)</p> <p>Praveen is finding a job as a Computer Science teacher in school. He has been rejected many times by different schools but this time he is determined to get the job. He goes to the principal of the school St. Mary.</p> <p>The principal says that in his school there is Grading and ...
1
1,253
django-rest-auth error - save() takes 1 positional argument but 2 were given
<p>I'm using django-rest-auth with a custom user model, registration view and serializer. What I'm trying to achieve is an email login instead of username. The api view shows correctly but when I post, I get the error:</p> <pre><code>TypeError at /rest-auth/registration/ save() takes 1 positional argument but 2 were g...
1
1,150
"android.view.InflateException: Binary XML file Error inflating class" error in WebView
<p>My custom WebView class occurring error: <code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ates.aaa/com.example.ates.aaa.MainActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class com.example.ates.aaa.MyWebView</code></p> <p>MyWebView:</p> <pre><...
1
3,139
How to add my obj model to a three.js scene?
<p>Here is the link to the example <a href="http://threejs.org/examples/#misc_controls_pointerlock" rel="nofollow">http://threejs.org/examples/#misc_controls_pointerlock</a>. From what I can see in the source code the geometry is created in the code. How would you go about putting your own model in there?</p> <p>(Ve...
1
1,542
How to record audio from bluetooth headset (startBluetoothSco() )
<p>I am trying to record audio from bluetooth headset, startBluetoothSco() works different in different versions of android, Recording audio from bluetooth headset on android 4.2, 4.4, and 5.0. using "<strong><em>Nokia BH-310 and 9xxPlantronics</em></strong>" bluetooth headsets.</p> <p>SAMPLE_RATE = 8000;</p> <ol> <l...
1
5,198
<svg> element string to React Component
<p>Hi I am given a room object with an image id which I fetch and am returned the following </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;svg id="Ebene_1" style={{"...
1
1,648
Java 1.6 TLS 1.2 handshake_failure
<p>I'm trying to comunicate with an URI that uses TLS 1.2 using java jdk 1.6.30 and I tried to setup BouncyCastle provider on my system as TLS 1.2 is not suported by default on java jdk 1.6.30 I also instaled the certificate on my local machine but I'm receiving the following error:</p> <pre><code>Exception in thread ...
1
1,198
Prime Numbers in Java - Algorithms
<p>I have started learning to code in Java and decided I would use the <a href="http://projecteuler.net/" rel="nofollow">Project Euler</a> site to give me little tasks to try and complete with each bit of new coding I learn. So I came across <a href="https://projecteuler.net/problem=3" rel="nofollow">Problem 3</a>:</p>...
1
1,030
simplegui indentation error: SyntaxError: bad input (' ')
<p>I'm doing a mini-project on Coursera and I can run most parts of my code. However there's an error in the critical part about the game's <code>match or not</code> checking.</p> <pre><code># implementation of card game - Memory import simplegui import random # helper function to initialize globals def new_game(): ...
1
1,353
Runtime Error When getResponse using Android KSOAP
<p>My Android get a runtime error in SoapObject result = (SoapObject) envelope.getResponse(); The webservice is in my notebook (192.168.15.13), the notebook and the Android connected via LAN. I created the web service using Axis2 in Knopflerfish OSGi. Here is my code:</p> <pre><code>package test.msani.aksessoap; impo...
1
5,108
Making blog By codeigniter
<p>I am currently working on a codeigniter project, now i want a option "Blog" where user can post and comment. A post can contain images , tables, different fonts, similar case is for comments . I am novice in webdevelopment, only know php and it's one framework. Would you please anyone suggest me,what should i do ? ...
1
2,041
ConstraintLayout Problems using <include>
<p>I am trying to figure out why this does not work. I am adding nothing but two <code>&lt;include&gt;</code> sections in a <code>ConstraintLayout</code> and the layout is not following any of the constraints that I set up. I am trying to begin migrating to the use of <code>ConstraintLayout</code> as my go-to layout, b...
1
1,052
This application may be doing too much work in its main thread
<p>i am using the following piece of code to add an item to mysql database.When the button is clicked,it should begin the Async task that uploads data to the server.But when i run it i get the error message "This application may be doing too much work in its main thread" from LogCat.How can i fix this code problem,than...
1
4,527
Multiple classes in a single Java file, each with a main method - unexpected behavior?
<p>I have got the following code in a file called test.java which is located inside the directory C:\D\JavaProjects</p> <pre><code>class test { public static void main( String[] str ) { System.out.println( "Hello, World! from test" ); } } class Test { public static void...
1
1,161
comparing Gregorian calendar date values
<p>I am trying to set up part of a program that allows a person to view transactions of an account based on the date of the transaction. The user enters the month day and year to view transactions and that is compared to the date that is connected to a given transaction. I am having difficult writing the lines of code ...
1
1,070
WPF Tabcontrol (TabItem Content is not appearing)
<p>I implemented a TabControl with Closable TabItems in my App. For this, I am using a Collection which I fill with the SubMenuItems of MenuItem "Öffne", which are bound to ICommands in the MainViewModel. </p> <p>So if I click on MenuItem "Open Tab1", then the header of Tab 1 is created, but I can not see any content....
1
3,017
Elasticsearch error - No query registered for [query]
<p>I hope someone can help, I'm getting the following error when I try to query Elasticsearch</p> <pre><code>No query registered for [query] </code></pre> <p>The query I'm using is:</p> <pre><code>{ "query": { "bool": { "must": { "terms": { "facet_1": [ ...
1
1,472
Error: global.nativeTraceBeginSection is not a function
<p>I didnt change anything but suddenly I got this error in my xproject and the app got stuck and thing the when I do simulator through my Xcode is working but not with physical device. the full log is here:</p> <pre><code> 'Failed to print error: ', 'global.nativeTraceBeginSection is not a function. (In \'gl...
1
1,235
Python Flask how to get all records from html table in a request post
<p>I'm learning <code>Flask</code> and I want to do a simple invoice app, but I don't have any idea of how to return back on post all data row from a table with four fields <code>{code, description, price, quantity}</code> to be inserted or updated as the details to my DB table.</p> <p>This is just a code example.</p>...
1
1,440
When adding d3.behavior.zoom, the .on("zoom", zoom), zoom undefined
<p>I am having one hell of a time with learning how to zoom. To learn, I have been trying to make a dendrogram zoom. I am taking this jsfiddle example (<a href="http://jsfiddle.net/6kEpp/1/" rel="nofollow">http://jsfiddle.net/6kEpp/1/</a>) and trying to apply it to a dendrogram that does not have collapsing nodes. I to...
1
1,500
while loading react app error , polling-xhr.js:203 GET https://localhost:8001/socket.io/?EIO=4&transport=polling&t=NZJdzB8 net::ERR_CONNECTION_REFUSED
<p>I am beginner and trying to build a simple chat application with <code>socket.io</code> but when I am connecting <code>socket.io-client</code> with the backend it is reproducing the above mentioned error. I am unable to understand the meaning of the above error so please help me debug my code and understand the mean...
1
2,310
Error 488 Not acceptable here
<p>Hello I know there are already lot of topics about this error (or perhaps I don't have the same problem) but none of them answered my question, I am in a local network with blink on my PC and my asterisk server is on an external server hosted by ovh (so there is nat to do). I control the server via encrypted ssh ses...
1
4,025
GDI - Can I use the new Windows 10 Segoe UI Emoji colored font with DrawText?
<p>I'm creating a c++ project using Embarcadero RAD Studio (10.2 Tokyo starter) and the Windows GDI to draw text, via the DrawText() function.</p> <p>I recently saw that Windows 10 provides a new &quot;Segoe UI Emoji&quot; font, that potentially allows text functions to draw colored emojis. I found several examples usi...
1
2,168
sqlite3.OperationalError: near "show": syntax error
<p>I am building a table in <code>pyqt5</code> which will show the output of <code>SQL</code> in the table. First you have to type the command in command line and then press the button to update the table. </p> <p>Although, the commands like <code>insert into table</code> are working but when i type <code>show databas...
1
1,256
WPF DataGrid EnableColumnVirtualization="True" Raises NullReferenceException at DataGridCellsPanel.get_HasCorrectRealizedColumns()
<p>I have a WPF DataGrid with<code>EnableColumnVirtualization="True"</code>. The user control displays but as soon as you scroll or resize you'll receive a <code>NullReferenceException</code> at <code>DataGridCellsPanel.get_HasCorrectRealizedColumns()</code>. Setting <code>ColumnVirtualization="False"</code> corrects t...
1
1,669
Validation using GlobalKey<FormState> in individual steps of Flutter Stepper widget returns false even for correct input
<p>I am using stepper widget, and using a Form widget in each step of stepper with different form keys in order to validate each step ... the problem is that <code>this._formKey.currentState.validate()</code> always returns false even if the validation criteria fulfills for the current step ... following is the code th...
1
5,968
Razor: Auto-complete text box inside jqGrid, How to bind values?
<p>I'm developing a page where i need to show a jqGrid with inline editing mode. (Razor view, MVC3) The Grid will have no rows initially but an empty row to add items and hitting "enter" upon the last field should save the row data, and then empty 2nd row should get created.</p> <p>There are 4 columns in the Grid and ...
1
1,963
Overlaying divs in flexbox layout
<p>I created a website layout using flexbox. Here's my previous question on how to do so: <a href="https://stackoverflow.com/questions/36771182/html-100-height-with-multiple-inline-scrolling-divs">HTML 100% Height with multiple inline scrolling divs</a></p> <p>Now I would like to modify the right column (container <st...
1
3,174
How to deal with ggplot2 and overlapping labels on a discrete axis
<p>ggplot2 does not seem to have a built-in way of dealing with overplotting for text on <a href="https://stackoverflow.com/questions/11197554/how-to-jitter-text-to-avoid-overlap-in-a-ggplot2-scatterplot">scatter plots</a>. However, I have a different situation where the labels are those on a discrete axis and I'm wond...
1
1,414
Bootstrap 4 beta navbar-brand logo with img-fluid class does not resize when collapsed
<blockquote> <p>Using Bootstrap 4 beta. </p> </blockquote> <p>My responsive navbar contains a logo in the navbar-brand on the left side and an inline menu of links on the right side. When the viewport changes, the navbar collapses correctly, but the logo does not shrink as it should. This forces the hamburger to ...
1
2,672
Laravel Collection() vs collect()
<p>I have a series of database tables that store estimating information. I am trying to return all data from all database tables when certain perimeters are set.</p> <p>Collection</p> <pre><code> $estimateItems = new Collection(); $estimateItems = $estimateItems-&gt;merge( $this-&gt;getBoxVent() ); $es...
1
1,560
Exporting info from PS script to csv
<p>This is a powershell/AD/Exchange question....</p> <p>I'm running a script against a number of Users to check some of their attributes however I'm having trouble getting this to output to CSV. The script runs well and does exactly what I need it to do, the output on screen is fine, I'm just having trouble getting it...
1
2,416
Unable to access Office 365 using NodeJS/node-outlook
<p>I am trying to create a NodeJS daemon/service application for accessing Office 365 mail/contacts using node-outlook library. I was able to create an Office 365 trial subscription and register my application. So now I have access endpoint URL, Client ID and Client Secret for my app. Here is my code:</p> <pre><code>...
1
1,691
How to get value from a listview Asp.Net
<p>I have a listview in asp.net like this:</p> <pre><code>&lt;asp:ListView ID="lvLoads" DataKeyNames="BookingId" OnItemCommand="lvLoads_OnItemCommand" runat="server"&gt; &lt;EmptyDataTemplate&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;No data was retu...
1
1,677
Android: Don't understand strict error message
<p>I need help in understanding the following strict error message on my emulator which causes my app to stall (I am calling an activity) and the emulator to restart:</p> <pre><code>05-31 13:37:59.080 1298-1804/system_process E/SharedPreferencesImpl﹕ Couldn't create directory for SharedPreferences file shared_prefs...
1
2,918
Android MotionLayout Transition Listener not called
<p>I'm trying to make a slide animation. For it I use a MotionLayout with a MotionScene containing two ConstraintSet.</p> <p>The slide animation works fine. However I get an error in the LogCat:</p> <blockquote> <p>E/MotionLayout: WARNING NO app:layoutDescription tag</p> </blockquote> <p>view_slider.xml</p> <pre><code>...
1
2,019
Logback SyslogAppender stacktrace logging prefix
<p>We have recently switched from Log4J to Logback. Logging seems to work well except stack traces in SyslogAppender. They are prefixed just like remaining log messages.</p> <p>Is there any way how to disable this prefix and ensure they will be printed just like in Log4J SyslogAppender? Thanks in advance. </p> <p>Cur...
1
1,875
React Builder tool won't set public url correctly
<p>I am trying to build my react app with react's build tool.</p> <pre><code>npm run build </code></pre> <p>But when I open the index.html file in the build folder, I can't see anything except a blank page. That's because react builder sets script and css paths wrong.</p> <p><strong>index.html</strong></p> <pre><co...
1
1,394
Create editable powershell GUI for CSV data
<p>GOAL: Create a GUI form populated with CSV data, allow the user to edit the data, then save the data in an array for further manipulation.</p> <p>NOTE: Using PowerShell Studio to generate a form with data from the CSV</p> <p>CURRENT CODE: - Calling code ($path is passed from the calling form):</p> <pre><code>$r...
1
2,202
Collapsed Bootstrap 3 Navbar goes out of bounds (dropdowns)
<p>I have a normal Bootstrap 3 fixed navbar in the top of my website which is really nice. The problem I'm facing and discovered the other day was that when the navbar collapses for being accessible in smaller devices, the dropdown items are going off the area designated for the navbar. The picture below explains it be...
1
4,713
Reading multiple signatures from executable file
<p>I am trying to write code that reads signatures (certificates) from DLLs or and EXEs. Most DLLs or EXEs have only one signature, and my code reads all certificates associated with this signature correctly. More specifically it reads signing cert, it's issuer (not root), countersigning cert (with timestamp) and its i...
1
1,081
Simple replace with user input in JavaScript
<p>I'm trying to make a 'find and replace' function that takes both values (replaced and replacement) from <code>Form</code> element and then replaces all occurances of 'replaced' inside DIV. After that I want it to display an alert with a replaced words count. Tried to get there with the <code>for</code> loop, but som...
1
1,282
Save localstorage data to server using PHP
<p>I'm trying to implement a "save later" functionality in jquery using localstorage. the idea is saving every form event in localstorage and using a button to sync them and save to the server. </p> <p>I manage to save form data to localstorage and retrieve all the localstorage saved. Currently i'm struggling on how i...
1
1,180
Fetched Properties - Predicate
<p>I have a question about using fetched properties inside a NSPredicate (see below 'My question'). It's not about the predicate to get the fetched property. For clarification and for others, which may also face this problem I tried to make a small sample project.</p> <h1>SAMPLE PROJECT</h1> <p>The need to use Fetche...
1
1,478
Apps aren't loaded yet. with signals
<p>I have an app not ready style error when i use signal. I think this is due to the User auth in the profile model , from what i've see using google there is some issue with the user auth.</p> <p>i think that the error is here :</p> <pre><code>class Profile_User(models.Model): user = models.OneToOneField(User, n...
1
2,489
Tensorflow-GPU Installation ImportError: DLL load failed: The specified module could not be found
<p>Ok i know this might be already answered question but i have tried almost every trick suggested on stackoverflow to install tensorflow-gpu and suggested on official docs but with no luck i am getting the same error. Firstly i have tried <a href="https://towardsdatascience.com/setup-an-environment-for-machine-learni...
1
1,600
Extracting array from response string
<p>I have a response like below from node how do I extract it to be as array in java</p> <pre><code>[ { "userName":"Steve", "date":"Tue Aug 13 18:44:23 GMT+05:30 2013", "message":"Good morning sir." } ] </code></pre> <p>Note : finally did it guys, sorry for wasting you guys time, see my last c...
1
1,124
Problem handling an exception in GUI
<p>Regarding the following code - I'm trying to get it throw and exception if anything other than a number is entered into 'cost' when adding a book, as you can see I've gotten someway towards doing so but I just want to display a message dialog stating "enter a number please", instead of an input dialog appearing, whe...
1
2,100
ASP.NET GridView DataSource with LINQ and Joins
<p>I'm trying to use LINQ to bind the data in my GridView.</p> <p>In my Service.cs file I have a method for fetching the entries for a specific logged in user:</p> <pre><code>public List&lt;tidsregistrering&gt; ShowTidregistreringer() { var CurrentMedarbejder = FindUser(HttpContext.Current.Session["email"].ToStri...
1
1,902
Using log4j2 and logback
<p>I have an app using Log4j2 and so far I have no issues. This morning, I added a 3rd party library which , in turn, uses logback for logging.</p> <p>Now I see this error:</p> <pre><code>Error loading configuration Cause: org.apache.logging.slf4j.Log4jLoggerFactory cannot be cast to ch.qos.logback.classic.LoggerCon...
1
1,287
Modal window (popup) alert show on error field using angularJs
<p>i created sample program for business validation, here error message showing , but its not showing particular error field , how to solve this issue, </p> <p>Thanks in advance .................................................................</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="...
1
1,358
Hibernate many-to-many data retrieval, via query
<p>Please help me, I think there is something that I am not doing correct. I have <code>User</code> and <code>Contact</code>, that are in <code>Many-to-Many</code> relation.</p> <p>User.java:</p> <pre><code>public class User { private Integer userID; private String userLoginEmail; private Set&lt;Contac...
1
6,917
Hibernate issue java.lang.Boolean cannot be cast to java.lang.String Using JDK 1.7
<p>I am facing issue with Hibernate. </p> <p>Using Hibernate 3.2.6 and JDK 1.7.0_21</p> <p><strong>Is this issue coming due to JDK compatibility with Hibernate version?</strong></p> <p>This issue is random. I still unable to find steps to reproduce. </p> <pre><code>2014-07-14 06:09:10,661 [DEBUG] EventExpenseAreaSe...
1
1,586
How to retrieve multiple check box value using explode?
<p>I have several check boxes and when the multiple check box is clicked &amp; form is submitted it goes in the db search for the corresponding result but it is giving me notice :</p> <pre><code>Warning: explode() expects parameter 2 to be string, array given in C:\xampp\htdocs\enoticeboard\home.php on line 68 </code>...
1
2,684
testing REST web services with arquillian
<p>We would like to test our REST APIs using arquillian.</p> <p>We use glassfish for production and arquillian.</p> <p>We already have arquillian tests for some JMS queue we expose, and that works fine, so we at least have some basics right. When we started using that setup for REST testing, at the first HTTP GET we ...
1
2,033
Data is not saved in DB when using Transaction annotation in JUnit test
<p>Colleagues, I can not solve a problem with a transactions in Spring more than week. I have created quite similar post (<a href="https://stackoverflow.com/questions/39317601/why-data-wasnt-saved-when-i-use-transactional-annotation">Why data wasn&#39;t saved when I use @Transactional annotation?</a>), but could't to ...
1
5,731
how to add border on listview?
<p>below is my code which display listview but problem is when i focus listview border will remove see this image border will show <a href="http://imgur.com/BZVqG7w" rel="nofollow">http://imgur.com/BZVqG7w</a> when i focus border will remove <a href="http://imgur.com/u6rBziB" rel="nofollow">http://imgur.com/u6rBziB...
1
1,994
ClassCastException when persisting enum via Hibernate
<p>I've now wasted several hours trying to get this to work, but Hibernate still keeps me wondering what's going on there inside.<br> Here's what I want to do:<br> Simply persist a <code>List</code> of <code>enum</code>s via <code>@Enumerated</code> which looks like this:</p> <pre><code>@LazyCollection(LazyCollectionO...
1
1,397
WCF Restful Web Service Endpoint exposed but methods all return http 404 not found c#
<p>I have written my first Web Service and when I test run it from visual studio on my local development machine everything works as expected. I went to the clients to deploy the service and found that after deployment I could reach the endpoint but that all my methods return HTTP 404 not found.</p> <p>The Web Service...
1
4,956
Getting 'E/TokenRequestor: You have wrong OAuth2 related configurations. Detailed error: INVALID_AUDIENCE' even after providing accurate client IDs
<p>I have provided GoogleSignIn option in my app.</p> <p>Here's my code:</p> <pre><code>public class SignupActivity extends AppCompatActivity { private static final int RC_SIGN_IN = 1; GoogleApiClient mGoogleApiClient; FirebaseAuth mAuth; TextView appName; ProgressDialog signinProgressDialog; ...
1
2,901
Format Column Headers during Pipe Delimited Concatenation (Oracle SQL)
<p><strong>Overview:</strong> I am tasked with providing a data extract from an Oracle database as a pipe-delimited output text file. I will be using SQLPlus to do this on the server where the data lives. Ordinarily, this task is not beyond my experience, but this time, the business desires column headers to be present...
1
1,145
AJAX to open Modal in CodeIgniter
<p>I'm creating a "single page" app where I want to load different views in my dashboard with AJAX. I'm using jQuery for the AJAX calls. I've created contollers foreach of my views (is this considered to be a bad practice? Will it be better to just make one controller with multiple methods for loading all of my views?)...
1
2,922
Fragment leaks when exit form activity
<p>I cannot figure out how to plug the leakage in my PlabackActivity</p> <p>here is important part of PlaybackActivity:</p> <pre><code> class PlaybackActivity : BaseActivity() { private var playbackFragment: PlaybackFragment? = null public override fun onCreate(savedInstanceState: Bundle?) { sup...
1
3,962
PL/SQL Fetching Next and Previous records with EXEC_SQL Oracle forms 6i
<p>I am using oracle forms 6i and i am have created a dynamic sql using EXEC_SQL. I am using a single block record however i am unable to navigate between records when i say next_record i am not moving. No errors just the record is not going to the next record;</p> <p>This code fires every time the user clicks on the ...
1
1,871
Weird collision bug in Unity 2d game
<p><a href="https://github.com/gioragutt/GameOfThrowsUnity/tree/master/GameOfThrows/Assets/Scripts" rel="nofollow noreferrer">Github Repository (Scripts folder, has all code in .cs files)</a></p> <p>I have this weird collision bug in unity, here's a gif of it:</p> <p><a href="https://i.stack.imgur.com/02aTe.gif" rel=...
1
3,312
Upload Multiple images using Volley Library in android
<p>I have tried to upload multiple images using <code>volley library</code> in a single <code>web service</code>. but, only the last image is getting uploaded. Those previous images are getting replaced with the null. I want to know is it possible with volley library, if not can you plz suggest me other libraries. I'm ...
1
1,620
when ever I try to run my Flutter program, it gets stuck at “Running Gradle task 'assembleDebug”
<p>whenever I try to run in on an Emulator or on a real device, it get stuck at <code>“Running Gradle task 'assembleDebug”</code> and the entire computer just freezes and get stuck, and the only way out is to hard reboot it.</p> <p>I'm using an Asus laptop ( windows 10 ), with 16GB ram.</p> <p><code>flutter --version...
1
1,192
SAX XML Parser throwing Null Pointer Exception
<p>I'm trying to write an SAX XML Parser in Java and I keep getting a null pointer exception that I can't seem to figure out how to fix. Here is the stack trace:</p> <pre><code>Exception in thread "main" java.lang.NullPointerException at SAXParserExample.endElement(SAXParserExample.java:91) at com.sun.org.apac...
1
3,202
WP7 LongListSelector ItemsSource Databinding Issue
<p>I am trying to implement the LongListSelector in a new WP7 application. The LongListSelector exists in a UserControl bound to an MVVMLight view model. I get the following error when I try to load the UserControl:</p> <p>System.ArgumentException was unhandled Message=The parameter is incorrect. StackTrace: ...
1
2,796
Using React Hooks, why are my event handlers firing with the incorrect state?
<p>I'm trying to create a copy of this spinning <code>div</code> example using react hooks. <a href="https://codesandbox.io/s/XDjY28XoV" rel="noreferrer">https://codesandbox.io/s/XDjY28XoV</a></p> <p>Here's my code so far</p> <pre><code>import React, { useState, useEffect, useCallback } from 'react'; const App = () ...
1
1,374
How to retrieve current position(latitude & longitude) on Kotlin?
<p>I want to retrieve the current position of my phone on Kotlin.</p> <p>This is my main code (taken from <a href="https://androidteachers.com/kotlin-for-android/get-location-in-android-with-kotlin" rel="nofollow noreferrer">https://androidteachers.com/kotlin-for-android/get-location-in-android-with-kotlin</a>):</p> ...
1
2,663
What happens if <base href...> is set with a double slash?
<p>I like to understand how to use a <code>&lt;base href="" /&gt;</code> value for my web crawler, so I tested several combinations with major browsers and finally found something with double slashes I don't understand.</p> <p>If you don't like to read everything jump to the test results of <strong>D</strong> and <str...
1
1,636
C# CLR User Defined Function SqlBytes - InvalidOperationException
<p><br> I have been writing a sql clr udf that is called from a stored procedure to save an unknown file type (jpg, doc, pdf, etc) to the file system. The UFD accepts a param of type SqlBytes that is getting passed a varbinary(max) from the calling stored proc (this is the file blob). The problem is that in the contex...
1
1,948
Error 405 Request method 'POST' not supported Spring Security
<p>I am trying to implement a simple login page with Spring security. Whatever I do, I always get an error <code>Error 405 Request method 'POST' not supported</code> when submitting form input. <br><br><strong>Related files:</strong><br><br> SecurityConfig.java:</p> <pre><code>@Configuration @EnableWebSecurity public ...
1
1,445
Running ddd on Mac OS X
<p>I tried to install and run ddd using the following commands:</p> <pre><code>brew install libtool brew link lesstif brew install ddd </code></pre> <p>And received the following error message when trying to run ddd:</p> <pre><code>cd@new-host:~$ ddd dyld: Library not loaded: /opt/X11/lib/libSM.6.dylib Referenced fr...
1
1,704
Vue CLI 3 vue.config.js vs webpack.config.js for plugins
<p>I'm using Vue CLI 3, and I need to add the <a href="https://webpack.js.org/plugins/terser-webpack-plugin/" rel="noreferrer">Terser Webpack Plugin</a> for removing <em>console.log</em> and <em>comments</em> from the code. This isn't working with my current setup - logs and comments are still in the build. My producti...
1
1,565
Conflicting Runtime Libraries in MSVC/VS2012
<p>I know: <a href="https://stackoverflow.com/questions/3007312/resolving-lnk4098-defaultlib-msvcrt-conflicts-with">this has already been addressed</a>, but after reading as much as I could about this I still haven't been able to figure out why I haven't been able to fix it, or <em>what</em> to fix even.</p> <p>You se...
1
1,545
Kivy : How to use on_key_down and on_key_up keyboard event in Tree View?
<p>I am using <code>python-2.7</code> and <code>kivy-1.10.0</code>.<br/> When i click on <code>name</code> TextInput then Tree View shows. I want the label to be selected with the <code>up</code> and <code>down</code> keys, and when the <code>enter</code> key is pressed the text is copied the selected text is copied t...
1
2,307
Connecting to existing Google Chromecast Session from Android (for generic remote control)
<p>I am creating a generic Chromecast remote control app. Most of the guts of the app are already created and I've managed to get Chromecast volume control working (by connecting to a Chromecast device along side another app that is casting - YouTube for example).</p> <p>What I've having difficult with is performing o...
1
1,876
How to deploy EJB project and JPA project in EAR project
<p>I create 2 projects one is EJB and one is JPA. JPA project define entities classes, and persistent.xml. EBJ project import JPA project, I defined EJB session bean to connect database by entity manager. please refer below image for details. But when running on Jboss 7, error happend.</p> <p><img src="https://i.stack...
1
2,003
Javascript - Check if cookie is set
<p>Hi everyone i want to redirect a user to another page if the cookie is set by clicking the button.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a href="" onClick="SetCookie('pecCookie','dit is een coo...
1
1,030
Parse Google Geocode JSON
<p>I have this JSON from Google GeoCode and I need to decode this and just get the administrative_area_level_2 and postal_code out of this then I am done. I can parse the results but after that I am not sure how to get the reset of the results. I tried to format this but it was not working. If you follow the link this ...
1
9,075
Android: Create An Intent IF a condition is met?
<p>Evening</p> <p>Currently my system allows the user to enter their username and password, if these are entered correctly, their role will be selected from the database and displayed in a textview. </p> <p>However I'm also attempting to allow the user to move to the menu page if their login details are correct. My i...
1
1,200
how to remove white space under Bootstrap 4 jumbotron
<p>I am having an issue with the jumbotron, white space appear under it for some reason i don't know if its because of my code or a mistake that i made some where . i have been at it for two days now .i copy the code for the jumbotron on the bootstrap 4 website. i could use some help on this . As you can see by the pi...
1
1,868
error:- service class has no zero argument constructor
<p>I am new to android. I want to use service inside my activity for fetching the JSON data after interval of time. My service class is a inner class of my record class. I made an empty constructor of my service class and tried different approaches but every time I get into an error. Can anyone please guide me on this ...
1
3,545
Spring Oauth2 Authorization server User Info Endpoint with multiple grant_type not working
<p>I've authorization server which has inbuilt DB Authentication manager. Here are the configurations.</p> <p><strong>AuthConfig.java</strong></p> <pre class="lang-java prettyprint-override"><code>@Configuration @EnableAuthorizationServer public class AuthConfig extends AuthorizationServerConfigurerAdapter { @Autow...
1
3,113
Ajax Call to Server and Passing Data back to Charts.js
<p>Ok, I've read practically every post on here about ajax,php and everything that I could find. What I'm trying to do is </p> <p>Take an array that I've pulled from my database and place it into a chart.js script. I know I'm pulling in the data correctly after checking it in firebug. It's passing through the header j...
1
1,743
Django-Postgres: length of CharField as primary key
<p>In my Django model there is a CharField as primary key with 250 characters as <code>max_length</code> and a <code>ManyToManyField</code>:</p> <pre><code>class GenericRoom(models.Model): key = models.CharField(primary_key=True, max_length=250) name = models.CharField(max_length=500, default='') extension...
1
2,601
Can't contact LDAP server on ldap_bind($con, $rdn, $pwd)
<p>for a while now i'm fiddling around with an LDAP connection to an Active Directory Server for authentication. I tried this the PHP native way and also using Zend Framework. Even though the <code>ldap_connect()</code> works fine, as soon as i bind something, the ldapConnection appears to break down. This is the scrip...
1
1,056
Woocommerce apply discount to cart's total price with ajax
<p><strong>My Goal :</strong> Apply a 10% discount on total cart's price using AJAX.</p> <p><strong>The context :</strong> This discount must be applied only for specific users coming from a given website. The idea is to get their membership number in an input field I added in cart's page. With an API I will check this...
1
3,210
Android crash on getActiveNetworkInfo()
<p>The error message says</p> <blockquote> <p>Neither user 10093 nor current process has android.permission.ACCESS_NETWORK_STATE</p> </blockquote> <p>And I have added "android.permission.ACCESS_NETWORK_STATE" to the manifest:</p> <blockquote> <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EX...
1
1,510
Using NSAlerts and NSNotifications with Reachability 2.2
<p>I have implemented Apple's Reachability 2.2 class in a new iOS 4.2 project. I simply want an alert view to appear when the device loses network connectivity. ( And thence comply with the interface usability requirement for the App Store. ) I used <a href="https://stackoverflow.com/questions/1083701/how-to-check-for-...
1
2,813
DataSet & NetworkStream in C#
<p>I want to sent DataTable from Server to Client using XML file in C#. I have used following code at server side</p> <pre><code>DataSet ds = new DataSet(); ds.WriteXml(nw, XmlWriteMode.WriteSchema); </code></pre> <p>where nw is NetworkStream at Server</p> <p>and following code is at Client side</p> <pre><code>Data...
1
1,485