title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
c99 inline semantics with gcc (mspgcc)
<p>I am writing a couple of functions that I would like to inline.</p> <p>Reading <a href="http://www.greenend.org.uk/rjk/tech/inline.html" rel="noreferrer">here</a> and using the second c99 inline option with inline on all declarations and definitions, like so:</p> <pre><code>extern inline void SPFD54124B_write_cmd(...
0
3,989
CodeIgniter Upload image and then resize it
<p>I am trying to upload images and resize them, so far the upload is working and also the creation of thumb nail images. But I cant get the original image to be resized. All that is happening is the file is directly uploaded to the folder in its original size. I guess I am trying to take this image resize it then over...
0
1,456
Spring 3.0 : How redirect to same page
<p>In Spring MVC, I have a search form. If user submit search form, result should show in same page. It is redirecting to same page But I'm not getting attributes in JSP from controller.</p> <p><strong>qSearch.jsp</strong></p> <pre><code>&lt;form:form name="quickSearchForm" id="searchFormId" method="POST" action="./...
0
1,407
Symfony 3.4 Use view inside my bundle
<p>I've some trouble for the configuration of a new repository using Symfony 3.4. I've used the symfony command for create him with last LTS (3.4) and I add a new Bundle using command too. My new Bundle is up and work well but I can't use view stored inside this bundle.</p> <p>I show you the structure of my Bundle :</...
0
1,893
Spring-boot gets an error when creating custom RestTemplate
<p>I have a <code>sendGetREST</code> method to send some <code>URL endpoint</code> and get the response:</p> <pre><code>@Component public class HttpURLCommand { private static Logger logger = Logger.getLogger(HttpURLCommand.class); public String sendGetREST(String soapUrl, Object[] parameters) throws IOException{...
0
1,709
ClassCastException when using LinearLayout.LayoutParams
<p>This is the exception:</p> <pre><code>07-20 19:52:14.193: E/AndroidRuntime(3908): FATAL EXCEPTION: main 07-20 19:52:14.193: E/AndroidRuntime(3908): java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams 07-20 19:52:14.193: E/AndroidRuntime(3908):...
0
1,769
iReport: Getting multiple copies of table in detail band
<p>I am new at <code>iReport</code>. So I want to make a simple report based on data. </p> <p>My problem is when my rows are less then detail band's size the whole table gets repeated in detail band, and I dont want it again. If my rows are aproximately 5, then same table gets copied 4 times in detail band, and not on...
0
11,764
XSLT: How to exclude empty elements from my result?
<p>I have a rather complicated xslt sheet transforming one xml format to another using templates. However, in the resulting xml, I need to have all the empty elements excluded. How is that done? </p> <p>This is how the base xslt looks like: </p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org...
0
4,054
NHibernate: Using Fluent Nhibernate to save child objects
<p>In my system, I have two entities - ShoppingCart and ShoppingCartItem. Fairly generic use-case. However, when I save my ShoppingCart, none of the items are being saved to the DB. </p> <p>Within my object, I create a new ShoppingCart object.</p> <pre><code>ShoppingCart cart = CreateOrGetCart(); </code></pre> <p>I ...
0
1,254
How to show Only 4 slides in a row using Bxslider
<p>I have Bxslider on my page and two sliders </p> <p>First here and in works great</p> <p><a href="https://i.stack.imgur.com/4eIRw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4eIRw.jpg" alt="Top Slider"></a></p> <p>Second here is bottom slider</p> <p><a href="https://i.stack.imgur.com/Cp62W...
0
2,076
SpringBoot CommandLineRunner run() method not being called
<p>I'm learning SpringBoot. My (trivial) problem is I can't get the run() method from the CommandLineRunner Interface to be called by SpringBoot. I'm using Java 8 , Eclipse Oxygen ,Maven and i'm running my project as a "Spring Boot App". Code is:</p> <pre><code>package com.clarivate.dataviewer; import org.apache.logg...
0
1,458
Main web page in standard mode, iframe in compatibility mode: any issues?
<p>We have some legacy HTML content which we must render in compatibility mode. The requirement comes from our customers who want their HTML-based reports (some of which were created back in IE6 days) to look and print exactly the same, regardless of the browser version or underlying technologies. At the same time, we ...
0
2,332
Could not load file or assembly 'EntityFramework' or one of its dependencies
<p>My ASP.NET MVC3 web application was working fine. but when i restarted my pc and then trying to update the application in MS VS 2010 it shows an error during running the application:</p> <pre><code>Could not load file or assembly 'EntityFramework' or one of its dependencies. The parameter is incorrect. (Exception f...
0
1,307
"Cannot read property ... of undefined" in jQuery 1.11.0 -- how can I satisfy jQuery's requirement?
<p>I was (trying to) load jQuery 1.9.1 un-minified from CDN: "Uncaught TypeError: Cannot call method 'call' of undefined jquery-1.9.1.js:648". So I updated the reference, and am apparently getting an equivalent error, now for minified:</p> <pre><code>Uncaught TypeError: Cannot call method 'call' of undefined jquery-1....
0
2,404
Job for mysqld.service failed See "systemctl status mysqld.service"
<p>Console says</p> <pre><code>[root@ip-172-31-18-2 mysql]# service mysqld start Starting mysqld (via systemctl): Job for mysqld.service failed because the control process exited with an error code. See &quot;systemctl status mysqld.service&quot; and &quot;journalctl -xe&quot; for details. </code></pre> <p>mysqld.serv...
0
1,034
How can I prevent the browser from scrolling on top of the page when clicking the checkbox?
<p>Whenever I click on the checkbox, the browser window (firefox) will scroll on the top of the screen.<br> How can I prevent this behavior so when I click on the checkbox the browser window will not scroll on top?<br> Here is the code found from here <a href="http://jsfiddle.net/zAFND/6/" rel="noreferrer">http://jsfid...
0
1,543
Widget not going to bottom of screen in Flutter?
<p>So I'm trying to get the REGISTER button to align on the bottom center of the screen. I'm relatively new to Flutter and am wondering if there is a way to do this easily, or do I need to rewrite a lot of code? Here's what I have so far. As you can see, I put it in an Align(), but it only goes to the bottom center of ...
0
1,384
Recursive entry to executePendingTransactions
<p>I have a MainDrawer to Fragment activity which has a layout for a nav drawer my and my main content where I can load new fragments into. One fragment I load in is calle StatisticsTab Fragment. This Fragment holds a tabhost which each tab is its own fragment of listview items. Once I click on a ListView item, which l...
0
7,066
Right-aligned icon within button at any width
<p>This should be simple, but I'm having problems getting a robust solution. Basically I'm trying to achieve this:</p> <p><img src="https://i.stack.imgur.com/ZEd5c.png" alt="button examples"></p> <p>So, an element (<code>a</code> or <code>button</code>) with an icon right-aligned, using an icon font. I need to ensure...
0
1,024
ExtJS - using a custom TriggerField as a GridEditor
<p>So I posted this last week to the ExtJS forums, but no one has responded and I'm going a bit crazy trying to figure it out:</p> <p>I'm fairly new to ExtJS (just learned it last week for work), but I've been working with other JavaScript libraries for quite some time now. I'm making a custom control for editing a li...
0
5,223
How to change the step size matplotlib uses when plotting timestamp objects?
<p>I'm currently attempting to graph a fairly small dataset using the matplotlib and pandas libraries. The format of the dataset is a CSV file. Here is the dataset:</p> <pre><code>DATE,UNRATE 1948-01-01,3.4 1948-02-01,3.8 1948-03-01,4.0 1948-04-01,3.9 1948-05-01,3.5 1948-06-01,3.6 1948-07-01,3.6 1948-08-01,3.9 1948-09...
0
1,086
Java SSLHandshakeException "no cipher suites in common"
<p>I'm using an SSLServerSocket to accept client connections on my openSUSE server, but none of them can connect. I always get an SSLHandshakeException saying <code>no cipher suites in common</code>. I've activated all of the possible suites, enabled multiple protocols, tried with the newest oracle JRE and the openjdk....
0
8,476
I get BadMethodCallException Call to undefined method App\Models\User::identifiableAttribute()
<p>I get this error after clicking 'New Post' button the frontend of the app:<br /> Posts view<br /> <a href="https://i.stack.imgur.com/EAuyS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EAuyS.jpg" alt="enter image description here" /></a></p> <p>Line from my log file:<br /> <em>[2020-09-27 14:41:...
0
1,560
How to properly create and run concurrent tasks using python's asyncio module?
<p>I am trying to properly understand and implement two concurrently running <a href="https://docs.python.org/3/library/asyncio-task.html#task" rel="nofollow noreferrer"><code>Task</code></a> objects using Python 3's relatively new <a href="https://docs.python.org/3/library/asyncio.html" rel="nofollow noreferrer"><code...
0
1,136
Extjs Load Mask while long processing
<p>I have problems setting load mask on panel properly. After click on a button the new tree store is being generated (localy) and it takes quite some time. The load mask shows for a millisecond only after (i think) the whole function evaluates. In my code <code>console.log(0)</code> and <code>console.log(1)</code> sho...
0
1,035
FragmentTransaction not doing anything
<p>I am learning fragments and below given is my first fragment program. A simple project where I have 2 screens. When I click the next button of first screen, second button needs to be shown. </p> <p><img src="https://i.stack.imgur.com/F8HyP.png" alt="enter image description here"></p> <p>I am targeting Android 2.1 ...
0
1,748
Cypress - How can I run test files in order
<p>When I press the "run all specs" <a href="https://i.stack.imgur.com/gsbcC.png" rel="noreferrer">button</a> or use the run command that runs all files in Cypress it runs all test files alphabetically, so I don't want that.</p> <p>I want to sort all of them with my own rules.</p> <hr> <p>Let's say I have 3 steps in...
0
1,121
"NULL not allowed for column 'id'" even though log says it had value bound
<p>So, I've been bashing my head on this for hours!</p> <p>I've been testing this with a lot of different settings..</p> <p>The bottom line is this, when i start my EAR in JBoss, I am able to interact with the Persistence-Jar and ALL it's @Entities without a problem. The difference is that running it in JBoss a diffe...
0
6,637
PHP Curl HTTPS SSL23_GET_SERVER_HELLO:tlsv1
<p>I'm not able to access via curl to a https site and I'm stuck. </p> <p>The url can be opened in the browser and is using the following secure connection: </p> <blockquote> <p>The connection to this site is encrypted and authenticated using a strong protocol (TLS 1.2), a strong key exchange (ECDHE_RSA with P-...
0
1,245
Epplus SetPosition picture issue
<p>I am using <a href="http://epplus.codeplex.com/" rel="nofollow noreferrer">Epplus library</a> to generate Excel 2010 and up compatible files in Asp.Net C#. I am using version 3.1.2 which is the latest at this moment.</p> <p>I am setting the row height first, before adding any pictures like this:</p> <pre><code>Exc...
0
1,107
Maven package error: An attached artifact must have a different ID than its corresponding main artifact
<p>Geting this error on: mvn package</p> <p>It fails to build every time with the same error, I've tried renaming the artifact, as well as changing dependencies for build in the pom file. Please see more details below:</p> <p>Any help would be very much appreciated. error:</p> <pre><code> [INFO] BUILD FAILURE [IN...
0
5,942
Android image orientation issue with custom camera activity
<p>I wrote a custom camera activity to handle some issues I've been having with certain android devices when calling intent image capture. The user is able to either select save image or just use the data returned back from the <code>OnPictureTakenCallback</code>.</p> <p>The problem I'm having is displaying the image...
0
1,185
Android Emulator Error Message: "PANIC: Missing emulator engine program for 'x86' CPUS."
<p>I am trying to run a Android Emulator by using AVD Manager. this is my avd: <a href="http://image-upload.de/image/fnx79V/52b0d050ee.png" rel="noreferrer">http://image-upload.de/image/fnx79V/52b0d050ee.png</a></p> <p>and this is what happens by starting:</p> <p><a href="http://image-upload.de/image/vGpQfa/e912d8393...
0
1,223
How to work with reserved CMA memory?
<p>I would like to allocate piece of physically contiguous reserved memory (in predefined physical addresses) for my device with DMA support. As I see CMA has three options: 1. To reserve memory via kernel config file. 2. To reserve memory via kernel cmdline. 3. To reserve memory via device-tree memory node. In the fir...
0
1,027
Jquery Mobile: Automatically display a popup / dialog
<p>I am trying to create a dialog box or a popup message that is automatically shown of a certain condition is met. In my case, if $.POST fails, I want to display a message to the user. I have taken advice from this <a href="https://stackoverflow.com/questions/6101370/creating-a-dialog-jquery-mobile">SO</a> post and th...
0
1,206
CMake not able to find OpenSSL library
<p>I am trying to install a software that uses cmake to install itself. When I run <code>cmake ..</code> on the command line, it gives me following error in the <code>CMakeLists.txt</code> on the line that says <code>find_package(OpenSSL REQUIRED)</code>:</p> <pre><code>-- Could NOT find Git (missing: GIT_EXECUTABLE)...
0
1,313
How can I separate numbers and letters in a C++ String?
<p>I'm having several input strings containing numbers and letters. Sometimes the space is missing. I would like to add an additional Space each time the string changes from numbers to letters or from letters to numbers.</p> <p>Example inputs:</p> <pre><code>"30EinsteinStreet" "548 Roe Drive5500 TestCity" "44B Saarlo...
0
2,078
How to highlight selected item in RecyclerView
<p>I have used RecyclerView for showing thumbnails in my Image Editing app.Each item of its comprises of a ImageView(thumbnail) and a textView.In my application I want to <strong>highlight only current selected</strong> thumbnail when clicked.Gone through all the related posts on SO but couldn't find any better solutio...
0
4,840
Excel VBA On Error Resume Next, Options are correct but still not resuming
<p>&nbsp;&nbsp;&nbsp;&nbsp;I have already checked Tools > Options > General > Error Trapping in VBE - I have set it to both "Break in Class Module" and "Break on Unhandled Errors" and either way it still throws the error. The error is thrown on the line:</p> <pre><code>Set xlContacts = Workbooks(LocalContactsFilename)...
0
1,231
How to display image from database on RDLC report
<p>My RDLC Design:</p> <p><a href="https://i.stack.imgur.com/L6Z3M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L6Z3M.png" alt="http://imgur.com/a/dglzS"></a></p> <p>I want to show image on my report Viewer from my database my reportviewer is working fine I just need an image for each selection ...
0
1,748
Style is not done loading: Mapbox GL JS
<p>My goal is to create a before and after map that shows a series of coordinate markers on the after map. </p> <p>When the code is executed, I see this error message in the console: <code>Style is not done loading</code></p> <p>The end goal is to see a cursor that would allow users to swipe horizontally and see the ...
0
1,558
how to order by timestamp using Firebase?
<p>I'm trying to order by timestamp in Firebase using <code>orderByChild()</code> but it's not working. The results seem to be ordered by the key and Firebase seems to be ignoring <code>orderByChild()</code>.</p> <p>As you can see from the time, these results are not ordered by timestamp.</p> <blockquote> <p>lorem-...
0
1,669
R qqplot argument "y" is missing error
<p>I am relatively new to R and I am struggling with a error messages related to <code>qqplot</code>. Some sample data are at the bottom. I am trying to do a <code>qqplot</code> on some azimuth data, i.e. like compass directions. I've looked around here and the <code>?qqplot</code> R documentation, but I don't see a...
0
1,077
Key must not contain . error in pymongo
<p>I am trying to get the output of serverStatus command via pymongo and then insert it into a mongodb collection. Here is the dictionary</p> <p><code>{u'metrics': {u'getLastError': {u'wtime': {u'num': 0, u'totalMillis': 0}, u'wtimeouts': 0L}, u'queryExecutor': {u'scanned': 0L}, u'record': {u'moves': 0L}, u'repl': {u'...
0
1,573
how to add drop down in list menu in HTML web page
<p>I have web page i want to add the drop down menu On Reference button i am using following code for css I want like this website given template I am new to css please help</p> <p><a href="http://www.psdgraphics.com/templates/black-horizontal-html-and-css-dropdown-menu/" rel="nofollow">http://www.psdgraphics.com/temp...
0
1,114
Adding properties file to classpath but getting a FileNotFoundException
<p>My spring context file has this:</p> <pre><code>&lt;context:property-placeholder location="classpath:web.properties" /&gt; </code></pre> <p>and I reference the key/values like:</p> <pre><code>&lt;property name="username" value="${dataSource.username}"/&gt; </code></pre> <p>My file layout is like:</p> <pre><code...
0
1,749
How to retrieve a YouTube video's tags with YouTube v3 API?
<p>I want to retrieve the tags for a specific YouTube video using v3 of the YouTube API.</p> <p>I'm able to retrieve a video with this request to the search endpoint, <a href="https://www.googleapis.com/youtube/v3/search?part=snippet&amp;maxResults=1&amp;q=cats&amp;type=video&amp;key=" rel="noreferrer">https://www.goo...
0
1,224
mysql: Duplicate entry '0' for key 'PRIMARY' and bizarre ID behavior
<p>See log below. (Snipped just for brevity; unsnipped @ <a href="http://pastebin.com/k9sCM6Ee" rel="nofollow noreferrer">http://pastebin.com/k9sCM6Ee</a>)</p> <p>In short: somehow rows are getting assigned ID 0. When this happens, it blocks inserts, even when those inserts aren't actually conflicting with ID 0 (altho...
0
1,189
Docker: Springboot container can not connect to PostgreSql Container Connection error
<p>I am building my first Springboot 2.0 application. I am trying to put my Springboot application into one docker container and my PostgresDB into another container. </p> <p><strong>My Dockerfile</strong></p> <pre><code> FROM frolvlad/alpine-oraclejdk8:slim VOLUME /tmp ADD springboot-api-demo-0.1*.jar ap...
0
1,140
How to do JSON pretty print with PHP
<p>How can I do JSON pretty print from MySQL? I used <code>JSON_PRETTY_PRINT</code> in my code but it is not printing what I am expecting. My current script is:</p> <pre><code>&lt;?php //open connection to mysql db $connection = mysqli_connect("127.0.0.1","root","Kunal@7890","testdb") or die("Error " . mysqli_error...
0
1,106
now getting 401 unauthorized in jenkins when deploying artifact to archiva maven repo
<p>This used to work before I upgraded Jenkins to 1.494. Now I get this error in Jenkins when using the build promotion plugin to copy the war artifact to the snapshot repo:</p> <pre><code> ERROR: Failed to deploy artifacts: Could not transfer artifact com.blah.data:RestWebServices:war:1.0-20121224.163825-2 from/to...
0
1,862
Google Charts - How can I create a Y-axis label with vertical text?
<p>Here is the <a href="http://chart.apis.google.com/chart?chxr=1,0,50&amp;chxtc=0,15|1,10|2,10&amp;chxt=x,y,r&amp;chbh=10,0,40&amp;chs=1000x300&amp;cht=bvg&amp;chg=0,10&amp;chm=D,008000,5,-1,1,1|r,993879,0,0.115,0.119|r,BBCCED,0,0.126,0.13|r,FFCC00,0,0.36,0.364|r,FF1D00,0,0.7,0.704|r,000099,0,0.42,0.424&amp;chtt=Weekl...
0
1,123
Rails destroy confirm with Jquery AJAX
<p>I have got this working for the most part. My rails link is:</p> <pre><code>&lt;%= link_to(image_tag('/images/bin.png', :alt =&gt; 'Remove'), @business, :class =&gt; 'delete', :confirm =&gt; 'Are you sure?', :id =&gt; 'trash') %&gt; </code></pre> <p><code>:class =&gt; "delete"</code> is calling an ajax function so...
0
1,027
jQuery Ajax call to WCF service returning "Method not allowed (405)"
<p>I created a WCF SOAP service using VS 2008 that works server side. I tacked on the code below to call the same service/contract client side using jQuery/json (no ASP.NET scriptmanager). When I put the service url into the browser, I get the correct service page and when I invoke the service from javascript and tra...
0
1,175
How to make a POST request using AJAX in a Chrome Extension?
<p>I am attempting to make an ajax call when the browser is on my webpage it works perfectly but as soon as I leave my domain, it fails. This is for a closed system that user knows they are being tracked so nothing shady going on. I am receiving an error 406 on everything outside of my domain. For example if I on my ur...
0
1,594
How to properly use multiple controllers in Spring MVC
<p>I am trying to use 2 controllers with one dispatcher servlet in Spring MVC. But I am running into 404 errors when trying to render the views. The dispatcher is pretty straightforward, from web.xml:</p> <pre><code>&lt;servlet-mapping&gt; &lt;servlet-name&gt;dispatcher&lt;/servlet-name&gt; &lt;url-pattern&gt;...
0
1,069
The Fibonacci sequence using threads in C
<p>I wrote a program in C to generate a Fibonacci sequence with n numbers where each Fibonacci number created by a separate thread, the parent thread outputs whole produced Fibonacci sequence yet I got wrong sequence for n>2 it some how rewrite the value of the last element in the Fibonacci sequence array to 0 if n>2...
0
1,469
[Error: failed to connect to [localhost:27017]] from NodeJS to mongodb
<p>I am having problem connecting to MongoDB from NodeJS using following sample code. I tried running "mongod" with or without sudo but nodejs code still fail to connect. I am able to successfully connect to database using "mongo". </p> <p>Running on : MAC OS 10.6.8</p> <pre><code> var mongoClient = requ...
0
1,026
Liquibase generate changelog from JPA entities
<p>I have a Spring boot, spring data jpa project with a parent and three children modules. One of my modules is responsible for my JPA entities. I need generate one xml changelog with liquibase from this entities.</p> <p>In my liquibase.properties i have the code:</p> <pre><code>changeLogFile=src/main/resources/db/ch...
0
2,635
socket() returns 0 in C client server application
<p>I'm working on an application that contains several server sockets that each run in a unique thread.<br/> An external utility (script) is called by one of the threads. This script calls a utility (client) that sends a message to one of the server sockets.</p> <p>Initially, I was using <code>system()</code> to exec...
0
1,504
VBA Short-Circuit `And` Alternatives
<p><strong>VBA doesn't short-circuit</strong></p> <p>VBA does not support short-circuiting - apparently because it only has bitwise And/Or/Not etc operations. From the <a href="http://msdn.microsoft.com/en-us/library/ee156946.aspx">VBA language specification</a>: "Logical operators are simple data operators that perf...
0
1,262
Why does a generic method inside a trait require trait object to be sized?
<p>I have this code (<a href="https://play.rust-lang.org/?gist=44d0f4ac393f7244d29780e43b702fb1&amp;version=stable&amp;backtrace=0" rel="noreferrer">playground</a>):</p> <pre><code>use std::sync::Arc; pub trait Messenger : Sync + Send { fn send_embed&lt;F: FnOnce(String) -&gt; String&gt;(&amp;self, u64, &amp;str,...
0
1,192
"Connection Refused" on Docker node container
<p>I am attempting to run a simple Angular 1.5 app on my Mac within the a custom image built from the official Node image <a href="https://hub.docker.com/_/node/" rel="nofollow noreferrer">here</a> but I get a "Connection Refused" error when attempting to access the site running inside the container. I am able to run t...
0
2,600
HTML5 Structure - <article>, <section> and <div> usage
<p>Good Day,</p> <p>I just started to learn HTML5 - have no issues, everything's going perfectly.</p> <p>I have only one, small question about semantic usage of <code>&lt;article&gt;</code>, <code>&lt;section&gt;</code> and <code>&lt;div&gt;</code> tags.</p> <p>I know that <code>&lt;div&gt;</code> element has no sem...
0
2,612
RatingBar onClick
<p>I have a ListView that uses different XML files to create Views and make items out of. One of these XML files contains a RatingBar. Everything displays and looks excellent.</p> <p>I'm trying to attach an onClick handler to the RatingBar to launch a new Activity. My RatingBar is of style ?android:attr/ratingBarSt...
0
1,243
Sending email via GMail in .NET
<blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/1082216/gmail-smtp-via-c-net-errors-on-all-ports">GMail SMTP via C# .Net errors on all ports</a> </p> </blockquote> <p>I am getting the following error when I try to send an email in my C# program. I am using V...
0
1,453
'React' was used before it was defined
<p>I am working with create-react-app + typescript + eslint application and during build have such error:</p> <pre><code>Line 1:8: 'React' was used before it was defined @typescript-eslint/no-use-before-define </code></pre> <p>Code in my component starts with:</p> <pre><code>import React from &quot;react&quot;; </cod...
0
1,147
Flutter Scaffold.of(context).openDrawer() doesn't work
<p>I want to open a drawer after pushing on the custom button in BottomMenu I have trouble with Scaffold.of(context).openDrawer(), it doesn't work. My BottomMenu is a <strong>separate</strong> widget class. As I understand, it doesn't work because it's a separate context. How can I get the right context? Or perhaps s...
0
1,762
How can I animate a progressive drawing of svg path?
<p>I want to animate a progressive drawing of a line using only css with svg/canvas and js maximum. An idea of the line I want to draw can be found <a href="http://jsfiddle.net/6btNN/" rel="noreferrer">here</a></p> <pre><code>&lt;svg width="640" height="480" xmlns="http://www.w3.org/2000/svg"&gt; &lt;!-- Created with...
0
1,844
Python Error ValueError: invalid literal for int() with base 10 ' '
<p>I am new to Python 3.3 and I am starting to write a little guessing game using sockets. However I keep getting the error <code>ValueError: invalid literal for int() with base 10: ''</code><br> I can't see why I get this error in the line <code>currentGuess = int(currentGuess)</code> as I have a similar line earlier ...
0
1,067
Symfony 2.2 upload files
<p>It's been a while since I uploaded files with Symfony2 and it seems that everything has changed, follow the guide in <a href="http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html" rel="noreferrer">How to handle File Uploads with Doctrine</a> but is outdated and dont work.</p> <p>when i try to bind the...
0
1,073
Android java.lang.OutOfMemoryError?
<pre><code>04-25 08:19:10.111 2431-2603/com.example.francesco.guidedautorewithtabs E/art﹕ Throwing OutOfMemoryError "Failed to allocate a 4194316 byte allocation with 1983651 free bytes and 1937KB until OOM" 04-25 08:19:10.114 2431-2603/com.example.francesco.guidedautorewithtabs E/AndroidRuntime﹕ FATAL EXCEPTION:...
0
4,315
Bootstrap btn-block not working
<p>I'm trying to expand the submit button so that it is the size of the password field. I am using the code btn-block but it's not working.</p> <pre><code>&lt;div class="container"&gt; &lt;div class="row" style="margin-top:60px;"&gt; &lt;div class="col-md-4 col-md-offset-4"&gt; &lt;div class="span12" sty...
0
1,192
Hint in Search Widget within Action Bar is not showing up
<p>I have a Search Widget within an Action Bar. I have set up an android:hint value however It is not showing up when I click on the Search Icon. </p> <p>Relevant Files : </p> <p>MainActivity.java</p> <pre><code> package com.example.myApp; import android.os.Bundle; import android.app.ActionBar; import android.app....
0
1,407
Primefaces 3.0 DataTable inCell editing , RowEditEvent doesn't retrieve updated field
<p>I am working on a sample app with primefaces 3 , using datatables incell editing mode. Although when i edit , i see the event.getObjects gives me the object which is not modified.</p> <p>Changed the property of the object on debug mode, it does update.</p> <p>So i couldn't figure out why i cant get the edited prop...
0
1,854
Primefaces Datatable RowSelect Event
<p>I have the following in my xhtml</p> <pre><code> &lt;h:form id="clientTableForm" prependId="false"&gt; &lt;p:dataTable id="clientTable" widgetVar="clientTableVar" var="client" value="#{resendEmailController.lazyDataModel}" paginator=...
0
1,667
Unpickling dictionary that holds pandas dataframes throws AttributeError: 'Dataframe' object has no attribute '_data'
<p>I have a class that performs analyses and attaches the results, which are pandas dataframes, as object attributes:</p> <pre><code>&gt;&gt;&gt; print(test.image.locate_DF) y x mass ... raw_mass ep frame 0 60.177142 59.788709 33.433414 ... 242.080256 NaN 0 1 ...
0
2,547
Vue.js - Vuetify layout issue with v-card
<p>When I insert a text inside a v-card-text tag ,the v-card is <a href="https://i.stack.imgur.com/fG4iQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fG4iQ.png" alt="centered"></a> centered in all viewports</p> <p><strong>html</strong> </p> <pre><code>&lt;div id="app"&gt; &lt;v-app id="inspire...
0
1,621
UITextView wraps text when built with iOS 7 SDK
<p>I have a <code>UITextView</code> inside a <code>UIScrollView</code> that worked perfectly fine on <code>iOS 6</code> built from <code>xcode 4.x</code>, however now building with <code>xcode 5</code> it doesn't work properly, even on <code>iOS 6</code>.</p> <p>The problem is the text wraps with the screen width even...
0
1,092
Chromedriver --screenshot not working in headless mode?
<p>I'm using new chrome driver headless mode (Chrome v59, mac os) with webdriver. but unfortunately, screenshot option given in headless mode is not working for me. following code shows the chrome options configured.</p> <pre><code>chromeOptions.addArguments("headless"); chromeOptions.addArguments("disable-gpu"); chro...
0
1,796
Android SQLite SQLiteOpenHelper IllegalStateException - DB Already Closed Error
<p>This has been driving me crazy for a few days now. I have an android application that is pretty complex. It uses multiple threads to pull data from a server and populate the SQLite database. I'm using a singleton to reference my extension of SQLiteOpenHelper. I'm opening and closing the database in each of my ac...
0
1,062
matplotlib: how to prevent x-axis labels from overlapping
<p>I'm generating a bar-chart with matplotlib. It all works well but I can't figure out how to prevent the labels of the x-axis from overlapping each other. Here an example:<br> <img src="https://i.stack.imgur.com/BCm0v.png" alt="enter image description here"></p> <p>Here is some sample SQL for a postgres 9.1 database...
0
1,246
ClassNotFoundException for SignInConfiguration when signing in with Google
<p>I'm implementing Google login to an app. The login itself seems to work okay, but the moment I request either the user's e-mail or ID token I see the following stack trace in the log and the status from <code>GoogleSignInResult</code> as <code>Status{statusCode=unknown status code: 12500, resolution=null}</code></p>...
0
2,820
Flutter: Initialising variables on startup
<p>I'm trying to use the values saved in the SharedPreferences to initialise several variables in my app. In Flutter, the SharedPreferences are asynchronous so it results in the variables initialising later on in the code which is creating problems with my app as some of the variables are null when the build method is ...
0
1,783
Android SQLiteException: Failed to change locale for db to 'en_US'
<p>I recently updated one of my (open-source) Android apps and my users are getting an exception that I can't replicate. The key parts are : </p> <p><code>android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5)</code> </p> <p>and then </p> <p><code>Caused by: android.database.sqlite.SQLite...
0
1,305
Uploading a file using Spring MVC and Thymeleaf
<p>I am trying to upload a file to the server using a spring controller. </p> <p>This is my web config:</p> <pre><code> @Bean public CommonsMultipartResolver multipartConfigElement() { CommonsMultipartResolver commonsMultipartResolver = new CommonsMultipartResolver(); commonsMultipartResolver.setDefa...
0
1,784
Tiller: dial tcp 127.0.0.1:80: connect: connection refused
<p>From the time I have upgraded the versions of my eks terraform script. I keep getting error after error.</p> <p>currently I am stuck on this error:</p> <blockquote> <p>Error: Get <a href="http://localhost/api/v1/namespaces/kube-system/serviceaccounts/tiller" rel="nofollow noreferrer">http://localhost/api/v1/name...
0
1,066
Showing login view controller before main tab bar controller
<p>I'm creating an iPad app with a tab bar controller that requires login. So on launch, I want to show a LoginViewController and if login is successful, then show the tab bar controller. This is how I implemented an initial test version (left out some typical header stuff, etc)...</p> <p>AppDelegate.h:</p> <pre><c...
0
1,344
What does LISTAGG with ORDER BY NULL actually use as the order criteria?
<p>If I do</p> <pre><code>SELECT LISTAGG( COLUMN_VALUE ) WITHIN GROUP ( ORDER BY NULL ) AS OrderByNULL, LISTAGG( COLUMN_VALUE ) WITHIN GROUP ( ORDER BY 1 ) AS OrderByCONST, LISTAGG( COLUMN_VALUE ) WITHIN GROUP ( ORDER BY ROWNUM ) AS OrderByROWNUM FROM TABLE( SYS.ODCIVARCHAR2LIST( '5', '222', '4'...
0
1,253
How do I increase or decrease the size of a button in Swift?
<p>I have a <code>UIButton</code> in my app that I call "buttonPlay". I am using AutoLayout but the button doesn't have any <code>NSLayoutConstraints</code> attached to it.</p> <p>I would like to code an animation <strong>to increase and the decrease the height and the width</strong> of the button. Here's how the anim...
0
1,114
Take advantage of ARM unaligned memory access while writing clean C code
<p>It used to be that ARM processors were unable to properly handle unaligned memory access (ARMv5 and below). Something like <code>u32 var32 = *(u32*)ptr;</code> would just fail (raise exception) if <code>ptr</code> was not properly aligned on 4-bytes.</p> <p>Writing such a statement would work fine for x86/x64 thoug...
0
1,474
How do I find Linux config options in menuconfig?
<p>Various web pages tell me that to get full truthful stack backtraces in the Linux kernel, I need to set <code>CONFIG_FRAME_POINTER=y</code> in my .config file. So I run <code>make menuconfig</code> and try to find it in there, but it's hardly intuitive where to navigate to do so. I search the web and find lots of pa...
0
1,404
Cannot install anything with brew, Error: Failed to download resource "git--html"
<p>Whenever I try and run <code>brew install &lt;app&gt;</code>, such as <code>brew install git</code>, i get the following error:</p> <pre><code>$ brew install git Updating Homebrew... Warning: You are using macOS 10.10. We (and Apple) do not provide support for this old version. You will encounter build failures with...
0
1,958
SQL how to update table rows with one SQL statement
<p>I have a table with 2 columns for storing application settings in Oracle database. This is a just basic example:</p> <p><img src="https://i.stack.imgur.com/Fau9D.png" alt="enter image description here"></p> <p>I want to create a java method which updates the values with prepared statement.</p> <p>Example code:</p...
0
2,544
My a href doesn't work in my ul html5
<p>Please help I have spent so long on this and cannot find the answer. I have an a href in a ul and have tried to write everything in html5. I am using KomodoEdit to write the html and everything works fine in there - links and all. I have used the HTML5 validator and my code passes. Here is my html file - when I ...
0
4,968
Java: SSL Clientside Authentication with self-signed certificates
<p>I'm trying to secure a connection from a Java Client/Server application that communicates over the Internet. My idea was to use SSL sockets with self-signed certificates and client authentication. I did the following:</p> <ul> <li>Server: Keystore containing new self-signed certificate. <code>keytool -genkey -kelal...
0
2,531
Call to a member function getClientOriginalExtension() on a non-object even with 'file' => true
<p>I am getting a "Call to a member function getClientOriginalExtension() on a non-object", even though I have taken advice I have found to eliminate it, including adding 'files' => true to my {{ Form::open }}. </p> <p>Any idea what step I am getting wrong?</p> <p><strong>EDIT</strong> here is my routing</p> <pre><...
0
2,232
Spring Security Login Error : HTTP Status 404 - /j_spring_security_check
<p>Hi I am trying to configure spring security on my application.But once I enter the username and password and submit the form, I get error</p> <p><code>HTTP Status 404 - /j_spring_security_check The requested resource is not available.</code></p> <p><img src="https://i.stack.imgur.com/Z2JKl.png" alt="enter image de...
0
4,499
How to load public certificate from pem file?
<p>I was trying to extract RES public key from the file below</p> <pre><code>-----BEGIN CERTIFICATE----- MIIGwTCCBamgAwIBAgIQDlV4zznmQiVeF45Ipc0k7DANBgkqhkiG9w0BAQUFADBmMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSUwIwYDVQQDExxEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBDQS0zMB4XDTEyMTAzMD...
0
1,970
Multiple JWT authorities/issuers in Asp.Net Core
<p>I'm trying to get JWT bearer authentication in an ASP.Net API gateway using Ocelot to work with multiple authorities/issuers. One issuer is Auth0 and the other is an in-house authentication server based on IdentityServer4; we are trying to migrate away from Auth0 but have external clients that still depend on it, so...
0
1,233