title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
NO [UNAVAILABLE] UID FETCH Server error while fetching messages
<p>I'm using AfterLogic MailBee for downloading AOL messages via <code>IMAP</code></p> <p>I keep on getting error messages again and again, for years. I would like to solve this once and for all. </p> <p>Here's a sample log. I can post a much longer one if necessary.</p> <pre><code>[13:04:57.83] [RECV] BODY[TEXT]&l...
2
7,028
VichUploaderBundle : image_name can't be null error
<p>I'm using Symfony3.1 and I have just installed VichUploaderBundle. I have followed the documentation but I get this error means that <strong>Field 'image_name' can not be empty (null)</strong></p> <p><strong>SQLSTATE[23000]: Integrity constraint violation: 1048 Le champ 'image_name' ne peut être vide (null)</strong...
2
1,082
avoid OVER_QUERY_LIMIT with google maps using setTimeout, unexpected time gaps
<p>I'm trying to avoid the dreaded over query limit messages from the google geocode api.</p> <p>I'm getting my data in batches of 10 from the server. Within one batch the timings are good, but between batches there is a growing delay that I don't understand. I've checked the timing on getting new records but that is ...
2
2,202
SSL_CTX_use_PrivateKey_file("/example.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
<h3>Problem Statement:</h3> <p>I've wanted to change the SSL certificate, because I've changed my server so I had to create a new CSR with the different name as discuss in the following <a href="https://stackoverflow.com/a/42111969">question</a> with this command. And generated the <strong>Privatekey</strong> and <stro...
2
1,225
jquery submit form and query string issue
<p>I have some values on the query string of the form page. When I submit the form using the submit button it self I can get the query string values but when I submit the form using jquery as below. I don't see the query string values anymore. Am I messing something?</p> <pre><code> $('#PasswordResetForm').submit...
2
1,387
react native run-ios build failed because 'LogSeverity'
<pre><code>"react": "16.3.1", "react-native": "0.55.4", </code></pre> <p>this is my react native version when im try to run project on mac os with run-ios project open in similatur but, im having truble with build and it be failed im looking every where but no answer.</p> <p>im putting the errors below.</p> <pre><co...
2
2,366
@Transient annotation is not working on Elasticsearch document
<h3>After indexing sample tweet entity, <em>language field</em> is indexed in elastisearch. What i am doing wrong?</h3> <p>Here is my Tweet class.</p> <pre><code>import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Transient; import org.springframework.data.elasticsearch.annotations...
2
2,418
iOS, Swift: "Unable to simultaneously satisfy constraints" in syslog
<p>My first iOS app got rejected by the App Review team because it crashed on launch. I can't reproduce this crash. The app runs fine on my physical iPad Mini and on all the Xcode simulators. Also, the same build and archive was passed through TestFlight Internal Testing. I have so far <a href="https://stackoverflow.co...
2
1,092
Collections.sort comparison method violates its general contract
<p>First of all, sorry for asking a question to this topic again. I'm well aware that there are plenty of questions and answers here. I've read some of them but my problem is that I still cannot figure out what I'm doing wrong. Here is my code:</p> <pre><code>Collections.sort(hLines, new Comparator&lt;Line&gt;() { ...
2
1,998
Moving user input data from Word to excel (macros)
<p>I created a form where the user rates the frequency of a certain event (always, sometimes, rarely, never, N/A) by clicking radio buttons displayed in a table. The radio buttons are weighted, so if the user selects always, the value for that number of the question is 4 (sometimes = 3, etc.). I need to take the resu...
2
1,978
How to know the input buffer of the serial port has information, in C#?
<p>I am building a program in C# to be used in one of my course at a college to demonstrate how Asynchronous connections work using RS-232 and two computers connected together. My course is not about programming, but data networks, so the connectivity is what I am looking for.</p> <p><a href="https://i.stack.imgur.com...
2
2,277
How can I add a drop down menu to my big cartel site?
<p>I would like to add a dropdown menu to my big cartel site. </p> <p>On Big Cartel you create categories using Big Cartel's dashboard. These categories can be used to create a drop down menu. This much I know. While trying to adjust the code, I noticed Big Cartel's category options are going into the sub-navigation a...
2
5,729
nodejs:mysql not able to access global variable inside connection query callback
<p>Below is my code</p> <p>I am sending data object from client side javascript to this function data prints its values </p> <p>inside socket.on</p> <p>and</p> <p>inside socket.on -> connection.query(sql,[], function(err,rows){data prints here})</p> <p>and </p> <p>inside socket.on -> connection.query(sql,[], fun...
2
1,142
Is it possible to store files of a folder in dynamic array in Java
<p>I am trying to find same name files in two folders. I used File and listed names of file in two array list. then i added common name files in two folders to a new arraylist and going to apply diff to find if these files are different or not.</p> <p>As i have only stored name of files in Array List, i can't apply op...
2
1,050
AngularJS: Populating checkbox list with two JSON arrays and initially checked some items from one array
<p>In my AngularJS application there is a checkbox list. This list represents some interests of a user. The user can select one or more items from the list. <strong>HTML</strong></p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;User Interests&lt;/title&gt; &lt;script src="../scripts/angular.min.js"...
2
2,785
ASP.NET Core 6 Dependency injection in controller return System.InvalidOperationException: Unable to resolve service
<p>I'm trying to develop a Web API project with ASP.NET Core 6, but I get this error, there seems to be an error in the dependency injection, but I haven't found this:</p> <blockquote> <p>System.InvalidOperationException: Unable to resolve service for type 'api.Interface.IUsersService' while attempting to activate 'api...
2
2,332
Encode/Encrypt issue while porting Python to Perl script
<p>I have a Python script which works fine. It is able decode/decrypt a provided pwd, and encode/encrypt it back, as follows:</p> <pre><code>#!/usr/bin/python from Crypto.Cipher import DES3 import base64 secret = base64.decodestring('tcxpLw1PsMR0CtXt/HfbIZomvJtDyE6h1Gl4vblX2W4=') key = secret[:24] iv = secret[24:] ...
2
1,780
Buttons always on the top - Android XML Layout
<p>I'm doing a layout for my app and in the green border is what I have. It is ScrollView and on the bottom are buttons. My question is, how can I block those buttons (red border) to be always on the top? I mean, they will show above buttons on the black background (I don't know how it calls). The blue border is showin...
2
2,102
How to hide Axes Crosshairs by onclick event in Highcharts
<p>I Would like to do the Axes Cross hairs with onclick event. Initially the cross hairs are enables. When clicking a toggle tooltip button, we have to hide the Cross hairs.</p> <p>Here my code</p> <h1>Here the Button where the onclick event gonna to happen</h1> <pre><code>&lt;a href="#" id="toggle_tooltip"&gt;&lt;i...
2
1,070
Get Max Value with Spring-JPA
<p>I want do query to my table with spring-JPA (I can't use @Query) for get the max register</p> <p>The query have any conditions:</p> <p>Initially my query get register where version is "x" and Validated is 1 and the process is a list.</p> <pre><code>version: "1A" validated: 1 -&gt; It is always 1. lista: ["pro...
2
1,623
webticker doesn't work after .toggle()
<p>jQuery webticker is working fine as long as its state not toggled. You can run the below snippet and see that it is working fine. But once you click on the button to hide it and then click it to show it again, it stops working. I can't initialize the webticker every time I toggled it. </p> <p><div class="snippet" d...
2
6,572
Using a Windows 8.0 Extension SDK component built using Visual C++ 2012 in a Windows 8.1 app
<p>I have a Windows 8 app built using Visual Studio 2012. This app also uses a 3rd party component (packaged as an <a href="http://msdn.microsoft.com/en-us/library/jj127117.aspx" rel="nofollow">Extension SDK</a>) also built using Visual Studio 2012. Since this component is written using C++, the Extension SDK has a d...
2
1,395
How do I get a delete trigger working using fluent API in EF CodeFirst CTP5?
<p>I am having trouble getting referential integrity dialled down enough to allow my delete trigger to fire.</p> <p>I have a dependent entity with three FKs. I want it to be deleted when any of the principal entities is deleted.</p> <p>For principal entities Role and OrgUnit (see below) I can rely on conventions to ...
2
1,089
Dynamically change radius and update current position (google-map-react)
<p>I am using google-map-react and want to be able to dynamically change position and radius. Currently the chosen radius is stored in a database and is fetched using the getRadius() function, but I don't know how and when to call it, therefore the radius is always displayed at 1000 meters.</p> <p>I've tried using the ...
2
1,296
Error when connecting via jdbc to Oracle 8i database using ojdbc6 driver
<p>I want to connect to Oracle database via jdbc using <strong>ojdbc6</strong> driver. </p> <p>I have Oracle 10g in virtual machine, and Oracle 8i at work. I'm trying to create a java application that allows me to connect to the database and execute some SQL statement.</p> <p>With <strong>Oracle 10g</strong> everythi...
2
1,744
Laravel 8/Fortify/Jetstream/Multitenancy: Error when configuring subdomain tenant identification: 'No database selected'
<p>I can't get the stancl/multitenancy package configured with with my Laravel 8/Fortify/Jetstream app. I'm using subdomain tenant identification and I'm getting the following error on all routes:</p> <blockquote> <p>SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected (SQL: select * from <code>sessions</co...
2
4,573
Custom Listview contains a button I want to set onclicklistener on the button
<p>I made a custom listview with a button and textviews in it. What i want to do is - On the click of a button, I want to get the index of listview.</p> <p>I used HashMap to store the key value pair.</p> <p>Here is my Activity code:</p> <pre><code>package com.hisham.listviewexhisham; import java.util.ArrayList; imp...
2
2,223
How to call method in child xaml from parent in Xamarin Forms ?
<p>I need to perform inheritance of one xaml in another, and trigger call from child. Child xaml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Cla...
2
1,097
P2P UDP connection with STUN
<p>Good day Everyone! I've been trying for quite a while to send packets p2p using UDP and GCDAsyncUDPSocket library. So i found an open source library to connect to STUN server and keep external port open. It works quite well and i've already had success with sending data in local network. (After having trouble with ...
2
4,627
WinForms: ToolTips will not (re)appear after the initial mouse hover
<p>I am working on a form that uses a SharpMap MapBox to display objects as points on a world map. Currently, if I enter the MapBox (mapBox1) with the cursor and stop on the point, it displays the tooltip as I want it to. However, once I've stopped the mouse within the MapBox (not necessarily on the point) and move the...
2
1,658
laravel foreach loop only storing last element of array in db table
<p>i have function in my controller that uses php excel to read rows from excel file, and store it to db table.</p> <pre><code>public function processData(Request $request) { /* store data from form in to variables */ $hotel = $request-&gt;input('hotel'); $date = $request-&gt;input('date'); $start_row ...
2
1,307
Classes, Methods and Random Number Generating
<blockquote> <p>You will write a Java program to play the game of Pico, Fermi, Bagel. Here are the rules of the game:</p> <p>The computer will generate a "secret" three digit number at random. The first number will not be 0, and all the digits will be different. The user tries to guess the number. If the u...
2
1,586
Communication in Netty Nio java
<p>I want to create a communication system with two clients and a server in Netty nio. More specifically, firstly, I want when two clients are connected with the server to send a message from the server and after that to be able to exchnage data between the two clients. I am using the <a href="https://github.com/eugenp...
2
1,172
How to store image file in phpmyadmin?
<p>I have created a form and wanted to store all the information in PHPMyAdmin. I managed to store the other information but not the image file. It has nothing under the image column in PHPMyAdmin even though it states submitted when I submit the form.</p> <p>form2.php</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt...
2
1,388
Django duplicate migrations in apps
<p>Django keeps making duplicate migrations in for my application. I've ran <code>makemigrations</code> and <code>migrate</code> before I changed my model. After the changes I ran <code>makemigrations</code> again to make migrations for the updated model, I got the following error:</p> <pre><code>CommandError: Conflic...
2
1,067
Build Xml document from SQL Query using For Xml clause
<p>I'm using AdventureWorks Database and I'd like to build xml block using query with FOR XML clause but i need to specify specific XML Schema in the result to have its datatypes and so on..</p> <p>e.g. this sample query " copied "</p> <pre><code> SELECT e.EmployeeID, c.FirstName, c.MiddleName, c.LastName FROM Huma...
2
1,583
Understanding tf.scatter_nd_update: How to update column values?
<p>I am trying to translate a NumPy operation of sliced update into TensorFlow. i want to reproduce the following minimal example:</p> <pre><code>input = np.arange(3 * 5).reshape((3, 5)) array([[ 0, 1, 2, 3, 4], [ 5, 6, 7, 8, 9], [10, 11, 12, 13, 14]]) input[:, [0, 2]] = -1 array([[-1, 1, -1,...
2
1,798
testing with Rails Rspec - expected and got aren't matching
<p>Im quite new to Rspec with Rails. Im just trying to run some tests to see if a new user has been saved and if a name, email and password has been entered but it is not working for some reason as no tests are passing. I'm going by this youtube video <a href="https://www.youtube.com/watch?v=71eKcNxwxVY" rel="nofollow ...
2
1,645
Custom SwitchPreference not saving value
<p>When I access the PreferenceScreen, I notice that my custom switch is off. Then I turn it on and restart the app. I went back to the PreferenceScreen and the switch went back off. This doesn't happen when I use the default SwitchPreference. I am able to customize the SwitchPreference the way I want it to be, so the ...
2
3,857
Java applet class can't be instantiated
<p>I am new to java and I'm having trouble getting my applet to run. For some reason the class can't be instantiated. I have tried a few things but nothing has helped, I'm really stuck.</p> <p>Here is the error I'm receiving.</p> <pre><code>load: com.yunatech.pns.chequeprint.HTMLPrinter.class can't be instantiated. j...
2
1,873
How to change event in BLoC in Flutter?
<p>I have an app which creates a 2FA totp key. When I click &quot;Add&quot; button when a form is not filled, it shows an Alert Dialog. If I click it second time (still, the form isn't filled), the alert dialog doesn't show up. How do I show the Alert Dialog for the infinite times? I used BlocConsumer to listen to chan...
2
4,677
ClassNotFoundException for com.bea.content.manager.internal.ContentUpgradeListener when attempting to start application in Weblogic 10.2
<p>I'm getting the following error when attempting to move an application from a state of "Prepared" to "Active":</p> <pre><code>weblogic.management.DeploymentException: at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171) at weblogic.security.acl...
2
2,401
Polish special letters not available while using Apache FOP
<p>I've been struggling a lot with generating a PDF using FOP, with Polish letters. I have been reading a lot of posts here on SO but so far no success! </p> <p>Here is my Template: </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Tran...
2
2,585
spring boot (jetty) catch upload error (file too big)
<p>I am trying to handle the situation when the uploaded file is too large.<br> Setting max file size to unlimited is not an option.<br> As far as i see the problem is that the exception is thrown outside spring - in this case in jetty</p> <p>I did some googling, and the answers suggest i should check for MultipartExc...
2
2,453
Multi Sub Array In Php
<p>i have a input <code>elements</code> as below</p> <pre><code> &lt;form method="post" &gt; 1 &lt;input type="text" name="passname[name]" /&gt; &lt;br/&gt; &lt;br/&gt; 2 &lt;input type="text" name="passname[type]" /&gt; &lt;br/&gt; &lt;br/&gt; 3 &lt;input type="text" name="passname[age]" /&gt...
2
1,472
TypeError: Cannot read properties of undefined (reading 'addEventListener') in react.js
<p>I want to change the header background when scrolling, but the problem is there that react doesn't know <code>addEventListener</code>.</p> <p>If I change <code>window</code> to <code>document</code> there is not any error but the <code>console.log(window.scrolly)</code> is undefined.</p> <p>This is all code:</p> <p...
2
2,493
GLSL: Choosing which texture to use in the fragment shader by indexing into a uniform array of structs based on the world-position of the fragment
<p>I am working on a C++ program which displays a terrain mesh using GLSL shaders. I want it to be able to use different materials based on the elevation. </p> <p>I am trying to accomplish this by having an uniform array of materials in the fragment shader and then using the y coordinate of the world-space position o...
2
1,210
Android Studio - Room Persistence Library - Ensuring that the Primary Key a user enters is unique before inserting into the database
<p>I'm learning how to use the Room Persistence Library in Android Studio, which is basically a layer of abstraction on top of SQLite that makes databasing easier.</p> <p>In my sample application, I'm allowing the user to enter very basic student information:</p> <p><a href="https://i.stack.imgur.com/B52qR.png" rel="...
2
2,726
OSMDROID - loading .map file downloaded from mapsforge
<p>I'm trying to load .map file which is placed in /assets folder in android studio. The .map file was downloaded from mapsforge @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);</p> <pre><code> map = (...
2
1,429
How can I re-render to display changes without refreshing the page?
<p>I need help with this bug on my MERN website as I can't figure out how to fix this step on my own.</p> <p>Every time the users make changes to the backend, I want to re-render it and display it on the UI - without having to refresh the page.</p> <p>But in my case, everything is working as I expected but there is sti...
2
8,017
Why can't I mmap(MAP_FIXED) the highest virtual page in a 32-bit Linux process on a 64-bit kernel?
<p>While attempting to test <a href="https://stackoverflow.com/questions/47702410/is-it-allowed-to-access-memory-that-spans-the-zero-boundary-in-x86#comment82366009_47702410">Is it allowed to access memory that spans the zero boundary in x86?</a> in user-space on Linux, I wrote a 32-bit test program that tries to map t...
2
2,034
Spring 406 error while trying to return object in @ResponseBody
<p>my web.xml:</p> <pre><code>&lt;servlet&gt; &lt;servlet-name&gt;rest-dispatcher&lt;/servlet-name&gt; &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name...
2
1,934
WCF ASync ...Lost Exception at Client Side
<p>I try to learn WCF, so I play with an simple WCF application, From Source Stephen Cleary => <a href="http://blog.stephencleary.com/2012/08/async-wcf-today-and-tomorrow.html?showComment=1381402644286#c7760085323662285363" rel="nofollow">async-wcf-today-and-tomorrow </a></p> <p>Here is the code fragments:</p> <p>Si...
2
1,030
Vscode breakpoints in TypeScript files not hit in React Native
<p>I have a React Native 0.61 project, TypeScript 3.6.2 and Vscode 1.38.1.</p> <p>Here is my launch config:</p> <pre><code>{ "name": "Debug iOS", "cwd": "${workspaceFolder}", "type": "reactnative", "request": "launch", "platform": "ios" }, </code></pre> <p><code>tsconfig.json</code>:</p> <pre>...
2
2,175
Predict size needed to store data in shared memory
<p>I'm working with the PHP shm (part of the <a href="http://www.php.net/manual/en/book.sem.php" rel="nofollow">semaphores extension</a>, not to be confused with the <a href="http://www.php.net/manual/en/book.shmop.php" rel="nofollow">shmop</a> ones!) functions in a project. Basically the shared memory serves as kind o...
2
1,051
Model Item type ambiguity when using PagedList
<p>I am developing a web survey application in ASP.Net Mvc3. I use PagedList in my application to paginate the questions page alone. </p> <p>I get the following error:</p> <pre><code>The model item passed into the dictionary is of type 'PagedList.PagedList`1[SWSSMVC.Models.ViewModels.QuestionViewModel]', but this di...
2
1,579
Error Generating PDF: ITextFontResolver: java.lang.RuntimeException: Font 'Courier-BoldOblique' with 'Cp1252' is not recognized
<p>Recently needed to make some library changes so that could use <code>Apache POI</code> for <code>docx</code> suppot. This included changing <code>Itext</code> versions from <code>2.1.0</code> to <code>4.2.1</code>.</p> <p>Also using Grails Renderer Plugin with Flying Saucer. From build.gradle:</p> <pre><code>com...
2
1,271
Word VBA - Applying alternate font color via styles does not work with text that has direct formatting (of font color) applied
<p>I have created a template (one of a series of many similar templates) that will be distributed to multiple users to be used to create transcripts (of audio and digital files). The transcript includes a number of styles that will be used exclusively to format the text.</p> <p>The template includes a series of macros...
2
1,570
Unable to swipe the screens horizontally
<p>Helo Evryone!</p> <p>I am trying to add "swipe" functionality in my app but i am unable to do so. I have stories to swipe left to right and vice versa. I have written a sub class MYGestureListener which has the following implementation.</p> <pre><code> class MyGestureListener extends SimpleOnGestureListener { ...
2
1,214
empty view not display in listview
<p>I am trying to <strong>display empty view when no internet connection</strong> give me no internet connection and display no book when no book is not found </p> <p><strong>This is my code</strong> </p> <pre><code>public class MainActivity extends AppCompatActivity { private static final String BOOK_REQUEST_URL = ...
2
1,517
Reading 32-bit grayscale Tiff using Libtiff.Net
<p>I've tried to read a 32-bit grayscale tiff file which each pixel in the image contains a floating point number. But during the reading process, the buffer array contains 4 values for each pixel. For instance [ pixel value = 43.0 --> byte values for the pixel = {0 , 0 , 44 , 66}]. I can't understand the relation betw...
2
1,366
Increment DateTime value based on total number of days
<p>When a user adds a class they choose the start date and the end date of the class. I have been able to calculate the value between the end date and start date. I was able to create a For loop to insert a row into the Class table for each individual day the class is on. E.g 01/03/17 - 05/03/17 runs for 5 days so it a...
2
2,389
Why does ivy put my locally resolved jar in a sub directory within the libs directory
<p>I am not that experienced with ivy and not sure how to solve this problem, which I probably caused myself by not understanding ivy.</p> <p>so I have this in my ivysettings.xml to use a local filesystem repo</p> <pre><code>&lt;ivysettings&gt; &lt;settings defaultResolver="central" /&gt; &lt;resolvers&gt; ...
2
7,293
SQLite.Net Extensions issue with InsertOrReplaceWithChildren
<p>I am using SQLite-Net PCL together with SQLite-Net extensions for the development of an application using Xamarin.</p> <p>I have two classes <code>A</code> and <code>B</code> defined as follows:</p> <pre><code>public class A { [PrimaryKey, AutoIncrement] public int Id { get; set; }...
2
1,046
Java Blowfish Encryption with CBC
<p>I'm trying to produce what this site is doing <a href="https://codebeautify.org/encrypt-decrypt" rel="nofollow noreferrer">https://codebeautify.org/encrypt-decrypt</a> using <code>Blowfish</code> and <code>CBC</code></p> <p>I'm not sure what's the actual term but the encryption method that I'd like to achieve shall...
2
1,188
Reading Serial Port iOS
<p>I have the following code to read and write to serial ports on iOS 10.3.3 Jailbroken iPhone 6S (I used h3lix to jailbreak):</p> <p>Serial.h:</p> <pre><code>// // Serial.h // iOUSB // // Created by Brandon on 2018-05-21. // Copyright © 2018 XIO. All rights reserved. // #if !defined(__cplusplus) //-fmodules -f...
2
2,869
Bulk insert generated ids return order
<p>I want to very efficiently execute a bulk insert of a DataTable to SQLServer from a C# application and retrieve the inserted ids in the right order. In order to get the inserted primary keys auto incremented values I use the following approach on the same connection:</p> <ol> <li>create table #StagingTable(....) "<...
2
1,782
aiohttp https request with an http proxy fail
<p>I am building a test project to learn asyncio. I am building a progam that fetches multiple pages over a proxy server.</p> <p>It works fine for http pages, but it fails with https pages. When i use the regular request library i get https pages to work aswell, but not with asyncio.</p> <p>I isolated the code that b...
2
1,345
How to store RSA Private Key on android app
<p>I did look at this post: <a href="https://stackoverflow.com/questions/27834366/cannot-generate-rsa-private-key-on-android">Cannot generate RSA private Key on Android</a> but it did not work for me.</p> <p>My idea is to encrypt an access token using RSA encryption and store the Private key on the device. I have succ...
2
2,576
Excel to create task in Outlook
<p>I am relatively new to VBA and so I'm sure this is a basic mistake that I am making!</p> <p>A1 contains valid date, A2 contains task information, A3 contains number of days before A1 date to trigger task reminder.</p> <p>The problem is when I put =addtotasks(A1,A2,A3) </p> <p>It just comes up with #NAME?</p> <p>...
2
1,176
React Router 4 match property
<p>I have a <code>AdminNav</code> component that has a set of <code>NavLink</code> elements so I can style them if they are active.</p> <p>The sections can also be manually opened/closed to appear less cluttered.</p> <p>What I would like to do is have a bunch of sections in the nav, and have the section be open if it...
2
4,138
AWS S3 Bucket policy/access from URL referer - access denied
<p>My problem is maybe trivial, but I can't find the good example or straight answer anywhere...</p> <p><strong>My setup:</strong></p> <ul> <li>Web app client written using Apollo and ReactJS</li> <li>Server/API written using Apollo, ReactJS and GraphQL</li> <li>Database: Mongoose</li> </ul> <p><strong>What I want to a...
2
1,112
What is the correct way to connect to a graphql-yoga server via apollo for subscriptions?
<p>apollo-client: 2.6.3<br> apollo-link-http: 1.5.15<br> apollo-link-ws: 1.0.18<br> subscriptions-transport-ws: 0.9.16 </p> <p>So I have a front-end (node) server which connects to a back-end (graphql-yoga) server as follows:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-bab...
2
2,637
Cannot insert the OpenXmlElement "newChild"
<p>I have the following code but i keep getting the error "Cannot insert the OpenXmlElement "newChild" because it is part of a tree"</p> <pre><code>private static Stylesheet CreateStylesheet() { Stylesheet ss = new Stylesheet(); //ESTILO PARA CELDA F6 Fills fill1 = new Fills(); ...
2
2,054
How to support full screen navigation UI for RecyclerView?
<h2>Background</h2> <p>I wanted to support full screen navigation UI as shown here:</p> <p><a href="https://medium.com/androiddevelopers/windowinsets-listeners-to-layouts-8f9ccc8fa4d1" rel="nofollow noreferrer">https://medium.com/androiddevelopers/windowinsets-listeners-to-layouts-8f9ccc8fa4d1</a> <a href="https://de...
2
4,221
reactjs - moving list items back and forth between two components
<p>I have a small exercise I'm working on to learn ReactJS. I'm making an API call to display a list from iTunes, and when the individual list items are clicked on, they move over to a new list (kind of like a queue). When clicked on in the new list, they move back to the original list, however the list item is not bei...
2
1,204
React Router nested routing in the base url
<p>I modified the sample given in React Router nested routing in the <a href="https://reacttraining.com/react-router/web/example/nesting" rel="nofollow noreferrer">docs</a> to setup nested routing in the base url, like <a href="https://codesandbox.io/s/react-router-nesting-164ih" rel="nofollow noreferrer">this</a>.</p>...
2
1,244
An unhandled exception of type 'System.Data.OleDb.OleDbException' Additional information: Data type mismatch in criteria expression
<p>I'm trying to get the price from a item in a combobox.Any ideas?</p> <pre><code>using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.OleD...
2
1,080
What method call in HttpsURLConnection actually sends the HTTP request?
<p><strong>EDIT:</strong> Now that I've figured out some behavior, I'm wondering, <em>why</em> does it not send the request as soon as I call <code>flush()</code>? or <code>close()</code>? Why does it wait until I call <code>getResponseCode()</code>?</p> <hr> <p><strong>Original question:</strong></p> <p>I am new to...
2
1,705
Aurora Serverless Postgresql as data source for app sync
<p>I was facing problem with app sync where data source is Relational Database. </p> <p>So, my goal is to connect Aurora server less postgresql cluster with app sync as data source and get it working.</p> <p>Steps I have performed(all via server-less framework) :</p> <p>Created aurora postgreSQL cluster.</p> <p>Con...
2
1,528
Error with copy module using ansible 2.1
<p>I was able to use the ansible 2.1 copy module when I had the roles directory inside my parent ansible directory. I then proceeded to move the roles directory inside my playbooks directory (since I was getting an error complaining about missing roles when calling plays inside the playbook directory and keeping the r...
2
1,728
Various HMAC_SHA256 functions in classic ASP gives different results
<p>Somehow I need to generate a hash in Classic ASP which is equivalent to PHP's following function's output:</p> <pre><code>$hash = hash_hmac('SHA256', $message, pack('H*', $secret)); </code></pre> <p>where <code>$message = 'stackoverflow'; $secret = '1234567890ABCDEF';</code>. I tried quite a lot approaches online,...
2
1,858
3d array movement in p5.js?
<p>I'm in dire need of help with a graduation project that I'm working on. What I'm trying to achieve here in the code below is -to put it very simply- to initialize a 3d array of box() objects (this works) and then introduce another box() object (the end goal is to have an array of these as well) to move about within ...
2
2,799
Preserving the user line breaks in a custom text area in woocommerce
<p>I have managed to add a custom text area to the woocommerce product data where my client can add in a kit list that is output to the packing list for the shop floor but the line breaks don't save and the output is a flow of text making it less easy on the eye for the guys picking This is what I have but where and ho...
2
1,160
Why is this AJAX call not working in IE 11?
<p>I have a notifications system on my site, that utilizes AJAX to update in real-time. The problem is that it works on every browser except IE 11. After looking around I noticed some people advising to use <code>cache:false</code> in the call. However, this makes the code non-functional across all browsers. Anyone kno...
2
1,548
Can't load image taken from camera into an ImageView
<p>I am able to save the image taken from camera into internal storage, however I can't load it into ImageView, which remains empty. I've read all relevant suggestions but couldn't find a suitable solution. Please find relevant code below, any help will be MUCH appreciated, as I'm struggling with it for days...</p> <p...
2
1,925
.NET: Posting Xml to a web-server?
<p>What is the proper way to post an <a href="http://msdn.microsoft.com/en-us/library/system.xml.xmldocument.aspx" rel="nofollow noreferrer">XmlDocument</a> to a web-server? Here is the skeleton function:</p> <pre><code>public static void PostXml(XmlDocument doc, String url) { //TODO: write this } </code></pre> <...
2
1,723
Jenkins Package Restore with nuget.config
<p>Currently working to get a new app to deploy using Jenkins and stuck on an issue with package restore. Please note...my focus is in dev, not DevOps so a lot of this is still pretty foreign to me. So, I apologize in advance if it takes some back and forth for clarification.</p> <p>The project uses the following fil...
2
2,364
is WriteFile working ? C++
<p>I have to send 6 byte to a device in serial port. The port is open but the data isnt sent. I use serial port monitor to know what happen with my code(C++ Win32, Visual Studio). </p> <p>I am using CreateFile</p> <pre><code>hPort = CreateFile( TEXT("COM3"), GENERIC_READ | GENERIC_W...
2
1,567
Android - Google Sign-in on Web API - How to send Google Sign-in POST-request?
<p>I've got an Android project that allows me to <a href="http://www.androidhive.info/2014/02/android-login-with-google-plus-account-1/" rel="nofollow">log-in with Google-accounts</a>. Everything works as it's supposed to and I'm able to retrieve the Person's (<code>com.google.android.gsm.model.people.Person</code>) da...
2
1,466
Exception while configuring Struts2.1.6 with Tomcat 5.0
<p>I am new to Struts 2. While configuring Struts 2 with Tomcat 5, I received the following exception. I have searched many forums but none gave any solutions.</p> <p>Here is the exception stack trace:</p> <pre> java.lang.NullPointerException at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(Spri...
2
1,517
Multiple SharePoint 2013 'Drag and Drop Uploader' placement is wrongly placed in responsive page layout
<p>I'm developing responsive design custom page layouts with the help of Office UI Fabric. This is part of a solution (WSP) that i'm developing for SharePoint in Office 365. </p> <p><strong>Question</strong> The issue is that when a library is added to a page with a responsive layout the drag n' drop uploader area is ...
2
2,243
Cannot open SQL file in T-SQL editor in visual studio 2012
<p>I have added an sql file to a project in visual studio 2012. I can open with Source Code (Text) Editor and view the contents of the file. What I think I should be able to do, is open the file in Microsoft SQL Server Data Tools, T-SQL Editor. When I do this either visual studio forces a restart or the cursor spins...
2
2,542
"warning: 'struct matrix' declared inside parameter list [enabled by default]" and error: conflicting types for 'scanToken'
<p>I've been pouring over this issue trying to figure out what is causing these errors, but so far I've come up with nothing. I have this function:</p> <pre><code> struct token scanToken(struct matrix refTable){ struct token send; int counter = 0; int currState = refTable.start; whil...
2
1,469
Checking logged-in user info on CakePHP when using a custom auth adapter
<p>I'm using <a href="https://github.com/t73biz/cakephp2-jwt-auth" rel="nofollow noreferrer">this JWTAuth adapter</a> to use JWT authentication instead of cookie-based auth in my CakePHP 2.8 app. It works great, except for one hitch:</p> <p>Normally for one of my REST endpoints, I can use <code>$this-&gt;Auth-&gt;user...
2
1,479
How to add qi::symbols in grammar<Iterator,double()>?
<p>I am trying to use Boost.Spirit (V. 2.5) library to create a mini-calculator. Features I want to implement : - basic calculus (+,-,/,*), that works - some functions (like min, max), that works too - declaring/assigning double variables, and there is the problem... when I add "[vars.add]" I get compilation error (te...
2
3,392
MySQL Workbench - Error in MySQL syntax
<p>The MySQL workbench is a great tool, but you have to keep your head on as it does no error checking whatsoever.</p> <p>So, it generated this SQL syntax to create a table and it won't work. And I can't figure out WHY</p> <p>It gives me this error:</p> <pre><code>#1064 - You have an error in your SQL syntax; check ...
2
1,599
sub claim is missing Identity Server 4 with Mongo DB
<p>I am using Identity Server 4 with MongoDB to create an identity portal.</p> <pre><code>services.AddIdentityServer().AddMongoRepository() .AddMongoDbForAspIdentity&lt;ApplicationUser, IdentityRole&gt;(Configuration) .AddClients() .AddIdentityApiResources() ...
2
4,323
Cannot use object of type stdClass as array codeigniter
<p>I'm building a project in <code>CodeIgniter</code> and trying to create a <code>login</code> functionality.</p> <p>I just created a session on logging and passed the logged in user's id to the dashboard, but it showing me an error. Here is my code.</p> <p>My controller - login controller ---------</p> <pre><code>...
2
1,033
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `com.company.FruitsList' from Array value (token'JsonTok
<p>I just started coding in java, so this question might sound stupid.</p> <p><strong>Goal:</strong> I am trying to build a Quarkus Rest application which has a POST method using Apache Camel routes. The goal is to take an array of fruits as input and add additional information and return it back to the calling applica...
2
2,745