title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Qlikview Macro VBScript to print pdf and email will not run consistently - Fails in email | <p>I have been tearing my hair out over the last few days in trying to get this macro to work consistantly on the Windows scheduler.</p>
<p>Basically the workflow is as follows:</p>
<p>1) Windows Scheduler - Daily, uses Admin user credentials</p>
<p>2) Batch file - Reloads using /l</p>
<p>3) Reloads Qlikview applic... | 0 | 3,351 |
How do I find why I get "Exception of type 'System.Web.HttpUnhandledException' was thrown"? | <p>I'm getting</p>
<pre><code>System.Web.HttpException
Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.
Stack is
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath... | 0 | 1,166 |
How to set plot size in ggplot or ggarrange? | <p>I work with Rmarkdown and I am creating many figures composed of different ggplot2 charts, using ggarrange. The problem is that I am not able to set different sizes for figures inside a single chunk. The only way I managed to set figure size is within chunk options, like:</p>
<p>{r Figure1, fig.height = 4, fig.width... | 0 | 2,654 |
Hibernate Query Syntax exception : org.hibernate.hql.ast.QuerySyntaxException: unexpected token | <p>I have a query where i am joining two tables ROuteMaster and RouteHalts.
When i perform inner join i am getting </p>
<pre><code>org.hibernate.hql.ast.QuerySyntaxException: unexpected token: on near line 1,
column 169 [SELECT rm.id , rm.routeCode , rm.startPlaceId , rm.endPlaceId ,
rm.active, rm.linkedRoute FRO... | 0 | 3,586 |
Cant get value of hidden field after ajax Jquery | <p>I have a page that when a link is clicked it opens a pop up box to insert new charges. When this pop up box opens I use jquery load() function to insert a table with all the current charges (loaded from mysql) from a script on another page called load_charges.php. </p>
<p>The problem I am having is I can not access... | 0 | 1,841 |
How to do instancing the right way in OpenGL. | <p>I am trying to use VBO and Instancing mechanism the most efficent way. I have a world based on voxels and I would like to draw them using least possible number of draw-calls. The code below prepares VBO with a quad: </p>
<pre><code>void VoxelView::initVBOs() {
/*--------------------- Main OpenGL Program -----------... | 0 | 1,580 |
Is it intended by the C++ standards committee that in C++11 unordered_map destroys what it inserts? | <p>I've just lost three days of my life tracking down a very strange bug where unordered_map::insert() destroys the variable you insert. This highly non-obvious behaviour occurs in very recent compilers only: I found that clang 3.2-3.4 and GCC 4.8 are the <strong>only</strong> compilers to demonstrate this "feature".</... | 0 | 1,125 |
How To Use List Adapter | <p>My app displays information from a database in a ListView. </p>
<p>In the ListView, there is also a VideoView which is supposed to load and play a video from my website.</p>
<p>In a separate app with only this function, I got it to work. The difference is that in the working app the videoview is located IN the <em... | 0 | 3,890 |
Trying to return the value from std::variant using std::visit and a lambda expression | <p>Suppose there exists a variant v defined as follows:</p>
<pre><code>std::variant<int,char,double,bool,std::string> v;
</code></pre>
<p>I am trying to get the underlying value from a std::variant using std::visit or std::get.</p>
<p>I tried doing this naively:</p>
<pre><code>constexpr size_t idx = v.index()... | 0 | 2,791 |
C socket client | <pre><code>#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
void error(const char *msg) {
perror(msg);
exit(0);
}
int main(int argc, char *ar... | 0 | 1,739 |
recording and saving audio on Android | <p>I'm developing an android (2.2) app to record audio. The code seems to run fine and even saves the files on the SD Card, but when I try and play the audio files on my Mac nothing happens. Almost like the files are empty. I've tried saving them as .mp3 and .wav but no luck. My code is below:</p>
<pre><code>import ja... | 0 | 1,989 |
how to use enum with DescriptionAttribute in asp.net mvc | <p>I am new to asp.net MVC. I am trying to use dropdown control on my view page, which populates from enum. I also want to add custom descriptions to dropdown values. I searched so many examples, but no one posted how to populated description on view page. Here is my code:</p>
<p>ViewModel:</p>
<pre><code>public enum... | 0 | 1,569 |
Stacking multiple plots, vertically with the same x axis but different Y axes in R | <p>I have a data.frame with multiple time series vectors against a date:time vector. I would like to plot all of the relevant vectors, vertically stacked on separate graphs with the same X axis but unique Y axes. A graph similar to this one: <img src="https://i.stack.imgur.com/fYaHe.jpg" alt="enter image description he... | 0 | 2,924 |
BroadcastReceiver for ACTION_MEDIA_BUTTON not working | <p>I am writing an Android application for version 4.0.3 (ICS) of the Android OS. The issue is that I am not getting the output from my Log.d() in the onReceive() method of the BroadcastReceiver which means my application is not properly handling the broadcast.</p>
<p>I have read countless questions about how to run c... | 0 | 1,086 |
Can someone explain the Spring web.xml file? | <p>I'm new to Java Enterprise and to Spring but I have a strong grasp of standard Java. I am looking through an existing web application project. The project uses Tomcat/Spring/Hibernate which I understand is fairly common. It also uses DWR for remote method invocations. I'm finding it somewhat difficult to separate re... | 0 | 1,059 |
Cannot create PoolableConnectionFactory (Access denied for user ''@'localhost' | <p>I have been trying to set up a DatabaseConnectionPool for a web app for the last couple of days with no success. I have read the relevant sections of the Tomcat docs and a great deal around the subject and think I'm doing everything right, but obviously not because I keep on getting the following error:</p>
<pre><c... | 0 | 1,351 |
No service for type 'Microsoft.AspNetCore.Identity.RoleManager error | <p>I'm setting up user roles on a ASP.NET CORE 2.1 application. But when I try to use the RoleManager it shoots into error. The error I get is: </p>
<pre><code>No service for type 'Microsoft.AspNetCore.Identity.RoleManager`1[Microsoft.AspNetCore.Identity.IdentityRole]' has been registered.)'
</code></pre>
<p>I've loo... | 0 | 1,530 |
Running powershell script within python script, how to make python print the powershell output while it is running | <p>I am writing a python script which checks various conditions and runs a powershell script accordingly to help me automate migration from windows XP to windows 7. The powershell script gives its own output giving the user updates as to what is happening. I would like to take the output of the powershell script and pr... | 0 | 1,743 |
JavaScript with Spring MVC doesn't work | <p>I downloaded login template which uses css and JavaScript. When I start it in default html format it displays ok, but when I put the same code to my Spring MVC 3 app and change format to jsp, javascript part is disabled. I can access external js files through my web browser, so I don't know where may be the problem.... | 0 | 1,961 |
how create a service for installed STUNNEL on CentOS 5.10 | <p>i have installed stunnel in my centos machine like below : </p>
<p><code>yum install stunnel -y</code></p>
<pre><code>openssl genrsa -out privkey.pem 2048
openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095
cat privkey.pem cacert.pem >> /etc/stunnel/stunnel.pem
chmod 600 /etc/stunnel/stunnel.... | 0 | 1,214 |
"Dead letters encountered" as soon as actors are placed into router | <p>Here's what I'm finding, and for the life of me I can't navigate to the reason. I'm creating "printer" actors that basically either do nothing, or print a message based on the type of message they receive.</p>
<pre><code>class Printer extends Actor {
def receive = {
case m: SomeMessage => println( m... | 0 | 1,167 |
OpenCV 4.x+ requires enabled C++11 support compilation darknet fatal error | <p>I just compiled and installed the last version of OpenCV 3.4.0 and I would like to compile darknet (for yolo object detection), but at compilation, I have</p>
<pre><code>gcc -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv` -DGPU -I/usr/local/cuda-9.1/include/ -Wall -Wno-unused-result -Wno-unknown-pragmas -W... | 0 | 1,941 |
Using a QThread in PyQT for serial communication (w. pyserial) | <p>I am pretty much a beginner when it comes to GUI programming.
I am using QT in combination with python bindings (PyQT4).</p>
<p><strong>What I am trying to do:</strong></p>
<ul>
<li>Setting up a <code>QThread</code> to read from & write to a Serial Port with
pyserial.</li>
<li>The main application should be ab... | 0 | 1,331 |
Is still GWT pertinent for new projects? | <p>The question <a href="https://stackoverflow.com/questions/1205278">Why should I use jQuery instead of GWT?</a> may be outdated (as its answers). And <a href="https://stackoverflow.com/questions/812401">most</a> <a href="https://stackoverflow.com/questions/4673612">of</a> <a href="https://stackoverflow.com/questions/... | 0 | 1,113 |
Spring annotation @Retryable - how to set an interceptor | <p>I am using a <code>@Retryable</code> annotation on a method in a <code>@Service</code>class</p>
<pre><code>@Service
@EnableRetry
public class PushService {
@Retryable(maxAttempts=5)
public Result pushIt(myMessage messageIn) {
...
}
}
</code></pre>
<p>and it works like a charme: I am getting a... | 0 | 1,345 |
How to solve error java.io.IOException: Input/output error in nativeavailable for Serial Communication? | <p>I have Arm processor which is AllWinner A13 ,RAM- 512mb, and OS- Linaro 13.01 Ubuntu (means debian). Now i m making Serial Communication program for /dev/ttyS0. i made simple program for Two Way Serial Communication in java with netbeans. In my processor i short rx-tx of ttyS0 for loop back coonection checking. Mean... | 0 | 2,032 |
How to set up a proxy location for all paths except some with apache2? | <p>I've got several webapps running on my webserver:</p>
<ul>
<li>SVN Repository Browser, accessible via <code>https://beta.mydomain.tld/svn/repos</code></li>
<li>Trac instance, accesible via <code>https://beta.mydomain.tld/trac</code></li>
<li>My own java web application, accessible via <code>http://beta.mydomain.tld... | 0 | 1,658 |
Configuration Error: <compilation debug="true" targetFramework="4.0"> ASP.NET MVC3 | <p>I'm trying to deploy my website on somee.com but keeps getting this error<br/><br/>
<img src="https://i.stack.imgur.com/QT9h9.png" alt="enter image description here"> </p>
<p>I've tried googling and it says I have to change my App Pool to ASP.NET 4.0. I've tried that already but with no luck:( <br/><br/>
<strong>I... | 0 | 1,738 |
Getting No loop matching the specified signature and casting error | <p>I'm a beginner to python and machine learning . I get below error when i try to fit data into statsmodels.formula.api OLS.fit()</p>
<p>Traceback (most recent call last):</p>
<blockquote>
<p>File "", line 47, in
regressor_OLS = sm.OLS(y , X_opt).fit()</p>
<p>File
"E:\Anaconda\lib\site-packages\stats... | 0 | 1,121 |
throw exception without breaking loop in java | <p>I need to handle custom exception in java inside loop so i am throwing new custom exception but it breaks the loop. How we can manage to throw loop without breaking loop. Here is my code</p>
<pre><code> for (int i = 0; i < j; i++) {
File currFile = arrayOfFile1[i];
if (currFile.isFile()) {
... | 0 | 1,295 |
Ternary operator in LINQ where clause | <p>I am using linq for join multiple tables and write complex query. Here when i will have '0' as any parameter i.e. <code>CategoryId</code>, <code>GameId</code>, <code>LimitVariantId</code>, that means user has selected "All" from interface.</p>
<p>My Sql query, when I will pass parameter values greater than '0' is :... | 0 | 2,209 |
Avoid using document.write() occurs when trying to load a dashboard page in Chrome | <p>So I have been stuck on this problem for longer than i'd care to admit but as a Angular newbie I am completely baffled.</p>
<p>So I am following some online tutorials in order to implement Gulp into an application I am working on and whenever I run the Gulp tasks I get an error in Chrome which states: </p>
<blockq... | 0 | 2,587 |
Spring / Hibernate / JUnit - No Hibernate Session bound to Thread | <p>I'm trying to access the current hibernate session in a test case, and getting the following error:</p>
<blockquote>
<p>org.hibernate.HibernateException: No
Hibernate Session bound to thread, and
configuration does not allow creation
of non-transactional one here at
org.springframework.orm.hibernate3.... | 0 | 1,479 |
How to execute a long dynamic query (greater than 4000) characters - again | <p>Note: I'm running under SQL Server 2008 R2...</p>
<p>I've taken the time to read dozens of posts on this site and other sites on how to execute dynamic SQL where the query is more than 4000 characters. I've tried more than a dozen solutions proposed. The consensus seems to be to split the query into 4000-characte... | 0 | 1,792 |
Error:This class should provide a default constructor (a public constructor with no arguments) [Instantiatable] in Android | <p>I am generating the file apk with Generated Signed APK in Android Studio, but I have this error:</p>
<blockquote>
<p>Error:Error: This class should provide a default constructor (a public constructor with no arguments) (com.actua.actuaconsultores.actuamindfulness.GridImagenAdaptar) [Instantiatable]</p>
</blockquo... | 0 | 1,041 |
How can I make viewpager loop? | <p>I want my ViewPager implementation to cycle between views instead of stopping at the last view. For example, if I have 3 views to display via a ViewPager, it should return back to the first View after the third View on fling instead of stopping at that third view. I want it to return to the first page/view when the ... | 0 | 1,770 |
Save SSRS Report as PDF in C# programmatically | <p>I've read through multiple articles regarding this issue however they have all ended up with it not working, or are in vb.net. </p>
<p><strong>What I currently have:</strong></p>
<p>The reports are accessed via a URL which renders them as a PDF and saves them in the downloads folder when the user clicks on a butto... | 0 | 1,344 |
How to add Custom Column in sales/order grid in Magento? | <p>I am trying to add custom columns to my sales/order grid. My columns will be the tracking number and the tile. The title is basically the courier code which shows you through which courier you have send you product.
So i have done some following things for this.</p>
<ol>
<li>I have copied the file from <code>magen... | 0 | 6,815 |
LiveData is not updating its value after first call | <p>I have been beating my head against the wall and I cannot understand why this is happening. I am working with the new Architectural Components for Android and I am having problems updating a LiveData with a List of Objects.
I have two spinners. When i change the option in the first one, The second one must have its ... | 0 | 2,239 |
How to Get ImageView Bring to front on touch event of ImageView? | <p>I have two <code>ImageView</code> in two different layouts, the One <code>ImageView</code> is on another <code>ImageView</code> and I am using <code>RelativeLayout</code> & the Both <code>ImageView</code> size is Wrap Content But the problem is if I click on <code>ImageView2</code> that time the <code>Imageview2... | 0 | 1,143 |
voice chat or audio call using socket in java | <p><strong>Scenario 1:</strong> Voice Chat between two user/client working well, If and only If, both of them use headphone.</p>
<p><strong>Scenario 2:</strong> If any one of them don't use headphone, then voice chat is working but noise is increased gradually.</p>
<p><strong>How it work</strong></p>
<p>Client 1's m... | 0 | 2,852 |
How to fix "java.io.NotSerializableException: org.apache.kafka.clients.consumer.ConsumerRecord" in Spark Streaming Kafka Consumer? | <ul>
<li>Spark 2.0.0</li>
<li>Apache Kafka 0.10.1.0</li>
<li>scala 2.11.8</li>
</ul>
<hr>
<p>When I use <a href="http://spark.apache.org/docs/latest/streaming-kafka-0-10-integration.html" rel="noreferrer">spark streaming and kafka integration with kafka broker version 0.10.1.0</a> with the following Scala code it fai... | 0 | 4,992 |
Calling a function without clicking anything | <p>I'm new in programming and I'm trying to call a function without any button or click event. I'm doing a table within a table using javascript function. Here's my code so far: <br><br></p>
<pre><code><html>
<head> <title> Hello </title> </head>
<body>
<table border=1>
&l... | 0 | 1,338 |
C++: get Boost working; questions on include path and linking library | <p>I was trying to use Boost.Tokenizer library. In my <code>PROG.cpp</code>, I have the following:</p>
<pre><code>#include <boost/tokenizer.hpp>
</code></pre>
<p>And my <code>Makefile</code> was initially something like</p>
<pre><code>CXX = g++-4.8
CXXFLAGS = ## some irrelevant flags
LDFLAGS = ## some irreleva... | 0 | 1,411 |
How to clear v-model used with a select when options change | <p>I have a cascading select (two part select) where the options in the second dropdown are determined by the value of the first dropdown. I do this by having a computed property which is based off of the first select. This then feeds the options into the second select. This mostly works fine.</p>
<p>The problem I'm h... | 0 | 1,226 |
spring Kafka integration testing with embedded Kafka | <p>I have spring boot application that had a consumer consumes from topic in one cluster and produces to another topic in different cluster.</p>
<p>Now I'm trying to write integration test case using spring embedded Kafka but having an issue <code>KafkaTemplate could not be registered. A bean with that name has already... | 0 | 1,156 |
WPF ToggleButton IsChecked Trigger | <p>This is driving me batty. I have a simple WPF toggle button, with two triggers for IsChecked. One for the value being true, and the other for the value being false. It works fine when the button is not checked, my style for false is applied; however, the system never applies the style for when IsChecked is true. ... | 0 | 1,097 |
closing all windows in python tkinter | <p>I am working with tkinter library in python. I have a main window which has several buttons and when clicked those buttons a new window will popup which also has a button called cancel. I want to make that cancel button to all the windows.</p>
<p>I tried the following solution, which only closes the current window... | 0 | 2,070 |
Install OpenGL ES and compile code for android | <p>I've just started learning OpenGL ES on android (using <a href="https://rads.stackoverflow.com/amzn/click/com/1430226471" rel="noreferrer" rel="nofollow noreferrer">this book</a>) and came across an issue of adopting <a href="http://apress.com/book/view/9781430226475" rel="noreferrer">source</a> code from chapter 5 ... | 0 | 1,211 |
com.google.android.gms.common.api.ApiException: 12500 | <p>This is my first attempt.... trying to find the issue for last 2 days.
I am trying to integrate google sign in to android app, however getting below:
com.google.android.gms.common.api.ApiException: 12500</p>
<p>Followed the code from:
<a href="https://firebase.google.com/docs/auth/android/google-signin" rel="nofoll... | 0 | 1,401 |
Updating ModelState with model object | <p>The problem: How to update ModelState in posting+validation scenario.</p>
<p>I've got a simple form:</p>
<pre><code><%= Html.ValidationSummary() %>
<% using(Html.BeginForm())%>
<%{ %>
<%=Html.TextBox("m.Value") %>
<input type="submit" />
<%} %>
</code></pre>
<p>When use... | 0 | 1,792 |
How to subtract one dataframe from another? | <p>First, let me set the stage.</p>
<p>I start with a <code>pandas</code> dataframe <code>klmn</code>, that looks like this:</p>
<pre><code>In [15]: klmn
Out[15]:
K L M N
0 0 a -1.374201 35
1 0 b 1.415697 29
2 0 a 0.233841 18
3 0 b 1.550599 30
4 0 a -0.178370 63
5 0 b -1.2359... | 0 | 1,034 |
Storing Data from WinCC Flex to Excel file using VBScript | <p>Am trying to log data of some tags of WinCC Flex into Excel file using VB Script.
I've searched on Siemens forums and have got an script according to my needs.
But there is an error while executing the script in WinCC Flex.</p>
<p>The script is as:</p>
<pre><code>Dim wsh, XLSrunning, TargetBookrunning, objExcelApp... | 0 | 1,103 |
How to download a video while playing it, using ExoPlayer? | <h2>Background</h2>
<p>I'm working on an app that can play some short videos.</p>
<p>I want to avoid accessing the Internet every time the user plays them, to make it faster and to lower the data usage.</p>
<h2>The problem</h2>
<p>Currently I've only found how to either play or download (it's just a file so I could... | 0 | 3,117 |
Using GraphServiceClient to get refresh tokens when authenticating using UserPasswordCredential in AuthenticationContext | <p>Sincere apologies if I miss something from this post, as I'm at my wits end after reading around for hours.</p>
<p>I'm attempting to write a back-end service (Windows) which will connect to the MS Graph API via Azure AD. I'm using C# to knock up a proof-of-concept but have run into numerous issues with the MS docs,... | 0 | 3,466 |
resolving font path in scss file when using webpack | <p>I'm using webpack with my asp.net mvc core project. I'm able to bundle js files. But I can't resolve my font paths. </p>
<p>I have this I'm scss file:</p>
<pre><code>$font-path: '../fonts' !global;
/*fonts*/
/* roboto-300 - latin */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight:... | 0 | 2,207 |
Accessing Coordinates in a nested geojson file to draw polygons with Google Maps API v3 | <p>I am having a real pain of trying to draw multiple polygons from a geojson file. Below I have pasted a sample of the geojson file and the javascript used to access it. It seems the main problem I am running into is that I cannot get into that array of coordinates nested in each record as it either returns the error ... | 0 | 5,035 |
Angular 6 StaticInjectorError (Platform: core) No provider for | <p>I have a project with a angular version of 4. *. \ *.
I tried to update the project to 6 angular versions.
I fixed all the errors that the compiler told me when I build a prod. There were a lot of them.
Now the project compiles without errors, but it does not work in the browser.
And now I'm stuck. Can someone help ... | 0 | 4,629 |
Change content based on select dropdown id in jquery | <p>I am trying to update content within divs based on a select box option.</p>
<p>If selected the id of the option should be used to display or hide the appropriate divs witin the area.</p>
<pre><code><select class=" outtaHere">
<option class="selected" value="australia_new_zealand_holidays"> Aust... | 0 | 1,252 |
how to code json array without array name? | <p>I'm new to JSON android java eclipse. I am doing a listview with images and parsing json array. I followed this tutorial: <a href="http://www.wingnity.com/blog/android-json-parsing-and-image-loading-tutorial/" rel="nofollow">http://www.wingnity.com/blog/android-json-parsing-and-image-loading-tutorial/</a> . In that ... | 0 | 1,417 |
Could we destroy/invalidate JWT token in Asp.NET Core? | <p>I use ASP.NET Core & ASP.NET core Identity to generate a JWT token.</p>
<p>On the client-side, my React (SPA) app calls API to create the token then include <code>Authorization: Bearer</code> <code>token from API</code> in subrequests.</p>
<p>When I want to logout, how can I immediately invalidate the token on t... | 0 | 1,206 |
How to set the state_pressed of a button | <p>I use a xml file to color my button. In the xml a have this code to define the color of my button when it's clicked.</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" >
... | 0 | 1,461 |
c# - How to use DateTimeOffset in MongoDB | <pre><code>public class ScheduledEvent : Event
{
public DateTimeOffset StartDateTime { get; set; }
}
</code></pre>
<p>StartDateTime = 5/27/2013 2:09:00 AM +00:00 representing 05/26/2013 07:09 PM PST</p>
<p>What's recorded in MongoDB:</p>
<pre><code>db.ScheduledEvent.find().toArray()[
{
"_id": ... | 0 | 1,596 |
Load balancer does not have available server for client: meeting | <p>While I am trying to reach the service <code>meeting</code> via Zuul gateway, Zuul is unable to forward the request to the respective service. The following errors are what I am facing:</p>
<blockquote>
<ol>
<li>nettflix.zuul.exception.ZuulException: Forwarding error</li>
<li>Caused by: com.netflix.client.Cli... | 0 | 1,262 |
Java HTTPPost Request with Apache HttpClient | <p>I need a java program to generate the following request.
I am using Apache HttpClient Library but still not able to produce a request like this:</p>
<p>This is what my python program generates and i wrote an equivalent java program. but its throwing 403.</p>
<p>2012-09-10 15:12:05G INFO: G2OAuth auth data = "3, 0.... | 0 | 1,357 |
JNDI Name binding in JBOSS 5.1.0 Beta | <p>I am following the MasteringEJB4thEdition book, which I downloaded from The Server Site website.</p>
<p>There is a simple example of HelloBean, which works perfectly with GlassFish V3 app server. The same example when deployed on JBOSS fails because of JNDI name lookup.</p>
<p>Is there any rule how the JNDI lookup... | 0 | 1,949 |
Can't Build NetBeans/Ant Project | <p>I have inherited a project originally written in NetBeans using Ant to build. I am an Eclipse user and have used Ant but do not completely understand the NetBeans specific way of using Ant. I know it uses a <code>build-impl.xml</code> file (imported into the <code>build.xml</code>), but am at a loss as to how that... | 0 | 1,643 |
Calling ActionChains move_to_element() leads to attribute error? | <p>I'm getting the following error when running my python/selenium script:</p>
<p><strong>AttributeError: 'WebElement' object has no attribute 'move_to_element'</strong></p>
<p>What does this particular error message tell? Is it not recognizing move_to_element as a valid action? I am importing the actionchains module... | 0 | 1,072 |
Accessing class variables | <p>It's the first time I use OOP with PHP 5.. so this is my problem..</p>
<p>I have a file <code>disp.php</code> that contains a class named class disp (model in MVC)</p>
<pre><code><?php
class disp{
public $n_pages;
public $current_page;
private $cmd2;
/***************SQL command generator*******************/
pr... | 0 | 1,168 |
HighCharts is not defined | <p>Hi I have a simple MVC extjs application : </p>
<p>My app.js : </p>
<pre><code>Ext.Loader.setConfig({
enabled: true,
paths : {
'Chart' : './Chart'
}
});
Ext.require('Chart.ux.Highcharts');
Ext.require('Chart.ux.Highcharts.Serie');
Ext.require('Chart.ux.Highcharts.SplineSerie');
Ext.applicatio... | 0 | 2,504 |
how to display an error message in an array | <p>i have this code:</p>
<pre><code>$allowed_extension = array('jpg', 'jpeg', 'png', 'bmp', 'tiff', 'gif');
$errors = array();
$output = array();
if(!empty($_FILES['image']['tmp_name'])){
foreach($_FILES['image']['name'] as $key => $array_value){
if(!in_array(pathinfo($_FILES['image']['name'][$key... | 0 | 1,565 |
Inserting JSON into MySQL using Python | <p>I have a JSON object in Python. I am Using Python DB-API and SimpleJson. I am trying to insert the json into a MySQL table.</p>
<p>At moment am getting errors and I believe it is due to the single quotes '' in the JSON Objects. </p>
<p>How can I insert my JSON Object into MySQL using Python?</p>
<p>Here is the e... | 0 | 1,409 |
UITableView inside UITableViewCell with dynamic height | <p>I need to put UITableView inside UITableViewCell with auto-layout because second table has different number of rows and one row can have different height.<br>
This is my ViewController</p>
<pre><code>class ViewController: UIViewController {
let tableView = UITableView()
let cellId = "firstTableCellId"
... | 0 | 2,429 |
unable to download artifact from nexus repo | <p>I am using a nexus repo in a linux system which downloads missing artifacts for me in my windows system when i build my project, by using:</p>
<pre><code>mvn install command
</code></pre>
<p>The artifacts are downloaded by my nexus repo from a remote repo which is mapped to the nexus repo.</p>
<p>This connection ... | 0 | 1,511 |
How to merge multiple datatables (every datatable return one row) in one row | <p>I have multiple data tables : i want to merge them (My <strong>P.K : emp_num</strong>)</p>
<pre><code>var tblEmp_data = new DataTable();//one row
var tblEmp_time = new DataTable();//one row
var tbl_emp_mission = new DataTable();//one row
tblEmp_data = GetEmpInfo(empNum);
tblEmp_time = GetEmpTime(empNum, start_perio... | 0 | 1,557 |
Using font-awesome in python django application | <p>I'm trying to load a local copy of font awesome icons in my python django app.</p>
<p>My template base.html contains:</p>
<pre><code>{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scal... | 0 | 1,408 |
Core Data nested managed object contexts and frequent deadlocks / freezes | <p><strong>I have a problem that is almost identical to the problem described by this person here, but it hasn't get answered:</strong></p>
<p><a href="http://www.cocoabuilder.com/archive/cocoa/312683-core-data-nested-managed-object-contexts-and-frequent-deadlocks.html#312683" rel="noreferrer">http://www.cocoabuilder.... | 0 | 1,994 |
How do I get didReadData within GCDAsyncSocket execute within the current RunLoop? | <p>I'm trying to get a simple example working with GCDAsyncSocket, and am discovering that I'm missing certain bits of understanding and hope you fine people can help explain this.</p>
<p>I've setup the GCDAsyncSocket stuff below:</p>
<pre><code>dispatch_queue_t mainQueue = dispatch_get_main_queue();
asyncSocket = [[... | 0 | 1,204 |
jQuery mobile data-rel="back" link causing wrong events to be fired | <p>Have a look at the <a href="http://dl.dropbox.com/u/16705233/data-rel-back.html" rel="nofollow">test-case</a></p>
<p>When you open the link, <code>pagebeforeshow</code> for <em>page 1</em> is fired. When you click the link to go to <em>page 2</em>, <code>pagebeforeshow</code> for <em>page 2</em> is fired. So far, s... | 0 | 1,207 |
How to wait for subscriptions inside a for loop to complete before proceeding | <p>I have a subscription inside of a for loop that fetches JSON data as a series of "category data" from an external source, then filters that data based on the users current location. What I need is to wait for all of the subscriptions to complete, and then and only then can my app proceed. Right now, it does not wait... | 0 | 1,109 |
Why doesn't blur(0) remove all text blur in Webkit/Chrome on retina screens? | <p>I recently came across an odd behaviour in Webkit browsers (under OSX at least) which took far longer to resolve than I would like!</p>
<p>Essentially: setting <code>filter: blur(0)</code> (or the vendor-specific <code>-webkit-filter</code>) on an element should mean that no form of blur is applied to the element.<... | 0 | 1,065 |
Remove selected event from the Calendar | <p>I am using JQuery Full Calendar along with Spring MVC.</p>
<p>Hello,
I have made a demo like <a href="https://i.stack.imgur.com/zy8Aa.jpg" rel="nofollow noreferrer">that</a>.</p>
<p>Target: I need when the user clicks on an event s/he already inserted,a dialog box appears and gives him/her the capability to either... | 0 | 3,245 |
org.hibernate.QueryException: could not resolve property | <p>This is the first time that I use JPA. I write the code with Java and JPA. My code is below.</p>
<pre><code> String queryStr = "SELECT m.title, b.isbn, b.authors";
queryStr += " FROM Book b, Media m";
queryStr += " WHERE m.MediaID = b.MediaID";
queryStr += " AND b.isbn = '" + isbn + "' AND m.tit... | 0 | 2,095 |
django.db.utils.OperationalError: (1054, "Unknown column | <p>An interesting issue.
Getting Unknown column exception -- Please find the stack trace</p>
<p>I try to get new leads list and responded leads. I merge them. When I merge them there is an exception. </p>
<p>After debugging its found that new_leads method has exclude of two fields collection and delivery . If we mak... | 0 | 2,055 |
List of objects not binding to the model on post back in asp.net mvc 4 | <p>In my my MVC 4 application, I have a Customer which can have multiple sites and can subscribe to multiple service packages. A short version of my view model looks like below </p>
<pre><code>public class SubscriptionModel
{
public int MemberId { get; set; }
public List<SitePackage> SitePackges ... | 0 | 1,428 |
Log4net configuration from assembly attribute does not load configuration file | <p>I have the following file Log4net.config in my bin directory:</p>
<pre class="lang-xml prettyprint-override"><code><?xml version="1.0" encoding="utf-8" ?>
<log4net xmlns="urn:log4net">
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<param name="file" value="MyLo... | 0 | 1,378 |
Java Web Application Error - Can't understand why it's happening now | <p>I am using eclipse and I can build the webapp and deploy it to Jboss4.2.1. It was working previously and I haven't changed anything really extensively to make this error come about. When I go to the webapp thru my browser, I previously have been signing in with a generic username and then I could use my webapp as us... | 0 | 3,368 |
Stop form refreshing page on submit | <p>How would I go about preventing the page from refreshing when pressing the send button without any data in the fields?</p>
<p>The validation is setup working fine, all fields go red but then the page is immediately refreshed. My knowledge of JS is relatively basic.</p>
<p>In particular I think the <code>processFor... | 0 | 3,080 |
Angular: focusout event not working with div tag | <p>I have a div tag which works as select box with multi select feature.</p>
<pre><code><div class="multiselect" id="multiFocus" *ngIf="editMode" (focusout)="disableSelect($event)">
<div class="selectBox">
<div class="multi-select-user">
<div style="width:180px; display:inl... | 0 | 1,279 |
Logcat says - The application may be doing too much work on its main thread and error message says - StringtoReal.invalidReal(string.boolean)line:63 | <p>Whenever I running my app in emulator,
Logcat says - The application may be doing too much work on its main thread and
error message says - StringtoReal.invalidReal(string.boolean)line:63
here, i am trying to add values of 3 textviews and show their total in another textview using tick on checbox(es)</p>
<pre><co... | 0 | 2,278 |
Get the list of items in Venn diagram | <p>It is easy to the draw a Venn diagram with the following code:</p>
<pre><code>library(VennDiagram)
set.seed(1) # For reproducibility of results
xx.1 <- list(A = sample(LETTERS, 15), B = sample(LETTERS, 15),
C = sample(LETTERS, 15), D = sample(LETTERS, 15))
venn.diagram(xx.1, filename ="1.tiff", h... | 0 | 1,653 |
How to fix 'SQLRecoverableException: Closed Connection' in Java | <p>We are working for an ecommerce built with Hybris framework and currently we have an issue with database connection (I suppose) and no idea on how to solve it. It happens only on production environment and only on servers that are used by ESB (2 servers in a total of 40).</p>
<p>Basically, sometimes (1-3/day), we d... | 0 | 2,301 |
JTable row color depending on Value in model? | <p>I have this code in my Table model:</p>
<pre><code>public class DocumentProjectTableModel extends AbstractTableModel{
private List<MyDocument> myDocuments;
public String getValueAt(int row, int column) {
String toReturn = null;
MyDocument myDocument = myDocuments.get(row);
... | 0 | 1,462 |
rails - running production mode locally = No such file to load - config/environment | <p>I am trying to run locally in production mode with:</p>
<pre><code>$ RAILS_ENV=production rails s
</code></pre>
<p>But I get:</p>
<pre><code>/home/durrantm/.rvm/gems/ruby-1.9.3-p194@linker/gems/activesupport-3.1.8/li
b/active_support/dependencies.rb:306:in `rescue in depend_on': No such file
to load -- /home/dur... | 0 | 3,194 |
How to send POST request to Phil Sturgeon's CodeIgniter RestServer | <p>I'm new to CodeIgniter. I'm using Phil Sturgeon's RestServer and RestClient. I've been trying to make a POST request in my CodeIgniter RestClient controller to update data in my CodeIgniter RestServer, but it never updates data in my database. I think my POST request is not right.</p>
<p>Here is my RestClient POST ... | 0 | 1,044 |
mach-o file, but is an incompatible architecture have 'x86_64', need 'arm64e' M1 MAC | <pre class="lang-py prettyprint-override"><code>from PyQt6.QtWidgets import *
from model.Department import Department
from view.main_window import Ui_Form
from model.Department import Department, Employee
class Homewidget(QWidget,Ui_Form):
def __init__(self):
QWidget.__init___(self)
self.setupUi(... | 0 | 1,490 |
How do you REALLY remove Copy from UIMenuController | <p>There apparently used to be an <a href="https://stackoverflow.com/questions/4311009/uimenucontroller-in-uiwebview-with-custom-menu-items-without-more-menu/4413464#4413464">easy way</a> to prevent the "More..." label from appearing in UIMenuController when you added more than one custom menu item. You just had to rem... | 0 | 1,161 |
java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1 | <p>I have to develop one Android application. Here I am getting following error:</p>
<pre><code>03-26 21:29:00.394: E/AndroidRuntime(684): FATAL EXCEPTION: main
03-26 21:29:00.394: E/AndroidRuntime(684): java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
03-26 21:29:00.394: E/AndroidRuntime(684): at java... | 0 | 1,207 |
CSS - Aligning Navigation bar with images and text | <p>I have a menu (shown in the picture below) which I am trying to correctly align the text with the images (i.e. [img] [text]) as well as "stretch" the whole contents to fit all the width.</p>
<p>Image:
<img src="https://i.stack.imgur.com/DP89b.png" alt="Navigation Menu"></p>
<p>HTML:</p>
<pre><code><div id="men... | 0 | 1,286 |
javamail - 504 5.5.2 : Helo command rejected: need fully-qualified hostname | <p>i will send mail via java mail in my webapp. i wrote a code and test it via gmail account and it works fine. then i replace my host smtp detail with gmail information and test it. oops it return my a following exception:</p>
<pre><code>javax.mail.MessagingException: 504 5.5.2 <rasta-PC>: Helo command rejected... | 0 | 2,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.