title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
jQuery positioning: position({ my: "", at: "", OF: VARIABLE }) | <p>Heyey, I have this function:</p>
<pre><code>GravityCircle.position = function(idcontainer){
var parent = $('.'+idcontainer+' .border');
$('.'+idcontainer+' .info').position({
my: 'center center',
at: 'center center',
... | 2 | 1,563 |
Horizontal scroll bar not working even when I am setting a fixed width to my div parent? | <p>as the question mention, my horizontal scrollbar is not working, I am working on a react app, I am trying to build a small TableData component, here is my rendered jsx code : </p>
<pre><code><table>
<div className="co-table">
<div className="co-table__long">
... | 2 | 3,350 |
How to use Core data in widget today extension? | <p>I'd like to use core data in today extension.
I tried some ways down below. </p>
<ol>
<li><p>create app group and target to both app and today extension!</p></li>
<li><p>create CoreDataStack class following <a href="https://swifting.io/blog/2016/09/25/25-core-data-in-ios10-nspersistentcontainer/" rel="nofollow nor... | 2 | 2,138 |
java hibernate database connection | <p>I am new to Hibernate. I am trying to make a simple database driven application using Hibernate. But I am stuck. I can't even run a simple database query. I am getting this error:</p>
<p><img src="https://i.stack.imgur.com/YbJxA.png" alt="log file generated while running the program">
<img src="https://i.stack.imgu... | 2 | 1,829 |
Dynamic template wpf | <p>i have made a template that look like this :</p>
<pre><code><ControlTemplate x:Key="onoffValue" TargetType="{x:Type Control}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="20" Margin="0,5,0,0">
<RadioButton Content="On" Height="20" Name="On_rad... | 2 | 1,183 |
Android Facebook Post On Wall Without Dialog Warnings | <p>I followed the method to post facebook status updates without their dialog box from this answer on SO: <a href="https://stackoverflow.com/a/7528388/450534">https://stackoverflow.com/a/7528388/450534</a></p>
<p>I can post status updates from the apps activity, but it is still generating warnings.</p>
<p>Its a might... | 2 | 6,828 |
Rendering a canvas object received from props | <p>Good day!</p>
<p>I am new to React and html2canvas. I am making an app which will take "screenshots" of my DOM using html2canvas then store it to an array of screenshots which will then be also rendered on the screen.</p>
<p>I am storing each <code><canvas></code> object received from the html2canvas promise... | 2 | 1,348 |
How to listen to multiple topics by multiple StreamListener Spring Cloud Stream and Kafka stream | <p>I want to listen to two Kafka topics like in the code below and there are two source events that need to be handled and transform to another event.</p>
<p>So I want to listen these two event in one <code>EnableBinding</code></p>
<pre><code> @EnableBinding(PartnerOrderCancelledEventImporter.Targets.class)
pu... | 2 | 2,133 |
Multiple Q.all inside function? | <p>I want to send a list of new books to a user. So far the below code works fine. The problem is that I don't want to send a book multiple times, so I want to filter them. </p>
<p>Current code works fine:</p>
<pre><code>function checkActiveBooks(books) {
var queue = _(books).map(function(book) {
var deferred =... | 2 | 1,512 |
Why is no TransactionRequiredException thrown when @Transactional is missing? | <p>I've got a Spring/JPA configuration with Hibernate as the persistence provider. However I don't understand why there's no TransactionRequiredException thrown when I call save() on the following DAO code without an open transaction (there's no @Transactional at the DAO/service):</p>
<pre><code>@Repository
public cla... | 2 | 2,043 |
OpenCV FileStorage - Error: Parsing error (icvYMLParseValue) Missing , between the elements | <p>I am having a weird problem while writing and reading a .yml file with FileStorage in OpenCV.</p>
<p>When I write everything goes fine. I do this with the following routine:</p>
<pre><code>if (saveLoad == MODEL::SAVE) {
cv::FileStorage fs(detections_filename, cv::FileStorage::WRITE);
fs &l... | 2 | 4,503 |
Fetching array of NSManagedObjects by objectID returns empty array | <p>I'm trying to perform a fetch to retrieve managed objects from the context using an array of object IDs I gathered from a separate context. However, the fetch comes back with an empty array.</p>
<p>From the "Retrieving Specific Objects" section of the "Core Data Programming Guide"
<a href="https://developer.apple.c... | 2 | 2,899 |
android - onActivityResult() is not invoked when i used it in the tabs (zxing scanner) | <p>I used <strong>zxing scanner</strong> for scanning the barcodes and QR codes because it is open source. It is working fine except in tabs means I used the same code in the tab group but here it's not working. The problem is onActivityResult() is not invoked. How can we solve this issue.</p>
<pre><code>code
</code><... | 2 | 1,045 |
Visual C# BackgroundWorker Object is currently in use elsewhere | <p>Hello and thanks for reading my thread! I would like to seek advice for my code because after a lot of searching I couldn't find anything to solve this particular problem. I've googled and searched on stackoverflow and all the solutions somehow didn't work (or I didn't know how to implement them). Here is my code:</... | 2 | 1,694 |
KendoGrid inside bootstrap | <p>I'm new to <code>bootstrap</code> and all our UI is mostly with <code>KendoGrid's</code>. </p>
<p>We wanted to embed KendoGrid inside <code>Modal Window</code> of bootstrap and tried below code which is posted in <a href="https://stackoverflow.com/questions/21714419/kendo-grid-in-bootstrap-2-or-3-modal-ie-filters-d... | 2 | 2,541 |
Undefined while sending post nodejs | <p>I try to send a form with data in my nodejs app but I get "undefined" I am not sure does it matter but in console first I see "undefined", then POST. I have tried some "fixes" from the Internet like adding "type:'application/*+json', inflate: false" to app.use(bodyParser.json...) but nothing worked for me... </p>
<... | 2 | 1,193 |
scaling and rotating imageview | <p>I'm preparing somecompass activity.
I have my rose of winds .png and I want to scale it on activity start and rotate after orientation changed.</p>
<p>The problem is that when i scale my image (onCreate only), after first (and only first) use of rotate method my view is resized one more time, and I have no idea wh... | 2 | 1,058 |
Kmalloc doesn't work correctly | <p>I'm having some problems with this system call and probably with kmalloc.</p>
<p>Well , basically I'm building a system call , and this system call and the kernel are compiled without a problem.
But when I call my system call , the shell shows a lot of message and then the computer crash.</p>
<p>I think the proble... | 2 | 1,385 |
Very confused about inserting string into linked list | <p>I've been working on this project for over a day and I'm really confused. I pray that someone help figure this out. I'm having trouble with the function <code>insertItemList</code>. I don't know how to get the <code>String</code> in the test file into the <code>linked list</code>. This is a homework. The project is ... | 2 | 1,124 |
Automatic launch of a program as root on debian 10 boot | <p>On a PC with debian 10 I have developed a C program (my own snmp agent) that can be found in:</p>
<pre><code>/home/myuser/myapp/myprogram
</code></pre>
<p>And I need it to start automatically every time the PC boots, running as root.</p>
<p>To do this I follow the following steps:</p>
<ol>
<li>I create the file &quo... | 2 | 1,053 |
Using Postgis extension installed in different Postgres Schema | <p>I'm having a go at setting up my first Postgres database, but am getting quite confused about why I'm having issues with enabling Postgis in one schema and then using it in another.</p>
<p>I'm using Google Cloud SQL with Postgres v12.
I'm connecting via the Cloud SQL proxy, and have connected to the server via both ... | 2 | 4,414 |
Iterating over array/JSON in Typescript to build Angular 2 template menu with submenus | <p><strong><em>update:</strong> Plunker session added on request. <a href="https://plnkr.co/edit/0XjAoxzjIoSUelFcfmrx" rel="nofollow">https://plnkr.co/edit/0XjAoxzjIoSUelFcfmrx</a></em> <em>(no experience so will likely need help getting it to run on Plunker)</em></p>
<p>Building up a menu system using Node, Angula... | 2 | 1,256 |
onContextItemSelected is not being called when in Dialog | <p>I have a dialog in my app and when the button in dialog was click, a context menu will show. But my problem is the onContextItemSelected is not being called. My code is working in other button outside the dialog.</p>
<p>here is my codes:</p>
<pre><code>dialog = new Dialog(SuperPizzaActivity.this, R.style.DialogSli... | 2 | 1,218 |
CreateFileMapping returns ERROR_INVALID_HANDLE | <p>I am trying to use CreateFileMapping for the first time and it is giving me this error when I use GetLastError():</p>
<pre><code>ERROR_INVALID_HANDLE: The handle is invalid.
</code></pre>
<p>Here is my code:</p>
<pre><code> // create the name of our file-mapping object
nTry++; // Ensures a unique string is... | 2 | 1,277 |
Tensorflow v1.12 - ImportError: cannot import name 'cloud' | <p>I am trying to run a tensorflow lite model on a arm based SBC device close to raspberryPi 3b+. I have compiled the tensorflow library from source targeted towards armv7l architecture using this repo <code>https://github.com/lhelontra/tensorflow-on-arm</code> keeping the GoogleCloud support (GC) flag on during the bu... | 2 | 1,590 |
Connect to EPSON ePOS t88V printer from .NET UWP | <p>I am trying to connect to an EPSON ePOS t88V printer from my .NET UWP application, using the drivers and SDK found here: <a href="https://download.epson-biz.com/modules/pos/index.php?page=prod&pcat=3&pid=36" rel="nofollow noreferrer">https://download.epson-biz.com/modules/pos/index.php?page=prod&pcat=3&a... | 2 | 1,305 |
Recycler view issue in Umano AndroidSlidingPanel | <p>i am using this <a href="https://github.com/umano/AndroidSlidingUpPanel" rel="nofollow noreferrer">AndroidSlidingUpPanel</a> . </p>
<p>My main content is Map and second one which slide up panel is Recyclerview .
<strong>But Issue is it not coming on panel size correctly.</strong> </p>
<blockquote>
<p><strong>On... | 2 | 3,056 |
google sheet to laravel | <p>I have built a CRM that manage leads </p>
<p>I have a table called leads, and in the controller in <code>index()</code> method <br>, I made a request to google API to get the data from my sheet table.</p>
<p>now what's is happen, that in every page refresh i use <code>updateOrCreate()</code> <br> to update the tab... | 2 | 2,033 |
How to use Vaadin FLOW server-push with Spring Boot | <p>When I use the @Push annotation on a view I get the following exception (JDK 16, Vaadin 19.0.7, Spring boot 2.4.7):</p>
<pre><code>org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded ... | 2 | 10,147 |
Metadata of the current played song on android | <p>Hi stackers im working on a project and i'm having some troubles on getting the metadata of the current played song. The idea is to get the next items:
title, album, artist, genre, date, year. I've been testing the MetadataRetriever method that I've found on several examples here on StackOverflow, also the intent.ge... | 2 | 2,784 |
Initializing Tiller for Helm with Kubeadm - Kubernetes | <p>I'm using Kubeadm to create a cluster of 3 nodes</p>
<ul>
<li>One Master</li>
<li>Two Workers</li>
</ul>
<p>I'm using weave as the network pod</p>
<p>The status of my cluster is this:</p>
<pre><code>NAME STATUS ROLES AGE VERSION
darthvader Ready <none> 56m v1.12.3
jarjar Ready... | 2 | 1,390 |
Adding a time.sleep() method for Google Translate API in python | <p>I'm setting up a <code>Django</code> Views that requests products data from an API, parse them with <code>BeautifulSoup</code>, apply the <code>googletrans</code> module and save the response into my Postgresql database. I have a <code>429</code> HTTP error when I run my script because I send to many requests at onc... | 2 | 1,607 |
Dropdown menu open under div | <p>I need help with this site: <a href="http://www.jsdkqwoj.eu/" rel="nofollow noreferrer">http://www.jsdkqwoj.eu/</a></p>
<p>In mobile drop down menu goes under the div. Tried z-index:9999 for the header / topnav elements and z-index:-9999 to div. Not help. Also tried this <a href="https://stackoverflow.com/questions... | 2 | 1,393 |
How to use CryptoApi in order to encrypt more then one block size of buffer with AES-128 | <p>I need to encrypt data whose length longer than the block size(128 bits) using windows CryptoApi and aes128 CBC mode.</p>
<p>Iv'e tried multiple ways in order to achive this goal, none worked correctly.
I know the theory behind chaining and I theoretically know what I have to do.</p>
<ol>
<li>split the buffer into... | 2 | 1,629 |
How to expand Jquery Slider Panel programatically? | <p>I have JQuery Silder panel for Login | Register option. for referencing i have include demo of this slider <a href="http://web-kreation.com/tutorials/nice-clean-sliding-login-panel-built-with-jquery/" rel="nofollow">Jquery Login | Register Slider Panel</a></p>
<p>the actually problem was how to expand programatical... | 2 | 12,519 |
OnSwipe method not working in RecyclerView | <p>I'm working on an app for playing audio files. Created a tab layout with 2 tabs. Used fragment in both of them with <code>RecyclerView</code> being used in both of them. The fragment named <code>LibraryFragment</code> has this <code>RecycleView</code> whose items when Swipped must pass on to the <code>HomeFragment</... | 2 | 1,279 |
AFNetwoking with swift 3.0 & xcode 8 : POST Request & GET Request | <p>I am trying to parse data using AFNetworking & swift 3.0 and xcode 8.0 but i am getting error like below.below code works fine for swift 2.3 but not working in 3.0</p>
<p><strong>Or if is there anyone know about AFNetworking & swift 3.0 using xcode 8.0 for POST & GET request please tell me. with simple ... | 2 | 1,248 |
How to make a FIFO Stream (Blocking Queue) thread-safe in Scala (possible deadlock)? | <p>Building on the answer provided at <a href="https://stackoverflow.com/questions/7553270/is-there-a-fifo-stream-in-scala">Is there a FIFO stream in Scala?</a>, I would like to know how to use the FIFOStream (renamed to QueueStream below) in practice, and concurrently. Since I'm rather new to Scala and Rx, I'm stickin... | 2 | 1,652 |
Problem with LazyInitializationException | <p>I'm making an application using Hibernate 3.6.0, and I got a LazyInitializationException. I didn't manage to resolve it, so I'm here, asking for your help.</p>
<p>Here is the StackTrace:</p>
<pre><code>Exception in thread "AWT-EventQueue-0" org.hibernate.LazyInitializationException: failed to lazily initialize a c... | 2 | 1,216 |
Finding the 3 top selling products in each category | <p>I am trying to find the 3 top selling products in each category. But the SQL I tried does not yield the correct results. Here's the things I did:</p>
<p><strong>Products Table:</strong></p>
<pre><code>CREATE TABLE [dbo].[Products](
[id] [int] IDENTITY(1,1) NOT NULL,
[name] [nvarchar](100) NOT NULL,
[cate... | 2 | 1,745 |
Reproducible results when creating random matrices across parallel calls in MATLAB | <p>I want to create a number of random matrices, but they are really big to fit in memory, so I'd like to find a way to reproduce them across computers, so that when I need to send them to another machine, I'd just need to send the code.
Here is how I want to do it:</p>
<pre><code>num_of_iters = 10;
K = 200;
for iter... | 2 | 3,852 |
how to generate javadoc for multiple modules | <p>I'm trying to create javadoc (jdk11) for multiple modules in a single document.</p>
<p>I tried to do it like this.</p>
<p>The file/directory structure is:</p>
<pre><code>workspace
doc
maths
src
main
java
net.virtualpsyclab.maths
... | 2 | 1,225 |
Using Maven and Apache CXF code-gen with different endpoints in testing and production | <p>I have a Java web project that consumes a web service, using Apache CXF to generate the underlying code, based on the WSDL published by the service.</p>
<p>I have a test version of the service for development and a production version.
The endpoints of the 2 services are at different URLs and whilst their public int... | 2 | 1,441 |
h5py, sporadic writing errors | <p>I have some float numbers to be stored in a big (500K x 500K) matrix. I am storing them in chunks, by using arrays of variable sizes (in accordance to some specific conditions).</p>
<p>I have a parallellised code (Python3.3 and h5py) which produces the arrays and put them in a shared queue, and one dedicated proces... | 2 | 1,250 |
Passing intent extras from a google cloud message receiver to activity is null | <p>I have a broadcast receiver that listens for cloud messages, I can display the notification fine but when the user clicks the notification I want to route them to the proper activity with intent extras. The extras are always null. </p>
<p>I can verify that the intent passed to pending intent does have extras while ... | 2 | 1,477 |
C++ - How to specialise a custom type for std::max without overloading comparison operators? | <p>I'm looking for advice on how to implement a specialised "max" (i.e. maximum) function for a custom data type that also works with scalar types like <code>float</code>. The data type I'm writing is a wrapper for a vector (eventually a SIMD vector of four floats, not a <code>std::vector</code>) and I want to provide ... | 2 | 1,032 |
Error with maven-jaxb2-plugin | <p>Im simply trying to duplicate <a href="https://spring.io/guides/gs/consuming-web-service/" rel="nofollow noreferrer">this tutorial</a> from Spring's website with my own wsdl files. FYI I did remove the parent declaration which required me to add versions to the dependencies. Other then that and filling in wsdl loc... | 2 | 7,671 |
Android System Overlay window not working | <p>I am building and Android app and trying to learn all I can in the process. As a test I wanted to add a "chat heads" style overlay to the system. So, I looked around and found some good tutorials, and some really good answers on here, but it is still not working. In my android manifest I have the uses-permission dec... | 2 | 1,259 |
Jni java launcher work in c but not in c++ | <p>I have to make a program that launches a Java application in C++.</p>
<p>The first example in C works fine, it launches the jar perfectly in C. But when I run the same process in C++ I get an exception.</p>
<p>Here is the C code:</p>
<pre><code>SetCurrentDirectoryA("..\\myJavaApp\\");
JavaVMInitArgs args;
int opt... | 2 | 1,183 |
Can not update Column bound by an Image field in gridview asp.net | <p>I have three columns in my Grid view named TweetText, TweetImageUrl and an Column of ImageFied
whose DataImageUrl Field is TweetImageURl. My problem is that When i use the Edit,update feature of grid, I cant edit/update the TweetImageUrl but I can Update TweetText. But when I remove The ImageField Column then I can ... | 2 | 2,296 |
Fine Uploader working in every browser except IE | <p>I'll post my Javascript below. It works perfectly for all browsers but not at all in IE 8 or IE 9. No errors, it just doesn't work. I guess the good news is that I can tell exactly where it breaks (see below) but I don't know why or how to fix it.</p>
<p>My HTML is simple. It's just a test page for a much larger p... | 2 | 1,130 |
coded ui test project, obtain value of asp label | <p>Created a simple calculator app in webforms.
User enters a number in a text field <code>MainContent_numberTb</code> and clicks on results button. </p>
<p>Added a new 'coded UI Test Project' to my solution. Have tested the UI by adding '5', This all works fine. Would now like to compare the actual result against the... | 2 | 1,270 |
Mutation error handling in Apollo Client 2.1 | <p>The new Apollo Client 2.1 uses the render props patters instead of HoC pattern, so it's changed the way Queries and Mutations are handled a little. </p>
<p>I have started using it, but am unsure of a few basic things. One is error handling. I have a custom "AuthResponse" component which I want to pass in either the... | 2 | 1,488 |
How to resolve Azure Active Directory IDX10500: Signature validation failure | <p>We are using Azure B2C Active Directory and attempting to integrate with C# WebApi with OWIN security middleware. I have a native app which allows me to acquire a token successfully from the AD which I then place in a Bearer header and use it in a subsequent webapi call.</p>
<p>I'm running the service locally on my... | 2 | 1,350 |
Get all column values from paginated jQuery DataTable with serverSide set to true | <p>I am trying to implement the <code>footerCallback</code> to find the sum of all elements in one of the columns of my paginated data table. When I try to calculate the total amount in all the pages, only the sum of rows in the current page is being calculated. My code for footerCallback is as follows: </p>
<pre><cod... | 2 | 1,276 |
Laravel datatable invalid JSON response | <p>Everything work fine on code below to fetch user logs:</p>
<p>js:</p>
<pre><code><script>
$(document).ready(function () {
var table =$('#systemLogs').DataTable({
responsive: true,
processing: true,
serverSide: true,
"language": {
"url": "/datatables/media/plug-... | 2 | 1,111 |
jQuery toggling the class with .removeClass() and .addClass() not working properly | <p>I have implemented toggling in my way as described code below.
<strong>HTML:</strong></p>
<pre><code><table>
<thead>
<tr>
<th class="selectCol"><div class="unCheckedCheckBoxAll"></div></th>
<th class="nosCol">Products</th>
... | 2 | 1,121 |
jQuery Ajax timing loop issue with setInterval / onAnimationStopped using flipCounter | <p>I have the code as per below. This retrieves some data to use for the counter including a variable for the reload interval - this is NOT used below in order to rule out an issue with the data retrieval, I have hard coded a 10 second interval instead but the problem remains.</p>
<p>All works fine for the intial page... | 2 | 1,591 |
Spring JSON Serializer and Deserializer is not getting called | <p>I have written custom serializer and deserializer for com.google.common.collect.Table class. But it is not getting called while persisting that object in MongoDB. I am using Spring 4, Spring-MongoDB 1.9 and Jackson 2.8.4. Below are the class and configuration. Could you please let me know what's wrong with this. I w... | 2 | 1,634 |
Delphi 2007 isn't generating the XML I want to send to my Java-WS web service | <p>I have a Java web service to which I've linked from a Delphi 2007 app using the WSDL Importer. Setting it up has been a <a href="https://stackoverflow.com/questions/462171/delphi-2007-not-consuming-jax-ws-web-service-properly">rocky road</a> but I'm almost there!</p>
<p>I now have the situation where my arrays aren... | 2 | 2,121 |
Clearing a Table Layout dynamically | <p>I am currently working on an android app where I select a customer in an activity, it retrieves all records pertaining to that customer and displays them in a table layout in a new activity.
The problem arises when I go back to the previous activity and select a different customer, the new records are added behind t... | 2 | 3,726 |
IllegalArgumentException: The servlets named [program] and [com.test.Servlet] are both mapped to the url-pattern [/Servlet] which is not permitted | <p>I have just started working on <code>Servlets</code>. I have created a dynamic web project, and I was trying to copy the <code>servlet-api.jar</code> into lib. It didnt work out. So, I copied the jar in the workspace manually by going into the location in drive and then configured to the build path. When I ran the <... | 2 | 1,782 |
Consistenlty Centering CALayer Sublayer over a UIImageView | <ul>
<li>Xcode 7.2</li>
<li>Swift 2</li>
</ul>
<p>My issue is that I cannot consistently center my CALayer.</p>
<p>I have a related SO question <a href="https://stackoverflow.com/questions/35400789/add-a-calayer-sublayer-centered-over-uiimageview">here</a>. The answer to this question was forward progress and brings ... | 2 | 2,226 |
Datatables select first row after first load and reload | <p>I'm using <a href="https://datatables.net/" rel="nofollow noreferrer">datatables</a> and I have to select the first row of table.
The problem is select the first row when the table are reload (the table show the rooms of a building, so user can change the building).
This is my code:</p>
<pre><code>function showRoom... | 2 | 3,590 |
mediaPlayer in Android 5.0 Lollipop, I can not play, long sounds coming from a url. I had never had problems until the arrival of Android 5.0 | <pre><code>public void onClick(View v) {
toSound.setVisibility(View.INVISIBLE);
toPro.setVisibility(View.VISIBLE);
toSound1 = toSound;
toPro1 = toPro;
if(isPLAYING){
mp.stop();
mp.reset();
}
try{
isPLAYING = true;
mp.setDataSource("http://..."
... | 2 | 1,048 |
Log4j2 not rolling over file, instead overriding the same file after SizeBasedTriggeringPolicy | <p>I have a following JSON config, which does not roll over after it reaches the max-size limit, rather overrides it.</p>
<pre><code>{
"configuration": {
"name": "cool_log",
"appenders": { "RollingFile": { "name": "rollingFile",
"fileName": "/var/log/app_test.log",
"filePattern": "/var/log/%d... | 2 | 1,458 |
Cordova Firebase Plugin - Not showing notifications in notification bar on iOS | <p>I'm using this plugin with <strong>cordova: cordova-plugin-firebase 0.1.18 "Google Firebase Plugin"</strong> its working fine on android,also on ios i got token using method</p>
<pre><code>window.FirebasePlugin.getToken
</code></pre>
<p>but notification not coming in notification bar weather its in foreground or b... | 2 | 1,717 |
react native facebook login using expo client: The App_id in the input_token did not match the Viewing App | <p>I am using expo-facebook to integrate a Facebook login using expo and firebase. Everything looks to be working and I log into Facebook but get an OAuthException once I authenticate using Facebook as follows:</p>
<pre><code>Unsuccessful debug_token response from Facebook: {"error":{"message":"... | 2 | 1,246 |
Error with updating table using java hibernate as "could not execute statement" error | <p>Using Java and hibernate, I was to change the Database definition after creation, just by making changes to my existing Entity Class. Will the Changes be reflected in the Database??? Is it Possible??? I tried and Failed. I have tried <code><property name="hibernate.hbm2ddl.auto">update</property></code> ... | 2 | 6,504 |
Maven assembly : including a file at the parent level of baseDirectory | <p>I am using maven assembly for a multi module project which looks like this</p>
<pre><code> PARENT\pom.xml
--warModule
-- pom.xml
--/target/module-1.war
--configModule
--pom.xml
--target/**module-2.jar**
--distrib
--pom.xml
--src/assembly/assemb... | 2 | 1,804 |
PAYPAL - curl request | <p><p>Hi,
<p>After finally and successfully have gotten an authorization token from <a href="https://api.sandbox.paypal.com/v1/oauth2/token" rel="nofollow">https://api.sandbox.paypal.com/v1/oauth2/token</a>, now I need to construct a payment object.</p>
<p>Paypal suggests the following code:</p>
<pre><code>curl -v ht... | 2 | 1,036 |
Changing Vue Data Object | <p>UPDATED CODE</p>
<pre><code><template>
<swiper-slide v-for="(photon,key) in $store.state.photons" :key='key'>
<radial-gauge :value='photon.tempF'
:options="photon.GaugeOptions.optionsLastTempF"></radial-gauge>
</swiper-slide>
</template>
<... | 2 | 1,209 |
Grunt-browserify+mapify+coffeescript = module not found with relative path | <p>I try to get grunt-browserfy working with relative path for coffeescript but I always have an error message when I try to build my sources : </p>
<pre><code>>> Error: module "src/app/utils/includeMixin" not found from "/[ABSOLUTE-PATH-TO-MY-PROJECT]/project/src/app/app-audit.coffee"
</code></pre>
<p>I have m... | 2 | 1,163 |
Kernel panics : trying to write / read on tiny tty driver | <p>I'm a beginner to the Linux programming and trying my hands on some device driver examples while practising.
The below code (a trimmed down version of <code>tiny_tty.c</code>) loads perfectly using insmod and I'm able to see it in <code>/proc/tty/drivers</code> , <code>/proc/modules</code> and device nodes are getti... | 2 | 5,054 |
How to preselect a radio button inside of a Struts iterator based on the iterator value? | <p>I have the following lines of code inside of a Struts2 <code><s:iterator></code> tag.</p>
<pre class="lang-xml prettyprint-override"><code><s:radio name="indicatorFlag" list = "seqNoMap" value="indicatorFlag" /></div>
<div><s:property value = "indicatorFlag"/></div>
</code></p... | 2 | 1,085 |
Downloading a file with transfer-encoding header on android | <p>I have a strange problem that I would really some insight on. I have some code to download various files. Some files return the "transfer-encoding" header with a value of "chunked" and I'm pretty sure this is what's causing me problems.</p>
<p>Here's where it gets really strange. When downloading on my Motorolla Dr... | 2 | 2,077 |
Invalid memory address using gorutine (golang) | <p>I am working with a code that works only if I make it run as a blocking routine... but if I use <code>go executeTheFunction</code> I always get <code>panic: runtime error: invalid memory address or nil pointer dereference</code>. To summarize the code a little would be something like that.</p>
<pre><code>func (c Ap... | 2 | 1,751 |
Ehcache hangs in test | <p>I am in the process of rewriting a bottle neck in the code of the project I am on, and in doing so I am creating a top level item that contains a self populating Ehcache. I am attempting to write a test to make sure that the basic call chain is established, but when the test executes it hands when retrieving the ite... | 2 | 1,106 |
setText is not working after called | <p>I tried everything on stackoverflow, but still can't find a solution.
I tried to debug by setting breakpoint, the scoreView variable's mText is being updated, it keep showing the default string <code>startingScore</code>, but the UI is not updated, i tried to call the setText using <code>onUiThread</code> function ... | 2 | 1,107 |
Sonar with SQL Server 2008 | <p>I am trying to setup Sonar 3.6 and/or 3.6.2 with SQL Server 2008. For testing in preparation of conversion from MySql to SQL Server. I am getting no errors when running:</p>
<pre><code>sonar.sh console
</code></pre>
<p>Console Output:</p>
<pre><code>Running sonar...
wrapper | --> Wrapper Started as Console
wr... | 2 | 1,527 |
Convert one column by regex into two columns on Oracle 11.1g | <p>I have this string in column (Oracle 11.1g) (actually one value but formatted to make things clearer):</p>
<pre><code>#(#GLCTPAbstractSchedule
#(99 37800 nil)
#(nil nil nil)
#(nil nil nil)
#(10 45000 nil)
#(99 45000 nil)
#(nil nil nil)
#(nil nil nil)
#(99 55800 nil)
#(10... | 2 | 1,944 |
Objects follow responsive background-image | <p>I'm trying to make a banner image which will include "points of interests" that you can hover over to see more. These points need to have a fixed position relative to the background-image. This is of couse easy if the background-image has a static size, but this need to be responsive with the effect of background-si... | 2 | 1,151 |
Unit testing Services in Spring by Mocking DAO | <p>I am using Mockito to mock my DAOS and test my Service Layer. This is an example of what I've got:</p>
<pre><code>@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:/spring/programacion-service-test.xml" })
public class ProgramacionServiceUnitTest {
@Autowired
private Pr... | 2 | 3,367 |
Ajax request Select2 - Resultlist always empty | <p>I tried using the Select 2 plugin with ajax as data source, but I always receive "No results found" in the result list, after typing some letters. I expected that it would list all found items (Field: LastName) from my Ajax response in my search results. I attached the ajax response at the end of this post.</p>
<p>... | 2 | 1,475 |
declaration can be found for element 'context:property-placeholder'. Spring 4 | <p>I browsed around 30 webpages and 50 articles about this and it's still not working.<br><br>
Here is my code its really simple I'm only a Spring beginner.</p>
<p><strong>App.java</strong></p>
<pre><code>package com.procus.spring.simple.simple;
import org.springframework.context.ApplicationContext;
import org.sprin... | 2 | 1,747 |
Scrapy - Does urlparse.urljoin behave in the same way as str.join? | <p>I am trying to use <code>urlparse.urljoin</code> within a Scrapy spider to compile a list of urls to scrape. Currently, my spider is returning nothing, but not throwing any errors. So I am trying to check that I am compiling the urls corectly. </p>
<p>My attempt was to test this in idle using <code>str.join</code>,... | 2 | 1,635 |
JMeter : Constant Throughput Timer not working as expected | <p>I have a single Thread Group defined with 200 threads. I have a HTTP Request defined within the thread group and a Constant throughput timer defined within the HTTP Request. The Target throughput (samples/min) defined is 5400 samples/min (Since I want to achieve a throughput of 90 requests/second). </p>
<p>I am run... | 2 | 1,335 |
SAML-xmlsec1 verification | <p>I signed my saml response xml with xmlsec command:</p>
<pre><code>xmlsec1 --sign --privkey-pem keys/privkey.pem,keys/cert.pem --id-attr:ID "urn:oasis:names:tc:SAML:2.0:protocol:Assertion" --output signed_res.xml saml_response.xml
</code></pre>
<p>Here is my XML:</p>
<pre><code><?xml version="1.0"?>
<saml... | 2 | 3,381 |
How to read from Windows Named Pipe with timeout? | <p>I'm trying to port something that is very easy in Unix to Windows: reading from a named pipe (fifo) with timeout when nothing happened.
I'm trying to do it in a simple way (using <code>PeekNamedPipe</code>), without using overlapped IO. Is this possible?</p>
<p>Below is a complete example. It doesn't work for the m... | 2 | 3,319 |
tensorflow.python.framework.errors.InvalidArgumentError: WhereOp: Race condition between counting the number of true elements and writing them | <p>I am running <code>distributed tensorflow</code> version of <code>deep mnist</code> <a href="https://www.tensorflow.org/versions/r0.10/tutorials/mnist/pros/index.html" rel="nofollow">(link)</a> (<code>asynchronous</code> data parallelism on different machines with gpu). The batch_size I have taken for one epoch is 1... | 2 | 2,980 |
QtQuick 2 - Custom element, how to resize root object ot it's content? | <p>Is there a way to resize custom element to fit it's content? I wrote some button example on QML, but I need that to resize with text length each time scene played if size not defined in main.qml. Sorry, but can't find something about that over network, only reverse question on how to fit content to parent. There is ... | 2 | 1,395 |
QListWidgetItem holding data from list to list | <p>I am trying to set QlistWidgetItem to have an object stored with in. I am using the setData function to achive this. I can get the data to be stored in an item while it is in list A. However I am trying to move the QlistWidgetItem to list B and when doing so it loses the data from when it was in list A. I have tr... | 2 | 2,042 |
Error creating EKS node-group with terraform | <p>While I am trying to deploy EKS via Terraform, I am facing an error with node-group creation.
I am getting the following error:</p>
<pre><code>Error: error waiting for EKS Node Group (Self-Hosted-Runner:Self-Hosted-Runner-default-node-group) to create:
unexpected state 'CREATE_FAILED', wanted target 'ACTIVE'.
last e... | 2 | 4,237 |
SQLiteDatabase android IllegalStateException | <p>i have a problem when i'm using the Sqlite of android. The log show me that :</p>
<pre><code>SQLiteConnectionPool(1730): **The connection pool for /data/data/dev.xx.xx/databases/XX has been closed but there are still 1 connections in use. They will be closed as they are released back to the pool.**
08-02 14:15:41.... | 2 | 1,165 |
What's the best practice for running multiple tasks in iOS blocks and queues? | <p>I've started to use blocks and queues heavily and they have been great. I use much less code and it is much easier to build and maintain. But I wonder about performance. In one case I am displaying a screen full of thumbnail images from a Flickr photo set. The code iterates over all items and starts a unique downloa... | 2 | 1,039 |
How to start and stop jboss from apache ant build.xml file | <p>I have make
jar
war
EAR</p>
<p>using ant and Hudson and store all files at some temp folder </p>
<p>now I want to copy all war and ear files to jboss jboss/default/deploy folder using Apache ANT</p>
<p>How can I do this??</p>
<p>Following is my master build file
which call all other build.xml files and make jar... | 2 | 1,923 |
Memory reclamation with crossbeam::epoch | <p>I've encountered an issue with memory reclamation in <a href="https://docs.rs/crossbeam/0.3.0/crossbeam/" rel="nofollow noreferrer"><code>crossbeam</code></a>. Say you're implementing a simple thread-safe lock-free container that holds a single value. Any thread can obtain a clone of the stored value, and the value ... | 2 | 1,706 |
Compressing Video using HEVC Codec with swift 4 | <p>Apple is using a new video codec hevc and i am trying to compress videos with my application using the hevc codec. For some reason the app just crashes and returns the file size as 0 mb. It works when i compress it using H264, however when I use H265(HEVC), the app just crashes. This is my code. </p>
<p>I am assumi... | 2 | 2,043 |
PNaCl - compilation error "Only Win32 target supported" | <p>I'm developing Portable Native Client application which uses some of the standard C++ libraries e.g. iostream and fstream. When I include these headers, and try to compile the project with Visual Studio 2012 Pro, many errors are thrown:</p>
<p><img src="https://i.stack.imgur.com/XKLQb.png" alt="enter image descript... | 2 | 3,137 |
Why don't small changes in code affect exe file size? | <p>I'm curious - sometimes I make changes in my code, recompile, then copy my exe or dll file over the old version and see Windows telling me that the date of the file changed, but the size stayed exactly the same. Why is that?</p>
<p>As an example, I tested with the following console application:</p>
<pre><code>usin... | 2 | 1,136 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.