title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
jquery click event doesn't work
<p>I wrote this code , and I need to handle click events with jquery , but it doesn't work in any browser , when I click any elements nothing happens. The divs has no z-index in css;</p> <p>The hole "news" element adds dynamically This is html code </p> <pre><code>&lt;div class="news"&gt; &lt;div class="m...
0
1,349
Matplotlib / Seaborn barplot--strings in x axis
<p>Maybe I am too used to <code>R's</code> wonderful <code>ggplot</code>-idiom when doing faceted charts (it takes numeric and string variables without protest) but the ideal way outside ggplot has certainly eluded me for some time getting to know the matplotlib world.</p> <p>I am typically faceting a lot of bar chart...
0
1,135
A Generic error occurred in GDI+ in Bitmap.Save method
<p>I am working on to upload and save a thumbnail copy of that image in a thumbnail folder.</p> <p>I am using following link:</p> <p><a href="http://weblogs.asp.net/markmcdonnell/archive/2008/03/09/resize-image-before-uploading-to-server.aspx" rel="noreferrer">http://weblogs.asp.net/markmcdonnell/archive/2008/03/09/r...
0
1,066
Using Delegate With has_many In Rails?
<p>We've got 2 models &amp; a join model:</p> <pre><code>#app/models/message.rb Class Message &lt; ActiveRecord::Base has_many :image_messages has_many :images, through: :image_messages end #app/models/image.rb Class Image &lt; ActiveRecord::Base has_many :image_messages has_many :messages, through: :...
0
1,056
Method for downloading iCloud files? Very confusing?
<p>I have basic iCloud support in my application (syncing changes, making ubiquitous, etc.), but one crucial omission so far has been the lack of "download" support for files that exist (or have changes) in the cloud, but are not in sync with what's currently on disk.</p> <p>I added the following methods to my applica...
0
2,042
Post list of list of model object to Controller in ASP.NET MVC
<p>Form like this</p> <p><a href="https://i.stack.imgur.com/VREoG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VREoG.png" alt="enter image description here"></a></p> <p><strong>ViewModel:</strong></p> <pre class="lang-cs prettyprint-override"><code>public class ProductViewModel { public s...
0
1,183
Swift how to modify exif info in images taken from mobile camera
<p>I use <code>UIImagePickerController</code> to pick images in my iOS App and I know exif info can be got by <code>info[UIImagePickerControllerMediaMetadata]</code>. But when I upload my image to my server by <code>UIImage</code>, most of exif info has been striped. I wonder whether I can add exif info to my image in ...
0
1,462
Metadata version mismatch with Angular 4
<p>I am working on Angular 4 application and getting below error with "npm start" command - </p> <blockquote> <p>ERROR in Metadata version mismatch for module C:/gitRepo/gmdias/gmdais-frontend/node_modules/@angular/animations/browser/browser.d.ts, found version 4, expected 3, resolving symbol ɵf in C:/gitRepo/...
0
1,455
JAXB Types problem
<p>I have an xsd that looks like this (snippet):</p> <pre><code>&lt;xs:complexType name="IDType"&gt; &lt;xs:choice minOccurs="1" maxOccurs="2"&gt; &lt;xs:element name="FileID" minOccurs="0" maxOccurs="1" type="an..35" /&gt; &lt;xs:element name="IDNumber1" minOccurs="0" maxOccurs="1" type="an..35" /&gt; ...
0
1,907
getElementsByClassName not working
<p>I coded a php page that displays information from a mysql database neatly into tables. I would like to hide empty table rows with an onLoad event handler.</p> <p>Here is a sample table with code that hides a <code>&lt;td&gt;</code> when it has no content. but i can only get it to work with different IDs:</p> <pre>...
0
1,024
cudaDeviceSynchronize() error code 77: cudaErrorIllegalAddress
<p>Thank you very much for reading my threads. </p> <p>I am doing CUDA work, but keep getting cudaDeviceSynchronize() error code 77: cudaErrorIllegalAddress, without any idea why. I did the search for both the code and the function, surprisingly , only a few records showed up. Very strange.</p> <p>I basically sum up ...
0
3,968
How to save one-to-many in hibernate/jpa?
<p>Not sure if I described one-to-many relationship with JPA right. I have 3 tables: Handyman table contains name, address, phone number etc. Company table has : Company name, address, phone number etc. WorkOrder table: workOrder number, job site address, FK to handyman's ID, FK to company's ID. When adding new worko...
0
1,422
How can I optimze my queries to select things using queryBuilder in Typeorm?
<p>I have 3 entities User, Spot and Thing. An User can have many spots and a spot can have many things.</p> <p>Currently I'm writing two queries, one to validate that the spot exists on the user and then one to get the things from the spot. (See <code>index.js</code>).</p> <p>How can I write one query using <code>cre...
0
2,657
ConnectionResetError: [Errno 104] Connection reset by peer and ERR_NAME_NOT_RESOLVED on heroku with mobile testing through Selenium
<p>I'd like to test multiple mobile user agents with selenium and chrome. I'm using python 3.6 and deploying to heroku. Based on <a href="http://chromedriver.chromium.org/mobile-emulation" rel="noreferrer">http://chromedriver.chromium.org/mobile-emulation</a> .</p> <p>You can download my project for both windows and h...
0
2,731
Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE TYPE_MEDIA_PROJECTION in Android Pie and Q
<p>any body knows why this error occur, Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION on getMediaProjection() even i call getMediaProjection() method after calling startforeground() method..!</p> <p>Stack Trace is :</p> <pre><code> Process: com.al1.scr...
0
2,188
Entity Framework: Avoiding Inserting Duplicates
<p>Say, I have the following conceptual model, there are strories that have tags (more than one, so it's a many-to-many relationship), plus each tag belongs to a particular category.</p> <p>My data comes from an external source and before inserting it I want to make sure that no duplicated tags are added.</p> <p><str...
0
1,117
How to create empty/blank UIImage or CGImage and manipulate pixels on it (Xcode)?
<p>I have following problem and only could solve it partially yet. I am working with XCode 3.2.5, developing for iOS 4+.</p> <p>I simply try to create an Image of pre-defined size, manipulate pixels on it and then show the Image in an UIImageView. My view consists of simple Button connected to and IBAction called "but...
0
2,443
Convert All to JPG in C#
<p>I have a function like the following:</p> <pre><code> // Convert To JPG // public string AlltoJPG(FileInfo foo) { // Get file extension string fileExtension = foo.Extension; // Get file name without extenstion string fileName = foo.Name.Replace(foo.Extension, string...
0
1,561
FTP over SSL for C#
<p>I'm using the code below (needs to be .Net 2.0) to connect on a UAT server to a customer FTP server to up/down load files. I need to connect over port 990, using a self signed certificate supplied by them. I've got the firewall rules amended to allow connection to the URI on port 990 from our UAT server.</p> <p>How...
0
1,325
"Warning: Cannot modify header information - headers already sent by" error
<p>I keep receiving this error each time I try to submit a deletion form.</p> <blockquote> <p>Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\speedycms\deleteclient.php:47) in C:\xampp\htdocs\speedycms\deleteclient.php on line 106</p> </blockquote> <p>Is there some...
0
2,406
Horizontal Scrollbar not appearing in DataGrid
<p>My DataGrid appears with Data outside the visual scope. I have looked into several similar questions on StackOverflow but none of them seemed to solve my problem. I am not able to figure out as to what am I doing wrong. This is what my xaml looks like:</p> <pre><code>&lt;Grid&gt; &lt;Grid.RowDefinitions&gt; ...
0
1,928
SwitchPreference onChecked/onClick Listener
<p>I've been racking my brains all night but can't seem to accomplish this one small thing. I would like to add a SwitchPreference into my PreferenceActivity of an app. Below is a picture. </p> <p>Before I say too much, my problem is exactly this: I cannot seem to put a listener on just the Switch part of the preferen...
0
1,999
How to use UDP with multiple Clients in Java
<p>I have the following Situation.</p> <p>I have a Server class. I have a Client class. I have a MultiServerThread class.</p> <p>When a Client connects to a Server, the Server creates a new MultiServerThread, which is processing the Input from the Client. That way I can have multiple Clients. So far so good. The conn...
0
1,359
kotlin.NotImplementedError: An operation is not implemented: not implemented Error from ImageButton Click
<p>Getting this Error </p> <blockquote> <p><strong>kotlin.NotImplementedError: An operation is not implemented: not implemented</strong></p> </blockquote> <p>I am implementing an ImageButton click listener </p> <p><strong>Requirement</strong> :- I want to perform an action on imagebutton click , but getting the ab...
0
2,219
SSL handshake failing with "sslv3 alert handshake failure:SSL alert number 40"
<p>I have a .pfx file, which can perfectly connect to the remote server when used on a windows client. I want to now connect to server using a linux client.</p> <p>Problem 1) I used following openssl commands to extract public cert and private key from the pfx file,</p> <pre><code>openssl pkcs12 -in Name.pfx -nocerts...
0
1,077
expected single matching bean but found 2: transactionManager1,transactionManager
<p>I want to use to different data sources. But I am getting above exception.<br> Here is my <strong>spring-config.xml</strong></p> <pre><code>&lt;mvc:default-servlet-handler /&gt; &lt;mvc:annotation-driven /&gt; &lt;!-- Transaction Manager --&gt; &lt;tx:annotation-driven /&gt; &lt;bean id="transactionManager" ...
0
1,960
Android build warning Mapping new ns to old ns
<p>I created a new project in android studio and added all the dependencies. All of them are latest. When I built the project I am getting these warnings. There is no code in the app. These started showing after I added the dependencies.</p> <p>Should I just leave it like this?</p> <p><a href="https://i.stack.imgur.com...
0
1,952
How do I fix this gem dependency problem in Rails 3 (bundler)?
<p>For some reason, my project has messed up and now its throwing errors every time I try to run <code>bundle install</code>. Somem of the errors i've managed to fix by reordering the gems in my <code>Gemfile</code>, but now i'm getting this one:</p> <pre><code>Bundler could not find compatible versions for gem "fara...
0
1,729
root@localhost password set with Ansible mysql_user module doesn't work
<p>I have the following playbook:</p> <pre><code>- hosts: myserver vars: mysql_root_password: foobarbaz [...] tasks: [...] - name: update mysql root password for all root accounts mysql_user: name=root host={{ item }} password={{ mysql_root_password }} priv=*.*:ALL,GRANT with_items: -...
0
1,096
Access to the script '/path/to/script.php' has been denied (see security.limit_extensions)
<p>before let me list what I have tried:</p> <ul> <li><a href="https://serverfault.com/questions/402009/fastcgi-error-access-to-the-script-denied">This Answer on ServerFault</a></li> <li>chmoded /Users/user/portal3 to 777 to see if executes</li> <li>Created two pools one with root and another with current user</li> <l...
0
1,304
Firebase - How do I make a new table/structure?
<p>So I am currently developing an API which gets data from Firebase and depending on that data the button changes its color. However, when I tried to make a new structure for my buttons. It won't let me make one.</p> <p>I tried the answers here: <a href="https://stackoverflow.com/questions/41031700/how-to-insert-data...
0
1,277
Eclipse tomcat error: Document base does not exist or is not a readable directory
<pre><code>13-dic-2011 17.00.36 org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd...
0
1,228
Bluetooth RFCOMM connection Linux
<p>I am trying to connect a wearable device to processing IDE using Bluetooth connection. Before anything, I have to say that I have made it work on Windows OS, but I am struggling to do it with Linux Mint.Trying to make it work I have made things worse, so I am going to try to explain myself as clear as possible. </p>...
0
1,346
Best practices to handle routes for STI subclasses in rails
<p>My Rails views and controllers are littered with <code>redirect_to</code>, <code>link_to</code>, and <code>form_for</code> method calls. Sometimes <code>link_to</code> and <code>redirect_to</code> are explicit in the paths they're linking (e.g. <code>link_to 'New Person', new_person_path</code>), but many times the ...
0
1,333
React- Webpack: Cannot read property 'tap' of undefined
<p>I have a React application configured with Django Application. I have different webpack config files for development and production, When I run "npm run start", it gives me error that:</p> <blockquote> <p>Cannot read property 'tap' of undefined</p> </blockquote> <p><strong>package.json file:</strong></p> <pre><...
0
9,237
kendo ui dropdownlist- How to do manual Cascading?
<p>So im currently trying to adapt some previous code to use with dynamic dropdownlists, the problem seems to be that the cascadeFrom property only takes an id. So i need to use another alternative. Here's my code:</p> <pre><code> fieldsDiv.html(dynForms + dynFormFields); var appendedForms=fieldsDiv.find...
0
1,615
#<Faraday::ConnectionFailed> Connection refused - connect(2)
<p>I am receiving the message <code>#&lt;Faraday::ConnectionFailed&gt; Connection refused - connect(2)</code> after using checkboxes to select items in <code>users/edit.html.erb</code> and pressed save. The items I selected are in an array called <code>amenities_list</code>. These items are booleans. After trying to s...
0
5,122
Access to XMLHttpRequest at '...' from origin 'http://localhost' has been blocked by CORS policy
<p><br> I'm trying to demo an api call with javascript to get Json result. Here is what I did:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;script src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"&gt;&lt;/script&gt; &lt;body&gt; &lt;div class=...
0
1,050
Material UI custom text field on date picker
<p>Alrighty, so I'm using <a href="http://material-ui.com/" rel="nofollow noreferrer">Material UI</a> on my react project and using their suggested <a href="https://material-ui-pickers.dev/" rel="nofollow noreferrer">Material UI Pickers</a> for a date picker, now the thing is, for it to be in line with the rest of my f...
0
1,982
elasticsearch - No query registered for [query]]
<p>I am trying to send request to ES from my tests. <a href="https://github.com/iPrayag/gccount/blob/master/test/unit/eccount/TransactionServiceTests.groovy#L29" rel="noreferrer">I applied mapping and inserted documents to ES index named 'gccount_test' from the same test</a>. I have a very simple query maintained in a ...
0
1,416
Creating a Tester Class for Java
<p>I need to create a tester class for my code, but I have no idea on how to do this, can someone help me? I've tried compiling this but I've got these messages:</p> <p>2 errors found:</p> <p><code>Error: The constructor PayCalculator() is undefined</code></p> <p><code>Error: The method printData() is undefined for ...
0
1,316
Firebase captcha check fails and prevents user from authenticating
<p>I dont have idea why this error pop up . When I run the app on other device the app goes well but when I face issue on other device . Also I have issue while I am accessing firebase via wifi . I have contacted firebase support they say in INDIA they are facing issue with server and isp</p> <p>otpVerification.kt</p> ...
0
3,899
Skipped 60 frames! The application may be doing too much work on its main thread
<p>I'm working on a App that should get a JSON response from a webservice and write every element in a <strong>listview</strong>, I have read that I should work with <strong>AsyncTask</strong> to get the HTTP Response and I did it and I could retrieve data from the webservice and display them in <strong>TextViews</stro...
0
1,946
android camera : Failure delivering result ResultInfo{who=null, request=0, result=-1, data=null} to activity
<p>i've really frustased to solve my problem, i have an application that using camera, when camera capture a photo, it will display on activity, when i'm not using <code>cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, mPhotoUri);</code> photo will display on activity, but the name and path file is not like what i wanted...
0
1,932
Twitter bootstrap typeahead delay
<p>I use twitter bootstrap typeahead for displaying some data from server, the problem is when user types an letter typeahead makes an ajax call to server and when I try to type 2 or 3 letters fast it will make 2 or 3 ajax calls to server, is there a possibility to make an delay when user is typing letters to make only...
0
1,407
Spring WebFlux: Only one connection receive subscriber allowed
<p>I am writing a simple app with Spring 5 Webflux and Kotlin. I am trying to implement PUT endpoint in a following way:</p> <pre><code>PUT("/confs/{id}", { val id = it.pathVariable("id") ServerResponse.ok().body(service.save(it.bodyToMono(Item::class.java)), Item::class.java) }) </code></pre> <p>The trick on...
0
7,192
Local variable access to inner class needs to be declared final
<p>I got a problem of local variable access to inner class need to be declared final. It is from method createGrids() -> "<code>squares[i][j] = 0;</code>" that i is a local variable that need to be declared final. I don't know why and I have added final in fields but it is not working as well.</p> <pre><code>import ja...
0
1,619
Simple example for Quartz 2.2 and Tomcat 7
<p>I want to create a scheduler with Quartz 2.2 in java dynamic web application. I am new to this task. I tried all the tutorials around the web. I trying context listener method to initialize the scheduler. It doesn't seem like working. The hello world program only works in general java application. for web applicatio...
0
3,132
How to use qrc in c++ and QML application?
<p>I have written a Qt Quick Desktop application in c++ qnd Qt Creator(QML) on Windows7. Now I have to deploy it, and I need to hide the qml files and the images(means: to put them in resources and etc.)</p> <p>I've read that there is a great way to do that with .qrc files. I read the documentation about those files, ...
0
1,141
Spring Boot - Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured
<p>I want to configure two datasources in my SpringBoot (version 2.4) application.</p> <p>Below is the application.properties:</p> <pre><code>spring.datasource2.url=jdbc:postgresql://localhost:5432/db1 spring.datasource2.username=//username spring.datasource2.password=//pwd spring.datasource2.initialization-mode=always...
0
3,342
Maven exec plugin ClassNotFoundException
<p>I'm using the Maven exec plugin to run a java application from the command line with the command mvn exec:java. I have specified the main class in the pom.xml and the associated dependencies.</p> <pre><code>&lt;groupId&gt;com.example.MyApp&lt;/groupId&gt; &lt;artifactId&gt;MyApp&lt;/artifactId&gt; &lt;version&gt;1....
0
1,050
spring boot + hibernate 5 + java 8 + ZonedDateTime = ImplicitNamingStrategy exception
<p>I have an spring boot app that leverage the java 8 and have used hibernate 4 so far. I needed however to change part of my model to include the new ZonedDateTime class provided by java8 i.e. I needed a datatime type that provide me the instance of time in utc together with the offset and the time zone. For that reas...
0
9,996
JPA 2: multiple column usage in foreign keys
<p>I am using Hibernate as persistence provider and modelling my entities with JPA 2.</p> <p>Now a question came up and i hope you can help me. </p> <p>In my application you can open up a Game, create groups of players in it and walk around on the map (tiles (2d)). </p> <p>First my entity definitions: Game:</p> <pr...
0
1,778
Gradle error: Minimum supported Gradle version is 3.3. Current version is 3.2
<p>When I today update Android Studio it write: Minimum supported Gradle version is 3.3. Current version is 3.2 how can I solve this problem?</p> <p>Here is my build.gradle</p> <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositori...
0
1,074
How to set auto table width according to main page?
<p>I use consomcontrols.grid on asp.net.I have a width problem specially on IE on page. I want to set gridview's width auto according to main page.</p> <p>My grid's width can be bigger than page width,i can be able to use scroll inside page div.</p> <p>This is my problem's screenshot: (IE 9) (Problem lives all browse...
0
3,326
Can't run 'expo start' on a expo-react-native app, permission problem
<blockquote> <p>Well, i see that already have many questions related to my problem on this site, but i also see that NONE of the solutions work for my specific case, because of that, i am opening that question, so <strong>it is not a duplicate</strong>.</p> </blockquote> <h2>Context (environment)</h2> <ul> <li>Linu...
0
1,763
Using HttpClient for Asynchronous File Downloads
<p>I have a service which returns a csv file to a POST request. I would like to download said file using asynchronous techniques. While I can get the file, my code has a couple of outstanding problems and questions:</p> <p>1) Is this really asynchronous? </p> <p>2) Is there a way to know the length of the content eve...
0
1,666
Undefined variable: title (View: C:\xampp\htdocs\myproject\resources\views\categories\index.blade.php)
<p>I try to make a page index.blade, but i getting error</p> <p>Undefined variable: title (View: C:\xampp\htdocs\myproject\resources\views\categories\index.blade.php)</p> <p>I am using laravel 5.4 PHP 7.0.33 Is there anything wrong with the code?</p> <p><strong>My Controller</strong></p> <pre><code>&lt;?php namesp...
0
5,270
To upload a file using richfaces
<p>In RichFaces, inorder to upload a file I used <code>rich:fileUpload</code>. By using <code>rich:fileUpload</code> Add, Upload and Clear All buttons are automatically generating in the richfaces livedemo example but for me Add, Upload and Clear All are appearing as text in my browser where should I change so that Ad...
0
4,062
A polynomial class
<p>Here is the problem I am trying to solve: </p> <blockquote> <p>Using dynamic arrays, implement a polynomial class with polynomial addition, subtraction, and multiplication. Discussion: A variable in a polynomial does nothing but act as a placeholder for the coefficients. Hence, the only interesting thing abou...
0
1,039
Typing redux forms v7 with TypeScript and React
<p>I've got a plain react-redux-powered form. I wish for there to be a form.container.tsx and a form.component.tsx, where form.container.tsx holds all the connections to redux state minus the Field's. I'm trying to wrap my container in react-redux's connect and then wrapping reduxForm within it to look something like <...
0
1,909
DialogFragment set height of Dialog
<p>I just used created by first Dialog using DialogFragment. Everything works great except I can't get the Dialog to wrap it's layout. My layout has the height of all elements to <code>wrap_content</code>.</p> <p>In <code>MyFragmentDialog</code> I can't even find a method that would imply that it can be used to set th...
0
2,080
What are possible reasons for receiving TimeoutException: Futures timed out after [n seconds] when working with Spark
<p>I'm working on a Spark SQL program and I'm receiving the following exception:</p> <pre><code>16/11/07 15:58:25 ERROR yarn.ApplicationMaster: User class threw exception: java.util.concurrent.TimeoutException: Futures timed out after [3000 seconds] java.util.concurrent.TimeoutException: Futures timed out after [3000 ...
0
1,997
bootstrap navbar collapse with scroll bar
<p>I am currently using the css code bellow to collapse the navbar at 930px. The code works nicely except for one thing, it doesn't add the scroll bar for more navigation links. How can I add the scroll bar so that the last navigation links only appear when you scroll within the dropdown list? Note that the scroll bar ...
0
1,941
Apache ThreadsPerChild increase not applying
<p>I installed WAMP and am using Apache 2.2.17 on my windows 7 box. Have a lot of boxes connecting to it to request work etc etc.</p> <p>The apache server crashed on me twice because it said </p> <pre><code>[warn] Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting </code></pre> ...
0
1,810
How to perform feature selection with gridsearchcv in sklearn in python
<p>I am using <code>recursive feature elimination with cross validation (rfecv)</code> as a feature selector for <code>randomforest classifier</code> as follows. </p> <pre><code>X = df[[my_features]] #all my features y = df['gold_standard'] #labels clf = RandomForestClassifier(random_state = 42, class_weight="balance...
0
1,121
HTTP Status 404 - Servlet [ServletName] is not available
<p><strong>The problem</strong> : My index.jsp with web.xml keeps going into HTTP 404 and 500</p> <p>I'm using Tomcat6 .</p> <p>This is from index.jsp : </p> <pre class="lang-html prettyprint-override"><code> &lt;legend&gt;Registration&lt;/legend&gt; &lt;form action="./register"&gt; &lt;%-- Address from web.xml ...
0
2,034
Can Web Deploy's setAcl provider be used on a sub-directory?
<p>I'm trying to make a subdirectory in an MS Deploy package writable to the application pool user. Thanks to a <a href="http://leethams.wordpress.com/2010/06/12/modifying-directory-permissions-with-web-deployment/" rel="noreferrer">helpful post about the setAcl provider</a> by Kevin Leetham I was able to get most of ...
0
1,028
showModalDialog; Opens a New Window in IE
<p><strong>Please see update (11/27) below</strong></p> <p>I have a modal window that is launched with it's content in an iframe (ASP webforms application). We need to have the modal redirect to another page, but it cannot be within the iframe due to security reasons (Paypal processing page). In Chrome and IE standard...
0
2,436
Java/Hibernate - Exception: The internal connection pool has reached its maximum size and no connection is currently available
<p>I'm using Hibernate for the first time for a University project and I'm a bit of a newbie. I think I followed all the instructions given by my professor and by some tutorials I read, but I keep getting the Exception that is in the title:</p> <pre><code>Exception in thread "main" org.hibernate.HibernateException: Th...
0
1,686
MapReduce java program to calaculate max temperature not starting to run,it is run on local desktop importing external jar files
<p><strong>1>THIS IS MY MAIN METHOD</strong></p> <pre><code>package dataAnalysis; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapred.FileOutputFormat; imp...
0
1,995
How to add dependencies in gradle file in android for Firebase for database and auth together?
<p>I am extremely new to android and trying the firebase where i am trying out firebase auth and firebase database.</p> <p>I could successfully complete the auth functionality and below is the gradle file contents for app module just after it.</p> <pre><code>apply plugin: 'com.android.application' android { comp...
0
1,214
Cannot use a leading ../ to exit above the top directory
<p>I have a asp.net web site with it we have admin area with login page for admin only and all site is allowed for all - i need to ask how to define the right security configuration for it as i get this error </p> <pre>Cannot use a leading .. to exit above the top directory. Description: An unhandled exception occurr...
0
1,209
How to check all select option value is not an empty?
<p>I'm having 5 select option drop down menu. Future it will get increase based on the requirement. The problem is if i select last element i'm getting the value is true. Other elements not filled, it is empty only. It should through false only, if anyone element value is null.</p> <p>This is my code</p> <pre><code>&...
0
3,220
The property on entity type is part of a key and so cannot be modified or marked as modified
<p>I use Entity Framework 7.0.0-rc1-final with SQL 2014 LocalDB (code first). I have the model class:</p> <pre><code>public class UnitGroup { public int UnitGroupId { get; private set; } public string Name { get; set; } public ObservableCollection&lt;Unit&gt; UnitSet { get; set; } public UnitGroup() {...
0
1,375
parsing Xml with NodeList and DocumentBuilder
<p>Having a bit of trouble parsing xml with dom and DocumentBuilder. I'm able to get it working, but I guess I get a bit confused with all the child nodes, etc. </p> <p>Here's the XML I'm working with:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LabTests&gt; &lt;LabTest type="specialty" name="...
0
2,765
Failed to make identity provider oauth callback: org.keycloak.broker.provider.IdentityBrokerException: No access_token from server
<p>We are intermittently (and having a very hard time replicating it, except for one user) getting this error message while using Keycloak 3.3.0 Final. This is when attempting to authenticate using Google.</p> <p>The stack trace is here:</p> <pre><code>org.keycloak.broker.oidc.OIDCIdentityProvider.verifyAccessToken(O...
0
2,805
ActionController::InvalidAuthenticityToken in RegistrationsController#create
<p>Hi I am using Devise for my user authentication suddenly my new user registration was not working. </p> <p>this was error I am getting.</p> <pre><code>ActionController::InvalidAuthenticityToken Rails.root: /home/example/app Application Trace | Framework Trace | Full Trace Request Parameters: {"utf8"=&gt;"✓", ...
0
3,097
How to load fragment data only when its tab is clicked in PagerSlidingTabStrip
<p>I am using <code>PagerSlidingTabStrip</code> in my project and am showing data in fragments. Its a great library which works great. Each Fragment consists of a scholar's lectures which are loaded from a web service. The code to access the web service is in <code>onCreateView</code> method of the Fragment. Currently ...
0
1,229
installation of package had non-zero exit status
<p>I've just updated R to version 3.6.2 "dark and stormy night" released December 12th last year. I've tried installing the following packages but have received the same error, "installation of package X had non-zero exit status".</p> <p>The packages include: broom, tidyr, tidyselect, vctrs, and rlang. </p> <p>I've e...
0
6,298
Unable to set my custom favicon.ico in Spring Boot 1.3 or 1.2.5
<p>I started a <strong>fresh new project</strong> a couple of days ago using for the first time <strong>FreeMarker</strong> with <strong>Spring Boot 1.3</strong>. However, I'm struggling to display my own favicon. In fact, <strong>it worked well at the very beginning</strong> of the project but since a couple of days a...
0
1,931
Side-by-Side configuration incorrect due to incorrect manifest
<p>I initially asked this question on the <a href="http://forums.librocket.com/viewtopic.php?f=2&amp;t=828" rel="noreferrer">libRocket</a> forum, but given that further investigation suggests this is more of a general C++/Visual Studio related problem, I am asking here.</p> <p>I am running Visual Studio C++ 2010 Expre...
0
1,754
HTTP chunked transfer
<p>I'm writing a client app that connects to a service using the chunked transfer encoding. The service occasionally disconnects and I was told it was because we're sending a zero chunk in the request, so <code>Tomcat</code> closes the connection. </p> <p>I'm using the <code>Java</code> <code>HttpUrlConnection</code...
0
4,390
Should I place my navbar before or after the `<body>` tag when customizing a WP theme?
<p>I am customizing a WP theme by making a child theme. I am placing a navbar from Bootstrap into the header.php file in the child theme directory. However, I'm not sure where to place the navbar code. I can place it both before <em>and</em> after the <code>&lt;body&gt;</code> tag successfully (as in, the navbar shows ...
0
2,548
Heroku - crash all the time
<p>I am developing node.js app on heroku. For now it runs on single (free) dyno.</p> <p>For some reason suddenly my app crashed and now it crashes all the time (I observed it after adding NewRelic and Librato addons - app is kind of restarted when adding those addons) - app crashed for the first time after one of thos...
0
1,141
Spark ExecutorLostFailure
<p>I'm trying to run spark 1.5 on mesos in cluster mode. I'm able to launch the dispatcher and to run the spark-submit. But when I do so, the spark driver fails with the following:</p> <pre><code>I1111 16:21:33.515130 25325 fetcher.cpp:414] Fetcher Info: {"cache_directory":"\/tmp\/mesos\/fetch\/slaves\/2bbe0c3b-433b-4...
0
6,263
struts2-json-plugin not retrieving json data from action class for Struts-JQuery-Plugin grid
<p>Im having an issue getting json working with the struts-jquery-plugin-2.1.0</p> <p>I have included the struts2-json-plugin-2.1.8.1 in my classpath as well. Im sure that I have my struts-jquery-plugin configured correctly because the grid loads, but doesnt load the data its supposed to get from the action class that...
0
2,575
using static libraries instead of dynamic libraries in opencv
<p>I have a project in visual studio 2012 which uses opencv dynamic libraries. It compiled, linked and worked well.</p> <p>I want to change the project so it uses static libraries instead of dynamic libraries.</p> <p>I changed the library directories in project VC++ directory from </p> <pre><code> C:\thirdparty\ope...
0
1,103
objective c undefined symbol compilation error
<p>Help please! my first program in objective c. Followed a tutorial word for word but it gives me this error that I don't know quite how to read for objective c.</p> <p>SimpleCar.h:</p> <pre><code>#import &lt;Cocoa/Cocoa.h&gt; @interface SimpleCar : NSObject { NSString* make; NSString* model; NSNumber*...
0
1,783
Generate table row dynamically on AJAX success
<p>What I'd like to do is this : when the user clicks on send, I want the data to be displayed in a <code>&lt;tr/&gt;</code> (with each field nested in its own <code>&lt;td/&gt;</code>).</p> <p>I already wrote a script that actually does this, but the system is not dynamic yet.</p> <p>HTML :</p> <pre><code>&lt;form ...
0
1,115
How to use RadioGroup in ListView custom adapter?
<p>I want to show a single select option in my list. I am using <code>RadioButton</code> in my <code>listView</code> row. I know that <code>RadioGroup</code> is used for single selection.</p> <p>But problem is that I have added the <code>RadioButton</code> in my <code>ListRowView</code>. Now I want to add all my list i...
0
2,318
undefined method `environment' for nil:NilClass when importing Bootstrap
<p>I've been trying to import Bootstrap into my rails app and I'm not quite sure what's going wrong. I've had it working before, but I did a 'bundle update' and destroyed some dependencies (I think). I've seemingly fixed everything... except for Bootstrap.</p> <p>I've tried removing and re-entering the 'bootstrap-sass...
0
3,299
Binary Bomb Phase 5 - lookup table translation -> string compare
<p>I have been working on a Binary Bomb for school, and I am absolutely lost in Phase 5. The object of the assignment is to dissemble the code and find a string, which I have found to be "flyers" and reverse engineer it to have the same numerical value as "flyers" does. However, I have spent the last 3-4 hours trying t...
0
1,362
0xC000041D: An unhandled exception was encountered during a user callback
<p>I am encountering the error '0xC000041D: An unhandled exception was encountered during a user callback', when I run the OpenGL code. Th debugger indicates that the error occurs here:</p> <p><a href="https://i.stack.imgur.com/oWRlz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oWRlz.png" alt="De...
0
1,145
jQuery click action only fires once, per page refresh
<p>I have written a jQuery code in the admin section of my site that turns the site offline without page refresh. It works great, but for one thing:</p> <blockquote> <p>When I click on TURN ON the ajax call is made accurately and all the classes are changed and the text is changed the TURN OFF. However, when I click...
0
2,108
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6: run (pre-dist) on project hadoop-project-dist:
<p>I need help as i am trying to figure this out from last 2-3 days..</p> <p>I am setting up <strong>Hadoop on Windows-7 (64-bit) machine</strong>. This is to try out the integration of R with Hadoop.</p> <p>I followed instructions for Hadoop installation as given in the URL - <a href="http://www.srccodes.com/p/artic...
0
3,275
Spring Boot templates not resolved
<p>I'm trying to build a standalone web application using Spring Boot and Thymeleaf. The application runs fine from IntelliJ IDEA, but I'm not able to run the jar on its own. Apparently the templates are not included.</p> <p>My project is structured as follows:</p> <pre><code>├── src │   └── main │   ├── java │  ...
0
1,062
Error java.lang.NullPointerException JSF
<p>I'm using jsf/primefaces, I'm getting this npe, I'm invoking a method "registrar" from a form but appears that I'm doing it wrong. I have the class ProfesorBean.java and the view edicion.xhtml</p> <pre><code>**Class: ProfesorBean** ............................................... @ManagedBean(name="profesorBean") @...
0
2,686
ZF2: Module could not be initialized
<p>I'm trying to get started with ZF2 and I have a problem when I writting code from tutorial (on ZF website). My code: </p> <pre><code>Module.php: &lt;?php namespace About; class About { public function getAutoloaderConfig() { return array( 'Zend\Loader\ClassMapAutoloader' =&gt; array(...
0
1,196
Python soap using soaplib (server) and suds (client)
<p>This question is related to: <a href="https://stackoverflow.com/questions/1751027/python-soap-server-client">Python SOAP server / client</a></p> <p>In the case of soap with python, there are recommendation to use soaplib (<a href="http://wiki.github.com/jkp/soaplib" rel="nofollow noreferrer">http://wiki.github.com/...
0
1,589