title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Calculating Avg, Max, and Min using a .txt input file with both integers and strings mixed
<p>Please help. I've looked everywhere and am stumped on how to finish this program. I need to calculate the average, max, and min from a data input file. They need to look like this:</p> <pre><code>System.out.println("The average total score of the class is: " + total/27); System.out.println(maxName + "got the maximu...
3
1,479
Globalization 1.x with DevExtreme library
<p>I have a question with the DevExtreme v.16.1 in combination with Globalize 1.x. They upgraded from 0.x to 1.x and I cannot make it work since the update.</p> <p>I put the loading of the librries in an external file, and loaded the rest of the application after the promise is resolved.</p> <p>This is tje importatn ...
3
1,640
facebook chat api, xmpp_connect return false
<p>Facebook chat api, Function xmpp_connect return false on block</p> <pre> // gets challenge from server and decode it send_xml($fp, $AUTH_XML); if (!find_xmpp($fp, 'CHALLENGE', null, $challenge)) { return false; } </pre> <pre><code>I can't understand what is the problem. Please help. </c...
3
3,132
Unable to Build Docker Image for Spring Boot No such property: parentFile
<p>I am trying to build a sample docker image for my helloworld program</p> <pre><code>import com.bmuschko.gradle.docker.tasks.image.Dockerfile import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage plugins { id 'com.bmuschko.docker-remote-api' version '6.7.0' id 'org.springframework.boot' version '2.7...
3
1,192
CarouFredSel sliding issue
<p>I have set up a caroufredsel, and have items inside of it. But when I click on my next and previous buttons, the first time it appears to shift 1 item, every click after that it shifts the entire width of the content and back to the beginning.</p> <p>I have set my scroll items to 3. Does it have something to do wit...
3
1,166
Trouble printing to a specific Tray (PaperSource) using VB.NET PrinterSettings
<p>I've been having trouble automatically selecting a Tray (PaperSource) to print from on a specific printer (HP OfficeJet Pro 9020 series) using VB.NET. I have reduced my code to a bare minimum below to indicate the process I'm following.</p> <p>After the print dialog has popped up and you select 'Tray 2' from the lis...
3
1,087
Create binary of spaCy with PyInstaller
<p>I would like to create a binary of my python code, that contains spaCy.</p> <pre class="lang-py prettyprint-override"><code># main.py import spacy import en_core_web_sm def main() -&gt; None: nlp = spacy.load(&quot;en_core_web_sm&quot;) # nlp = en_core_web_sm.load() doc = nlp(&quot;This is an example&q...
3
1,082
Using PHPMailer without Composer
<p>I just tried this example:</p> <pre><code>// for use PHP Mailer without composer : // ex. Create a folder in root/PHPMAILER // Put on this folder this 3 files find in &quot;src&quot; // folder of the distribution : // PHPMailer.php , SMTP.php , Exception.php // include PHP Mailer use PHPMailer\PHPMailer\P...
3
1,230
timetable for scheduled subjects
<p>i got it right though my problem now is how can i put a style on the table row that has the data inside it and much better if i can put rowspan to it so that it will look like one table row.</p> <p>here is the output: </p> <p><a href="https://i.stack.imgur.com/qRNLz.png" rel="nofollow noreferrer"><img src="https:/...
3
1,058
New pdf for every different customer number
<p>I have tried to cut down the code as much as possible. The most important part of the code is the second block. There are only two scenarios where I need a different bill to address. These are hard coded in shippercarrierdata,shippercarrierdata1.These create pdfs fine. the problem is creating the default addresses f...
3
9,816
Python: Problem fitting the word2vec embeddings into Keras Sequential Model
<p>I have a very simple Sequential Model:</p> <pre><code>embedding_size = 100 model = keras.Sequential([ keras.layers.Flatten(input_shape=(embedding_size,)), keras.layers.Dense(200, activation='relu'), keras.layers.Dense(50, activation='relu'), keras.layers.Dense(4, activation='softmax') ]) adam=keras...
3
1,623
FlatList not showing up
<p>I am following a tutorial video for React Native. Everything is working well besides the FlatList, I am unable to make it show up on the simulator. I am using expo, while this tutorial is done using bare. Maybe that is causing the issue, but I am not sure how to resolve it.</p> <p>Here is a link to the video: <a hre...
3
1,121
LLVM-C creating object file results in: "TargetMachine can't emit a file of this type"
<p>Trying to generate a very simple object file with LLVM-C. Unfortunately I'm still stuck on "TargetMachine can't emit a file of this type" tried reordering code and various things for CPU (x64-64, generic and LLVMGetHostCPUName()). Clearly something (hopefully obvious) is missing here.</p> <p>The code below is compi...
3
1,610
How to access SQLite database in androidRecyclerVIew?
<p>I've created a SQLite database which contains two columns: "title" and "content" and don't have any idea how to display it in my android RecyclerView with two textViews "card_title" and "card_content". please kindly help me with this. Here is my recycler adapter:</p> <pre><code>public class RecyclerAdapter extends ...
3
1,500
XSLT element selection based on Choose not working
<p>I have the following XML:</p> <pre><code>&lt;Document&gt; &lt;Row&gt; &lt;KEY&gt;NIKE|JB|APPAREL|MENS&lt;/KEY&gt; &lt;Period&gt;Nov-21&lt;/Period&gt; &lt;/Row&gt; &lt;Row&gt; &lt;KEY&gt;FASCINATE|JB|ACCESSORIES|LADIES&lt;/KEY&gt; &lt;Matches&gt; &lt;Row&gt; &lt;KEY&gt;FASCINATE|JB...
3
1,533
Visual Studio 2019 Xamarin Forms Google Ads - Build Problem
<p>I have had an issue for weeks after upgrading to the latest VS2019 and XF versions. Along the way, I have moved from VS 16.3.2 to .5 with no fix. It displays "Unexpected Element found in - AndroidManifest.xml - Line 14. I have also updated many of the NuGet packages and performed clean/build many times. Any ideas?...
3
1,874
Unable to startActivity from BottomSheetDialog
<p>every thing works fine with this context <code>ctw = ContextThemeWrapper(cont, R.style.AppTheme)</code> but when i want to start any activity my app is crashing. actually this ctw works fine with Toast in this method but when i pass this ctw to Intent for starting activity is gives error. i also trying cont variable...
3
1,643
Optimize Excel VBA Macro for Copy-PasteValues
<p>I'm new in Excel-VBA and I need to improve my macro performance. I have a macro that searches an excel, opens it, then goes through every sheet and copy-pastevalues for all cell with a specific color (yellow). Finally saves and closes the excel. In addition, excels sheets are locked and only those yellow cells are e...
3
1,705
My App is giving the "Register Error 1" - why so?
<p>i am trying to write a class that would collect data from the registration form and send it to an online database, i am doing that through volley, but i keep getting the same error "Registration Error 1", I already checking my database connection and the PHP Registration code and it is okay. i think the problem is f...
3
1,674
Need help getting OneToMany association from ManyToOne
<p>Let me start off by saying I asked a similar question before and got it answered. I tried using those principles here but I'm stuck again am am not sure where to go from here. </p> <p>I have a page where I list out all the 'products' along with their respected id's, price, and name. On this same page I want to get ...
3
3,198
registers with the verification email , but when submitted insert double data
<p>still continue the project which I've posted . a bit of trouble on registering with a verification email . currently running normally: registers the verification email, sents to the email destination. but I see there are two inserts with the same data (as submitted) in the database. Is there anything wrong with my s...
3
1,763
i want to keep show social icon with js
<p>i have js script for button when i click it show social icon and when i click back its hide. but i want to keep show all social icons. below is my js scipt.`// Bind the social button to show/hide the social icons box</p> <pre><code> $('#social-pop-out-trigger').click(function() { var $allBoxes = $('...
3
1,078
How to draw Color Bands in Flex Chart?
<p>I want to draw a custom background in my flex chart with vertical axis is linear and horizontal axis is category. In background i want to shade the regions according to data given by user. I tried CartesianDataCanvas and gridlines in chart backgroundelements but not getting a good solution. Anyone have an idea? i pr...
3
3,393
Remove duplicate rows where col1 and col2 are equal but reversed
<p>I have a query that has the following results. How can I modify this query to remove duplicate rows. In this case, the duplicates would be &quot;row1.antecedent = row2.consequent and row2.antecedent= row1.consequent&quot;. I only need one such row, not both in my results. Also, this logic has to be directly adde...
3
1,317
Error while compiling with clang/clang++ [-Werror,-Wrange-loop-constrcut]
<p>I'm trying to build a c++ project. While doing so with g++ the project compiles fine. However if I try to compile with clang I get the error:</p> <pre><code>ec_read_plan.h:135:19: error: loop variable 'op' creates a copy from type 'const std::pair&lt;ChunkPartType, ReadPlan::ReadOperation&gt;' [-Werror,-Wrange-loop-...
3
1,065
How to count correctly 2 inner levels count?
<p>I have a structure for a university DB wherein I have three tables: <code>room</code>, <code>students</code>, <code>possessions</code></p> <pre><code>CREATE TABLE `rooms` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL COLLATE 'utf8_general_ci', PRIMARY KEY (`id`) USING BTREE, UNI...
3
1,036
concatenated relu in caffe using python
<p>I want to implement "concatenated relu" in python using caffe. It defines as ConcRelu = Concat (Relu(x), -Relu(-x))</p> <p>Bellow is a naive implementation, but does not work! I would appreciate any help!</p> <pre><code>def prelu(self,bottom,args): 'prelu layer' return L.PReLU(bottom, in_place=True) def ...
3
5,110
Slow camera and app close within less than minute
<p>I'm developing an android application which detect text using OpenCV's MSER algorithm. The application is working just fine and doing what it should do, but it closes after less than 1 minute! note that there is no errors or something. I think the problem is with the memory, I monitored the memory of my device while...
3
4,506
Quote issue in HTML, Javascript, .innerHTML, switch and case
<p>I'm modifying a websense block page to include a few functions based on a variable: $*WS_BLOCKREASON*$. I know the potential output of this variable, and I want to have a specific function for. </p> <p>The issue is that the page is not passing even the default case to the '&lt;'div'>' contents. Essentially I need t...
3
1,926
Hive: predicat pushdown doesn't work on ' where col_name is not null '?
<p><strong>when I running this sql code:</strong></p> <p>explain select count(1) from default.ec_order_info where coupon_discount_info is not null</p> <p><strong>query-plan shows:</strong></p> <pre><code> STAGE DEPENDENCIES: Stage-1 is a root stage Stage-0 depends on stages: Stage-1 STAGE PLANS: Stage: Stage-1 ...
3
1,275
C macro's argument limiting by argument prefix
<p>I have a set of defined macros as follows.</p> <pre><code> #define ARM_FRONT_REG 1 .............. #define ARM_REAR_REG 10 #define MOTOR_MAIN_REG 1 .............. #define MOTOR_AUX_REG 3 #define MOTOR_REGISTER_ADDRESS(register_offset) \ ( ...
3
3,602
Inconsistency in UI display between computers
<p>So me and a couple of friends are working on a project using flutter and firebase and all that and this is all of our first time working with flutter. One friend has been working on most of the UI elements and it looks perfectly fine on his end, but when we run it it looks completely different and squashed. We all h...
3
1,465
Can't restore OrientDB Backup
<p>I'm having trouble restoring an OrientDB database from a backup. I'm using OrientDB version 1.2.0 (this backup is from November 2012) and the backup was produced by OrientDB (same version) using the built-in backup utility. I'm trying to restore the backup to a new database using the OrientDB console:</p> <pre><cod...
3
1,753
using position() in XSLT transformation
<p>I am trying to transform following XML </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;catalog&gt; &lt;cd QualifyingCode="1"&gt; &lt;title&gt;title1&lt;/title&gt; &lt;artist&gt;artist1&lt;/artist&gt; &lt;/cd&gt; &lt;cd QualifyingCode="1"&gt; &lt;title&gt;title2&...
3
1,126
Getting No tests to run on executing pom.xml as maven test but on executing testng.xml its working fine
<p><strong>Getting No tests to run on executing pom.xml as maven test, but on executing testng.xml its working fine.</strong></p> <p><strong>pom.xml - tried including Test case names as well as removing them . nothing is working</strong></p> <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xml...
3
1,400
Can't get WordPress hook to fire inside embedded class
<p>I am trying to build some nice metabox functionality with some oop.</p> <p>I have my main DazSEO class, which inside contains a Metabox Class.</p> <p>When I set WordPress save data hooks up inside the metabox class, they won't fire, but when I set them up from the root class, they will.</p> <p>Is using hooks insi...
3
1,053
Unable to hit spring mvc controller through ajax call
<p>1.Below is my ajax call in index.jsp</p> <pre><code> &lt;script type="text/javascript"&gt; $(document).ready(function(){ $('#buttonDemo1').click(function(){ $.ajax({ method: "GET", url: '${pageContext.request.contextPath}/ajax/demo1', ...
3
2,162
How to populate treeview in backgroundworker C#
<p>I have those below code that populate a treeview named treeView1 with data from JSON file using JSONnet. If I open a large json file, the UI hang during the populating progress, so how can I make everything happen in a backgroundworker and show a progressbar for populating progress? thanks</p> <pre><code> privat...
3
1,031
How to apply custom font to multiple TextViews within a fragment?
<p>I am trying to change the default font for multiple TextViews in android fragment by a custom font. The code to accomplish this is in onCreateView of thefragment as shown below:</p> <pre><code>@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInst...
3
2,719
One session design pattern for EJB JPA and GWT RequestFactory aka keeping JPA session between multiple method calls
<p>The setup is like this:</p> <p><strong>Front-end:</strong> <code>GWT</code> using <code>RequestFactory</code> for sending data objects<br> <strong>Back-end:</strong><br> <em>Web-layer:</em><br> <code>GWT</code> server side code which has injected EJB<br> <em>EJB-layer:</em><br> Stateless sesion beans: </p> <p...
3
1,224
Loosing setted instance / null after method ending (@Autowire)
<p>Im trying to set parser depend on URI. I was debugging it. When condition is OK my parserParent is setted, but at the end of setParser() method, parserParent is again null. I was trying to combine with asigning @Autowired annotation in inherit class, but always Im getting the same NullPointer error. How to fix it ...
3
1,602
ajax load posts as full page slides
<p>I've been scratching my head over this and wondering if anyone has a solution. Effectively I'm creating a full viewport slider that dynamically loads the posts into a hidden div that is then animated into the page based on the direction the arrow is clicked. I can get the hidden div to animate in, however the script...
3
2,875
How to make my code with ellipsoidhull and for/if loop more efficient
<p>My code is structured so that I create an ellipse through my first three points of data. Then I go through each next row, and if the point falls outside the ellipse, I record the minimum distance between the point and ellipse. These points have datetime associated with it so I can only keep points 10 minutes old in ...
3
1,192
crash when i try to create a path between two points in osmdroid
<p>I have recently started studying android and kotlin programming, I'm trying to create an application that allows you to create one or more routes on a map, save it and then retrieve it when necessary. I chose to use osmDroid and osmBonusPack because open source but I don't find much documentation online, I'm trying ...
3
8,589
Placing an <h3> over a form/div
<p>I've got this HTML code and i want to place an above this but, whatever i am doing, it is always placed to left side of the form.</p> <p>I know it's a very basic question but i am not that experienced in CSS. How am i supposed to do this? Is there a w3-class that will do this for me? </p> <p><div class="snippet" ...
3
1,183
The dropdown menu button stays open and won't close
<p>I have got a dropdown menu button and when clicked on the icon it should open and when clicking off the icon or on the icon then it should close again, but instead it stays open.</p> <p>Here is a screenshot, to what i am referring too.</p> <p><a href="https://imgur.com/VbU5nit" rel="nofollow noreferrer">https://im...
3
11,980
Django 3 ModelForm NameError? I'm sure there's a glaring error but I just cannot see it?
<p>Hoping for a bit of help, I've been trying to deal with this error for about 3hrs and I'm going around in circles.</p> <p>Django 3 project. It's a simple app for leaving a review for a product and I keep getting a NameError and I just can't figure out what it is?</p> <h1>models.py</h1> <pre><code>from django.db impo...
3
3,081
Retrofit response returning null in Android Studio
<p>I want to fetch live data from coinbase api. I'm using Retrofit to make API call I got a null response when i tried returning displaying the data</p> <p>the json response from the api <strong>JSON</strong></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div cla...
3
1,304
header position of the grid not fixed while printing,
<p>there is a grid that populates data,</p> <pre><code>&lt;asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Width="1000px" Height="8000px" BorderColor="Black" BorderWidth="1px" Visible="true" BackColor="LightGray"&gt; &lt;asp:GridView ID="List" runat="server" Visible="False" OnRowDataBound="List_RowDataBound"...
3
1,265
How to speed up document append to existing array in elasticsearch?
<p>I am using elasticsearch version 6.3.1. And I am creating a nested type field,I have created this field to append all the documents of same ID.</p> <p>Here is my schema for index:-</p> <pre><code>curl -XPUT 'localhost:9200/axes_index_test12?pretty' -H 'Content-Type: application/json' -d' { "mappings": { "axes...
3
2,353
Generate new matrix from old matrix with specific conditions
<p>I have matrix <code>R(100*100)</code> and I want to generate new matrix <code>A(100*100)</code> as below conditions</p> <p>If I have a frequency to add a new condition<code>(let us say frequency = 20)</code>. This mean I will have five conditions inside my domain `(100/20)=5</p> <pre><code>From 1 to 20, from 21 to...
3
1,342
Too many redirect
<p>I have this php script ( phpfanlist ) with an admin section that refused to work one day. I guess it came with a php update or something. I didn't mind at the time but now it's bugging me big time.</p> <p>I made research, I checked the log and all ( there was a depreciate <strong>=&amp; new</strong> in front.inc.ph...
3
1,350
Trying to understand lists of dictionaries
<p>This is my looping code</p> <pre><code>for netid,email,first,last in notification_list: # put list data in usable format suspend_stat_dict['netid'] = netid # fill dictionary suspend_stat_dict['email'] = email # fill dictionary suspend_stat_...
3
1,151
angularjs multiple countdown
<p>Im in need to make a countdown like this:</p> <pre><code>&lt;div class="countdown" countdown="1482400417"&gt;00:10:02&lt;/div&gt; </code></pre> <p>where the countdown attribute is the time when its finished. the difference is showed in hours:minutes:secs , and it updates each second.</p> <p>How would i do this i...
3
1,229
My button doesn't work
<blockquote> <p>This is the main activity, where I click the button</p> </blockquote> <pre><code> public class NewAddMarketingProg extends Activity implements OnClickListener { private StartAppAd startAppAd; String note_detail; ListView lvNote; String[] data; private int mIndex; private...
3
3,899
sed second occurrence of a string - for all lines in external file (Linux)
<p>I have a file that has duplicate values in column 2 that need to be renamed. There are ~8k duplicate values (in file <strong>list.of.duplicates</strong>) throughout the ~5m line file (<strong>with.duplicates</strong>).</p> <h2>Data set inputs:</h2> <p><strong>with.duplicates</strong></p> <p>1 rs143225517 ...
3
1,483
jQuery datatables loaded from JSON, row click event only firing on sort
<p>In part of my Rails 3.2 app I am loading a datatable from server side JSON similar to <a href="http://railscasts.com/episodes/340-datatables?view=asciicast" rel="nofollow">Railscast #340</a>. </p> <p>I'm trying to call a row click event on the row to load a separate detailed view next to the table and the jQuery cl...
3
2,387
If cell value the same as above, then
<p>I am trying to check if the value in a cell in Column B is the same as a cell in Column B in another row, Y places lower/higher. Y being a value in cell &quot;A8&quot;.</p> <p>IF the values are the same then the value in Column P of the same row has to get the same value as in Column R of the same row.<br /> ELSE Co...
3
1,049
MS Access syntax error when updating on join
<p>I am receiving </p> <blockquote> <p>Run-time error '3075' - "Syntax error (missing operator) in query expression 'ct.ContainerID FROM tblCrossarm AS mt INNER JOIN tblContainerTemp AS ct ON mt.SerialNumber = ct.SerialNumber</p> </blockquote> <p>At the time of the failure, the strSQL variable looks like: </p> <pr...
3
1,067
How to properly detach and remove shared memory between 2 processes in PHP?
<p>I developed a way to make async tasks with PHP and it's working very well, until now.</p> <p>The logic based in 3 extensions <a href="http://php.net/manual/en/book.pcntl.php" rel="noreferrer">PCNTL</a>, <a href="http://php.net/manual/en/book.posix.php" rel="noreferrer">POSIX</a> e <a href="http://php.net/manual/en...
3
1,254
HDFS IO error (hadoop 2.8) with Flume
<p>I am getting the below error when I try to get a streaming data into hadoop through Flume.</p> <p>I have created link in flume/lib that point to the <code>.jar</code> files in hadoop/share/hadoop/</p> <p>I double checked the URL and I think they are all correct. Thought of posting to get some more eyes and some fe...
3
1,442
Python Error: 'float' object cannot be interpreted as an integer
<p>I am trying to build this tax calculator and keep receiving this error:</p> <blockquote> <p>'float' object cannot be interpreted as an integer</p> </blockquote> <p>The problem seems to be my <code>range</code> line, but I can't figure out how to fix it.</p> <pre><code>class taxCalc: def __init__(self): ...
3
1,038
Android Firebase : Second Connected Database not allowing auth in rules
<p>I've connected two Databases from the same firebase project like below.</p> <pre><code> //init the default db; FirebaseApp.initializeApp(this); //init the second db; FirebaseOptions.Builder builder = new FirebaseOptions.Builder(); builder.setApplicationId("id"); //Same as default builder.set...
3
1,066
Rails: how to save a gem's class as a model in my database?
<p>I've been building a Google Tasks integration app and just switched to using the Google API Client (<code>gem 'google-api-client', '~&gt; 0.34'</code>)</p> <p>This gives me some classes that I'm really starting to like:</p> <pre class="lang-rb prettyprint-override"><code>Google::Apis::TasksV1::Task Google::Apis::T...
3
2,082
Wizard page resize
<p>I'm developing a application which has a multi-page wizard. And we want it to perform like the Preferences page in Eclipse. When you are dragging the left side, only the right side will be resized. The below shows the BasePage of the wizard. Each page in this wizard extends this BasePage. How can I modify the BaseP...
3
1,827
JPA/ JPQL: How to use member-of with an hash-map
<p>I have problem using the member-of Statement. The problem I think is, that I made a mistake with the elements --> parameter.get("" i + anlass) but I don't know how to do it right. Are there any other possibilities to ask if a certain element is an <code>@ManyToMany</code> List from another Object? </p> <p>Here's m...
3
3,085
SES Boost Mail Speed
<p>I am using SES and trying to send emails to almost 2000 people at one go. The code which I am using is written in JAVA using javamail library and it takes around 28 seconds to deliver 22 mails. </p> <p>Is there any way I can boost the speed up by changing language or library or any alternate way. Here is my code fo...
3
1,254
Jquery incompatibility issue with Chrome
<p>I ran into a headache situation. When I checked the selection option (05/30/2012 EQ), I can't click select button to submit the action, but I am supposed to be able to click it. The issue happens with Chrome and I.E, but it is good with FF. I think it is a Jquery incompatibility issue. I attached some of my code as...
3
2,192
here api shows smaller trafficTime for route with same start and end points but via addtional waypoint
<p>How come trafficTime (fastest) from A to B is longer than trafficTime from A to B via C, in the same arrival/departure times?</p> <p>V7 requests: A to B: trafficTime = 4979 seconds <a href="https://route.ls.hereapi.com/routing/7.2/calculateroute.json?apiKey=KEY&amp;waypoint0=32.6289624435649%2C35.079885159610136&am...
3
1,460
Combing scatterplots on Vegalite
<p>I'm trying to combine 3 scatterplots to look something like this <a href="https://i.stack.imgur.com/Cu1z8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cu1z8.png" alt="Example" /></a> the code for the example</p> <pre><code>{ &quot;$schema&quot;: &quot;https://vega.github.io/schema/vega-lite/v...
3
5,851
Unexpected static counter variable behaviour
<p>Lately I tried getting my head around the static keyword and here I attempt to simply use the static keyword for a variable declaration within a function. Like so:</p> <pre><code>void counter() { ...
3
1,219
maven-embedded-glassfish-plugin not work with logback
<p>I am encountering a problem when using maven-embedded-glassfish-plugin(3.1.2.2) with logback that the configuration of logback is NOT used in embedded glassfish.</p> <p>And, I found <a href="https://stackoverflow.com/questions/21645652/configure-glassfish-embedded-server-with-logback-logging">this</a> and <a href="...
3
1,577
Update mysql data via json
<p>Hey all So I am able to update the records from a json url and put it into Mysql now I am trying to update the records and it only grabs 1 value and updates all the records to the new value so its updating the existing records with only 1 record here is what I am using</p> <pre><code>$ApiLink = "JSON URL HERE";...
3
1,626
Typescript: Compilation Error only when using Docker
<p>So I have this weird error when Typescript would throw a Compilation Error when I try to to run my app using Docker. This error does not happen when I run it locally on my computer.</p> <p>My Dockerfile</p> <pre><code>FROM node:alpine WORKDIR /app COPY package.json . RUN npm install --only=prod COPY ./ ./ CMD [&q...
3
1,509
Conditional merging with many variables
<p>I am wondering if there was a faster, more elegant data.table solution to my following question.</p> <p>Suppose we have two datasets</p> <pre><code>set.seed(1) library(data.table) DT1 &lt;- data.table(income = runif(10, 0,1), ID = 1:10) DT2 &lt;- data.table(height = runif(20,0,1), ...
3
1,645
Why the strings sticks out from the Bubble window?
<p>Strings has to go to next line if it's long. How can I do this?</p> <p><a href="http://jsfiddle.net/Yu6dD/" rel="nofollow">Demo</a></p> <p><strong>HTML</strong></p> <pre><code>&lt;div class="chat"&gt; &lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;th&gt;Body&lt;/th&gt; &lt;/tr&gt; &...
3
1,451
Keep prompt at bottom of screen for messaging app
<p>I'm trying to develop a CLI messaging app in C on mac for network programming practice but I'm not sure how to effectively manipulate the command line to make it usable. Currently the prompt will display "Enter a message: " but if a message comes in before the user finished typing their message something like this c...
3
1,650
how do I use variables from functions in other functions without putting the variable in the __init__ method of a class?
<p>I am new level coder, and I making a game that has different kinds of attacks, and I want to be able to combo into attacks seemlessly, but I cannot figure out how to make a delay between different attacks. So far I have tried to use to the same value that is the attack delay so that if the delay is reset, you can us...
3
4,445
AWS Lightsail can't update Route53 for Let'sEncrypt certs
<p>I'm trying to get Let's Encrypt automatic cert update on a AWS Lightsail wordpress instance and Route53.</p> <p>I used <a href="https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-lets-encrypt-certificates-with-wordpress" rel="nofollow noreferrer">these official instructions</a> for adding...
3
1,230
How to track and move String from left to right?
<p>I'm making a racing game using Strings and I'm having trouble making them move to the right. How would I go about moving the Strings? Methods JamesMove() &amp; KeithMove() are the same as SusanMove(), just with the name of the variable are different.</p> <pre><code>public class NameRacer { public static void n...
3
1,952
Babel config in a MERN app
<p>I have given up at trying to learn rails. I'm now focusing my energy on trying to get started with node, using the MERN stack. I have done both Stephen Grider and Andrew Mead's udemy course as well as all of the code school js courses. I'm afraid I'm not off to a promising start.</p> <p>I'm stuck at getting my impo...
3
2,129
Android Parcelable Unmarshalling prob
<p>I have two class named <code>AlacarteCategory</code> and <code>AlacartePack</code></p> <p><strong>Class AlacartePack</strong> </p> <pre><code>public class AlacartePack implements Parcelable { private int alacartePackId; private String alacartePackName; private double price; private String smsCode;...
3
2,835
Python TCP Payload Duplication - Passing through data to multiple endpoints concurrently
<p>this is my first post here!</p> <p>My goal is to duplicate the payload of a unidirectional TCP stream and send this payload to multiple endpoints concurrently. I have a working prototype written in Python, however I am new to Python, and to Socket programming. Ideally the solution is capable of running in both Wind...
3
1,515
Can not find new elements after javascript append using chrome webdriver
<p>Here's the simple HTML generated from a c# dotnet core asp pages, application. I'm trying to get the number of input boxes from colorList div using a webdriver test. The initial count of two works, but once i simulate the clicking the button labeled "+" i still only get two, where i expected to get three. I've t...
3
1,403
How can I design this layout in FLUTTER
<p>I am developing a clone of functionality where shopkeepers can enter their daily Cashoutgoings and cash incomings but I am having trouble designing the layout. Basically, I want to show different entries in their respective columns. Here is the code and the snapshots of my project</p> <pre><code>class CashInCashOut ...
3
3,667
verbose stack Error: ENOENT: no such file or directory, open
<p>I am trying to run the local server using <code>npm start</code> for my React app that I am working on. Which worked fine yesterday. But when I try to run it today I get the following error message see below. I tried some solution son internet, like reinstalling <code>npm install</code>, deleting <code>package-lock....
3
1,132
Intentional friend class redifinition and -fstack-protector
<p>I have been trying testing if multiple definition of a friend class in different <code>.cpp</code> files would work. To do that I defined a main class inside <code>main_class.hpp</code> file:</p> <pre><code>class main_class { private: int a; int b; int gimme_a() { return a; } public: ...
3
1,351
sqlite not saving french accents like à as $agrave
<p>When i will save into my database "C&#39;est tout &agrave; fait juste.", sqlite will remove the &amp; from &amp;agrave, becouse it can't maybe handle utf-8.</p> <p>var sql += "INSERT INTO Test(TestId,Text) Values(1, "C&#39;est tout &agrave; fait juste.");</p> <p>I tried for every insert to replace the $agrave with...
3
1,766
How to display sqlite database in the form of cards in android?
<p>This is my code how i store the data in sqlite database.Now i want that all the data from the database display in the form of cards in other activity suppose when i press showdb button then the data displayed.</p> <pre><code>public class ConfigureNode extends AppCompatActivity implements LocationListener, ...
3
3,101
OrientationSensor / Inclinometer weird, undocumented sensor reading jump when facing horizon
<p>I'm trying to upgrade an app of mine to use Windows 10 Mobile device sensors as a VR device for the pc (like Google Cardboard). I'm experiencing a problem with the sensor readouts when the device changes from pointing below the horizon to above the horizon (happens for both landscape and portrait, however in this ca...
3
2,492
Hibernate list mapping constraint violation
<p>These are my postresql tables :</p> <pre><code>CREATE TABLE "user" ( "id" int4 NOT NULL, "activated" bool NOT NULL DEFAULT True, CONSTRAINT "user_pkey" PRIMARY KEY("id") ); CREATE TABLE "user_data" ( "id" int4 NOT NULL, "user_id" int4 NOT NULL, "idx" int4 DEFAULT NULL, "first_name" text...
3
1,118
CSS Hover and Display Inline Block not working properly
<p>Problem is when I hover, the overlay affects all the items, i would like it to do one at a time, not all at once and also I can't get the display to show Inline-Block, items seem to be taking up the whole row, once it's fixe i know i will have to adjust the figcaption because ideally that would need to be centered u...
3
1,771
React - Input fields not editable even after I set the state
<p>I am trying to type on the inputs but it is not allowing me too. My state changes but it doesn't show. I am using props to show an event OR and empty event if there is no props (no event selected). </p> <p>Im sorry but Stack is telling me to add more details but I don't know what else to add, I already described my...
3
1,679
unreachable code after return stmt
<p>I have the below sample code and I get - "Unreachable code after return stmt"..</p> <pre><code>removed https:// from first and second line </code></pre> <p>HTML</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;script src="fb.me/react-0.13.3.min.js"&gt;&lt;/script&gt; &lt;script src=":cdn...
3
1,147
Cannot make TextView's change color while user types
<p>I'm very very new to android dev, but I really enjoy it :) I am wanting to make a calculator app for a game I play to work out how long it'll take to get from level a to level b using the various methods. I'm doing pretty good with it so far, but now have encountered this error which is reallllly bugging me.<br> I w...
3
3,161
JavaFX: avoid specifying absolute width
<p>I have got a <code>SplitPane</code> in a <code>SplitPane</code> -- both horizontal. I would like to avoid specifying absolute width/height. When I don't specify width/height, the second <code>SplitPane</code> is not shown:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;?import javafx.scene.control...
3
1,131
Deploying Jenkins Sectioned View Plugin extension
<p>I want to create new view for Sectioned View Plugin for Jenkins. How should I deploy my extension? I was trying to deploy it as new plugin in .jpi file but it didn't work. Where should I put my class/jar/jpi (I don't know which is right) file?</p> <p>UPD: I tried to put jar to \jenkins\plugin\sectioned-view\WEB-INF...
3
1,091
Object function work first time but return undefined the second time
<p>My code works fine for the first time but the second time, my object functions returns undefined.</p> <p><div class="snippet" data-lang="js" data-hide="true" data-console="false" data-babel="false"> <div class="snippet-code snippet-currently-hidden"> <pre class="snippet-code-js lang-js prettyprint-override"><code>_M...
3
1,881
Kubernetes warning for clashes while using env variable in docker? why?
<p>We're using Gitlab for CI/CD. I'll include the script which we're using <strong>gitlab ci-cd file</strong></p> <pre><code> services: - docker:19.03.11-dind before_script: - apk update &amp;&amp; apk add bash - apk update &amp;&amp; apk add gettext workflow: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAU...
3
2,448
Video Streaming: Could not deserialize image after using pickle
<p>I'm trying to create a video streaming application, which has 3 components:</p> <ol> <li>An streaming application which streams via UDP the image received from camera </li> <li>The UDP server which reads for data, puts it in a local file</li> <li>HTTP Server, with a /cam.mjpg API, whose handler reads every 0.05 sec...
3
2,867