title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
XNA - Bounding Box Rotation Nightmare
<p>I'm currently going throught kind of a nightmare right now by trying to find the right formula to obtain a bounding box that correspond to my sprite orientation.</p> <p>I KNOW ! There is a bunch of examples, solution, explanations on the internet, including here, on this site. But trust me, I've tried them all. I t...
1
2,931
Amazon SQS with aws-sdk receiveMessage Stall
<p>I'm using the aws-sdk node module with the (as far as I can tell) approved way to poll for messages.</p> <p>Which basically sums up to:</p> <pre><code> sqs.receiveMessage({ QueueUrl: queueUrl, MaxNumberOfMessages: 10, WaitTimeSeconds: 20 }, function(err, data) { ...
1
1,879
Unable to install react-beautiful-dnd package
<p>*<strong>Below is the full error stack message while installing the package</strong></p> <pre><code>npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: freeboard@0.1.0 npm ERR! Found: react@17.0.1 npm ERR! node_modules/react npm ERR! react@&quot;^17.0.1&quo...
1
1,287
No change in font face in html to pdf generation using iTextSharp
<p>I'm using a HTML Rich-Text Editor to help me create a template for dynamic PDF reports, and it's working fine except that it doesn't change the font-face.</p> <p>This editor is using the font tag instead of CSS styles, and I would welcome any way to programmatically change the font tags to equivalent tags using sty...
1
2,557
How to send Captured Image to second activity?
<p>I have two button on MainActivity. One for choosing image from Gallery and another one is for Camera image capturing. I want to send these images to second activity. While I was trying for Gallery image, I was successful. But, Now I want to pass also Captured image to second activity. I have tried many code but not ...
1
8,262
How to Access a Div inside Google Maps InfoBox?
<p>I am trying to select a <code>&lt;div&gt;</code> using jquery's <code>$('#divname')</code> inside a infobox that Google Maps generate when any of the many markers on the map are clicked on.</p> <p><strong>Problem:</strong> When I try to access the div using <code>$("#gallery")</code> after the marker has been click...
1
1,268
Error in Swift: property 'self.circle1' not initialized at super.init call?
<p>I am new to programming and am trying to write a tic-tac-toe app in Swift, and this error is preventing me from running the app: property 'self.circle1' not initialized at super.init call.</p> <p>The app is not finished yet but I don't see where the error is in the existing code. Please explain any suggestions thor...
1
1,825
SimpleITK.Show() generates error in ImageJ on Linux
<p>EDIT NOTE: This question was originally phrased as</p> <p>How to link SimpleITK.Show() to imageJ in linux?</p> <p>By upgrading SimpleITK 1.0.0 to 1.0.1, I was able to launch ImageJ from SimpleITK.Show(). However, ImageJ is unable to open "sample_mri.hdr". ImageJ generates the following error messages.</p> <blockq...
1
1,146
RuntimeError: CUDA error: invalid device ordinal
<p>When I try to run my program I get an error saying: <code>RuntimeError: CUDA error: invalid device ordinal</code> The full error is below.</p> <p>I don't have much experience with this sort of thing; furthermore it's neither my own program, nor my own machine.</p> <p>Based on <a href="https://github.com/ProGamerGov/...
1
2,084
Getting ERROR 419 (unknown status) while uploading image Laravel 5.5
<p>I am new in laravel and i am trying to integrate pl uploader inside for image uploading.</p> <p>I am getting unknown status error when i upload image.</p> <p>Here is the script i am using in view:</p> <pre><code> var uploader = new plupload.Uploader({ runtimes : 'html5,flash,silverlight,html4', br...
1
3,073
Cannot read property add() of undefined Phaser.js
<p>There is a problem with the <code>game.state.add()</code> function. For some reason <code>game</code> is undefined:</p> <blockquote> <p>Uncaught TypeError: Cannot read property 'add' of undefined at Object.init (main.js:51) at main.js:58</p> </blockquote> <p>This is my code:</p> <pre><code>var socket; // global...
1
1,174
mCustomScrollbar plugin having confusing trouble
<p>I use cycle plugin for my banner with caption and the caption has a scrollbar as in the image below. I use <code>mCustomScrollbar</code> to style the scrollbar. The scrollbar works fine in the first caption, but when I apply it in second caption the scrollbar does not appear. What is the reason that this happens, is...
1
1,260
How to use Group By and self-join to return min, max, open, and close daily price restult set?
<p><strong>SOLVED</strong></p> <p>All hail StackOverlow!</p> <p>While I was gone, people left 2 solutions (thanks guys--what is the protocol for handing out karma for two working solutions?)</p> <p>Here is the solution that I came back to post. it is derived from yet ANOTHER StackOver solution:</p> <p><a href="htt...
1
4,964
Custom delegate not working
<p>I have started working more with delegate as suggested in another question I made. Now, I have made a UIViewController called <code>ProfileViewController</code> in which I would like to load the News Feed from Facebook. I also have subclass of NSObject called <code>FBFeed</code>. This subclass loads the Facebook Ne...
1
1,950
MongoDb, query the last, and group by
<p>I m actually having trouble when dealing with MongoDb.</p> <p>I need to :</p> <ul> <li>get all of the last entries</li> <li>concerning a field</li> <li>like : SELECT MAX(id), foreignKey FROM t_table GROUP BY foreignKey</li> </ul> <p>I know that we can use $last with mongodb, but I dont know at all how to proceed....
1
1,091
SSLException for connecting mysql db
<p>I am creating a webproject..I have configured the jdbc realm for this..I need to connect the java servlet to mysql database..</p> <pre><code>private static String JDBC_DRIVER = "com.mysql.jdbc.Driver", DB_URL = "jdbc:mysql://localhost/chat", USER = "root", PASS = "public"; @OnMessage public void onMessage(S...
1
1,418
Mock redux saga middleware with Jest
<p>I've got this configureStore.js which configures my enhanced redux store and persists it to the localStorage:</p> <pre class="lang-js prettyprint-override"><code>// @flow import 'babel-polyfill' import { addFormSubmitSagaTo } from 'redux-form-submit-saga/es/immutable' import { applyMiddleware, createStore, compos...
1
1,098
Passing data from attribute values into tooltip
<p>I'm trying to create a timeline containing items which have certain attributes which then need to be displayed inside a tooltip when hovering over the corresponding item. I have got the timeline to work (I used <a href="http://visjs.org/docs/timeline/" rel="nofollow">vis.js</a>), but can't get the attribute values t...
1
1,949
Multiple onClick of a button in TableLayout
<p>I have a table layout where I display the values as below:</p> <p><img src="https://i.stack.imgur.com/zTN4q.png" alt="enter image description here"></p> <p>Now I am able to achieve on row click, but I have three buttons in each row.</p> <p>On click on Start, Completed and Delivered I need to update a column (Stat...
1
2,720
User lacks privilege or object not found WITH JUnit
<p>I'm having a problem when I use JUnit :</p> <pre><code>Hibernate: SELECT COUNT(0) FROM group DEBUG - SqlExceptionHelper - user lacks privilege or object not found: GROUP [n/a] java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: GROUP at org.hsqldb.jdbc.Util.sqlException(Unknown Sourc...
1
2,174
Need to show the default sort column icon in jqgrid
<p>I have to show the sort column icons in a Jqgrid. I have found answers here itself. I tried with that, now I can able to see the sort icons on all sortable column headers, but the default sort column is not showing the highlighted icon.</p> <p>This is my script :</p> <pre><code>var $tempX= $(divId), colModel, sort...
1
1,175
tempdata value not getting through ajax call on controller on checkbox event
<p>i want to send parameter to my controller.this is my view page:</p> <pre><code>&lt;div&gt; &lt;li&gt; &lt;input name="chk" type="checkbox" value="1"&gt; electronics &lt;/li&gt; &lt;li&gt; &lt;input name="chk" type="checkbox" value="2"&gt; Construction&lt;/li&gt; &lt;li&gt; &lt;input name="chk" type="checkbox"...
1
1,160
Android Studio - Gradle build failed Error:Execution failed for task ':app:dexDebug'
<p>I have an odd problem with AS. I have two OSX computers. A simple app builds on one of them but not the other. The two computers are almost identical. </p> <p>Here are the specs of the two computers:</p> <p>*OSX 10.8.5 - both fresh installed earlier this year. Not upgraded from older version of OSX. *JDK 1.8....
1
2,084
Use a Custom Firefox profile with nightwatch.js selenium gecko driver
<p>I have search for about 8 hours and read pretty much every related topic on this matter but i didn't found a solution so far. The closest i found is <a href="https://github.com/nightwatchjs/nightwatch/issues/1368" rel="nofollow noreferrer">https://github.com/nightwatchjs/nightwatch/issues/1368</a> however that mat...
1
1,419
Css is not loading correctly when I follow a link
<p>I have an issue with my css. </p> <p>On the homepage it loads up fine but when I go to a link on my site the css does not load correctly. So basically the below code works fine on index.html but when I go to any link indicated below it craps out. </p> <p>All of the links have the exact same code so I dont understa...
1
1,747
How to do a side slide submenu?
<p>I managed a vertical slide side menu with a menu button. When I click on it, a menu appears/disappears from the left. I want to achieve the same effect when I click on a menu item that has a submenu. I did many attemps with no luck yet. I appreciate any suggestions of how to modify or to add to my code. (I am aware...
1
3,098
java.lang.NoSuchMethodError: org.springframework.web.portlet.context.ConfigurablePortletApplicationContext.setId(Ljava/lang/String;)V
<p>I'm trying to deploy my application on jboss-portal-2.7.2, and it is giving me the following error:</p> <pre><code>04:17:23,879 INFO [DispatcherPortlet] FrameworkPortlet 'my_portlet': initialization started 04:17:23,882 ERROR [LifeCycle] Cannot start object org.jboss.portal.portlet.container.PortletInitializationE...
1
1,353
Circular dependencies cannot exist in RelativeLayout
<p>I am rendering a View into a <code>Bitmap</code>. I need a balloon with a pointer at the top or at the bottom, based on if it fits on the screen. For that I use a <code>RelativeLayout</code>, because I need the pointers to be partially over the balloon:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &l...
1
1,176
Unable to install rabbitmq due to incorrect versions of erlang dependencies
<p>I have <code>erlang 21.3</code> installed:</p> <pre><code>$ erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell "21" </code></pre> <p>But the <code>rabbitmq</code> installer does not think so:</p> <pre><code>sudo apt-get install -y rabbitmq-server Reading package lists... Done Building ...
1
1,801
How retrieve Data on mouse hover on Line chart - D3.js
<p><a href="https://i.stack.imgur.com/Fk1Fn.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fk1Fn.gif" alt="enter image description here"></a> Task - I</p> <p>I have a line chart ,where values on the chart that are retrieved on mouse hover are not correct as i am using a wrong logic .Help me in show...
1
3,011
"Error in G * t(hat) : non-conformable arrays" error in adonis(), in Vegan , in R
<p><strong>ANSWERED: A single NA value in any column in either <code>data.frame</code> can cause this error.</strong></p> <hr> <p>I have a rather frustrating problem that I need help with. I'm trying to run a permanova in R, and I'm using <code>adonis()</code> in Vegan to do it. I have a species by sample <code>da...
1
1,419
Kafka streams - joining two ktables invokes join function twice
<p>i am trying to join 2 KTables.</p> <pre><code>KTable&lt;String, RecordBean&gt; recordsTable = builder.table(Serdes.String(), new JsonPOJOSerde&lt;&gt;(RecordBean.class), bidTopic, RECORDS_STORE); KTable&lt;String, ImpressionBean&gt; impressionsTable = builder.table(Serdes.String(), new JsonPOJOSerde&lt...
1
1,340
Android Material View Pager GridView Layout Design not proper
<p>am trying to implement a material view pager using <a href="https://github.com/florent37/MaterialViewPager" rel="nofollow noreferrer">this</a>. The pager is working properly. But what i need is a grid layout of cards under the view pager like <a href="https://i.stack.imgur.com/r71hO.png" rel="nofollow noreferrer"><i...
1
1,162
JmsTemplate and CachingConnectionFactory
<p>I'm finding some difficulties in trying to reduce the connection and session creation when sending messages to a Jboss Queue.</p> <pre><code>&lt;bean name="jbmTemplate-${jbmQueue}" class="org.springframework.jms.core.JmsTemplate" lazy-init="true"&gt; &lt;property name="sessionTransacted" value="true" /&gt; ...
1
1,151
C# Object Initializers and v2.0 compiler error
<p>I'm having an issue setting up one of my projects in TeamCity (v4.0), specifically when it comes to using Object Initializers.</p> <p>The project builds fine normally, however it would seem that TeamCity transforms the build file into something it likes (some MSBuild mutation) and when it comes to compiling the cod...
1
1,376
How to process CSV with 100k+ lines in PHP?
<p>I have a CSV file with more than 100.000 lines, each line has 3 values separated by semicolon. Total filesize is approx. 5MB.</p> <p><strong>CSV file is in this format:</strong></p> <pre><code>stock_id;product_id;amount ========================== 1;1234;0 1;1235;1 1;1236;0 ... 2;1234;3 2;1235;2 2;1236;13 ... 3;123...
1
1,165
Accessing asmx WebService Using WCF
<p>I am trying to access an old ASMX webservice using WCF by calling the <code>ChannelFactory.CreateChannel()</code> method.</p> <p>If the web service is created by WCF, everything is straightforward. I can instantiate the proxy client generated by the svcutil tool, or manually call the <code>ChannelFactory.CreateChan...
1
1,141
BoDi.ObjectContainerException thrown when tried to break down my step definitions to multiple file (C#, NUnit, SpecFlow)
<p>Initially I used a single step definition for my SpecFlow-C# automation tests, but when it became too long (~2K lines), I tried to break down to smaller pieces.</p> <p>I used a base to handle my hooks (BeforeTestRun, BeforeScenario, AfterScenario, AfterTestRun), initialize the driver and the logging. In the BeforeT...
1
1,129
Facebook Login Button: Workaround for bug of Chrome on iOS
<p>Currently, I am trying to solve a bug logged in Facebook Developer: <a href="https://developers.facebook.com/bugs/325086340912814/" rel="nofollow">https://developers.facebook.com/bugs/325086340912814/</a></p> <p>I am using ASP.NET MVC 3 with Facebook C# SDK and Facebook Javascript SDK.</p> <p>Here is javascript co...
1
1,653
Windows Forms: Activate method and Activated event
<p>When I load a form as follows:</p> <pre><code> MYFORM f = new MYFORM(); f.MdiParent = this; f.Show(); </code></pre> <p>its MyForm_Activated event fires. But when I invoke the form's <strong>Activate</strong> method:</p> <pre><code> // if form is already loaded just activate it: f.Activat...
1
1,034
Convert json string data back into python image object
<p>The code below get's image data from a form, and then converts so it can be json serializable.</p> <p>I want to show the image on the html template by converting the image data into base64, however i need to convert the json data (string) back into a python image object / data.</p> <p><strong>View</strong></p> <p...
1
11,341
Implementing a double linked list in C++, pointers and odd values
<p>I'm pretty rusty in C++ and I'm trying to implement a double linked list but I am having some reading violations and having some odd values being given.</p> <pre><code> #include &lt;iostream&gt; struct Node { int val; Node* next; Node* prev; }; class linkedList { public: linkedList()...
1
2,154
Android Application that connects to remote server
<p>I am trying to build an Android App on Platform 2.2 Froyo. The app is supposed to connect to a remote server, fetch data from it and display to user in a different language.</p> <ul> <li><strong>So my question - What technologies I need to learn so that I can build the above app.</strong></li> </ul> <p>Note - I ha...
1
1,582
Creating an INotifyPropertyChanged proxy to dispatch calls to UI thread
<p>I would like to create a dynamic proxy for binding WinForms controls to objects changed by a different (non-GUI) thread. Such a proxy would intercept the PropertyChanged event and dispatch it using the proper SynchronizationContext.</p> <p>That way I could use a helper class to do the job, without having to impleme...
1
1,097
EclipseLink Throwing Exception?
<p>i'm working on a project based on jersey implementation of REST,and i i'm using JPA for persistence,spring IoC for DI.Now i have some objects that must be marshalled with JAXB (MOXy).Following step by step <a href="https://stackoverflow.com/questions/3941479/jaxb-how-to-marshall-map-into-keyvalue-key">this tuto</a> ...
1
3,127
value <br of type java.lang.String cannot be converted to JSONObject In Android Programming
<p>When I am Create new Android Application to Fetch data from my server like xampp, But Its not Retrieval and i am using catch statement for itz exception then it says as JSONObject cannot convert it, How to Solve?</p> <p>Solution for this, Please Help me? Thanks in Advance</p> <p>My Full Java Code</p> <pre><code> ...
1
12,611
prolog depth first iterative deepening
<p>I am trying to implement a depth first iterative deepening search of a state space graph. I have a graph with three vertices and their are two activating edges and two inhibition edges. Each node has a binary value, collectively this is the state of the graph. The graph can transition to a new state by seeing if one...
1
2,380
How can I create navbar drop-down with multiple columns in Bootstrap?
<p>I want to know how to create a navbar drop-down containing multiple vertical columns using Bootstrap. In my case, my links are categorized and I want one column for each category type.</p> <p>Here is an example of a Bootstrap navbar drop-down with multiple columns:</p> <p><a href="https://i.stack.imgur.com/PwDdi.p...
1
1,378
Mysql slow query: INNER JOIN + ORDER BY causes filesort
<p>I'm trying to optimize this query:</p> <pre> SELECT `posts`.* FROM `posts` INNER JOIN `posts_tags` ON `posts`.id = `posts_tags`.post_id WHERE (((`posts_tags`.tag_id = 1))) ORDER BY posts.created_at DESC; </pre> <p>The size of tables is 38k rows, and 31k and mysql uses "filesort" so it gets prett...
1
2,411
Multiple Elements in Custom ConfigurationSection
<p><strong>UPDATE</strong>: Custom Configs are freaking HARD! >.&lt; While I've learned some things about XML; evidently it's impossible to store CDATA in an element, so I've rephrased this question to fit the modified structure. Please ask me any questions for clarity. I've been working on this issue for around a mont...
1
2,325
org.hibernate.LazyInitializationException: could not initialize proxy - no Session when I use EAGER initalization
<p>I have hibernate mapping:</p> <p>Prepod:</p> <pre><code>@Entity @Table(name = "prepod") public class Prepod { private Long id; private String name; @Column public String getName() { return name; } public void setName(String name) { this.name = name; } List&lt;Stud...
1
1,520
angular.js:12520 TypeError: Cannot read property 'post' of undefined
<p>I am very much new to angularjs, i have look many webpages but not get any concrete solutions. </p> <p>What i am trying to achieve is i am creating one factory service to authenticate the user. After successful authentication it navigate to dashboard page. </p> <p>i am getting the following error:</p> <pre><code>...
1
1,201
Calling PHP webservice from .Net
<p>I have created a Webservice in PHP and I'm trying to call it from my C# code.</p> <p>When I try to create a proxy using wsdl utility</p> <blockquote> <p>wsdl <a href="http://localhost:5365/DemoService.php?wsdl" rel="nofollow">http://localhost:5365/DemoService.php?wsdl</a></p> </blockquote> <p>I get this errors<...
1
1,327
New Page For OpenCart
<p>I am trying to create a whole new page for OpenCart for a News section, and I was pretty sure I created all the right files, the page renders but it is blank in the middle (Renders the header and footer fine). What did I miss?!?</p> <p>Link To Hit Page: <code>index.php?route=common/news&amp;news_id=A_NUMBER</code><...
1
1,576
SWIG Importing generated class from a different module and package into the current class
<p>I'm having difficulty getting the SWIG <a href="http://www.swig.org/Doc1.3/Java.html#java_directors_typemaps" rel="nofollow">typemap(javapackage)</a> to work properly. I tried making a simple version of the problem, and even that seems to fail.</p> <p>foo.h:</p> <pre><code>#ifndef FOO_H #define FOO_H class Foo { ...
1
1,193
Trouble getting jqplot highlighter going
<p>I have been working with JQPlot for a week or so now and am banging my head against the wall trying to get highlighting working. I am loading the following CSS and .js files...</p> <p>jquery.jqplot.min.css<br /> jQueryCombined.css<br /> ...a couple others that don't relate...<br /> <br /> jquery-1.4.2.min.js<br />...
1
2,943
update UI Main-thread from sub-thread AsyncTask
<p>i am a newbie to android and have lots of trouble to get a simple update for a gui working.</p> <p>from my main class i call a AsyncTask:</p> <pre><code>RepeatTimerTask task = new RepeatTimerTask(text, timerDummy); task.execute(null); </code></pre> <p>The async class is like follows</p> <pre><code>class RepeatTi...
1
2,114
How to send command to console application from GUI application
<p>I have a console application that I launch from a GUI applicaiton. The console application takes parameters for filenames to parse and process. Currently I am able to capture its output and display it in the GUI application but I would like to be able to send commands to it so as to control or even halt its executio...
1
1,222
Reference and Guidelines for Dynamic Layout using JavaFX
<p>I am using FXML via Scene Builder to establish some JavaFX scenes and formatting templates. Having scanned the web and Oracle tutorials, I still find determining the '<em>rules</em>' around how layouts size/wrap/fit-contents/etc. and spacing between elements and compoents to be 90% a black art to me. What I'm missi...
1
1,633
Trying to mock static system class with PowerMock gives VerifyError
<p>I am trying to mock JOptionPane static methods, and am stuck at a Java.lang.VerifyError. All versions are current, since I just downloaded PowerMock for Mockito, and all their dependencies.</p> <p>I cannot use the answer given for a previous question, to wrap the class and subclass the wrapper - this is all over o...
1
1,824
model.predict() returns classes and not probabilities
<p><strong>Hello!</strong></p> <p>I am using Keras for first time. I trained and saved a model. <em>(as a json file and its weights too)</em> The model it is intended to classify an image among 3 classes. My compile method :</p> <pre><code>model.compile(loss='categorical_crossentropy', optimizer='adam'...
1
1,436
Unable to set proxy :selenium.common.exceptions.WebDriverException:Access Denied
<p>I want to use Selenium Webdriver and I am unable to do so because when I run my code, I get the following exception. My code is very basic and as follows.</p> <pre><code>from selenium import webdriver driver = webdriver.Firefox() driver.get("http://www.google.com.bh") assert "Google" in driver.title driver.close() ...
1
1,132
how to match string value in" if else" condition in android?
<p>here i am displaying 1 listview which is coming from server.if i click on any item i want some alertbox to open...but for that i need match the condition eg.if listitem string matches with "Bianca pizza" then open alertbox else toast "hello"..here in my code its not taking listview item string .</p> <p>its weird i...
1
3,129
why react props are passed undefined to the child component?
<p>I have get some data from db , when I console log them it works nice. and also when I stringfy the passed props are OK and displayed on the screen as they are expected.</p> <pre><code>import axios from 'axios' import { URL } from '../../../../config' import Header from './header' class NewArticle extends Componen...
1
1,155
ImageView not showing captured photo android
<p>I am new in android development. I have been trying to access the camera, capture a photo, and then return to my activity and show it on an ImageView.</p> <p>Here is the code of my activity (very simple, it just do that)</p> <pre><code>public class Profile extends Activity { private static final int CAMERA_R...
1
1,172
Check iOS Simulator type and version
<p>I have following code snip to detect the iOS Device.</p> <pre><code>NSString * platformNSString () { size_t size; sysctlbyname("hw.machine", NULL, &amp;size, NULL, 0); char *machine = malloc(size); sysctlbyname("hw.machine", machine, &amp;size, NULL, 0); NSString *platform = [NSString stringWith...
1
2,066
why padding not working in cards
<p>i am newbie to web development and i am working on materialize cards.It is working correctly in laptop but when i try to run it in iPad the cards are getting overlap.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-c...
1
2,117
Problems with updating anaconda and installing new packages
<p>I am trying to install seaborn on anaconda on Ubuntu-Linux. </p> <pre><code>conda install -c anaconda seaborn=0.7.1 </code></pre> <p>I am getting the following error message:</p> <pre><code>Fetching package metadata .../home/moritz/Python/anaconda3/lib/python3.5/site-packages/requests/packages/urllib3/connection....
1
2,201
Need assistance setting up a class to send email, it gets called from the main class
<p>I am trying to send an email from my application when a user logs in for the first time. The email consists of a activation code.</p> <p>Update: I downloaded the latest javamail API and also the latest JAF (JavaBeans Activation Framework) and it does not compile due to imports being unknown symbols. How do I import...
1
2,203
Deploying with capistrano with local repository on windows throws error
<p>For Capistrano to work, does the repository have to be accessible to the outside? </p> <p>I developed a rails app in a local directory where my git repository is, too.</p> <p>I regularly do:</p> <pre><code>git add . git commit -am "it works after my recent changes" </code></pre> <p>now I want to deploy:</p> <pr...
1
1,169
PyQt5: Using QtDesigner, how do you connect a signal with a slot/callable defined in a module
<p>I am a total beginner with PyQt5, please excuse my ignorance<br> I am trying to connect a push button with a function that I defined </p> <pre><code>import sys from PyQt5 import QtGui, QtWidgets,uic def PrintSomething (): print("Hello world") if __name__ == '__main__': app = QtWidgets.QApplication(sys.ar...
1
1,670
Keras: CNN model is not learning
<p>I want to train a model to predict one's emotion from the physical signals. I have a physical signal and using it as input feature;</p> <blockquote> <p>ecg(Electrocardiography)</p> </blockquote> <p>In my dataset, there are <strong>312</strong> total records belonging to the participants and there are <strong>180...
1
5,557
How do i display a FormArray of GroupLists?
<p>I am trying to make an interactive form that on each row lists an item together with a remove button (called verwijderen in my example). These items are retrieved from the database and each instantiated as a custom object called <code>LaborPeriod</code>. </p> <p>These objects are then transformed into <code>FormGr...
1
2,740
Find and replace all names of variables in VBA module
<p>Let's assume that we have one module with only one Sub in it, and there are no comments. How to identify all variable names ? Is it possible to identify names of variables which are not defined using <code>Dim</code> ? I would like to identify them and replace each with some random name to obfuscate my code (O001101...
1
1,688
Uncaught type error: $(...).datepicker() is not a function
<p>I am trying to use the jQuery datepicker function but I am receiving an error <code>Uncaught type error: $(...).datepicker() is not a function</code>. I have gone through my files and do not see a double reference to jQuery or incorrect file order in the <code>application.js</code>. Could someone help point out what...
1
1,143
Get link to Sonar dashboard in Jenkins when calling 'gradle sonarRunner'
<p>With the Jenkins build step <code>Invoke Standalone Sonar Analysis</code> (which is available via the <a href="http://docs.codehaus.org/display/SONAR/Jenkins+Plugin" rel="noreferrer">Sonar plugin</a>) you get this nice link to the SonarQube dashboard in the job overview: <img src="https://i.stack.imgur.com/j8iFq.png...
1
1,061
Show count concatenated to labels using chart.js
<p>I am using Chart.js to construct pie chart, is there any way to concatenate the Count to the label (Displaying numbers and percentages in a pie chart legend)? </p> <pre class="lang-js prettyprint-override"><code>createChart : function() { debugger; var chartData = [60, 90, 120, 150]; var chartLabels =...
1
1,050
Simple bandpass filter in java
<p>I am trying to write a simple band pass filter following the instructions in <a href="http://www.dspguide.com/" rel="nofollow">this book</a>. My code creates a blackman window, and combines two low pass filter kernels to create a band pass filter kernel using spectral inversion, as described in the second example <a...
1
1,729
Android - How to filter the RecyclerView of Firebase?
<p>I've recently added a searchBar to my Android Firebase app, but I really can't find how to filter data in my app. I need to search in "title", "desc" and "username" childs, as seen in the <a href="https://i.stack.imgur.com/zYJg7.png" rel="nofollow noreferrer">photo.</a></p> <p>What should I do? Thanks</p> <p>[Ran...
1
8,677
Ruby Net::HTTP responds with OpenSSL::SSL::SSLError "certificate verify failed" after certificate renewal
<p>We recently renewed the SSL certificate of our site, and the following occurs on Mac OS El Capitan 10.11.3:</p> <pre><code>require 'net/http' Net::HTTP.get URI('https://www.google.com') # =&gt; "&lt;HTML&gt;...&lt;/HTML&gt;" # The site whose certificate got renewed Net::HTTP.get URI('https://www.example.com') # =...
1
1,369
Why are JQuery autocomplete results not showing in browser?
<p>I have a working fiddle, but the autocomplete does not display anything in the browser. The fiddle can be seen here: <a href="http://jsfiddle.net/dS5YL/" rel="nofollow">Working Fiddle</a></p> <p>In the HTML, I have one input element for testing purposes:</p> <pre><code>&lt;head&gt; &lt;link rel="stylesheet" href=...
1
2,312
checkbox disabling and enabling in wpf
<p>IN my below code i have 2 check boxes chkQAReviewMandatory and chkIsAnsMandatory. My requirement is when i check the chkQAReviewMandatory checkbox then automatically i need to checkbox chkIsAnsMandatory is checked and disabled, If chkQAReviewMandatory is not checked then uncheck the chkIsAnsMandatory and also enabl...
1
2,252
How to process and aggregate Kafka Streams with custom Objects?
<p>So basically I have Account class. I have data. I want to send those objects into my topic with producer. That is okay for now. Later on, I want to do aggregation with Kafka Streams but I can not because some Serde properties is wrong in my configuration, I think :/. I dont know where the error is. My producer works...
1
4,116
Is there a stable way to detect shaking event?
<p>I've tried to detect shaking event using accelerometer. I've found that when I give a contiuous shake to the phone, the value difference of the acceleration is quite stable. But when I rotate the phone, there's always a big change on the value( the value is usually bigger than "shaking without rotation"). I want to...
1
1,054
DLL runtime error crashes my c# app - how to avoid it?
<p>Within my windows app, i'm using a c++ DLL wrapped with a .NET DLLs (specifically - the quickfix engine). While running, once every day (not at any specific time), in one of the a constructor of one of the built-in classes throws a runtime error. Even though the error is caught and reported (to a log file, and the d...
1
1,431
What is the best way to post form with multiple components using Vue js
<p>as I'm on my Vue spree (started recently but so far I'm really enjoying learning this framework) couple of questions rised up. One of which is how to post form from multiple components. So before I continue forward I wanted to ask you what are you thinking about this way of structuring and point me in right direct...
1
2,075
How to set Scheduled notification in android
<p>I want my app to throw a notification after 10 seconds even if the app is not running. I have made use of the <code>AlarmManager</code> but unable to get the notification at the desired time. I am able to get a toast at that time but not the notification. Any help will be deeply appreciated. </p> <p>This is my Alar...
1
1,230
WebSocket connection to 'ws://localhost:8080/CollabEdit/echo' failed: Error during WebSocket handshake: Unexpected response code: 404
<p>I am trying to use websockets in my Servlets project. J2EE ver. :3.1 Server: Glassfish 4.0 But I get an error that says :</p> <pre><code>WebSocket connection to 'ws://localhost:8080/CollabEdit/echo' failed: Error during WebSocket handshake: Unexpected response code: 404 </code></pre> <p>Also, I get <strong>java.l...
1
4,168
more than one operator ">>" matches these operands
<p>Wherever I use ">>" with stringstream it gives me that error. I don't see why I should be getting this error because I have only overloaded >> to work with <code>AbsClass</code>, not with any other types.</p> <pre><code>#include "Queue.h" #include "AbsClass.h" #include &lt;fstream&gt; #include &lt;iostream&gt; #inc...
1
1,775
About converting YUV(YV12) to RGB with GLSL for iOS
<p>I'm trying to convert YUV(YV12) to RGB with GLSL shader. </p> <p>As below step.</p> <ol> <li>read a raw YUV(YV12) data from image file</li> <li>filtering Y, Cb and Cr from the raw YUV(YV12) data</li> <li>mapping texture</li> <li>send Fragment Shader. </li> </ol> <p>but result image is not same as raw data. </p> ...
1
2,772
Adding a custom UIViewcontroller to subview programmatically but getting an error message "Cannot convert value of type..."
<p>I am trying to add a custom <code>UIViewController</code> class (<code>UIPickerView</code>) to my main <code>ViewController</code> programmatically in <code>Swift</code> (without using a storyboard) but I get the following error message...</p> <blockquote> <p>"Cannot convert value of type 'HabitViewViewController...
1
1,816
Websockets on Tomcat 8 + IIS 8 with ARR 3 are not working
<p>I've scoured the internet trying to find anyone who might be experiencing this issue but come up empty handed. So here goes:</p> <p>We have a java web application (based on Spring MVC 4). It sits behind Microsoft IIS acting as a load balancer / reverse proxy using Application Request Routing (ARR) v3.</p> <p>This ...
1
2,185
Nestable plugin
<p><strong>SOLVED</strong></p> <p>I have one question.</p> <p>Is possible use Nestable jQuery Plugin with jQuery Cookie on "Expand" and "Collapse"? To remember "Expand" and "Collapse" position.</p> <p>Link to script: <a href="http://dbushell.com/2012/06/17/nestable-jquery-plugin/" rel="nofollow">Nestable jQuery Plug...
1
1,337
Serving static files with actix-web 2.0
<p>I'm struggling with actix-web 2.0 framework of rust. I want my rust server to serve the my index.html file but most of the help available is of older versions and hence a lot has changed in newer version. I tried following code but it's not working for actix-web 2.0. Please suggest some working solution in actix-web...
1
1,128
httpAsyncClient.execute() callback method not invoked
<pre><code>package com.lt.uadb.app.resource.test; import java.util.concurrent.Future; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.concurrent.FutureCallback; import org.apache.http.impl.nio.client.DefaultHttpAsyncClient; import org.apache.http.nio.client.H...
1
3,299
Read and notify BLE android
<p>I wrote a code in which I am able to read a notify value from a hear rate sensor when it changes.</p> <p>But I need also to read the battery level of the device, which is another service from the emulated device, but whenever I try to read the battery value, the first part don't even send the notify values from the...
1
5,473
How to make TRichEdit behave like WordPad on Windows 7 when changing font for certain non-text characters?
<p>With the help of <code>Sertac Akyuz</code>, it seems the direct reason is related to the charset of <code>\bullet</code>: In my localized Windows, the <code>\bullet</code> input by typing Alt(0149) always gets <code>\fcharset134</code>, and attempts to change its font through <code>EM_SETCHARFORMAT</code> always fai...
1
4,510
Mysql Inner Join with OR condition - Query optimization
<p>Here's my query </p> <pre><code>SELECT tum.user_id, tum.first_name, tum.last_name FROM di_webinar t LEFT JOIN tbl_event_registrants ter ON ter.event_ref_id = t.webinar_ref_id LEFT JOIN tbl_event_attendees tea ON tea.event_ref_id = t.webinar_ref_id INNER JOIN tbl_user_master tum ON tum.user_id = ter.user_ref_id...
1
6,184
Can't get my ruby on rails project to create a database
<p>This is probably a newbie setup problem. But here goes...</p> <p><strong>Machine setup</strong></p> <p>I have a Windows 7 64 bit machine running rails 4.0.0 and ruby 2.0.0 I have the following in my Path </p> <pre><code>C:\Ruby200-x64\bin;C:\RubyDevKit\bin;C:\RubyDevKit\mingw\bin; </code></pre> <p><strong>Projec...
1
3,865
Error when connecting to firebase/firestore: Could not reach Cloud Firestore backend
<p>I am developing an app in swift and using Firestore to store my data. It’s the first time that I am using Firebase. </p> <p>Yesterday I connected the <code>firebase</code> and <code>firestore</code> to my project and everything worked fine. Today suddenly I got an error that It could not connect to the Firestore ba...
1
1,718