title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Building an RPM containing JDK dependency resolution
<p>I'm building oracle jdk 1.6 into an rpm using maven and nexus from a zip file distribution of the jdk.</p> <p>When done, the rpm refuses to install without the following:</p> <pre><code>[root@build]# rpm -ivh oracle-jdk-1.6.0_26-1.noarch.rpm error: Failed dependencies: libXt.so.6()(64bit) is needed by orac...
2
2,714
Show all data from Mysql Database by category wise using php
<p>Currently in my php code I'm getting all <code>keywords</code> from a mysql table and showing it on a Html <code>td</code> column. It looks like the one in the following image. </p> <p><img src="https://i.stack.imgur.com/WPGZi.gif" alt="enter image description here"></p> <p>Each <strong>keyword</strong> has an uni...
2
1,173
Object reference not set to an instance of an object error flags when running webform
<p>I'm trying to search my database to retrieve some results and populate those to a gridview.</p> <p>However, I get the above error in the title, and some research hasn't really helped me on why this kind of error flags, and was wondering whether someone with a sharper mind could explain the reason for this error. My...
2
1,172
Street View Fragment black screen
<p>I am trying to to insert a Street View fragment inside an Activity but I receive only a black screen, without error.</p> <p>This is my Activity:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
2
1,939
Log4j2 encoding issue
<p>When I try to run Elasticsearch on Windows 10 as main language is English, everything works fine. But if I change the main language as Turkish, I get error messages as: </p> <pre><code>2018-07-26 14:42:39,485 main ERROR Unable to locate plugin type for IfFileName 2018-07-26 14:42:39,633 main ERROR Unable to locate ...
2
1,204
How do I stop cxf trying to take over the default implementation of javax.xml.ws.spi.Provider?
<p>Karaf 2.3.2 </p> <p>As far as I am aware, I have no references to Apache cxf in my code or container configuration, however when I try to consume Exchange webservices, the jax implementation is being taken over by cxf giving this error as I don't have cxf installed: </p> <p>./data/karaf.out:javax.xml.ws.spi.Factor...
2
1,239
awaited Promises still returning <pending>
<p>I have an array of data objects about people. Each person object includes 0-n URLs for additional info (guests of the person).</p> <p>I want to process this list, calling each of the 'guest' URLs and including the guest's names in the original data set.</p> <p>Context: this is an AWS lambda function. I'm using <a ...
2
1,122
Gmail uses original "TO" address instead of "FROM" address for reply
<p>Using <a href="http://codeigniter.com/user_guide/libraries/email.html" rel="nofollow noreferrer">CI's email library</a>, I have the following code to send a pw to a user:</p> <pre><code>$email_html_message = '&lt;html&gt;&lt;body&gt;'. 'Your password is '.$password....
2
2,196
Using BeautifulSoup to find links related to specific keyword
<p>I have to modify this code so the <strong>scraping</strong> keeps only the links that contain a specific keyword. In my case I'm <strong>scraping</strong> a newspaper page to find news related to the term 'Brexit'.</p> <p><a href="https://i.stack.imgur.com/icvLi.png" rel="nofollow noreferrer"><img src="https://i.sta...
2
1,240
React-native image - unknown named module '../img/2.jpeg'
<p>I'm trying to modify a react-redux tutorial code. I'm trying to load images that are stored locally and the paths are saved in an object.</p> <pre><code>... { "id": 2, "title": "Redux", "subtitle": "A State of Mind", "img": "../img/3.jpeg", "description": "Redux is a predictable state container ...
2
1,104
How Can I Make time.sleep Shorter
<p>My programs supposed to play a game. It's the loading screen I'm having problems with. When I run it, <code>time.sleep</code> acts as if it's sleeping <code>0.1</code> seconds, instead of the much smaller numbers I input into it. Why is this? Is there a way I can make the delays shorter? Here's the code:</p> <pre><...
2
3,968
TFS build is getting fail with Zero error with message - Process 'msbuild.exe' exited with code '1'
<p>I am building a solution file which is having multiple .csproj projects with the TFS(on premises with Build agent on the same network) <strong>MSBuild Task</strong> with version 14.0. As, This is not giving me any Error but getting fail with one message "<strong>Process 'msbuild.exe' exited with code '1'.</strong>"<...
2
1,499
angularjs i18n routing with path params
<p>In one application that I'm working with, the route system need to be integrated with i18n, like the example below:</p> <pre><code>$routeProvider.when('/:i18n/section', ...); </code></pre> <p>But I'm facing some issues due to, what I guess it is, the <code>$digest</code> cycle, which doesn't change the <code>i18n<...
2
1,288
Use Scripting Bridge to create an album in iPhoto and import a picture into this album
<p>I have a document based drawing application that allows the user to save the final document as a JPEG file. Whenever the user saves a JPEG, I would like to import the picture to an iPhoto album "MyAppName album". I am using Using Scripting Bridge and i have added the iPhoto.h file to my application. I have also adde...
2
5,210
C#/XAML/WPF Simple node editor
<p>I am working on a simple node editor, something like <a href="https://stackoverflow.com/questions/15579069/graph-nodes-coordinates-evaluation/15580293">this</a> (for me it is a model program). I have two windows in XAML with different solutions. In the first case (still not completed, but for demonstration), I am us...
2
4,389
No provider for DecoratorFactory
<p>I keep getting the error message mentioned above and I can't find no literature what so ever about this provider.</p> <p>I've been trying to call a modal in a form in order to collect the return variable and represent it in the form, the return value comes from its Save method</p> <p>I have a feeling the error may...
2
5,101
Headless Selenium driver unable to find Firefox binary even when specified in code and $PATH on Shared Web Host
<h1>Goal</h1> <p>I am trying to get Selenium to run Firefox headless on my virtual python environment on my Dreamhost shared web host.</p> <h1>Problem</h1> <p>The selenium driver is unable to find my Firefox binary even though I have specified its path in my code and have added it to my PATH.</p> <h1>Information</h...
2
1,267
MessageBox does not work in a catch of an exception
<p>Well I have 2 issues but my main concern right now is my catch exception. Here is the code...</p> <pre><code>int GXRenderManager::Ignite(HINSTANCE * hinst, int * nCmd, GXDEVICE DeviceType, int width, int height) { try { GXRenderManager::hinstance = hinst; GXRenderManager::nCmdShow = nCmd; GXRenderManager::...
2
1,455
Xamarin Forms very slow build time on iOS from Visual Studio
<p>I'm developing a CRM app using </p> <ul> <li>Xamarin Forms 2.3.3.180</li> <li>Visual Studio 2015 Enterprise</li> <li>Xamarin for Visual Studio 4.2.2.11</li> <li>Xamarin iOS 10.3.1.8</li> <li>Other components (syncfusion, devexpress, acr, servicestack, etc...)</li> </ul> <p>Building all the projects begins to be re...
2
11,019
Nullpointerexception at onStop() method
<p>I used this sample code in a similar clock application: <a href="http://about-android.blogspot.in/2010/04/create-apps-to-show-digital-time-in_19.html" rel="nofollow">http://about-android.blogspot.in/2010/04/create-apps-to-show-digital-time-in_19.html</a></p> <p>It works fine, however when using the back or home but...
2
1,348
Tomcat/ApplicationContext not able to find out Filter class
<blockquote> <p>web.xml</p> </blockquote> <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:web="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http:...
2
4,005
How to get data from mysql in android fragment class?
<p>I want to get the profile details from mysql db from fragment class. should display to textview. like student name, address, mobile etc.. I used JSON format to send the data from php.</p> <p>here is my code</p> <pre><code>public class ProfileFragment extends Fragment { private View parentView; // Session Manager C...
2
1,365
JQuery History.js plugin not replacing state of one page in both HTML4 and HTML5 browsers
<p>I am using <a href="https://github.com/browserstate/history.js/" rel="noreferrer">JQuery History.js plugin</a> to enable History API in HTML5 browsers and emulate in HTML4 browsers. I am using <a href="https://github.com/browserstate/ajaxify" rel="noreferrer">Ajaxify script</a> to implement this plugin. I changed th...
2
3,624
Chrome not reachable inside docker network
<p>I have a web app which I am trying to test under Gitlab-CI using Protractor.</p> <p>I am using docker-in-docker in Gitlab-CI to build and test the application.</p> <p>I have all my services containerized in Docker (a Nginx server to host static files, a Nodejs API, a Postgresql DB and a Nginx reverse proxy, "point...
2
3,008
What is The Correct View Matrix For The HUD Camera?
<p>I'm using OpenSceneGraph in Android with GLES2.</p> <p>I have two cameras: one for the scene and the other for the HUD. The scene camera is the main camera in my osgViewer. My trouble is with the HUD's camera. I am trying to add an OSG geometry to the 2D scene (HUD camera) but can't seem to get it to show up.</p> ...
2
1,778
How to convert "to_json()" PostgreSQL function in jOOQ?
<p>I am trying to convert following PostgreSQL query into jOOQ and can't seem to find adequate method for solving this issue. Here's the query:</p> <pre><code>SELECT b.book_id AS b_id, b.title, b.price, b.amount, b.is_deleted, to_json(array_agg(DISTINCT aut.*)) as authors, to_json(array_agg(DISTINCT cat.*)) as catego...
2
1,985
Conversion of custom init routines in Swift
<p>I need to subclass SVModalWebViewController.m (<a href="https://github.com/samvermette/SVWebViewController" rel="nofollow">GitHub</a>), which is itself a subclass of <code>UINavigationController</code>, and am incorporating this code into a new app that will be created entirely in Swift. I've run into several issue...
2
1,696
exif_imagetype() [function.exif-imagetype]: Filename cannot be empty
<p>I have a website where i have given my users an option to upload their picture and i have set a condition like if they didnt select any file for uploading and if they click the upload button without choosing a picture they get an alert box, but apart from that my website is showing the error that i am pasting below....
2
3,163
Invalid Syntax for Assignment in Kivy File
<p>I've got a KV file that describes a simple popup with a few sliders that are supposed to change the R, G and B values of a color ListProperty.</p> <pre><code>Slider: value: root.color[0] = self.value Slider: value: root.color[1] = self.value Slider: value: root.color[2] = self.value </code></pre> <p>When...
2
2,131
Deprecated android method replacement getPath()
<p>I have this <code>getPath</code> method, it works, but I want to get rid of the warning because it says that the <code>managedQuery</code> method is deprecated. How can I implement this exact <code>getPath</code> method with no warnings? Thank you.</p> <pre><code>public String getPath(Uri uri) { System.out....
2
1,380
How to automatically play next item of a listBox
<p>I am using a listBox to play file from media player on my form, I am using the code below to get files in my listbox,as it retuns the file name, now I am able to play files from listBox and now I want next item in the listbox to be played automatically after a time gap.How to do this</p> <pre><code>this.listBox1.D...
2
1,040
How to use $(this) and closest() to form the variable passed through to jScrollPane's scrollToElement?
<p>I am wanting to scroll to the closest instance of a div using jScrollPane's <code>scrollToElement</code>(<a href="http://jscrollpane.kelvinluck.com/api.html" rel="nofollow noreferrer">API link</a>). </p> <p>I was trying to use jQuery's <code>$(this)</code> and <code>closest()</code> to form the variable that would...
2
1,247
Edit a comment - javascript, php working together
<p>Hey all, I am facing a rather serious security error. Let me first outline my code.</p> <pre><code>&lt;li class="comment"&gt; &lt;form action="" method="POST" name="edit-form" class="edit-area"&gt; &lt;textarea style="width: 100%; height: 150px;"&gt;&lt;?php echo $response-&gt;comment; ?&gt;&lt;/textare...
2
1,813
Fatal error: Call to undefined method Upload::do_upload()
<p>I get this error when trying to upload file.</p> <p>This is my code </p> <pre> class Upload extends CI_Controller { function __construct() { parent::__construct(); $this->load->model(array( 'm_campaign' ,'m_upload' ...
2
1,119
TableAdapter and Unicode?
<p>Working with Microsoft Visual Studio 2010 Professional, using C#, with Microsoft SQL Server 2008.</p> <p>I have been tasked with taking an existing application, and making changes so that it can receive multiple languages in its text boxes without needing to configure ahead of time what language is to be used.</p> ...
2
4,318
Android Studio 1.0 RC 4 Build Error
<p>I did my best to import a project from intelij and I get this really long error that I can't make any sense of. I tried doing a "invalidate and restart" and got the same error. I don't know what if any of my build files are relevant to this error, if you have a suggestion let me know and I will update with it.</p> ...
2
2,036
Summing up the values of a variable after a loop has ended
<p>Hello this is the purpose of my program:</p> <ol start="23"> <li>Savings Account Balance</li> </ol> <p>Write a program that calculates the balance of a savings account at the end of a three month period. It should ask the user for the starting balance and the annual interest rate. A loop should then iterate once f...
2
1,242
calling Object Method gives "Uncaught TypeError: is not a function" error
<p><strong>Problem:</strong> Calling (<code>console.log(d.yakinlik.uzak.X1())</code>) this function</p> <pre><code>function Div(isim) { this.loc = document.getElementById(isim); this.getStyle = function (stili) { return window.getComputedStyle(this.loc).getPropertyValue(stili); }; this.getIntSt...
2
1,034
multiple messages through the same socket doesn't work
<p>Im working on a simple ftp server, and the client must send multiples messages to the server, and for each message the server send back to the client a anwser. when the client sends one message it works perfectly and the server responds without any problem, for example, when the client sends "USER username" the serv...
2
2,520
Converting Class app into Hooks for React Next app
<p>I am going through documentation for Algolia and Next and am trying to get URLs to show up in the address bar, most of the examples are as Class Components but the app I am working on uses Hooks. I am trying to test some of the examples on my site, but am stuck on how to correctly convert a class app in React to hoo...
3
1,093
SQLAlchemy Left Outer Join on Dates and Orders is lost on filtering Orders by store. How can I prevent this?
<p>I have a working left join but as soon as I add a filter to select only Orders from a specific store, the left outer join turns into a normal join and I loose the dates where there are no orders.</p> <pre class="lang-py prettyprint-override"><code>db.session.query( Dates.day_date, Orders.date_created...
3
1,249
Complicated SQL function, 'Syntax error or access violation: 1065 Query was empty'
<p>i have a function <code>apphp_db_install($sql_dump_file)</code> that installs sql database from db_dump.sql file, i get a bad error:</p> <blockquote> <p>SQLSTATE[42000]: Syntax error or access violation: 1065 Query was empty</p> </blockquote> <p>I already tried to use this function in a clean database.</p> <p>M...
3
1,832
Raspberry Pi, Windows IoT, C#
<p>I am currently experimenting with my Raspberry Pi with Grove sensors and Windows IoT. I am trying to transfer information from the Raspberry Pi to Azure and I receive an error (In line 85). </p> <p>The code looks this way:</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using Syst...
3
2,062
R - How to delete empty or na cells in a data frame or data table and shift cells to left
<p>I'm having a data frame something like below:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table&gt;&lt;tr&gt;&lt;th&gt;Col1&lt;/th&gt;&lt;th&gt;Col2&lt;/th&gt;&...
3
1,361
layout alignment for different screens
<p>i am trying to align the page for different screens namely 4.5inch(xperia ion) and 4inch(s advance) it works with s advance.. but in xperia ion screen it breaks..</p> <p>the emulator image of both xperia ion and s advance...</p> <p><a href="https://imgur.com/m2WDqK2" rel="nofollow noreferrer"><img src="https://i.i...
3
1,111
Drop down list implement with mysql and jdbc
<p>I have two tables. First table Profession with two columns (profession_id, profession_name). Second table Applicant with five columns (applicant_id, profession_id, last_name, first_name, entrance_year). "profession_id" in table Applicant and "profession_id" in table Profession is related fields in mysql.</p> <pre><...
3
3,876
emails are sent to spam folder despite having DKIM and SPF set?
<p>My emails are delivered to spam folder at gmail and yahoo mail. PTR, DKIM (1024 bit), SPF are okay. I don't know whether DMARC and ADSP or Domain Key are needed to be configured or else? In addition, I have checked Bulk Senders Guidelines "support.google.com/ ----> mail/answer/81126" but I think I am in compliance w...
3
1,222
How to Show Player's Name Using Spinner and Send by an Intent?
<p>I need your help. Can you help me resolving this project without encountering a "<strong>FATAL ERROR: Main</strong>" or something? I want to make a program that has the following steps:</p> <ol> <li><p><em>Register or sign-up a name for player one and two into the spinner. The EditText turn empty afterwards.</em></...
3
6,324
Hi, is there any way of getting rid of the autocomplete background when my webpage has loaded my saved login credentials?
<p>If i delete the login credentials, the colour of the field is fine. it turns back to the grey colour that you can see in the image i've provided. However when reloading the page the light blue colour appears, which as you can see doesn't look very appealing. I've tried to find a solution on YouTube and i cant seem t...
3
1,617
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() getting runtime error in android
<p>Getting this <code>RuntimeException</code> in android :</p> <blockquote> <p>java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() getting run time error at Toast.makeText(this, latitude+""+longitude, 1).show();</p> </blockquote> <p>in function <code>updateLocatio...
3
1,066
AngularJS filter using ng-repeat checkboxes show all on page load
<p>This one is similar to a post that someone posted before but different variations. I am having trouble filtering check boxes where I want all the products to load on page load and when I check multiple check boxes within technologyArray and/or technologyArray2, it shows all the products that match the check box name...
3
2,354
Rails, X-Editable not passing correct params in AJAX call
<p>I have been looking at this for 2 days now. I have an app in Rails 4.2.5 and ruby 2.1.7. I am trying to implement inline editing with X-Editable.</p> <p>I am not using any gems, just importing the relevant files with:</p> <pre><code>&lt;link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-com...
3
1,184
AngularJS with Laravel failed to instantiate module app
<p>I'm using Laravel 4.2 and angular 1.2.21. I've followed this tutorial: <a href="http://scotch.io/tutorials/php/create-a-laravel-and-angular-single-page-comment-application" rel="nofollow">http://scotch.io/tutorials/php/create-a-laravel-and-angular-single-page-comment-application</a>, but I've run into a strange erro...
3
3,025
pip is showing error after downloading OPENSSL
<p>pip command is showing error. i downloaded libraries from <a href="https://github.com/rajpaul/igotoeurope/blob/master/requirements.txt" rel="nofollow noreferrer">https://github.com/rajpaul/igotoeurope/blob/master/requirements.txt</a> then it started showing error in pip. i tried uninstalling the pip command and rein...
3
1,629
RSpec 2.13.1 hanging in Ruby 1.9.3 with Rails 3.2.13 and Spork 1.0.0rc3
<p>Trying to resurrect an old project by upgrading gems. Ran into an issue where RSpec hangs on startup with the '--drb' option.</p> <p>By itself, 'rspec spec' works fine. But start 'spork' in another terminal and then 'rspec --drb spec' spins up CPU to ~40% and just sits.</p> <p>Using Rails 3.2.13, Ruby 1.9.3-p392, ...
3
1,299
Trouble verifying paypal notify data with PHP
<p>I'm trying to check the data that paypal sends to my notify_url after a transaction has been paid (in this case using the sandbox).</p> <p>I've tried the sample code from paypal with fsockopen but I just couldn't get it to work properly. I also tried with cURL by manually giving a certificate, but it didn't turn ou...
3
1,061
Calling GetPixel from powershell with param error despite correct params
<p>The code snippet below is the debugger output.</p> <pre><code>Exception calling "GetPixel" with "2" argument(s): "Parameter must be positive and &lt; Height. Parameter name: y" At C:\dropbox\Workspace\PowerShellTest\mapGenerator\mapGenerator.ps1:51 char:16 + if(($map.GetPixel($x, ($y+1)) -eq "ff000000")...
3
2,818
How to optimize my Java code for using Java 7 switch?
<p>I have a query is that I have a string that I get through a param, the issue is that the split I realize you do not know if it's the best, but the idea was to separate these value chains that interest me, and then compare them.</p> <pre><code>public class TestSplit { public static final String CODIGO_BUSCAR = ...
3
8,388
com.google.android.gms.common.api.ApiException: 4 and ...ApiException: 5000: Application needs OAuth consent from the user
<p>i'm trying to connect to google fit and exchange the health data with its from my app. Here my code:</p> <pre><code> if (!GoogleSignIn.hasPermissions( GoogleSignIn.getLastSignedInAccount(getContext()), new Scope(Scopes.FITNESS_BLOOD_GLUCOSE_READ_WRITE) )...
3
2,236
How to change status of one problem so it can be moved to other section, for example section of problems solved?
<p>I am trying to pass 1 unresolved problem to a section called "resolved", ie someone sent from your problem forms that you are having, then in the admin part I have the problems all that have already been created and I want to send to another section those that are already solved, that is, I have 2 sections, an "unre...
3
1,403
what is difference between model created with createBean and this.model present in js file?
<p>I've been doing experiments from 2days to figure out the difference. So I've put </p> <pre><code>console.log (self.model); </code></pre> <p>in /custom/modules/Emails/clients/base/views/preview/preview.js and Yes I'm in an async operation there thats why I'm using self; And I did this.</p> <pre><code>var accounts...
3
1,089
multiple request with retrofit in android
<p>i create application call api the moves DB with retrofit library and recyclerViewe when user choose the movie Show activity for detail movies Now i implement recyclerView with ritrofit to create fetch the popular movie data, this MoviesApiService class :</p> <pre><code>public interface MoviesApiService { @...
3
3,667
ViewPager shows views on top of each other
<p>I am trying to implement a ViewPager, but currently it renders all the views on one screen, and when moving to the next it is empty it contains all the content. I have a feeling it has to do with the Fragment within Fragment or so, but I cannot figure it out. </p> <p>In the screenshot below you can kind of see it:<...
3
2,585
how to remove multiple back button from navigation in xamarin?
<p>please help me to sort out following issue.</p> <p>this is my issue.if push without animation(false)then issue.if animation true then working fine.</p> <pre><code>// await Navigation.PushAsync&lt;DeleteDealsAndOffersViewModel&gt;(); --&gt; **working fine** // await Navigation.PushAsync(new DeleteDealsAndOffersV...
3
1,206
ViewMode observable properties not included during PUT
<ol> <li><p>my Knockout.js viewModel has an update method which is bound to an Update button's click event. When clicked, the firstName and lastName are not included in the ajax data payload. However, if I make these properties non-observable, then they are included in the ajax data playload. Does anyone know why? </...
3
2,776
How to take a UIImage screenshot on iPhone 5 running on letterbox mode?
<p><strong>EDIT:</strong> I gave the wrong code. My apologies! There, I changed it.</p> <p>My application is running on letterbox mode in an iPhone 5 because I haven't given it a Default image with the proper size yet.</p> <p>I want to keep it letterbox for now.</p> <p>I use this code to generate a <code>UIImage</co...
3
1,968
Condition Expression seems not to be taken into account on DynamoDB PutItem
<p>It's one of the first times I'm using DynamoDB and have created a table for user accounts in my system.</p> <p>Table definition follows:</p> <pre class="lang-json prettyprint-override"><code>{ &quot;Table&quot;: { &quot;AttributeDefinitions&quot;: [ { &quot;AttributeName&quot;...
3
1,148
How to navigate to detail page using Flatlist
<p>I'm building an app using react-native (expo) firebase and flamelink as cms and I need to create a project list with some landing pages on project.I used flatlist to render my list of project but now I need to navigate from a project card to a detail page. What am I doing wrong ?</p> <pre><code>import React from 'r...
3
1,544
GLSL stops rendering
<p>I want to write a signed distance interpretation. For that I am creating a voxelgrid 100*100*100 for example (the size will increase if it is working). Now my plans are to load a point cloud into a 1d texture:</p> <pre><code>glEnable(GL_TEXTURE_1D); glGenTextures(1, &amp;_texture); glBindTexture(GL_TEXTURE_1D, _tex...
3
1,055
Putting validators disturbs panel layout
<p>when i put RequiredFieldValidator in asp.net page then it disturbs page layout. It works in all places but in specific places it disturbs page layout.</p> <p>Before Putting Validator:</p> <p><img src="https://i.stack.imgur.com/R8hrC.png" alt="enter image description here"></p> <pre><code>&lt;asp:Panel ID="pnlSear...
3
3,314
PHP overflows the arduino buffer
<p>I have a problem with arduino (uno) buffer overflow. I am trying to create a simple application in which I insert b (blue diode) or r (red diode) or space (space does not turn on any diode) through the PHP page into the form, send it and then the blue or red diode lights up. Arduino connected via USB (COM3) Specific...
3
1,162
array_diff_assoc() values from Multidimensional array()
<p>I have this multidimensional array with for loop that I use to breakdown certain number in a function.</p> <p>However I'd also like to use array_diff_assoc() to get the differences.</p> <pre><code>for ($i1 = 0; $i1 &lt;= 9; $i1++) { $scale_0_to_9[$i1]; foreach($splitInThreeArray as $key=&gt;$value) { ...
3
1,396
Global variables or Provider not allowing incrementation in Flutter
<p>Global variables or Provider, won't allow me to increment the round number or the current player number.</p> <p>I'm trying to cycle through rounds in a game, and for each round all the players should play one by one. I have the players in a PlayerData Provider. Also there I've put currentPlayerNumber and currentRoun...
3
2,087
Sending Data From TI TM4C123GH6PM to an HD4478 LCD with a PCF8574T I2C Backpack
<p>I am trying to write a program that will enable me to send data from my TI microcontroller to the very common HD4478 LCD. Rather than utilizing a parallel pin setup, I thought it would be a good idea to try and use a serial setup, so the LCD has a PCF8574T I2C I/O expander backpack. I am fairly new to writing embedd...
3
3,068
Making a multi-line, real-time text renderer in pygame for a Visual Novel
<p>I've been trying to make a multi-line text renderer that renders in real-time with pygame. I've basically successfully made one, however the text-renderer I've made MUST ALWAYS have 3 lines of text otherwise it won't render.</p> <p>What I'd like to do is to have a text renderer that can render as many lines that's i...
3
1,138
Displaying data for Dynamic Angular Material Table
<p>I am trying to create a dynamic angular material table with a custom header which i intend to use later for validation for styling the table. I can successfully display the tableHeaders but i have no success in displaying the tableData. There is no error. I am kinda beginner in Angular so any help would be appreciat...
3
1,364
FileStream download pulls page HTML
<p>I am trying to set up FileStream to work in my application. I am pretty sure that the issue I am having is not within my Upload code. If I view the properties of my test file, it shows being 46 bytes. When I watch the debug step through my download command, it grabs a filelength of 46 bytes.</p> <p>On the very l...
3
1,226
(MuMIn) Dredge when global mixed-effects model is rank deficient
<p>I am trying to run variable selection on Poisson mixed-effect models using <code>glmer()</code> and <code>dredge()</code>. Since several variables are collinear I use the subsetting function of <code>dredge</code> to avoid correlated variables. However, to use <code>dredge()</code> effectively one needs to have a fu...
3
2,095
Azure Mobile Service for Windows Phone 8.1 - Insert to existing DB
<p>I am writing an app that has an Azure database. I've never did nything connected with Azure, so I am new to all the stuff. I've found on the internet and at microsoft documentation some tutorials, but I must have got sth wrong, cause it doesn't work. So I have a table at my database called Week, I've created a model...
3
1,581
Cannot assign requested address (localhost:4444)
<p>I have problem with <code>Selenium</code> when I want to create a Image in Docker. In fact, I developed a <code>.Net Core Api</code> using <code>Selenium Chrome driver</code> and I need to create its <code>Docker container</code> to deploy it on a server. The interesting point is that it works properly locally, but ...
3
1,088
Agora cloud recording custom layout not working
<p>Agora is not capturing the video stream in custom layout when uid passed. It skip that stream in which uid is passed.</p> <p>here is the sample layout for three video stream I am using, it only capture two video stream in which uid is not present.</p> <p>The uid I am passing is as per documentation in cloud recordi...
3
1,749
Trying to create a 5x5 grid of squares with std draw but squares are at duplicate coordinates
<p>I am trying to create a 5x5 board of rectangles(squares) with a 2d array but my code draws the 25 squares in only 5 places so it looks like there's only 5 squares diagonally on the &quot;board&quot;. I'm assuming something is wrong with the logic in the nested loop but after tinkering around for a while I can't figu...
3
1,067
"TSLint still there" => upgrading from TSlint to ESLint
<p>I'm working on angular 10 project, which was upgraded to angular 12. TSLint is no longer used in angular 12, but since that project was upgraded to angular 12, it still has <code>tslint.json</code> and its packages. How do I remove it? The project uses prettier as well.</p> <h3>package.json</h3> <pre><code>{ &quot...
3
2,017
Dividing a string into 3 parts and export to CSV in JAVA
<p>I have a string &quot;<strong>1 kg potatoes</strong>&quot; whereas <strong>1</strong> is the quantity, <strong>kg</strong> is the unit and <strong>potatoes</strong> is the item. I want that the compiler will read a string and match with &quot;unit_list &amp; quantity_list&quot;(see code below). And it saves the res...
3
2,868
Open socket connection to SMTP server using Stream in Swift 3
<p>I need to connect to an SMTP server and failing open the connection. Failing handshake (missing authentication) is furthest I got here. I open the socket to a normal server but failing to do so in here to send an email.</p> <pre><code> private func connect() throws { var input: InputStream? = nil ...
3
1,119
(Highcharts) Polygon-like shell in polar chart
<p>I am not sure on how to go about this chart here, I tried to make it as close to possible but since there are so many options to tinker with, I am at a loss.</p> <p>I am trying to do this chart in highcharts.</p> <p><a href="https://i.stack.imgur.com/KXlad.png" rel="nofollow noreferrer"><img src="https://i.stack.i...
3
1,118
How to delete a record that stored in nested array foreach php
<p>Recently I've been self-learning PHP and doing a project for improving my skills.</p> <p>I was trying to delete my items which I stored them in session array. First loop is based on renter after that only loop the items from array into cart that belong to that particular renter which this part is working well. </p>...
3
1,109
Is there a way to send array of textbox and checbox from View To Controller (CodeIgniter)
<p>I am building a store front with CodeIgniter where list of items from the database is displayed with a checkbox in the View. The user is to select items and enter their quantity. When the user Click Send, the list of Items and their quantity that user set will be submitted to the Database.</p> <p>Here is the View C...
3
1,522
Populating user birthday in dropdowns from database with php
<p>I have user system on the site. When user is registering he select his date of birth also. I'm storing this date in table in this format <code>1900-01-01</code>.</p> <p>Now I want to make page from where users can edit their account and also to change date of birth..</p> <p>Problem: How to populate 3 dropdowns Yea...
3
2,467
Jquery script not working for form submit
<p>Form submit function is not working when written in an external jquery file, but works on the browser console. I have tried to debug a lot but couldn't find any error. Similar form submit functions written in the same jquery file work well but no idea why this one doesn't work.</p> <p>Other such queries on stack ove...
3
1,663
App crashing when I'm trying to use custom EditText
<p>I'm using custom editText, and receive crush on a start. It's also ruins my constraints on a design page of xml. With default one everything is ok. </p> <p><b>Code for custom EditText:</b> Using it to lock cursor in the end.</p> <pre><code>class CustomEditText(context: Context) : EditText(context) { public ov...
3
1,127
CMake: how to handle add_custom_command sub-builds when building with Ninja
<p>I'm using CMake to build a C++ project (on Linux). The project consists of numerous sub-projects, each of which may invoke a function to create a useful <code>link_date.c</code> source file, which contains the timestamp when the link took place. I use this as a way to reliably embed the build time into the binary re...
3
1,139
How can I sort a Linked List with User inputs?
<p>I have a project, that generates a Linked List, delete them and show this at the User. Now, I want to sort the list. My struct:</p> <pre><code>typedef struct YugiohCard { char Name[100]; char CardType[20]; int Level; int Rank; int PendulumStage; int Link; int ATK; int DEF; char P...
3
2,973
After I change the fs/myext2/file.c read and write operation, my 'cat', 'cp', 'echo' are all killed
<p>I copy the fs/ext2/ as fs/myext2/, and have modified all the things I need to modify, and it all does well before I change the fs/myext2/file.c. And it does well, when I change like this (</p> <p>Add following codes into file.c, and the <code>new_sync_write</code> and <code>new_sync_read</code> functions are copied...
3
2,055
Herokuapp fails to compile
<p>My app has compiled before, but now when I attempt to push new changes, it gives a warning of invalid fragment for a spacy model language package:</p> <pre><code>Installing dependencies from Pipfile.lock (afd0bd)… remote: WARNING: Invalid fragment string egg=en-core-web-sm==2.1.0 remote: ABORTING INST...
3
6,718
Searching NSCombobox for large number of arrays
<p>I have two NSCombobox in same ViewController. One is for country and other for city. I have text files with country name which includes cities with respective latitude and longitude. For example: USA text file contains 17456 list of cities. I want to populate cities with respect to their country name. But combobox f...
3
1,466
Binning data into equal box sizes and apply OLS to each bin
<p>I have a DataFrame <code>df1</code>:</p> <pre><code>import pandas as pd import numpy as np import statsmodels.formula.api as sm df1 = pd.DataFrame( np.random.randn(3000,1), index= pd.date_range('1/1/1990', periods=3000), columns = {"M"}) </code></pre> <p>I would like to group elements in a box size = 10, fit them...
3
1,083
how to install conflicting packages?
<p>I have both <code>anaconda</code> for <code>python 2.7</code> and for <code>python 3</code> installed on my machine. </p> <p>I am trying to install <code>user-agents</code> (<a href="https://github.com/selwin/python-user-agents" rel="nofollow noreferrer">https://github.com/selwin/python-user-agents</a>) and I get t...
3
1,780
Bootstrap Vertical Align images
<p></p> <pre><code>&lt;div class="container-fluid padding" style="margin-top: 150px; margin-bottom: 75px;"&gt; &lt;div class="row padding images"&gt;&lt;!--Image 1--&gt; &lt;div class="col-xs-12 col-sm-12 col-md-6 col-lg-8"&gt; &lt;img src="https://i.stack.imgur.com/YO4AV.jpg" alt=...
3
1,112
Unable to start Service with WiX Installer
<p>I'm trying to do a WiX installer with a service install for my C# project. It's the first time I try and I don't understand why it doesn't work.</p> <p>I have set a ServiceInstall but when I run the setup, I'm blocked in this page :</p> <p><a href="https://i.stack.imgur.com/MQYun.png" rel="nofollow noreferrer"><im...
3
1,044