title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Freetype with C++ not loading all glyphs correctly
<p>I'm using FreeType to load the glyph textures, basically using FT_Load_Char to get the texture, then creating an instance of my custom class Character that contains all the metrics and texture for rendering later:</p> <pre><code> for (unsigned int c = min; c &lt; max; c++) { if (FT_Get_Char_Index(faces[faceIn...
3
1,160
Do Anomaly detection on my own images use deeplearning4j
<p>I going to do Anomaly detection on my own images by using the example on deeplearning4j platform. And I change the code like this:</p> <pre><code> int rngSeed=123; Random rnd = new Random(rngSeed); int width=28; int height=28; int batchSize = 128; MultiLayerConfiguration conf = new NeuralNetC...
3
1,521
Adding double values to a TableModel in java
<p>I have written a table model using <code>AbstractTableModel</code> as below.</p> <pre><code>class DataTableModel extends AbstractTableModel { /** The table. */ private DataTable table; /** The Constant LOGGER. */ static final Logger LOGGER = Logger.getLogger(DataTableModel.class); /** * ...
3
2,207
Limiting Y-axis in horizontal bar chart with scale_y_reverse() in ggplot2
<p>I made a plot with two horizontal bar charts with shared axis in ggplot2 (thanks to this <a href="https://stackoverflow.com/questions/18265941/two-horizontal-bar-charts-with-shared-axis-in-ggplot2-similar-to-population-pyr">post</a>). This plot shows life expctancy in brazilian states on the left and the difference ...
3
1,893
Values not getting saved in database in codeigniter tank auth
<p>I have added two fields in a registration form of tank auth.Field with name fname and lname. I have added the same in the form_validation as you can see the controller file.But username,password,email is injected into database expect fname and lname.What is wrong in the code?I have checked if the name of the field,t...
3
1,618
Issues with jQuery and IE
<p>I'm building a custom jQuery slideshow which effectively looks at each 'slide' and hides all 'frames' within it one at a time, and looks and the next slide, and unhides all the frames within that. Pretty simple.</p> <p>The slideshow works perfectly in Chrome and Firefox, but not in IE9 (haven't got as far as testin...
3
2,277
Configure the size of the icon at J2ME Polish
<p>How can I configure the size of the icon to fit correctly on the multiple mobile devices?</p> <p>Based on the <a href="http://www.enough.de/products/j2me-polish/documentation/building/resource-handling/resource-assembling.html" rel="nofollow">J2ME Polish documentation</a>, I'm using the following <code>resources</c...
3
1,493
Building pynauty with python3
<p>I am trying to build pynauty according to this instructions: <a href="https://web.cs.dal.ca/~peter/software/pynauty/html/install.html#build" rel="nofollow noreferrer">https://web.cs.dal.ca/~peter/software/pynauty/html/install.html#build</a></p> <p>I would like point out that my main goal is to run this python code:...
3
1,107
TableView content not showing
<p>I have a table view which I have populated with information, however while I can select the rows which hold data, the text is not visible. Using <code>table.getSelectionModel().getSelectedItem();</code> I can confirm that the table has indeed elements inside but the text does not show up.</p> <p>I have a Socket com...
3
1,646
jquery-based standalone port knocker
<p>I am working on a small project and need to provide an alternative method for my team members to port knock on a non-production server and open port 22 for SSH traffic (access closes again after 10 minutes). As some methods of knocking don't work for different users on different devices, we needed to create a 'knock...
3
1,720
Clear chrome browser cache in Angular 7
<p>I use angular 7 I have problem with the cache</p> <p>I build my project using this command :</p> <pre><code>node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod --aot --outputHashing=all </code></pre> <p>this is my <strong>index.html</strong></p> <pre><code>&lt;!doctype html&gt; &lt;html cla...
3
1,661
Can we force Swagger to "inline" objects in "anyOf" instead of using $ref to an object when generating an openapi docs
<p>I am wondering if there is a way to force Swagger and Spring (maybe using annotations?) to &quot;inline&quot; objects when generating openapi docs. An example of how it works right now:</p> <pre><code> paths: /pets: patch: requestBody: content: application/json: ...
3
1,930
My query will not update, but when i refresh in dd it will
<p>When I run the query normally it won't update the <strong>status_order</strong> from <code>0</code> to <code>1</code>, but when I put a <strong>dd()</strong> function after the query to check if it will update properly, it will give the same result the first time I run the code, but when I refresh the page it will u...
3
1,270
How to set empty context root for payara micro?
<p>my app works with payara server without setting any context root but payara micro is setting default context root as name of my war file. How do I set context root to empty in case ot payara micro ?</p> <p>one of the way is to set war name as ROOT.war but with that name i get following error while deploying. I tried...
3
1,317
Why do two instances of same class get same instance variable change?
<p>I want to make a GUI that asks the user which two files he wants to open. It presents as an Entry and a Button (two times : one per file), both in the same frame, itself in the root. </p> <p>Since I want the same thing twice, I defined a class and then instanciated it two times, just with different grid positions. ...
3
1,067
Serviceworker never gets activated or receives messages but workbox functionality works on subpaths
<p>In my current project using webpack with (<code>workbox-webpack-plugin</code>) and workbox (with <code>workbox-window</code>) I have encountered an error where the serviceworker will never respond to messages when the page is loaded at a "deep url", like "/my-path/is-nested". It will work on "/my-path".</p> <p>In a...
3
1,987
Isotope.js - AJAX and container height
<p>I am working on a website that uses Isotope.js to sort a portfolio. There is also a button that users can click to AJAX load more posts.</p> <p>Here is a link to the temporary website: <a href="https://contactlenzes.com" rel="nofollow noreferrer">https://contactlenzes.com</a>.</p> <p>This is how I initiated Isot...
3
1,768
VW3D Model Format
<p>Lately, I have been working to resurrect an old open source game. My main problem is it uses a custom format: VW3D. The following code snippet is used to load the model from its File System. Is it possible to reconstruct the model format (and convert it) from the below snippet? I have no idea how I would go about th...
3
1,671
Terraform AzureRM domain-join fails due to account lockout
<p>I'm creating terraform configuration files to rapidly create and destory demo environments for our prospective customers. These environments are pretty simple, containing a few VMs in single vnet with a single subnet, some for management, some for apps, and one as an AVD session host.</p> <p>I have seen this work pe...
3
1,875
How to implement Runspaces into a powershell script
<p>I was very recently introduced to the concepts of Runspaces. After several YouTube videos and forum posts I get the idea as to how they work, but I struggle when trying to include it in a script of my own.</p> <p>if i have the code to implement one:</p> <p>(thanks to <a href="https://blog.netnerds.net/2016/12/runs...
3
1,216
Google Maps Force Close in API 17
<p>I am trying to make a simple map application in navigation drawer (using Android Studio) but I am facing a weird case. I tried in Virtual Device API 24 (also real Marshmallow device) and it works fine (no error message in log cat).</p> <p>But when I tried in Virtual Device API 17 (also real Kitkat 4.4.2 device), th...
3
4,457
Multiclient server-client c#
<p>so recently i asked a question about a problem i had in my server-client program and i could solve the problem even though the answers i got on the question didnt help at all (thanks anyway :] ), but now i have another problem, i need the program to make it a multiclient-server type of thing, and i dont really know ...
3
3,250
Ignoring variable in Python multiline string
<p>I'm forwarding an HTML e-mail using a Python script, which is in a multi line string. It needs to read 4 externally given variables (which work). But there's a mail:to link which uses %20 and %40. I'm using %s to refer to the other objects. When I try to execute the script, it gives the following error:</p> <blockq...
3
1,115
Trying to load a json file to the Jquery.gantt
<p>I'm using a jquery plugin to create a gantt chart named <a href="http://taitems.github.io/jQuery.Gantt/" rel="nofollow">Jquery.Gantt</a> I want to load a json file but unfortunately it doesn't load. this is the content of the json file. it loads the json file thru ajax but it doesn't render. </p> <p><div class="sni...
3
2,737
C++ Validation - Truncation set as next input
<p>I consistently run into this problem where I'm trying to validate user input but I find myself using tons of ignores() throughout my program. Since it is a <strong>school program</strong> I'm only <strong>limited</strong> to just <strong>iostream</strong>, <strong>cctype</strong>, and <strong>student.h</strong> libr...
3
1,432
Return entire Array
<pre><code>#include &lt;cstdlib&gt; #include &lt;iostream&gt; #include &lt;string&gt; using namespace std; class Student { private: string name; int year; string semester; int AmtClass; string *CName; static string cohort[4]; public: Student(); Student(int AmtClass); Student(Stude...
3
1,965
Alphabet increment function by index number in js
<p>I am trying to merge an array of objects into a single object and on the object key, I want the alphabet letters.</p> <p>I have created a function <strong>incrementLetter</strong> it will take the index number and from the index number it will return the alphabet, the issue is the alphabet is 26 letters if the index...
3
1,558
Blank screen in rendering Page Areas after update from Asp.net MVC 4 to MVC 5
<p>I have a Facebook Application as an Area inside my Web Site. It has been developed using the Microsoft.Mvc.Facebook namespace and following the Facebook Template shipped with Visual Studio 2012.</p> <p>Everything worked fine until i upgraded my project to ASP.NET MVC 5. Now, whenever i open the app from Facebook, i...
3
1,035
Build HTML with inputs from Google Sheet
<p>I'm trying to build a small application that dynamically builds a series of html cards using Materialize CSS based on fields that are present in a google sheet. I've provided a link to the example app, and the example sheet below.</p> <p>sheet: <a href="https://docs.google.com/spreadsheets/d/1DD3wqB3IhvReJ5CWVHC-nYA...
3
2,618
Vue.JS - Combine Variable
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code> &lt;script&gt; var app = new Vue ({ el: '#app', data : { sentence: '' }, ...
3
1,034
ListView Lollipop doesn't show all the information
<p>I have a list view that works fine in some version of android, but in lollipop the list view doesn't show all the information (just 1 string of 5). In my app I have just an activity that extends of AppCompatActivity, here my adapter </p> <pre><code> public class PromoAdapter extends ArrayAdapter { private ...
3
2,635
Laravel multiple parallel requests seems to cause wrong connection to be used
<p>I'm having a Laravel 5.2 single page app that after rendering in the DOM will fetch some settings via AJAX calls. It is very possible that many ajax calls are done simultaneously.</p> <p>Sometimes I will receive a 500 error because the table users cannot be found (which does exist). If I extract the query I can see...
3
1,503
Could not load type 'CwizBankApp.HomeLogin'
<p>I dont know what could be missing here but I keep getting this error ,</p> <pre><code>Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Mes...
3
1,354
How to add a self-defined MouseMotionListener to a JPanel?
<p>I wrote a <code>MouseMotionListener</code> for <code>JPanel</code>, but I get confused on how to use it.</p> <p>The listener class works well when added to the frame using <code>aWindow.add(new MouseMotionEvents())</code>, but when I try to add it to the panel using <code>content.add(new MouseMotionEvents())</code>,...
3
1,075
Unable to find negative numbers for Longest Decreasing Sequence
<p>I wrote an assembly code combined with C. It only works if the numbers in the array are positive numbers. If I want to test any negative numbers, it skips the numbers.</p> <p>Here is my assembly code:</p> <pre><code>INCLUDE Irvine32.inc .data ; LSD bestIndex dword 0 bestLen dword 0 curIndex dword 0 curLen dword ...
3
1,037
Dining Philosopher Java
<p>This is my code: </p> <p>Table.java</p> <pre><code>public class Table { Lock mutex; int nbrOfChopsticks; private boolean chopstick[]; //true if chopstick[i] is available public Table(int nbrOfSticks){ nbrOfChopsticks=nbrOfSticks; chopstick=new boolean[nbrOfChopsticks]; for...
3
1,927
React - Append instead of replacing state
<p>EDIT - I'm now getting TypeError: this.state.historyIn.map is not a function from the below code. </p> <p>I wonder if someone can help. I've challenged myself to create a sign in application to teach myself React.</p> <p>I'm looking for a way to append the 'In' &amp; 'Out' History each time the Sign-In or Out even...
3
2,026
How do you create the correct Lambda expression to handle comparing 2 object lists?
<p>I have a <code>List&lt;imports&gt;</code> which is created by reading a CSV file. I have a <code>List&lt;table&gt;</code> by reading from a database table. What would be the correct way of setting up lambda expressions to:</p> <ul> <li>Find the intersection <em>(Records to UPDATE or Records with NO ACTION)</em></...
3
3,219
Name sorting in C
<p>Bellow a program I've made to sort names like a mobile phone does i.e sort the list with the first letter alphabetically, then with in that sorted list again sort the list with the second letters alphabetically and so on. If the two names have same letters with a or more than one extra letter added in one name then ...
3
2,400
View/ViewController hierarchy and positioning issues
<p>I have a problem which I try to solve with 2 approaches. Both work to some extent, but then fail. The help with any of them will be highly appreciated. Also any other working approaches are welcome.</p> <p>This is the task that needs to be accomplished:</p> <p><em>I have an input component. For simplicity, let's s...
3
2,034
Transferring variables from class to class in Java
<p>I have been having some issues transferring Variable data from Class to Class in Java whilst completing a Monopoly-type text-based game.</p> <p>I have been trying to transfer the roll1 and roll2 variables from the Dice class into the Board Class, but for some reason the data is not being transferred properly, and w...
3
1,071
Why is apache redirecting to one of ServerAlias?
<p>I am using two top level domains <code>.pl</code> and <code>.net</code>. Both should always redirect to <code>https</code> version however when user go to <code>http://example.net/</code> apache redirects to <code>https://example.pl/</code>. Why it is preferable even when it is on third position in <code>ServerAlias...
3
1,105
KeyError: '' in python/tensorflow
<p>I am trying to make a text generator code, but the following line keeps giving me an error:</p> <pre><code>X[0, (sequence_length - len(seed)) + t, char2int[char]] = 1 </code></pre> <p>The error that this line gives me:</p> <pre><code>Traceback (most recent call last): File &quot;C:\Users\m8\Desktop\programing_stuf...
3
1,137
Angular Delete http request
<p>I'm getting started with angular CRUD operation and I want to have this delete request. My problem is When I execute this delete request on whichever rows I want to delete, It's always the first row. my Html-</p> <pre><code> &lt;tr *ngFor=&quot;let users of RegisteredUserList&quot;&gt; &lt;td&gt;{{users.id}}...
3
1,816
How is base container executed on Gitlab runner
<p>I am working on a CI/CD pipeline which uses a containerised environment. </p> <ul> <li>On my laptop, everything thing is run within a centos container which contains all of my tools, while the code and configuration reside on a shared volume. </li> <li>Most of that shared volume gets pushed up to master when I sub...
3
1,058
how to use a randomized TOKEN to reload PHP script with AJAX, url is being cached?
<p>I have this AJAX call I'm making. How can I make this JQuery refresh/reload the script that is being called and execute the AJAX call afterwards. I want to use this in case the user re-clicks the same button again and show new data.</p> <p><strong>Problem:</strong></p> <p>How do I include a token? My show_aht.php ...
3
2,441
Append image to a given cell
<p>I would like to show a small square in the bottom right instead of showing the text of the event in the cell (=day). </p> <p>The point is, when there is a small square in the bottom right corner, there is an important date. </p> <p>My issue is that the image is being appended multiple times when it should be appen...
3
1,104
Shadow too light for Floating Action Button
<p>I have some Floating Action Button in my app. For all those FAB the shadow is too light. I have tried many solutions like elevation, borderwidth = 0dp, translationz, using drawable file and using styles. Those did not solve the problem and the shadow remains light.</p> <p>You can check my screenshot for the light s...
3
1,551
Nlog ConnectionAborted and ConnectionReset
<p>I have some project that uses Nlog for logging exceptions. It worked normally about 2 years. Recently, I've got the following messages:</p> <pre><code> NLog.NLogRuntimeException: Exception occurred in NLog ---&gt; System.IO.IOException: Error: ConnectionAborted --- End of inner exception stack trace --- at NL...
3
1,146
Custom font breaks caret's position in Bootstrap navbar
<p>While using Bootstrap 3 with custom font in navbar the position of carot doesn't remain vertically aligned with text. </p> <p><a href="https://i.stack.imgur.com/ftgaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ftgaz.png" alt="enter image description here"></a></p> <p>I'm not using any custo...
3
1,083
MVC model binding to list - only works on first item in list
<p>I have a page that contains multiple forms to edit questions for a single quiz, each question has its own list of answers. So for each question inside this quiz there is a form for which a user can edit the question (and answers), See below:</p> <pre><code>@model OLTINT.Areas.admin.ViewModels.OldQuizQAViewModel &lt...
3
2,650
Django rest framework How to fix many-to-many n+1 error?
<p>I have models:</p> <pre><code>class Group(models.Model): number = models.CharField(choices=CLASS_NUMBERS, max_length=2, verbose_name=&quot;Номер класса&quot;) name = models.CharField(max_length=20, verbose_name=&quot;Назв...
3
1,395
TypeError: props.navigation.getParam is not a function. (In 'props.navigation.getParam('docId')', 'props.navigation.getParam' is undefined)
<p>I am trying to fetch the data from one screen to another through props.naviagtion.getParam, however I am getting this error :'TypeError: props.navigation.getParam is not a function. (In 'props.navigation.getParam('docId')', 'props.navigation.getParam' is undefined)'. I have shared the code; if someone is familiar wi...
3
1,336
Halide optimal scheduling
<p>I'm trying to work out the best schedule for a benchmark Halide code and I might be missing something because the timing results don't make much sense to me.</p> <p>I'm using AOT compilation, and here's the algorithm part of the code:</p> <pre><code>ImageParam input1(type_of&lt;float&gt;(), 3); ImageParam input2(t...
3
1,055
Enabled View after login my application
<p>I am a beginner in WPF /MVVM and I have a lot of problems.. One of theses, it that I've an application with a LoginView on the left and a content view on the left. Theses 2 views are in the MainView like this : First View "MainWindow"</p> <pre><code>&lt;Window x:Class="MainWindow" xmlns="http://schemas.microso...
3
6,275
how is Maven 3 host look up different to Maven 2?
<p>I am working to migrate from Maven 2 to Maven 3. I have purposely removed the host and port from the messages and settings.</p> <p>Maven 2 currently works fine with the Artifactory central repository we have setup behind a firewall. When I switch to using Maven 3 it fails to download the plugins with the error me...
3
1,890
Can't run MongoDB 6.x mongodb-community on macOS Monterey 12.6
<p>Have always installed MongoDB mongodb-community on 'brew' &amp; run on macOS 12.6:</p> <pre><code>/usr/local/Cellar/mongodb-community/5.0.7/bin/install_compass /usr/local/Cellar/mongodb-community/5.0.7/bin/mongo /usr/local/Cellar/mongodb-community/5.0.7/bin/mongod /usr/local/Cellar/mongodb-community/5.0.7/bin/mongos...
3
13,798
Problems using classes in vb.net
<p>I am implementing a procedure for creating an XML file for the transmission of some data, using VS 2019 vb.net. To do this, I have built a series of classes as suggested by Microsoft. The procedure compiles correctly but at run time generates an error like 'Object reference not set on an object instance.' to the lin...
3
1,253
Where to put quartz scheduler to only kick off once
<p>I have two scheduled jobs with quartz. One on application side and one on client size. It is a very simple set up but I am obviously missing the basics of the how this works as I have checked their documentation and several other sites.</p> <p>I have two separate classes, one for the job and one for the trigger. Th...
3
1,046
Tooltip is not Displayed (Twitter Bootstrap)
<p>Note: I have 0 skills in Javascript n Jquery</p> <p>I am using twitter bootstrap for a small family tree. The step I am stuck on is that I want to display some information when a link (a person) is clicked upon. Ive gone through the bootstrap documents and the tooltip usage looked pretty straight forward. However i...
3
4,747
How Can I Get Exclusive Lock On Drive / Partition Win-Api 32?
<p>How to lock lock on specific drive till i perform some operation(read/write) on that drive. When i have captured lock on drive, no other process should able to write on that drive unitl I release lock on that drive, I have found one API i.e. <code>DeviceIoControl()</code>, but I want access on drive for my process o...
3
1,045
google-visualization Table has no columns
<p>I try to integrate google-visualization in my Vuejs project. But it's complaining about no columns in the datatable. Serverside i have the following code:</p> <pre><code>DataTable data = new DataTable(); ArrayList&lt;ColumnDescription&gt; cd = new ArrayList&lt;ColumnDescription&gt;(); cd.add(new ColumnDescri...
3
1,078
Recording with Bluetooth Mic
<p>After connecting with paired devices, Bluetooth is not taking his Mic, instead it is taking mobile's Mic Below is my code</p> <pre><code>public abstract class BluetoothHeadsetUtils { private Context mContext; private BluetoothAdapter mBluetoothAdapter; private BluetoothHeadset mBluetoothHeadset; pri...
3
4,301
Undesired delay in the celery process
<p>I am encountering an undesired delay in the celery process that I cannot explain. My intent is to manage live processing of incoming data (at a rate of 10 to 60 data per seconds). Processing of one piece of data is divided into two fully sequential tasks but parallelization is used to start processing the next piece...
3
1,592
In vagrant can not access to the default keystone site with nginx
<p>The vagrant server I configure with the following script still serve the default nginx page instead of the default keystone page. Here the scripts I use:</p> <p>The vagrant file:</p> <pre><code>Vagrant.configure("2") do |config| config.vm.box = "centos/7" config.vm.network "private_network", ip: "192.168.1.10"...
3
2,037
Different behaviour in normal and debug run in threaded Virtualbox
<p>I'm encountering a weird error when running the script in PyCharm's debug mode or inside a Flask app. I have narrowed down my code to the following </p> <pre><code>import virtualbox import threading class ThreadExecutor(threading.Thread): def __init__(self): super().__init__() def run(self): ...
3
1,140
Need to make <td> tags into external links using HTML5 and CSS3
<p>I am trying to allow visitors to click on a link inside a table that uses CSS3 animation classes...I can't seem to get the DIV background image to become a link...see below HTML and CSS3...</p> <p>I would like to make each <code>&lt;td&gt;</code> into a clickable external link...</p> <p>I have tried to surround th...
3
1,450
How to prevent the elements in the dictionary constantly being updated?
<p>Here is the full code:</p> <pre><code>import re f = open('movies.item','r') # First three item of movies.item below: #1|Toy Story (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Toy%20Story%20(1995)|0|0|0|1|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0 #2|GoldenEye (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Golden...
3
1,331
How to add properly xml transformations to sign file
<p>I'm looking for a way to add properly transformations to a xml file. How can I add multiple transfomation references? And how to add the Xpath? Is the only way to create a workaround like in example from MS XmlDsigXPathTransform()?</p> <p>Right now I'm stuck with this results...</p> <pre><code>&lt;SignedInfo&gt; &l...
3
1,960
Converting working functional Javascript Tic Tac Toe game to Class based to practice OOP
<p>I'm making an exercise for myself to better understand OOP design by taking a working Javascript functional Tic Tac Toe game with AI to a Class based one. I'm getting stuck on the usual issues with what to put where in classes, single source of truth, loose coupling, etc. Not looking for complete answers here but pe...
3
4,247
Appium tests worked in our app's previous release, but don't all work in our app's new release
<p>When we ran our appium tests in our 2.4.0 release they were working with a 100% passing rate. However, with our new release 2.5.0, some of the tests are failing.</p> <p>They are failing because on some of the screens they can't locate an element. The ids of the elements are exactly the same in 2.5.0 as they were in...
3
2,085
Conditionally highlighting totals that don't match a dynamically summed range
<p><strong>Objective:</strong></p> <p>I am looking to use conditional formatting to highlight cells in rows that are not equal to the sum of a dynamic range. </p> <p><strong>Problem:</strong></p> <p>While the formula I have created seems to work when pasted into cells, it does not give the same results when entered ...
3
1,024
CSS Issues with Safari 10.0
<p>I've been designing a website for myself through Wordpress and have been attempting to edit the CSS that controls the menu on the site, I have attempted to shrink the menu so it's not as thick as it was originally. It looks good on all my browsers, but I have tried it on a MAC running Safari 10.0, but the menu seems...
3
4,663
how to Center align a whole div inside a container div using flex-box?
<p>I'm trying to make a layout using flex box and i've tried every combination but i'm not able to achieve what i want to have. I want this whole "<code>&lt;div class="swpm-login-widget-logged"&gt;</code>" to at the center of the container wihout any change in the structutre. Is that possible to achieve using flex-box...
3
1,175
flex/bison line 25: syntax error at '' . last line of the file
<p>Im trying to compile a flex proyect, but I always get the same error, I search in all SO, and try most of the solutions, like using a token &lt;> and return 1 or 0, or call yywrap()... but without luck.</p> <p>And I dont see where is the error, I have 84 warnings of shifts/reduce conflicts but I that could be the p...
3
4,185
Magento reindexes is not working - magento2
<p>I am doing reindex of all the product using </p> <pre><code>php bin/magento indexer:reindex </code></pre> <p>but when i run this command first time through me error like : </p> <pre><code> PHP Fatal error: Maximum function nesting level of '256' reached, aborting! in /var/www/html/solen_magento/vendor/magento...
3
1,659
Reactively displaying form submission confirmation message Vue 3
<p>I want to display a confirmation message when a user submits a form. I'm having trouble doing this though because I don't really understand how reactivity works in Vue.js.</p> <p>Below is my form -</p> <pre><code>&lt;form ref=&quot;form&quot; @submit.prevent.once=&quot;sendEmail&quot;&gt; &lt;label...
3
1,552
NumberOfLines in FlatList - React Native
<p>I have a Native App with a simple FlatList and TextInput. When I search any text it gets highlighted in the list as shown below:</p> <p>Now I set "numberOfLines = 3" (as per our requirement) and now it looks like this:</p> <p>The requirement is for it to look something like below. (please don't mind its my WhatsAp...
3
1,129
How to show "only" defined functions in GNU cflow?
<p>I have a <code>C</code> file like this:</p> <pre><code>// SPDX-License-Identifier: GPL-2.0 #include &lt;linux/ieee80211.h&gt; #include &lt;linux/export.h&gt; #include &lt;net/cfg80211.h&gt; #include "nl80211.h" #include "core.h" #include "rdev-ops.h" int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, ...
3
1,225
Point Cloud Distortion when Drawing with modern OpenGL
<p>I found this <a href="https://nrotella.github.io/journal/first-steps-python-qt-opengl.html" rel="nofollow noreferrer">nice tutorial</a> of drawing and rotating a cube with PyQt and modern OpenGL. My objective was to adapt the script for point clouds, by doing the following (see also code below):</p> <ol> <li>Load po...
3
2,122
Can't load templates with routeprovider when using webpack
<p>I recentley migrated from grunt to webpack and I can't figure how to require/import my templates. I have looked at several similar <a href="https://stackoverflow.com/questions/44889493/how-to-get-ngtemplate-loader-working-with-webpack-3-angular-1-typescript-and-e">issues</a> with no luck.</p> <p>Here is my <code>w...
3
3,281
How to use normal Parse functions in ParseFacebookUtils?
<p>I imported ParseFacebookUtils in build.gradle file</p> <pre><code>compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar' </code></pre> <p>The official documentation says it includes the parse-android:1.12.0, but I couldn't figure out how to use normal Parse functions such as logging in without facebook and e...
3
3,018
Pig: issue with REPLACE
<p>Below is how my data looks like:</p> <pre><code>199.72.81.55 - - [01/Jul/1995:00:00:01 -0400] "GET /history/apollo/ HTTP/1.0" 200 6245 unicomp6.unicomp.net - - [01/Jul/1995:00:00:06 -0400] "GET /shuttle/countdown/ HTTP/1.0" 200 3985 199.120.110.21 - - [01/Jul/1995:00:00:09 -0400] "GET /shuttle/missions/sts-73/mis...
3
1,042
Python SUDS automatically appends xsi:type to complex type
<p>I'm trying to call a web service method using python SUDS.</p> <p>When trying to create a specific complex type SUDS appends <code>xsi:type="ns0:DeedDto"</code> to it. Creating other types than this, SUDS does not append the xsi:type.</p> <p>The problem here is that the recieving end cannot recognize this type and...
3
4,006
Java Loop is not doing what It should be doing
<p>Had a problem with the recursive conflictCheck() method. That seems fine now. I have print lines for testing, that look good. Now, when something is a conflict (returns true), my playChess() method is supposed to fix the conflict by adjusting the node's second variable, and so on.</p> <p>My result is literally:</p>...
3
1,688
XMLEventWriter throws javax.xml.stream.XMLStreamException: No open start element, when trying to write end element even though opened
<p>I have a application <code>JSON -&gt; XML</code> converter. This application will take a <code>List</code> of events that are converted to XML one by one. Before conversion, the header for the final XML will be created using the <code>start</code> method, and later converted events are added to <code>xmlEventWriter<...
3
2,465
Could not handle FileTooLargeException in @RestControllerAdvice after enabling jwt in spring security
<p>I have spring boot application with undertow container. There is a rest controller that accepts file that look like following:</p> <pre class="lang-java prettyprint-override"><code> @ResponseStatus(HttpStatus.CREATED) @PostMapping(value = {&quot;/v2/upload-csv&quot;}, produces = {MediaType.APPLICAT...
3
6,683
Dataflow batch job not scaling
<p>My Dataflow job (Job ID: 2020-08-18_07_55_15-14428306650890914471) is not scaling past 1 worker, despite Dataflow setting the target workers to 1000.</p> <p>The job is configured to query the Google Patents BigQuery dataset, tokenize the text using a ParDo custom function and the transformers (huggingface) library, ...
3
2,421
Creating PDF push buttons with PDFBox 2.0.5 that shows/hides another button on the page. Only the last set created works properly
<p>The goal of this code is to have a thumbnail image on the page, and when hovered over by the mouse it shows the image in full size. The code here works with the major caveat that only the final thumbnail-full image combo created will work unless in Adobe Acrobat Pro, I go to Tools > Interactive Objects > Add Button....
3
3,379
how to manipulate localStorage parameters in ionic 2 i get undefined values
<p>i have struggles with the local storage parameter i have this //error SyntaxError at JSON.parse ()// i get " undefined" instead of the real values any help please on how to retrieve parameters from <strong>LocalStorage</strong> that i set after login in both my service <strong>auth-service.ts</strong> and <strong>au...
3
1,878
How to design a layout like this: one box on top and two bottom covering the whole page
<p><a href="https://i.stack.imgur.com/A1eUh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A1eUh.png" alt="enter image description here"></a></p> <p>I want 3 section one cover half part of the screen to show image slider and in half part, there is two section right now that part I'm done but now I ...
3
1,176
python multiprocess queue with infinity loop
<p>I create 3 processes and want the function wirte1 to write value 'A,B,C' to queue1 ,and function read1 read value from queue1 and put it to queue2 ,in the same time, function read2 read value from queue2, but value B,C can't read from queue2 in time and the process finished.</p> <pre><code>from multiprocessing impor...
3
1,075
Issues performing person detection nearing real time from video stream
<p><strong>GOAL</strong> : Detect people in real time with <strong><em>minimal delay/latency</em></strong> from given remote video stream.</p> <p><strong>Setup :</strong> </p> <ul> <li>Raspberry Pi (2) w/ usb web camera serving up images/video stream using Flask.</li> <li>Local machine ( macbook pro ) obtains video s...
3
1,381
String to Multidimensional Array with merging and sorting
<p>I have this sort of string that come from my database after many use of CONCAT().</p> <p><code>1, AA, 6, 10; 1, Z, 1, 5; 2, AE, 1, 5; 2, AF, 6, 10; 3, X, 1, 5; 3, Y, 5, 10</code></p> <p>In order to have something clear, let's say this :</p> <ul> <li>The large string is made of multiple substring, all ending by a ...
3
3,257
gcc complaining about undefined reference when the reference really is defined
<p>I'm trying to build a program using Rust's build system which calls through to gcc to perform linking. The actual linker command it's using is this monster:</p> <pre><code>"cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/shum/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unkno...
3
5,001
Error inflating class fragment in Google Map
<p>I just learned Android and I have some problems when I run the Google Map code. I've tried lots of solutions in stack overflow:</p> <ol> <li>Mainactivity.java: extends FragmentActivity instead of Activity</li> <li>activity_main.xml: change the name of fragment to "com.samplefragsapplication.SuggestionFrags" or "com...
3
3,473
MTLBuffer containing array of int2 has incorrect values when read by compute shader
<p>I am attempting to pass a buffer with an array of <code>int2</code> to a kernel function, using the following class:</p> <pre><code>class MetalHelper { lazy var device: MTLDevice! = { MTLCreateSystemDefaultDevice() }() lazy var defaultLibrary: MTLLibrary! = { self.device.newDefaultLibrary() }() lazy...
3
1,152
Objects are not valid as a React child. found: object with keys {background, color}
<p>i am trying to setting up darkMode button, but i got this error ... Uncaught Error: Objects are not valid as a React child (found: object with keys {background, color}). If you meant to render a collection of children, use an array instead.</p> <p>here is my data..................</p> <blockquote> <p>my Contextjs co...
3
1,103
I'm working on a Minimax Algorithm for my reversi game(w/ react.js) but it gives RangeError
<p>I'm working on a Minimax Algorithm for my reversi game so that I'll have a strong AI opponent facing the player. But I bumped into this error: &quot;RangeError: Maximum call stack size exceeded&quot;</p> <p>What can I do to fix it?</p> <p>Here's the code(I won't explain it with pseudo code since my question is not a...
3
2,045
D3js setting fill to none programmatically impacts onClick Event
<p>can someone explain to me what's wrong with the following method to manipulate path colors on different conditions?</p> <pre><code> &lt;button ID="btnTopo" onclick="fillTopo()"&gt; FillTopo&lt;/button&gt; var isTopo; function fillTopo() { svgContainer...
3
1,152