title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Cannot open database "ASPNETDB" requested by the login. The login failed. Login failed for user 'Philip-Desktop\Philip'
<p>I'm been struggling to find an answer to this problem for hours now...</p> <p>I use to not get this error while accessing the ASPNETDB database, but unfortunately I don't know what I changed. The error comes up when I try to access a file called Admin.aspx I have in a folder called Admin. I had restrictions set on ...
0
1,578
Getting AdView to actually show up
<p>I have a problem with google adview... it's not showing up. I dug around a for a while and saw that people where having issues with padding, so I removed the padding and still no luck.</p> <p>Here is my relevant manifest data:</p> <pre><code> &lt;activity android:name="com.google.ads.AdActivity" ...
0
1,151
CORS Blocked with node.js and socket.io
<p>I recently started learning node.js and socket.io. I followed a simple tutorial that socket.io had and it all worked fine while running on my computer. However, I decided to upload the client part to a server for testing and that is where the problems began. I would like to run the chat client on a web host, and run...
0
1,305
How to troubleshoot HTTP 404 The origin server did not find a current representation for the target resource
<p>Following a software demo on Skillsoft, I built a simple Spring MVC Demo app in Eclipse. The app loads fine and I can hit the home page ("Hello World"). But when I try to hit my controller, I get the following error message</p> <p><strong>HTTP Status 404 - Not Found</strong></p> <p><strong>Type</strong> Status R...
0
2,936
Making Phone Verification Textfield UI in flutter
<p>I'm making a UI, which has a verification for the phone number. It has four codes to be input which you will get via notification from our backend. Since I'm responsible to make the UI for this, it is really not working out for me. </p> <p>This is the UI which I want to achieve : </p> <p><a href="https://i.stack.i...
0
7,787
Open magnific popup on button click?
<p>This is the demo html for the gallery (from the magnific popup website):</p> <pre><code>&lt;div class="popup-gallery"&gt; &lt;a href="http://farm9.staticflickr.com/8242/8558295633_f34a55c1c6_b.jpg" title="The Cleaner"&gt;&lt;img src="http://farm9.staticflickr.com/8242/8558295633_f34a55c1c6_s.jpg" height="75" wi...
0
1,913
Turn off Hibernate logging
<p>I am using Hibernate for a small demo project. I am using Eclipse and I start the program from within Eclipse, which will print program output to the Eclipse console.</p> <p>It's a plain Java project, no Maven, no Spring, no nothing. I just added the required hibernate libraries to my build path, which also include...
0
1,056
How to call SOAP WS from Javascript/jQuery
<p>I would like to call a SOAP WebService directly from Javascript. I have been looking all around but still is unable to have something working. I assumed that i must build the SOAP enveloppe (see below). I also use jQuery.</p> <p>Firstly, I would be sure that I can call a SOAP Webservice located somewhere else ? tha...
0
1,767
Webpack UglifyJsPlugin not minifying code
<p>I'm trying to get Webpack to minify my Javascript code when it's being run through Yarn. I believe I've got everything setup correctly, however the Javascript just isn't being minified.</p> <p>I've built a docker box to reproduce this problem: <a href="https://github.com/Danack/ReactTest" rel="nofollow noreferrer">...
0
2,229
CakePHP using Email component from Shell cronjob
<p>I'm trying to send an email from a CakePHP shell just as you would from the Controller. </p> <p>Most of the code below was adapted from <a href="http://bakery.cakephp.org/articles/Jippi/2007/12/02/emailcomponent-in-a-cake-shell" rel="noreferrer">this dated article on the Bakery</a> and it's comments. The email is s...
0
1,057
HttpClient PostAsync() not working
<p>In my Xamarin Forms App</p> <p>I'm trying to Post a Json String to my webservice wich is RestFul API when i use the following code:</p> <pre><code>public static async Task&lt;bool&gt; SaveRolAsync(Methods Method, Role Rol) { try { HttpClient client = new HttpClient(); cl...
0
3,364
passing argument 1 of β€˜strncmp’ makes pointer from integer without a cast C programing
<p>I want to compare some data that the client sends to a server. Bout i have this error when I use strncmp t compare what I read from the socket and the strings I'm using to compare. Can someone tell me why is this error?</p> <blockquote> <p>warning: passing argument 1 of β€˜strncmp’ makes pointer from integer with...
0
1,289
How to do upload image with Volley library?
<p>I have an image and I want to upload this image to my web service using Volley library, the problem is I'm looking for a how to do it but still haven't found.</p> <p>I found this, but doesn't work to me: <a href="http://develop-for-android.blogspot.com.br/2014/01/using-volley-in-your-application.html" rel="nofollow...
0
1,800
jquery Select2 prevent selecting in ajax response
<p>I want to prevent from adding a category to the Select2 element if it fails creating the row first in my db. The action is not prevented when i call ev.preventDefault(); Nothing happens.. what is wrong?</p> <pre><code> $('#sel2').select2({ placeholder: 'Enter categories', minimumInputLeng...
0
1,304
How can I get the selected value from dropdownlist in edit mode of a gridview?
<p>In my application, when I edit a row in the gridview I choose some new data from a dropdownlist.</p> <p>I am populating the dropdown like this:</p> <pre><code> protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { ...
0
1,253
Android SetPixels() Explanation and Example?
<p>I am trying to set a region of pixels in a mutable bitmap a different color in my android app. Unfortunately I cannot get setPixels() to work properly. I am constantly getting ArrayOutOfBoundsExceptions. I think it may have something to do with the stride, but I'm really not sure. That is the only parameter that I s...
0
1,086
Multiple array validation in laravel
<p>I have 3 types of data to validate</p> <ol> <li>data in group</li> <li>single data</li> <li>single and data in group combined</li> </ol> <p>This validation works for single data</p> <pre><code>$validator = Validator::make($request-&gt;all(), [ 'tests.*.finding' =&gt; 'required',//works for single test ]); </c...
0
1,555
Qt: How to delay a program while QTimer is active?
<p>Please refer to the following link as I tried to simplify the problem I was having and now have run into a problem that I cannot solve.</p> <p>Link: <a href="https://stackoverflow.com/questions/4695044/qt-how-to-use-qtimer-to-print-a-message-to-a-qtextbrowser-every-10-seconds">Qt: How to use QTimer to print a messa...
0
1,237
flutter capture the widget to image and then create PDF file to printer
<p>My flutter app captures the widget to image and then creates PDF file to printer, but it shows ridiculous result as below picture.</p> <p>Let me know if you have any better method to print Chinese character and qr image to a receipt (bluetooth printer with paper width 75mm)</p> <p>Here with the widget:</p> <pre><...
0
1,719
get data from local Json file ionic 3
<p>I start a dummy project in Ionic. I try to get data from a local Json file but I have this error : <a href="https://i.stack.imgur.com/49WL7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/49WL7.png" alt="enter image description here"></a></p> <p>I don't understand why there is no provider for Htt...
0
1,029
etcdctl throws Error: context deadline exceeded error
<p>I'm trying to create a one node etcd cluster on AWS using coreos cloud-config. I have created a Route53 recordset with value <code>etcd.uday.com</code> which has a alias to the ELB which points to the ec2 instance. Etcd is running successfully but when I run the etcd member list command I get below error</p> <pre><...
0
2,310
Error Rendering View [.xhtml]
<p>I am having this problem with JBoss server. The application is deployed on JBoss server 4.3. I can start the server and access the application but when I click on any of the links in the dropdown menu it gives me the following error:</p> <pre><code>11:34:56,229 INFO [STDOUT] 11:34:56,229 INFO [PrettyFilter] Forwa...
0
9,704
Multiple Combo Boxes With The Same Data Source (C#)
<hr> <p><strong>UPDATE: This is now resolved, see answer below.</strong></p> <hr> <p>On one of my forms (in a Windows Forms application) I have 3 Combo Boxes. These combo boxes need to display a list of prices (In text, with an integer back-end value).</p> <p>All of these combo boxes are using the same data source ...
0
1,290
Split string to dictionary as key,list
<p>I have a string type which will return thousands of records in the format</p> <p><code>key1,val1,val2,val3,val4,val5:key2,val6,val7,val8,val9,val10:key3,val11,val12,val13,val14,val15</code></p> <p>I want to assign this to a dictionary as Key,List so it looks like</p> <p>key1,[val1,val2,val3,val4,val5]</p> <p>key...
0
1,232
extjs: load mask grid
<p>I am using extjs grid, and I have a jQuery timer, which will call <code>RenderGrid</code> function every 20 seconds. I want to show mask for grid each timer tick. Please advise.</p> <pre><code>function RenderGrid(dataObj) { var jasonContent = JSON.parse(dataObj) if (document.getElementById('panel'...
0
3,406
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service
<p>Hi every one i have some problem with Jboss-7-as.1.1 when i deploy i am getting <code>ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service</code> error.</p> <pre><code>10:44:30,343 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JB...
0
7,095
How to set the RowHeight dynamically in a JTable
<p>I want to put a String in a <code>JTable</code> that is longer than the given cell-width. How can I set the <code>rowHeight</code> dynamically so that I can read the whole String? Here is an example:</p> <pre><code>import javax.swing.*; public class ExampleTable { public JPanel createTable() { ...
0
1,221
window.print() CSS not loaded in print preview
<p>I need to provide option to print a part of the webpage. This was implemented using the javascript <a href="https://stackoverflow.com/questions/2255291/print-the-contents-of-a-div"> window.print()</a> answered by: Bill Paetzke. The pop up window opens up (this contains CSS style) and the print dialog also opens. Bu...
0
1,969
How to create a loop for this dropdown menu?
<p>And, would a loop be more efficient then listing them out one by one?</p> <pre><code>&lt;select name="birthdayYear" &gt; &lt;option value="0000"&lt;?php echo $birthdayYear == '0000' ? 'selected="selected"' : ''; ?&gt;&gt;Year:&lt;/option&gt; &lt;option value="2011"&lt;?php echo $birthdayYear == '2011' ? 'se...
0
6,003
Making a web service request parameter a required field
<p>The is code first approach to Jax-WS web service.</p> <pre><code>@WebService (serviceName = "MyInstallPhotoService") @SOAPBinding(style=SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED) public class MyInstallPhotoWS { private MyInstallPhotoManager myIns...
0
1,081
JAXB Marshal Empty String to Null Globally
<p>My question is very similar to <a href="https://stackoverflow.com/questions/6110612/how-to-prevent-marshalling-empty-tags-in-jaxb-when-string-is-empty-but-not-null">How to prevent marshalling empty tags in JAXB when string is empty but not null</a></p> <p>The difference is that I am unable to add the annotation to ...
0
2,144
maven compilation - error log4j
<p>i'm building java application and suddenly i found problem with compilation:</p> <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project sonda: Compilation failure: Compilation failure: [ERROR] ..../service/UserService.java:[7,23] package o...
0
1,249
Configuring Hibernate programmatically - Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
<p>I want to create a new SessionFactory programatically with the following code:</p> <pre><code> private static void createSessionFactory() { try { Configuration conf = new Configuration(); conf.setProperty("hibernate.connection.driver_class", "com.mysql.jdbc.Driver"); conf.setProperty(...
0
4,661
MSSQL Server's Native ODBC Driver for Linux and PHP 5.4
<p>I have Apache 2.2.16 and PHP 5.4.3 on a Linux Debian 6 x64.</p> <p>To install the MSSQL Server's Native ODBC Driver for Linux, I use the following instructions: <a href="http://www.codesynthesis.com/~boris/blog/2011/12/02/microsoft-sql-server-odbc-driver-linux/" rel="noreferrer">http://www.codesynthesis.com/~boris/...
0
1,327
combining python watchdog with multiprocessing or threading
<p>I'm using Python's <a href="http://pythonhosted.org/watchdog/" rel="noreferrer">Watchdog</a> to monitor a given directory for new files being created. When a file is created, some code runs that spawns a subprocess shell command to run different code to process this file. This should run for every new file that is...
0
1,251
Why do I get an invalid path when I try and construct a JPQL join query?
<p>I’m using JPA 2.1, Hibernate 4.3.6.Final, and MySQL 5.5.37. How do I write a JPQL query that does a join? I’m trying below</p> <pre><code> final String jpqlQuery = "SELECT m FROM Message m LEFT JOIN MessageReadDate mr " + " INNER JOIN m.group g " + " LEFT JOIN g.classroom c " + ...
0
3,559
How to send multiple images to server using MultipartEntity from android
<p>I am sending Images and Text to a PHP webservice using the following code.</p> <pre><code>try { HttpClient httpClient = new DefaultHttpClient(); HttpContext localContext = new BasicHttpContext(); HttpPost httpPost = new HttpPost(URL); MultipartEntity entity = new MultipartEntity( ...
0
3,122
ant: failed to create task or type
<p>(Yes, I've read and played around based on answers to similar questions in this forum and in many others such as JavaRanch--to no avail yet.)</p> <p>I've created a custom ant task according to Apache doc.</p> <p>Running ant, I get:</p> <pre><code>BUILD FAILED /home/russ/blackpearl/fun/build.xml:121: Problem: fail...
0
1,050
Android- mailto link won't work
<p>I have read many Questions about this topic here at stackoverflow, also my solution come from here but it won't work. Also there is no error message.</p> <p>I have a webview in Android and a Homepage, there are some mailto links, when I try to open the mailto links from my webview in a mailclient, the webview alway...
0
3,250
How to set transparency of Navigation drawer background?
<p>I need to be able to set the background as completely transparent. Seems no one has tried it before . Please help.</p> <p>If Im correct we need to make framelayout backgrund totally transparent . But no effect taking place on doing it.</p> <p>Thanks for all your reponses , but none ofthem seems to be working so fa...
0
1,462
Jenkinsfile Pipeline errors: β€œexpected a step” and β€œundefined section”
<p>Can anyone explain why I get the following errors, and what can be a possible solution for them?</p> <blockquote> <p>Running in Durability level: MAX_SURVIVABILITY org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 43: Expected a step @ line 43, column 17. ...
0
2,233
Why does the Sun JVM continue to consume ever more RSS memory even when the heap, etc sizes are stable?
<p>Over the past year I've made huge improvements in my application's Java heap usage--a solid 66% reduction. In pursuit of that, I've been monitoring various metrics, such as Java heap size, cpu, Java non-heap, etc. via SNMP.</p> <p>Recently, I've been monitoring how much real memory (RSS, resident set) by the JVM an...
0
1,963
shuffle array in ng-repeat angular
<p>I'm creating a quiz and every time I start the quiz I want to shuffle the questions, so that they won't appear in the same order every time.</p> <p>I have this in my html code:</p> <pre><code>&lt;div ng-repeat=&quot;question in questions | filter:ids | orderBy:randomSort&quot;&gt; &lt;div id=&quot;question&quot;...
0
1,347
Download new and modified files from an FTP server
<p>I'm trying to get a list of the files on an FTP server, then one by one check if that file exists on the local system and if it does compare the dates modified and if the ftp file is newer download it. </p> <pre><code>private void btnGo_Click(object sender, EventArgs e) { string[] files = GetFileList(); for...
0
1,227
Close popup window without click button
<p>I don't want to button for closing pop-up window in Android. I just press the screen than pop-up should close. It works only button click If I click close button then it close but I don't want any button in my popup window I just want click anywhere in the screen then it should be close.</p> <p><strong>MainActivity...
0
2,632
Handle onBackPressed in Android Navigation Component
<p>I have implemented navigation Drawer with Navigation Components in Android. I have 5 fragments that I want to go back to my <code>HomeFragment</code> when I click on back pressed. For the moment they stay onBackStack and do not go to my desired fragment but go to whatever fragment was first. This is my <code>nav_gr...
0
2,274
Resolve "Property does not exist on type 'Vue'" error
<p>I am using Typescript with Vuejs to build an application. I have several stand alone components (.vue) files that I am importing into a Typescript (.ts) file. In the Typescript file, I am importing Vue from the npm Vue library and then creating a new Vue to display my components. The error that I am seeing is: </...
0
1,684
Android NDK linker Error:error: undefined reference to std::basic_string
<p>I am currently trying to build a static library of some source c++ files requiring boost. I have been following the <a href="https://github.com/googlesamples/android-ndk/tree/master/hello-libs" rel="nofollow">hello-libs</a> example and have successfully linked the boost static file dependencies as is done in the sam...
0
1,977
Python Pandas data frame format Index issue
<p>RangeIndex error:</p> <p>Using two data source trying to fetch the data, quandl and x source (the data fetching is not a problem but using this for logic throws error)for quandl no issues but for x source this RangeIndex error comes.</p> <p>I feel this is because of incorrect indexing problem.</p> <p>What needs t...
0
1,472
redux Actions must be plain objects but I defined plain object
<p>I use <strong>redux</strong> + <strong>react</strong> to build my website, and I want to use redux to control a sidebar visible.The sidebar is defined by semantic-ui-react.Because I want to control it across another component, so I defined the <strong>props</strong> in sidebar's parent component <code>const { visibl...
0
1,886
asp.net ashx request 404
<p>I am using an ashx request handler to retrieve images and my breakpoint in the ashx file isn't being hit. When I use firebug I can see that the request is returning a 404 which makes me think that I need to configure some setting so that ashx file can be found.</p> <p>I am using visual studio 2008 and .net 3.5.</p>...
0
1,319
How to write code for next & previous button?
<p>I am developing an online exam system project using ASP.NET (C#) &amp; SQL Sever. This is my code. I have a problem in implementing code for next &amp; previous button. Please suggest me the answer. Thank you.</p> <pre><code>public partial class Default : Page { int count; string ans; int[] a=new int[5]...
0
2,741
Twitter Bootstrap Modal Fade
<p>I am using Twitter Bootstrap as a framework for designing a new social network that displays jobs and allows users to apply to the jobs with a simple one click process. When the user clicks "Apply" a modal window appears and gives them the option to select a resume then click "Apply." When the Apply button is clicke...
0
2,196
Connecting to socket on Tomcat?
<p>I'm trying to connect from a standalone applet to a servlet running on tomcat:</p> <p>Servlet</p> <pre><code>public void init(ServletConfig config) throws ServletException { super.init(config); // Start a daemon thread try { daemonThread = new Daemon(this); daemonThread.start(); ...
0
1,092
How to use Python's "easy_install" on Windows ... it's not so easy
<p>After installing Python 2.7 on Windows XP, then manually setting the <code>%PATH%</code> to <code>python.exe</code> (why won't the python installer do this?), then installing <code>setuptools 0.6c11</code> (why doesn't the python installer do this?), then manually setting the <code>%PATH%</code> to <code>easy_instal...
0
1,172
How to download XLSX file from a server response in javascript?
<p>I have a react frontend and java server using the Micronaut framework. In the <code>BaseController</code> of my Micronaut Framework, I am creating an XLSX file and then sending the response so that it gets downloaded when called from the frontend code. </p> <p><strong>BaseController</strong></p> <pre><code>@Inject...
0
2,110
Error parsing data org.json.JSONException: Value <br><table of type java.lang.String cannot be converted to JSONObject
<p>I'm trying to display information depending on the item pressed in a ListView. I'm using a HTTP GET request to get the information.<br></p> <p>When you click on an item (profile) in the ListView the application gets that profile name and depending on that it should display that profile's information in the next act...
0
5,698
Material UI - Autocomplete Styling
<p>I am trying to style the padding so that the icon is pushed to the far right side in an AutoComplete Material UI component which is currently being overridden by this style:</p> <p>.MuiAutocomplete-hasPopupIcon.MuiAutocomplete-hasClearIcon .MuiAutocomplete-inputRoot[class*="MuiOutlinedInput-root"]</p> <p>This is t...
0
1,077
how we can set value for xml element using XmlDocument class
<p>Is it possible to set value dynamically for any XML element using the <code>XmlDocument</code> class? Suppose my XML is </p> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;env:Header xmlns:env="http://schemas.xml...
0
2,110
How to call Button.performClick in Android JUnit test case?
<p>I'm new to Android Testing stuff. I'd like to test if clicking a button will open up a corresponding activity or not. I did some research and found out that I will need to use ActivityManager to do the checking.</p> <p>Problem is, I can't get the "clicking" part working. I'm trying to use <code>Button.performClick(...
0
1,283
SonarLint Eclipse connecting to SonarQube server gives "No storage for server 'sonar'. Please update."
<p>My company upgraded to SonarQube 5.3. This requires changing from the SonarQube plugin for Eclipse to SonarLint. I regret that upgrade because my project quality profile contains 494 rules and only 12 are from Squid, so we have a massive project to make SonarLint in Eclipse at all useful. But I'm trying to install S...
0
1,215
To adjust primefaces datatable size,live scrolling with screen size
<p>I have a datatable with live scrolling feature. The table fits fine in my development machine but the user of this app has larger screen.It would be good if the datatable fits according to the screen size. Also the height of the datatable should get adjusted with more number of rows for live scroll. Currently I have...
0
1,881
Bootstrap container class doesn't work
<p>I'm currently trying Bootstrap in website development but it seems that the container class, which should center the content isn't working. I can't seem to find the problem as to why it won't work. I've tried a different text editor and downloaded bootstrap again but nothing happens. Text editor I'm using is Sublime...
0
1,745
How can I fix "Overloaded member function not found" error?
<p>I keep getting the following error:</p> <blockquote> <p><code>"overloaded function not found in 'pizza'"</code></p> </blockquote> <p>This referring to <code>void outputDescription</code> and <code>double computePrice</code> functions, below. I can't figure out what is wrong. </p> <p>I am a beginner to C++ but t...
0
1,511
Implementing minimax algorithm for tic-tac-toe
<p>I am trying to implement the minimax algorithm for a tic-tac-toe game where both the players are human and each time computer suggests an optimal move using the minimax algorithm. But it is not giving the right suggestion every time. For example: it does not gives the right suggestion for the following scenario: pla...
0
2,860
firebase error W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found
<ul> <li>I tried to build app based on login/signup accounts.</li> <li>I created it's Firebase and enable the authentication through email.</li> <li>I added the google-play-services.json file.</li> <li><p>I added </p> <pre><code>apply plugin: 'com.google.gms.google-services' compile 'com.google.firebase:firebase-auth...
0
1,329
Hibernate: org.hibernate.AssertionFailure: null id in com.xxx.Bean entry
<p>I was faced to the following error:</p> <pre><code>com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void com.xxx.Service.save(com.xxx.Bean)' threw an unexpected exception: org.hibernate.AssertionFailure: null id in com.xxx.Bean entry (don't flush the Session after an exception occ...
0
1,893
Place Order fails in Magento OnePage Checkout
<p>I have a Magento store that has been converted to a "one deal at a time" type store, and the checkout process is broken. I've been trying to debug this, but have hit a wall, primarily due to my limited understanding of Magento.</p> <p>On the saveOrder step, when clicking "Place Order", the page shows "submitting or...
0
1,695
MVVM: Binding radio buttons to a view model?
<p><strong>EDIT:</strong> Problem was fixed in .NET 4.0.</p> <p>I have been trying to bind a group of radio buttons to a view model using the <code>IsChecked</code> button. After reviewing other posts, it appears that the <code>IsChecked</code> property simply doesn't work. I have put together a short demo that reprod...
0
1,554
parse JSON string into array of objects Objective C
<p>I have a JSON String returned from rest web service request, I want to parse this string into Array of objects from determined class, this is the JSON string</p> <pre><code>[ { "validationCode": null, "FirstName": "Samer", "LastName": "Shame", "MobileNumber": "0991992993", ...
0
1,427
dim/blur a parent layout background
<p>there are questions here same as the above topic but didn't get an answer </p> <p>i have a layout here </p> <p>i need to use the image as the same in top layout for bottom one but with blur style </p> <p>set alpha does not help - text views also affect </p> <p>how to blur the background of the down layout</p> <...
0
2,614
Cell edit in primefaces is not updating the value
<p>I have a datatable in my primefaces application . The code for the frontend has </p> <pre><code> &lt;!-- Start of customer datatable --&gt; &lt;p:dataTable var="customer" value="#{customerBean.customers}" paginator="true" selection="#{customerBean.selectedCustomer}" selectionMode="single...
0
2,963
How do I set a DataSource to a DropDownList?
<p>I read some of the others threads and didnt work out for me =\ I have a <code>GridView</code> with a <code>DropDownList</code> in one field. I'd like to know How may I set a <code>DataSource</code> for that ? I'm not using Templates neither ItemTemplate or EditItemTemplate I don't know how it work exactly , so i'm...
0
1,108
How to resolve crt0.o linking issue in cross compiling?
<p>How to add <code>ctr0.o</code> ? </p> <p>I get this error:</p> <pre><code>yagarto-4.7.2/bin/arm-none-eabi-ld: cannot find crt0.o: No such file or directory collect2: error: ld returned 1 exit status` </code></pre> <p>while compiling very simple program from <a href="http://thinkingeek.com/2013/01/09/arm-assembler...
0
1,234
error: strcpy was not declared in this scope
<p>I get this problem in a c++ problem compiling in Ubuntu g++ version 4.4.3. I dont know the headers to include to solve this problem.. Thanks</p> <pre><code>centro_medico.cpp: In constructor β€˜Centro_medico::Centro_medico(char*, char*, int, int, float)’: centro_medico.cpp:5: error: β€˜strcpy’ was not declared in this s...
0
2,257
Bootstrap 4 input-group-append not working
<p>Using the following HTML:</p> <pre><code>&lt;!doctype html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt; &lt;meta name="description" content=""&gt; &lt;meta name="author" content=""&...
0
2,911
OpenCV VideoCapture() doesn't work - Ubuntu
<p>OpenCV 4.5 - Ubuntu - Jetson Nano 2GB</p> <p>Hello I have a problem with getting video from my webcam (connected by USB to JetsonNano) by OpenCV</p> <p>Here's my code:</p> <pre><code> // cv::VideoCapture cap( ... ); cv::Mat frame; if (!cap.isOpened()) // if not success, exit program { cout &...
0
5,370
"cannot open git-upload-pack" - Cloning project in Eclipse IDE
<p>I'm making a clone of my project that is in Github in the Eclipse IDE. After entering all the access data, the following error occurs:</p> <blockquote> <p><a href="https://github.com/" rel="nofollow noreferrer">https://github.com/</a>"COMPANY NAME"/"PROJECTNAME".git: cannot open git-upload-pack</p> </blockquote> ...
0
1,050
Unit Of Work & Generic Repository with Entity Framework 5
<p>I'm using ASP.NET MVC 4 with Entity Framework 5. I have model classes and Entity Maps to map existing tables to those model classes. All this is setup fine and works great.</p> <p>Now I want to mock this. I created Unit Of Work that takes the DataContext and uses a Generic Repository. Upon that I built services to ...
0
2,146
Sort table both numerically and alphabetically using Javascript
<p>I have a table which works by clicking on a header, which then sorts the column in ascending and descending order every time you click on the header. It sorts everything in alphabetical order, but I need it to also be able to sort numerically.</p> <p>It seems to work until the numbers go beyond single digits within...
0
7,619
Gradle can not find google play dependency
<p>I try to repair the dependency to google play services in my android project. It already worked but now it is broken. I think this happened in between the Android Studio beta- and release-version.</p> <p>This is the dependency in the build.gradle file:</p> <pre><code>dependencies { compile 'com.google.android....
0
1,388
The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via for HTTPS
<p>Following is the scenario.</p> <p>We have F5 load balancer and incoming requests comes in to the F5 load balancer as HTTPs and then they are redirected to WCF services server as HTTP. </p> <p>I have tried almost all possible configuration combinations but it keeps giving two different errors. For example, in light...
0
1,100
Keras model.fit() with tf.dataset API + validation_data
<p>So I have got my keras model to work with a tf.Dataset through the following code:</p> <pre><code># Initialize batch generators(returns tf.Dataset) batch_train = build_features.get_train_batches(batch_size=batch_size) # Create TensorFlow Iterator object iterator = batch_train.make_one_shot_iterator() dataset_input...
0
1,067
Fragment onResume() & onPause() is not called on backstack
<p>I have multiple fragment inside an activity. On a button click I am starting a new fragment, adding it to backstack. I naturally expected the <code>onPause()</code> method of current Fragment and <code>onResume()</code> of new Fragment to be called. Well it is not happening.</p> <h2>LoginFragment.java</h2> <pre><c...
0
1,174
Performance Counter - System.InvalidOperationException: Category does not exist
<p>I have following class that returns number of current Request per Second of IIS. I call RefreshCounters every minute in order to keep Requests per Second value refreshed (because it is average and if I keep it too long old value will influence result too much)... and when I need to display current RequestsPerSecond ...
0
1,030
Shiny + ggplot: How to subset reactive data object?
<p>I am making a shiny app, that shows the user a ggplot after he selects the daterange he is interested in (= the range for the x-axis). So I guess I need to define a reactive data object (correct?).</p> <p>The ggplot has some subsetting in it. R tells me that <em>reactive data object is not subsettable</em>. In my r...
0
1,741
Using Scanner inside a for loop for system input
<p>I have been struggling with this for a while. I essentially want to loop through and read in as many strings as determined by <code>num_choices</code>. The following code only executes the else condition. </p> <pre><code> Scanner s2 = new Scanner(System.in); for(int i=0; i &lt; this.num_choices; i...
0
2,543
Plot lines in different colors from color dictionary in Python
<p>I'm trying to plot the path of 15 different storms on a map in 15 different colors. The color of the path should depend on the name of the storm. For example if the storm's name is AUDREY, the color of the storm's path should be red on the map. Could some please help/point me in the right direction?</p> <p>Here's t...
0
1,409
Finding all the common substrings of given two strings
<p>I have come across a problem statement to find the <b>all the common sub-strings between the given two sub-strings </b> such a way that in every case you have to print the longest sub-string. The problem statement is as follows:</p> <blockquote> <p>Write a program to find the common substrings between the two giv...
0
2,469
SCRIPT70: Permission denied when adding options to select element from a recently closed iframe
<p>We are having issues when adding options to a select element from an iframe. The code works well in Chrome, Firefox and Opera, but in IE11 we get a "SCRIPT70: Permision denied" when trying to access the recently created option from the parent window.</p> <p>What we need is to add options to a select element choosin...
0
1,152
error MSB1009: Project file does not exist on running fromCruiseControl
<p>Following is my ccnet.config file, When running this file from ccnet webpage, it is giving me error MSB1009: Project file does not exist. ANy idea where I am doing wrong </p> <pre><code> &lt;project&gt; &lt;name&gt;ITR Test&lt;/name&gt; &lt;webURL&gt;http://localhost/ccnet/&lt;/webURL&...
0
1,531
Get NullPointerException in android Studio with recycler
<p>I'm new here. I followed a tutorial to create a card list using RecyclerView. The app crashes at launch and the log says:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.wc.gap.worldcupfixture/com.wc.gap.worldcupfixture.MainActivity}: java.lang.NullPointerException: Attempt to ...
0
1,641
Scroll parent to top of child element
<p>I am trying to scroll a div so that a link inside of it appears on top. </p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function(){ scrollit(); }); function scrollit(){ var e...
0
1,239
Swift: Terminating with uncaught exception of type NSException
<p>I'm developing a simple app and when I click to sign up the user, the app gets terminated. Please help me figure this out.</p> <p>It says that: </p> <blockquote> <p>Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-c...
0
1,897
How to avoid an exception Prematurely reached end of stream using mongoDB Java driver 3.4+ or 3.6+? (during insertion)
<p>I'm trying to insert some documents to capped collection using this snippet of code:</p> <pre><code> // get document with specific fields Document found = collection.find().first(); String getTitle = (String) found.get("title"); String getUrl = (String) found.get("url"...
0
2,847
response size limitaiton of a WCF web serivces
<p>I am hosting a WCF service in IIS using basicHttpBinding. The WCF web services queries back end SQL Server 2008 by using ADO.Net and return a DataTable to client side of WCF service.</p> <p>I find when the returned DataTable is big, there will be exception said http connection is closed by IIS. Any ideas what is wr...
0
2,349
Efficient way of reading depth values from depth buffer
<p>For an algorithm of mine I need to be able to access the depth buffer. I have no problem at all doing this using glReadPixels, but reading an 800x600 window is extremely slow (From 300 fps to 20 fps)</p> <p>I'm reading a lot about this and I think dumping the depth buffer to a texture would be faster. I know how to...
0
2,063
Android WebView not loading a JavaScript file, but Android Browser loads it fine
<p>I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not work properly. So I am running a test. I put a page out on my serve...
0
2,238
UIButton addTarget:action:forControlEvents: results in [NSObject doesNotRecognizeSelector:]
<p>I tried a lot of stuff, still no result.</p> <p>So I have the following button created programatically in a subclass of UIViewController:</p> <pre><code> rightButton = [UIButton buttonWithType:UIButtonTypeCustom]; rightButton.frame = CGRectMake(0.0, 0.0, 110.0, 40.0); rightButton.titleLabel.font = [UIFo...
0
1,617
Copying build output files, preserving directory structure, gives `Illegal characters in path`
<p>I am trying to get a MSBuild script to work for building and extracting for deployment a fairly large web application. (We are talking a few thousand files in several dozen directories, here. It's pretty much an inherited, legacy codebase, so not much I can do about it.) The build itself runs fine, but I can't seem ...
0
1,253