title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Selenium webdriver exception - cannot determine loading status - missing or invaid 'entry.level'
<p>I was using Selenium 3.4.x with Chrome version 63.0.3239.108 with Chromedriver 2.33.</p> <p>After I upgraded to Selenium 3.8.0, and Chromedriver 2.34, I started to get the following errors. I am not sure what's causing it.</p> <p>This is the error I get......</p> <blockquote> <p>org.openqa.selenium.WebDriverEx...
2
1,457
How to extract Information from Nodes in TreeView in Windows forms?
<p>I have created a Winform. I want to show Subanatomy ID information using object of type Subanatomy after the node is selected how Should I do it.? i have used all the neccessary libraries in my original code <a href="https://i.stack.imgur.com/YyG6L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y...
2
1,569
Encryption in .NET and decryption in Android throws BadPaddingException: pad block corrupted
<p>I did lot of research but i couldn't find answer to my issue. I'm doing AES encryption (Rijndael block size 128 bits) in .NET and decryption in Android (AES) with same password, salt &amp; IV between them. </p> <p>C# Encryption code snippet:</p> <pre><code> byte[] initVectorBytes = Encoding.ASCII...
2
1,462
JSF managed bean in Maven project: Target Unreachable, identifier 'bean' resolved to null
<p>Target unreachable error is coming, somehow my bean is not initializing and the value of the bean is coming null. My helloBean reference is coming null. </p> <p>POM.xml</p> <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaL...
2
3,294
NHibernate - SafeHandle Cannot be Null
<p>I am using NHibernate to connect to an Oracle database. Everything was fine until I suddenly started to get the strange <code>Value cannot be null. Parameter name: SafeHandle cannot be null.</code> error. I am not sure what I have changed to get this error and I do not know what exactly it means. Google does not giv...
2
1,293
Ansible: unable ping Windows VM, throws SSLError
<p>Ansible Server: Ubuntu 7.3.0-16ubuntu3 </p> <pre><code>IP: 10.aa.bb.2 </code></pre> <p>Windows VM: Windows Server 2016</p> <pre><code>IP: 10.aa.bb.1 </code></pre> <p>Used this to ping:</p> <pre><code>ansible windows -m win_ping </code></pre> <p>Throws the error:</p> <pre><code>10.aa.bb.1 | UNREACHABLE! =&gt; ...
2
1,507
Amazon SNS GCM/FCM message payload
<p>I am trying to send a push notification (PN) from my application server to an android device using publish end point in the Amazon SNS console with this message and message structure as json it works fine. </p> <pre><code>{ "GCM": "{ \"notification\": { \"text\": \"test message\" } }" } </code></pre> <p>But when I...
2
1,190
Shared Preferences is not working, android, kotlin?
<p>I'm trying to save uuid in application memory. To do this I perform to use Shared Preferences and use this guide from <a href="https://developer.android.com/training/data-storage/shared-preferences#kotlin" rel="nofollow noreferrer">developer.android.com</a> From this place exactly <a href="https://developer.android....
2
1,179
Parse error: syntax error, unexpected end of file in
<p>Hi I am a new student in Php,. I am currently developing a login.php</p> <p>But after compiling i am getting this error message, </p> <pre><code>Parse error: syntax error, unexpected end of file in D:\xampp\htdocs\uploadthis\login.php on line 90 </code></pre> <p>My login.php file is given below</p> <pre><code>&l...
2
2,204
Assignment on sorting a list
<p>I'm very close to being done, but can't quite figure out how to tie everything together. I have the separate methods responsible for their particular task, but i feel like my cohesion is really bad. not real sure how they tie together and what needs to be called in main. The goal here is to read a text file from the...
2
3,103
How to create a webview in Titanium that renders a g.raphael pie chart with static data?
<p>I tried to incorporate g.raphael pie within a webview in Titanium using g.raphael pie example. But when i run the code on the iOS simulator it only displays a page with no chart but display the labels just fine.</p> <blockquote> <p>"Pie chart with legend, hyperlinks on two first sectors and hover effect."</p> ...
2
1,347
How to POST Request with multiple objects in Python
<p>I'm able to use the post method with any url but this one, when I use postman to send the same request (same body, key, etc) the request works absolutely fine!, However when I use python (with requests library) it simply wont work, I used the following code:</p> <pre><code>import requests import json url = &quot;htt...
2
1,062
Efficient knn algorithm
<p>I'm trying to implement knn algorithm which operates on one dimensional vectors in R, but one which differs from the standard one just a bit, in that that it takes the smaller element in case of a tie (so the distance is just the absolute value of the difference between the attributes). More precisely, I'm trying to...
2
1,288
Zend Framework Custom filter in own libary directory
<p>I'm trying to make my custom filter work...</p> <p>I have the following code in my AuthController:</p> <pre><code>&lt;?php public function loginAction() { // Get db var $db = $this-&gt;_getParam('db'); // Load loginform $loginForm = new Application_Form_Auth_Login(); // Form posted? if ($...
2
1,270
Different hover effects [html/css]
<p>I have a menu with a hover effect on all listed links/ items. I want to put a Home icon (the house), whose hover effect to be switching between 2 identical images with different color, OK I got this, but the main hover effect still applies to it as background. </p> <p>For example, when I move the mouse over any of ...
2
2,198
Android- Method compress must be called from worker thread
<p>I am trying to implement an image view which displays the signature I draw in the SignatureActivity class. I am receiving an error on line:</p> <pre><code>bitmap.compress(CompressFormat.PNG, 90, mFileOutStream); </code></pre> <pre><code>public class SignatureActivity extends AppCompatActivity { Button mClear, ...
2
5,203
Error: Object Required: '[undefined]' for a dictionary object
<p><strong><em>Requirement:</em></strong></p> <p>Please read the following template:</p> <pre><code>PID Status LPID 10 Closed 25 11 Open 25 31 Open 31 25 Closed 25 54 Open 31 17 Open 17 20 Closed 31 88 closed 77 ...
2
1,949
What's wrong with my glOrtho? Negative zero instead of zero
<p>I'm implementing my own matrix math for an OpenGL application. So far, things are largely fine, although difficult. My most recent issue, one I've not had much luck on getting an explanation or a specific problem pointed out to me, is to do with my implementation of glOrtho().</p> <p>Specifically, my version result...
2
1,301
How to determine duration from mp4 init segment
<p>So here I have an init segment: <a href="http://people.mozilla.org/~jyavenard/mediatest/fragmented/facebook-paper_dash.mp4" rel="nofollow">http://people.mozilla.org/~jyavenard/mediatest/fragmented/facebook-paper_dash.mp4</a></p> <p>Now, all movie headers (mvhd atom), media header (mdhd) or track headers (tkhd atoms...
2
3,170
How to make a two column page with left navigation?
<p>Attempting to put the Nav bar containing Home, Menu, etc on the left of the page, and the rest in the center, and the windingroad.jpg floated to the right of all the text. I am lost in how to split these into multiple columns and continue, any help would be appreciated. </p> <p>~HTML~</p> <pre><code>&lt;head&gt; ...
2
1,082
How to declare global NodeJS variables within my ambient declaration file?
<p>This is a follow-up question to <a href="https://stackoverflow.com/q/42317942/40480">this one</a>.</p> <p>Given the answer on that question, let's say I have the following ambient declaration file:</p> <pre><code>declare namespace Twilio { interface IDevice { ready(handler: Function): void; } ...
2
1,293
Multi Thread zip4j
<p>zip4j is a great library. But i run into a problem when using it in a class that uses a thread. The zip4j method is called from a class that implements thread and sometimes (not always) it leaves files uncompress and somtimes there are leftofer files with the extension *.zip345. Also the process returns net.lingala....
2
1,344
jQuery mobile/ ui simple import
<p>I've never done jQuery Mobile before - having trouble getting this simple tabbed example to work. </p> <p>Problem: tabs do not display - they stay as just divs and li's.</p> <p>Can anyone point out my error? probably pretty simple. </p> <p>I imported jQuery UI, mobile, and jquery (normal). So I thought I had it a...
2
1,159
Laravel Echo not recognizing event
<p>I have Laravel Echo set up successfully to listen to one event. However, when I tried to add an additional event to the same channel the first one was a part of, the client-side seemingly does not recognize this new event. However, looking at Laravel Horizon, I can see the jobs being registered and processed success...
2
1,240
TensorFlow: Restoring variables from two checkpoints after combining two graphs
<p>I got an issue with TensorFlow, hope you can help :D</p> <p>My goal: say I got two graphs, Graph A and Graph B, each one composed of three convolutional layers. What I want is to link the second layer of Graph A to the third layer of Graph B.</p> <p>I've successfully combined two graphs using the information given...
2
4,351
MPI programming issue with MPI_Gather
<p>I am trying to use MPI to sort digits, after sorting by the different processors I want to use MPI_Gather to collect and later print all the sorted numbers but this is not working. Any help will be appreciated. Below is my code. </p> <pre><code>#include &lt;stdio.h&gt; #include &lt;time.h&gt; #include &lt;math.h&gt...
2
2,718
export to csv file from database using php PDO?
<p>i have here the code for exporting to csv file from my database using pdo.The downloading of the file works fine and it opens normally but before it opens something just always pop up every time i export it to csv file. what i want is to get rid of it.</p> <p><strong>this is the pop up message</strong></p> <p>->th...
2
1,639
How to remove from django-tables2 a notation of the total row numbers in a pagination area
<p>I cannot reproduce the same appearance of the table pagination format from the basic <code>django-tables2</code> <a href="http://django-tables2.readthedocs.org/en/latest/pages/tutorial.html" rel="nofollow noreferrer">example</a>. Here is my code</p> <p><strong>Model</strong>:</p> <pre><code>#models.py class Person...
2
1,094
How can I send file to api that use multer in node js?
<p>I want to send a file from a server to another server, using two apis, one that upload to the final server and one that read a form data and send it to an api that call the first api</p> <p><strong>Upload to final server</strong></p> <pre><code>var storage = multer.diskStorage({ destination: function (req, fil...
2
1,795
How to declare an Activiti custom FormType in a Spring Boot application
<p>I have a Spring Boot application that is running workflows using the Activiti framework. I have got to the point where I need to create a new FormType so that I can support a field in the workflow more complex than a String/Long etc.</p> <p>The article I have been following is <a href="http://www.jorambarrez.be/blo...
2
1,480
How to avoid google-collections jar to be downloaded from maven (POM), Exclude is also not working
<p>I want to exclude google-collection jar which is getting download even after using exclude tag. SO that whenever I execute "mvn clean install" google-collections.jar should not be download.</p> <p>I tried to add exclude in all dependencies still whenever I execute mvn clean install google-collection jar downloaded...
2
6,555
html elements hiding after asp button click
<p>I have some html controls which default display value is none. I have anchor which is showing this form.</p> <p>Form:</p> <pre><code> &lt;div id="login_container"&gt; &lt;div id="login_close"&gt; &lt;img src="images/close.png" align="close" title="close" /&gt; ...
2
1,502
laravel Socialite - Facebook doesn't return user's firstname & lastname
<p>I'm using laravel socilialite to create a facebook login.</p> <p>Here's my provider redirect</p> <pre><code>public function redirectToProvider($provider = null) { if (!config("services.$provider")) abort('404'); //just to handle providers that doesn't exist if($provider == "facebook"){ ret...
2
1,307
Modifying angular.json Angular 6+ to load scripts in index.html correctly
<p>I am running an angular project on my computer:</p> <p>Angular CLI: 7.1.4 Node: 11.6.0 OS: darwin x64 Angular: 7.1.4</p> <p>I have updated angular from 4.5.5 to 7.1.4.</p> <p>Now I get the following error in my console in my chrome browser:</p> <blockquote> <p>9 GET <a href="http://localhost:3000/runtime.js" r...
2
1,636
How to list multiple pieces of data from data table using a variable
<p>I wrote the below program to send HTML Email to the demo users in this table:</p> <p><img src="https://i.stack.imgur.com/qEpf5.png" alt="enter image description here"></p> <p>I want to send only one email and lists all of the information for each customer. Currently, if a customer has 10 books past due, then the c...
2
1,166
"The requested resource is not available" when deploying Spring MVC webapp to JBoss
<p>I am starting a web application with Spring MVC deploying to a JBoss 6.4 server but I get the following whenevery I try to open the main page:</p> <pre><code>JBWEB000065: HTTP Status 404 - /iph/ JBWEB000309: type JBWEB000067: Status report JBWEB000068: message /iph/ JBWEB000069: description JBWEB000124: The reques...
2
4,847
How to implement a binary heap using list in OCaml?
<p>I am implementing a <code>binary heap</code> using list in OCaml, just to sharpen my OCaml skills.</p> <p>I feel it very difficult using list and after struggling for 2 days, I have to come here for suggestions and hints.</p> <hr> <h2>Here is my thought so far</h2> <p>Obviously, I can't use the orignal <code>arr...
2
1,026
Xamarin Build fails at aapt (attribute *** allready defined)
<p>We have CI server for nightly builds. We have also the required dependencies on the build server for our xamarin builds. For some reason, somthing this week changed (I dont know what) but now in the _UpdateAndroidResgen build step aapt is getting attributes defined twice which causes the build to fail for some reaso...
2
2,375
IntStream.range(0, 1_000_000) stops at 113383 (Project Euler: Longest Collatz Sequence)
<p>I have a strange problem in my code to answer this:</p> <blockquote> <p>The following iterative sequence is defined for the set of positive integers:</p> <p>n → n/2 (n is even)<br> n → 3n + 1 (n is odd)</p> <p>Using the rule above and starting with 13, we generate the following sequence:<br> 13 → 40...
2
1,343
Group custom post types by taxonomy in timber (Wordpress)
<p>I'm having a hard time figuring out how to group a collection of post with the same taxonomy "year" attached to them in Wordpress, without using a separate archive template.</p> <p>I Finally managed to get it to work with Wordpress, but now I want to translate this to timber, and I just can't seem to be able to do ...
2
1,310
Unable to install Recharts using npm
<p>npm install recharts using npm I get the following in my console</p> <pre><code>npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: project@0.1.0 ...
2
1,039
Getting class type redefinition and a few other errors
<p>I'm creating a student data management console application for a project. I created a class called Student which is storing all the data that a student needs to have, and it also has all the getters and setters associated with it. Here is how all my files are laid out:</p> <p>Student.h</p> <pre><code>#include &lt;...
2
1,123
Flex Layout (ordering?) in Bootstrap 4
<p>I'm learning bootstrap. I used paint to make a quick mockup of what I want to try to create with Bootstrap 4 and its new flex support. My issue is seen in the problem paint sketch; since Flexbox equalizes height, the comments section is appearing below the end of the Related section. </p> <p>I've already tried putt...
2
1,850
Converting time string into epoch time on windows
<p>I have an interface where I'm getting a file and the file name is the time stamp when the internal data was valid. I'm processing the files in order and providing them to another API which takes the time as milliseconds since Jan 1st, 1970. </p> <p>So, I get the file name in as a string in the format of YYYYMMD...
2
1,155
Handsontable percentage formatting leading decimal point
<p>I think I've found a defect with the way Handsontable formats numeric inputs as percentages (or alternatively accepts invalid input depending on your position on what a valid number is).</p> <p>If you use a leading decimal point decimal point - the percentage formatting will not work - but the input is accepted as ...
2
1,298
Crash on search bar tap
<p>App crashes when search bar text field is tapped in UIViewController </p> <p>My ViewController looks like this -</p> <pre><code>class DetailViewController: UIViewController, GMSMapViewDelegate, UISearchBarDelegate { let testBaseUrl = "https://maps.googleapis.com/maps/api/geocode/json?" var searchBar = UISearchB...
2
3,003
android: ClassNotFoundException when trying to start phonegap activity
<p>I have a phonegap activity which I want to start via a button press:</p> <pre><code>shareButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent activity = new Intent(context, GalleryActivity.class); context.startActivity(activity); ...
2
1,678
Textview causing java.lang.ClassCastException: android.widget.TextView
<p>I have three textviews and applied clickevent on them, but when i click on any of them the they cause Forceclose error in application. i have also tried changing ids textviews and then clean project and ran the project still that error is not removed.</p> <p>My XML code is </p> <p>for one textview</p> <pre><code>...
2
1,591
Parameter 0 of method init in 'Application' required a bean of type 'package' that could not be found
<p>I am trying to connect <code>Morphia</code> with <code>Java</code> and so tried implementing a project. But, I am getting the following error</p> <pre><code>*************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of method init in code.nithin.application.Applic...
2
1,064
Drag and Drop item from DataGridView to a panel
<p>I have searched for a solution for drag and drop in <code>DataGridView</code> but all I found was about reordering the items.</p> <p>But what I have is a <code>DataGridView</code> bound to a SQL server database using LINQ to Entities and reordering is not applicable, all I want was to drag an item from the <code>Da...
2
1,487
Keep track of price and total cost
<p>I'm trying to keep track of each items cost, and add that to the total cost of all the items. When I run the program the last item cost and total cost is applied to each item. I feel like I should have another loop more dynamically placing the cost of each item and total cost.</p> <h1>Driver Class:</h1> <pre><code...
2
1,107
bqplot: ipython widgets not being rendered
<p>I am trying to use <a href="https://github.com/bloomberg/bqplot" rel="nofollow noreferrer"><strong>bqplot</strong></a> to plot some graphs in jupyter notebook along with some ipywidgets. I want to render the widgets horizontally adjacent to my plot as discussed in <a href="https://github.com/ipython/ipywidgets/issue...
2
1,085
$_POST treeview data
<p>I used treeview component from this site <a href="http://wwwendt.de/tech/dynatree/doc/samples.html" rel="nofollow">TreeView</a></p> <p>(please choose "Embed in forms")</p> <p>i edited sample source code and saved it to index.php :</p> <pre><code>&lt;!DOCTYPE&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="...
2
1,849
Tone mapping shader OpenGL
<p>I'm trying to implement tone mapping to an HDR image in OpenGL.</p> <p>Previously, I make manual mip mapping of HDR image, to get a 1x1 texture (<code>RGBA32F</code> format) with the average value of luminance.</p> <p>I find an example of tone mapping function and put it on my fragment shader.</p> <p>In my render...
2
1,621
Mininet Routing not working
<p>I have a problem with Mininet topology. I am trying to make a ping between <strong>h3</strong> and <strong>h4</strong>. They are connected to same switch <strong>s4</strong>. But they can not ping, they are in different subnet, so i am trying to make a <strong>flow table for s4</strong> but with no success. Here is ...
2
1,177
Java Spring @Autowired not working as expected
<p>My application is not running as expected due to @Autowired. Would it because of the codes below?</p> <pre><code>@PropertySource("WEB-INF/config.properties") public class DBQuery { @Autowired private Environment env; </code></pre> <p>I had tried with lots of available solutions and examples for 2 days yet...
2
3,291
AMember Pro - .htaccess and mod_rewrite
<p>I'm currently trying to install AMember and I've uploaded the filed to the FTP, however, I whenever I navigate to the install link:</p> <p><a href="http://domain.com/amember/setup" rel="nofollow">http://domain.com/amember/setup</a></p> <p>I am receiving this error message:</p> <p>—————————————————————————————————...
2
1,076
Transactional handling of text files on Windows
<p>I have multiple Windows programs (running on Windows 2000, XP and 7), which handle text files of different formats (csv, tsv, ini and xml). It is very important not to corrupt the content of these files during file IO. Every file should be safely accessible by multiple programs concurrently, and should be resistant ...
2
1,269
Serialize classes to XML with namespaces
<p>I am struggling actually with serializing my classes to the desired XML. I have problems placing the namespaces in the correct way.</p> <p>here is the needed XML:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="htt...
2
2,463
nivo slider overflow issue
<p>I am using nivoslider for my webpage. The images look overflow one by one until the page loading fully. Here is the css i'm using. I have tried <code>overflow:hidden</code> property. But it didn't get corrected. How can i correct that? </p> <p>CSS :</p> <pre><code>.nivoSlider { position:relative; } .nivoSlider...
2
1,078
gstreamer fast transcode
<p><strong>EDIT</strong> <code>Updated code with solution</code></p> <p>I need to transcode amr to mp3, so i wrote a gstreamer pipeline in gstreamer-java. It looks like this: </p> <pre><code>src ! amrparse ! amrnbdec ! lamemp3enc ! sink </code></pre> <p>(actually built with the java API, of course), i start the tra...
2
1,289
docker run hello-world fails, stderr: permission denied
<p>I have installed docker via <a href="https://get.docker.com/" rel="nofollow noreferrer">https://get.docker.com/</a> and the process went fine but when I try to run it I'm receiving the error </p> <blockquote> <p>docker: failed to register layer: ApplyLayer exit status 1 stdout: stderr: permission denied.</p> <...
2
1,241
Active class not toggled when scrolling
<p><strong>I will refer <a href="https://startbootstrap.com/template-overviews/scrolling-nav/" rel="nofollow noreferrer">https://startbootstrap.com/template-overviews/scrolling-nav/</a> as <em>the website</em></strong></p> <hr> <p>I'm using <strong>page-scroll</strong> almost exactly they same as they do at the websi...
2
1,515
Spring Boot `org.springframework.beans.factory.BeanCreationException: Error creating bean Injection of autowired dependencies failed;
<p>I am a Spring Boot newbie and I have a simple application which has a controller and a Thymeleaf template. </p> <p>When the application starts, in order to see if everything is working, a Spring <code>ApplicationListener</code> called <code>RepoTester</code> should run to check the methods of a service class. The s...
2
2,612
Is js native array.flat slow for depth=1?
<p>This <a href="https://gist.github.com/netanel-haber/e8f99db2854fe6de5728f63558a225a1" rel="nofollow noreferrer">gist</a> is a small benchmark I wrote comparing the performance for 4 alternatives for flattening arrays of <strong>depth=1</strong> in JS (the code can be copied as-is into the google console). If I'm no...
2
1,764
chart.series[id].remove() is not able to refresh legend properties of other series in highcharts/highstock
<p>When I remove first series from the chart i.e. chart.series[0].remove(); the legend properties for other series are not updated. i.e. legend of series 1 does not know that he is at location 0 after I have deleted series 0.</p> <p>So my basic issue is that i need to update/ all series legends after I have removed a ...
2
2,466
Better way to load image synchronously on Windows Phone?
<p>I'm new to do C# Windows Phone programming.</p> <p>In a nutshell, I am currently building an app that will:</p> <p>Load <code>image A</code></p> <p>Load <code>image B</code></p> <p>and then Load <code>image C</code></p> <p>then use these 3 images to do some post processing.</p> <p>My Image B and Image C are bu...
2
1,456
Shared Library jar are not loaded by Liberty
<p>I have spring MVC application which uses Spring 4.I deploying my application in Liberty 16.0.0.3.I have below server.xml configuration.</p> <pre><code>&lt;server description="Default Server"&gt; &lt;featureManager&gt; &lt;feature&gt;webProfile-7.0&lt;/feature&gt; &lt;feature&gt;l...
2
3,029
Fuseki 1.0.1 SPARQL Update returns 404
<p>I'm trying to learn to update data in Fuseki, but when I try I get a 404 error. I am clearly not doing something right. Perhaps it is my INSERT command? I've tried a ton of them though. </p> <p>I am using the web based SPARQL interface at /sparql.tpl. </p> <p>I can get SPARQL Queries to work on that same page ...
2
1,813
ListView Scrolling Issue: on Item Selection
<p>I have Listview with which I'm trying to display my custom Adapter.Everything works fine except when I select list item and scroll it,the items which were not selected are already being selected.I don't really understand what's the issue with my listview.</p> <p>Here's my class:</p> <pre><code>@Override protected ...
2
1,588
Windows Phone 7 for could not render Phonegap Jquery Mobile Application
<p>I am currently doing some development for Windows Phone 7 using phonegap+jquery mobile</p> <p>For some reason, Windows phone emulator included in the latest Visual Studio express could not render simple multipage app.</p> <p><img src="https://i.stack.imgur.com/Qp2jQ.png" alt="enter image description here"></p> <p...
2
2,479
Propagating foreign key with Spring Data
<p>I am developing an Spring Boot app based on Spring Data Rest(which uses Hibernate underneath) and mySQL database. This app is incapable to populate the foreign keys of the referenced entries(because I expect Hibernate does it for me). Entities:</p> <pre><code>@Entity public class Producto { private Integer id;...
2
2,257
Designing a deck of cards using a linked list
<p>The objective of this program is to design a deck of cards using a linked list. My codes does not print anything out when it runs. Heres my code below </p> <p>Node Class:</p> <pre><code>public class Node { private Comparable data; private Node next; public Node() { next = null; } public Node(Comparable c) { data =...
2
1,445
Disappearance of "Sign in with LinkedIn" button after log-in
<p>My goal is implement a social log-in button for the 3 big (Fb, LinkedIn, Twitter) and use data captured from social (email, first name, last name) to prefill a form inside the landing page.</p> <p>I have implemented a "Sign in with LinkedIn" Button with the following code:</p> <pre><code>&lt;script type="text/java...
2
1,061
Changing the color of one character within a word without changing the kerning properties of the word?
<p>Suppose we have the following element:</p> <pre><code>&lt;div&gt;STACKOVERFLOW&lt;/div&gt; </code></pre> <p>And we want to make the <code>A</code> red, but without changing the kerning properties of the word. In other words we want the word to display exactly the same way it did before. There is a similar questi...
2
1,315
Why won't my CasperJS code login to Quora?
<p>This is the code that I'm using to login to Quora:</p> <pre><code>var casper = require('casper').create({ verbose: true, logLevel: 'debug', pageSettings: { loadImages: false, // The WebPage instance used by Casper will loadPlugins: false, // use these settings ...
2
1,415
Error while getting the process id
<p>I'm creating a clipboard monitor as a project and on clipboard change the application detects which program has used the clipboard by calling the GetClipboardOwner.</p> <p>This is an excerpt from the code:</p> <pre><code>protected override void WndProc(ref Message m) { const int WM_DRAWCLIPBOAR...
2
1,181
VS2010 Unresolved External Symbol boost::asio::detail::winsock_init_base::throw_on_error when linking boost-system with a project using libtorrent
<p>I'm trying to build a small command line BitTorrent client using Rasterbar's libtorrent, which depends on Boost. I've built both the Boost libraries and the libtorrent library using their respective directions, but when I try to build my project I get the following linking errors</p> <pre><code>1&gt;------ Build s...
2
1,146
How to drag and drop item from one list to another without it remove from first list?
<p>I am trying to create a list that in the first list items should be fixed and then on the second list, you should able to drag and drop the first item list and you should able to rearrange them.</p> <p>I found a <a href="http://farhadi.ir/projects/html5sortable" rel="nofollow noreferrer">useful link</a> and I creat...
2
4,129
What does this return code mean? IGYPS0009-E
<p>I'm writing a COBOL code and cannot figure out why this error code which reads</p> <blockquote> <p>"OPEN" should not begin in area "A". It was processed as if found in area "B"</p> </blockquote> <p>Specifically it is referring to the line under <code>PROCEDURE DIVISION</code> of <code>OPEN INPUT CUST-PROF</code>...
2
1,254
warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]|
<p>I try do declare the char but it's not working. Why the output don't appear? Everytime I finish insert the input the program crash.and it shows (note: expected 'const char *' but argument is of type 'int'|) also (warning: passing argument 2 of 'strcpy' makes pointer from integer without a cast [-Wint-conversion]|).<...
2
1,211
With Flutter, how can I display Firebase Auth error messages caught within an AuthService class within a separate log in page widget?
<p>I have a Registration Page with my sign up form and then an AuthService class I call to sign up the user, returning a mapped custom User class. I can check if the result of the function call is not null and therefore navigate my user to the home page, but I can't work out how to setState or similar to actually show ...
2
1,061
Scala and Akka : ActorSystem class not found even with the config.jar
<p>I'm working on an Android application written in Scala in which I also use the Akka library. As I'm quite a beginner, I'm using Eclipse and I let it manage the dependencies. Currently, I have in my build path:</p> <ul> <li>the Scala library 2.10.2 </li> <li>the Android libraries</li> <li>akka-actor_2.10-2.2.1.jar <...
2
1,047
scrollable content within tab content view
<p>I am trying to create an interface that is a tabbed view. my form is in one tab and the results will be in another tab. I am having difficulty in getting the form to scroll down so that I can access the data off screen. Tab1 below is the content I want to be scrollable. Am I using the wrong type of container to h...
2
2,881
Strange exception after IChangeFeedObserver ProcessChangesAsync
<p>I'm trying to create replication from CosmosDB to local CouchBase Lite database. For this I'm using Microsoft.Azure.Documents.ChangeFeedProcessor</p> <p>But for some reason always after IChangeFeedObserver ProcessChangesAsync has ended I get following exception on console:</p> <p>What does "Errors":["One of the sp...
2
4,812
[Californium/CoAP/LWM2M]: Reusing message send endpoint for server not possible?
<p>I am building a tool that can send CoAP messages to another peer (different implementation), but I am having difficulties. I am using the CoAP library called "Californium" and am developing the tool in java/eclipse. Here's the deal: I send a message over californium's "default endpoint", which allows the system to m...
2
1,757
Google search bar - add custom search text thru input checkbox
<p>I am trying to add custom search text to a google search bar when a checkbox clicked and remove said text when this is removed. I have figured out how to add/ remove the text in a text-area and how to put custom text in the search bar but I am having some difficulties in figuring out how to replace the custom text ...
2
1,368
Node.js app runs locally but fails on Heroku
<p>I have a Node.js app that runs perfectly locally, however as soon as I push it to Heroku the app refuses to start. I ran <code>heroku logs</code> and it shows that the server is up and is listening on a port. It also says the process exited with <code>status 22</code> at the bottom. The Heroku docs state that the <c...
2
4,188
'RadioSelect' object has no attribute 'renderer'
<p>I have made a web site by seeing django tutorial. <a href="https://docs.djangoproject.com/en/1.11/intro/" rel="nofollow noreferrer">https://docs.djangoproject.com/en/1.11/intro/</a></p> <p>I got an error,</p> <pre><code>AttributeError at /polls/1/ 'RadioSelect' object has no attribute 'renderer' </code></pre> <p...
2
1,738
pem.Decode - returns nil when given contents of id_rsa.pem
<p><br> I'm trying to use <code>rsa</code> package for <code>encrypt</code> and <code>decrypt</code> with <code>public</code> and <code>private</code> keys.</p> <pre><code>func main() { flag.Parse() text := "my super secret" glog.Infof("Original text: %s\n", text) glog.Infoln("Loading public key..") ...
2
1,455
Populate jqGrid selectlist in edit form from MVC controller
<p>I am returning a string jqGrid from controller, but dropdown does not populate.</p> <p>Grid code on View:</p> <pre><code> { name: 'FundCode', index: 'FundCode', editable: true, edittype: "select", editoptions: { dataUrl: '@Url.Action("PopulateDdl", "FundCode")' ...
2
1,142
Socket.io in production returns 400 Bad Request error
<p>I am using Socket.IO in my application. The React client uses <a href="https://www.npmjs.com/package/socket.io-client" rel="nofollow noreferrer">socket.io-client</a> 4.1.3, and the Node.js server uses <a href="https://www.npmjs.com/package/socket.io" rel="nofollow noreferrer">socket.io</a> 4.1.3</p> <p>In the develo...
2
1,216
Is Renderscript incompatible with NDK libraries in the same project?
<p>I have a problem creating an Android app that makes use of both Renderscript and native code generated with NDK.</p> <p>Substantially, I use NDK tools to generate a library called <code>sprstr_native.so</code>. I managed to call their C++ functions through Java code without problems. Then I needed some Renderscript...
2
1,232
404 Errors for WCF Service Hosted In IIS 7
<p>I keep getting 404 errors for a WCF service hosted in IIS. The service is a duplex service. I am able to access the .svc in a web browser. However, when the client attempts to log in, it times out with a 404 Not Found error. A snippet of my web.config looks like this:</p> <pre><code>&lt;system.webServer&gt; ...
2
1,725
Angular: Assign array from JSON object retrieved via API to a variable
<p>I am working on loading a blog feed via the Google Blogger API and displaying the results in a component. I cannot figure out how to assign the { "items":[] } array to a posts variable to get the posts to display. Here is what I have:</p> <p>Component:</p> <pre><code>import { Component, OnInit } from '@angular/co...
2
1,028
Exception in thread "main" javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute statement
<p>I am using hibernate 5 with orcale 12c and java 9 When i execute this code error occur hibernate could not execute statement</p> <p>I wrote easy program at Hibernate and caught bunch of exception .</p> <p>I couldn't find out what the exactly thing is wrong.</p> <p>I have three classes - student, main and hibernat...
2
4,241
Mean average precision - python
<p>I am calculating mean average precision at top k retrieve objects. Here is my code. At this stage, I am computing <em>R@K</em>. The code read the two lists from <code>csv</code> files, then take a sample from a list, compute euclidean distance with all samples from other list, sort them and finally take top k objec...
2
1,104
Pagination and UI Router in AngularJS
<p>I have AngularJS project with UI Router and I use Pagination in this project. I use directive and filter to make it by below code.</p> <p>Controller</p> <pre><code>newsapp.filter('startFrom', function() { return function(input, start) { if (!input || !input.length) { return; } start = +start; /...
2
1,408
Setting up Themeforest HTML template with Vue and Laravel. Loading JS files on router.push not working
<p>I am setting up my first every frontend website with Vue and Larvavel. I have bought html/css/javascript based template on Themeforest.</p> <p>Setup vue and vue router with laravel and all seems working find here is my app.js files look like</p> <pre><code>require('./bootstrap'); import $ from 'jquery'; window.Vu...
2
16,987
Contact form with anti-spam field, PHP or JS issue
<p>I have a bootstrap contact form that I added a simple math equation to prevent spam mail. The form is using a contact_me.js to process the form and call the contact_me.php file to validate and send the email. It is also using jqBootstrapValidation.js to validate the form. I used a basic bootstrap template and modifi...
2
3,031