title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Plotly: how to avoid huge html file size
<p>I have a 3D bin packing model which uses plotly to draw the output graph. I noticed that with 600+items being ploted, it takes a long time to generate the html file and the file size is 89M, which is crazy (I doubt there might be some huge duplications, or caused by “add_trace” method to individual item plot). why d...
3
8,197
python requests 429 response. Any way to bypass?
<p>I am trying to scrape data from this website:</p> <pre><code>https://www.realestate.com.au/find-agent/victoria-park-wa-6100?page=1&amp;source=results </code></pre> <p>but when I send a requests to this link it return 429 response. Please anyone can help me to solve this issue</p> <p>My Code:</p> <pre><code>import re...
3
2,492
Git not pushing one of my projects to Github
<p>I have been trying to upload my project into Github. Github has uploaded everything apart from my client app. Im new to source control and I can't work out why or what I am missing.</p> <p>Here is my folder structure in VS Code:</p> <p><a href="https://i.stack.imgur.com/Tj9TJ.png" rel="nofollow noreferrer"><img sr...
3
2,940
Codeigniter image upload with Javascript
<p><strong>Problem:</strong> Working on a save product information page here I wanted to upload images using Codeigniter and Javascript. Other text boxes and select box data save function working fine. Tried following code but it shows error: <code>You did not select a file to upload.</code></p> <p>Please help me to s...
3
6,458
How to install FlexLayout successfully when using latest version of angular material?
<p>I installed angular material using the command: ng add @angular/material, however now that I want to also install FlexLayout I keep getting the following error (npm i @angular/flex-layout):</p> <pre><code>npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: st...
3
1,794
cpp/PlatformIO class dependencies
<p>I'm increasing an arduino project by adding an external Analog to Digital Converter.</p> <p>For that I'm using the Mcp3208 library. My code is organise with one class by sensor and I need to access to a Mcp3208 instance (adc) from different classes.</p> <p>So I created a common lib include in the different classes b...
3
1,487
Java Crash when Using Swig on HP-UX
<p>I am using swig 2.0.7 on Hp-ux to wrap our C++ libraries. There are no errors until attempting to run when a crash occurs.</p> <p>Using:</p> <pre><code>HP-UX bob B.11.23 U ia64 0835920252 unlimited-user license aCC: HP C/aC++ B3910B A.06.20 [May 13 2008] java version "1.7.0.01" Java(TM) SE Runtime Environment (bui...
3
2,102
Can only update a mounted or mounting component.
<p>Currently working on a personal project and i'm getting this error </p> <p><code>Warning: Can only update a mounted or mounting component. This usually means you called setState, replaceState, or forceUpdate on an unmounted component. This is a no-op. Please check the code for the Graph component.</code></p> <p>I ...
3
3,420
JSon Result List save To DataBase MSSQL
<p>i have a json result list and i want save this items values to my MSSql Db. I try each loop objects and take values but sub items values not come. Any one help me ?</p> <p>Hier is my class for json result and code behind.</p> <p>Object Class For Json</p> <pre><code> public class Price { [JsonProperty...
3
2,401
angular 2 async route module + entryComponents
<p>I have an async loaded module with async route functionallity in angular 2. In the main module I have an implementation which uses the component factory to instantiate the component I added to the async module with entryComponents.</p> <p>When I now try to instantiate it, I get the following error:</p> <pre><code>...
3
1,551
Angular 9 Template driven form validition and setFocus to next field doesn't work together
<p>I have template driven login form on angular 9</p> <pre><code> &lt;form name=&quot;login&quot; #loginForm=&quot;ngForm&quot; (ngSubmit)=&quot;loginForm.form.valid &amp;&amp; login()&quot; *ngIf=&quot;loginPage&quot; novalidate&gt; &lt;ion-item&gt; &lt;ion-label position=&quot;stacked&quot;&gt;{{accoun...
3
1,679
Can't attach file to MessageEmbed when replying to interaction
<p>I have been trying to reply to an interaction in discord.js with an embedded message which has a thumbnail attached.</p> <p>This is the code I have been using:</p> <pre class="lang-js prettyprint-override"><code>const Discord = require('discord.js'); const fs = require('fs'); const path = require('path'); const p =...
3
1,504
Overflowing content in flexbox item
<h1>What combination of wrappers and height settings is needed to capture long content in a flexbox item?</h1> <hr> <p>Adding overflow-y to immediate parent and/or parents highter up don't appear to solve the problem. I'd like to avoid setting specific pixel height if possible.</p> <p>In actual example only the uppe...
3
1,983
Detect button click on form item
<p>I have a list of store items. Each item is showing its values as a form.</p> <pre><code>&lt;?php if($statement-&gt;execute()) { $result = $statement-&gt;fetchAll(); $output = ''; foreach($result as $row) { $output .= ' &lt;div class=&quot;col-md-3&quot; style=&quot;margin-t...
3
1,742
Libgdx - touchDown/touchUp vs. Gdx.input.isKeyPressed/Gdx.input.isKeyJustPressed
<p>Here is my dilemma. I am having problems animating my lightning attack by using my GamePad class (I made this class for a game controller for android devices). </p> <p>I found out that if using the Gdx.input.isKeyPressed(keyname), the code produces a lightning attack every frame, which stack on top of each other. S...
3
4,297
How to Login, Logout and User Registration through in build Authentication method?
<p>view.py</p> <pre><code>from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contrib import messages # Create your views here. def signin(request): if request.method=='POST': username=request.POST['username'] password=r...
3
2,389
Rails4, Ruby2, MySLQ2 and RubyMine
<p>I'm getting this same error message as all of you, but I'm on a Mac (10.8), using Rails4 and Ruby2 and RubyMine (IDE).</p> <pre><code>/Users/eric/.rvm/rubies/ruby-2.0.0-p195/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/eric/Rubymine/Chroma/bin/bundle install Fetching gem metadata from ...
3
1,214
dotnet ef migrations: Invalid column name when it has just been added
<p>So apparently, when I add a new model and relations to another existing model, it won't scaffold the migration properly. Even though a migrations file will be created, a chunk load of errors will be shown.</p> <pre><code>fail: Microsoft.EntityFrameworkCore.Query[10100] An exception occurred in the database wh...
3
2,534
JavaScript error, push is not a function
<p>I just started to learn JavaScript. I made a save function to save data to local storage, but everytime I try to save a data, it always get this error: push is not a function. </p> <p>The error occurs in this piece of code:</p> <pre><code>var issues = JSON.parse(localStorage.getItem('issues')); issues.push(issue);...
3
1,189
update set pass wrong value to database
<p>I have the next problem :</p> <p>when is execute this query with php duplicate de +1 to +2: </p> <pre><code>"UPDATE usuario SET WRONG_LOGINS = WRONG_LOGINS + 1 WHERE USUARIO_CORREO = '" . $email . "'"; </code></pre> <p>phpMyadmin works:</p> <pre><code>0 = 0 + 1 1 = 1 + 1 2 = 2 + 1 </code></pre> <p>in my php m...
3
2,408
Function running differently in separate instances-python
<p>I have written this program that takes a file called Sonnets and firstly, changes all the roman numerals in the sonnets to numbers, copies that to a new file, then asks the user for number input and shows them the sonnet corresponding to their number (if between 1 and 7). </p> <p>For numbers outside 1 and 7, I woul...
3
1,293
Python encoding problems in xml
<p>I have a media player that I would like to send what I'm playing to trakt.tv, everything works fine except for foreign letters in the title/path. The system is running python 2.7.3</p> <pre><code>def getStatus(self,ip,timeout=10.0): oPchStatus = PchStatus() try: oResponse = urlopen("http://" + ip + ...
3
1,568
React.js how do use the same page layout but different Data/information for personal information?
<p>Currently, I trying to understand how react.js is working with help with react-router-dom. I have to face issues that I wanted to use the same layout for the personal detail form. but I want it to display different data for two different people. let say I click on &quot;phua&quot; and then it will use the layout and...
3
1,356
Display full width tab underline in syncfusion angular
<p>I am using syncfusion angular for UI in our application i am stucked with some UI thing . I need to display full width underline tabs like show in below image.</p> <p><a href="https://i.stack.imgur.com/gMogp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gMogp.png" alt="enter image description he...
3
1,217
How to add a frequency or number on scalebar of stacked barplot using geom_text?
<p>I'm a newbie for using Rstudio, so I've some problems I want to ask.</p> <p>I want to make my scalebar for species composition in 10 sites, and add the number inside the scalebar.</p> <p>The result like this.</p> <p><img src="https://i.stack.imgur.com/kGMnM.jpg" alt="species composition sufrahaislamia" /></p> <p>I w...
3
1,263
absolute item inside grid not taking full height as need
<p>in this code you can see a <code>white box</code> which is set to full height but its not taking full size only the highest box is taking full height is there any way to make it take full height for all white <code>absolute boxes</code> i am badly stuck any help is highly appreciable</p> <p>i want all white boxes to...
3
2,426
Join two tables using another table in sequelize
<p>I have three MySQL tables: <code>app</code>, <code>app_metadata</code> and <code>ecosystem</code>.</p> <p>app table structure is:</p> <pre><code>+---------------+------------+----+---+-------+--------------+ |Field |Type |Null|Key|Default|Extra | +---------------+------------+----+---+-----...
3
2,004
java.lang.NullPointerException: at utilities2.ExcelUtility.findCells(ExcelUtility.java:70)
<p>I am trying to run my test cases from command Line using maven command. Below is the error message I am getting. I was able to run the test case when I right click on my XML file and run it with TestNG suites without a problem.<br> The problem I have is that I can't execute the test cases that are inside my pom.xml...
3
4,941
How do I retrieve Register Context from AccessViolationException?
<p>I have a x64 crash dump of a managed (C#) application that p/invokes to native code. The dump was taken after the native code attempted to dereference a bad memory location, and after the .NET marshaler had turned it into an <code>AccessViolationException</code>. As a result, the stack frame where the error occurr...
3
3,620
Unable to decrypt cookie
<p>I have a need to encrypt cookies on my site. Lets assume that the data that I wanted to encrypt is my session ID for simplicity.</p> <p>Here is how I would generate my cookie and encrypt it using PHP openSSL, and decrypt it.</p> <pre><code>/** * Encrypt any cookie * @param $content * @param $key_name * @param ...
3
1,663
draw icon from database
<p>ok i try to draw icon from database in a map... but i have null pointer exception..</p> <p>i do this ..</p> <pre><code>public enum icon { lake } </code></pre> <p>[....] public class POI implements Serializable { private static final long serialVersionUID = -8618762943599351669L;</p> <pre><code>pri...
3
1,140
Why does Load image work on emulator but not on s4?
<p>I'm trying to get an image to load onto my app in an imageview. However whenever I try it on my S4 (running 4.4.2) once I tap on the image I want to load. it says 'Unfortunately, E-textHome has stopped.'. But when I try the app on my emulator, which is a Nexus7 (running 4.1.3) It works perfectly fine. So I was wonde...
3
1,355
CRUD with cake php and jqgrid
<p>I am trying to use the jqgrid with cake php, the pagination works, but Add,Create,Delete records do not work.</p> <p><strong>Method edit</strong></p> <pre><code>public function edit(){ $this-&gt;autoRender=false; $oper=''; $oper=$this-&gt;request-&gt;query['oper']; if($oper=='add'){ ...
3
1,690
Trying to make block collision for c++ cmd game so that platforms are solid, but wont work
<p>Im working on a cmd game for fun and I've run into a problem. I've coded in the movement and gravity, but in my last if statement where I attempt to make the character seize his downward movement if above a '219' char or in other wards a block, it doesnt work. I end up still going right through the block and delet...
3
2,061
Accepted use methods of javascript callbacks
<p>I am looking for advice to ensure that I am using callbacks and javascript coding using generally accepted js guidelines. What is listed below is two functions which are chained together. Basically its a list of checks which need to be completed prior to creating the entity. I don't expect the final version to us...
3
1,339
encrypt string through url and retrieve on next page?
<p>I am using the following php script to encrypt a string when i pass it through a url.</p> <p>The majority of my code is stored in my encryption.php file.</p> <p>encryption.php:</p> <pre><code>&lt;?php class encryption{ private $config; public function __construct( $options=array() ){ $this-&gt;co...
3
1,603
Sequence of fetches return out of order
<p>Why does this code:</p> <pre><code>for (i in posts) { console.log(posts[i].pk) fetch(`http://127.0.0.1:8000/api/blogs/${posts[i].pk}`) .then((resp) =&gt; resp.json()) .then((data) =&gt; { console.log(data) var blogs = ...
3
1,033
Java exception error when building android in ionic framework
<p>I am trying to set up an ionic environment to start working on my projects. but every time I try to build an ionic app it always stopped.</p> <p>I use this:</p> <pre><code>ionic build android </code></pre> <p>and I get this error:</p> <pre><code> ionic-hello-world@ ionic:build /home/AAA/myApp ionic-app-scri...
3
1,694
JavaFX web deployment: FXMLLoader NullPointerException
<p>I wanted to try JavaFX web browser deployment, so I started a very simple test project using the IntelliJ community edition 14.0.2 JavaFX Application template. Here's the code: (<strong>NO</strong> plugin, external library or maven)</p> <p>Main.java</p> <pre><code>@Override public void start(Stage primaryStage) th...
3
1,808
TextBox value not updated
<p>I am fetching data from database to textbox using Linq.When i try update the same textbox value,it does not work.</p> <pre><code>DAL.TournamentsDataContext tdc = new SchoolSports.DAL.TournamentsDataContext(); var tournamentTable = tdc.GetTable&lt;DAL.Tournament&gt;(); var tournamentRecord = (from re...
3
1,110
Python Extreme Slow iterrows
<p>I'm not a good coder in python and need help to change my iterrows function into some other stuff.</p> <p>So -- I have two data frames, one is zips with lat &amp; lng, another one is a bunch of locations with lat &amp; lng. I need to map each zip with all the locations and calculate the distance between them.</p> <p...
3
1,421
why does python3.6 container uses the /usr/lib of python 3.9
<p>I start a docker contain with</p> <pre><code>FROM python:3.6 ARG DEBIAN_FRONTEND=noninteractive RUN apt-get update RUN apt-get install -y apt-utils vim curl apache2 apache2-utils RUN apt-get -y install libapache2-mod-wsgi-py3 RUN pip install --upgrade pip RUN pip install --upgrade setuptools==57.5.0 RUN pip install ...
3
6,672
implement voting system using node.js, mongodb and ejs
<p>I'm pretty new to node.JS and ejs. I have searched <code>how to implement real-time voting system like Stackoverflow voting</code> using the mentioned technology. But I don't have any Idea how to do it. </p> <p>here is my front-end code:</p> <pre><code>&lt;% for (var i = 0; i &lt; gamePasses.length; i++) {%&gt; ...
3
1,063
How to add item in a listview from one class to another in Flutter?
<p>I am working on a project in which i have a class which has a row that has two children. Child one contains a TabView with a child class TabViewChild in which i am generating a gridview. On the other hand child two contains a listView. So the problem is, when i click on the gridview item i am passing that item's val...
3
9,924
Lapply within a lappy in R
<p>LApply-ception? Anyway.</p> <p>I have a list which is a list of dataframes. I go through it and make adjustments just fine. However I need to lapply each individual dataframe, that is, iterate through each dataframe in the list.</p> <p><a href="https://i.stack.imgur.com/fUxUl.png" rel="nofollow noreferrer"><img src=...
3
2,028
How to handle one to many relationships in an object orientated way?
<p>I'm building a database of artists, I would like to update/create the genres played by the artist in an object oriented way. I currently have 3 tables:</p> <p><strong>Table name:artists</strong></p> <p><a href="https://i.stack.imgur.com/C3Ofb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C3Ofb...
3
1,378
orbeon xform repeating element issue
<p>I am trying to add one repeating element on the fly/run time using the add button . When i click the add button i get the error "Function index uses repeat id 'employee-repeat' which is not in scope" . I am not sure if i am referring the repeating element properly within the form. here is the complete x from .</p>...
3
4,001
How to add AssetCode to to a CfnFunction class
<p>I am wanting to be able to create a CfnFunction, but be able to pass in an AssetCode class for the <code>code</code> parameter. Normally, using the higher level <code>Function</code> construct provided by <code>aws_cdk.aws_lambda</code>, this would suffice:</p> <pre class="lang-py prettyprint-override"><code>class M...
3
1,749
Can't get the Typed value of HTML5 Number Inputs in Javascript
<p>I want to create a Retirement Calculator. I am stuck on getting the value that someone types for their current age and the age they want to retire at, so I can subtract the retiring age by the current age to get the number of years to calculate. I want to get the value's typed after I submit the button and I want it...
3
1,042
nice decimal.Decimal autonormalization
<p>This gonna be my first question here. I am trying to make a decimal.Decimal child class which mainly differs the parent by making autonormalization on itself and on the results of its callable arguments whose returns Decimal objects. The code below have the concept to decorate all methods of Decimal to return MyDeci...
3
1,750
feeding a 2D intermediate feature and not a 2D image with 3 channels to Inception V3 for fine-tuning in case of gigapixel images
<p>I have gigapixel images which requires me to patch them into either of <code>256x256</code>, <code>512x512</code>, or <code>1024x1024</code> smaller images (2D images with 3 channels). I pass these images to a raw (frozen) ResNet18 to extract their 1D embeddings (feature vectors) of size 512. Here' the model I am tr...
3
3,702
Remove rows for each unique identifier based on value of a variable in preceding row (R)
<p>I have data in this format</p> <div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Name</th> <th>SampleDate</th> <th>Occasion</th> </tr> </thead> <tbody> <tr> <td>A</td> <td>01/20</td> <td>First</td> </tr> <tr> <td>A</td> <td>01/21</td> <td>Second</td> </tr> <tr> <td>A</td> <td>01/22</td> <td>Th...
3
1,029
how to get only image pixel from QGraphicsScene
<p>here is my simple code to display the image in QGraphicsView in pyqt python 3.7. I want an image pixel when the mouse is pressed on a scene or window of QGraphicsView or QGraphicsScene.</p> <p>Mouse Press Function </p> <p>Mouse Press Event Handler</p> <pre><code>def mousePressEvent(self): p = QtGui.QCursor.po...
3
1,084
How do you print the top most used clients IP with a certain status code.?
<pre><code>import os import re from collections import Counter from collections import OrderedDict fileNames = [] textInfo = [] d = {} currentDirectoryPath = os.getcwd() print(currentDirectoryPath) regexp = re.compile( r'(?P&lt;clientIP&gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).+\[' + '(?P&lt;timestamp&gt;\d...
3
2,279
Zoom image and then scroll image to view next image, previous image not zooming out
<p>I want to zoom out image to original size after scroll slider. I'm using <strong>REPagedScrollView</strong> library to implement slider. I have 5 images in slider. Now zoom-in 1st image and then immediately scroll slider to view 2nd image. Then go back to view 1st image. 1st image not zooming out. That image was sti...
3
2,463
view doesn't load when I mock backend
<p>I'm trying to test one particular element of user interface. To do so I need particular request to my backend to respond with predefined data, but all other requests should pass through. Here's how I do it (coffee for more readability):</p> <pre><code>describe 'select2 combobox widget', ()-&gt; httpBackendMock = ...
3
1,136
Compairing html string to hex string with php
<p>I am trying to compare two strings. When compared they are unequal to the computer. But to the human eye the strings appear to be the same. </p> <p>When I run a test to check the bin2hex with php they are clearly unequal. Some how a set of double quotes is be read as html. Here are some examples: </p> <pre><code> ...
3
1,050
Gunicorn site not starting?
<p>First let me say that I am a Systems Engineer, but am learning WebDev/DevOps material, with a focus on Python. Thus, I am in the process of moving my sites over from WordPress (PHP-based), to Mezzanine (Python-based). To run multiple sites from one VPS, I am setting up VirtualEnv with Gunicorn, and Nginx on the fr...
3
1,550
Angular Universal Uncaught (in promise): Error: NotYetImplemented Error
<p>When I try to build my Angular universal app it displays the below error in a terminal window. I have tried various aspects but nothing looks good till now. Can anyone suggest how can identify the root cause of the below error? Because it's a more generic error and I don't have any idea to look at any specific thing...
3
1,273
Dynamic Vuetify Textbox or Select based on Array Values
<p>I'm working on a modal form which will display a number of <a href="https://vuetifyjs.com/en/components/selects/" rel="nofollow noreferrer">v-select</a> or <a href="https://vuetifyjs.com/en/components/text-fields/" rel="nofollow noreferrer">v-text-field</a>... however, the number and types of these elements are bein...
3
2,186
Need to retrieve a dynamic list element by its index
<p>I'm working with a modem, so everything that gets sent for or by the modem gets appended to my list. </p> <p>The thing I must retrieve is already inside this list, but if I try to print it by the index, it returns me error saying that the list doesn't have that element.</p> <p>I get why the error occur, since my l...
3
1,473
Cannot get to XML element with PHP
<p>I am processing a long piece of XML with PHP. I'm trying to get to a particular value, but having an issue:</p> <pre><code>$diag_data = simplexml_load_file($diagnostics); print_r($diag_data-&gt;category-&gt;category[2]-&gt;measure[3]); </code></pre> <p>Output:</p> <pre><code>SimpleXMLElement Object ( [name] ...
3
1,032
Excel VBA - Returning Positions of all Sub-Strings within a String from the Clipboard
<p>I'm trying to find all the positions of the unique keys (followed by two Tab keystrokes) in a string in taken from clipboard, positions with which I then hope to use to insert carriage returns, and then have everything put back into the clipboard again. </p> <p>First things first; getting the position part to work!...
3
1,260
How to use strtol to extract numbers from user input
<p>I'm trying to build a Linear Equation calculator in C. My source code is below. I know this is a coding question but to explain my issue, I need to explain a little math here. I have the user input the points in the format (x,y) and want to convert the equation into one of the following ways:</p> <ol> <li>Slope-inte...
3
1,511
How to fetch menu and sub-menu from database using nested do while loop?
<p>I kindly would like someone to help me on php code. What I want to do is to fetch Menu and Sub-menu from database using nested do while loop from two tables so it shows a drop-down navigation bar. Navigation table holds menu items and category table holds sub-menu. But it stops on first iteration of the loop after...
3
1,884
How to calculate phase shift between two shifted wave signals in C
<p>I'm comparing two different phase shifted wave signals with same frequency, my first task is to measure phase shift angle between two signals in <strong>C language</strong>. Actually i'm from IC field and don't have much idea about programming language, but i'm currently learning C for that. </p> <p>I'd write a co...
3
1,278
white space in between div elements
<p>I've looked at a bunch of similar questions for this problem and I still can't seem to figure out the solution (still just learning all of this stufF).</p> <p>I'm trying to make a portfolio website and I've placed each project inside a div element (not sure what I'm doing with the divs...). I'm having trouble removi...
3
1,576
Gatsby Build fails on Netlify by works locally. Ffmpeg dependency issue
<p>I'm trying to deploy my site on Netlify, and the <code>gatsby build</code> command works perfectly fine on my system. But when I run in on Netlify, I run into the issue shown below.</p> <p>Unhandled rejection: cannot find ffprobe seems to be the issue. I think it's because I have ffmpeg installed on my system (macO...
3
1,791
How can I bring a node and all of its connected nodes to the front of a graph on mouseover?
<p>(edit: question is solved, see below) I am a biologist who does work mapping out synaptic connectivity and analyzing the data. I've got some ideas for visualizing the network that I think are pretty cool and I've been trying to learn D3 in order to implement them in a way I can share the visualizations over the web....
3
1,293
Duplicating rows in dataframe python
<p>Good afternoon everyone,</p> <p>I am currently writing a thesis on the KMV model in python. I took inspiration from the code <a href="https://stackoverflow.com/questions/52270610/newton-method-not-converging-after-iteration-python-scipy">here</a> to solve the non-linear equations. <a href="https://drive.google.com/...
3
2,377
mysql multiple rows in one result row one table
<p>I have a table which looks as following:</p> <pre> + ------- + -----------+ ------------ + --------- + ---------- + | Info_Id | category | EAN | Info_Type | Info_Value | + ------- + -----------+ ------------ + --------- + ---------- + | 1 | 1 | 0123456789 | brand | b...
3
1,354
mule db2 sfdc account data loading
<p>My Java code is:</p> <pre><code>public class Db2sfdc { public Map&lt;String, Object&gt; getPayloadData(@Payload String src){ HashMap&lt;String, Object&gt; sfdcFields = new HashMap&lt;String, Object&gt;(); Map&lt;String, Object&gt; payloadMap = new HashMap&lt;String, Object&gt;(); ...
3
1,400
How to genrate a unique key for user from database fields using php codeigniter?
<p>I want to create keys based on the information provided by the User. For eg If user insert his name,phone,country,some other information then my code should concatenate some fields and store a unique key into the same user table where i have field key. I hope you understand my issue.I am new to codeigniter and have ...
3
3,467
php resizing image then cut it in pieces and show it, doesnt work
<p>I'm making a website for fun but I cant seem to figure out why this piece of code wont work:</p> <pre><code>// error control ini_set('display_errors', 'On'); error_reporting(E_ALL | E_STRICT); // loading in the image. $img = imagecreatefromjpeg(".\image\ons\Ons-foto\mayor.jpg"); if($img != null){ $width = imag...
3
1,100
Android: OnCLickListener does not react
<p>I have three buttons in my <code>Activity</code> with three separate <code>onClickListeners</code> set like I have done plenty times before. But one of the listeners does not react to a click event and I have no clue as to why. Here is the code segment:</p> <pre><code>public void onCreate(Bundle savedInstanceState)...
3
1,259
Foreach loop to return more than one data field
<p>I have a MySQL query that returns a set of data. I then do a <code>foreach</code> loop to examine all the fields that start with <strong>Seq</strong> that contains <strong>1</strong>.</p> <p>Each field set has a a number of fields along with a comments field.</p> <p>Example:</p> <pre><code>Seq1001, Seq1002, seq10...
3
5,553
How to make CMakeLists.txt files for LibTensorFlow
<p>I wonder how to make CMakeLists.txt files for <a href="https://www.tensorflow.org/install/lang_c" rel="nofollow noreferrer">Install TensorFlow for C</a>.</p> <p>I can build the C++ file (i.e. ./app/main.cpp) with g++, but it is difficult to build the same C++ file with CMake file. Please note that the directory stru...
3
2,320
Jar service needs restart to work again if data insertion in MC access db raises an error
<p>I'm running a spring boot application (APIs with html) as a jar service.</p> <p>I have the following code, where I add data to MS Access database.</p> <pre><code>private JdbcTemplate template; /* my extra code*/ try { insert = template.update(&quot;INSERT INTO tblE125Details (ForeasCode, EYear, ArP...
3
4,925
While conversion, invalid literal for float
<p>I'm trying to train my own data on the Yolo network, but before that I have to convert the bounding boxes co-ordinates to the form it wants.</p> <p>The file contents are like this:</p> <pre><code>0 53 19 163 116 </code></pre> <p>and I'm trying to convert it to the form the network works with the following.</p> <...
3
1,511
AngularJS $http calling infinitely
<p>Can someone explain why is the $http request sending infinite number of requests to the server? In my application, this code sends infinite requests to the server</p> <pre><code>(function(){ var app = angular.module("GrahamsSocksProducts", ["ngCookies"]); app.controller("ProductsController", ["$controller",...
3
2,351
How to get the user input from buttons to display in the text box using function (for-loop)?
<p>How to get the numbers displayed in the display textbox when the user clicks the number buttons? I do not know what to put in my <code>numInputF()</code> function, I want to use a for-loop function, but I do not know how.</p> <pre><code> &lt;script&gt; var initialMoney = 1000; //Customer's initial money...
3
2,232
NodeJS response.render():Can't set headers after they are sent
<p>So, the first render is successful <code>app.get("/", function(request, response)</code>, but when I process <code>app.post("/search", urlencodedParser, function(request, response)</code></p> <p>I get the Error: </p> <blockquote> <p>c:\weather\views\main.hbs: Can't set headers after they are sent.</p> </blockquo...
3
1,832
set custom layout to screen height
<p>I have to add a layout to the screen height removing action bar height. I am using below code -</p> <pre><code>View popupView = getLayoutInflater().inflate( R.layout.left_interaction_layout, null); double screenSize = 0; try { DisplayMetrics dm = new DisplayMetrics(); con...
3
1,029
Having problems with cstring arrays
<p>I am having trouble with my code with something with arrays. I am getting the following errors</p> <pre><code>In function ‘int main(int, const char**)’: 75: error: cannot convert ‘char*’ to ‘char (*)[81]’ for argument ‘1’ ion(char (*)[81], OneItem*, i...
3
1,491
Struggling to link reactive data values from plotly_hover to leaflet map without reloading leaflet
<p>I want to use the plotly_hover values from a time series plot and show the GPS position on a leaflet map at the same time stamp as the plotly_hover. </p> <p>I found a way, but the leaflet map reloads each time the hover changes position. I am now trying the following code. This is where I am stuck with event.data a...
3
2,233
wsimport: class generation error
<p>I have a web service in C#:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using MySql.Data.MySqlClient; using System.Data; namespace WebApplication5 { /// &lt;summary&gt; /// Summary description for WebService1 /// &lt;/su...
3
4,183
Every third element should have a date beside it
<p>So I have been asking a lot of array based questions as I strive to understand PHP's main source of data structure.</p> <p>I am currently working on building a class that spits out a list of artists and their songs. each third song has a date beside it. as seen in this array:</p> <pre><code>$music = array( 'Cr...
3
1,702
How do i make this jApplet working?
<p>How do i make this code to run as an jApplet ? </p> <p>My Applet looks like this now:</p> <pre><code>public class TickTackToeApplet extends JApplet implements ActionListener { private static final long serialVersionUID = 1L; private ArrayList&lt;JButton&gt; buttons = new ArrayList&lt;JButton&gt;(); pr...
3
2,729
Change Magento's default search results by passing result ids
<p>I've customized the <em>catalog advanced search</em> page which now has a special visual search engine, that finds the desired products and <strong>returns their ids</strong> (via ajax). Given these ids I want to create a list of search results based on Magento's default search results page layout. Any ideas how to ...
3
1,166
Modified Least Squares Fit in python with unique errors, solving for a matrix
<p>I have an over-determined system I want to minimize, very similar to (but not quite the same as) linear least squares. It is of this form:</p> <p>AX = Y</p> <p>where A will need to be 2x3, because X is 3xN and Y is 2xN.</p> <p>Here is the issue: the unknown here is the transformation matrix A, not X in the usual for...
3
1,307
Could not resolve all task dependencies ':app:debugRuntimeClasspath'
<p>I am using &quot;react-native&quot;: &quot;0.59.9&quot;. Now I an trying to install the app in windows 10. it getting the below error and I am using react-native-navigation for navigation.</p> <p>Is this issue due to latest java version</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true"...
3
3,081
More efficient way for modifying values across multiple lines with dplyr
<p>After learning the basics of data transformation in R, I'm practising now on a a dataset. I do have four variables with the same values and I want to modify the numeric values into character strings. I found the function case_when() on this website and applied that to each column, but I would really like to do that ...
3
1,165
Error Operation not supported with my attributes knowntype
<p>I already read this in link <a href="https://stackoverflow.com/questions/9846746/operation-not-supported-in-the-wcf-test-client">Operation not supported in the WCF Test Client</a></p> <p>Error while I try running this</p> <blockquote> <p>the operation is not supported in the WCF GetBatch()</p> </blockquote> <p>This ...
3
2,475
How to fetch all data from ngFor? Is any restrictions for fetching data into table with ngFor?
<p>I have a Component which should create a record in DB through Service.</p> <pre><code>@Component({ selector: 'app-add-company', templateUrl: './add-company.component.html', styleUrls: ['./add-company.component.css'] }) export class AddCompanyComponent implements OnInit { formItem: Company = new Company(); sa...
3
1,294
Dropzonejs, removes from server not from the page
<p>I am using dropzonejs and it works in the server, It saves and when I click on the remove button it removes from the server. But the only problem is, when I click to remove button the picture stays on the page. I think it is because of the jquery code. But I could not solve it. </p> <p>Here ;</p> <pre><code>&lt;d...
3
1,111
crash happens while re-initializing a string object
<p>Request you to have a deep look at the string class program present below</p> <pre><code>class String{ private: int len; int size; char *p; public: int getlen() { return len; } int getsize() { return size; } char* getp() { return...
3
1,457
Asp.net JQuery AutoComplete Not displaying data
<p>I am not seeing data returned from my webservice using the JQuery Autocomplete plugin. </p> <p>Im sure that this is an issue with the JQuery part of my code. (Firebug shows that I am getting a string back from my webservice formatted like below.)</p> <pre><code>"[\"Component 1\",\"Component 2\",\"Component 2\",\"C...
3
1,159
My app crashes when I hit log out
<p>I have an app that allows me to log in and out. the log out button now seems to crash the app when i press it when it was working ok before. It still logs out the user and when you go back into the app you have to sign in again.</p> <p>I have added my whole on create method below where the action happens at the bot...
3
1,379
Crash in android.widget.Editor. android.content.res.Resources$NotFoundException
<p>I am getting a bunch of crash reports (from analytics) that indicates <code>android.widget.Editor</code> is crashing due to missing recourses related to the cursor!</p> <p>I looked up the resource ID in <code>R.java</code> and it is defined there and points to <code>abc_text_select_handle_middle_mtrl_light</code> (...
3
2,486
Is the encoding incorrect? There are various coding languages. How do you code it?
<p>I am now parsing an Internet page.</p> <p>I found the following error</p> <pre><code>Error: No guess has more than 50% confidence In addition: There were 45 warnings (use warnings() to see them) 1: In stringi::stri_conv(x, from = from) : the Unicode codepoint \U000000a0 cannot be converted to destination encodin...
3
1,911