title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
HTML 5 navigation menu showing overlapping list items in sub menu on hover
<p>The problem is with faced with the nested unordered list having a class name of .SubMenu, below is the screenshot, the sub menu below <strong>Our Activities</strong> does not show all the 5 list items as present in the HTML makrup</p> <p><img src="https://i.stack.imgur.com/nbEk1.png" alt="enter image description he...
1
1,769
RSA_public_decrypt and MS Crypto API equivalent
<p>I'm trying to develop a license verification solution. Licenses are encoded on server using OpenSSL's <code>RSA_private_encrypt</code> function.</p> <p>For Mac OX X I use <code>RSA_public_decrypt</code> and it works like a charm. On Windows I must use very tiny bit of code, so I can not link with OpenSSL or other l...
1
1,380
NHibernate query extremely slow compared to hard coded SQL query
<p>I'm re-writing some of my old NHibernate code to be more database agnostic and use NHibernate queries rather than hard coded <code>SELECT</code> statements or database views. I'm stuck with one that's incredibly slow after being re-written. The SQL query is as such:</p> <pre><code> SELECT r.recipeingredientid...
1
1,372
Bluetooth Chat - Pass the complete incoming message as string
<p>I am using Bluetooth Chat sample app from Android website. I want to pass the complete incoming message, (message format included in the code below as this website is parsing the message for me which is my job in the code as well, to a function which removes the tags and extracts message name and value and uses it f...
1
1,915
Temporary tables in stored procedure for Oracle
<p>I have a stored procedure that runs fine on MS SQL and DB2. But cannot get it to run on Oracle as it uses temporary tables created within the procedure. I would like to know any suggestions on my stored procedure if possible. Please do not suggest execute immediate as i do not have the permission for that. This is a...
1
2,483
How to train and evaluate simultaneously in Object Detection API ?
<p>I want to have train/evaluate the ssd_mobile_v1_coco on my own dataset at the same time in <code>Object Detection API</code>.</p> <p>However, when I simply try to do so, I am faced with GPU memory being nearly full and thus the evaluation script fails to start. Here are the commands I use for training and then eva...
1
5,788
StreamCorruptedException: invalid type code: 00
<p>Server code:</p> <pre><code>while (true) { Socket sock = serv.accept(); try { new ClientSession(sock, outQueue, activeSessions); System.out.println("CS"); } catch (IOException e) { System.out.println("Sock error"); sock.close(); } } ...
1
2,119
Grails REST API - Render JSON with paging, metadata and custom include fields from params
<p>I'm looking for a best way to design a custom JSON response for RESTful API in Grails based on this presentation <a href="http://www.slideshare.net/stormpath/rest-jsonapis" rel="nofollow noreferrer">Design Beautiful REST + JSON APIs</a> by <a href="https://stackoverflow.com/users/407170/les-hazlewood">Les Hazlewood<...
1
2,306
JSON serializing and deserializing with hibernate jpa to have parent object into child in JSON response
<p>I am developing rest web app with spring framework, Hibernate and JSON. Please Assume that I have two entities like below:</p> <p>BaseEntity.java</p> <pre><code>@MappedSuperclass @JsonIdentityInfo(generator = ObjectIdGenerators.PropertyGenerator.class,property = "id" ) public abstract class BaseEntity implements S...
1
1,191
Cannot connect to apache server locally
<p>I am trying to access an Apache server on my local machine, but can't get it to work. I had it working last week, but then it randomly stopped working. I have edited the httpd.conf file to update the port to 9876. I also added the ExecCGI directive in the HTDocs directory.</p> <p>I usually see the index.html page I...
1
1,318
Symfony doesn't load a page
<p>I just configured <code>Symfony</code> 3.4.15 in my <code>Ubuntu Server</code> and the Welcome page works, but when I want to create a new page, for example /home, with a Controller it doesn't work: </p> <blockquote> <p>Not Found</p> <p>The requested URL /home was not found on this server. Apache/2.4.18 (U...
1
1,027
How to check checkbox on clicking an image?
<p>I have created a gridview and added a checkbox in it.On clicking on checkbox grid view item which are image view with textview get selected.</p> <p>But I want to check the checkbox on tap of grid view item.</p> <p>This my MainActivity</p> <pre><code> public class MainActivity extends Activity { GridV...
1
3,711
primefaces graphicImage f:param doesn't work
<p>I have JSF:</p> <pre><code>&lt;p:graphicImage value="#{chatView.userPhoto}"&gt; &lt;f:param name="userId" value="#{user.id}"/&gt; &lt;/p:graphicImage&gt; </code></pre> <p>user.id is valid I have checked.</p> <p>And bean:</p> <pre><code>@ManagedBean @ViewScoped public class ChatView extends BaseView { /*...
1
5,570
Export to Excel from HTML table Jquery is not Exporting Headers of the Table
<p>I want to Export a HTML Table which is dynamically generated based on the data. This is the table layout before the data is populated. Once the data is queried, i'm populating the rows to the table dyanimcally.</p> <pre><code>&lt;table id="findCntrctTable"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th...
1
1,991
CloudWatch custom EC2 memory metric and alarm with AutoScaling policy
<p>My goal is to test AutoScaling based on memory used on my EC2 instances.</p> <p>To monitor my EC2 instance memory, I installed CloudWatch agent on my EC2 Instance and created and configured my CloudWatch agent configuration file, as explained here: <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monito...
1
2,383
Stripe create customer iOS
<p>I'm using stripe and parse to allow the user of my app to enter in their credit card and purchase. I got that far the user can make a purchase everything is good. But I want to allow the user to enter their CC information and have that save so they don't have to keep re-entering it. I'm having a really hard time doi...
1
1,407
Forecasting time series data with PyBrain Neural Networks
<h1>Problem</h1> <p>I am trying to use 5 years of consecutive, historical data to forecast values for the following year. </p> <h2>Data Structure</h2> <p>My input data <em>input_04_08</em> looks like this where the first column is the day of the year (1 to 365) and the second column is the recorded input.</p> <pre>...
1
2,060
datepicker not working for jqgrid
<p>I am not able to add DatePicker to the jqGrid, </p> <p>Following is my code.</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt; &lt;title&gt;My Date time example&lt;/title&gt; &lt;script src="js/jquery-1.7.2.min.js" type="text/javascript"&gt;&lt...
1
3,345
JQuery UI AutoComplete AJAX call
<p>I am trying to create a search field that autocompletes with suggestions from a database using an ajax call. Upon selecting an item, I would like for it to update the search field. Currently when I type something into this textbox, it returns an empty selection. Any help would be appreciated. </p> <p>Here's the co...
1
1,239
iOS 6 Collection View Controller multiple dynamic cells
<p>I am only a week into Xcode, trying to learn something, so I can contribute to a project..</p> <p>So far I've been looking into tutorials and made something :) But I'm far from over. I hope someone will understand what I'll be asking..</p> <p>I'm making an app that will take data from a server, the data will inclu...
1
1,710
Android: Spinners within a ListView loose their values when I add dynamically new ListView entries
<p>My activity contains a button and a ListView. The ListView contains a Spinner and an EditText view. I use the button each time I want to insert a new row entry in my Activity's ListView.</p> <p>I have followed the instructions of previous stackoverflow threads like this one here: <a href="https://stackoverflow.com/...
1
1,766
SSRS using Xml datasource [WCF], its possible, but is it advisable?
<p>We have a requirement to use WCF as a data source in our reports. [Server Mode]</p> <p>Dot Net 4.0/ SSRS 2008 R2/ ASP.Net 4.0</p> <p>The idea behind this is to apply common business rules throughout the application from Reports to standard application grids.</p> <p>Essentially it would work along the lines of</p>...
1
1,056
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111 "Connection refused") centos 6
<p>Centos 6, openlitespeed installed, using MariaDB</p> <p>MySQL works normally until it suddenly stops and can't start</p> <pre><code>[root@backup ~]# service mysql start Starting MySQL.170815 09:56:24 mysqld_safe Logging to '/var/lib/mysql/backup.err'. 170815 09:56:24 mysqld_safe Starting mysqld daemon with databas...
1
2,106
Rubik's cube genetic algorithm solver?
<p>Is it possible Rubik's cube to be efficiently solved by genetic algorithms?</p> <p>What kind of chromosome encoding should be used? How the crossover and mutation should be done?</p> <p>I am using this model of the cube:</p> <pre><code>#ifndef RUBIKSCUBE_H_INCLUDED #define RUBIKSCUBE_H_INCLUDED #include "Common....
1
9,691
Dynamic query building with entity framework core - Build a query "by steps"
<p>I'm trying to make a class to perform a dynamic filters, depending on what parameters I'll send to its "filter" method but I'm facing some difficulties on building my query.</p> <p>It's more easy to explain with my following code, where I'm simply trying to apply some filters basing on what i receive in input:</p> ...
1
1,142
ToggleSwitch color/styling
<p>I got an issue that my ToggleSwitch is white like this picture below shows:</p> <p><img src="https://i.stack.imgur.com/3hkgk.png" alt="enter image description here"></p> <p>I want to style the white part to be black. How do I do that? I've changed the default style but no option seems to change it?</p> <p>Here is...
1
1,794
How to open popup window with order details while order no from listview clicked in ASP
<p><a href="https://i.stack.imgur.com/DSpzr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DSpzr.png" alt="sample Image" /></a>I have a list of Orders listed in ListView and have button placed on each row.</p> <p>Need to open a model popup window on button click with products related to that particu...
1
3,645
PHP not saving sessions on subdomain, ok on domain
<p>We have a CentOS 5.4 server serving a number of our websites. The server is managed by Plesk 9.2.3. Our websites are developed in php.</p> <p>We have our main domain ourapplication.co.uk in /var/www/vhosts/ourapplication.co.uk/httpdocs, and our subdomain api.ourapplication.co.uk in /var/www/vhosts/ourapplication/su...
1
1,614
gluProject() setup in OpenGL VC++ beginner
<p>I'm trying to convert 3D to 2D coordinates. and I understand I need to use <code>gluProject()</code>. But I'm facing troubles setting it up. I need to use Pixel coordinates</p> <p>I need help in <code>InitGL()</code> how can I properly initialize it. also in <code>DrawGLScene()</code> how can use it? I need to keep...
1
1,281
Boost asio strand and io_service running on several threads
<p>I am not sure about one detail related to strands. </p> <p>Suppose the following situation: two independent objects each one with his own strand. And each strand related to one common io_service. Each object use his strand for posting and wrapping async operations. If I have this (unique) io_service .run()'ing on s...
1
1,167
trying making a like button in codeigniter
<p>When I press the button of the likes nothing happens can you help ? and which is better ? to make it like this way or to make it a href button and but the href link to the function. when I call function via the url an error accrued</p> <pre><code>Object of class profiles could not be converted to string </code></pr...
1
2,310
winform picturebox image shows empty c#
<p>I have a form that contains a picturebox. When the form loads the default image loads fine. I then update the image when something in my form changes that changes the image being displayed. The generation of this image works fine also, I can see the image on disk and open it with paint, etc. In general what I do is ...
1
7,495
Validation problems with multiple checkboxes (HABTM) on CakePHP form
<p><strong>Short version</strong></p> <p>I have some HABTM checkboxes on a form. Validation is working correctly (at least one checkbox needs to be checked for validation to pass) but the CakePHP error message divs aren't being generated as they should be.</p> <p><strong>Long Version</strong></p> <p>I have a from wh...
1
1,127
Notification Bar is grey after implementing Nav Drawer
<p>I am trying to learn implementations of Navigation Drawer in Android.</p> <p>In one activity, i have made the Navigation Drawer come under the Status Bar(transparent) and over the App Bar and everything works fine.(left Screenshot)</p> <p>In another activity in the same App, i am trying to create Navigation Drawer...
1
3,540
trying to connection SOAP service using net core / net 5
<p>I am consuming a SOAP service that return order list from market places.</p> <p>The problem is when I request the orders from SOAP service, result is always null. Tried so many thing but still no change.</p> <p><strong>ConnectedService.json</strong></p> <pre><code>{ &quot;ProviderId&quot;: &quot;Microsoft.VisualSt...
1
5,271
Failed to parse MongoDB URI: 'mongodb://'. Invalid host string in URI
<p>While trying to run MongoDB 4.0 with laravel I am getting the following error</p> <blockquote> <p>PHP Fatal error: Uncaught MongoDB\Driver\Exception\InvalidArgumentException: Failed to parse MongoDB URI: 'mongodb://'. Invalid host string in URI. in /var/www/html/valueableapp/valueable_rest_app/api_src/vendor/...
1
1,619
Algorithm Code Optimization: Find the Equilibirum: Find an index in an array such that its prefix sum equals its suffix sum
<p><strong>Here's my Task Description:</strong></p> <p>A zero-indexed array A consisting of N integers is given. </p> <p>An equilibrium index of this array is any integer P such that 0 ≤ P &lt; N and the sum of elements of lower indices is equal to the sum of elements of higher indices, i.e. A[0] + A<a href="https:/...
1
1,704
Zend Pagination - Seems Not to be limiting number of results on each page
<p>I am relatively new to The Zend framework having only been working with it probably two months at the most. I am now trying to get a list of results from a query I run, send it through the zend paginator class and display 4 results per page, however it does not seem to be recognising when it has got 4 results, I bel...
1
1,894
can't run migrations. Table doesn't exists
<p>I am trying to set up a Rails app in new workstation. But when I try to run the migrations it throws error.</p> <pre><code>**rake aborted! ActiveRecord::StatementInvalid: Mysql2::Error: Table 'test_rb.roles' doesn't exist: SHOW FULL FIELDS FROM `roles`** /home/suganya/.rvm/gems/ruby-2.1.1@rb/gems/activerecord-3.2.2...
1
1,054
Android mapView ItemizedOverlay setFocus does not work properly
<p>Calling <code>setFocus(null)</code> on the <code>ItemizedOverlay</code> does not 'unfocus' current marker. According to the documentation:</p> <blockquote> <p>... If the Item is not found, this is a no-op. You can also pass null to remove focus. </p> </blockquote> <p>Here's my code:</p> <p><em>MapItemizedOverla...
1
1,249
passing a specific row of data to a modal (laravel datatables plugin)
<p>i have this page</p> <p><a href="https://i.stack.imgur.com/J173D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J173D.png" alt="enter image description here"></a></p> <p>and i have this modal</p> <p><a href="https://i.stack.imgur.com/5keBe.png" rel="nofollow noreferrer"><img src="https://i.sta...
1
7,274
Implementing SQLite with ListView (data from web) in Android
<p>I have an a ListView which fetches the data from JSON and the app saves the downloaded images and texts from the web to the external storage though an ImageLoader class.</p> <p>I need to make the listview accessible without an internet connection, the app already succesfully saves the cache data into the SD Card.</...
1
4,067
What is the purpose of Angular animations?
<p>I've been wondering for some time now <strong>why should I use Angular animations over CSS animations</strong>. I see few areas one might consider before using them:</p> <hr /> <h2>Performance</h2> <p>In the first step I found this <a href="https://stackoverflow.com/questions/40949262/angular-2-animation-vs-css-anim...
1
1,199
Swiftmailer symfony2.2 always sent 0 emails
<p>I have the following swiftmailes config</p> <pre><code># config.yml swiftmailer: transport: stmp host: mail.domain.com port: 25 username: myuser password: mypass spool: type: file path: "%kernel.cache_dir%/swiftmailer/spool" logging: "%kernel.debug%" </code><...
1
1,340
Codesign returns unknown error after "replacing existing signature"
<p>I am trying to build a Xamarin iOS app using xbuild on Jenkins. Sometimes the build fails during the codesigning process with an <em>unknown error -1=ffffffffffffffff</em> and sometimes the build succeeds. The provisioning profile is stored in a separate keychain <em>jenkins.keychain</em> (not the system or login ke...
1
1,039
validating SOAP-Request with a SOAPHandler
<p>I'm trying to validate a SOAP-Request against the Schemas defined in the WSDL. I'm using a SOAPHandler with a SOAP-Handler-Chain. It works the only problem is that when I'm validating the request, I get this error message:</p> <pre><code>cvc-complex-type.2.4.a: Invalid content was found starting with element 'v1:la...
1
2,166
Returning Dictionary via WCF
<p>I'm trying to output a <code>Dictionary</code> via <code>WCF</code> as <code>JSON</code>. The first problem I had that the <code>JSON</code> was riddled with the 'Key' 'Value' elements, but I fixed this by using my own <code>JsonDictionary</code> (code from StackOverflow).</p> <p>What I now get is:</p> <pre><code>...
1
2,416
Rendering obj files with three.js, nothing shows up?
<p>I am trying to render a .obj using three.js and i have looked at a couple of examples and figured how to do it but my html code doesn't seem to work! All i see is a black screen. I have attached the code below, what am i doing wrong?. I am a total noob at this so any help would be appreciated. Thanks!</p> <pre><cod...
1
1,399
Passing JWT Token as QueryString to SignalR Hub
<p>Trying to follow the suggestions in the link below to pass a <code>JWT</code> token to my SignalR hub but so far it's not working. In particular, see David Fowler's suggestion on July 22, 2017. <a href="https://github.com/aspnet/SignalR/issues/130" rel="nofollow noreferrer">https://github.com/aspnet/SignalR/issues/1...
1
1,027
Overeager struct packing warnings with `__attribute__((packed))`?
<p>I'm implementing a binary logging system on a 32 bit ARM mcu (Atmel SAM4SD32C, a Cortex-M4/ARMv7E-M part), and in the process of designing my data structures. My goal is to describe the log format as a packed struct, and simply union the struct with a char array, for writing to the log device (a SD card, via FatFS, ...
1
1,244
My Lambda is timeout with my S3 upload
<p>I didn't understand why my Lambda doesn't work with my csv upload.</p> <pre class="lang-js prettyprint-override"><code>var AWS = require('aws-sdk'); var mysql = require('mysql'); var json2csv = require('json2csv'); exports.handler = function (event, context) { AWS.config = { region: 'us-east-1', ...
1
1,326
Google Maps Android API v2 don't show marker title
<p>I tried some code to make Geocoding reverse location (using Google Maps Android API v2) and show title with marker, but the marker title didn't showed when I run my application. Here is my code :</p> <pre><code>public class MainActivity extends FragmentActivity { GoogleMap googleMap; MarkerOptions markerOptions; L...
1
1,210
Change background color of selected item in recyclerview
<p>I have a recycler view with linearlayout and textviews inside cardview. I would like to implement onclick method for my item where in I would like to change the background color of the linear layout and invert the textcolor of the textviews. I have got it working but the main issue I am facing is that if I select 1s...
1
7,482
inline Edit Remove using Ajax/Jquery in PHP MySql
<p>This is new for me. I don't know how to start with jquery. I am trying to make inline edit using Ajax. I found this code somewhere. But I am not able to make it. In <code>config.php</code> I have configured all the database connection and in <code>response.php</code> I have set sql query with php. In database I have...
1
2,294
Tag all duplicate rows in R as in Stata
<p>Following up from my question <a href="https://stackoverflow.com/q/22834725/1414455">here</a>, I am trying to replicate in R the functionality of the Stata command <code>duplicates tag</code>, which allows me to tag all the rows of a dataset that are duplicates in terms of a given set of variables:</p> <pre><code>c...
1
1,328
Calculator With Arrays in Java
<p>I am having a bit of a problem how to pass an array in a method to another method that will use the user defined inputs to add,subtract,multiply etc. </p> <p>When I enter in the amount of variables per array, I do not get the results I am expecting. </p> <p>IE:</p> <p>How many values in array?: 2</p> <p>How many...
1
3,706
How do I display a popup showing feature attributes from a Geoserver WMS layer in a leaflet map?
<p>I'm pretty new to Leaflet and I'm trying to get some pretty basic (or so I thought) functionality on my webmap. In short, I have many (179) WMS layers hosted on Geoserver and I would like the user to be able to click any feature and display a popup showing information about the feature.</p> <p>I have 179 layers ea...
1
1,099
android.support.v7.widget.CardView (Fix Build Path, Edit XML, Create Class) Using Android Studio 3.4
<p>I've been building an app and it's been working well until I updated to the latest Android Studio. I've been getting the error " android.support.v7.widget.CardView (Fix Build Path, Edit XML, Create Class)" My cardview doesn't show the image. The app compiles well and installs to my phone but crashes on start up. And...
1
3,697
React-Tooltip clipping
<p>So I'm trying to figure out how I can solve my dilemma here.</p> <p>So the problem I am facing is if I place the React-tooltip in the List element it will be clipped. If I place the React-Toolip at the bottom it has no effect (which is logical since it doesn't know what index is outside of the map. So I am kinda st...
1
1,862
Server-side rendering broken after upgrading to MUI 5 (with Next.js)
<p>I migrated my <a href="https://en.wikipedia.org/wiki/Server-side_scripting#Server-side_rendering" rel="nofollow noreferrer">server-side rendering</a> (SSR) working app to version 5 of MUI. I followed the <a href="https://mui.com/guides/migration-v4/" rel="nofollow noreferrer">official procedure</a>, but when I disab...
1
6,012
php's mail() is overriding the 'from' email address
<p>I'm using PHP's mail() -- my emails from our site get sent and received successfully.</p> <p>User "theArtist" puts a painting up for sale on our site. User "RichGuy" sees it, and our site has a form where RichGuy types his email address and a message to "theArtist."</p> <p>When "RichGuy" fills out this form and c...
1
1,151
How to display JSON data using grid in Extjs
<p>I am new to Extjs and not very familar with Javascript and its related libraries. Now what I want to do is :</p> <ol> <li><p>Send a GET request to a remote server, like GET <a href="http://remote-restful-server.com/find/" rel="nofollow">http://remote-restful-server.com/find/</a>{id}.</p></li> <li><p>The server woul...
1
2,109
Resizing character array in c
<p>A MFC coder want to learn some basic about character array intialisation and deletion of element.Take following examples compare with MFC (there is CString so no need of memory allocation or de allocation but same needed in c.) <strong>(don't have std::string interface )</strong></p> <p><em><strong>Example 1:-</stro...
1
1,041
<div> height 100% isn't working in Chrome
<p>I'm having a problem, which already searched the internet but can not solve. I have an iframe, and inside I have a page that is loading the following CSS.</p> <pre><code>html, body { position:relative; height:100%; } .c1{ float:left; text-align:left; margin-top:1px; margin-bottom:1px; width:10...
1
2,269
always view dialog in landscape
<p>I'm repeating a post I've made at the android group in google groups (<a href="http://groups.google.com/group/android-developers/browse_thread/thread/78d0b7496a51e3b7#" rel="nofollow">http://groups.google.com/group/android-developers/browse_thread/thread/78d0b7496a51e3b7#</a> ), hopefully I'll have some luck here!</...
1
1,081
ExpandableListView with JSON array
<p>If I want to have an ExpandableListView, which gets data from a response from server(JSON array) for its groups and their children.<br/> How can I do it?<br/> I know that there is SimpleCursorTreeAdapter, but it used only for cursor and I used it before, but I need any equivalent for this adapter to use it with JSON...
1
1,273
OnPageChangeListener in ViewPager adapter?
<p>I have a regular ViewPager with an adapter:</p> <pre><code>public class MyDialogFragment extends DialogFragment { private ViewPager viewPager; private MyViewPagerAdapter myViewPagerAdapter; private City city; public static MyDialogFragment newInstance() { MyDialogFragment fragment = new ...
1
1,130
Unit test webapi controller with response headers
<p>I'm trying to learn webapi and have stumbled across a problem. The training course I was doing showed how to do paging by returning a response header with the next and previous link. However it uses <code>HttpContext.Current.Response.Headers.Add()</code> to send back the next link, previous link, and total pages.</p...
1
1,755
bootstrap modal upload file
<p>I'm having a problem to upload a file using bootstrap modal upload file This is my modal code</p> <pre><code>&lt;div id="myModalAtiv" class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt; &lt;div class="modal-dialog modal-lg"&gt; ...
1
5,031
“Normal” UIButton causing obj_stack_overflow or EXC_BAD_ACCESS exception
<p>It sure looks innocuous enough. In my App Delegate, I check <strong>NSUserDefaults</strong> for a flag to show tips at startup. If it’s set then, at the end of <code>applicationDidFinishLaunching:</code>, I do this:</p> <pre><code>TipsViewController *vc = [[TipsViewController alloc] initWithNibName:@“TipsView" bu...
1
1,516
Java CXF restful webservices
<p>My webservice class is as following:</p> <pre><code>package com.siemens.rest; import java.io.ByteArrayInputStream; import java.math.BigDecimal; import javax.annotation.Resource; import javax.servlet.ServletRequest; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import ja...
1
3,212
React: TypeError: Cannot convert undefined or null to object
<p>I am running a React application. </p> <p>When I enter the page through routes(click button or link) page works fine but when I reload the page it crashes. I cannot see where the error is, the console and source show just blank, this is the server message console message.</p> <pre><code>server: Entrypoint index [b...
1
6,674
Reachability Notification Never Called
<p>I am having a hard time using Reachability in my code. I would like to keep it very simple by initiating an observer at launch and then just receiving change notifications. In the following code, the reachabilityChanged method is never called. I’ve tried many iterations but this is the simplest version. It compiles ...
1
1,042
How can i update image with tkinter slider (scale) value in python?
<p>I'm a beginner in python. All i want to do is create a simple GUI that implements basic Digital Image processing Algorithms. I want to adjust brightness of an image with tkinter slider. but this is not working and i am clueless as i'm just beginner. I am expecting the scale widget callback to do some brightness adj...
1
1,571
Exchange Managed Shell from C#
<p>I'm trying to run next script remotely from client computer:</p> <blockquote> <p>Get-Mailbox | foreach { Get-InboxRule -Mailbox $_.Name | Remove-InboxRule }</p> </blockquote> <p>There is my code:</p> <pre><code>private const string SHELL_URI = "http://schemas.microsoft.com/powershell/Microsoft.Exchange"; ...
1
1,231
Fancybox2 Inline Content Gallery
<p>I am trying to create a gallery of inline content with Fancybox 2, and am failing miserably.</p> <p>I checked out some other resources online and they seem to indicate doing this relatively easily, yet, I cannot seem to get it to work.</p> <p>Here is my fiddle:</p> <p><a href="http://jsfiddle.net/beefchimi/jtxHd/...
1
1,359
Failed to resolve dependencies .?
<p>Hello i have just imported my android studio project from one pc to another one and when building it is showing the error , Unresolved dependencies detected while building project in offine mode . I have unchecked OFFLINE WORK in Gradle settings . After Unchecking it its now showing the error </p> <pre><code> A pro...
1
1,225
Django 'QuerySet' object has no attribute 'split' using modelform
<p>I'm having a problem getting my view to update a manytomany field. It returns this after the form is submitted.</p> <pre><code>Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response 111. response = callback(request, *callback_args, **callback_...
1
1,804
Eclipse Deployment Assembly - Creates .war of dependency project inside main project WEB-INF/lib?
<p>I have a main web project that contains all the things required to deploy and hit the page via a browser. Then I have several "functions" each as a separate project that can be included into the main project.</p> <p>To take an example, I have <strong>MainApp</strong> and <strong>functions.reportsApp</strong>.</p> ...
1
1,145
How secure is WCF wsHttpBinding's Windows authentication?
<p>I have created WCF and I have used wsHttpBinding and MTOM as message transport with authentcation as "Windows". </p> <p>Now my service is not current SECURE, its plain HTTP, running on custom port.</p> <p>Is Windows Authentication of WCF's wsHttpBinding secure? can anyone see the password or guess through network ...
1
1,432
"Uncaught TypeError: Cannot read property 'create' of undefined" while using stripe payment method Stripe.charges.create({}) in angularJS/NodeJS
<p>Hello I am new to AngularJS and working on a project where i am creating a payment form with stripe. I have create the form and create my JS code as described in the stripe's website. I am getting true response for card verification but payment method gives me this error on console "Uncaught TypeError: Cannot read p...
1
1,433
How to fix " [ERROR: The method '[]' was called on null. E/flutter (18386): Receiver: null"flutter
<pre class="lang-dart prettyprint-override"><code>import 'dart:async'; import 'dart:convert'; import 'dart:io'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'Models/UserData.dart'; class LoginScreen extends StatefulWidget { static const String ...
1
6,147
In React, fetch data conditional on results of an initial fetch
<p>We have written a custom data fetching hook <code>useInternalApi</code> which is similar to the <code>useDataApi</code> hook at the very bottom of this <a href="https://www.robinwieruch.de/react-hooks-fetch-data" rel="nofollow noreferrer">fairly decent tutorial</a> on data fetching with react hooks. Our app fetches ...
1
1,600
Form action and post method not working php
<p>i have a pay.php script which needs to be executed after an input of an amount. But the file pay.php does not load.</p> <p>html code:</p> <pre><code>&lt;div class="sap_tabs"&gt; &lt;div id="horizontalTab" style="display: block; width: 100%; margin: 0px;"&gt; &lt;...
1
1,943
Switch tab onNewIntent cause IllegalStateException
<p>My FragmentActivity(singleTop) is giving me IllegalStateException if I try to switch the navigation tab in the onNewIntent method. </p> <p>More specifically, My application use SherlockActionBar with three tabs, one tab is updated when a push notification is received (and the intent is called), if the App was suspe...
1
1,267
I keep getting a 'no match for call to' error
<pre><code>#include &lt;iostream&gt; #include &lt;string&gt; using namespace std; // Turns a digit between 1 and 9 into its english name // Turn a number into its english name string int_name(int n) { string digit_name; { if (n == 1) return "one"; else if (n == 2) return "two"; else if (n == 3) r...
1
1,171
How to make C++11 functions taking function<> parameters accept lambdas automatically
<p>C++11 has both lambda's and std::function&lt;>, but unfortunately, they have different types. One consequence is that one cannot directly use lambda's in higher order functions such as map in lisp. For example, in the following code </p> <pre><code> #include &lt;vector&gt; #include &lt;functional&gt; using namesp...
1
1,786
Set radio button value in React
<p>I am making a simple react app with form that has radio buttons.</p> <p>Here there is a default data available like,</p> <pre><code>const defaultData = [{ ContactMode: 3 }, { ContactMode: 2 }, { ContactMode: 2 }]; </code></pre> <p><strong>Requirement:</strong></p> <p>-&gt; Need to iterate this <code>defaultData</cod...
1
2,200
Matrix transform: Converting SVG path coordinates to Leaflet coordinate system
<p>The short version: How can I add SVG paths to a Leaflet map in such a way that the paths will update when the map coordinates change (e.g. on zoom change or slide)?</p> <p>The long version: Hello, I have a topographic <a href="https://s3-us-west-2.amazonaws.com/gathering-a-building/2000_Cooper_Robertson_G_cutout1.t...
1
1,035
CAN BUS Acknowledgment error
<p>I am using STM32F429 CAN bus Program with TJA1041A as CAN Transreciver.The Problem is the messages are not getting acknowledged and herewith I am attaching the code for further reference.I am using PCAN View to see the messages.I kindly request to check the code and tell me if there are any faults.</p> <p>Code:-...
1
1,820
Extract some part of an XML
<p>I have an xml and I want to extract some part of that. But I am unable to get it. If I used variables and put every key in variables I can get that part but it is a very lengthy process. So is there any short process for it?</p> <p>Below is the XML : </p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;...
1
1,547
How to access form inputs in react js with nested object
<p>I'm working a <strong>react form</strong> using the <strong>controlled inputs</strong> to access the change on the form inputs. It contained lot of fields but i haven't posted all the fields.</p> <pre><code>import React from 'react'; import Links from './Links.jsx'; import axios from 'axios'; import Dialog from 're...
1
1,425
Apache FOP 1.1 QRCodes with zxing
<p>OK I am having an issue producing QR Codes in FOP 1.1 using barcode4j-2.1 and zxing-0.1.2. I currently have a FOP 1.0 implementation working correctly, by adding <code>&lt;prefer-renderer&gt;true&lt;/prefer-renderer&gt;</code> to the fop configuration file.</p> <p>barcode4j barcodes are working regardless if prefer...
1
2,310
Scanning using OWASP Zap Api
<p>I am trying to use a script to scan a target and perform an active scan as a proof of concept. I have worked the implementation below and i can not get it to work i am not sure why it will not work? I have Zap2Docker running and can access it via the api, i can also access via the gui scanning the target from the gu...
1
2,556
Web api interface works locally but not on Azure
<p>My case is very similar to <a href="https://stackoverflow.com/questions/13418344/web-api-interface-works-locally-but-gets-404-after-deployed-to-azure-website%20this%20question">this question</a>, but since he did not get an answer I thought I'd throw some more input.</p> <p>Everything works fine locally (on the VS ...
1
1,181
Parsing email headers with regular expressions in python
<p>I'm a python beginner trying to extract data from email headers. I have thousands of email messages in a single text file, and from each message I want to extract the sender's address, recipient(s) address, and the date, and write it to a single, semicolon-delimitted line in a new file.</p> <p>this is ugly, but it'...
1
1,647
Payslip generation program in c
<p>this is the question:</p> <blockquote> <p>Write an interactive program to generate pay slips for the staff of size 12 employees (2 members are clerks, one computer operator, 6 salesmen, 3 helpers) , working in a small chemist retail shop. Assumptions can be made wherever necessary. The payslip should display the...
1
2,774
CakePHP 2 - manual login not adding to session
<p>I am new to CakePHP and trying to get my head round register / login, Im using cakephp 2.0</p> <p>If i create a user using a register controller function and then login seperately the session (<em>$this-Auth-user()</em>) contains all the Model values i expect.</p> <p>If i follow the cakephp 2.0 book example and ma...
1
1,295
Unable to add window -- permission denied for this window type
<p>i have use WindowManager in Service and i have been try to find resolving from <a href="https://stackoverflow.com/questions/7569937/unable-to-add-window-android-view-viewrootw44da9bc0-permission-denied-for-t">this</a> post and other post but i still get this error massage. </p> <blockquote> <p>Unable to add windo...
1
2,662
SQL Concatenation using XML Path - multiple rows with multiple table references
<p>I am trying to use the XML Path to run SQL Concatenation but I am running into a bit of a problem. I have one table that is being used as a reference table for values I want to concatenate.I have 3 columns in the reference table (M.PROD, S.PROD, &amp; REF NUMB). </p> <ul> <li>M.PROD=====>S.PROD======>Ref Numb </li>...
1
1,279