title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Differences in poll() between Linux and OS X when pollfd is changed on another thread
<p>I'm trying to get libwebsockets running in a multithreaded environment on OS X. I couldn't trigger sending Data from a different thread than the main service thread. On libwebsocket docs it was implied this should be possible (<a href="http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/test-server/test-ser...
2
1,800
CSS Background not working on Codepen
<p>I've been trying to put my code up on Codepen but for some reason, the #left div background just doesn't display. It however, works fine locally. I've tried using image urls, background colors and everything to fix it, but nothing has worked so far. Any help would be appreciated!</p> <p>Only the #left div is suppos...
2
1,092
Spring Boot: redirect from HTTP to HTTPS results in 405 error for PUT method
<p>I have a problem very similar to this one: <a href="https://stackoverflow.com/questions/42108498/redirect-post-method-http-https-http-status-405-spring-boot">Redirect Post method HTTP -&gt; HTTPS - HTTP Status 405 (Spring boot)</a></p> <p>Basically, I'm trying to make Spring Boot serve both HTTP and HTTPS with the ...
2
1,504
How to restart a game in Phaser 3?
<p>I'm new to Phaser 3 as well as game development then I have a problem here. I'm trying to restart a game scene but I get an error saying &quot;Uncaught TypeError: this.scene.restart is not a function&quot; when I run this</p> <pre><code>var playbtn = this.add.dom(390, 600).createFromCache('play-btn'); playbtn.s...
2
3,085
Grid item option to dynamically calculate and apply height of the item
<p>I've been working with <a href="https://tiberiuzuld.github.io/angular-gridster2/" rel="nofollow noreferrer">Angular Gridster</a> in the last two days to help create a "site builder" tool. One of the requirements of the site builder tool include allowing components in the workspace area to be moved around freely. I h...
2
1,394
How to display id from SQLite db click on listView item in Android?
<p>I want to retrieve id from <code>SQLiteDatabase</code> when click on <code>ListView</code> item in next activity. When I run the application it getting <code>NullPointerException</code>.</p> <p>I have declare id in String in <code>DataBase_Adapter class</code>:</p> <pre><code>public static final String KEY_NEW_LEA...
2
2,528
SAPUI5 Smartable not showing the inital fields
<p>I am trying to build a simple smarttable, using a CDS with annotation, I expect the columns to be displayed automatically but no column or selection field are displayed automatically. When I try to create a report with fiori element it is working fine but not with my freestyle app and smarttable. What is missing ?</...
2
1,819
Dropdown menu 4 level depth
<p>I'm a javascript noob and try to make the below menu wirking corectly with 4 level depth. With 3 level it work corectly, but with 4 level, when I put the mous on "Dupa tara" it show the countries and "Cramele Recas" too. Can someone help me to make it work corectly? Here is the code: HTML</p> <pre><code>&lt;div id...
2
2,088
Highlight country around the border from your search area only
<p>I have to make a <a href="https://www.google.com/fusiontables/DataSource?docid=1WkOReHYpsvNiACHeL5tOxsuYO-nRmzOdXm7B-GDo" rel="nofollow">KML file</a> from the Dutch country.</p> <p><strong>What I want to do is:</strong></p> <p>I want to Highlight only the countries around the border from my search area.</p> <p><s...
2
2,033
how to addMarker from google sheet to google app script
<p>i have two column in google sheet , that contain latitude and longitude, i use below foramt:</p> <pre><code>var map=Maps.newStaticMap().setLanguage('en') .beginPath() .addMarker(lat, long) .addMarker(lat1, long1) .addMarker(lat2, long2) .addMarker(lat3, long3) .endPath().getAs('i...
2
1,378
Temporarily Remove Cancel Button if Subscription Active less than 3 months
<p>I am in need of some help temporarily removing the cancel button in the "My Subscription" page within "My Account". I would like to <strong>hide the cancel button until it has been at least 3 months</strong> (or 90days) since the user has subscribed. Where after they have been subscribed for 3 months, the cancel but...
2
1,130
WCF Service with custom username password authentication problem
<p>I'm trying to secure WCF service with https and username &amp; password. I'm using TransportWithMessageCredentials security mode and wsHttpBinding. Right now I'm having trouble with the custom UserNamePasswordValidator, when I compare hardcoded values like this </p> <pre><code>if (userName == "user" &amp;&amp; pass...
2
1,231
MySqlDataReader always Returning False even though data is there In Asp.net
<p>Hii Guys !!! I made one C# class and one handler in Asp.net..In My C# file I made a function which is as Below:</p> <pre><code>public MySqlDataReader Consulta(String sql){ String error=""; try { string connectionString = "Server=*****;Port=3306;Database=db;UID=*****;Pwd=****;poo...
2
1,050
Why does calling MessageBox.Show hang my application?
<p>I have a .NET winforms application that includes this code:</p> <pre><code> private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) { this.BeginInvoke(new MethodInvoker(DeleteCurrentIssue)); } void DeleteCurrentIssue() { RequestsEntity item = (RequestsEntity)(re...
2
9,334
How to prevent box shadow from being cut off?
<p>I just started learning Dart and Flutter development and have been playing with BoxShadow. As you can see in the image below, the shadow for the Bar, Boo and Faz cards are cutoff while that for the text box shows up. How do I ensure the shadows for the cards show up correctly?</p> <p>Here's my code:</p> <pre><code>i...
2
1,826
Kibana query on NESTED object returns estimated price why?
<p>In Kibana visualization I built a bar chart graph that aggregates orders per label bucket (e.g: USD/CAD). Then I display the sum of orders price per bucket for each of the orders inside it.</p> <p>My chart visualization returns a wrong price which seems to be coming approximated</p> <p><a href="https://i.stack.img...
2
12,639
Can't get active directory group details by distinguished name
<p>i am trying to get active directory group details by group dn as follows:</p> <p><strong>1- connect to ldap:</strong></p> <pre><code>public static LdapContext connectToLdap(String host, String userDN, String userPassword, boolean ssl) throws Exception { System.out.println("connectT...
2
1,567
Get object from ListView's ListItem on click
<p>I have a list view populated with an observable list </p> <pre><code>availableSymbolsTable.setItems(watch.GetAvailableSymbols()); </code></pre> <p>The cell factory:</p> <pre><code>availableSymbolsTable.setCellFactory(new Callback&lt;ListView&lt;Symbol&gt;, ListCell&lt;Symbol&gt;&gt;() { @Over...
2
1,202
How to tell if a program uses dynamic dispatch by looking at the assembly
<p>I read a post on Reddit on <a href="http://www.reddit.com/r/programming/comments/rr2dj/herb_stutter_jit_will_never_be_as_fast_as_native/" rel="nofollow">Herb Stutter: JIT will never be as fast as native</a> and somebody made a comment that it was incredible somebody called Herb "misinformed" that C# uses virtual met...
2
1,256
How can I use kartograph.js?
<p>Is there anyone who has used the library kartograph.js and 'kartograph.py'? Do you know if I need 'kartograph.py' to be able to run?How can I use the library 'kartograph.py' without installing python? Because I have a problem with 'kartograph.js' when I build the 'BBOX' in the 'kartograph.js'</p> <p>The error in th...
2
2,022
Could not allocate CursorWindow '/pos-db' of size 2097152 due to error -24
<h1>Exception Information</h1> <pre><code>cannot open file at line 30176 of [00bb9c9ce4] (14) os_unix.c:30176: (24) open(/data/data/c/databases/pos-db-journal) - (14) cannot open file at line 30176 of [00bb9c9ce4] (14) os_unix.c:30176: (24) open(/data/data/c/pos-db-journal) - (14) statement aborts at 14: [SELECT...
2
1,150
asp.net: textboxes disappear after i publish application
<p>When i compile my web app and run it in the browser, it looks good and the textboxes appear; however, after i publish it, the textboxes are not visible anymore. i believe it is a CSS error because the textboxes still exist. i am able to type in them; however it does not show the white background of the textbox, it s...
2
6,601
CentOs 7 : ssl_stapling_init_cert
<p>I have setup my web server with CentOs 7 (I use the tutorial HowToForge), when i try to access to ISPConfig (<strong>.</strong>.<strong>.</strong>:8080), the page display the presentation page of Apache HTTP Server, but not the panel of ISPConfig.</p> <p>Error file :</p> <blockquote> <p>[ssl:error] [pid 1096] AH0221...
2
1,233
how to download or read content from google drive files using service account
<p>I am able to list all <strong>files/docs</strong> from the google drive using a service account with the <strong>access token</strong>. <strong>REST API</strong>. <strong>Python</strong> script and I am not able to download/read content from documents. its throwing error like below. </p> <pre><code>https://www.goog...
2
3,309
how to create Notification SERVICE for my chat application?
<p>So I have created a message application which allows users to communicate with each other. I am using Firebase to do this. now the problem is I want create a notification in the background (when the app is in the background or closed). similar to messenger/whatsapp where you get a notification for unread messages.</...
2
1,556
Strange errors in postfix mail.warn log
<p>How to avoid getting strange records in the mail.warn file? I started to receive it after Debian upgrade from jessie to stretch and postfix upgrade from 2.11.3 to 3.1.8. It is generated once, just after the system reboot.</p> <p>Despite the strange errors recorded in mail.warn file, it seems that postfix works fine...
2
2,159
Creating an OpenXava 4.6 portlet for Liferay 6.1.1 CE
<p>I created a portlet in OpenXava 4.6. But it is not running properly once deployed under Liferay 6.1.1 CE GA.</p> <p>These are the problems:</p> <p>a.) The web.xml created by OX 4.5.1 and 4.6 is not recognized by Liferay 6.1</p> <pre><code>15:23:28,665 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner]...
2
1,121
Restructure code to avoid Angular Change Detection Infinite Loop
<p>My model has a one to many relationship between <strong>Post</strong> and <strong>Img</strong>s i.e. each Post has a number of <strong>Img</strong>s. One of the simplified ways of displaying this structure would be: </p> <pre><code>&lt;ul&gt; &lt;li *ngFor="let post of posts"&gt; {{post.postId}} &lt;...
2
1,476
Spring data JPA repository delete query getting fired after returning from service
<p>I am using spring data jpa in my spring boot application.</p> <p>Below is my SchoolService method to delete school by school id.</p> <pre><code> @Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false) public boolean deleteSchool(Long id) { log.debug("Deleting school entry ...
2
1,806
Return data using JavaScript from view to controller in MVC
<p>I have WCF service that should be consumed by a MVC app. Now I want to delete items from a list using checkbox. When I receive data in my controller, the first WCF method that is called (findAccRoleMapp) should find all data in the table and then call another WCF method (removeAccForRole) to delete that data. </p> ...
2
1,066
Makefile for nrf51sdk
<p>I am working on programming a nrf51822 evaluation board(<a href="https://www.nordicsemi.com/eng/Products/Bluetooth-R-low-energy/nRF51822-Evaluation-Kit" rel="nofollow">This one</a>). I have been looking at <a href="http://www.funwithelectronics.com/?id=168" rel="nofollow">this</a> site to program it and have gotten ...
2
1,383
card game drag and drop
<blockquote> <p>Can someone play this game and explain to me why the <code>.correct.length</code> class in line 102 is equal to 1?. I put an alert box on it to confirm the length. Here is a working fiddle <a href="http://jsfiddle.net/6haMV/141/" rel="nofollow">http://jsfiddle.net/6haMV/141/</a></p> </blockquote> ...
2
2,860
hive array posexplode issue
<p>Hi I have a scenario using hive array explode</p> <p>I have a hive table with multiple arrays (4 arrays)</p> <pre><code>desc manager; OK supervisorid int reportee_name array&lt;string&gt; reportee_age array&lt;s...
2
1,399
HTML Pattern, how to prevent number in name fields
<p>I'm building a form which will allow users to sign up. The technique that I used is the pattern attribute of HTML. Here is the code for the whole form.</p> <pre><code>&lt;form id="signupForm" name="signupForm" action="https://www.google.com/" method="POST"&gt; &lt;fieldset id="signup" title="User Infomatio...
2
1,966
Jquery hide first 12 elementes, show next 12 elements
<p>what i am trying to do is make the first 12 elements hidden and show the next 12 elements.</p> <pre><code>//this is dynamic loaded content &lt;div class="inner-content"&gt; &lt;div class="front-pro"&gt;1&lt;/div&gt; &lt;div class="front-pro"&gt;2&lt;/div&gt; &lt;div class="front-pro"&gt;3&lt;/div&gt;...
2
1,674
accelerometer in android
<p>The following example is taken from internet. In all the example the code is explained using a seprate thread for sensor manager. Could you please let me know why all the accelerometer is explained with a seperate thread for SensorManager</p> <pre><code>package com.example.myapp1; import android.app.Activity; impo...
2
1,523
How to solve inconvertable types cannot cast "Android.support.v4.app.fragment" to "packagename"
<p>I am creating an android application that consists of navigation drawer in android studio. I am getting an error called inconvertable types cannot cast <strong>"How to solve inconvertable types cannot cast "Android.support.v4.app.fragment" to "packagename""</strong> please helpme howto solve this. This is my activit...
2
1,310
lein repl fails due to authentication behind corporate proxy (windows 7)
<p>I am having issues with proxy authentication when running <code>lein repl</code>. I am using</p> <pre><code>&gt; lein --version Leiningen 2.8.1 on Java 1.8.0_181 Java HotSpot(TM) 64-Bit Server VM </code></pre> <p>on Windows 7 64 bit. I have set the http_proxy and https_proxy environment variables. I installed ...
2
4,456
How to prevent SAPUI5 lifecycles from running twice?
<p>I have a custom control that contains a scatter plot chart. When a button is pressed, it opens a modal/dialog control that displays the chart (see image below). The only problem is that the chart is displayed twice! Upon opening the dev tools, it appears that all of the lifecycles are rendered twice. I have no idea ...
2
11,197
Verify username and a salted password
<p>I have a application that usues JDBC Jquery and MYSQL that lists a table with quotes and the user can add quotes.</p> <p>i have a loggin page where i check the input of username and compare it with something that exits in the database. like this and it works fine</p> <pre><code>public Boolean findByUsername(String...
2
3,685
Bootstrap menu doesn't open on click in Navigation bar
<p>Bootstrap menu is failed to open when I "click" on it.Meaning I can't see any item in it. But when I press "Down key" from keyboard it open immediately. This is particularly in case when I run it form xaamp server. But when I open direct in browser without any server then I can see menu on click. </p> <p>Snap shot...
2
2,123
Check-box - how to get the data in a row if the checkbox in a row is checked?
<p>I want to make a list of medicines and check all the medicines that I want to buy. I've thought of using a checkbox to check all the medicines that I wish to order then transfer the name of the medicine to the Javascript once the order button is clicked. </p> <p>I'm quite new to Javascript and jQuery so I'm not sur...
2
1,045
shiny - renderImage does not work
<p>I have a shinyApp that, at some point, use a function 'pathview' to generate a png image in the working directory. I want to use renderImage to dispay it in the App, but it seems that shiny looks into a directory of temp files (it's the case for another image generated with another function, which works). How can I ...
2
15,212
Mysql query to display results of all students for a semester
<p>I have a semester_student_marks table with the following structure - </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table border="1"&gt; &lt;tr&gt; &lt;th&gt;Seme...
2
1,386
Could not autowire field/expected at least 1 bean which qualifies as autowire candidate
<p>I am pretty new to Spring and although I have used it for a couple of projects before and I've seen a lot of similar questions, I can't figure out what is wrong with this exception: </p> <pre><code>SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.Cont...
2
3,092
Parse JSON object in c# passed through jquery Ajax
<p>I know this is one of the most commonly asked questions in ASP.net but my scenario is a bit different. </p> <p>I have a json object which I am converting to a string and passing it to web method via jquery ajax.</p> <pre><code>function Save() { var content = $('#radGridSMT_ctl00 tr').not('#radGridSMT_c...
2
1,295
Vuetify 2 skeleton-loader with manipulating "loading" in Vuex store
<p>I am using the Vuetify <code>v-skeleton-loader</code> component wrapping a <code>v-data-table</code> component.</p> <p>The <code>data-table</code> component is using server-side pagination and sorting.</p> <p>To accomplish the server-side pagination, documentation suggests to watch the <code>options</code> object ...
2
1,305
How to enable shooting using angles?
<p>Sitting and making a 2d shooting game where my player needs to be able to shoot up left and up right using angles. The problem I have is I can't find a way to make this work.</p> <p>So how do I calculate the angle to shoot the bullet a specific angle?</p> <p>My code in player class</p> <pre><code>class Player { ...
2
2,273
fffmpeg gets the frame from the rtsp
<p>I'm using IP CAMERA and I'm trying to use ffmpeg <a href="https://github.com/chelyaev/ffmpeg-tutorial" rel="nofollow">tutorial</a> in Android</p> <p>and I get the frame and send to bitmap and Works well</p> <p>but when it gets frame from the rtsp somethings wrong frame is corrupted</p> <p>I found <a href="https:/...
2
1,756
MATLAB Access Violation crash What in the code could cause this
<p>I've got a simple batch file that goes as follows</p> <pre><code>for %%G in (*.txt) do ( matlab /wait /nosplash /minimize /nodesktop /r "script1('%%~dpnxG')";quit start "" /b /wait /separate proc_eng_track.exe "%%~dpnG" matlab /wait /nosplash /minimize /nodesktop /r "script2('%%~dpnG')";quit ) </...
2
6,751
Laravel migration, fails on hasColumn method
<p>I am using laravel 5.2 version and PHP 7.1. I am trying to migrate the files from my laravel project where I have code to check column existence as shown below -</p> <pre><code>if (!Schema::hasColumn('table1', 'column1')) { // Add column1 } </code></pre> <p>I know the code is perfectly fine and this has alread...
2
1,849
I need help regarding Selenium and chrome webdrivers. An error pops up in my CommandPrompt and i am not sure how to solve it
<p>I am new to Python and Selenium and working on Windows. I am currently learning a course in Udemy about Selenium and Python in order to create an automated script aka a web bot</p> <p>Steps in the lecture:</p> <ol> <li><p>Create a virtual environment and install pip in it</p> </li> <li><p>Activating the virtual envi...
2
1,713
Can't call table2excel
<p>For my project I have to export a table to Excel. But for some reason I can't call the function with a button press, but I can do it without the call.</p> <pre><code>&lt;script&gt; $(&quot;#studentTable&quot;).table2excel({ exclude: &quot;.excludeThisClass&quot;, name: &quot;Worksheet Name&quot;,...
2
3,068
WPF MVVM Child ViewModel properties not updating view
<p>So I have a WPF app utilizing the MVVM pattern which uses the MVVM Light library. <strong>For INotifyPropertyChanged I am using the Fody.Weavers library which is working well so far.</strong></p> <p>I have a MainWindow.xaml which has a ContentControl, its Content property is bound to a property on its view model fo...
2
1,640
Downloading files in a loop with Python mechanize
<p>I am having trouble downloading multiple files in a loop with Python mechanize. I am also utilizing Beautiful Soup 4. The documentation for either package does not seem to have the answers.</p> <p>Here is my code - please skip down to the actual loop. I included everything for reference:</p> <pre><code>import mech...
2
1,216
TypeError: scope is undefined Karma-jasmine-angular unit testing
<p>I am new with <strong>karma-jasmine</strong> and trying to develop a demo test case. I am getting error of <strong>scope is not defined</strong> in <strong>'it'</strong>. I have read the following links with same problem but it's not helping me with my test case. </p> <p><a href="https://stackoverflow.com/questions...
2
1,062
Database scrolling buttons using java forms - Error when calling next method to move cursor up Resultset object
<p>Basically: I am adding four buttons to a java form. The buttons will enable me to move forward through the records, move back, move to the last record, and move to the first record.</p> <p>I am using netbeans IDE 7.2.1 together with the inbuilt Apache Derby Network Server.</p> <p>I am trying to scroll through my d...
2
6,357
Spring + gradle + tomcat web app not working
<p>I am trying to implement a web application using spring boot, gradle and tomcat. I have following java classes. When I execute tomcat, tomcat just starts but it does not execute... I´m quite new with gradle and spring, sorry if I´m asking something obvious.</p> <p>What could be the issue?</p> <p>Application.java:...
2
4,129
Post repeating with infinite scroll
<p>I'm creating an infinite scroll of books (wordpress posts). If you see the first row of books is this one:</p> <p><img src="https://i.stack.imgur.com/XBEVB.png" alt="enter image description here"></p> <p><strong>But if you scroll down, after it "loads more books", then this books appears again.</strong></p> <p>S...
2
1,762
mvc3 razor dropdownlistfor causing update model to fail
<p>I have a problem with the following code. Basically when I call updatemodel it fails but I dont get an inner exception. If i change the drop down to a text box it works.</p> <p>class:</p> <pre><code>public class Member { [Key] public int MemberID { get; set; } [StringLength(50),Required()] public s...
2
1,766
Polymer paper tabs not rendering properly
<p>I have just been learning polymer and have been following the tutorial in this website: polymer-project.org</p> <p>I am at the part where I am to place paper tabs on the core-header-panel. Following the tutorial, I am not able to render the paper tabs completely. But if I remove the core-header-panel and core-toolb...
2
1,253
Can't animate QTransform in qgraphicsItem
<p>I'm trying do some 3D animation in GraphicsScene, for example, to rotate pictures in GraphicsScene (using class, subclassed from <code>qPixmapItem</code> and <code>QObject</code>, if it matters) with Animation framework.</p> <p>Everything works fine, until i want to rotate pictures around vertical axis. There is no...
2
1,368
Dynamic Dependent / Triple Related selects in ColdFusion, third not holding first select
<p>First of all I’m not only brand new to SO, but I’m also brand new to any kind of web programming, so total newb, thanks for your help and patience! So, zero previous experience with HTML, ColdFusion, SQL, SQL Server, etc, so anything I’ve picked up I’ve learned in the past 2 weeks. </p> <p>I am trying to make 3 dy...
2
3,204
Uploaded image display with background image after click on button from canvas HTML5
<p>I am using HTML5 and fabric js. I am taking tow background images and upload image on this background image. But when i am converting canvas into image then only uploaded image come. I will show you screen shot.<a href="https://i.stack.imgur.com/UCHIv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.co...
2
3,218
WPF Listview: Detect when listviewitem is selected and then check it
<p>I have below listview:</p> <pre><code>&lt;ListView Margin="10" Name="lvUsers" AlternationCount="2" SelectionMode="Extended"&gt; &lt;ListView.View&gt; &lt;GridView&gt; &lt;!-- Checkbox header --&gt; &lt;GridViewColumn&gt; &lt;GridViewColumn.Header&gt; &lt...
2
1,967
selenium.common.exceptions.SessionNotCreatedException: Message: Unable to create new service: OperaDriverService
<p>OS: Ubuntu</p> <p>I am following <a href="http://selenium-python.readthedocs.io/getting-started.html#using-selenium-with-remote-webdriver" rel="nofollow noreferrer">step 2.5 of this tutorial</a>:</p> <p>1) I downloaded selenium server standalone of two versions:<code>selenium-server-standalone-2.50.1.jar</code> an...
2
1,056
MailKit does not find message ID
<p>I am currently migrating from <a href="http://sourceforge.net/projects/hpop/" rel="nofollow">OpenPop</a> to <a href="https://github.com/jstedfast/MailKit" rel="nofollow">MailKit</a>. </p> <p>I have a unit test that loads a string into a MimeMessage like this:</p> <pre><code>var emailText = @" X-MDAV-Processed: mx1...
2
1,832
Supporting ViewState in an MVC ViewUserControl
<p>I know I know, it's going against the grain. Before everyone wants to lecture about the MVC pattern, this is an extreme measure. I have a ASP.NET control that I must get to work in MVC that requires the ViewState and would appreciate the focus to stay on this. I am aware that I can <a href="http://weblogs.asp.net/ra...
2
1,057
Load JSON data into jQuery component
<p>I want to display data from an external JSON file on a webpage. </p> <p>data.json:</p> <pre><code>{"users":[ { "firstName":"S", "lastName":"S", "joined": { "month":"January", "day":12, "year":2012 } }, { "firstName":"S", ...
2
1,953
Get the database content posted on a selected option into a form with single fields
<p>I have a form with a select. The options are coming from a database and displayed into the select.</p> <p>The columns on the database are:</p> <pre><code>id, date, title, body. </code></pre> <p>On the select I display only date and title. In the same page I have a form with:</p> <pre><code> date -&gt; input text...
2
4,905
Heroku application not loading on few browsers
<p>I deployed a Node.js application on Heroku through CLI. The steps I followed are </p> <pre><code> Git add . Git commit -am "message" git heroku push master heroku open </code></pre> <p>I didnt get any error and when I run heroku open, the app is running on my browser. The problem is that when I try to run it us...
2
5,516
jquery hide objects if object class doesn't contain a value
<p>The title might be a bit confusing, basically I'm trying to write up a script which will grab the selected values from a drop down form, and hide li's if its class does not contain the values from the drop down form.. if that makes sense?? Each li has multiple classes.. </p> <p>Here's what I've got so far (sorry if...
2
1,223
java.io.IOException: Unexpected response code for CONNECT: 400
<p>I am using Okhttp client to get the OAuth 2.0 token based on a Rest API. </p> <p>When I deploy it over Weblogic 12c its showing the error <strong>java.io.IOException: Unexpected response code for CONNECT: 400</strong></p> <p>I have tried to change the implementation and header method methods in different styles mi...
2
1,033
Unable to send Response from Rest method
<p>Here is the rest ws POST method code:</p> <pre><code> @POST @Path("/json/saveuser") @Consumes("application/json") public ResponseBuilder saveUserJSON(User user) { if (save(user)) { return Response.status(HttpStatus.SC_OK); } return ...
2
1,846
Get data-field of above td cell
<p>I have a button that adds a row to a table. The table is editable on click (similar to one found here: <a href="http://www.9lessons.info/2011/03/live-table-edit-with-jquery-and-ajax.html" rel="nofollow">http://www.9lessons.info/2011/03/live-table-edit-with-jquery-and-ajax.html</a>) However, I get my table data from ...
2
1,131
Decrypting Blowfish CBC in Javascript that has been encrypted with PHP mcrypt
<p>I'm having a hard time trying to decrypt a String that has been encrypted with Blowfish CBC in PHP;</p> <p>I'm working on the client side in Javascript with Node.js on a unit test written with Mocha. I'm using the inbuilt crypto functions of Node.</p> <p>Here's is the code that is working to decrypt the string in ...
2
1,281
echo MySQL data into html form with radio buttons with other text field
<p>In my web form, users can submit product data into a MySQL database. The supplier field gives our users the choice between 3 radio buttons (our most frequently used suppliers being Sigma-Aldrich, VWR and Filter-Service), or a 4th 'other' radio button with a text field, where they can specify the 'other' supplier. Th...
2
2,286
Angular Bootstrap multiple modal backdrops
<p>I'm using <a href="https://github.com/dwmkerr/angular-modal-service" rel="nofollow noreferrer">this</a> modal service to show a basic dialog in an Angular app.</p> <p>The implementation is simple but there are two issues:</p> <ol> <li>The dialog shows but the modal-backdrop class is repeated multiple times, render...
2
1,110
Application crashes when opening a window qt
<p>I would like to create a program that shows a question with some answers to the user. My application uses 3 forms: Main Menu, Login Menu and Game Form, and all inherit from an abstract class called Form; I do this because it allows the use of the factory method, which it create a new window when a signal GoFw is emi...
2
1,063
xsl for-each loop not working correctly(logic)
<p>I have applied one logic in xsl for-each loop, but it is not behaving correctly. Can anyone help me out.</p> <p>XML</p> <pre><code>&lt;a&gt; &lt;b&gt; &lt;c&gt; &lt;string&gt;16&lt;/string&gt; &lt;string&gt;4&lt;/string&gt; &lt;string&gt;id&lt;/string&gt; &lt;int&gt;123&lt;/int&gt; &lt;/...
2
1,414
Change Drawer Icon of Drawer Widget being returned from an external Class
<p>I'm trying to change the icon and color of my drawer widget in Dart. I've found ways of doing it but none that apply to my scenario. My custom drawer widget is being returned from another class and so I can't change the leading icon in the home class where the app bar is or it will replace my current drawer. I won't...
2
1,027
Membership with postgresql using npgsql
<p>I'm trying to create MVC 3 application that uses postgresql for database and should be able to run in linux using mono. I planned to use Membership for user managin and authentication but keep getting error when trying to create new user. I'm using Npgsql for data provider and NauckIT.PostgreSQLProvider for membersh...
2
2,034
Creating a relationship(OnetToMany) between 2 objects in reactjs
<p>I have a database created in MYSQL that has two tables(Patient,Caregiver) that are connected with OneToMany mapping in spring boot. I want to create a Patient Object in react Js in front end( but I would need to specify the caregiver at the moment of creation) and then send it to backend, my only issue is that i am ...
2
6,592
Libcurl + rapidjson for Streaming Deserialization?
<p>I have been tearing my hair out (not much to begin with, though), trying to figure out a way to hit a web service and then parse and deserialize the json in chunks while parsing at the same time into into my objects without storing the entire document (500mb+). Effectively, I am trying to connect libcurl and rapi...
2
2,319
XML to CSV with XSLT multiple node
<p>I am trying to convert xml file to CSV format using XSLT. My XML file has multiple root (Account) with attributes and also with children of differend types.</p> <p><strong>Here is my XML:</strong></p> <pre><code>&lt;SiebelMessage&gt; &lt;ListOfSwiOrganizationIO&gt; &lt;Account&gt; &lt;Email&gt;jozk8o@...
2
2,347
Opening a modal JavaFX Alert from Swing Frame
<p>I am currently working on a project that uses a framework that is based on swing. My goal is to add a JavaFX component to this project, but I am having some problems with modal dialogs.</p> <p>Overall my problem can be simplified as follows -</p> <p>Swing: I have a <code>JFrame</code> containing a button. When I p...
2
2,694
Trouble with a small library-management program
<p>I'm having major trouble piecing this together. I have basic read and write functionality. What I need is for the input from file 'Books.txt' to be checked so that:</p> <ul> <li>ISBN is valid</li> <li>CopyNumber, Year and Statistics should be numeric</li> <li>Title, Author and Publisher must contain values</li> <li...
2
2,235
Hudson Android multi-configuration test project can't find test results - "No test report files were found. Configuration error?"
<p>I have android test project that i've integrated into the Hudson. I have created a free-style software project with next settings : 1. <strong>Source Code Management</strong> - custom workspace 2. <strong>Run an Android emulator during build</strong> : * Android OS Version: 4.0.3 * Screen density: 240 * Screen res...
2
3,345
Inner joins with zend models
<p>Having problems with this script:</p> <pre><code>$select = $tabela-&gt;select() -&gt;joinInner('pedidos_itens', 'pedidos.peIp = pedidos_itens.ipPedido', array('ipProduto', 'ipQtde', 'ipCor', 'ipTextura', 'ipTamanho', 'ipSeq')) -&gt;joinInner('representantes_m', 'pedidos.peR...
2
2,285
Setting up Django with Redis, Celery to send emails via Gmail
<p>I'd like to set up my Django app to set up emails via Gmail using an async task queue. I'm using Celery, with Redis as my broker. However, I'm not able to send emails when I define Celery as my email backend -- I get an error stating that the connection failed:</p> <pre><code> ...: ------------------------------...
2
8,852
Proper use of thread and display.asyncexe in java swt
<p>I'm doing a program which needed a thread because It's not responding when the GUI start its work. I'd used <code>thread</code> but i don't know if the use of it is correct, also I'd used the <code>display.asyncExec</code>each of this gives me error </p> <p>here is the code</p> <pre><code>btnCopyFolder.addSelectio...
2
15,630
Adding forms authentication (SimpleMembership) to webapi app
<p>I'm trying to add to a MVC4 webapi project the simple membership provider authentication mechanism found in a MVC 4 web application project, for a hybrid application serving its pages with a rich JS content, which uses AJAX calls to webapi actions to perform its tasks. I need the app users to authenticate before the...
2
1,443
xamarin ios collection view
<p>Dears, i working in xamarin.ios that use collectionview my code is working fine i created custom cell view having imageview and label view My problem that : labelview didn't appear there are my code any one can help me</p> <pre><code> public class UserSource : UICollectionViewSource { public UserSource() ...
2
1,398
PHP 7 install on Ubuntu 14.04 now fails due to libssl dependency that can't be resolved?
<p>I am using shippable to build my project and part of it requires PHP.</p> <p>The build script is this:</p> <pre><code>apt-get update apt-get install -y software-properties-common python-software-properties language-pack-en-base LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php apt-get update apt-get install -y ...
2
2,015
extract href scrapy - crawls but doesn't extract
<p>I am using selenium and scrapy to navigate to a table of data and I would like to extract the links/href to a csv file. so far everything i have tried doesn't seem to work and I'm unsure what to try or how to go about getting the links.</p> <p>here's the important part of the table I am trying to extract the links/...
2
1,119
Intermittent java.io.IOException: Connection reset (not connection reset by peer) in jdk.internal.net.http.HttpClientImpl.send from inside Amazon EC2
<p>Using openjdk 14.0.1 in Amazon EC2 I'm getting an intermittent <code>java.io.IOException: Connection reset</code> when hitting an external REST service with a POST request over https. This does not happen outside of EC2.</p> <p>It happens once after a short period of inactivity and resolves once the REST service is ...
2
3,704
Docker-compose, Laravel-echo-server and Redis connectivity issue: [ioredis] Unhandled error event: Error: connect ECONNREFUSED 172.20.0.2:6379
<p>I'm setting up a docker stack with PHP, PostgreSQL, Nginx, Laravel-Echo-Server and Redis and having some issues with Redis and the echo-server connecting. I'm using a docker-compose.yml:</p> <pre><code>version: '3' networks: app-tier: driver: bridge services: app: build: context: . dockerfi...
2
1,444
Custom port number for Azure cloud service
<p>I have an existing Azure cloud service which provides http and https endpoints. Everything is working well as far as that goes. I've recently been asked by another group to add an SSL endpoint on a special port to support something or other they're doing on their end. So, I added an extra endpoint in the service def...
2
1,083
Can't understand why i can't call a method
<p>Zend 2 Framework, layout.phtml.</p> <p>Here i can translate strings with $this->translate('key') but i can't get locale with $this->getLocale(). Why? They're both methods from the same class Translator! All i get is this exception:</p> <blockquote> <p>Fatal error: Uncaught exception 'Zend\ServiceManager\Except...
2
2,788
Phonegap - assets and universal iOS apps
<p>I'm currently building an app for iPhone, iPad, Android phones and Android tablets.</p> <p>I'm working with a single code base like from <a href="http://devgirl.org/2012/07/16/phonegapcordova-templatetutorial-for-sharing-code-between-platforms/" rel="nofollow noreferrer">this example</a>.</p> <p>But as my project ...
2
1,167