title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How can I delete a string from a list using a function?
<p>I've tried and searched for this problem. I receive '3221225477' as a return value if I try to delete a string from the list. </p> <p>I've already tried using different approaches such as changing 'return value[];' in the const char* del(ListNodePtr *strPtr, value[]) function to 'return *value;' It would be much ap...
3
2,584
Jersey ignoring Jackson annotations
<p>I'm working on a Java project that uses Jersey and Jackson to convert Java objects to JSON. A few days ago I noticed that using <code>com.fasterxml.jackson.annotation.JsonProperty</code>to try to change the name of a JSON property had no effect. This issue wasn't that big so I ignored it. Today I created a JPA relat...
3
12,100
NestedScrollView with RecyclerView
<pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" an...
3
4,884
Android Studio okhttp3 response with empty arraylist
<p>I am successfully using okhttp to GET a json from an API. However the response is supposed to give me 4 things: status, links, schema, and a array (or arraylist) called "items" Here's part of the sample response where I cut off for repetition:</p> <pre><code>{ "status": 200, "links": { "self": "http://loc...
3
1,055
jQuery Code: Starting from Parent to Child; not from Child to Parent
<p>I have the following HTML table. In the last column of each row there are three buttons. When view button is clicked, I need to get the consumer ID of the corresponding row. I have the following jQuery code. <a href="http://jsfiddle.net/Lijo/nUbB2/" rel="nofollow">http://jsfiddle.net/Lijo/nUbB2/</a></p> <p>1) Is t...
3
2,933
How to integrate Chartboost rewarded video with MoPub mediation for iOS
<p>I make the game using Cocos2d-x ver. 3.4. I make the rewarded video with MoPub mediation in this game. I followed this <a href="https://github.com/mopub/mopub-ios-sdk/wiki/Rewarded-Video-Integration" rel="nofollow">guide</a> on official github wiki.<br> So, first I incorporated the MoPub iOS SDK and Chartboost SDK i...
3
1,364
Why are all of my booleans setting off as true?
<p>I tested my code out by printing the values out to see why it did not output the value I should be getting. And I found out all of my booleans that were for the string ride were set off as true and I can not seem to get a clue why. I have tried searching the internet up yet I could not find anything. My understandin...
3
2,328
How do I specify a general GARCH-M model using the rugarch package in R
<p>I am currently trying to fit a <code>GARCH-M</code> model for option pricing as proposed by Duan (1995). </p> <p>Since this is my first post I cannot post pictures of the equation using the Google Chart API so I tried to create some HTML code below that displays the equations.</p> <p>The <code>GARCH dynamics</code...
3
1,172
condition of for-loop only takes effect after hitting breakpoint
<p>I'm trying to solve a problem from hackerrank.</p> <p>At the moment my code is bad and wrong, but that's not the point of this question. The problem is the <code>for</code> loop, whose condition doesn't always seem to work. Here's the code:</p> <pre><code>#include &lt;cassert&gt; #include &lt;iostream&gt; #include...
3
1,490
Difficulties Centralising price tables and a button
<p>I'm finding it difficult centralise these price tables and also centralise the Enquiries button under the price tables without affecting the footer. I Tried couple of things but it ended overlaying the content on the footer</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-bab...
3
2,094
ClassNotFoundException when doing Facebook login with Android Parse library
<p>I am getting an exception when trying to log in using Facebook with the Parse library.</p> <p>In my application's onCreate, I am calling:</p> <pre><code>ParseFacebookUtils.initialize(getApplicationContext()); </code></pre> <p>I am calling facebook login as follows:</p> <pre><code>List&lt;String&gt; permissions =...
3
2,295
Mail Send Using PHP Script
<pre><code>&lt;?php if(isset($_POST['email'])) { // CHANGE THE TWO LINES BELOW $email_to = "mail@domain.com"; $email_subject = "Website Enquiry"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; ...
3
1,127
How to add an external .dll on JavaFX native library
<p>I would like help in understanding how I can add an external DLL to my native .exe compilation using <code>com.zenjava</code>. The problem is that I need <code>win32com.dll</code> as one of my dependencies to run my project.</p> <p>I've tried this <a href="https://stackoverflow.com/questions/1001774/managing-dll-de...
3
3,277
Overriden onStop() and onRestart() call correctly but will not do following code
<p>I am currently working on a Game in Android Studio that combines Java and Android. </p> <p>My problem: When I close the App, wait for a few seconds and return to the App, it still runs in the background. This causes Game Objects to continue moving which always results in Game Over obviously.</p> <p>I implemented a...
3
1,244
'Friend' has no attribute 'META' error unknown reason - django
<p>I have a view and template that create queries that search through objects in the database. I also have lists that will create a list of usernames based on different querysets. I pass the searched queryset and two lists which are pending and friends. I then check to see if the usernames in the search query are loca...
3
1,267
Struct Alignment with PyOpenCL
<p><strong>update: the <code>int4</code> in my kernel was wrong.</strong></p> <p>I am using pyopencl but am unable to get struct alignment to work correctly. In the code below, which calls the kernel twice, the <code>b</code> value is returned correctly (as 1), but the <code>c</code> value has some "random" value.</p...
3
1,600
TextField in Modal
<p>If we use listview the textfield will just go up when the keyboard appear but in modal it won't. sorry I don't know how to properly explain it I will just show you with image.</p> <blockquote> <p>modal code</p> </blockquote> <pre><code>showModalBottomSheet( shape: RoundedRectangleBorder( borderRadius: Bord...
3
1,151
Error parsing list of products in dart flutter using http
<p>I have an api from where i want to parse some data , i have a plugin that convert data into dart model class , but whenever i try to get the response , it keeps showing an error if anyone could help , will be appreciated</p> <ul> <li>This is the api link</li> </ul> <pre><code> https://fakestoreapi.com/products/categ...
3
2,027
How can I get the ::after and ::before to be equal in height and align equally?
<p>I have a link effect.</p> <p>I added the red so you can see the left and right borders (the ::before and ::after) are not positioned to both touch the red border equally. The border on the right runs out a little bit. It's probably more apparent if you look at it in full screen.</p> <p>On the other hand the hover ef...
3
1,227
error when edditing big text file using awk
<p>I have a text file like the following small example:</p> <pre><code>chr1 HAVANA transcript 12010 13670 . + . gene_id "ENSG00000223972.4"; transcript_id "ENST00000450305.2"; gene_type "pseudogene"; gene_status "KNOWN"; gene_name "DDX11L1"; tr anscript_type "transcribed_unprocessed_pseudogene"; transcr...
3
1,800
Regex over changing conditions in email Python
<p>I have employee-client email exchanges that need client message bodies pulled, to be consumed for future sentiment analysis.</p> <p>These emails were generated using different email applications, so there's not a single regex rule I can use to separate the emails, and they don't all conform to the form used by the ...
3
1,528
Attempting to destruct a HashMap Entry leads to "cannot move out of dereference of `RefMut (...) which does not implement the `Copy` trait"
<p>Consider this code:</p> <pre><code>use std::io::BufRead; use std::io::{self}; use flate2::write::GzEncoder; use flate2::Compression; use std::fs::File; use std::io::Write; use std::cell::RefCell; use std::collections::hash_map::Entry; use std::collections::HashMap; fn main() -&gt; io::Result&lt;()&gt; { let ...
3
1,067
Uninitialized frameSize when opening VideoWriter in OpenCV
<p>I'm developing an app to stream a camera over internet by using OpenCV and GStreamer.</p> <p>I've succesfully done it using Python, and now I'm trying to develop the same app in C++.</p> <p>I have a problem with the VideoWriter class. It throws an error because there is an assertion to check the frameSize (cap_gstre...
3
1,609
"Virtualhost" for Tomcat8
<p>I am used to administering Apache web servers and am getting stuck on something with Tomcat 8. I installed Guacamole on my computer, I copied the .war file to <code>/var/lib/tomcat8/webapps</code> which automatically was unpacked, but I couldn't access it on port <code>:8080</code>. I saw the files in <code>/var/lib...
3
1,250
Making interactive menu with table method
<p>I have written some codes of html &amp; have given style to it. it's same page of bootstrap home page. But just for my practice. Everything is fine but I cannot make top menu navigation same as bootstrap. I mean when I hover over the menu a background should appear behind that menu. it should be of different size fo...
3
9,170
React Native Dynamically created components not rendering on first click
<p>I'm trying to create a list by dynamically adding the list items to an array in the <code>state</code> and then using the <code>map</code> operator to iterate over them. However, the new list items are only rendered after the second click on the button that handles the <code>setState</code> method. Any pointers on r...
3
3,207
Javascript working on jsfiddle but not wordpress site?
<p>Link of site: <a href="http://34.246.124.138/test/" rel="nofollow noreferrer">http://34.246.124.138/test/</a> </p> <p>The code works on JSfiddle but it's not working on my site. Is this a problem with my code or a theme I've used on my wordpress that is stopping it from working? I also have WP bakery installed wit...
3
3,839
ValueError: Error when checking target: expected dense_17 to have shape (None, 1) but got array with shape (8, 4800000)
<p>Hi everyone I must implement a cnn + lstm model and I've this error:</p> <pre><code>ValueError: Error when checking target: expected dense_17 to have shape (None, 1) but got array with shape (8, 4800000) </code></pre> <p>this is my code with:</p> <pre><code>X_train.shape = (8, 4800000, 1) y_train_arousal.shape=(8...
3
1,224
Request to Jetty Jersey app terminated after 1 minute
<p>I have a java jetty + jersey app that has some rest endpoints that return streaming output. A request may run several minutes. When I run it locally, long-running requests work fine. When I deploy the app to a Google Compute Engine VM, the requests always fail after 30s:</p> <pre><code>$ time curl -s 'https://[red...
3
8,756
libcurl c++ segfault on POSTing JSON
<p>Disclaimer: I am not asking anyone to debug this code, I am more interested to know if anyone sees that I am using libcurl improperly, because as far as I can tell, I am following the documentation exactly.</p> <p>The problem is in the MakeRequest() method. At curl_easy_perform(), I get std output of</p> <pre><cod...
3
2,732
I would like to intercept the MS Teams notifications about poor network quality, during calls
<p>In order to diagnose a network condition I am trying to intercept (at least on Windows) the notifications about poor network quality that Teams pops-up sometimes, during a call. For testing, I am using &quot;clumsy&quot;, in order to generate iffiness in the network, while in a teams audiovideo call to my phone. I w...
3
1,535
Airflow-Docker: PermissionError: [Errno 13] Permission denied: '<project directory>'
<p>Trying to run airflow using docker in my windows laptop. But I'm having an error (as seen below). The error displaying in the log of my dag is saying that there is a: -- PermissionError: [Errno 13] Permission denied: '../spotify_project'.</p> <p>Note: also attached is the structure of my project file</p> <p>What is ...
3
2,296
Java - Read excel, modify then save to a new file
<p>I have it currently working so that my application is generating the content, then saving the information into an excel file, this is working as expected using the below code</p> <pre><code>public void writeExcel(ClassManager cm, String fn, ErrorManager em) throws FileNotFoundException, IOException { // Get clas...
3
1,025
SVG to Image export performance issues (using canvg / XMLSerializer / getComputedStyle)
<p>I am using canvg to convert a chart svg to an image. We have the issue that by default not all CSS attributes are applied to the image so we ended up using getComputedStyle in a loop.</p> <p>This is a total mess under performance aspects if we have 10 or even 20 charts to be exported at once.</p> <p><div class="sn...
3
5,551
Porting permutation function from Python to C++
<p>I've been using an algorithm from a Stack Overflow answer: <a href="https://stackoverflow.com/a/9650593/4771889">https://stackoverflow.com/a/9650593/4771889</a> Namely the permute2() function.</p> <p>I've changed things a little for my purposes, and it generates the correct data that I need.</p> <p>Here is my Pyth...
3
2,165
$.mobile.changePage not changing page?
<p>here is HTML code:</p> <pre><code> &lt;div data-role="page" id="mainMenu"&gt; &lt;div data-role="header"&gt; &lt;/div&gt; &lt;div data-role="content"&gt; &lt;ul data-role="listview" data-inset="true" style="margin-top:50%; margin-left:20%;"&gt; &lt;li id...
3
1,324
django add pdf to a request value
<p>in the following request I receive a total of 10 pdfs which I must combine in one document once this is done I have to upload it to the client model which stores the files in aws s3, once I pass the file with all the pdfs together it gives me the following error</p> <pre><code>{ &quot;error&quot;: true, &quo...
3
2,150
ring anti-forgery token is unbound in rendered html
<p>I need a CSRF token in order for my websockets client to connect to my server. In order to get the token to my client, I embed the token from <code>ring.middleware.anti-forgery/*anti-forgery-token*</code> in a <code>&lt;meta&gt;</code> tag, like so:</p> <pre><code>(defn head [] [:head ... (let [csrf-token (f...
3
1,072
how to handle WebException in ASP.Net Web Application using c#?
<p>I'm creating my own weather api by calling third party api openweather. I don't know how to handle WebException which occurs when I provide city which doesn't exist as an input, it gives me status code 404 from openweatherapi and I don't know how to handle that error my application always crashes due to unhandled ex...
3
1,976
How to disable hover on bootstrap 4 dropdown
<p>I have a page with a data grid, and in that grid every row has a bootstrap dropdown button/menu in it with actions you can perform against that data row. The problem is, the menu opens on hover, and I want it to be on click only (so the user doesn't accidentally open the menu on the wrong row).</p> <p>Is there a way...
3
1,475
Grid Items in RecyclerView not appearing properly
<p>For some reason, the contents of my RecyclerView (i.e. letters from a <code>String</code> array) do not appear as excepted. There should be 6 letters that appear but only 2 of them do. I already used <code>android:layout_height="wrap_content"</code> for both the RecyclerView itself and its parent but that still hasn...
3
2,478
App crashing from listview implementaion
<p>I recently tried to create a custom row for listview. I tried to do it off a tutorial but it crashes when I tried to change it so the rows work with what I want my app to display. Error readout is at the bottom. </p> <p>Also not related to the problem but I was curious if I am able to use imageId as my holder in...
3
9,125
Flashlight with strobe: strobe doesn’t turn OFF
<p>I am trying to create a flashlight app with a strobe effect. My goal is that I can turn ON/OFF the flashlight with a switch Btn and increase the strobe frequency with a seekbar. If the seekbar value is 0 and the switch Btn is ON the flashlight should be ON (without any strobe). But right now it is still blinking (st...
3
1,288
How would I change the code to allow for words from a text file to populate the tree instead of hardcoding words?
<p>I'm creating a Trie that reads from a "Dictonary.txt" and adds it to the tree. I would like to ask how to code a function that reads a text file and adds it to the tree. I haven't really found any tutorials that I could understand how to achieve this. </p> <p>I hope you can help me. I would also be happy with some ...
3
1,292
Riak mapreduce error
<p>I am using the basic sample Riak sample provided.</p> <pre><code>5&gt; ReFun = fun(O, _, Re) -&gt; case re:run(riak_object:get_value(O), Re, [global]) of 5&gt; {match, Matches} -&gt; [{riak_object:key(O), length(Matches)}]; 5&gt; nomatch -&gt; [{riak_object:key(O), 0}] 5&gt; end end. #Fun&lt;erl_eval.18.507...
3
1,067
Master Mind Arrays
<p>I am currently working on a school project, where the assignment is to re-create the game "MasterMind" using Arrays and for loops, however, I am having difficulty correctly adding up the number of white pegs, and I get an output like this.</p> <pre><code>4 7 2 1 What is your guess? No spaces 4444 there are 1 reds, ...
3
1,140
Error when Sending Mail with Attachments Using PEAR
<p>My page continues to error out (Error 324 - Chrome) when attempting to send e-mails with attachments using PHP's PEAR Mail extension. Although the page error's out - I do receive one of the approximately 800 e-mails. Here's what I'm working with:</p> <pre><code>function email_statements($type) { switch($type) { ...
3
2,666
Post value not getting the whole product name
<p>I have this code which i want to extract unique product then post the values of the unique products to a different page.but its only pasting the searched value.</p> <pre><code>&lt;?php include('header.php');?&gt; &lt;!-- end header --&gt; &lt;div class="container"&gt; &lt;div class="row"&gt; ...
3
1,543
Taps and gestures not recogized when iPad app launched in landscape
<p>When I launch my universal app on the iPad in landscape mode, the app won't recognize taps or gestures on the side of the screen closest to the home button. I've gone over every similar question on stackoverflow trying to get to the bottom of this but I just can't get it to work.</p> <p>It would appear that one of...
3
1,917
Service Certificate WCF Service
<p>I encountered a problem whereby the WCF Service Host does not detect the existence of the service certificate that is needed to host a WCF service.</p> <p><strong>System.InvalidOperationException: The service certificate is not provided. Specify a service certificate in ServiceCredentials.</strong></p> <p>Service Co...
3
1,431
Phone authentication always producing negative responses in firebase
<pre><code>private void verifyphone(final String phone) { final String ph=phone; pDialog=new Dialog(this); pDialog.setContentView(R.layout.phoneverification); pDialog.setCancelable(true); pcode=pDialog.findViewById(R.id.pcodebtn); vcode=pDialog.findViewById(R.id.vcode); pstatus=pDialog.findV...
3
2,999
QT Include Windows SDK Library
<p>I am new to Qt and I want to use the <code>AudioSessionManager2</code> from the Windows SDK. In Qt Creator using <a href="https://docs.microsoft.com/en-us/windows/win32/medfound/managing-the-audio-session" rel="nofollow noreferrer">this example</a> I've written appended code below.</p> <p>When compiling I get the m...
3
1,150
bootstrap col-xs not working
<p>This is my code for Employer page. The bootstrap <code>col-xs</code> is not working. While I reduce the size of browser to <code>xs</code> width the text boxes are not changing there size. The box is actually going out of panel limits. </p> <p>Can somebody help me with a solution?</p> <p><div class="snippet" data-...
3
3,274
Python3 getting list item index returning empty error
<p>code:</p> <pre><code> other_users=User.objects.filter(logged_in=False) for other_user in other_users: other_posts=Post.objects.filter(author=other_user) print('[!] Collecting other_posts from other_user =&gt; {} [{}] [!]'.format(other_user,other_posts)) ...
3
1,413
Using form_for to add a user to Collaboration model
<p>I'm building a very basic wiki-style app that uses 3 models: User, Wiki, and Collaboration. My goal is, via the edit wiki page, a user should be able to add another user to the wiki as a "collaborator". This is what I have so far: </p> <h1>Wiki Model</h1> <pre><code>class Wiki &lt; ActiveRecord::Base belongs_to ...
3
1,132
1. How to detect a keystoke? 2.How to skip a comand line?
<p>I have iMacros on FireFox. This is a .js file that I can't get it to work.</p> <p>It gives me this error <code>SyntaxError: syntax error, line NaN (Error code: -991)</code></p> <p>All my other .js files work just fine.</p> <p>If someone can help me I would appreciate it a lot.</p> <p>Once its working, I need-it ...
3
1,216
python - Update matplotlib animation in Tkinter FigureCanvasTkAgg with Button/ clear looping animation from canvas
<p>I'm trying to create a GUI with tkinter that shows me an animation of an event I captured and when I click on a Button the next event should be shown. So far my code does exactly that but the problem I have is that when I click on the button to display the next event, the old event is not cleared from the canvas and...
3
1,321
org.json.JSONException: No value for senses
<p>I am trying to make an English Dictionary using the Oxford API. I made this according to docs and resources found on the web. But I got this issue <code>&quot;org.json.JSONException: No value for senses&quot; </code>and I don't why. Wherever I looked I couldn't find reason of this issue. I'll give you my <code>MainA...
3
2,014
How do I blur the right and left sides of a scroll container?
<p>I am trying to make the left and right sides of the container have a blur effect using the <code>box-shadow</code> property. The container (<code>boxes</code>) contains what boxes are currently in view as there are multiple boxes in that container that can be scrolled through using 2 buttons (with ids <code>backward...
3
2,558
React-Redux Bad Request Error (404) But Still Saves Data From Schema
<p>I'm getting a <strong>status(400)</strong> on a <strong>post request</strong> for some <strong>nested</strong> inventory data. <strong>The request fulfills</strong> by saving the data but responds with a 400. It also doesn't fulfill the <strong>.then()</strong> promise so I can't save the list back to the state. I h...
3
3,050
application design, object oriented not desirable?
<p>Long post ahead.</p> <p>I have to write a business application and I came to a conclusion that conventional way of doing this is a poor choice. I will expose here my point of view and would like to hear some opinions, and critics, or, inversely, some confirmation of my thoughts.</p> <p><strong>CONTEXT</strong>:</p...
3
1,827
Parse S3FileAdapter
<p>I currently have a parse-server deployment working however every time I upload a file it stores it with the <code>GridStore</code> file adapter instead of the S3 one. My app JS looks like this:</p> <pre><code>// Example express application adding the parse-server module to expose Parse // compatible API routes. va...
3
1,038
adding alt attribute to a banner image (opencart)
<p>On the website we have banners all over but non of them have any alt text.</p> <p>Below is the code for, any pointers as to how i can solve this issue? I was thinking maybe having the alt as the image name if possible so need to find a way to echo it.</p> <p>Any other suggestions? I have 8 banners and don't mind ...
3
1,270
php/mysql login system gives errors MySQL Error: ()
<p>when i run the code i get mysql error() and i get Error in Query Execution.Error : Problem In Executing the Query:</p> <pre><code>insert into kyaami_user_logins set `user_id` = '32', `email` = 'test@test2.com', `ip` = , `timestamp` = NOW(), `state` = 'success', `active`=1 </code></pre> <p>MySQL Error: ()</p> <pre...
3
1,297
How to get pelican site generate on GitLab Pages when continuous integration passes and artifacts are being built?
<p>I used pelican as the static site generator to build a static site. I wanted to host it on GitLab Pages and let the site generate with GitLab's continuous integration with Makefile. </p> <p>The site successfully builds locally as well as on GitLab via its CI/CD pipeline. The build code passes with artifacts uploade...
3
1,069
Widget.Design.TabLayout twice defined error
<p>i am working on a project where every thing was working fine until now where i'm getting error of values being already defined in values folder below is my styles.xml</p> <pre><code>&lt;/style&gt; &lt;style name="Base.TextAppearance.AppCompat.Title.Inverse"&gt; &lt;item&gt;?unknown_attr_ref: 1010039&lt;...
3
2,039
I need to manipulate focus shifting
<p>This is the scenario I want:</p> <p>I'm checking for the presence of an application (using protocol detection), if it's not present the exe file automatically starts downloading. The webpage continuously checks in regular interval whether the app has been successfully downloaded and when the installation is complet...
3
1,197
Server refuses to accept requests from clients
<p>This is a program to search for strings from a file. The string required by the client is given from the client side, in my case, using telnet. The program I have written is a server side one. It accepts multiple clients. But, the problems I am unable rectify are- </p> <ul> <li>It doesn't check for strings from the...
3
1,626
ValueError: Field 'id' expected a number but got '<built-in function id>'; POST request redirect
<p>When a User successfully makes a <code>POST</code> request to edit their own question, they are redirected to a detail page for the same question. When a subsequent <code>GET</code> request is sent to the <code>PostedQuestionPage</code> view after editing a question, the following <em>ValueError</em> is raised when ...
3
4,483
Stuck at Goomba's speed and cancelling animation at game over
<p>I'll try to be as precise as possible.</p> <p><strong>First Issue:</strong> If you look in the code, I have a <code>drawObjects</code> function which calls <code>collisionDetection</code> function.</p> <p>Inside <code>collisionDetection</code> if <code>player(mario)</code> touches the <code>object(Goomba)</code> t...
3
2,384
Creating a TXT file and seeking a position in Python
<p>I have given the following variables:</p> <pre><code>signal1 = 'speed' bins1 = [0, 10, 20, 30, 40] signal2 = 'rpm' bins2 = [0, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500] hist_result = [ [1, 4, 5, 12], [-5, 8, 9, 0], [-6, 7, 11, 19], [1, 4, 5, 12], ...
3
1,957
Unable to parse JSON in PHP to find particular value?
<p>I am currently having problem searching for a particular value which is new_user in a JSON file that I get using file_get_contents and then I decode it.</p> <p>Here is my code:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;link href="styles.css" rel="stylesheet" type="text/css" /&gt; &lt;title&gt;PHP Bing&lt;/t...
3
1,851
Unable to get custom spinner in android
<p>I have followed this <a href="https://stackoverflow.com/questions/11737500/show-dropdown-programatically-in-actionbar-actionbarsherlock">link</a> to learn about implementing custom spinner. My requirement is just to get drop down menu on clicking a image, it should be like a drop down menu where in i load contents t...
3
2,762
JQuery with PHP, using $.ajax
<p>I've been struggling for the entire day, I can't seem to get it right to send through a JSON object to a PHP file using the $.ajax function. I eventually got it right to send it through but now it refuses to decode.</p> <p>//JQuery File</p> <pre><code> var user = { "email" : documen...
3
1,277
Scanner for hex-input not working as expected inside loop
<p>I need to solve this problem where i need to convert hexadecimal numbers to decimals.</p> <h3>Issue</h3> <p>I have compiled it without any errors, but my output came out wrong. Can someone show how to fix these errors?</p> <h2>Code</h2> <pre><code>import java.util.Scanner; import java.io.*; class HexToDecException e...
3
1,052
How can I solve this html CSS positioning issue
<p>I am trying to create header, left nav, content area, right nav and footer. But my content area is streching and right nav is underneath content area. I want right nav to be underneath header. And only content area should stretch or narrowed while resizing window. Left nav and Right nav I want is fixed size. How can...
3
1,970
If condition for adding information into a dataframe
<p>I'd need to create a dataframe with the following columns:</p> <pre><code>WEB | Country | Organisation </code></pre> <p>I'm extracting these information from a website: however, there are some webs which do not have any information on the website. This is causing me some issues in updating the dataframe. Unfortunate...
3
1,435
how can i fix this error: ParseError at [row,col]:[21,35]
<p>Error:</p> <p>ParseError at [row,col]:[21,35] Message: <a href="http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?TextView&amp;app:layout_constraintBottom_toBottomOf&amp;app" rel="nofollow noreferrer">http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?TextView&amp;app:layou...
3
1,239
c# and access database system resource exceeded
<p>I have an access database and I have a refresh button that refreshes these list boxes from the database. in case some thing changes and every thing works great unless you click refresh to many times then it throws a system resource problem. i close the connection but is there like a garbage collector or some thing i...
3
2,970
Polymer & D3: How to send JSON from element attribute to template
<p>I'm new to polymer and I'm trying to integrate D3 with it. I modified an existing Gist but I'm a bit stumped. I'm trying to pass some JSON from Polymer element attribute (<code>barData</code>) in HTML to the polymer template. The JSON is being passed as a <code>String</code> and parsed into a computed property (<co...
3
3,826
JQuery validationEngine not working in WordPress page
<p>I have a rather complicated form in a file I've named newuser.php. I am using a WordPress plugin that allows in post/page php to include the file inside a WordPress page (I'm using the Suffusion theme). I am also trying to develop my own plugin (first time) and I am using that to enqueue all the necessary script and...
3
13,471
Validate an object in 2 microservices with different requirements
<p>I've been looking for info about this but nothing found, so I will try to explain it correctly: We have a Class, <code>rqtDto.class</code> used in a parent library. This class has the next code:</p> <pre><code>@Getter @Setter @SuperBuilder @NoArgsConstructor @AllArgsConstructor @GroupSequence({ Security.class, Valid...
3
1,035
Vanilla SpringBoot app works in IntelliJ, but `mvn compile` fails
<p>When I create a vanilla SpringBoot app through the SpringBoot initializr option in IntelliJ, this creates a simple <code>DemoApplication.java</code> file:</p> <pre class="lang-java prettyprint-override"><code>package com.example.demo; import org.springframework.boot.SpringApplication; import org.springframework.boot...
3
2,832
get extra data android, keep force close apps
<p>here is how i sent extra data</p> <pre><code>btn_category.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub WriteLog.d("ThangTB", "onclick image"); Intent ...
3
5,504
Validator in composite throws ClassCastException when using java.lang.Double value
<p>I had a two field validator working without the composite as follows</p> <pre><code>public class DoubleMustBeGreaterThanSecondDouble implements Validator { @Override public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException { Double firstDouble = (Dou...
3
1,461
alarm app not working shows error in pendingintent
<p>here code for alarm </p> <p><strong>AlarmManagerExample.java</strong></p> <pre><code>package com.example.alarmmanagerexample; import java.util.Calendar; import android.os.Bundle; import android.os.SystemClock; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; imp...
3
4,242
Displaying two horizontal colorbars on this precipitation map leading to large white spaces
<p>I am working on making a nice precipitation map using Metpy. I think this is more of a matplotlib question, but I am stumped on how to add two horizontal colorbars onto this figure. The overall idea is to have snow and rain rates shown on this map which I have accomplished by utilizing two contour fills onto one fig...
3
2,660
Swift 5 Parse multi level JSON
<p>I am still learning, so any help would be much appreciated. I am trying to parse a JSON file, I can't seem to make it work. Followed some online tutorials but I can't find one for this kind of json tree.</p> <p>Here is the structure of the json:</p> <pre><code>{ &quot;type&quot;: &quot;FeatureCollection&quot;, ...
3
7,930
How can I select part of txt file with a bash script?
<p>I have a logcat.txt file and I have to select only some field from it. I try to explain it better with my specific case:</p> <p>file.txt</p> <pre><code>I/Xposed ( 2559): Droidmon-apimonitor-com.astrolog.great.little.war.game.free:{"timestamp":1463412946569,"result":"","class":"android.os.SystemProperties","method...
3
1,380
WPF - MVVM not setting Path Style when binding
<p>I have my tab item declared as below:</p> <pre><code> &lt;TabItem &gt; &lt;TabItem.HeaderTemplate&gt; &lt;DataTemplate DataType="pricefiles:ConfigureViewModel"&gt; &lt;StackPanel Orientation="Horizontal"&gt; &lt;Path Style="{Bi...
3
1,422
Implementing Spotlight feature using NSMetaDataQuery and NStableView Data Source Method
<p>I have implemented spotlight feature in my project using <code>NSMetadataQuery</code>. On receiving <code>NSMetadataQueryDidFinishGatheringNotification</code> Notification I am calling reloadData method of tableView method after formatting the <code>NSMetadataItem</code> of <code>NSMetadataQuery</code>. I am facing ...
3
2,840
SimpleStringProperty returns null outside the class
<p>I'm working on my first java project: a javafx application to monitor temperature and humidity measured by a sensor and a micro controller.<br></p> <p>The way I'm imagining it to work: <br> 1. Collect the measures and store them in a <code>SimpleStringProperty</code> <br> 2. In another class, somehow retrieve the m...
3
1,165
Selenium eclipse maven test not executing
<p>I am trying to execute java selenium using eclipse >> run as maven test. But my tests are not running. but the build is success. I am able to run using run as testng.</p> <p>Here is my POM file</p> <pre><code> &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;com.org.ccc&lt;/groupId&gt; &lt;artif...
3
1,213
Collision detection problems in Java Script
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var u = 8; var x = []; var y = []; var s = { x: 20, y: 20, l: 1, }; var e = { e: false, x: 0, y: 0, }; func...
3
1,496
Why are these types not assignment compatible, and how can I define an assignment compatible class?
<p>I implement a map based on two type arguments <code>&lt;K,V&gt;</code>, where <code>K</code> is the key type and <code>V</code> is the value type.</p> <pre><code>public class Map&lt;K,V&gt; implements Map&lt;K,V&gt; { .. implementation .. } </code></pre> <p>One method in the <code>Map</code> interfaces returns the...
3
1,292
How do I get back button on browser to work with AJAX correctly?
<p>I have a page on my company site with an ajax call. It works perfectly, but a bug was discovered that clicking the back button in the browser just reloads the page and doesn't go to the previous page here is my code:</p> <pre><code> function openTab(evt, tabName, url, title) { //$('.action').attr('checked', fals...
3
2,726
Ajax no data return
<p>I have a jstree to display in one of my pages. </p> <p>In this page I make an http request in ajax to get some modified data from the server and print it to my page.</p> <p>After I do all the things in the server I want to send the edited data back to my page, but when I do that there is nothing displayed.</p> <p...
3
6,199
Get and return the ID to execute "edit" action
<p>I've a module made using "tabs", each tab call a component in this way:</p> <pre><code>include_component('logotipo', 'index'); </code></pre> <p>Now this is the code for the component:</p> <pre><code>class logotipoComponents extends sfComponents { public function executeIndex(sfWebRequest $request) { ...
3
1,396
split string without loss of characters
<p>I wish to split strings at a certain character while retaining that character in the second resulting string. I can achieve almost all of the desired operation, except that I lose the characters I specify in <code>strsplit</code>, which I guess is called the delimiter.</p> <p>Is there a way to request that <code>s...
3
1,132
Why am I getting ClassNotFoundException: javax.xml.bind.JAXBException?
<p>I have an Spring Boot App which runs on <code>Java 8</code>.</p> <p>When deploying the app on tomcat which is on server, following error occurs when the app starts:</p> <p><code>ClassNotFoundException: javax.xml.bind.JAXBException</code></p> <p>As i read on Stackoverflow and other sites this error has to do with ...
3
2,378