title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to call widget on the Activity (Widget calling from Activity)
<p>I am new to android widget.I did sample application , that want to show time .How to call widget from activity: </p> <p>I tried like this but It say <strong>Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.weather/com.weather.CurrentCity}; have you declared this acti...
1
1,570
Image Picker Html
<p>I tried to create a website to show 6 images and a user can mark every image he likes. Just like when you register on Netflix or the Captcha from Google.</p> <p>I am very new to Web development and so I don't know what is the best way to do this. I created the website using Bootstrap but now I have trouble to imple...
1
1,124
Combobox <Extjs4 - Empty line
<p>Before starting I am sorry with my english.. I don't speak it well .. So I have a problem with the Combobox in ExtJS4 .. I tried to add a empty line in my combobox list but It's not ok .. i have the list with a empty line but when I trie to select it I can't.. so if someone can help me or have an example please</p>...
1
1,242
win32 thread-safe queue implementation using native windows API
<p>Because the lack of condition variable in windows(though it is introduced since vista, it's not supported in windows XP and 2003), it is not very easy to implement a thread-safe queue in c++. <a href="http://www.cs.wustl.edu/~schmidt/win32-cv-1.html" rel="nofollow">Strategies for Implementing POSIX Condition Variabl...
1
1,051
c++ error C2893: Failed to specialize function template
<p>I'm trying to run this but I keep receiving an error.</p> <pre><code>#include &lt;iostream&gt; #include &lt;thread&gt; using namespace std; void primeNumbers( int num, int prime ) { cout &lt;&lt; "The prime numbers equal to or below " &lt;&lt; num &lt;&lt; " are: " &lt;&lt; endl; for ( int i = 1; i &lt;= ...
1
2,276
Product filtering using multiple HTML5 data-attributtes
<p>I have a function that I would like to return products based on a usermade filter via check boxes.</p> <p>Basically:</p> <blockquote> <p>Each product has multiple data-attributtes, for example: data-brand="acer", data-price="2995", data-screensize="15.6", data-processor="intel"</p> </blockquote> <p>So say i'm l...
1
3,156
How to get discount in Laravel 5.8 project on apply coupon
<p>I'm creating a coupon in my laravel project. I need to allow a discount on applying coupon click. but when I enter my code and click on an apply button it gives this message</p> <blockquote> <p>Trying to get property <code>'{"id":1,"code":"ABC123","type":"fixed","value":30,"percent_off":null,"created_at":"2020-...
1
1,688
How to add Layout on top of another Layout?
<p>My English is poor. So I threw off the video. I think any programmer looking at this will understand the reason. Thank you in advance </p> <p>I want to learn how to use ReleaseativeLayout correctly, because ConstainLayout is very buggy. Even using it in Android Studio Canary.</p> <p>So I'm using ReleativeLayout an...
1
2,300
Upload Form to Firestore with Flutter
<p>I'm confused about how to upload a form to Firestore in my flutter app. I've gone through numerous tutorials and am able to login to Firebase and retrieve data from Firestore into my flutter app, but I can't figure out how to upload a Form with numerous Textfields to Firestore. </p> <p>Example: Document title "bo...
1
2,167
how to dynamically calculate value in the text box
<p>i have a invoice where i have to calculate some value in the textbox using jquery.</p> <p>I don't know much about Jquery. Please help me to solve this problem. </p> <p>In my invoice there is quantity textbox, </p> <blockquote> <p>if users enters the quantity then dynamically it should show the calculated pri...
1
1,571
NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation
<p>I'm trying to setup a simple control+compute on a single ubuntu node. I'm using devstack. This is the command that fails:</p> <pre><code>neutron net-create --tenant-id 6fad6bf2ae9c49d3b19958abd59f3ce0 private-net </code></pre> <p>And the error is:</p> <pre><code>NoNetworkAvailable: Unable to create the network. N...
1
1,220
how to left align ticks in d3 bar chart
<p>i created a stacked bar graph.<br> on the y axis side i have ticks with varying lengths. what i am trying to accomplish is to align the text in the tick to the left. this is my example:<a href="http://jsfiddle.net/2khbceut/2/" rel="nofollow">http://jsfiddle.net/2khbceut/2/</a></p> <p>html </p> <pre><code>&lt;titl...
1
2,524
Empty space when I return to Activity (Soft Keyboard forced)
<p>I have an <code>ActionView</code> with menu item on <code>ActionBar</code> (using <em>ActionBarSherlock</em>), I'm able to display an <code>EditText</code> as a search field in it. It's an input to launch another <code>Activity</code> with a <code>CustomView</code> in ActionBar which it displays the same layout (I d...
1
3,375
twitter bootstrap tooltip showed behind modal
<p>I have a tooltip with span inside input-group which is showed in modal popup behind the main modal div..</p> <p>This is my tooltip inside a form-group</p> <pre><code>&lt;div class="form-group margin-none innerB"&gt; &lt;label for="form_field_name" class="col-sm-3 control-label"&gt;label&lt;/label&gt; &lt;div class...
1
1,061
R Shiny Error: "cannot find function "shinyServer"
<p>New to R shiny. Simulating the shiny server found on <a href="http://gist.github.com/wch/4034323.2" rel="nofollow">Github</a> but for a logistic distribution instead of the quadratic, linear and LOESS shown. In my code, the checkboxes are taken out and the y-variable is a categorical variable. R does not display err...
1
1,743
App works in php 5.3 but not 5.4+
<p>We're running a server app to activate our software, the web app and database itself works fine in php 5.4+ but the activation within the software causes an internal server error if we're running anything higher than php 5.3 (test with 5.4, 5.5 and 5.6) - i'd like to install 5.6 to be future proof and up to date on ...
1
2,934
How to use prepared statement
<p>Someone has suggested to use prepared statement but I don't know how to use it. What changes do I have to do in my code?</p> <pre><code>try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); System.out.println("\n Driver loaded"); Connection con = DriverManager.getConnection("jdbc:odbc:wanisamajDB"); ...
1
1,063
JUnit 5 test case not executed
<p>I created this test in a new clean Maven project in NetBeans 8.2: </p> <pre><code>import static org.junit.jupiter.api.Assertions.fail; import org.junit.jupiter.api.Test; public class JUnit501Test { @Test void firstTest() { fail("epicly"); } } </code></pre> <p>If I run the tests, the log shows...
1
3,400
View Hierarchy Not Prepared for Constraints Even After Adding Subviews
<p>I am trying to implement a collection view where each cell has a variable number of UIButton instances, placed horizontally end to end.</p> <p>Because the number of buttons is dynamic, I am instantiating the buttons at runtime and adding the auto layout constraints programmatically (first time attempting this). </p...
1
3,055
Force SCons to use 32-bit MSVC compiler on 64-bit Windows
<p>I am trying use <code>cl</code> from Visual Studio 2010 to build the 32-bit version of <a href="https://github.com/mixxxdj/mixxx" rel="nofollow noreferrer">Mixxx</a>. Mixxx uses SCons to build. My computer is Windows 7 64-bit with too many versions of Visual Studio installed.</p> <p>Following <a href="http://mixxx....
1
1,061
Unexpected sign extension of int32 or 32bit pointer when converted to uint64
<p>I compiled this code using Visual Studio 2010 (<code>cl.exe /W4</code>) as a C file:</p> <pre><code>int main( int argc, char *argv[] ) { unsigned __int64 a = 0x00000000FFFFFFFF; void *orig = (void *)0xFFFFFFFF; unsigned __int64 b = (unsigned __int64)orig; if( a != b ) printf( " problem\ta: %...
1
1,064
Spring Batch - How to generate parallel steps based on params created in a previous step
<h2>Introduction</h2> <p>I am trying to use jobparameters created in a tasklet to create steps following the execution of the tasklet.</p> <p>A tasklet tries to finds some files (findFiles()) and if it finds some files it saves the filenames to a list of strings.</p> <p>In the tasklet I pass the data as following: ...
1
2,009
hadoop multiple already being created exception
<p>I am not getting the below error, when I run the code on small data. But I am getting the below error while using multiple outputs, when I run the same code on a bigger dataset. Pls Help!</p> <pre><code>org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException: failed to c...
1
3,986
Writing a function to display employee information based on a particular department in Oracle?
<p>These are the list of tables I have created and inserted values for the created tables:</p> <pre><code>CREATE TABLE DEPARTMENT (DEPARTMENT_ID NUMBER PRIMARY KEY, DEPARTMENT_NAME VARCHAR(30) NOT NULL ); CREATE TABLE JOBS (JOB_ID NUMBER PRIMARY KEY, JOB_TITLE VARCHAR(35) NOT NULL, MIN_SALARY DECIMAL NOT NULL...
1
2,054
Remove mask image"Watermark" from PDF itextsharp
<p>I need to remove a mask image from a pdf document. The same image is used as "watermark" on all pages. Is this possible with iTextSharp,and if yes I would a appreciate any code examples.</p> <p>The reason I need to remove the watermark is because I need to OCR the pdf but the text under the "watermark" is getting c...
1
1,066
How to rescue ActionDispatch::ParamsParser::ParseError and return custom API error in rails 5?
<p>Whenever sending malformed JSON against my API-only Rails 5.x application, I get an exception and Rails is returning the entire stack trace as JSON. Obviously I'd like to respond with a nicely, custom, formatted error.</p> <pre><code>=&gt; Booting Puma =&gt; Rails 5.0.0.1 application starting in development on http...
1
2,256
UITableView not updating
<p>I'm using a Core Data model and a UITableViewController table view. My model seems to be working quite well however my table view is not updating when I add an entity to my model. The reason I believe my model is working is because when I add an entity nothing shows up in the view during run time, however if I cut t...
1
3,332
No module named markdown App Engine
<p>My directory structure in app engine is like this : </p> <pre><code>project app.yaml main.py lib markdown markdown_files </code></pre> <p>Markdown is being imported in <code>main.py</code> by <code>from lib.markdown import markdown </code>. At this point dev server is starting to give m...
1
1,972
case_clause error after successful response [cowboy rest]
<p>my erlang server generates a case_clause error after every request for some reason. Here is my code:<br> <strong>keychain_no_auth_handler.erl</strong></p> <pre><code>-module(keychain_no_auth_handler). -export( [ init/3, content_types_accepted/2, terminate/3, allowed_methods/2, handle_request/2 ...
1
2,632
Spring boot application not starting on Tomcat 7
<p>I am trying to deploy my Spring boot application on a Tomcat 7 server and start it. I am able to deploy, while I am facing problems in starting the server.</p> <p>What I did ?</p> <p>1) Created a spring starter project with the initial configurations and dependencies.</p> <p>2) Edited the 'org.eclipse.wst.common....
1
4,887
Django-crispy-forms place Submit button in different location
<p>I'm using Django-crispy-forms, and I want to be able to place the Submit button in a different place than right next to the bottom of the form.</p> <p>Here is my form:</p> <pre><code>from django import forms from django.core.urlresolvers import reverse from crispy_forms.helper import FormHelper from crispy_forms.l...
1
1,150
NoClassDefFoundError: antlr/RecognitionException in servlet but works in normal java program
<p>In my below servlet class I am getting some NoClassDefFoundError: antlr/RecognitionException and NoClassDefFoundError: antlr/TokenStreamException while deploying in the tomcat server. The starred lines with <strong>*</strong> are the ones which cause it. When I comment those lines, its easily deployed. I have includ...
1
1,083
Google Maps won't zoom. Stuck on seeing the whole world
<p>As the title says, I have Google Map v2 working, but it won't zoom in. The blue dot appears to show my location but I have the whole world being shown too. I need a map that has everything disabled. You can't zoom in or out, you can't use gestures and the position is fixed to a certain distance around your location....
1
1,552
Segmentation fault on parallelization with OpenMP
<p>I am using OpenMP to parallel the following function</p> <pre><code>float myfunc ( Class1 *class1, int *feas, int numfeas, float z, long *k, double cost, long iter, float e ) { long i; long x; double sum; sum = cost; while ( change/cost &gt; 1.0*e ) { change = 0.0; intshuffle (...
1
3,154
Java, generics and iterators
<p>I'm trying to understand why I'm getting this error:</p> <p>-- This is the error --</p> <p><code>File: ...\HashTable.java [line: 103] Error: The return type is incompatible with HashTableInterface&lt;Key,Value&gt;.iterators() </code></p> <p>The interface contains an innerclass:</p> <p><code>public class Entry&l...
1
1,098
Google Maps API: Multiple GeoJson layers with MarkerClusterer + toggle
<p>I have a problem with my GeoJson layers which I want to cluster (with MarkerClusterer) and then be able to show and hide them via checkboxes or similar. Therefore I tried something like the code below:</p> <pre><code>function initialize() { var mapOptions = { center: new google.maps.LatLng(52.515696, 13...
1
1,261
Deploying Qt Frameworks with Mac app and usage of otool
<p>I have a problem deploying Qt frameworks with my Mac app, and I hope some will have a clue why I get this error, when I run the app on clean Mac, i.e. not a developer Mac.</p> <p>OS: 10.7 .2 and using XCode</p> <p><strong>Error msg:</strong></p> <pre><code>Library not loaded: @loader_path/../Frameworks/QtCore.fra...
1
1,243
Using Comparable's compareTo to compare an object to the elements in an arraylist
<p>I created an object Student using Comparable with getters/setters as well as a method that overrides compareTo. In a separate file an arraylist of objects is populated from a text file. Now I need to compare the values in the arraylist to another Student object.</p> <p>The file was used to create an arraylist as be...
1
1,075
ZXing barcode scanner in Xamarin Forms on iOS doesn't read barcodes
<p>I'm working on a Xamarin Forms PCL project targeting Android and iOS that needs some basic barcode scanning functionality.</p> <p>I got things up and running with the forms version of the <a href="https://github.com/Redth/ZXing.Net.Mobile" rel="nofollow noreferrer">ZXing.Net.Mobile</a> package following <a href="ht...
1
1,052
jQuery validating all tabs on form submit
<p>Currently jQuery validation plugin, validates only selected tab. So to make all the tabs to be validated i introduced ignore attribute </p> <pre><code>$("form").validate({ .... .... ignore:"ui-tabs-hide" }); </code></pre> <p>But after giving this it validates even the hidden fields. Is there a way to validate fie...
1
1,066
Creating and Showing an AlertDialog from a custom ListAdapter
<p>I am implementing a custom ListAdapter which is using different list item layouts to show some items. From that custom ListAdapter, I actually want to show an AlertDialog when a particular Button is clicked. I implemented the onCreateDialog(int) method and I am trying to use showDialog(int) to show the dialog. But t...
1
1,996
Repeating animations specific times e.g 20 times by Flutter
<blockquote> <p><strong>I have a simple animation :</strong></p> </blockquote> <pre><code> Animation&lt;double&gt; animation; Tween&lt;double&gt; tween = Tween(begin: 1, end: 1.15); AnimationController animationController; @override void initState() { super.initState(); animationController = ...
1
1,070
Docker multi-stage build not copying between stages
<p>I'm trying to create a multi-stage build where the first stage does a yarn install for the theme and the second stage sets up the PHP environment for Drupal.</p> <p>When I look at the output it looks like yarn install is being run but the <code>COPY</code> command near the bottom doesn't copy it across to the PHP i...
1
1,766
T4 - Entity Framework Error: Method not found: 'System.Data.Entity.DbSet`1
<p>Trying to create a fairly simple T4 which I'm trying to load some values that I can use for later:</p> <pre><code>&lt;#@ template debug="false" hostspecific="false" language="C#" #&gt; &lt;#@ assembly name="System.Core" #&gt; &lt;#@ assembly name="c:\users\&lt;username&gt;\documents\visual studio 2015\Projects\2_Da...
1
1,261
Spring JavaConfig and Tomcat 8
<p>I have a Spring 4 web application (webapp-module.war) working and running locally in eclipse using Java 8, tomcat 8 and JavaConfig (no web.xml):</p> <p><a href="https://i.stack.imgur.com/ifhd9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ifhd9.png" alt="enter image description here"></a></p> ...
1
1,399
How to deal with solving environment installation issue in Anaconda?
<p>I'm trying to install OpenCV with Anaconda prompt. I've tried the anaconda and conda-forge versions.</p> <p>After using the <a href="https://www.geeksforgeeks.org/set-opencv-anaconda-environment/" rel="nofollow noreferrer">article's</a> mentioned command:-</p> <p>conda install -c menpo opencv</p> <p>I get the fol...
1
1,077
How to get the Android context instance when calling JNI method?
<p>I have already read some relevant answers on stackoverflow,but seems no one has answered my question.I will get the android ID from native code,i.e. calling the method getAndroidIDfromNativeCode in C code,(so the JVM is inited in the native code by method create_vm),you know that when calling the method <strong>getC...
1
1,600
textbox input to get / set viewmodel
<p>I'm sure this has already been asked, but I'm still new to MVVM and WPF, and not too sure what I should be searching for.</p> <p>I have a viewmodel which includes items in a Model, as well as some additional temporary data items which will all be passed to a process.start(). I have a stackpanel of textbox, and wan...
1
1,031
How to get data from dynamically created EditText views and insert it into an array?
<p>So basically what I need my program to do at this point is that when I click the submit button, I need to loop through each dynamic row of the ListView and grab the value in the EditText view and then insert that into an array which I will do further calculations after. Here is my code right now.</p> <pre><code>pac...
1
1,740
Scipy odeint giving lsoda warning
<p>I am totally new to coding and I want to solve these 5 differential equations numerically. I took a <a href="http://wiki.scipy.org/Cookbook/Zombie_Apocalypse_ODEINT" rel="noreferrer">python template</a> and applied it to my case. Here's the simplified version of what I wrote:</p> <pre><code>import numpy as np from ...
1
1,532
Azure Functions - Unable to import other python modules in called scripts
<p>I have created a simple HTTP trigger-based azure function in python which is calling another python script to create a sample file in azure data lake gen 1. My solution structure is given below: -</p> <p><a href="https://i.stack.imgur.com/5A8Bu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5A8B...
1
1,241
Django select multiple objects and save user choices
<p>I need help getting user preferences to save to the db. I have a set of community objects defined by the following model:</p> <pre><code>class Community(models.Model): name = models.CharField(max_length=20, unique=True) banner = models.ImageField(upload_to="communityBanners", blank=True) creation_date =...
1
1,527
ldap_search_ext_s: No such object error
<p>How get info about people after connecting anonymously to server.</p> <p>I am searching uid=barbara to anonymously binded ldap server as follow,</p> <p>I get error,</p> <pre><code>LDAP initialize successful. Set LDAPv3 client version. LDAP connection successful. ldap_search_ext_s: No such object </code></pre> <p...
1
1,321
Arduino Switch to Turn a Relay timer
<p>Briefly: I would like to turn on a relay for 30 seconds, after I toggle a switch on.</p> <p>I'm trying to do a blinds automation at home.</p> <p>I have a simple ON-OFF-ON switch, attached to an Arduino connected to Relays. </p> <p>I want to turn on Relay#1 for a maximum of 30 seconds if I toggle the switch down f...
1
1,171
React-datepicker date range
<p>I am using react-typescript for my app. I am using <a href="https://www.npmjs.com/package/react-datepicker" rel="nofollow noreferrer">React-datepicker</a> package. I want to create one global date range component. So I can reuse it to the different component. I have used React-datepicker's <code>customInput</code> f...
1
1,415
Timestamp discrepancies between SQL server and Java
<p>I need to replicate a simple procedure from Java code to SQL Server stored procedure. It will go into a SQL Azure db in production, but I'm testing it against my local SQL Express 12 install.</p> <p>A part of this stored procedure is to concatenate some values into a string.</p> <p>This is my example Java code:</p...
1
1,337
Basic Database Design - Optional Participation
<p>Working on basic database design homework and ERD drawing in Visio, and can't wrap my head around this problem. </p> <blockquote> <p><em>United Helpers is a nonprofit organization that provides aid to people after natural disasters. Based on the following brief description of operations, create the appropriate...
1
1,151
Accessing Android phone contacts with phonegap and Sencha Touch
<p>please I'm trying to get a list of all the contacts on my phone with the following code.</p> <pre><code>var App = new Ext.Application({ name: 'SmsthingyApp', useLoadMask: true, launch: function () { Ext.data.ProxyMgr.registerType("contactstorage", Ext.extend(Ext.data.Proxy, { create: function(opera...
1
6,043
python scrapy login redirecting problems
<p>I'm trying to use scrapy to crawl a website, but I'm not able to login to my account through scrapy. Here is the spider code:</p> <pre><code>from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from images.items import ImagesItem from scrapy.http import Request from scrapy.http import ...
1
2,502
ESAPI - Getting ClassNotFoundException with ESAPI 2.2.3.1
<p>My Code was working with org.owasp.esapi 2.2.0.0 but after upgrading to 2.2.3.1 I am getting ClassNotFoundException.</p> <p>My Code is something like:</p> <pre><code> Properties esapiProps = new Properties(); try { esapiProps.load( SecurityUtil.class.getResourceAsStream(&quot;/ESAPI.properties&quot;) ); ...
1
1,927
JavaCV example is not working - what am I missing?
<p>It's the first day of learning JavaCV for me. And this is the first test example which I use just to make sure that my setup is done correctly. Unfortunately I can't run the example and I barely understand the code and all dependencies so it's really hard for me to find out what is missing. Below I'll post my projec...
1
1,383
Autowiring of fields failed exception
<p>I am using Spring MVC Portlet and I have a problem. My app is working properly while it have one bean. If I want to add another bean below error is occurring.</p> <p>Error log is here;</p> <pre><code>ERROR [org.springframework.web.portlet.DispatcherPortlet] - Context initialization failed org.springframework.beans...
1
2,256
How do I add a Margin/Space between two divs in Flexbox
<p>I have a left column and a right Column. The right column Div element has a Display Value of Flex, but I am unable to add a margin or space in between its two child Div elements.</p> <p>I found an answer on stack overflow which advised me to use Justify-content: space-around</p> <p>But this did not seem to work. I...
1
1,274
ajax post request - cross-Origin Read Blocking (CORB) blocked cross-origin response CORS
<p>I have a jquery frontend project which sends POST request to my ASMX Webservice (c#) with ajax. Everything works fine, instead of one special request. </p> <p>The application is something like a shopping app. The Post-request which sends the order to the database works well if i have less than 5 items in the cart. ...
1
1,261
Using UISearchController with UINavigationController
<p>I'm having the same problem as <a href="https://stackoverflow.com/questions/29472011/uisearchcontroller-persisting-after-segue">here</a>, which doesn't have any answers. (Setting <code>searchController.active</code> to <code>false</code> clears out the search text, which I don't want.) I want to use a UISearchContro...
1
1,607
Typescript Redux - Typing of initialState with CreateSlice
<p>I have used CreateSlice to create my reducer/actions like in the code below:</p> <pre><code>import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { Modal } from 'antd'; export interface ModalState { modalProps: React.ComponentProps&lt;typeof Modal&gt;; visible: boolean; modalContent: string; }...
1
1,210
QuickFIX/J mixing two different versions
<p>I am writing an application that uses QuickFIX/J as FIX framework. My counterpart sends me an <code>ExecutionReport</code> message of FIX version 4.4 But only some fields (the <code>Parties</code> component) are of version 5.0</p> <p>Now I am trying to implement that I can read this component.</p> <p>This one</p> ...
1
1,747
Get URL of image from Picture Library using CAML
<p>How is it possible to get the URL of an image that is stored in a Picture Library using CAML?</p> <p>Currently, I've made a CAML Query and run it in the <a href="http://www.u2u.be/res/tools/camlquerybuilder.aspx" rel="nofollow">U2U CAML Query Builder</a>, and am seeing values like <code>ows_LinkFilename</code>, <co...
1
1,094
Android Studio: Multiple dex files define Lcom/sun/activation/registries/LineTokenizer;
<p>Receiving this exception whilst trying to build my project. Have searched around for an answer but most cases seem to be different to mine. </p> <p>Other solutions include clearing temporary files or doing a gradle clean. This does temporarily solve the issue but it reappears again after a few builds. Another way t...
1
1,270
On Text Changed Client side event in telerik textBox to access a value
<p>Hi there is a Telerik grid. and inside it there are two textBox Columns named sign in time and sign out. finally there is a label column too, to have the hours from the time signed in to sign out. that should be calculated and shown as other two textBox values change. What should i do ? below js function is called i...
1
1,500
How to set: "artist", "album artist", "year", "album", "song number" and "title" fields of the tag, with mutagen
<p>I'm trying to use mutagen (with Python 2.7.5) to create a program that, given that the path to songs is <code>...\Artist\Year Album\Songnumber Title.mp3</code>, sets the artist, album artist, year, album, song number and title tags of the song, and preserves the genre tag. I tried to do this with <a href="https://mu...
1
1,324
Configure deserialize Json in RestAssured
<p>I use restAssured to test rest service in our applications. The application receive a Json format. Before call the rest service, RestAssured must deserialize a field (ENUM) of bean class with toString method to achieve the response. Follow the code:</p> <pre><code>public enum Condition { SUCCESS("success"), ...
1
1,192
Cortex m3: fatal error: inc/hw_ints.h: No such file or directory
<p>I'm working with Cortex M3, Stellaris® LM3S6965 Evaluation Board. I'm trying to make a led on if I press a button. But it always gives me an error when while building. </p> <p>In the program I basicly check the status of the button, with that I enable the led. I'm new to this, I tried searching but I really cou...
1
1,750
HTML5/CSS3 how to expand an anchor element to fit full size of it's li parent
<p>I've got an unordered list which holds a few items. It's purpose is to become a navbar. The list is set up to be displayed as a table-row with each li element a table-cell, these elements each hold an anchor tag with the first one holding the logo. The issue is that the anchor elements are positioned to the bottom v...
1
1,144
Jquery Mobile - form submission - Error Loading Page
<p>I submit a form like so:</p> <pre><code>&lt;form action="userlogin.html" method="get" name="log_form" onsubmit="return form_val();"&gt; </code></pre> <p>which is all good, then it goes to produce the cookie if log in data correct as follow:</p> <pre><code>if ($email){ // 111 require '/php/lib/dbconnect.inc'; ...
1
1,301
Multiple data sources as array in google charts dashboard api
<p><strong>What I have done?</strong> I am building a dashboard with multiple data. The data are in form of arrays.</p> <p><strong>What i need to implement?</strong> I have implemented the dashboard with the help of the tutorial but I am not able to implement another data source.</p> <p><strong>Here is my code</stron...
1
2,213
Android Compound Custom View restore save state
<p>I created compound custom view which contains <code>TextView</code> and <code>EditText</code> called <code>LabledEditText</code>, since I will have a lot of EditText fields in a fragment.</p> <p>I have created an XML file that holds the following </p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.andro...
1
2,051
How do I memoize a recursive function in Lisp?
<p>I'm a Lisp beginner. I'm trying to memoize a recursive function for calculating the number of terms in a <a href="http://en.wikipedia.org/wiki/Collatz_conjecture" rel="noreferrer">Collatz sequence</a> (for problem 14 in <a href="http://projecteuler.net/index.php?section=problems&amp;id=14" rel="noreferrer">Project E...
1
1,024
how to wakeup select() within timeout from another thread
<p>According to the "man select" information: </p> <pre><code> "On success, select() and pselect() return the number of file descrip‐ tors contained in the three returned descriptor sets which may be zero if the timeout expires before anything interesting happens. On error, -1 is re...
1
1,456
IE7 margin issue
<p>and thanks for the help.</p> <p>I am having a somewhat confusing issue with IE7 when using margins.</p> <p>I have a contaner, and inside that container I have some floated boxes.</p> <p>These boxes have margins applied, top, right, left, bottom, except the first box that has no margin on the left, and the last bo...
1
14,830
Wordpress get_the_terms for custom Taxonomy
<p>Within an archive page, I'm trying to show the a custom taxonomy (called location) along with each post title, category and tag. I can't get the 'get_the_terms' to work.</p> <p>The post title, category and tag is working perfectly. The taxonomy doesn't work. </p> <pre><code>&lt;div class="post-listing"&gt; ...
1
1,130
Trigger components methods when click elsewhere
<p>I've a HeaderSubmenu component which can show/hide a drop-down menu if a button is clicked. Okay, but now I try to find a good solution to make that if the user clicks anywhere in the app but not on this drop-down menu, it hides.</p> <p>I'm using Vue 2.3.3 with Vuex and VueRouter.</p> <p>my App entry point :</p> ...
1
1,372
Trying to build PHP and GD with PNG and JPEG support
<p>The browser displays the error message </p> <blockquote> <p>Fatal error: Call to undefined function imagecreatefrompng() in...</p> </blockquote> <p>Here is the source code that fails:</p> <pre><code>$img = imagecreatefrompng($file); </code></pre> <p>It's a native PHP function.</p> <p>I am intent on building b...
1
2,838
How to read and download ddd tachograph file with APDU?
<p>I'm trying to read data from a tachograph card using <code>javax.smartcardio</code>. The problem is I'm doing most of the things blindly because I can't find a simple tutorial on <code>APDU commands</code>.</p> <p>Currently I managed to print the card type (<code>card: PC/SC card in HID Global OMNIKEY 3x21 Smart Ca...
1
1,360
EJB's not being injected in JAX-RS
<p>I am using JBoss 6.2.0 EAP, I am trying to get my EJB's injected into my JAX-RS classes but I am getting a NullPointerEXception. It's definitely the CUstomerDAO class, because the error at line 29 is the printOut method being called on a null object. I added beans.xml to my WEB-INF. I am wondering if the servlet I a...
1
7,945
Key press event of html is not working in mobile devices
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>function keyDown() { alert("KeydownEvent Fired"); } function keypress() { alert("keypress Event Fired") } function keyup() { alert("...
1
1,166
The exact moment iOS takes the view snapshot when entering background?
<p>I have a problem when putting my iPhone app to background by pushing the exit button, and then relaunching by tapping the launch icon on the home screen: the app's view does return to its initial state like I want it to, but before that it flashes the earlier, wrong view state onscreen briefly. </p> <p><strong>Back...
1
2,927
How to set layout_columnWeight for a GridLayout child when added programmatically?
<p>I'd like to use a <code>GridLayout</code> (not <code>GridView</code>) as board for a game like chess or checkers. As I'm a little reluctant to use an xml file with 64 child <code>View</code>s, I've tried adding them programmatically. </p> <p>To keep things simple, I started with using <code>TextView</code>s as chil...
1
2,099
Excel VBA automation of html form generated by php
<p>I am a non-coder/programmer trying to create an excel spreadsheet that utilizes some VBA automation to import some web-data based on certain cell values. I have managed to scrape together part of the process using Youtube and some other sites like this. However, I have hit a road block that I am hoping someone could...
1
1,126
Failed: Unexpected directive 'NewPracticeQuestionComponent' imported by the module 'DynamicTestModule'. Please add a @NgModule annotation
<p>I am unit-testing a commponent which uses two other components. The other components are created when button is clicked</p> <p><code>.html</code></p> <pre><code> &lt;div id="homepage-top-div" class="homepage-component-css-grid-container"&gt; ... &lt;button id="get-question-list-button" [routerLink]="qu...
1
1,206
SQLite column with space in name
<p>I try to access a SQLLite database in my war in which some columns have space in their name.</p> <p>I saw the previous question <a href="https://stackoverflow.com/questions/14019275/read-data-from-sqlite-where-column-name-contains-spaces">Read data from SQLite where column name contains spaces</a> on SO but the sol...
1
2,531
Does iOS support the "beforeinstallpromp" event?
<p>Chrome in Android and Desktop supports "beforeinstallpromp" event which is can show up add to homescreen banner. I'm try to use the same javascript code for my PWA in iOS but it is doesn't work. </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet...
1
2,908
Postgres trigger issue "ERROR: query "SELECT NEW.*" returned 12 columns"
<p>I'm on Postgres 9.2 and I'm having issues with a trigger inserting into partitions. It was working for quite awhile, where i was running this .sql script for almost a year, where it was successful all the way to as of last week. Today, I tried to run it, and I was getting an error from the trigger.</p> <blockquot...
1
1,607
ZK: How to create component and register databinding
<p>Hi,</p> <p>I am using <a href="http://www.zkoss.org/" rel="nofollow noreferrer">ZK framework</a> to develop web applications. I am using databinding on components to set and get values. I can register databinding in source ZUL file and also in the method doAfterCompose in page's controller. This method is called du...
1
1,888
Programmatic Android Layout
<p>I'm trying to correlate how the Android XML looks versus creating it programmatically and I'm failing miserably. I've read several references stating that the type for the LayoutParams for the View must be equal to those of the parent, but I'm just not grokking it. </p> <p>Given the following XML, how would I re-cr...
1
1,910
Change color of table cell in javascript based on other cell's value
<p>I am displaying a table on the webpage as follows:</p> <pre><code>ID | Val | Num ABC | Value1 | 1 ABC | Value1 | 0.8 CDB | Value 2 | 0.5 </code></pre> <p>I want that if the cell value in <code>Num</code> column for that row is between 1 and 0.8, then the background color of the corresponding <code>Val</...
1
3,006
Angular JS and Unobtrusive JavaScript
<p>I'm just getting into learning MVC and Angular and I'm curious about code such as the following (taken from angularjs.org)</p> <pre><code>&lt;html ng-app&gt; &lt;head&gt; &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"&gt;&lt;/script&gt; &lt;script src="Scripts/Todo.js"...
1
1,032
How distinguish hangout from google talk app?
<p>From my app I want to run <a href="https://play.google.com/store/apps/details?id=com.google.android.talk" rel="nofollow">Hangouts</a> and from that app users can create video calls.<br> But on some target devices users have native Google Talk app (not updated to Hangouts). </p> <p>The problem is: Google Talk and Ha...
1
1,075
Java 7: How to implement drag & drop in Java?
<p>I am currently experimenting with drag&amp;drop using Java 7 Update 21.</p> <p>My target operating systems are:</p> <ul> <li>Windows 7</li> <li>Ubuntu 12.04</li> <li>Mac OSX 10.6 / 10.8</li> </ul> <p>The requirements are:</p> <ul> <li><p>drag files from the filesystem and drop it to my Java application (making a...
1
2,144
How do I make NHibernate cache fetched child collections?
<p>I've got a fairly simple criteria query that fetches child collections, like so:</p> <pre><code>var order = Session.CreateCriteria&lt;Order&gt;() .Add(Restrictions.Eq("Id", id)) .SetFetchMode("Customer", FetchMode.Eager) .SetFetchMode("Products", FetchMode.Eager) .SetFetchMode("Products.Category", F...
1
1,090