title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
SelectedIndex with OneWayToSource binding does not trigger
<p>I have a problem with a particular xaml databinding. I have two listboxes (master-details, so the listboxes have IsSynchronizedWithCurrentItem set to true). I want my viewmodel to know when the selected item on the details listbox changes: I created an int property on my viewmodel class (i.e. we can call this prop...
1
1,452
java save pdf from string with accents
<p>I have a simple string with french accents. I am trying to save it to the pdf using ITextRenderer. Problem is that all the accents are deleted from the resulting pdf.</p> <p>Input string to be saved is coming from my velocity template. There, i am doinf StringEscapeUtils.escape(StringEscapeUtils.unescape(stringWith...
1
1,149
Pandas count the number of times an event has occurred in last n days by group
<p>I have table of events occurring by id. How would I count the number of times in the last n days that each event type has occurred prior to the current row?</p> <p>For example with a list of events like:</p> <pre><code>df = pd.DataFrame([{'id': 1, 'event_day': '2016-01-01', 'event_type': 'type1'}, {'id': 1, 'event...
1
1,217
HTML change table cell background AND text font colour on hover AT THE SAME TIME
<p>NEWBIE: I'm currently working on a 1and1 website. I want different boxes on a main page which all link to different sub-pages. Each box comprises an image and "category" text below image. I used tables within a table to create the boxes because of the borders. I have also added a hover effect so when you mouse-over ...
1
1,934
ParametersInterceptor error: Unexpected Exception caught, Error setting expression
<p>I have a table inside a form that contains dropdowns and a hidden <code>input</code>.</p> <p><strong><code>JSP</code>:</strong></p> <pre class="lang-jsp prettyprint-override"><code>&lt;form action="modifyfaculty" method="post"&gt; &lt;table&gt; &lt;thead class="center"&gt; &lt;tr&gt; ...
1
3,058
EF : The entity type is not part of the model for the current context using stored procedure
<p>I'm working with EF5. I've used code first approach. I got an error while using stored procedure. The error is </p> <pre><code>"The entity type CustomProduct is not part of the model for the current context." </code></pre> <p>In Db there are 3 tables. </p> <ul> <li><p>Product </p> <ul> <li>ProductId</li> <li>Pro...
1
1,698
Delete an element from an array of an array in MongoDb
<p>Below is the schema for an array contacts. The contacts array has a field hashtag which is another array. How do I delete an element openLove from the array Hashtags?</p> <pre><code>"contacts" : [ { "addedDate" : ISODate("2015-12-02T09:06:09.891Z"), "personEmailId" : "tell.fadgfdg@gmail.com", ...
1
1,982
Spring MVC pass model to view then to controller
<p>I'm stuck with my code, I'm trying to pass the info of the object "Student". My scenario is like this: </p> <ol> <li><p>Registration Form (fill the details then press submit button go to next page)</p></li> <li><p>From this view the model will be printed out then press the next button again.</p></li> <li><p>This th...
1
1,192
Problem connecting to servlet From Android client
<p>I am trying to connect to the Servlet (Tomcat localhost). Here is my code.</p> <p><code>ServletTest.java</code> (the client)</p> <pre><code>public class ServletTest extends Activity { private static final String TAG = "Test"; /** Called when the activity is first created. */ protected static EditT...
1
1,643
Wordpress static page template pagination not working
<p>I'm building a custom page template and I can't seem to get the pagination to work. It keeps showing the same posts as on the home/first page. I have tried a lot of different code but getting the same problem with each results.</p> <p>This is the current query I am using:</p> <pre><code>&lt;?php global $paged; gl...
2
2,221
The server couldn't send a response
<p>Good day. I know that this question is already ask before. But i can't really make this thing work.</p> <p>I am using Visual Studio 2017</p> <p>I am following a tutorial on how to Build an app with Asp.net core and angular</p> <p>My problem is i can't send request to the site using postman.</p> <p>I have read th...
2
1,600
Internet Explorer Form Submission issues with Coldfusion
<p>I have a cfform with two submit buttons, the logic in my action page works perfectly fine with safari, chrome, FF, and IE9. But IE8 and less are having issues.in IE8 or less for some reason it can’t seem to send the action page the value of the submit button, so it never makes it inside any of my if statements.</p> ...
2
2,101
React.js: Use overlay spinner on index.js when calling API
<p>I'm trying to put a spinner on my app whenever there is an ongoing API call</p> <p>I had success in tracking the API call by using a library called <code>react-promise-tracker</code></p> <p>Usage below:</p> <p>ProfileMaintenancePage.js</p> <pre><code>import { trackPromise } from 'react-promise-tracker'; const...
2
2,049
how to iterate the days in java
<p>I am having doubt that how can i iterate through the days in java (Android). Requirement is i am displaying whole week dates.</p> <p><strong>Note:</strong> "whichever date user selects from it should start".</p> <p>ex: If date is 29-10-2017 then the output will be 29-10-2017, 30-10-2017, 31-10-2017, 1-11-2017, 2-...
2
2,331
How to statically link portaudio?
<p>I wanted to write some program using <a href="http://portaudio.com" rel="nofollow noreferrer">portaudio</a> library. I downloaded the source, opened the cmake project and builded both static(libportaudio_static.a) and dynamic(libportaudio.dll and libportaudio.dll.a) files.</p> <p>Then, I created c++ project with ju...
2
4,434
Windows Server having problems keeping my session after the next page load
<p>I'm going to share my basic configuration with hopes that somebody can clue in onto where my problem lies with my session variables. The sessions are not saving in-between page loads, and for the life of my I cannot decide why.</p> <p>This is my first Windows PHP application that I'm building, so I'm at a loss rig...
2
1,435
Audio doesn't play when instantiate new object
<p>I'm facing audio problems in my project. There are three paddle game objects and one cube. Cube has <code>Rigidbody2d</code> or <code>BoxCollider2d</code>. And there is also a button script attach to cube which has button function when we click on button cube <code>Kinematic</code> becomes false and drop on the padd...
2
1,276
SQL Server transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements
<p>In the below stored procedure, I'm getting the error mentioned in some cases, what am I doing wrong here?</p> <p><strong>Error:</strong></p> <blockquote> <p>Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1</p> </blockquote> <p>S...
2
17,025
Segment tree with lazy propagation for multiple of 3
<p>Abridged problem: You're given an array of n elements, initially they are all 0.</p> <p>You will receive two types of query: 0 index1 index2, in this case you have to increase by one all elements in range index1 index2(included).</p> <p>Second type: 1 index1 index2, in this case you have to print a number rapresen...
2
2,927
Out of Memory when reading file in parallel
<p>I am doing test to find out the best way to read and process csv file. So I need to read each line of the csv file and analyse each of them. So basically all works fine for a file containing thousands of rows. However when trying with a CSV file containing more than 1 millions rows I am getting an out of memory exce...
2
1,679
How to Remove Active Background in React-Bootstrap
<p>How can I remove the active Nav Item background feature in react-bootstrap when selecting Nav Item? It acting abnormally when I use it with 'react-redux' and 'react-router-bootstrap'?</p> <p>For instance, when I reload the home page, the active background only stays on one of the Nav Items even if I select other Na...
2
1,248
How to realize custom exception handler using Spring WebFlux
<p>A have next classes:</p> <p>SaleRouter.java</p> <pre><code>@Configuration public class SaleRouter { @Bean public RouterFunction&lt;ServerResponse&gt; route(@Value(&quot;${server.servlet.context-path}&quot;) String contextPath, SaleHandler saleHandler) { return RouterF...
2
2,526
Bootstrap not applying CSS using Webpack
<p>I'm using Bootstrap with webpack, but when I run my app, no Bootstrap and no CSS is applied.</p> <p>This is my webpack.config.js :</p> <pre><code>const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const ManifestPl...
2
1,796
jQuery validation with submit button disabled
<p>I made some sort of form validation. User can input name of group and group description. With jQuery I'm validating if group name is empty or not, if empty submit button should be disabled. Now I have problems with disabling submit button. If I click on input tag where group name is, then validation is ok, and submi...
2
1,614
NumberPicker not showing numbers
<p>Im trying to create an <code>AlertDialog</code> with a <code>NumberPicker</code> inside it.<br> However it only displays the two dividers and no text.</p> <p>See <a href="http://imageshack.com/a/img673/8149/aWHQfj.png" rel="nofollow">http://imageshack.com/a/img673/8149/aWHQfj.png</a></p> <p>Im using:</p> <pre><co...
2
1,360
Sentry on-premise docker - NO events
<p>I've just installed Sentry 10.1.0.dev0817db07 with this doc: <a href="https://docs.sentry.io/server/installation/" rel="nofollow noreferrer">https://docs.sentry.io/server/installation/</a></p> <p>And can't get any event into the system. Everything's seems to work well.</p> <p><strong>Installation process:</strong>...
2
2,367
How to install Web Tools Platform (WTP) 3.9.5 on Eclipse Oxygen.3a (4.7.3a) on Windows 10, so I can use Tomcat 9 + Java 10?
<p>I am trying to get Eclipse Oxygen.3a (most recent version as of today, 4.7.3a, x64, from an Eclipse for Java EE zip file; that's eclipse-jee-oxygen-3a-win32-x86_64.zip, 350,098,461 bytes) to work with the combination of Java 10 (JDK and JRE 10.0.1, x64) and Tomcat 9 (9.0.8, x64). That's on Windows 10 Enterprise.</p>...
2
2,075
Setting Boolean Values in Java Array
<p>Here is my very, very trimmed down version including only the boolean values and the structure around it:</p> <pre><code>public int payoffDebt(Double totalDebt) { boolean booIsPaid[] = new boolean[c.getCount()]; int bb = 0; int bbb = 0; for (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()) { ...
2
3,255
Quartz.NET as a Windows Service with Dependencies in the GAC
<p>I've setup a Quartz as a windows service (using AdoJobStore if it matters) and have managed to get a ASP.NET site to communication with it via remoting to add/schedule a custom IJob that lives in my own project Company.Project.ServiceLayer.</p> <p>This took me a while but all works OK on my dev machine provided the...
2
1,715
How do I remove the b'' prefix in a str variable with unicode escapes in python?
<p>I know that using this code can remove the b prefix</p> <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; b'Hello' b'Hello' &gt;&gt;&gt; b'Hello'.decode() # decodes bytes type 'Hello' </code></pre> <p>But if I use a unicode escape (with <code>unicode_escape</code> codec because the <code>utf-8</code> code...
2
6,542
waitForQualityGate() with Sonar scanner for MSbuild
<p>Is there any way to break Jenkins build when Sonar quality gate fails with <strong>waitForQualityGate()</strong> method along with <strong>Sonar Scanner for MSbuild</strong>? I could not find any documentation for the same. All I could find is the usage of waitForQualityGate() along with Sonar scanner, but the gener...
2
1,311
How do I display a copyleft symbol?
<p>I use Google AppEngine, Python 2.7 and Jinja2 template. I tried this one <a href="https://en.wikipedia.org/wiki/Copyleft#Symbol" rel="nofollow">https://en.wikipedia.org/wiki/Copyleft#Symbol</a> from Wikipedia. As html it prints fine on my browser. But when I insert it in a jinja2 template and try testing it in my G...
2
2,316
How to migrate datetime to datetime2 with new SQL Server Native Client
<p>We are currently migrating our database from <code>datetime</code>to <code>datetime2</code> including SQL Server Native Client v11 (SQL Server 2012). The database update was easily done, but the problems come along with the new SQL Server Native Client 11 we want to use. </p> <p>In general we have OLE DB Consumers ...
2
1,319
incompatible types using Volley to get JSON in android
<p>I'm making an application and i'm using Volley to get the data from an API but in the <code>Request.Method.GET</code> it gives me an error that says "incompatible types: int cannot be converted to String". Here u can see the method: </p> <pre><code>import android.os.Bundle; import android.support.v4.app.Fragment; i...
2
5,447
How to correctly download csv without 'save as' dialog' using TWebbrowser and Delphi?
<p>I subscribe to a secure https web page containing a button that downloads some data as csv. I am trying to automate the download without the 'save as' dialog appearing but always seem to get an empty file downloaded. I suspect it has something to do with file type I'm using with IdHttp as most of my code works corre...
2
1,723
Where to place EventBus.getDefault().unregister in BaseAdapter
<p>Friends, I've spent enough time to find an answer to my question(here and on android's site) But no luck. Here is the logic: From DialogFragment upon finishing putting user's data he clicks OK button:</p> <pre><code>import de.greenrobot.event.EventBus; ... public class AddDialogFragment extends DialogFragment impl...
2
4,279
How can I find out what css is overriding the css in my style sheet?
<p>I created a print style sheet which links to my html page. Changes to the font, colors etc. work in the print version, but I can not change the size of my divs in the print version. For example, if I have a content div that is 300px X 300px on my page, it won't change it if I change the dimensions in the print versi...
2
2,276
Is it possible to add a custom tooltip on a CMFCToolBarComboBoxButton in a CMFCToolbar?
<p>Is it possible to add a custom tooltip on a CMFCToolBarComboBoxButton in a CMFCToolbar ?</p> <p>I can now use the "default" tooltip text as defined in the resource file, but I cannot find the way to be able to dynamically change the tooltip text on the combobox in the toolbar.</p> <p>Resources : </p> <pre><code>I...
2
1,260
How would I put text over an image in HTML email code?
<p>I've tried everything under the sun to make some text appear on the image with my current HTML code but to no avail. </p> <p>No matter what I do, the text always appears on the bottom of the entire page and never on the image.</p> <p>I've looked at so many posts on SO but they just don't work for me.</p> <p>Belo...
2
1,299
Download a div in a HTML page as pdf using jsPDF or javascript
<p>All I want to do is to print to pdf whatever is found in the div with an id of "pdf". This must be done using JavaScript. The "pdf" document should then be automatically downloaded with a filename of "foobar.pdf" I am using jsPDF script.It throws "Uncaught TypeError: Cannot read property 'name' of undefined"</p> <p...
2
3,856
Missing/Invalid SOAP Envelope on SOAP request from SOAPUI
<p>I am generating a soap envelope with the <code>soap</code> package on NodeJS and generated envelope is below:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;soap:Envelope xmlns:soap=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSc...
2
2,829
Tkinter Treeview not showing newly inserted items, no errors given
<p>I'm building a desktop application that lets you insert some data into a form and then the data is displayed in a series (3) of Treeview widgets. This is the form that I'm using to enter new data:</p> <p><a href="https://i.stack.imgur.com/O17LF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O17L...
2
2,909
How to find duplicate values while importing excel and displays an error message on the same table where imported data displays?
<p>I am using MVC with C#, I am trying to import an excel sheet and validate those sheet and displays the excel data along with error message on one column in a table. If got any error my selection checkbox will not available, so the user cannot select and save the particular record. my page is actually working. What i...
2
1,028
Spring Batch Writer throws java.sql.SQLException: Unsupported feature
<p>I am facing challenge in retrieving auto generated column of Oracle table in my Spring Batch POC.</p> <p>This POC reads data from flat file and loads into oracle table. I am trying to use Oracle Sequence to generate primary key for the table and retrieve that upon successful insertion of row from Spring Batch Write...
2
3,309
Ionic using number keyboard when input type is text
<p>I'm building an app in Ionic for which I need to have a mask input where the user can input numbers, but the mask format is 99-99999999-9 (user can input numbers only). I'm using angular2-text-mask for masking the inputs.</p> <p>If I have my input as type = number, the app crash when the mask is trying to add a "-...
2
1,080
Using a ViewPager over a CameraPreview
<p>I've been trying to create a Camera Preview that displays a View Pager with several transparent images over the preview. But, I'm getting this error:</p> <pre><code>05-10 03:31:23.614: E/AndroidRuntime(674): FATAL EXCEPTION: main 05-10 03:31:23.614: E/AndroidRuntime(674): java.lang.NullPointerException 05-10 03:31:...
2
5,592
Programatically send SMS Android (Not receiving status)
<p>I am using <a href="http://mobiforge.com/developing/story/sms-messaging-android" rel="nofollow">http://mobiforge.com/developing/story/sms-messaging-android</a> code example word for word except for the fact that I changed:</p> <pre><code>import android.telephony.gsm.SmsManager; </code></pre> <p>to:</p> <pre><code...
2
1,457
WPF throwing warning on Dictionary Collection Changed in .Net 4.5.1
<p>I was using .Net 4.0 and had a <code>Dictionary</code> in my code like the one below</p> <pre><code> public Dictionary&lt;DirectoryInfo, ObservableCollection&lt;Media&gt;&gt; FoldersDictionary </code></pre> <p>I am using this dictionary of to display the folders from windows directory in a surface list box. <code>...
2
2,581
Keras freezes when using ImageDataGenerator
<p>For some reason when I use an ImageDataGenerator with keras it freezes when I start the fit. I get the following output. It just hangs on the line <code>Epoch 1/5</code></p> <pre><code>Using Theano backend. Using gpu device 0: GeForce GTX TITAN (CNMeM is disabled, cuDNN not available) Loading Data Compiling Model...
2
1,603
How to reference an object in an array of objects using Bicep
<p>I am trying to output the referenceId of each subnet in a module that creates a virtual network with 4 subnets. I can get the first one, <code>[0]</code>, but when I try output the others, <code>[1], [2], [3]</code> the deployment fails and throws the error:</p> <p><code>The language expression property array index ...
2
1,129
how to choose the gcc version when apt-get install g++-arm-linux-gnueabihf
<p>I want to setup a cross compile environment on Linux for my embeded board. My linux host is ubuntu12.04 32bit. </p> <p>I have already update the gcc and g++ to 4.8, but when I apt-get install g++-arm-linux-gnueabihf, it always automatically get the 4.6 one which can not satisfy my target program building. </p> <pr...
2
1,097
What causes flume with GCS sink to throw a OutOfMemoryException
<p>I am using flume to write to Google Cloud Storage. Flume listens on <code>HTTP:9000</code>. It took me some time to make it work (add gcs libaries, use a credentials file...) but now it seems to communicate over the network.</p> <p>I am sending very small HTTP request for my tests, and I have plenty of RAM availabl...
2
1,299
DataDog GKE NESTJS integration using DataDog's helm chart
<p>Im trying to deploy my service and read my local logfile from the inside pod.</p> <p>Using DataDog's helm chart values with the following configs : </p> <pre><code>## Default values for Datadog Agent ## See Datadog helm documentation to learn more: ## https://docs.datadoghq.com/agent/kubernetes/helm/ ## @param im...
2
7,858
Image is uploading of size 0 byte using php in android
<p>I m making an android app to upload the image in mysql database using php. Im saving in directory [$path = "uploads/$id.png"; $actualpath = "<a href="http://www.bsservicess.com/photoUpload/" rel="nofollow">http://www.bsservicess.com/photoUpload/</a>$path"].</p> <p>The problem is that image is uploading to the direc...
2
2,434
JQuery FlexiGrid with Struts2
<p><strong>Hi can any one tell me whats wrong with the following code...</strong></p> <p>i have configured the Flexigrid in php it is working fine but when i tried it in Struts 2 application it doest display any thing and the loading icon continuously asking to wait... I m totally unable to display the data in the Fle...
2
4,154
Parallel calling of an external program in C++
<p>As in topic I have a problem with parallel calling of external program in C++. I prepared code showed below that uses system() to call my program but it is not thread safe and results are random - some runs are fine other return errors. Is there any other possible method to run it parallel in thread safe mode? For n...
2
1,236
how to set a priority high accuracy location for the following code
<p>someone already did this code in the project. But how to set a priority high accuracy in the location manager. They use location manager to get the current location. </p> <p>So any one can help out. This not working if any possibilities to change the logic . </p> <pre><code>public class GPSTracker extends Service...
2
2,331
Bugs in android app using openCV and JNI on my Nexus 4
<p>I have a problem with my AR app using OpenCV for drivers. I build native app using JNI(c++) and OpenCV. Everything works fine, but sometimes, after some 60-70 s my app crashes. I am new on Android and I don't know, what to do, because my logs nothing tell me. I use NativeCameraView and onProcessFrame() method which ...
2
9,339
Simple Reverse-proxy using nginx
<p>I am running a Rails app on <code>http://localhost:3000</code>, which I want to access as <code>http://localhost</code>. I am trying to use nginx to do reverse-proxy, and it seems like it should be simple but I haven't gotten it to work. I can access my app at <code>http://localhost:3000</code> but I get no response...
2
1,239
Razor pages date input month and day switch around on submit
<p>I have a date input field on my Razor page where the month and day switch around every time the form is submitted. Obviously I do not want this to happen but I can not work out why it is.</p> <p>So 11/10/2019 becomes 10/11/2019 then 11/10/2019 again. The form will also set the date parameter to null if I enter a da...
2
1,359
jQuery-Cycle: border-radius property not acting as expected in Chrome 11
<p>Im using jQuery-cycle to power one of my slideshow and a border-radius property applied to the container div is not working as expected: The "View Content" slide has rounded corners, the other slides dont have any.</p> <pre><code>#carousel {-webkit-border-radius: 15px; -moz-border-radius: 15px; border-radius: 15px...
2
1,065
AWS Lambda - Nodejs: Allocation failed - JavaScript heap out of memory
<p>I am using Lambda (nodeJS) to query noSQL data (dynamo db). </p> <p>Let's say I have table "student" in DynamoDB, and I have an API which return list of students for a specific class (class_id). (I used "query" ) </p> <p>As I know, the dynamo paginates the result, so my API works like below:</p> <ul> <li><code>{c...
2
1,484
NHibernate mapping - self referencing: parent and children
<p>I am trying to have this kind of Model:</p> <pre><code>public class Activity { public virtual int ID { get; set; } public virtual int? ParentID { get; set; } public virtual int? RootID { get; set; } public virtual Activity Parent { get; set; } public virtual Activity Root { get; set; } pub...
2
1,026
Android app talking to Android native binary via sockets
<p>I'm trying to get an Android client app to talk to an Android native binary server via sockets.</p> <p>My app has a button that, when pressed, sends user entered text to the server. The code is as follows:</p> <pre><code>Button.OnClickListener buttonSendOnClickListener = new Button.OnClickListener(){ public void...
2
1,112
Where did lua_pcall go? (Lua 5.2.0 on OSX Lion)
<p>Problem:</p> <pre><code>$ clang++ -L../lib/osx/ -I../include/ -o test Script.cpp Main.cpp Verbose.cpp -llua -lUnitTest++ Undefined symbols for architecture x86_64: "_lua_pcall", referenced from: LuaSystem::dostring(char const*) in Script-EgY0dM.o (maybe you meant: _lua_pcallk) ld: symbol(s) not found f...
2
1,369
Where are local APIC addresses in QEMU?
<p>According to Intel's document, <code>FEE0 0000H</code> to <code>FEE0 03F0H</code> is the range of local APIC. However, examining it from QEMU console, I can only find the value 0 there:</p> <pre><code>(qemu) x/128b 0xfee00000 fee00000: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 fee00008: 0x00 0x00 0x00 0x00 0x00 0x00 ...
2
1,089
gradle: dependencies are not being built first which give a "cannot find symbol" error
<p>I'm try to convert a maven project into gradle via 'gradle init' and googling the errors after doing a '<strong>gradlew clean jar -x test</strong>'. I'm stumped on the latest error. The problem seems like a dependency order where BasicTypeHelper is not being built first.</p> <pre><code>$ ./gradlew clean jar -x te...
2
1,866
Accepting Bank Account using Stripe.js
<p>I'm trying to create a form that accepts a users bank account details using Stripe.js and HTML. The problem is, every time i try to submit the details, I get an error regardless of whether or not it is right. The input form is below. Any ideas?</p> <pre><code>&lt;head&gt; &lt;meta http-equiv="Content-type" conten...
2
1,390
why onclick called react material-ui
<p>I write react component with dialog and list. When component recieve "open" prop and try to build list in render function, it's call <code>onClick={ this.handleToggle(item.id) }</code> function of ListItem, so, that causes an infinite loop "render -> onClick -> setState -> render -> ... ". Why? And how can I get aro...
2
1,442
Why won't Oracle use my index unless I tell it to?
<p>I have an index:</p> <pre><code>CREATE INDEX BLAH ON EMPLOYEE(SUBSTR(TO_CHAR(EMPSHIRTNO), 1, 4)); </code></pre> <p>and an SQL STATEMENT:</p> <pre><code>SELECT COUNT(*) FROM (SELECT COUNT(*) FROM EMPLOYEE GROUP BY SUBSTR(TO_CHAR(EMPSHIRTNO), 1, 4) HAVING COUNT(*) &gt; 100); </code>...
2
1,559
Trying to avoid "Polymorphic Associations" and uphold foreign key referential integrity
<p>I'm building a site similar to Yelp (Recommendation Engine, on a smaller scale though), so there will be three main entities in the system: User, Place (includes businesses), and Event.</p> <p>Now what I'm wondering about is how to store information such as photos, comments, and 'compliments' (similar to Facebook's...
2
1,248
Execute python script in the background when web page is opened (not printing a script)
<p>I'm trying to make a simple webpage which executes a seperate python script located in my home directory. There is nothing to be printed on the webpage since the script consists of commands to launch weather forecast and news reporting via the raspberry pi's speakers. </p> <p>I searched high and low but could only ...
2
1,510
Load choices into form choice field from entity method
<p>I have symfony form with choice field. I want to load choices from my entity class static method. can i use data or CallbackChoiceLoader? what is the best practise?</p> <p>this is my field:</p> <pre><code> class CarType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $o...
2
1,303
FxCop behavior in VS2010, Code Analysis, and SuppressMessage
<p>I have a class like this one:</p> <pre><code> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "Io")] public void ParaQueFalleCalidadCodigoUnoIo_ReglaCA1709() { } public void ParaQueFalleCalidadCodigoDosIo_ReglaCA1709()...
2
2,385
Clone and delete selected row to another table
<p>I am tring to clone selected object from one table to another . Till now i am getting the id of selected td to be cloned . Following is the code i am trying.</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/j...
2
1,300
numpy.float128 doesn't exist in windows, but is called from OpenGL
<p>I decided to try using OpenGL VBO in Python to improve FPS. I found code, that worked perfectly fine in Linux OS (Ubuntu), but when I tried launching in Windows OS, the code resulted in a message: "GLUT Display callback with (),{} failed: returning None module 'numpy' has no attribute 'float128'"</p> <p>So, I can'...
2
1,723
React native build fail react-native-fbsdk
<p>Trying to build react-native android app but following error</p> <blockquote> <p>info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 1108 file(s) to forward-jetify. Using 12 workers... info JS server already running. info Installing the app.....
2
1,374
How can i post react and ajax data to rails server?
<p>I am developing an application with reactjs on frontend and rails on backend. I am new to rails . I have developed a registration system using reactjs and now i want to post the data to the server. I am not using react-rails gems for this. I dont know what to do next for posting data to server. Could anyone please e...
2
4,307
php soap client validate against wsdl
<p>I have a problem with validation of my web services against the wsdl file.</p> <p>I use php with Laravel 5.2 framework, and i have to create a Soap web server. I've put the server and client class in a Controller(servercontroller.php, clientcontroller.php) and the class that process the data passed to the server in...
2
7,831
Define and insert Thymeleaf fragments in TEXT templates
<p>I'm trying to create email templates in both plain text and HTML with Thymeleaf. Because I don't want to duplicate the common parts I want to define these parts separately and insert them into the more specific templates.</p> <p>It works for HTML, but for plain text variables in the common parts are not replaced:</...
2
1,477
React: issue with the search and filter function
<p>I'm working on a component that should be able to:</p> <ol> <li><p>Search by input - Using the input field a function will be called after the onBlur event got triggered. After the <strong>onBlur</strong> event the <strong>startSearch</strong>() method will run.</p></li> <li><p>Filter by a selected genre - From an ...
2
2,332
How to notify an item has selected from data grid in wpf and using mvvm?
<p>I am trying to notify that an item is selected from data grid because I am opening a modal window while selecting a item from data grid. I am editing selected item in modal window and due to which I do not want to RaisedPropertychanged mechanism for selected item because when I try to modify the selected item, it op...
2
1,377
Pagination algorithm: display ranked search results for unique eCommerce merchants
<p>Hi Stack Overflow community,</p> <p>I am building a search functionality for an eCommerce website and looking for the most <em>optimal</em> <strong>Pagination algorithm</strong> that satisfies several requirements.</p> <p>When a user submits a search product query on our site, we return a list of products scored a...
2
1,076
WinDbg Memory analysis
<p><strong>tl;dr;:</strong> Is my assumption correct that this is a unmanaged memory leak?</p> <p>I have a .net 4 WPF application crashing with an out-of-memory exception. Taking Memory dumps i need some advice on reading them:</p> <p>Starting with <code>!address -summary</code> i get</p> <pre><code>--- Usage Summar...
2
2,113
Maven Javadoc Plugin javadoc-bundle-options
<p>I have defined the plugin in my pom.xml as following:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt; &lt;version&gt;2.10.3&lt;/version&gt; ...
2
2,323
jQuery tabs are not showing when I applied jquery.min.js from ajax.googleapis
<p>I have an issue regarding my tabs. Before I included <code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" &gt;&lt;/script&gt;</code>, the tabs are showing, but now the 3 tables are appearing w/o their corresponding tabs. </p> <p>Please do check my code below<...
2
2,897
Dataproc trying to connect to Postgres through JDBC, missing permissions
<p>Thanks in advance...</p> <ol> <li>I want to connect/write using JDBC APIs to a Postgres SQL instance running using Cloud SQL programmatically. I have used following jars: <ol> <li>postgresql </li> <li>postgres-socket-factory </li> <li>postgres-socket-factory-1.0.11-jar-with-dependencies.jar</li> </ol></li> </ol>...
2
1,028
Tensorflow: what are "input_mean" and "input_std" in label_image.py in tensorflow example
<p>I am using Windows 7. I have train a mobilenet using the official retraining example.</p> <p><a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/image_retraining" rel="nofollow noreferrer">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/image_retraining</a></p>...
2
2,365
Using dplyr and broom to compute kmeans on a training and test set
<p>I am using dplyr and broom to compute kmeans for my data. My data contains a test and training set of X and Y coordinates and are grouped by a some parameter value (lambda in this case): </p> <pre><code>mds.test = data.frame() for(l in seq(0.1, 0.9, by=0.2)) { new.dist &lt;- run.distance.model(x, y, lambda=l) m...
2
1,845
Parsing json array with sub objects
<p>I want to parse this jason into java code for an android app:</p> <pre><code>{ "name":"London", "coord":{"lon":-0.12574,"lat":51.50853}, "country":"GB", "cnt":6, "list":[{ "dt":1377345600, "temp":{ "min":290.42, "max":294.3, ...
2
2,991
How get JSON as response in jax-rs jersey web service?
<pre><code> package com.webservice.rest.jaxb; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement(name="employee") public class Employee { String name; String id; String location; float salary; public String getName() { return name; } public void setName(St...
2
1,688
.NET Memory Leak
<p>After running our stress testing on our ASP.NET application access to internal web services, our mid-tier server (where we host ASMX .NET 3.5 web services) showed close to 1GB of memory consumption.</p> <p>Upon the review of memory dump from mid-tier server, I have found over 1000 objects of Microsoft.Xml.Serializa...
2
1,185
this.lookupReference('referenceName') returning null?
<p>I created a login page, for my project, I made it work, but the problem is, I can't call the reference of the login form from my login controller, what could possible go wrong? please see below for my code:</p> <p>This is my Login.Js which is under classic -> src -> view -> login -> Login.js:</p> <pre><code>Ext.de...
2
1,193
Value cannot be null. Parameter name: address at IdentityModel.Client.TokenClient
<p>We have create IdentityServer4 application with ASP.NET Core(<a href="http://docs.identityserver.io/en/release/quickstarts/0_overview.html" rel="nofollow noreferrer">http://docs.identityserver.io/en/release/quickstarts/0_overview.html</a>) and deployed it on our qa server(i.e. <a href="https://identityserver.mydomai...
2
3,227
Scrollbar in bootstrap application wizard
<p>I have implemented the <a href="http://www.panopta.com/2013/02/06/bootstrap-application-wizard/" rel="nofollow noreferrer">bootstrap application wizard</a> and it works great but how can I add a scrollbar to each of the pages or cards in this case?</p> <p>Here is the modal card window without the overflow included:...
2
1,937
Wordpress blog with Joomla?
<p>I had this Wordpress installation which was installed in a subfolder (not root). Like http: //server/blog/. Now, I installed Joomla on the root (http: //server/). Everything seems to be working fine with the Joomla part. However, the blog part is messed up. If I try to browse the homepage of my blog which is http: /...
2
1,319
Is there a way to combine $(document).ready and $(window).resize together so they call only 1 function?
<p>i have the following code below and somehow everytime i run the file, the $(document).ready will call the showViewportSize(); and will print 1 set of 10 video. Next, when the window resize although my video are printed out with the new resize size, it print another set of 10 videos after the first set. It is no...
2
1,638
Google API "Daily Limit for Unauthenticated use Limit" 403 Error... iOS
<p>I am a complete beginner to both iOS dev and working with Google's APIs. I'm learning both of them simultaneously so I apologize if this is a newbie question.</p> <p><strong>The Parsing Error has been "repealed &amp; replaced" with a new API error below</strong></p> <p>I am trying to write an app that will tell me...
2
1,175
React toggle responsive sidebar based on browser width &/or user clicks
<p>React noob here. I am creating a dashboard with three parts. Sidebar | Navbar &amp; content below navbar. Sidebar behavior should be: open initially; auto-hide when browser-width &lt; 498px; auto-open when browser width is increased beyond 498px; open/close when navbar toggle is hit, regardless of browser window wid...
2
2,622
Combining Two Unequal Arrays by Matching Keys
<p>I'd like to combine the two arrays below into one. More specifically, I want to add the contents of the second array to the the matching key in the first array. The keys in the final array should have contents of matching keys of both arrays.</p> <pre><code>Array ( [123456789_404045862944400] =&gt; 192 [123456789...
2
1,269