title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Why SFML rectangle textbox is not being formed and how to fix it?
<p>I was making a program in SFML and C++, which like other program have a rectangle shaped box under which text is being filled but it does not even show a rectangle box. My code is:</p> <pre><code>int main() { sf::RenderWindow window({ 640 ,480}, &quot;Window&quot;); std::string input_text; sf::Font font...
3
1,080
Is problem between DirectionalLightHelper and CameraHelper causing issue with scene shadows?
<img src="https://i.stack.imgur.com/ixTLb.png" width="500"> <p>I'm working on building up quite a complex static render in the browser with three.js and have gotten stuck early in the process trying to produce correct shadows with a single <code>THREE.DirectionalLight</code> representing the sun in my scene. All the ge...
3
1,320
How to create an output file (re)writed?
<p>I've been trying to solve my script but I really would appreciate some help. I have 2 input files. </p> <p>The first one is a multi-fasta file with headers like this:</p> <pre><code>'&gt;AH008024.2 Angelica acutiloba internal transcribed spacers 1 and 2, partial sequence' '&gt;AJ969149.1 Carthamus tinctorius parti...
3
1,555
Bug in Odoo gamification addon
<p>When I create a goal definition with: computation mode : (Automatic: sum on a field, Model : Sale Order Line, Field to Sum : SubTotal)</p> <p>When I add this goal definition to a challenge and try to start it, I get this traceback:</p> <pre><code>Client Traceback (most recent call last): File "/home/openerp/serv...
3
1,077
How can I import external themes with Vaadin and use them with annotations?
<p>Let's say I have two projects. <code>CompanyApp</code> and <code>CompanyVaadinThemes</code>.</p> <p>CompanyApp is a normal Vaadin 7.7.3 app. CompanyVaadinThemesis just a Vaadin 7.7.3 theme compiled into a jar.</p> <p><strong>CompanyVaadinThemes.jar</strong></p> <pre><code>source/main/resources/VAADIN/themes/myt...
3
2,302
Creating a new column from two columns using a dictionary in Pandas
<p>I want to create a column based on a group and threshold for cutoff from another column for each group of the grouped column.</p> <p>The dataframe is below:</p> <pre><code> df_in -&gt; unique_id myvalue identif 0 CTA15 19.0 TOP 1 CTA15 22.0 TOP 2 CTA15 28.0 T...
3
1,735
samsung smart tv sdk 4.1 application not working on sdk 5.1
<p>I have made an application on Samsung Smart TV SDK 4.1, but that application is not working on Samsung Smart TV SDK 5.1.</p> <p>Can any one help me with remote working in sdk 5.1</p> <p>I have tried some demo apps from <a href="http://www.samsungdforum.com/" rel="nofollow">samsungdforum</a> but its not helping me....
3
3,676
Can the TOC be shown inline with the rest of the PDF?
<p>When using the <code>toc</code> option for creating a table of contents using wkhtmltopdf, is it possible to display it inline with the rest of the document? Currently, I can only get it to display as its own page(s) with no other content on it but I would like for it to be immediately followed by the start of my do...
3
4,553
Sql mapping problems
<p>I have <code>CustomDBContext</code>:</p> <pre><code>public class CustomDBContext : DbContext { public CustomDBContext(string connectionString) : base(connectionString) { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { base...
3
1,394
how to send mail faster using javamail api
<p>In my scenario I have generated one pdf using jasper report. I have send a mail to my superior with attach that pdf but the mail sending process take more than a minute. So what I do to send my mail with a second, can you help with any coding formate using javamail api. Here I have given my enter mail sending coding...
3
1,194
Visual Studio 2012 re-arranges or messes up HTML Tables
<p>Visual Studio 2012 seems to occasionally completely reorganise the HTML tables in my aspx pages. It switches rows around, moves text boxes and labels into the wrong place and generally creates havoc. It doesn't always do this. The problem often seems to occur when I have pasted in some HTML from another file. But ot...
3
17,537
hibernate criteria executing extra queries
<p>If there are N employees it executes the N+1 queries. I want it to execute only 1 query.</p> <pre><code>@Entity public class Employee { @Id private int employeeId; private String employeeName; private Department department; private List&lt;Dependents&gt; dependents; //getter setter for employeeId and emp...
3
1,179
mysql: How to exclude rows from table which exist in table_alias with good perfomanse?
<p>I've sql with NOT EXIST and <strong>it works very slowly</strong> in big db:</p> <pre><code>SELECT * FROM ( SELECT * FROM profiles ORDER BY id DESC /* I need this order HERE! More info: https://stackoverflow.com/q/43516402/2051938 */ ) AS users WHERE NOT EXISTS ( SELECT * ...
3
1,299
c# and MySQL select string from db and utf-8 table
<p>that the code i use to create Connection with the datebase</p> <pre><code>private static string MySqlUsername, MySqlPassword, MySqlDatabase, MySqlHost; private static string ConnectionString; public static void CreateConnection(string user, string password, string database, string host) { ...
3
1,038
Logged in user`s info disappearing after he goes back to homepage in JSP
<p><img src="https://i.stack.imgur.com/E9jOe.png" alt="enter image description here"><img src="https://i.stack.imgur.com/Rei5S.png" alt="enter image description here"><img src="https://i.stack.imgur.com/vL4SB.png" alt="enter image description here"></p> <p>In the following code after log in, user can view his info and...
3
5,083
Print content for Xcode
<p>This is HTLM code. We click ctrl+P for we print we can view it on one page. But when we view it on Webview controller of Xcode. It shows on 2 pages. Any ideas help us. The html Content on below</p> <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false"> <div class="snippet-c...
3
7,180
While joining 2 mysql tables how to get only the required related row in second table
<p>I have the following <strong>2 tables A and B</strong> in <strong>MySQL</strong> db. When I join the 2 tables by the VisitID (A.VisitID = B.VisitID) I want to pickup only the records that related the <strong>latest Actiondateandtime</strong> from the table B for a VisitID. For example for VisitID = 85 I want to pick...
3
1,153
console error : Cannot read properties of null (reading 'addEventListener') every time page reloads
<p>So I've searched for ages and can't find anything to solve this problem with. I have a function for a modal that will show a YouTube video and everything works fine with the modal and the video.</p> <p>But every time my webpage reloads and if I go to another page on the site I get this error message in the console <...
3
1,326
One search form to 3 Gridview in same page
<p>Friends,</p> <p>I have an INDEX page with 3 GRIDVIEW components (model Keys, model Products, model Indicators). And on that same page I have a search form with a dropdownlist (company).</p> <p>I need to: When you select for example company 02 the 3 GRIDVIEW are filtered only company records 02.</p> <p><strong>_se...
3
1,349
brew cask install meld: 'cannot import GTK+': what's wrong with my library?
<p>I tried to install meld on my iMac running OS/X 10.13.1 High Sierra.</p> <pre><code>brew cask install meld </code></pre> <p>and <code>homebrew</code> completed without error, but when I tried to run it I saw</p> <pre><code>$ meld check1ping.sh check2pings.sh frozen: ImportError Cannot import: GTK+ dlopen(/Applica...
3
1,244
How to set the icon to appear on Spotlight for a Phonegap App?
<p>I am creating an application that is coded with HTML &amp; Javascript and is built into iOS and Android apps through the Phonegap build web service.</p> <p>When searching the app through Spotlight in iOS, it shows the default Phonegap icon instead of my app icon. I need for it to show my app icon.</p> <p>I have cr...
3
1,105
High CPU usage with swing system tray icon
<p>In a simple swing application I am using <a href="http://docs.oracle.com/javase/7/docs/api/java/awt/TrayIcon.html" rel="nofollow">TrayIcon</a></p> <pre><code>trayMenu = new PopupMenu(); MenuItem closeMenuItem = new MenuItem("Exit"); closeMenuItem.addActionListener(new ActionListener() { @Override public voi...
3
7,717
Hippo cms and mysql on Glassfish
<p>I have a big problem with the addition of a mysql database to Glassfish. I did all the steps located here <a href="http://www.onehippo.org/library/deployment/configuring/configuring-hippo-7-for-mysql.html" rel="nofollow">http://www.onehippo.org/library/deployment/configuring/configuring-hippo-7-for-mysql.html</a> .<...
3
1,083
How can i save JavaScript outputs and show them at the same time?
<p>So i wanted to make a beginner app for myself that calculates my pay at work. I get paid every two weeks and also for km. My question is every time I click &quot;Add&quot; button it should output my inputs then clear itself and when i do another it should show it under and so on. Also i would like to save it in loca...
3
1,799
Multithreading in Python does not give the expected performance
<p>I am building an application to solve Matrices in Linear Algebra. I have this class:</p> <pre><code>class Matrix: def __init__(self): self.elements = [] self.height = 0 self.width = 0 def __add__(self, matrix): resultant_matrix = [] row = [] for i in range(self.height): row.clear() ...
3
1,419
Branch error Warning. Session initialization already happened. (-118)
<p>I have a launcher Activity, which is set to receive deep Branch intents.</p> <p>When there arent any Activities in the back stack, <code>onInitFinished(JSONObject, BranchError)</code> gives this BranchError, and jSONProject is null:</p> <blockquote> <p>Warning. Session initialization already happened. To force a new...
3
1,196
Unable to train dataset by mlr3proba after encoding and scaling it with mlr3pipeline
<p>when I run the code below for training a model in mlr3proba after encoding and scaling my dataset with mlr3pipeline:</p> <pre><code>task =tsk(&quot;sonar&quot;) learner = lrn(&quot;classif.rpart&quot;) measure = msr(&quot;classif.ce&quot;) inner.rsmp &lt;- rsm(&quot;cv&quot;, folds = 5) train_set = sample(task$nrow,...
3
1,276
Facebook-Prophet: Overflow error when fitting
<p>I wanted to practice with prophet so I decided to download the "Yearly mean total sunspot number [1700 - now]" data from this place </p> <p><a href="http://www.sidc.be/silso/datafiles#total" rel="nofollow noreferrer">http://www.sidc.be/silso/datafiles#total</a>.</p> <p>This is my code so far</p> <pre><code>impor...
3
2,105
./gradlew test connectedAndroidTest erases my getFilesDir() folder
<p>I'm writing a Room database into my getFilesDir() folder. (Writing the database onto the removable SD card is apparently going to require some <em>major</em> research!)</p> <p>When I manually run my app, I want to write some records and leave them in the database, so I don't need to keep writing them again. When I ...
3
1,912
Calculating the vertical gradient of 2D image causes strange output
<p>I want to apply a simple derive/gradient filter, [-1, 0, 1], to an image from a .ppm file.</p> <p>The raw binary data from the .ppm file is read into a one-dimensional array:</p> <pre class="lang-cpp prettyprint-override"><code>uint8_t* raw_image_data; size_t n_rows, n_cols, depth; // Open the file as an input bi...
3
1,683
Add section to navigation drawer
<p>i have the below code : </p> <p>activity.xml</p> <pre><code>&lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;!-- Framelayout to dis...
3
5,886
ClassCastException in implementation class
<p>Why am I getting the ClassCastException:</p> <p>Wrapped exception:</p> <pre><code>java.lang.ClassCastException: com.avt.model.CasePmt at com.avt.dao.impl.CasePmtDaoImpl.findAllCasePmt(CasePmtDaoImpl.java:68) at com.avt.ViewCasePmtAction.view(ViewCasePmtAction.java:127) at sun.reflect.NativeMethodAccess...
3
1,318
SQL: How to get the total payment for each month and its monthly total
<p>I need to get the months of each corresponding data. For example, we will get the month from the date 2020-01-08(YYYY-MM-DD). It would seem that SELECT EXTRACT(MONTH FROM &quot;2020-01-08&quot;) only gets from the date specified, but what I wanted was well, getting all of the months from the row at once.</p> <p>I sh...
3
1,056
React-Native Realm DB - exception only in debug mode upon insertion: "_id field must be of type 'uuid', got 'object' ([object Object])"
<p>I am building a <code>React-Native</code> app that uses <code>Realm DB</code> as the underlying database.</p> <p>While implementing basic insertion methods I encountered exceptions when attempting to insert a new object with a unique identifier - while using <code>UUID/ObjectId</code> (same issue when using one or t...
3
1,916
Shared Element Transition Crashing
<p>I have a RecyclerView Adapter from which there is an intent to the next Activity</p> <p>Transition Exit code :</p> <pre><code> public ViewHolderEvents onCreateViewHolder(ViewGroup viewGroup, int i) { if(Build.VERSION.SDK_INT&gt;=21) { ((Activity) context).getWindow().setSharedElementExitTransition(...
3
1,084
Android studio. Parceling data to a specific object in an array list
<pre><code>package com.example.hussain.assignment4task1; import android.os.Parcel; import android.os.Parcelable; import java.lang.reflect.Array; import java.util.ArrayList; public class Image implements Parcelable { private String imageName; private String date; public ArrayList&lt;Image&gt; images; pu...
3
1,171
If-else statement?
<p>I am trying to calculate values of Ct for a 9x1 array using the following equations. I have edited my question to show my current code:</p> <pre><code>% Inputs R=0.4; % Radius of Rotor B=3; % Number of blades V=2; ...
3
2,196
how to decorate input field with css class on eval error
<p>I want to have a simple input field where you can type in a javascript expression, and have it be eval-ed on entry, kind of like a poor-man's calculator.</p> <p>So far, what I have sort of works.. but now I want to decorate it with css classes when the expression itself is invalid. Can someone suggest a way to do i...
3
1,181
Can't click on other tabs in html tabcontent
<p>Whenever I am on my new profile tab I can't click on my other tabs to go to them. I've included my code below. I can go from my Dashboard tab to New Profile tab fine but not the other way around. I can also go from New Task to New Profile just fine the only exception is when I go out from New Profile to another tab....
3
3,872
Rust CXX library linked, but undefined error
<p>I'm using <a href="https://github.com/dtolnay/cxx" rel="nofollow noreferrer">cxx</a> to write some C++ code, and then use this from rust. I also need to compile <a href="https://github.com/satya-das/cppparser" rel="nofollow noreferrer">cppparser</a>, since my C++ code uses it. However I get undefined errors even aft...
3
7,701
How to get and convert attributes after tag <product to xml | XSLT
<p>output date:</p> <pre><code>&lt;products&gt; &lt;group&gt; &lt;product id=&quot;73&quot; symbol=&quot;LEC-PY1010C&quot; ean=&quot;5901436709251&quot; price_pln=&quot;29.05&quot; price_eur=&quot;6.56&quot; tax=&quot;23.0000&quot; stock=&quot;1215&quot;&gt; &lt;name&gt;PY1010C Głośnik samochodowy PY-1010C 4&quot; 60W&...
3
1,750
Unable to build dotnet project in docker
<p>I'm new to docker and i was trying to migrate my API written in .NET 6 from IIS to a Docker.</p> <p>So i've wrote a Docker file</p> <pre><code>FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src # copy all the layers' csproj files into respectiv...
3
1,563
Group list of strings by subparts of item
<p>Sorry for the ambiguous title... I find explaining my issue difficult - let me know if you need to know more.</p> <p>I've got a list that i'd like to be grouped by part of a string. This string is also in the list. This is the complete list, its not static, and will contain different values.</p> <pre><code>CookieMak...
3
1,197
Selenium not getting different URLs
<p>I'm using Selenium in Python to scrape a site that loads Javascript Here's my code: [<a href="https://gist.github.com/elliotmartin/f9cb5021655f913f250b08f39a14dc9d][1]" rel="nofollow noreferrer">https://gist.github.com/elliotmartin/f9cb5021655f913f250b08f39a14dc9d][1]</a></p> <p>For some reason as I loop over diffe...
3
1,073
String printer doesn't print newlines
<p>I am trying to write a simple OS and I'm having trouble converting hexnumbers to strings. I wrote a stringprinter and if I call it on some predefined string it works fine. But after transforming a hexnumber into a string it prints the number but a next call to the printer prints everything on the same line and in so...
3
1,704
throw new Error('Mongoose is not connected');
<h3>So I'm trying to use the mongoose-gridfs module with express but I get the following error when I try to run my express server.</h3> <pre><code>Error: Mongoose is not connected at new GridFSStorage (C:\Users\BARMAN\Documents\Codes\zubis-mart\node _modules\mongoose-gridfs\li...
3
1,269
Cannot acquire correct fractional values in output
<p>I believe I've corrected most of the program. So far it's error-free, but I'm receiving odd values during a certain portion of execution:</p> <p>My output is:</p> <blockquote> <pre><code>0/2 3/4 Cannot divide by zero Cannot divide by zero 0 0 Cannot divide by zero ____________________________________ </code></pre...
3
1,651
Logarithmic returns in pandas dataframe groupby ticker
<p>I like to calculate the <em>log return</em> based on stock prices (adjclose) for each ticker in a dataframe with several tickers and prices.</p> <p>A sample of such a dataframe:</p> <pre><code>import pandas as pd import numpy as np f = {'date': ['2020-11-25', '2020-11-24', '2020-11-23', '2020-11-25', '2020-11-24', '...
3
1,389
Unable to call a parent method using the child method trigger
<p><strong>I am unable to execute the method using the child trigger in one case of the angular app.</strong> I have placed a console log both in the parent and the child method, <strong>only the child method is being called at all.</strong> The parent has a paramater of a type object so I have tried to remove the par...
3
3,402
Anyone know what happens with my Layout in ASP. NET?
<p>You see, I have a problem. I have configured my file <strong><em>"BundleConfig.cs"</em></strong> to minify my styles and scripts in production. At this moment I am in the development environment. My application had some performance problems by the dependencies. At first I had pages and called unnecessary resources, ...
3
9,882
Stuck in recursive query with postgresql
<pre><code>INSERT INTO complaintstatus(complaintid,currentstatus,reason,photo,datetime,open_reopen_status,actiontaken,parent_id) select complaint_id,status,(CASE WHEN (rejectionreason IS NULL OR rejectionreason = '') THEN reopen_reason ELSE rejectionreason END),photo_name,server_time,completion_date,reopen,actiontaken,...
3
1,751
Why optaplanner null pointer when calling move.doMove(guiScoreDirector);
<p>I have a problem on my optaplanner web application. This app is based on the vehiclerouting demo web example. I want to implement a manual doChangeMove function in the web example for course timetabling. My code (courseTimeTablingManager.java) is as follow:</p> <pre><code>public synchronized boolean solve(final Str...
3
2,204
How to rotate figure from points(Hilbert curve)?
<p>I am working on Hilbert curve, and I cant rotate the whole figure, just lower rectangle(look at the screenshots, on third and next steps I have a problem)</p> <p><a href="https://i.stack.imgur.com/TIU8C.jpg" rel="nofollow">first 3 steps</a></p> <p>I have a Figure class. I use it to store every figure and build nex...
3
2,924
CSS menu takes additional space
<p>I am using pure-css in order to create a menu in my small school project. Anyway, I have a menu I am using in all the other pages by calling</p> <pre><code>&lt;jsp:include page="../menu.jsp"&gt;&lt;/jsp:include&gt; </code></pre> <p>My problem is the last line of the menu, "THIS TEXT IS WAY FAR DOWN", I don't know...
3
3,290
Customized "height" in tailwind.config.js is not working【Rails(v6) + Docker + TailwindCSS(v2)】
<p>Hi! I'm from Tokyo of Japan. I thought I should tell you at the beginning that my English is so poor, so I might cause you trouble, I'm sorry.</p> <h2>What I want to solve</h2> <p>I'm creating an app with Docker, Rails6 and TailwindCSS v2.</p> <p>I wanted to use a customized Height(400px), so I added the following c...
3
4,084
Pivot_wider giving me columns with lists in them
<p>I have a data frame with encounter ID and laboratory results of each encounter as follows:</p> <pre><code>library(tidyverse) #Columns with variables encounter_id &lt;- c(1,1,1, 2,2,2, 3,3,3, 4,4,4) wbc &lt;- c(13,NA,13, NA,NA,14, 15,9,15, 11,10,12) hb &lt;- c(13,NA,12, NA,13,14, 15,NA,15, 11,8,12) temp &lt;- c(100...
3
1,107
Compare files and check if something that exists in one file doesn't exist in other file
<p>i have two files, one containing all active user loginnames, and the other one containing permissions with user logins that don't exist in the active users file anymore, so i want to compare these and filter out the user names that no longer exist, but i have no clue how to get started. I have filtered out the the u...
3
1,676
form: doesn't send input - submit won't work (html/php)
<p>It doesn't send any input when submitting with the button. As far as I can see, the submit-block (isset...) should be fine. But there's nothing in the variables <em>name, kuerzel and website</em>.</p> <p>Does anybody can help me?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-b...
3
5,556
How to insert JSON into an accordion menu dynamically?
<p>I need to make a multi-level accordion dynamic menu with JSON. I downloaded a template and I'm trying to adapt my JSON file in this menu, but when I create the sub-menu it returns only an undefined value.</p> <pre><code>$.getJSON("menu.json", function(data) { createHtml(data.menu); }); function createHtml(menuJs...
3
1,457
Merge documents with its nested arrays and their nested arrays
<p>I'm trying to create a query with the aggregation framework, but I could not get the result I want. I have a collection of resellers, each reseller have a list of clients, each clients have a list of members, the structure is as below :</p> <pre><code>[ { "userID" : "xxx", "userType" : "RESELLER", "clients" :...
3
1,652
Is it possible to display component's shadow above an other component in the same View with using map function ? React Native
<p>I’m creating a menu with React Native and it’s 3 components one below the others. I want to add shadows on the bottom of each component to add a little bit of perspective. I want to create 3 buttons one below the others and I want to add shadow to create perspective.</p> <p>My issue is that because of the map funct...
3
1,530
Aurelia unit test route paths to modules
<p>I've been looking for a good pattern to unit test routes I have configured in my application so that I know the specified modules exist on disk as defined.</p> <p>Here is an example route configuration:</p> <pre><code>import { Aurelia, PLATFORM } from 'aurelia-framework'; import { Router, RouterConfiguration } fro...
3
1,032
Why am I getting undefined method with partial?
<p>It had just worked, but when I exited out of a bunch of files it stopped working so I need some fresh eyes to see what I need to put back or take out.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>app/view...
3
7,557
Alternatives to perl module Mail::CheckUser
<p>I need to validate email addresses but am realizing that the only way I've been able to install Mail::CheckUser is. </p> <pre><code> cpan -f Mail::CheckUser </code></pre> <p>I'm using CentOS 7. </p> <p>I cannot find another perl module that uses SMTP signals to test and report status of an email address. <...
3
3,595
Getting the output of Tcl Interpreter
<p>I am trying to get the output of Tcl Interpreter as described in answer of this question <a href="https://stackoverflow.com/questions/16063303/tcl-c-api-redirect-stdout-of-embedded-tcl-interp-to-a-file-without-affecting-th">Tcl C API: redirect stdout of embedded Tcl interp to a file without affecting the whole progr...
3
1,404
Captions in Bootstrap Carousel animate diagonally instead of vertically
<p>I have a Bootstrap 5 carousel with three slides, each with two lines of captions. The captions are supposed to move vertically up and down out of frame each time a slide changes. But since they are attached to the slides, which move horizontally, they end up moving out of frame diagonally.</p> <p>Is there a way to f...
3
2,927
plotWidget doesn't display proper labels
<p>In my 'UI-pyqtgraph' application, I can't get my labels displayed properly on plots. I tried several different tricks but I obviously missuse the combination plotWidget/pyqtgaph. Can you tell me what is wrong ?</p> <p>For example, here is a toy code that shows 2 curves (crosses and dots). Why are my labels 'result n...
3
2,164
QMqttSubscriber not printing received messages
<p>I am working on a mqtt project using QT. The publisher works fine which opens and closes a lock controlled by an raspi3, but I also need to subscribe a topic and need to start another action when the subscribed topic responses. I did a first small example as well, before starting to implement it in the bigger projec...
3
1,677
Join and inheritance jpa
<p>I use spring data, jpa with hibernate implementation</p> <p>I am writing a advanced search</p> <pre><code>public class Samples extends BaseEntity{ .. @Id @ManyToOne @JoinColumns({ @JoinColumn(name = "sampling_id", referencedColumnName = "id"), @JoinColumn(name = "sampling_year", re...
3
1,182
DELETE fails using Fuseki 0.2.6 and Pellet 2.3.1
<p>I am forced to include the external reasoner Pellet with my Fuseki server. So far everything works nice, despite the fact, that I am not able to delete triples containing a literal such as a String or an Integer. My setup: Fuseki 0.2.6 configured with Pellet 2.3.1 as reasoner.<br> Minimal example config: </p> <pre>...
3
3,077
Cannot Use Printf!?! (while performing hashing algorithm using mhash)
<p>I am using Mhash and I would like to print the length of my blocksize for debugging purposes, but I keep getting an error every time I try to compile</p> <p>Any suggestions on how I can fix this error?</p> <p>Here is my code:</p> <pre><code>#include &lt;mhash.h&gt; #include &lt;stdio.h&gt; #include &lt;string.h&g...
3
1,071
Make Tab Content Height Consistent Across All Tabs
<p>I have a TabHost setup with two tabs. The height of the tab content area expands and collapses when switching between tabs to match the data displayed within it. I'm trying to figure out how to make the height consistent so that tab1 is as tall as it needs to be and tab2 uses that same height.</p> <p>The height o...
3
2,500
How to adjust Line Length and Words in Jqgrid row/cell data?
<p>I am having JQGrid this way,</p> <pre><code>&lt;div id="parent" class="resizable"&gt; &lt;table id="grid"&gt;&lt;/table&gt; &lt;/div&gt; var data = [[48803, "DSK1", "", "002200220", "OPEN"], [48769, "APPR", "", "7773333734578923490587238957773333734578923490587238957773333734578923490587238957773333734...
3
2,553
Control modal from parent - React hooks | Reactstrap
<p>I have a problem with controlling reactstrap Modal from the parent. I have basic knowledge of passing data to a child element, but I don't know how when it is more complex, like this... I'm in depression because I can't get it working for a whole day, sorry for bad English.</p> <p>This is part of the code that is in...
3
3,896
gunicorn - AttributeError: 'function' object has no attribute 'read'
<p>I am attempting to create a docker image with flask, gunicorn, and nginx. This application downloads a zip file generated with io.BytesIO() returning a send_file() function.</p> <p>this is the function that generates the zip file:</p> <pre><code>def download_zip(): result = decode_base64() zip_file_bytes_io...
3
1,037
perl - help passing/looping in arguments from file or within a separate perl data structure
<p>I have a while loop that reads in a single file:</p> <pre><code>my %MyItems = (); while (my $line = &lt;&gt;) { chomp $line; if ($line =~ m/(.* $mon $day) \d{2}:\d{2}:\d{2} $year: ([^:]+):backup:/) { my $BckupDate="$1 $year"; my $BckupSet =$2; ...
3
2,267
Issues when installing drake in M1 macOS
<p>I follow the steps in the <a href="https://drake.mit.edu/from_source.html" rel="nofollow noreferrer">webpage</a>, a problem came out when executing<code>./setup/mac/install_prereqs.sh</code></p> <pre class="lang-sh prettyprint-override"><code>drake % ./setup/mac/install_prereqs.sh + binary_distribution_args=() + so...
3
1,413
RXJS Reattach Listeners after Websocket Disconnect
<p>I'm using RXJS with Angular, and have a websocket service that is a simple wrapper over a RXJS WebSocketSubject. </p> <p>I also have some services that need to subscribe to this service for data. On the init of these services, they subscribe to the "base" websocket.</p> <p>This works fine until the base websocket ...
3
1,429
Strange behaviour when sending messages from c++ to chromium extension [Native Messaging] - No data being sent
<p>Hi and hope everyone is doing good!</p> <p>I started working on a chrome extension which talks to a cpp exe. At the moment I am just trying to read some data from the extension which works as expected using the following code</p> <pre><code>unsigned int length = 0; { unsigned int read_char = getchar(); leng...
3
1,186
Bengali Joint letters in Kalpurush font in java messed up
<p>I have written a program (collecting from various sources, I am a beginner) in Java that takes a text(bengali) written in a .txt file and converts it to a .bmp image using the drawString function. The code is :</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <di...
3
2,623
Button Link Does Not Invoke Handler in React
<p>I'm trying to use a <a href="https://react-bootstrap.github.io/components.html#buttons" rel="nofollow noreferrer">React Bootstrap Button Link</a> to call a handler</p> <p>I'm not sure why the click when clicked is not invoking my handler:</p> <pre><code>import React, { Component } from 'react' import { HelpBlock, ...
3
1,618
Displaying a mysql image on a jsp page
<p>I'm trying to present an image taken from mysql in a certain part of my jsp page. The problem is that no matter where put the &lt;%> code, I only get the image and not the rest of the content on the page. I want to get the navigation bar and everything else on top of the image returning from the query result. The co...
3
3,468
cvExtractSURF don't work when useProvidedKeypoints = true
<p>So, I'm trying to extract some SURF keypoints, but I want to impose these key points! So, I put the last parameter to "true" which is "useProvidedKeypoints".</p> <p>Also, when I create my Keypoint, I used the default constructor (so some default values there). I only change the point "pt" and the octave that I set ...
3
1,027
AndroidRuntime java.lang.NoClassDefFoundError my.package.CustomActionBarDrawerToggle
<p>I am using Eclipse as IDE. Android SDK Platform-tools 21 ( latest )</p> <p>With the wizard I have added a "Navigation Drawer Activity". Next-> Next->... Finish.</p> <p>Then I saw there are deprecated methods, I have checked already here and some are because is deprecated in API version 21 others are because the v...
3
1,647
StopPropagation react google maps autocomplete
<p>I would like to stopPropagation of <a href="https://react-google-maps-api-docs.netlify.app/#autocomplete" rel="nofollow noreferrer">https://react-google-maps-api-docs.netlify.app/#autocomplete</a>.</p> <p>The autocomplete works well but I need to use it in a popover and when I select a place the popover automaticall...
3
1,438
Find probability of a single occurrence in map_query in pgmpy
<p>I am working on a bayesian network which looks like this</p> <p><a href="https://i.stack.imgur.com/ML252.png" rel="nofollow noreferrer">bn</a></p> <p>I want to find the probability of P(+j|-e) which means that finding the probability that JohnCalls is true given earthquake is false. Here is the code that I wrote whi...
3
2,136
Req.body is Empty in Node Js
<p>In my Node application I am trying to view request.body object to check for elements that are coming inside of it but <code>console.log(req.body)</code> revels that its empty. Here are my files.</p> <p><code>app.js</code> file below</p> <pre><code>var express = require("express"); var app = express(); var mongoose...
3
2,942
ValueError: Shapes (None, 200, 3) and (1, 3) are incompatible
<p>This is the model that I am trying to train for identifying possible tag(out of three tags) for each word, also I have added a layer from another model whose output shape is [1, 100]tensors and then I have concatenate it with BiLSTM output-</p> <pre><code>input1_entity = Input(shape = (200,)) last_hidden_layer_outp...
3
1,615
Multiple file Vue js setup -- [Vue warn]: Error in v-on handler: "TypeError: formSubmitMessage is not a function"
<p>I'm using javascript. I used Vue and traditional html to write a reactive single page app, and I want to port it over to vue cli. I have several js files. One has a function in it that I want to call using Vue single file components. One of the js files is called 'controls.js'. One is called 'v.js'. The v.js file ha...
3
3,174
Issue with Angular2 file manager - cannot find modules
<p>I trying to run this file manager in my application: <a href="https://github.com/qjon/angular/tree/master/projects/filemanager" rel="nofollow noreferrer">Angular2 file manager</a></p> <p>The issue occurs inside app module, where i want to import this modules. At this moment it looks like this:</p> <pre><code>... ...
3
2,962
Failed to load the native TensorFlow runtime: ImportError: DLL load failed with error code -1073741795
<p>I am using Python 3.7 on Windows 7 and I successfully installed <code>tensorflow</code>. However, when running</p> <pre><code>import tensorflow as tf </code></pre> <p>in my Python IDE, I am getting the following error:</p> <blockquote> <pre><code>ImportError: DLL load failed with error code -1073741795 Python 3....
3
1,276
Get last item from a table using Selenium Driver C#
<p>I am new working with selenium driver and C# and I am facing few problems. </p> <p>I have a table created by an asp.net webforms application. I can't change this software and I need to take the last link from this table.</p> <p>This is the table code generated by the asp.net webforms application.</p> <p><div clas...
3
2,062
ClassCastException with Tomcat and JSP
<p>I'm working on a website with Java Servlets and JSPs. I'm running it on tomcat. One of my JSP's makes use of a custom class called Message. I set an arraylist messages in a servlet and then try to access it in my JSP, using request.getAttribute() If I print the Messages to the console, it works. However, when I tr...
3
1,654
Symfony2 twig template is not updated after user registration
<p>I have in my symfony2 application a registration modal which is working fine except for the template which is not updated in time but after one refresh.</p> <p>When I successfully register in my application, the page is reloaded and I am connected in my app (I can see it in the Symfony debugger) but I can still see ...
3
1,676
How to fix fatal error in wpmudev private messaging wordpress plugins
<p>How I can fix this:</p> <blockquote> <p>Fatal error: Call to a member function is_lock() on a non-object in /home/u791507189/public_html/wp-content/plugins/private-messaging/app/views/shortcode/_inbox_message.php on line 12</p> </blockquote> <p>Here is code:</p> <pre><code>&lt;?php $message = array_shift($m...
3
17,942
'NoMethodError in Posts#index' error in the index page
<blockquote> <p>This is my index.html.erb file</p> </blockquote> <pre><code>&lt;% @posts.each do |post| %&gt; &lt;div class="post_wrapper"&gt; &lt;h2 class="title"&gt;&lt;%= link_to post.title, post %&gt;&lt;/h2&gt; &lt;p class="date"&gt;&lt;%= post.created_at.strftime("%B %d, %Y") %&gt;&lt;/p&gt; &lt;...
3
1,734
Timeout in multipart download
<p>I'm working on a C# winform application that is downloading by multypart asynchronously. But, some of part catch request time out error. i try to start fiddler application while my application working. My application work properly and complating download operation for all part. What effect does Fiddler have on the p...
3
2,610
Getting no output while using getPreference in Android
<p>I am trying to learn sharedPreferences in android and have written small piece of code for the same. But once i execute it, The application does not show any output.</p> <p>Here is my preference class:</p> <pre><code>public class SharedPreferncesExecutor { public static final String PREFS_NAME = "AOP_PREFS"; ...
3
4,434
How to match the KeyId,if keyId will be match remove from array in AngularJS?
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code> /** * @Summary: setUserAccessB function, to get detail of the shared product. * @param: event, index, us...
3
2,665
Inverting/Mirroring a Binary Tree. Method isn't leaving the input tree intact?
<p>I'm new to Java (only been programming a month) and so I've been practicing some concepts. So if this is a naive or stupid question please be patient with me. I've only ever programmed in MATLAB before!</p> <p>I just successfully inverted a binary tree (on my first try too!). However, I'm struggling with why my meth...
3
1,423