title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Django admin site is not showing default permissions of models
<p>My Django admin site does not show any default permissions of any models. Actually, I checked the database and I can't find any model permission in the <code>auth_permissions</code> table.</p> <p>I've already run <code>python manage.py makemigrations</code> and <code>python manage.py migrate</code>. I also tried del...
3
2,206
Get a .txt from the Internet, compare it and open a dialog in an AsyncTask
<p>I want to check, if there is an update for my app. For this I put up an txt file online with just an integer of the latest app version. This should get compared with the running app version and when there is a newer version, open a dialog for the user to give the choice of open a link to the new .apk in the browser ...
3
2,352
Angular: E2E Test via login page
<p>I have an Angular application using an Express.js backend. It features a default address pathway to a login page <code>/avior/login</code>. I need to write an E2E Test for the whole application and I just started writing the first test part which is supposed to recognize the login page and login itself and then chec...
3
3,171
Listview taking too long to update C#
<p>I have a problem I have been stuck on for ages, was hopinh you can all help please.</p> <p>I have a listview which populates with data from my database upon the programs first load.</p> <p>In my program I have a button which 'Refreshes' this listview by wiping all of the data out of the listview and running the s...
3
1,289
ComplexityObject ksoap2 Android Magento error
<p>I'm trying to use ksoap2 in order to create an order on a remote Magento installation. I'm able to perform basic operations with the SOAP v2 Api but I got stuck on a complexity object.</p> <p>This is the part of the wsdl I'm trying to interface with</p> <pre><code>&lt;complexType name="shoppingCartProductEntityArr...
3
1,044
How to solve a system of stochastic differential equations with time dependent parameters in R?
<p>I am trying to solve this system of SDEs in R, dX = (-X*a + (Y-X)<em>b + h)dt + g dW and dY = (-Y</em>a + (X-Y)*b)dt for time [0,200], a=0.30, b=0.2, g=1 and h is 1 for time [50,70] and 0 otherwise. I have the following code for the system for constant h=1:</p> <pre><code>library(diffeqr) ##for solving ODEs SDEs DD...
3
2,038
Reload <ul> with event handler function
<p>I am extremely new to JavaScript/HTML/CSS. As a first website project I am working on my online shop using Shopify.</p> <p><a href="https://tpvm5oi54gjh03pr-51451003036.shopifypreview.com/collections/lo-mas-popular/products/cilindro" rel="nofollow noreferrer">This is My Website</a></p> <p>I am trying to update the l...
3
1,272
Xamarin Essentials MediaPicker not working on iOS
<p>I'm using Xamarin Essentials MediaPicker (v1.7.3) on my Xamarin Forms 5 app and it just freezes and eventually crashes the app on iOS but works perfectly fine on Android.</p> <p>My app uses the <code>MVVM</code> pattern so I have an <code>ImageButton</code> that's wired to a method in my view model and the code for ...
3
1,296
Firebase Crashlogs leads me astray (iOS crash log)
<p>I have a bug in my app which I am not able to reproduce on my own device and the firebase crash log doesn't really help me. Or maybe I am not able to understand it correctly. What is really weird is that it tells me lines of code where the crash happens which is in the millions.</p> <pre><code>Crashed: com.apple.mai...
3
1,578
How I add extra table under the third mainpanel to shiny app
<p>I have put together a shiny app. Now, I need to add another panel to that but by simply adding extra mainplanel to the code, my other two panels being deactivated</p> <p>This is my app</p> <pre><code>navbarPageWithText &lt;- function(..., text) { navbar &lt;- navbarPage(...) textEl &lt;- tags$p(class = "navb...
3
5,130
SelectList in QueryOver
<p>I have some problem with selecting by QueryOver, here are my model classes:</p> <pre><code>public class BaseModel { public virtual int Id { get; set; } public virtual DateTime ModifyDate { get; set; } public virtual DateTime CreateDate { get; set; } public virtual User CreateUser { get; set; } p...
3
2,092
Django images uploaded by admin will not display in production or development
<p>I have Django 1.10 and whitenoise 3.3 and the website is deployed on Heroku. My static files are fine in development and production. My media files, however do not load in production and development. </p> <p>When debug = True, the media files render properly in both production and development. What I really want is...
3
4,742
Adding items to VB.NET ListView and having them shown in the order they were added
<p>I am creating an app launcher - that is basically a ListView with a "group" of shortcuts files ( ie images associated with a shortcut and the text is the name of the shortcut ) in it. It's all been working fine and dandy, except this last thing that I want to do. The apps that appear in the listview are stored in ...
3
1,125
IndexError: tuple index out of range BLSTM
<p>Please Help me, i want to generate and evaluating accuracy of text summarize model. When i call the evaluating model and generating text from the vector, i just got error tuple index out of range, and what i know the shape in the model was already customized by me.</p> <p>This is the code :</p> <pre><code>MAX_LEN = ...
3
1,344
i want to make my layout non focusable
<p>i want to make my layout non focusable ie: i want the user can not click the buttons on the layout until the parsing is done i have done to make button non clickable and clickable when parsing is done</p> <p>but if i can make the layout non focusable</p> <pre><code>protected void onCreate(Bundle savedInstanceStat...
3
7,991
SetBackgroundColor to listview item on Custom Adapter does not work
<p>I have a working Custom Adapter that I have put to a listview.<br> I now add 15 items successfully.</p> <p>I now try to set the background color on item 3 to orange. This work!</p> <p>However when I scroll down and up, the background color dissapears.<br> How can we prevent this?</p> <p>//MENU.axml with the list...
3
2,155
how do I output the filtered todo list in React TypeScript
<p>It is console logging the right array out all the time, but the point here is that it should be outputting that in the 'TodoList.tsx'. Not sure how to get that fixed in this case. Anyone who could help me with this. To see the bigger picture, please click on this link:</p> <p><a href="https://codesandbox.io/s/githu...
3
1,505
Azure DevOps WorkItem Tracking not working when code generated
<p>I have a problem with azure devops workitem tracking. So we want to use WorkItem tracking for work items, that do not need changes in our source code.</p> <p>Currently we are tracking Builds and Releases with C# and the <code>Microsoft.TeamFoundation.WorkItemTracking</code> NuGet packages.</p> <p>The visualization f...
3
1,202
Visual Studio Online Build and Release - Copy files to another project
<p>In a solution, I have three projects (for the sake of this example):</p> <h3>- MyWebJob</h3> <h3>- MyFrontendWebsite</h3> <h3>- MyBackendWebsite</h3> <ul> <li>/Views/EmailTemplates/SomeEmailTemplate.cshtml (file in MyBackendWebsite)</li> </ul> <p>When deployed, <strong>MyWebJob</strong> runs as we webjob below <stro...
3
1,045
Client not receiving new message sent from Controller after save
<p>I have a project generated with jhipster 3.12.2 and I'm trying to send an Alarm message through websockets from my controller after I have saved it to the db. The RestController can be called from the jhipster frontend (create new entity) or from a mobile application which send HTTP POST.</p> <p>For some reason my...
3
2,109
Firebase Database Get All Value In Order Cloud Functions
<p>I develop for Firebase Cloud Functions. I have a Firebase Realtime Database like this:</p> <pre><code>----- myData -------eqewrwrepere (this one is a device token) ---------Lta+sde-fer (this one is a firebase id) firstvalue : "a" ...
3
2,012
unable to make 2nd circle follow its own path
<p>I am unable to create more circles which follows its own path with drawCircle . </p> <p>I have used the code below which creates another circle but follows the path along the lines of 1st circle but not independent .How do I move both circles independent of each other?</p> <p>I have added </p> <pre><code> c.d...
3
5,721
How to protect spammers to apache?
<p>I have the following for <code>www.domain.com</code> and <code>login.domain.com</code>. But spammers forward there site to <code>login.domain.com</code> and it works. How can I block them?</p> <p>Ex: <code>http://spammerexmaple.sex.com</code> opens <code>http://login.domain.com</code> (I want to block this)</p> <p...
3
1,328
onNextStep is not a function, functional components
<p>I have a parent component with the state which is number, and I'm passing state to RegistrationForm component and <code>setActiveForm</code> to StepperComponent. In the stepper Component, there is a button on which click it should change state. But I'm getting 'onNextStep is not a function'</p> <p>Parent component:<...
3
2,474
Draggable text box scales more than expected
<p>I made a text box and boxes on the corners for resizing. The first time I drag, it works perfectly fine, but after the 1st time, the dragging amount seems to multiply. (Don't mind the position of the dragging nodes). If you drag once, it scales fine with the mouse. It seems as if every time after that, when you drag...
3
3,765
Prevent related records being updated in Entity Framework
<p>I have an entity (Skill) which has a relationship to another entity (Game):</p> <pre><code> public class Skill { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Key] public Guid Id { get; set; } public virtual Game Game { get; set; } public virtual IdentityUser TeamMember { get; set; } ...
3
1,443
Grid items are off center
<p>Whenever I resize the browser to max, everything works but the cards in the packages section aren't center. What am I missing?</p> <p><a href="https://jolly-poitras-00d5ec.netlify.app/" rel="nofollow noreferrer">https://jolly-poitras-00d5ec.netlify.app/</a></p> <p><div class="snippet" data-lang="js" data-hide="fal...
3
1,615
How to make a selector of extended state from a entity feature inside ngrx?
<p><strong>Problem:</strong> This selector <code>entity.selectAll</code> will not include the extended state.</p> <h2><strong>Question:</strong></h2> <p><strong>How do I include my extend state inside selectAll OR how can I create a custom selector for my selected state?</strong></p> <p>My UxeGallery Model is: </p> ...
3
1,259
How to avoid reading data from R environment within Rcpp function
<p>Even though <code>MyCppFunction(NumericVector x)</code> returns the desired output, I am not sure of a proper/efficient way to avoid reading the data on variable <code>myY</code> withou passing it as a function argument.</p> <p>The reason I do not pass the data as an argument is that I will eventually pass the C++ ...
3
1,548
Cascading drop down list (SubLocality) not working in asp.net mvc
<p><strong>I have three dropdown List.The First action method for City drop down is as---</strong></p> <pre><code> public ActionResult Create() { List&lt;SelectListItem&gt; li = new List&lt;SelectListItem&gt;(); li.Add(new SelectListItem { Text = "Select your City", Value = "----...
3
3,304
Accessing the value of query returning list in controller
<p>Here is my schedule class</p> <pre><code>[Table("Schedules", Schema = "Expedia")] public class Schedule { [Key] [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)] public int ScheduleId { get; set; } [ForeignKey("Inventory")] public int FlightId { get; set; ...
3
1,118
Run multiple classes in the same time?
<p>hi i am new to android encoding , i need a sample program that read data from the accelerometer and send them via wifi to my pc </p> <p>i have the accelerometer program that works fine and also a program that send data via wifi to my pc </p> <p>so the problem is that i dont know how to combine this two programs as...
3
3,436
Panning in SharpGL distorts image
<p>I have this code in SharpGL where zoom and pan were implemented. This is de draw method:</p> <pre><code>private void OpenGLDraw(object sender, SharpGL.WPF.OpenGLRoutedEventArgs args) { // Enable finish button if (openFileOk &amp;&amp; dispCBOk) { finish_btn.IsEnabled = true; } else { finish_btn.IsEnabled...
3
1,117
Bootstrap 4 Cards - How to set 2 cards in the row
<p>How can i make 2 cards to seem next to eachother, in same row while the view is horizontal?</p> <p>My code:</p> <pre><code>h2 { display: block; font-size: 2.50em; margin-top: 0.25em; margin-bottom: 0.25em; margin-left: 0; margin-right: 0; font-weight: bold; } *{ box-sizing: border-box; } card-deck{ /*Ass...
3
2,872
Analog clock app state stopping when submitting form
<p>I am working on this React app to make an Analog Clock with optional Inputs available to the user to change the color of the clock hands, clock border, etc.</p> <p>But when I try to press the submit button sometimes, the second hand stops moving all of a sudden and seems like the 'time' states are not changing. The ...
3
2,304
How to make the filtering queries more efficient using flask sqlalchemy?
<p>I have a following table in a flask app</p> <pre><code>class Price(db.Model): __tablename__ = "prices" id = db.Column(db.Integer, primary_key=True) country_code = db.Column(db.String(2), nullable=False) value = db.Column(db.Float(precision=2), nullable=False) start = db.Column(db.DateTime(timezo...
3
2,157
Add a Chronometer Ticklistener and change the text color in a custom Android Notification
<p>I create a foreground service with a custom notification and want to add a <code>TickListener</code> and change the text color of the chronometer. The notification is displayed as defined in the XML file and can not be changed afterwards. If I change the text color or add a listener nothing happens. </p> <pre><code...
3
1,877
Can't get my if statement to work with html form input in js
<p>Without my if statement I'm able to store the data but when i want to check against an html form value, Im unable to do so. P.S I'm fairly new to js so please bear with me. </p> <pre><code>&lt;script&gt; var signupForm = document.getElementById('signup-form'); var signupSuccess = document.getElementById('signup-s...
3
1,814
Error while setting the marker listener on Google map in android api 10
<p>I am trying to add the marker listener by implementing the <strong>OnMarkerClickListener</strong> and setting <strong>googleMap.setOnMarkerClickListener((OnMarkerClickListener)this)</strong> </p> <p>It is working fine with the actual device but giving the <strong>NullPointerException</strong> error on the emulator....
3
1,942
Changing cursor when rendering a JList
<p>I've achieved what I'm trying to do, but I can't help but to think there is a more efficient way...allow me to illustrate.</p> <p>In short, the question I'm asking is if there's a way to determine when a component has finished it's initial rendering.</p> <p>I have a JList, which is hooked up to a DefaultListModel ...
3
1,763
Is there something wrong with my CMakeLists?
<p>The following is my CMakeLists file. By default, I expect it to define the symbol ALLEGRO_STATICLINK in the agui_allegro5 library, but it does not, however when I check off WANT_SHARED it defines it, which it shouldnt, but does not define AGUI_BACKEND_BUILD as it should. Is my logic flawed or something?</p> <pre><c...
3
1,689
Should I use LinearLayout or RelativeLayout to have 4 objects fill a screen?
<p>I am learning about the difference between <code>LinearLayout</code> and <code>RelativeLayout</code> and am confused about the best way to solve my specific problem. I want to have 4 buttons fill a screen, each with some different action. After having trouble with <code>RelativeLayout</code>, I was recommended to sw...
3
1,207
Cross browser support for get and set properties
<p>My goal is to implement get and set properties on Javascript objects.</p> <p><code>Object.defineProperty</code> seems to be supported in IE9+ on a non DOM <code>Object</code>. I want it to work down to IE7.</p> <p><code>__defineGetter__</code> is <a href="https://developer.mozilla.org/en-US/docs/JavaScript/Referen...
3
1,311
What is the correct foreign key constraint syntax for a database migration in Laravel 8.X Eloquent?
<p>I am a Laravel and Eloquent noob.</p> <p>I'm trying to do a simple foreign key in a &quot;checklist items&quot; table that takes the primary ID from the &quot;users&quot; table as a foreign key.</p> <p>Here are my two database migrations:</p> <p>users:</p> <pre><code>&lt;?php use Illuminate\Database\Migrations\Migr...
3
1,697
How to @Autowire generic type to inner generic class' bean without xml configuration?
<p>I have a generic class DefaultBatchReportService. I want to pass different POJO class, Service &amp; Dao into this generic class.</p> <p>However, I find difficulties in passing specific classes to generic abstract class with inner autowired generic class.</p> <p>I got errors as following:</p> <blockquote> <p>Fe...
3
4,493
How I can get only div. Without content (javascript)
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>var desc = document.querySelectorAll(".desc"); function change() { var how = desc.length; for(var i = 0; i &lt; how; i...
3
1,594
Show specific text from a php loop of database results using jquery
<p>I have selected data from my database and I have looped through the results to display them on my page. I have 3 results which are shown. Each result has a button with an id called decrease. When I click this button, an alert with the name of the item containing the alert button should be displayed. I am using jQuer...
3
1,171
Fail to start HBase in Pseudo-Distributed mode throws "Failed construction RegionServer"
<p>I am trying to run HBase pseudo-distributed in a docker image of ubuntu.</p> <p>After start-hbase.sh, HMaster and RegionServer don't run properly.</p> <p>Both RegionServer and Master log shows:</p> <pre><code>ERROR [main] regionserver.HRegionServer: Failed construction RegionServer java.io.IOException: Couldn't crea...
3
1,994
ASP.net core: Model is null during rendering a page to string
<p>I want to render a page as email template. <br> But I get an error when the renderer wants to use the model <br> I follow this tutorial: <a href="https://www.learnrazorpages.com/advanced/render-partial-to-string" rel="nofollow noreferrer">learnrazorpages.com</a></p> <p>RazorRenderer.cs:</p> <pre><code>public class R...
3
1,534
dependency injection in asp.net core with generic parameters
<p>I am getting the following error during usage of service collection:</p> <blockquote> <p>Error while validating the service descriptor 'ServiceType: HappinessMeter.BL.GenericBL.IGenericBL'1[HappinessMeter.Entity.Models.MCountry] Lifetime: Singleton ImplementationInstance: HappinessMeter.BL.EFCoreCountryBL': Constant...
3
1,157
Could this publish / check-for-update class for a single writer + reader use memory_order_relaxed or acquire/release for efficiency?
<h1>Introduction</h1> <p>I have a small class which make use of std::atomic for a lock free operation. Since this class is being called massively, it's affecting the performance and I'm having trouble.</p> <h1>Class description</h1> <p>The class similar to a LIFO, but once the pop() function is called, it only retur...
3
2,225
Cant display values from a bean method into <table>
<p>I have this problem. i implemented this table in my xhtml:</p> <pre><code> &lt;table id="tbResult" class="table table-bordered table-striped"&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;#{msg.Sgc001tbcod}&lt;/th&gt; &lt;th&gt;Browser&lt;/th...
3
1,362
How to add empty value from gridview cell to list?
<p>I want to enter guest details(Title,Firstname,midname lastname) in a <code>list&lt;string&gt;</code> ,the guest details can be empty.I'm using LINQ for inserting in the list.I had referred this question for the LINQ code <a href="https://stackoverflow.com/questions/21314109/datagridview-write-all-values-from-a-colum...
3
1,117
Open Source Spell Check for javascript Typo.js
<p>As I try to use the typo.js spell checker in my file. But it's throw some error's I can't find the solutions. I just followed the Typo.js Documentation Here is the document link. <a href="https://github.com/cfinke/Typo.js/" rel="nofollow noreferrer">https://github.com/cfinke/Typo.js/</a> Kindly check the below issue...
3
1,710
C Pthread taking much longer than single threaded
<p>I've made a matrix multiplier piece of code designed to quantify how much faster threading is for each size of matrix. The code where threads are made and executed is below. I'm new to threading but whenever I use threading it seems to take about 12 times longer, am I doing something wrong or does anyone know why it...
3
1,070
EJB, JPA/Hibernate. I cannot make an insert in a database
<p>I am using Glassfish, EJB, JPA and Hibernate as a JPA implementation. I can get a select from a database via JPA but an insert does not work. Looks like a problem with JTA(may be a transaction was not completed or I use an another transaction) Persistence content does not flush to a database. The same code works pro...
3
3,964
Creating user accounts for pre-registered users in Django
<p>I have a website that has a registration system and a blog with some registered users. Yesterday, I added a new app that creates dedicated profile pages for each one of those users. </p> <p>The issue being, the profile pages aren't getting created for the users that have already registered. This is, I guess because...
3
2,417
Adding TextView into another layout programatically
<p>I am strugling with one problem. I have got one main view with two layouts inside it:</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" t...
3
1,705
error: no matching member function for call to 'upper_bound' => only on macOS => Windows and Linux are fine
<p>I'm compiling a code inspired by <a href="https://codereview.stackexchange.com/q/158369/141750">this</a> with Qt Creator. Code compiles fine on Windows 10 and openSUSE Leap 15 but throws this error on macOS High Sierra:</p> <pre><code>error: no matching member function for call to 'upper_bound' auto end = b...
3
1,363
vba - saving file to my personal desktop code
<p>I have the following code which is designed so I can quick save to my desktop and then put the file into a folder. This code works fine if the file is already saved in an .xls, .csv, .xlsx or .xlsm file extension, however, when the file IS NOT saved, I only get the pop-up message boxes, and nothing happens. I was th...
3
1,325
Problems building a flooding script that uses sockets
<p>I'm trying to improve 2 projects of flooders (not mine) making my own script that these 2 ones. Doing that, I've almost finished but I'm stuck in a point where the script does nothing. Here is the code:</p> <pre><code>import socket, threading, random, time, urllib.request, re, os.path from bs4 import BeautifulSoup ...
3
2,252
Floating div's left or right depending on variable WITHOUT columns
<p>I'm modifying my current build of one of my pages where there are X amount of boxes with varying content in each box, some float to the left, some float to the right and some fill the whole column space. The way this is currently done is like this:</p> <p><strong>HTML</strong></p> <pre><code>&lt;div class="doubleC...
3
1,138
how to programmatically show a colored disk behind a UIImageView, in swift on an iOS device
<p>I have an icon that I programmatically display.<br /> How can I display a solid, colored disk behind the icon, at the same screen position?</p> <p>Icon is opaque.</p> <p>I will sometimes programmatically change screen position and disk's diameter and color.</p> <p>Here's how I programmatically display the icon now.....
3
1,424
windows spyder invalid syntax error while running py file
<p>I am trying to run the last example from the <a href="https://www.analyticsvidhya.com/blog/2019/08/comprehensive-guide-language-model-nlp-python-code/" rel="nofollow noreferrer">page</a>. I have cloned the repository in the directory <code>C:/Users/nn/Desktop/BERT/transformers-master</code>. I am on windows machine ...
3
4,353
Hello, I have some problems with ffmpeg.concat, there are logs
<p>Log:</p> <pre><code>[swscaler @ 0x27d3c10] [swscaler @ 0x2886fe0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x27d3c10] [swscaler @ 0x283be10] deprecated pixel format used, make sure you did set range correctly Output #0, avi, to '/home/pi/Desktop/VIDEOREG/2022:05:12_09:51:57:856...
3
1,502
Tkinter Scrollbar inactive untill the window is manually resized
<p>The scrollbar activates only when the window is rezised, despite reconfiguring the scrollregion everytime a widget(Button in this case) is added.</p> <pre><code>class Editor: def __init__(self,master): self.master = master self.master.resizable(True,False) self.ed...
3
1,787
How to create a “sessionId” column using timestamps and userid in PySpark?
<p>I have a data set which contains fields such as: userId, event, pageName, and timestamp, while lacking of the sessionId. I want to create a sessionId for each record based on the timestamp and a pre-defined value &quot;finish&quot; (which indicates after how many minutes of inactivity a session ends). Only users wit...
3
1,065
This loop only allows me to choose one option for various questions although they all have their varying options
<p>php code to loop through to fetch questions and answers from database. This is mainly where my problem is. I see all the questions and their options but I can only answer for one question </p> <pre><code>&lt;?php while ($data = mysql_fetch_assoc($result) ) { $qID = $data['QID']; $question ...
3
1,345
How can I get the current value from a variable when passing it to an event?
<p>I have the following problem. I'm making an ajax request to an API which returns a <strong>json</strong>. I iterate through the json object and list the results in li tags the tricky part comes here when I make the <em>li.OnClick()</em> event I need to pass the current index of the selected item but i always get the...
3
2,248
Why does interp1d throw LinAlgError("SVD did not converge")?
<p>I have a sequence of 2 dimensional points (so: (x,y) coordinates) and I want to fit a cubic spline through it. So I split the sequence in two sequences <code>xs</code>, <code>ys</code> with the following properties:</p> <ul> <li><code>len(xs) = len(ys) &gt; 4</code></li> <li><code>xs</code> is strictly increasing</...
3
1,952
Put Json/Jsonp data to a form using ajax
<p>The chinese map service "Tencent map" provides a Json/Jsonp URL to get the location information, the URL is like:</p> <p><a href="http://apis.map.qq.com/ws/geocoder/v1/?location=39.984154,116.307490&amp;key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77&amp;get_poi=1" rel="nofollow">http://apis.map.qq.com/ws/geocoder/v1/?loca...
3
1,185
Unable to implement CustomAuthenticationProvider with Spring Security: BeanCreationException while autowiring
<p>I am implementing CustomAuthenticationProvider in Spring Security. I have created the CustomAuthenticationProvider class which implements AuthenticationProvider. However, when I define this CustomAuthenticationProvider in my SecurityConfiguration class and autowire it, the application throws following error:</p> <p...
3
1,278
React and Axios Post payload formatting
<p>I'm really new to this so forgive me if I word things wrong. So right now I have a simple web UI with a text box for a Name, and then a checkmark selection box for a type, along with a submit button.</p> <p>Test code looks something like this:</p> <pre><code>value = &quot;val7&quot;; key = &quot;63&quot;; typeID = 1...
3
1,140
Fading element in the center of window by scrolling
<p>I use a script in which elements fade in from the left and right as soon as the respective element has been scrolled completely into view. The problem is, the fade-in remains until the element has completely disappeared from the field of view. I try to implement it in such a way that it fades out as soon as it is no...
3
6,936
Swift - Visual format language - how to make multiple rows and columns
<p>I just started swift programming and i'm facing difficulties with visual format constraints. I'm trying to make multiple tables of 3 by 6 rows and columns with and header on top of the table. I have added the names of the row and columns but it's not aligned in the expected (by me) order. The problem in below code i...
3
1,593
Microsoft Chart size varies on different build server despite defining the fixed height and width
<p>I have a problem where I am rendering MS Chart on Pdf on Active Report 6 (Picture control) through memory stream. I have encountered a problem where the size of my chart is varying based on the build server. Not sure which property is causing this issue. On few build machine the Chart is huge and on few the chart si...
3
1,177
Make my MySQL query less verbose
<p>The following query was a real challenge for me to build for a Wordpress site using the wordpress wp_post table and the wp_postmeta table and the wp_user table. It works perfectly but it contains a lot of repeated statements. I am not sure how to simplify this (or if it can be). Any tips for simplifying and ridding ...
3
1,693
Enable horizontal scroll in linear layout
<p>This is my layout without scroll and the out is <a href="http://i.stack.imgur.com/QQeXd.png" rel="nofollow">http://i.stack.imgur.com/QQeXd.png</a> . Inside the "AlphebtesLinearLayout" I am creating listView dynamically. And still some portion is hidden at right so I need to go for Horizontal scroll. </p> <pre><code...
3
3,362
SCSS Won't Compile, Throwing an Error
<pre><code>.sw-theme-default { -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3); box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3); .sw-container { min-height: 250px; } .step-content { padding: 10px; border: 0px solid #D4D4D4; background-color: #FFF; text-align: ...
3
2,544
How to use spring mvc with thymeleaf to iterate over a list?
<p><em>My goal is to cycle through a list of objects, some to be displayed on the screen, others to be passed into a form as an object of which I can define certain aspects and then return to the controller the object and attribute to be modified.</em></p> <p><em>The problem with the following approach is that the obje...
3
2,170
Python3: GUI later cannot display output properly?
<p>I'm designing a GUI application that converts between celsius and fahrenheit. For now, there're primarily two problems that I'm not able to tackle:</p> <p><strong>1)</strong> When I enter an integer that needs to be converted based on the given conversion formula, the Label from <code>tkinter</code> cannot display ...
3
1,247
How do I make a box that i can move. I am new to wxwidgets and wondering if there is a way to move a box
<p>The Image is what I currently have made, I plan to make an Elevator that can go up and down. I am unsure of how I would move a box such that it stays at the same x cords but changes the y cords. Any help is appreciated.</p> <p>This is for a project I am doing. The specifications state</p> <pre><code> &quot;In this p...
3
3,619
How to setup CMake to build code which contains path-includes like #include <libdir/lib>?
<p>I am trying to migrate an old C/C++ sunstudio project to visual studio 2019. I need to build targets on a remote linux machine, so I cannot use the visual studio solution to build. After some unsuccessful attempts to use the old sunstudio makefiles, I have decided to use <strong>cmake</strong> to build the project.<...
3
3,561
Roslyn can't find IDictionary.Add interface implementation member
<p>Why Roslyn in following example can't find IDictionary.Add interface member implementation in Dictionary type?</p> <p>IDictionary.Add and Dictionary.Add correctly resolve by Roslyn, but then i can't find implementation IDictionary.Add method in Dictionary type.</p> <p><strong>Update</strong> I added second code ex...
3
5,794
finding next/previous tv show from MySQL database
<p>I've become rather stuck with a situation I have. I have a database with fields id, showid, season, episode and some other arbitrary data. I have a php page to display information about episodes of shows which works by having the id as a get variable. What I wish to achieve is to have a link to the next episode and ...
3
1,313
Struts2 Dispatcher FilterMapping Cannot be Found
<p>I'm using the Tuckey URL re-write filter which works fine. However I'm trying to use Struts2 to implement a login system for my web app. So far I've been able to bypass my other service calls so they pass through struts (they are webservlets and I don't want to use struts for them). I can hit them, however I can't a...
3
2,342
Wrong css ">" selectors (by me)
<p>I am trying to design a chess board with css3, but it seems like my selectors are wrong. <a href="http://jsfiddle.net/loloof64/nxvse1hd/6/" rel="nofollow">Here is my JsFiddle </a></p> <p>So why can't I see the designed test blue and red borders around lines and cells ?</p> <p><strong>html</strong></p> <pre><code>...
3
1,064
Why doesn't nth:child work on my site when it worked on my boilerplate?
<p>I'm a web development student and I'm trying to use nth:child in order to code a section of a site that has images on the left and text on the right, and then the next section has text on the left and images on the right etc. Maybe it's a really simple mistake but I'm not sure why it's not working because my boiler...
3
1,542
Updating notifications after being added
<p>I want to update the content for a reminder after it has been added before being received by the user. After setting a reminder through AlarmManager using the data stored in sqlite database, the notification from the reminder set only shows the data, title and description, that was first added, not any updated data ...
3
2,154
How to print ALL columns of MySQL table in Python?
<p>Here I want to print every column present in the MySQL table <strong>(PASSENGER)</strong>, but this code only gives 4-5 columns.</p> <p>The code:</p> <pre><code>import pandas as pd import mysql.connector as myq d = myq.connect(host=&quot;localhost&quot;, user=&quot;root&quot;, passwd=&quot;admin&quot;, database=&quo...
3
1,488
Kindly help to get office wise data row wise
<pre><code>select NUM_OFC_CODE,NUM_RO_CODE, case when TXT_MONTH='JAN' then 1 ELSE 0 end as JAN, case when TXT_MONTH='FEB' then 1 ELSE 0 end as FEB, case when TXT_MONTH='MAR' then 1 ELSE 0 end as MAR, case when TXT_MONTH='APR' then 1 ELSE 0 end as APR, case when TXT_MONTH='MAY' then 1 ELSE 0 end as MAY, case when ...
3
1,053
'click' Event listener not working on small screen
<p>I have a table whose each row has an addEventlistener for click. The rows are selected fine on bigger screens, but in small screens some of the items cannot be selected. I am using plain JavaScript for this. I have the respective media queries defined so that should not be a problem in my opinion.</p> <p>This is my...
3
1,700
Discord Bot: cannot create POST request for create a message
<p>i have a problem while i am implementing discord bot in C/C++. My problem is when i when i want to create message in other way create POST request to create message with my BOT i do not recieve any answer whether the request was completed or not. When i create GET request with specifics which is necessary due to dis...
3
2,615
Kivy - Draw Rectangle Around Text
<p>I'm brand new to Kivy and trying to make a UI for a project. I'm trying to develop an understanding for how everything gets sized in the different layouts.</p> <p>I'm having an issue where I have two labels side by side in a box layout (nested in another box layout). I want the 2nd label to have a rectangle drawn be...
3
1,911
Why can threads change instance data if it is blocked in another thread?
<p>I began to study lock and immediately a question arose.</p> <p>It <a href="https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock" rel="nofollow noreferrer">docs.microsoft</a> says here:</p> <blockquote> <p>The lock statement acquires the mutual-exclusion lock for a given object, executes ...
3
1,283
Error : You are trying to load a weight file containing 1 layers into a model with 14 layers
<p>Since due to having not enough of resources like GPU and Ram we are using Google Colab for training the model but still there are some limitations in it for example maximum time limit for Google Colab's GPU is only 12-hours. Still we trained the model in those 12- hours but the loss doesn't seem to be changing after...
3
1,879
mat-icon doesn't show icon in dialog after closing and re-opening the dialog
<p>I have created a dynamic dialog component, which I can pass action buttons to, which then get displayed in the dialog header. By default, the dialog contains a close action button, and I'm passing an edit action to the dialog header. This edit action contains two buttons:</p> <ul> <li>one select button that changes ...
3
2,327
How to force CLion using a custom MSVC version?
<h1>The problem</h1> <p>I use CLion 2022.2, Visual Studio 2022, and CMake 3.23. I want to use the toolset of version 14.31.17.1, which is older than the newest one.</p> <h1>Configure</h1> <p>I configure the CMake project with a <code>CMakeLists.txt</code> file</p> <pre><code>project(test_project) add_executable(test_pr...
3
1,127
xamarin forms - image wrapped in frame(with property cornerRadius set) not showing round corners
<p>I am trying to create layout similar to Android cardview. </p> <p>My progress for now.</p> <p><a href="https://i.stack.imgur.com/69vuH.png" rel="nofollow noreferrer">image1</a></p> <p>As you can see It looks guide well. However when I change Image property Aspect="Fill" to Aspect="AspectFill" images would lost r...
3
1,257
How to dynamically adjust the number of rows in a table to pad table elements in bootstrap?
<p>I currently have a balance sheet table. On the left hand side is all the assets and the right hand is all the liabilities. There are short and long-term assets and short and long term liabilities. Currently my table looks like:</p> <pre><code>Assets Liabilities Short-term Long-ter...
3
1,641