title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
can't get rid of gap between header and body
<p>I have tried everything from editing padding/margins to saving file as utf-8 without BOM in notepad suggested in other posts to get his gap to go away. Nothing is seems to work so I come to ask for help.</p> <p><a href="https://i.stack.imgur.com/CFXws.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.c...
3
3,132
Interaction with TFS 2015 (On-Premise)
<p>I am creating an export file with all TFS projects, users and their associated TFS Groups for a specific TFS Collection. (using ITeamProjectCollectionService, IIdentityManagementService)</p> <p>I noticed I receive also the disabled AD-users. How can I filter the disabled AD-users out of this list? I have no direct...
3
1,128
Drop-down in kendo-ui not retrieving data
<p>I am working on the test project where i fill dropdown list from web api... Using <a href="http://demos.telerik.com/kendo-ui/grid/editing-custom" rel="nofollow">ThisDemo</a> as it is....</p> <p>This all worked fine one time and now it consistently showing console error which i have stated at the end of question...<...
3
1,499
Eventmachine issue when installing (when installing Middleman)
<p>It's not a duplicated of <a href="https://stackoverflow.com/questions/17361958/eventmachine-gem-install-fail">Eventmachine gem install fail</a>, that's for Windows, and I'm running on OSX 10.9.5 and ruby ruby 2.2.0p0 </p> <p>I'm struggling to get Eventmachine installed, after I installed Middleman. Any advice on ho...
3
1,544
Is clang wrong, gcc wrong, or both wrong in this case - casting away constness with member pointers
<p>In C++, the concept of <a href="https://timsong-cpp.github.io/cppwp/expr.const.cast#7" rel="nofollow noreferrer">casting away constness</a> is rigorously defined by the standard. Casts such as <code>static_cast</code> and <code>reinterpret_cast</code> are not allowed to cast away constness in the explicit conversion...
3
1,061
Find which side of square circle is on
<p>I'm building some collision detection into my 2D game, and I've got a method to test the collision and find the depth and normal of the collision, but I'm stuck on trying to figure out on which side the collision occured.</p> <p>The CirclePosition and the RectPosition here are the center of the shapes. I am using Op...
3
1,043
Drools: Compare 2 Arraylists from the same Object
<p>I have a Class and this Class constructs 7 ArrayLists:</p> <pre><code>public class Fruchtplanungsmodul { private ArrayList&lt;Crops&gt; fruchtliste1F; private ArrayList&lt;Crops&gt; fruchtliste2F; private ArrayList&lt;Crops&gt; fruchtliste3F; private ArrayList&lt;Crops&gt; fruchtliste4F; privat...
3
1,148
Sorting items by recent dates VBA
<p>I have a database where i should display training list for each employee in a company. The training are in the cells (A,41) in my excel worksheets like this : </p> <p><a href="https://i.stack.imgur.com/xhBaY.png" rel="nofollow noreferrer">enter image description here</a></p> <p>I wrote a code that helped me to mak...
3
1,656
Xamarin Forms Make detail view editable
<p>My first try with Xamarin, and stuck on the basic. Build Master-View, all working fine, can add new items. However when click on existing item it is read only. I have implemented edit button, but do not know how to make item editable in the detail view. My ItemDetailPage.xaml</p> <pre><code>&lt;?xml version="1.0" e...
3
1,465
Drupal 7 - Javascript integration issue with Google Maps Autocomplete
<p>I'm trying to resolve an integration issue that I have using Google Maps Autocomplete, I have to integrate javascript codes on my drupal 7 website. The code below works fine on jsfiddle, but it's not the case on the drupal website and I cannot find why the Autocomplete doesn't do anything.</p> <p>Here are some info...
3
1,263
add text area on selecting options in dropdown list in java script
<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>function showInsertQuest(){ var x = document.getElementById("one"); if (x.style.display === "none"){ x.style.display...
3
1,892
How to vectorize two nested for loops using numpy?
<p>I would like to vectorize part of my code below. Specifically the two for loops that iterate from a <code>range(0,n)</code>. If anything I could just vectorize the <code>j</code> loop because when I include it in my operations the run time exceeds 10 minutes.</p> <p>I was thinking that for the exponential part that ...
3
1,756
Issue with table nth-child after add grid-gap
<p>Currently our table: <a href="https://i.stack.imgur.com/eUyBB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eUyBB.png" alt="enter image description here" /></a></p> <p>First have background and second is white - is correct.</p> <p>now I would like to move the attributes to the right. I add to ta...
3
2,729
What is the error in blob submission to DB?
<p>I'm trying to make insertions and updates of an image in DB, already in blob format.</p> <pre><code>public static boolean alterarLogo(int id, Blob logo) { String sql = "update conta set conta_logo = " + logo + " where conta_id = " + id; try (Connection conn = ConexaoDBGeral.abre()) { ...
3
1,070
Change background color of specific select element in a list of procedurally generated select elements
<p>I am trying to use jQuery to change the background color of the select element based on the option chosen within.</p> <p>To generate the select elements, I'm using the following code:</p> <pre><code>while ($qrow = $qquery-&gt;fetch(PDO::FETCH_ASSOC)) { $aqanswer = "qAnswer" . $qrow['questionID'] . ""; ...
3
1,182
Retrieve new item first from firebase realtime database
<pre><code>private void loadOrders(String phone) { adapter = new FirebaseRecyclerAdapter&lt;Request, OrderViewHolder&gt;( Request.class, R.layout.order_layout, OrderViewHolder.class, requests.orderByChild("phone") .equalTo(phone) ) { ...
3
1,106
Inserting Array into Mongo using Mongoose not working
<p>I am trying to create a Mongo document but inserting into the array of the orderProducts element of the document is not working.</p> <p>This is the method to create order and insert into Mongo:</p> <pre><code>exports.createOrder = function(req, res) { var delivery = JSON.parse(req.body.delivery); var paym...
3
1,175
Android: manage more touches in a general View
<p>In my app I want manage many touches inside the same view in this way:</p> <p>I want obtain the exact number of finger that are over this view, that is, if lay a finger my total should be 1, if I lay a second finger the total should be 2, and etc. for 3,4,5... (until my device support its max number of touches). It...
3
1,376
How to simultaneously display keypress for 2 separate Kivy windows
<p>I have a case where I need 2 Kivy windows each on a separate monitor to display keyboard press events simultaneously. I have a simple toy example of the code for 'app1.py' and 'app2.py' below.</p> <p>I was able to successfully use 'subprocess' and kivy.config so that when you press the 'Press to open second window'...
3
1,705
Error using integral (line 85): A and B must be floating-point scalars
<p>I have the following code that I wish to estimate the parameters of a custom distribution using MATLAB's function <code>mle()</code>. <a href="https://stackoverflow.com/q/56522903/4930944">For more details on the distribution</a>. </p> <p>The main code is:</p> <pre><code>x = [0 0 0 0 0.000649967...
3
6,732
Menu CSS issue in IE8
<p>I have created a Menu list. It is working perfectly on Chrome and Firefox but misaligned in IE8</p> <p>Chrome Snapshot :- <a href="http://postimg.org/image/g6uf9zikr/" rel="nofollow noreferrer">http://postimg.org/image/g6uf9zikr/</a> <img src="https://i.stack.imgur.com/oGrti.png" alt="chrome snapshot"></p> <p>IE8 ...
3
1,147
dimplejs scatterplot showing up differently second time generated on page
<p>I have a function that creates three scatterplots using dimplejs on the same page. I pass in a number of variables you can see in the code below. The first scatterplot generates perfect, but the second and third have issues with the X Axis dates not turning vertical, and the y axis description gets moved closer to...
3
2,002
Collection not updating on form submission
<p>I have a complex model that looks like this:</p> <pre><code>public class ModelOne() { //other stuff public ModelTwo modelTwo {get;set;} } public class ModelTwo() { //other stuff public List&lt;ModelThree&gt; modelThrees {get;set;} } public class ModelThree() { public int Id {get;set;} publ...
3
1,116
Invalid column name when inserting - Entity Framework
<p>I'm using Entity framework using code first. I have 3 tables in database:</p> <ul> <li>Place</li> <li>Profil</li> <li>PlaceMember</li> </ul> <p>It's a many to many relation. A place can have many Profils as members and a profil can be a member to many Places. The PlaceMember is the relational table. Code of PlaceD...
3
1,166
My program continues to say list index out of range
<pre><code>print "Ready For the Sports Trivia Game" print print import random print "What sport would you like to be tested on" print "Press 1 for Baseball" print "Press 2 for Basketball" print "Press 3 for Hockey" choice = input() answers = [] questions = open("questionsreadin.txt", "r") lines = questions.readlin...
3
1,077
Calling method from other class give NullPointerException
<p>I have an Activity Class, from where I'm calling a <code>ListView</code> adapter. In the adapter Class I have the <code>onClick</code> methods for the two buttons I have in each row. When I click the one button, I delete the row from the database, but I have to call the method inside my Activity Class, in order to u...
3
2,414
Progressdialog not dimissing
<p>My code tries to do this:</p> <ul> <li>onCreate it creates and instance of an asynctask A</li> <li>onPreExecute of A we make call: showDialog</li> <li>in doInBackground we sleep for a while SystemClock.sleep(1000)</li> <li>onPostExecute we dismiss the dialog then start a new Async Task B</li> <li>Task B does mostly...
3
1,459
Matplotlib: Call functions to execute with updated slider values
<p>I am a beginner at programming. I have written a python script that plots distributions. I have added a slider widget that controls 2 parameters (mu and sigma). The user can then play with these parameters to see the effect on distribution. The code works as expected.</p> <p>However, I am looking to improvise becau...
3
1,709
Use simple Java mail API in Andriod's build.gradle file but get error
<p>I am using simple Java mail API in Andriod's build.gradle file but get error.</p> <pre><code>**implementation group: 'org.simplejavamail', name: 'simple-java-mail', version: '6.4.3'** Duplicate class javax.activation.ActivationDataFlavor found in modules jetified-jakarta.activation-1.2.1.jar (com.sun.activation:jak...
3
2,976
Populating Field in Form with Images in Django
<p>I'm trying to populate a field with images from a model in Django. The idea is that the user will enter the name of their product, then ultimately an API with google images will look that up and populate a field on the next page with a couple images to select.</p> <p>At this stage, I'm just trying to get a field on ...
3
2,490
Code Keeps Crashing With the Following Error: Can't convert object of type java.lang.String to type
<p>My code was working perfectly. I then updated Android Studio and now the App continues to crash with the following error:"Can't convert object of type java.lang.String to type." I have reverted the version back to a previous version when it was working, and I am still getting the same error. Any help would be greatl...
3
5,038
What is wrong with this amateur KeyFactory and Encrypt code
<p>I dont understand what i do wrong, This code is three steps </p> <ul> <li>Create public and private keys (save to disk) </li> <li>encrypt the text "hello hello" </li> <li>decrypt the text "hello hello" </li> </ul> <p>but the output from this code is </p> <p>[B@7455d93d (after encrypt)<br> [B@3bc0f2e...
3
1,783
Android Image not switching
<p>I'm working on a piece of code that could switch image using Menu inflater, i've worked on code but it gives me force close error as soon as i click the button. here is my code:</p> <pre><code>@Override public boolean onCreateOptionsMenu(Menu menu) { // TODO Auto-generated method stub MenuInflat...
3
1,921
ffmpeg does not produce result with C# process
<p>So, I'm facing a really strange issue. When I run &quot;ffmpeg&quot; through C# process, it doesn't work for multiple commands (concatenated with &amp;). However, it works for simple/single command and even produces output. I checked the logs through &quot;Standard Error&quot; and it appears that it fails in &quot;c...
3
1,811
Swing Timer stops calling actionPerformed() while the mouse is moving inside a JFrame
<p>If I move my mouse inside a <code>javax.swing.JFrame</code>, the <code>javax.swing.Timer</code> stops calling the <code>actionPerformed()</code> method until the mouse stops moving. It only occurs when I move the cursor with my Rocket Kone XTD mouse. When I use my trackpad everything is fine.</p> <p>How can I fix i...
3
1,317
Edit text value change
<p>I have 3 EditText Fields and submit button.Change of value in any EditText will modify value of other two EditText.Have applied setOnEditorActionListener and setOnFocusChangeListener but If user change one editText and click submit button then change in other editText will not happen. which listener to use.please he...
3
1,572
Error with jboss cookie authorizarion
<p>I'm getting an auth cookie expired error when i try to submit run my web service. It is just me because my colleague is able to run the service fine without any errors. Can you please point wt needs to be changed in the jboss.</p> <pre><code>19:43:20,162 INFO [com.xxxxx.web.security.netcookieauth.xxxWebAuthenticat...
3
1,534
AWS SAM Gateway API inherit Gateway Response not working
<p>Its seems my GatewayResponses conf its only apply to /Prod gateway API, /Prod/gcp doesn’t inherit the GatewayResponses configuration, as follow:</p> <pre><code>Post to : sa-east-1.amazonaws.com/Prod/gcp response : {&quot;message&quot;:&quot;Forbidden&quot;} Post to : sa-east-1.amazonaws.com/Prod response : { &quot;...
3
1,187
The given ColumnName 'ACTUAL DATE' does not match up with any column in data source
<p><img src="https://i.stack.imgur.com/3iP7C.png" alt="Data"></p> <p>I am importing my excel file into sql database using sqlBulkCopy but as soon as I start the import this error pops up. I am using MVC5 and entityframework 6. I have checked for the same columns in both the excel file and the sql tabel everything look...
3
2,585
Can't see the changes made by BCEL
<p>I'm trying to change main method of my Test class using BCEL. I simply want to add <code>System.out.println("This is added by BCEL at runtime")</code> to the beginning of the main(). Although I don't receive exception and InstructionList shows my commands, my string is not printed and <code>javap -c</code> shows unm...
3
1,143
Passing data from view to controller using jquery
<p>Im trying to pass user input from html to the controller and I am using jquery and ajax.I have followed this tutorial <a href="https://www.c-sharpcorner.com/blogs/post-the-data-to-asp-net-mvc-controller-using-jquery-ajax" rel="nofollow noreferrer">https://www.c-sharpcorner.com/blogs/post-the-data-to-asp-net-mvc-con...
3
1,526
Laravel PHP - Have the the set option in db to be the selected in select list
<p>I select two records from the database:</p> <pre><code> return view('customers')-&gt;with( [ "customers" =&gt; DB::table('people') -&gt;leftJoin("statuses", "people.status", "=", "statuses.id") -&gt;where('type', 'customer') -&gt;get()-&gt;toArr...
3
1,404
Original marker doee not go invisible when the route it's implemented
<p>I added <code>polylines</code>to my map so I can trace routes between points. Right now, the <code>polylines</code> appear after pressing <code>Yes</code> in an <code>alert dialog</code>, that's activated when the user presses the <code>infoWindow</code>. So, my plan is to get the <code>marker</code> when it's click...
3
1,643
How to make 'None selected' not to work on change of drop down
<p>NameTextBox is Dropdown with all names so once change of names and click on search then it gets details associated to the Name but by default 'None Selected' is displayed so once click on search this also works. How can i restrict 'None Selected' not to work once i click on search.</p> <pre><code>&lt;select id="Nam...
3
1,061
named urls of the form {%url 'somenamedurl' %} in django not working
<p>That named url worked before, i put another django project and installed few packages like pyjasper etc. My bad I didnt do virtualenv.</p> <p>Now the other project is not important. Current version of django I am using is 1.6.2. I am not able to trace the error.</p> <p>It says error rendering </p> <pre><code>Synt...
3
1,050
Paypal not picking up selection choices
<p>I have created a script for partial season ticket package sales on my music group's website. A user would select 4 concert programs and then select a date for each concert program selected. All of these selections need to post to Paypal for processing/purchasing. My "Add to Cart" button does route to Paypal, but the...
3
2,957
In Vue v2, How do I verify if a value entered into a form is empty?
<p>I've tried many different ways to do this with both alert() and simple if-else statements, and even what is at this link: <a href="https://v2.vuejs.org/v2/cookbook/form-validation.html" rel="nofollow noreferrer">https://v2.vuejs.org/v2/cookbook/form-validation.html</a></p> <p>But nothing works! What am I doing wrong...
3
1,077
Azure Linux webapp backup restore from storage container fail PowerShell
<p>N:B Manual restore from Portal working well and Powershell restore is not working</p> <p>I am going to use PowerShell via AzureDevops pipeline jobs to do the restoration.</p> <p>Azure app hosted in Austalia East Web app backup goes to Australia Southeast where the Azure storage account is configured. Web app name my...
3
1,088
Compilation errors when including <regex> using Clang 3.x with --std=c++11
<p>I've been trying to compile the <a href="https://github.com/catchorg/Catch2" rel="nofollow noreferrer">Catch2</a> header as part of a larger existing project where I used to rely on googletest. I've been able to get the port working nicely on Windows, but I'm struggling to get the library compiled on Ubuntu using Cl...
3
1,061
Android Widget: doesn't update after certain period of time
<p>Guys, I developed an android widget with an imageview and a single textview. It works fine, but after some updates the messages from my external file with the strings (quotes) doesn't update it. It just shows the image without any quote (message). Why is this happening? He's my entire code. I'm a newbie.</p> <p>Mai...
3
2,140
Script does not work locally but does on server
<p>I am just starting out with javascript and well, I am stuck and it's quite embarrassing too.</p> <p>First I tried to load a local json file which would not work. I found out about that quite fast.</p> <p>But when I fixed this mistake it's still not working.</p> <p>What I do have is basically a copy of <a href="ht...
3
3,085
Generate dinamically a <ul> <li> listing from a input array in jQuery
<p>My web app has the following tree view in order to show some files and files.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>ul { list-style-type: none; }</code></pre> ...
3
1,162
Why does one apk got different signatures in jni between emulator and real device?
<p>I try to print signatures in jni, but the same apk got different values between emulator and real device. Does any one knows why this happens?</p> <p>Emulator Pixel 2:</p> <pre><code>2019-07-16 22:38:10.725 2620-4374/my.package.name I/jnitest.cpp: JNI::loadSignature, [ 2019-07-16 22:38:10.725 2620-4374/my.packag...
3
4,759
One public media player class to be used across all activities
<p>Updated.</p> <p>After the recommendations, I decided to run media player in a new thread. Because I need Media Player only when activities are on the screen. Here is the new code:</p> <p>First, my public SingleMP (Media Player) class used in multiple classes:</p> <pre><code>import android.content.Context; import ...
3
1,422
Tried to load Angular more than once + included the Google Maps API multiple times on this page
<p>Whenever I press the &quot;Get started&quot; button on my <a href="http://dingocv.herokuapp.com/" rel="nofollow noreferrer">website</a>, the screen goes black and I get the following errors in the console log. I do not see this issue locally, prior to <code>grunt build</code> being run and me deploying to Heroku:</p...
3
1,209
UI changes with ObservableObject just after switching tabs
<p>I have a <code>ObservableObject</code> that I use to update my UI when new data is sent from the server (an a class which contains an array of custom structs).</p> <p>For some reason, when the data is sent, the <code>ContentView</code>'s <code>body</code> is called, but the data isn't changed. I even added a <code>...
3
2,321
Java-Spring Reflection brings method which are not present in the class
<p>I try to investigate classes available in a given package. for time being i have hard coded the class name, <code>I get so many methods which are not available in the class when i try to print all the methods and parameter type the method takes</code></p> <p>the following is my main class where i investigate the cl...
3
10,745
Read from uploaded XLSX file in Python CGI script using Pandas
<p>I am creating a tool where either</p> <ol> <li>A new XLSX file is generated for the user to download</li> <li>The user can upload an XLSX file they have, I will read the contents of that file, aand use them to generate a new file for the user to download.</li> </ol> <p>I would like to make use of Pandas to read the ...
3
1,221
How can I return a C# Object instead of array JSON
<p>I have this code</p> <pre><code>return Ok( new object[] { new { name = Dname, primaryLastName =DprimaryLastName, secondLastName= DsecondLastName,degrees= Ddegrees, roles= Droles, entityId = DentityId, enrollment = Denrollment, payrollNumber = DpayrollNumber, photo = Dphoto, groupsInfo = rt , birthDate = DbirthDa...
3
1,046
React Native Area On Screen Not Clickable
<p>For some reason theres an imaginary block in the middle of the screen that wont allow me to click parts of TextInput's or TouchableOpacity/TouchableHighlights (i.e. buttons with icons, text, padding and colour), if that part is inside this imaginary box. It is the strangest bug. In trying to debug it, I've added a S...
3
2,209
How to avoid repeating code when creating a grid of buttons?
<p>I am currently learning tkinter and wrote a code which creates a grid of 100 buttons which when clicked it disappears (I am yet to code that). However as seen below it is really inefficient. Is there any way to make this better and faster to write as I have coded each and every buttons with 1a,1b... and I want to kn...
3
5,315
nginx reverse proxy with Docker - Connection refused while connecting to upstream
<h1>Environment setup</h1> <p>I have an application which is composed by some services:</p> <ul> <li>jenkins server</li> <li>nginx server with angular</li> <li>nginx server as a proxy</li> </ul> <p>Those services are defined in the <code>docker-compose</code> file:</p> <pre><code> version: '3' services: revers...
3
1,550
SQLite instability in Android?
<p>To upsert a record I check in database wether record already exist. If not <code>INSERT</code> ootherwise <code>UPDATE</code> is performed. But sometimes fetching record goes wrong, and even record exist <strong>it does not find any</strong>. Why? How can it happen?</p> <p>DB is modified only in this method.</p> <...
3
1,056
Java Synchronized method is not locking object
<p>I wrote a java program to generate unique id for each row in a file. There could be multiple jobs running same program to get unique ids. This id has to be unique for each row in any file. I tried to achieve this by serializing value to a file. Since multiple jobs will be using this program I made the method synchro...
3
1,468
Unable to get http post method that gets JSON values to work. Android. Suggestions please.
<p>I've tried this code, and it didn't show any errors while running emulator. During the click event my emulator unfortunately stops.</p> <p>My <strong>LOGCAT</strong></p> <pre><code>03-04 08:46:17.633: E/AndroidRuntime(1391): FATAL EXCEPTION: AsyncTask #1 03-04 08:46:17.633: E/AndroidRuntime(1391): Process: com.exa...
3
3,149
How to fetch specific data from API into flutter app
<p>I am a beginner in flutter.</p> <p>I have created two ListView Builder where one ListView.builder is inside another builder as given below. I have a list of categories which is inside one listview.builder and other are the list of products which also listview.builder Wrapped inside the above listview build&gt; So n...
3
5,916
delete nodes with values that are repeated more than 2 times
<p>I have a method that I want to delete nodes with values that are repeated more than 2 times, unfortunately it delete nodes that are appearing more than once. the input am inputting is</p> <blockquote> <p>E B E E B A B</p> </blockquote> <p>but I end up getting</p> <blockquote> <p>E B A</p> </blockquote> <p>Instead of...
3
1,167
How to bind Blazorise Multi-Select AutoComplete to Model
<p>I have a Blazor page in which the user can select multiple employees using autocomplete.</p> <p><a href="https://i.stack.imgur.com/LnFGs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LnFGs.jpg" alt="enter image description here" /></a></p> <pre><code>@page &quot;/Multi&quot; @uisng removed &lt;...
3
1,805
Google Cloud Services Intermittent Content Security Policy Issues
<p>I have a static web site hosted in a google-storage bucket that I serve up via the Google Platform.</p> <p>This site has been running with no problems for about 6 months but over the last month I have had intermittent problems with it not loading style sheets and scripts due to "Content Security" issues - this resu...
3
1,279
Keyframes not working in Safari
<p>I have the Css code Below:</p> <pre><code> @-webkit-keyframes scale { 0% { -webkit-transform: scale(0.1, 0.1) translate(-50px); opacity: 0; } 50% { opacity: 1; -webkit-transform: scale(1.1, 1.1) translate(0px); } 100% { opacity: 0; } } ...
3
1,348
WApplication::bind() usage in combination with Wt::WServer::post
<p>I want to bind a callback, which will be called by a thread outside the Wt event loop. So obviously I want to use Wt::WServer::post, but I don't get how WApplication::bind should be used, since it's a nonstatic function. First attempt was this:</p> <pre><code>auto loaded_callback = [](const decltype(Wt::WApplicatio...
3
1,338
Header not lining up with body
<p>I am trying to set up a site that has a html webpage included but I cannot get the header and the body to match, I am not to good with css so I am struggling to find the solution.. here is my site here.. <a href="http://vectortoontown.com/GraphicFiresale/" rel="nofollow">http://vectortoontown.com/GraphicFiresale/</a...
3
4,214
How do I make the image in the MySQL table alter based on the id
<p>I have a table with an "id" that automatically increment each time a new entry is added to the table. In the same table, I also store images. </p> <p>Regardless of the id incrementing the image is always the same.</p> <p>I would like the images to change based on the "id". How do I achieve this? Find below my code...
3
1,144
Puting javascript execution script in remote file
<p>I found a question similar to my question but the answer didn't work for me. I have a navigation that I found online that works with JQuery. </p> <p>I put the navigation execution script in an external file and linked it, but now it doesn't work. Can someone explain why it wont work? I also tried the $(document)...
3
5,487
Calling methods for draggable element
<p>I have this code for a page with draggable divs. Initially, I had the first two lines of the code, to make the divs draggable and to specify a drag handle. Then I needed to add a helper function to clone the draggable. When I added the helper function, it broke the code. The divs weren't draggable anymore. What...
3
3,891
How make tkinter combobox loop work in class using a list as defaut and 1 dictionary in dropdown menu?
<p>I'm having a hard time trying to solve this.</p> <p>I loop through list --&gt; &quot;self.houses&quot; to build the comboboxes.</p> <p>I use keys of a dictionary &quot;self.heroes&quot; as options to be chosen in dropdown options</p> <p>And finally I need &quot;self.houses&quot; list as default display in comboboxes...
3
1,179
Is there a way to use __str__ in a class but returning a list?
<p>When I call a class object, I want it to return a list or any other variable other than string</p> <pre><code>class Vec: def __init__(self, data) -&gt; None: self.data = data #THIS IS A LIST def __str__(self) -&gt; list: return self.data a = Vec([0,1,2,3]) print(a) #TypeError: __str__ ret...
3
2,103
Why are mic picture one on top of the other
<p><img src="https://i.stack.imgur.com/3yS8P.jpg" alt="enter image description here"> why are my images padding top/bottom not working properly? I need them to have a spacing from the ones above/below</p> <p>here is a part of the code:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" ...
3
2,923
Javascript: convert date string to date object correctly
<p>I have string date for example '20200321082245'. I am trying to convert it by pure Javaccript code to a date object by spliting it and creating an date object for example:</p> <p><strong>'20200321082245' --> 2020-03-21 08:22:45</strong></p> <p><strong>'202003210.2245'</strong> --> This case with a dot must be excl...
3
1,130
Window always opens blank even though code is written
<p>I am making a program which will open a class GUI called "Menu" when correct login info is put into a text field password field and a button called "login" is pressed. The problem is that the Menu window will open blank, not displaying what I have programmed into the Menu. </p> <p>This is my code for Login class,</...
3
3,135
blitting moving images in pygame
<p>First time making something in pygame... I i'm trying to generate several instances of an image and then scroll them bottom to top. For some reason the original imagestays put while the other imagemove as expected. I am also trying to generate instances of the image on the leftmost quarter of the screen or the right...
3
1,182
Asp.net bower installed plotly.js does not work
<p>I installed Plotly.js with bower and added script reference in my view page but when I run my page, console says "Uncaught Reference error : Plotly is not defined"</p> <p>below is my settings :</p> <p>bower.json</p> <pre><code>{ "name": "ASP.NET", "private": true, "dependencies": { "bootst...
3
1,072
Submenu adding wordpress
<p>I have a wordpress page which has the following menu layout.</p> <ol> <li>Primary Menu <ol start="2"> <li>Sub menu</li> </ol></li> <li>Primary <ol start="4"> <li>List item</li> </ol></li> </ol> <p>I would like to add another Submenu to the Submenu (Submenuception)</p> <ol> <li>Primary <ol start="2"> <li>Sub ...
3
13,917
Programmatically creating scrollview-contentview-views, contentview not appearing
<p>I am trying to programmatically create a scrollview, which allows users to scroll vertically when switching their phones to landscape mode, but I have had no luck so far :( (I have tried to make this work in numerous ways, but it just did not work, and searching did not help at all)</p> <p>What I want: I want to cr...
3
1,460
Raspberry Pi A+ Bluetooth with DS18B20 not working when script runs on boot
<p>I wrote a python script to be run on a Raspberry Pi A+ to connect with a Raspberry Pi B+ via bluetooth and send temperature data with a DS18B20 sensor. When I run the script manually from the A+, it runs perfectly fine, but when I try to set the script to run when the Pi boots up, it is unable to connect via bluetoo...
3
1,151
Calculate bond yield to maturity (YTM) in C++
<p>I want to calculate bond's yield to maturity given price using either the bisection or the secant method. I know there's C++ recipes online for this, but I can't figure out what's wrong with my own code. Both methods create an infinite loop. When I tried to step through variables, the yield to maturity iterative sol...
3
1,066
OpenCV in Clojure AWS Lambda Function target is larger than 250MB, how do I reduce it's size?
<p>I'm trying to use OpenCV <a href="https://opencv.org/" rel="nofollow noreferrer">https://opencv.org/</a> via <a href="https://github.com/hellonico/origami" rel="nofollow noreferrer">Origami</a> using <a href="https://github.com/paulbutcher/lein-lambda" rel="nofollow noreferrer">lein-lambda</a> to deploy. However my ...
3
1,824
Scroll View Is not working in my Android Device
<p>This is XML code of my android app. The problem is my screen is not scrolling down. For testing the scroll view I have given <code>android:layout_marginTop="1500dp"</code> in order to see whether scrollView is working or but it is not working.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android...
3
1,242
Access information from session in website with two different sessions
<p>My website has two restrict areas, in the public website and admin area. I've tried to follow some instructions to make multiple sessions throughout the website, but I'm facing some problems about accessing and retrieving their information.</p> <p>Below are the <code>login</code> methods from both pages. First from...
3
1,218
TextView is not showing the string retrieved from database
<p>My program has an activity and a database class. there is a button for retrieving data from database.i meant to show the string in the <code>textView</code>. but it is not getting.</p> <p><strong>FirstActivity.java</strong></p> <pre><code>package example.showevent1; import java.util.Calendar; import andr...
3
5,966
Getting values from mysql tables
<p>I'm new at using sql but I have a problem that I just can't seem to solve. I have four tables: T_Item, t_trade, T_sender_trade and T_receiver_trade like this:</p> <pre><code>T_Item (itemID, name, category, description, description); T_Trade (tradeID, date, senderID, receiverID); T_sender_trade (tradeID, senderIte...
3
1,143
Spring `superinterface check failed` when using Java modules (for Axon Framework Spring Boot app)
<p>I am currently experimenting with Spring Boot, the Axon Framework and java modules (using JDK 17).</p> <p>I have created a repo to illustrate the problem: <a href="https://github.com/vab2048/axon-spring-module-error" rel="nofollow noreferrer">here</a></p> <p>The problem is that the application does not start and I g...
3
3,976
Relative position causing problem my container go under the showcase Why It's happening?
<h1>I am caught in problem due to relative position</h1> <ul> <li>My Other content get pushed under the showcase.</li> <li>I am giving you full code please tell me what I am doing wrong.</li> <li>I have given the link to google drive which cotain screenshot.</li> </ul> <p><div class="snippet" data-lang="js" data-hide="...
3
1,669
Unsupported operand type(s) for +: 'float' and 'list'
<p>I was starting with pygame recently and tried making a snake game, in which I came up with this error.</p> <p>here is my code!</p> <pre><code>import pygame import random import time pygame.init() print(&quot;SELECT LEVEL:\n&quot; &quot;EASY\n&quot; &quot;MEDIUM\n&quot; &quot;HARD\n&quot; &q...
3
1,981
JQuery toggleClass not working with dynamic data
<p>From my code, When i click on share icon it popover and shows some social media sharing icons. Toggle is working only when click on share icon and then clicks cross(X) icon. If i click share icon and click elsewhere on page and then click on cross(X) icon toggle is not working. Can anyone please suggest how to fix t...
3
1,678
Django - missing FROM-clause entry for table
<p>Okay, its been a while yet I can not solve or understand this problem. I also looked the other ones questions which has the same or similar title but I think this one seems different. I am not a pro in django and its admin face, but trying. So any help would be great. </p> <p>I am currently trying to build an admin...
3
1,463
Django 2 - reverse for view not found
<p>I know there are already a hundred of these, but I have one app that I made, that works, and a new one I'm trying to make, that doesn't work.</p> <p>I can't redirect to my <code>'detail'</code> view from my create view. If I put a number into the address, it works, it is just the redirect that doesn't work. I've tr...
3
1,179
How to open svg file from binary mode
<p>I use RabbitMQ to queue and upload svg files. The producer downloads file from Google Drive and uploads to RabbitMQ in binary form. Then in Processing, which uses java I want to use the http API to open this file from queue. After the request API receives such content type</p> <pre><code>Reponse Content: [{&quot;pay...
3
2,359
React state open all submenu instead of only the one clicked, want to use only one state for all my menu items
<p>I have a react app where I render this information in a component:</p> <pre><code>const navigation = [ { name: &quot;Services&quot;, description: &quot;Our services&quot;, href: &quot;#&quot;, subMenu: [ { name: &quot;Management&quot; }, { name: &quot;Development&quot; }, { name: ...
3
1,272
How to extract and record values, and their respective column/row information, from a matrix for 3D rendering?
<p>I am bringing thermal images into R as 480 X 640 matrices. After isolating my "signal" (seedlings in a field), I would like to <strong>export values to a data.table while also recording row and column of each observation</strong>. I need a final data.table with basically x,y,z information. I am plotting the raw ther...
3
1,311