title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
How to localise strings that pre-dominantly consist of variables – efficiently as dev and intuitively as translator
<p>I have hundreds of dynamic strings, i.e. one or more variables exist within these string that are dynamically generated in code. For example, this is a string with anything in &lt;&gt; representing a variable whose value is unknown until the code is executed:</p> <p>&lt;Mostly cloudy&gt; with to &lt;25Β°&gt; by &lt...
3
1,116
How to check if a value exists in every forth or fifth row in Pandas?
<p>Salary is usually paid monthly, but suppose I have weekly data:</p> <pre><code>id week salary 01 01 100 01 02 0 01 03 0 01 04 0 01 05 0 01 06 100 01 07 0 01 08 0 01 09 0 01 10 100 ⁝ ⁝ ⁝ 02 0...
3
1,064
Using one function pointer to two different member function from different classes
<p>I am training to encapsulate some codes and for this I created three classes, which are Vero, Pionner and Vehicle. The first two classes have the member variable cmd and the member function getcmd - in each classes theses members are slightly different. Then. we have the class Vehicle, which is a subclass of Vero an...
3
1,046
JLabel array setIcon() cause Null Pointer Exception
<p>I am writing a card game where I need to replace the existing cards with the cards selected by user. First, I have 14 cards displayed in a panel which is a JLabel array declared and initialized in my GUI class as:</p> <pre><code>public JLabel[] cardsLabel; //as class variable cardsLabel = new JLabel[14]; //inside...
3
2,041
How avoid man-in-the-middle attack when using Google Cloud Endpoints?
<p>I'm currently writing my first android app and decided to use google cloud endpoints. I have secure my backend endpoints methods by following this docs : <a href="https://cloud.google.com/appengine/docs/java/endpoints/auth" rel="nofollow">https://cloud.google.com/appengine/docs/java/endpoints/auth</a>, <a href="htt...
3
1,065
How can I create a constructor that allows me to pass unassigned properties to a method without error?
<p>In the code below I pass several parameters to a method "<strong><em>SendEmail()</em></strong>".</p> <p>The unassigned String property <strong><em>myEmail.ToAddress.Name</em></strong> passes without issue, but when Class property <strong><em>myEmail.Bcc.Email</em></strong> gets passed without a value I get the "Obj...
3
1,377
Rounded corners for custom AlertDialog
<p>I have been updating my apps forgot password functionality from Activity to simple custom Alert Dialog. How should I add rounded corners to Dialog window? I have already read multiple tutorials, but none seem to work in my case. I read from somewhere that I should use setBackgroundResources method somewhere, but I'm...
3
2,887
How to put data in Sub Item on ListView Android Studio
<p>I am following this tutorial on how to search the data in a database and after finishing it, I realized that there is a sub item in the list view. How can I use the sub item in the list view? Since in the upper part I can output the name, I would like to output their contact number on the sub item part. How can I do...
3
4,272
collatz conjecture and plotting (hep)
<p>Hi i am trying to plot multiple lines whilst excluding past numbers however,my code dosnt work. please help!β€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž β€Žβ€β€β€Ž ...
3
3,299
'onChange' is specified more than once, so this usage will be overwritten
<p>Im Learning ReactJs ... I want Design a Form (Like Section Exprience in Linkedin) with React Hook Form, Material Ui and TypeScript.</p> <p>I Faced a Error with this text: 'onChange' is specified more than once, so this usage will be overwritten.</p> <p>my function in onChange, doesn't work. I want to register with r...
3
2,066
Why button is overlapping with images in css?
<p>I am new to web devlopment and stuck on this issue for quite some time now. I wish to make a table(in 2nd col-6) with buttons at top and than changing content(scrollable cards) below it based on button click. I tried to implement it but my cards and buttons overlap how to tackle this and overlapping makes buttons no...
3
1,500
collectionView in React Native last cell taking 100 percentage width , How to stop this
<p>IN React Native I am trying to create a Grid cell. Problem is, when the cell is one then it takes 100 percentage width. I have needed all cell will be equal height width. if the cell is one or more, Not need to change the width. Here are my code and screenshot, see last cell width.</p> <pre><code> render() { ...
3
1,826
Retrofit Android miss some response from server(not all)
<p>when I try to send some request in a for loop, log of the server is ok(all request recieved and all responses sent) but in Android Studio Emulator i have only some those responses not all. here My request code</p> <pre><code> private void updateDatabase(JsonArray arrayJson) { final List&lt;JsonObject&gt; user_c...
3
2,694
How to add tool-tips working in div elements to li elements in my table?
<p>I'm using PHP, MySQL, jQuery, Smarty, etc. for my website. </p> <p>I want to implement the tool-tip functionality on one of my webpages. For it I have developed some sample jQuery code as a Proof of Concept. </p> <p>See <a href="http://jsfiddle.net/66nLy/9/" rel="nofollow"><strong>Proof of Concept Fiddle</strong><...
3
1,448
XML XPath not working
<p>I have the following 2 lines of code:</p> <pre><code>Dim node As XmlNode = xDoc.SelectSingleNode("//response/agentStatusList/agentStatus/protectableVolumes/protectableVolume/metrics/lastWriteTime") MsgBox(node.FirstChild.Value) </code></pre> <p>I'm looking to get the value for first instance of <code>lastWriteTime...
3
12,711
Fastlane screengrab on Android 30 emulator
<p>I'm trying to setup fastlane screengrab to auto generate screenshots for my app in different languages.</p> <p>I'm running an AVD with API 30 and it looks like creating the screenshot is working well, because i can finde the file inside the Device File Explorer. But i can't make it to work running <code>bundle exec ...
3
7,499
Overlap occurs when switching fragments with the Bottom Navigation Activity
<p>I created a new project with the Bottom Navigation Activity. When I try to switch fragments through the buttons on the bottom navigation bar, the other fragment always overlaps the fragment started by default. I set up four fragments to switch.</p> <p>IndexActivity.java</p> <pre><code>public class IndexActivity exte...
3
1,937
Masonry and JQuery
<p>I am trying to reload my masonry each time I add item to my with an ajax query. However, it seems the recalculation of the masonry (I mean the display of each bloc) is never finished.</p> <p>Each video bloc is hovering each other after load once I reexecute manually</p> <pre><code>$grid = $('#masonry').masonry({ ...
3
12,956
How can I create a row which sums up the value of each column without knowing the row or column amount?
<p>I have included my code below. I am creating a score keeping app and have created the basic score table where user can select player and round amount as well as add player names. I cant work out how to create a row to to sum every round for each player. I have tried several different ways but cant work it out. Any a...
3
1,537
ForEach over an array of protocol implementations?
<p>I'm starting to learn SwiftUI, and so I decided to write a simple password manager as a learning exercise. I've defined a <code>protocol</code> with the common attributes in my passwords:</p> <pre><code>protocol Secret: Codable { var id: String { get set } var name: String { get set } var createdDa...
3
1,416
Use of ConcurrentHashMap and AtomicLong appear to be causing memory leak but not sure why
<p><strong>Issue</strong>: My code has a memory leak, and I don't see it. </p> <p><strong>Desired Outcome</strong>: I was hoping that someone would look over my code and offer suggestions as to where the memory leak could be.</p> <p><strong>Extra Credit</strong>: If you can think of a better way to get a thread dump ...
3
1,411
Unable to install bcrypt on Digital Ocean node.js instance
<p>I'm trying to use bcrypt for hashing passwords in a MEAN stack application. I'm hosting this on and Ubuntu 14 instance on Digital ocean and though my applicaiton runs fine locally, I'm getting a 502 bad gateway error from the server and I've narrowed the cause down to bcrypt. </p> <p>I'm trying to install bcrypt on...
3
1,755
Spring autowire byName giving NullPointer exception
<p>I am trying to integrate Apache Shiro into my Spring Web MVC project but having problems with appropriate bean definition. Here is my <em>applicationContext.xml</em>:</p> <pre><code> &lt;?xml version='1.0' encoding='UTF-8' ?&gt; &lt;beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="h...
3
3,691
How to segregate the whole code..please check
<p>Hi iam using this code here <a href="http://jsfiddle.net/bryanjamesross/pyNJ9/" rel="nofollow">http://jsfiddle.net/bryanjamesross/pyNJ9/</a> I segregated the whole code in one page..means like the javascript under this tags</p> <pre><code>&lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt; &lt;scri...
3
1,131
Calcuation order value by considering dish and customer types
<p>I am trying to calculate the price of an order determined by the value of the dishes, type of dishes and the type of guest.</p> <p>Dish Class:</p> <pre><code>public class DishImplementation implements Dish { private String name; private double basePrice; private DishType type; public DishImplementa...
3
1,361
I cant use Google Translate API in my Android Studio
<p>I am trying to create a translation app that uses google translate api and I keep on having error in my program here. I really do not know what to do, in the error it states that &quot;Create method 'translate' in 'Translate'. I am not trying to create a method, but rather it should accept the language code to be tr...
3
2,412
Lua split string to table
<p>I'm looking for the most efficient way to split a Lua string into a table.</p> <p>I found two possible ways using <code>gmatch</code> or <code>gsub</code> and tried to make them as fast as possible.</p> <pre><code>function string:split1(sep) local sep = sep or &quot;,&quot; local result = {} local i = 1 ...
3
1,138
C# Custom Class(server user) in WCF service not working in client(but struct work)(problem)
<p>//I have wcf service is hosted by the console application. <a href="https://i.stack.imgur.com/C1cYc.png" rel="nofollow noreferrer">console app</a></p> <pre><code> using System.ServiceModel; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class Program { static void Main(str...
3
4,355
Spring mvc throwing exception- IllegalStateException: Neither BindingResult nor plain target object for bean , when using form tld in jsp page
<p>When i use plain html in jsp page , then app works fine , as i add form tag in jsp , it gives the exception , i have pasted my code and exception here , please help me out .i am not able able to resolve this and stuck from 3 days now. Whats going wrong here</p> <blockquote> <p>my dispatcher-servlet :</p> </blockq...
3
4,927
Navigation with Remote on EPG
<p>this is the method to scroll and navigate on my EPG, but i need to navigate with Remote on AndroidTV.</p> <p>I've read few things about setClickable, setFocusable but its working only on the main screen and i need to give inside to access each cells. </p> <p>So basically, i need to navigate between cells inside th...
3
1,424
Summarise data sacrificing the least resolution (creating groups of varying size based on a sum of lagged values)
<p>Given a table with separate measures for different time points, I would like to summarise the table, based on the sum of values in column <code>measurement</code> of the current and previous time points. I would like to do this for every group of time points, where the sum of current + previous <code>measurement</co...
3
1,116
hashCode with same elements but different values
<p>This is my Heap 12 File i keep on getting an error on my hashCode()... Please help, I am getting an assertion error when it should be even It looks similar to my peer's codes and the tutors cannot figure it out either. <a href="http://ieng6.ucsd.edu/~cs12s/Assignments/P4/README.html" rel="nofollow">http://ieng6.ucsd...
3
2,646
Why is Opera wrapping a list that appears inline in all other browsers?
<p>I've placed an inline list with a width of 1400px inside a div with a width of 800px. The intention is that the list should function as a scrolling pane of image thumbnails for quick image access.</p> <p>However, while the code works as expected in Chromium (CoolNovo2), IE8 and FF10, Opera wraps the list for no rea...
3
1,434
Value of $_GET Superglobal Not Being Passed To Processing Page
<p>Ultimately I am trying to delete an admin by id. I know the id of the admins are making it to the list admins page because I am printing the admin id in the table next to each admin username and seeing the id. But when the delete admin link is clicked, the delete admin page is not receiving the id from the GET supe...
3
4,472
Trouble Rescuing from Bunny Connection Net::ReadTimeout
<p>I have a ruby script that uses the Bunny Gem to connect to a rabbitmq instance. The script works for a while, but eventually will die because of a Net::ReadTimeout</p> <pre><code>E,Β [2017-08-13T08:48:09.671988Β #21351]Β ERRORΒ --Β #&lt;Bunny::Session:0x39eca20Β scrapes@104.196.154.25:5672,Β vhost=/,Β addresses=[104.196.15...
3
1,292
Using GroupLayout and FlowLayout together : OutPut is not appearing in Center
<p>I am trying to create a UI in Java swing with Layouts. I want radio buttons and 2 texts field and buttons. For radio buttons, I have used Flow layout and for text fields and button I am using Group layout. But output I am getting is scattered and the text fields are stretched. I want all these components at the cent...
3
2,132
How to display multiple active items in different breakpoints(xs,sm,md,lg) using bootstrap carousel?
<p>I am trying to display 10 images in a row in desktop and 5 images in a row in tablet and on click of next button i want to display remaining 5 images .In phone ,i want to display one image at time.</p> <p>But the problem is when i click on next button in tablet view,its doesnt work and not showing next set of im...
3
4,377
Fitnesse tests with Surefire works locally but fail on TeamCity with org.apache.maven.lifecycle.LifecycleExecutionException
<p>We have a TeamCity build configuration which uses Maven Surefire to run a Fitnesse test suite. After a set of changes we are getting the following exception when trying to run this configuration:</p> <pre><code>[15:45:44][Step 2/2] [INFO] Final Memory: 45M/378M [15:45:44][Step 2/2] [INFO] --------------------------...
3
2,426
X and Y Value not showing Google ColumnChart
<p>I am trying to create Google Charts, So far i am able to display chart without any issue, but i am not able to display percentage and value. If i hover then only i can see values and percentage.</p> <pre><code>My View : &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-lg-6&quot;&gt; &lt;div class=&quot...
3
2,265
How to run an Observable several times and concat its results correctly?
<p>I have this observable that produces JSON, really an API which returns text from different books. I need to call this observable several times and concatenate the results in the <em>correct order</em>. I have derived a playground code at stackblitz please use it to derive a solution answer, but I will accept inline ...
3
1,511
What statistics value corresponds to the ADO.net SqlCommand.CommandTimeout property?
<p>I am trying to understand this property, I have a function for running an sql query in ADO.net where I have set the SqlCommand.ConnectTimeout property to 500 seconds and the SqlCommand.CommandTimeout property to 1 second. Roughly the relevant portion looks like this.</p> <pre><code> var conn = dbConn as SqlCo...
3
1,168
How to extract key value pairs into dict if other tags are present?
<p>I am trying to extract Key/Value{1,2} pairs from a HTML table with python and pull them into a dictionary.</p> <p>The table elements look not always the same, which is the reason for my question. </p> <p>A minimal example:</p> <pre><code> &lt;div class="grabme"&gt; &lt;table&gt; &lt;tbody&gt; &lt...
3
2,017
HTML tables with different ID's are receiving sames value form AJAX callback
<p>This problem has driven me crazy!! Here is the situation, I have a callback data from my AJAX post method that I need to pass to different HTML table there will be 7 different tables. I have achieve to receive my data from the controller with the different objects.Earlier today i have made my first table which was w...
3
1,552
Errors in linking fortran code that imports a MAT-file
<p>I have to import a MAT-file in a fortran program. I followed the <a href="http://www-rohan.sdsu.edu/doc/matlab/techdoc/matlab_external/ch05ma11.html" rel="nofollow">example file</a> but I am facing some problems while linking. The compilation happens fine.</p> <p>Minimal code:</p> <pre><code>#include "fintrf.h" P...
3
1,403
Creating Mercurial subrepositories, while maintaining the history
<p>I am about to make some major changes to my Mercurial repositories. As I am going to be using a <a href="http://mercurial.selenic.com/wiki/FeaturesOfLastResort" rel="nofollow noreferrer">Feature of Last Resort</a>, I am looking for some advice and reassurance that I am not doing something stupid.</p> <h1>Where I Am...
3
1,110
401 Error on Upload with SWF Upload (.NET) only in Safari and Firefox
<p>I have a really unusual situation. So the site uses SWF Upload as the upload tool and it's filtered to only allow image uploads. Testing this in development and in production work fine. However in the staging environment, when I try to upload an image through Safari or Firefox, I get an alert that says 401. I know t...
3
1,133
How do I use FOP with Spring Boot without any Exceptions while starting the app?
<p>I have a problem while creating PDF from XML in Java with Apach FOP.</p> <p>I get a java.io.FileNotFoundException when Spring loads the context (by Start):</p> <pre><code> . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | |...
3
2,563
Dropdown Image not showing Properly In ExpandableListView
<p>I am new to Android. I have Created <code>ExpandableListView</code> in <code>NavigationView</code>. Inside that, I have a dropdown of images to show there is a subMenu. Lists are coming properly but When I click item to see the submenu, the dropdown image showing for all Items.it should show only for few items.</p> ...
3
3,136
get results as CSV in a loop
<p>I want to print the result set obtained from JDBC connection and want it to print each result set in aloop.So my code is below:</p> <pre><code>import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.PrintWriter; import java.sql.*; import java.util.*; public class zone ...
3
1,842
CSS Div Element with Inline-Block doesn't work
<p>When using two div elements and the inline-block the two div's do not stand beside one another. </p> <p>This is the code. (I configured some of the paragraphs and images to work better. I made sure the result was the same first though.)</p> <pre><code>&lt;head&gt; &lt;style&gt; #line { display:inli...
3
1,031
ReactJs: Displaying the values inside of a state object
<p>I am trying to display the values inside a state object:<br> I have tried two methods: </p> <blockquote> <p>Method 1:</p> </blockquote> <pre><code> &lt;tbody&gt; {Object.keys(this.state.operationSavInformation).map( function(key, index) { return ...
3
1,155
Make oval NavigationBar
<p>I want to <code>NavigationBar</code> with an increased height of 16-20, and an oval design at the bottom of the navigation bar, I have designed it on paint code and created a <code>UIBezierPath</code>, tried to add it on navigation bar but the result is not so good,</p> <p><strong>Paint code</strong></p> <pre><cod...
3
1,336
JS Canvas game using keypress event to modify speed when holding shift button
<p>I am learning how to make a game with the canvas via JavaScript, and I have the arrow keys set to move a block on the canvas. I want to add a modifier in which while holding shift, the block moves twice as fast, and I cannot get my function to work properly when the shift key is pressed. </p> <p>Any suggestions/hel...
3
1,543
Binding MVVMCrossCore - TableView NullReference exception
<p>Here the code for my ProductGroupTableViewcell, which must load from a NIB file:</p> <pre><code>//The cell must load from nib file public partial class ProductGroupTableViewCell : MvxTableViewCell { public static readonly UINib Nib = UINib.FromName ("ProductGroupTableViewCell", NSBundle.MainBundle); ...
3
4,147
Android map fragment with footer
<p>I want to design a screen with a Google map and a footer. With the footer, i seperated it in a different xml layout file and used '<strong>include</strong>' tag. The problem is the footer overlayed the map. My xml layout files were described bellow.</p> <p>map_viewer.xml</p> <pre><code>&lt;RelativeLayout and...
3
1,587
Spring AOP doesn't see the method
<p>In my project I have <strong>AspectService</strong> class, that I use to log all controller methods:</p> <pre><code>@Component @SLFJ @Aspect public class AspectService { @Pointcut(&quot;@annotation(com.aleksandr0412.bookstore.annotations.Audit) &amp;&amp; execution(public * *(..))&quot;) public void publicAspectA...
3
1,067
I got this error in swift storyboard keyNotFound(CodingKeys(stringValue: "topic", intValue: nil), Swift.DecodingError
<p>Error:</p> <blockquote> <p>keyNotFound(CodingKeys(stringValue: &quot;topic&quot;, intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: &quot;No value associated with key CodingKeys(stringValue: &quot;topic&quot;, intValue: nil) (&quot;topic&quot;).&quot;, underlyingError: nil))</p> </blockqu...
3
1,432
How does the APDL code run and model the Heat flux being input to it?
<p>'''</p> <pre><code>! Commands inserted into this file will be executed just prior to the ANSYS SOLVE command. ! These commands may supersede command settings set by Workbench. ! Active UNIT system in Workbench when this object was created: Metric (m, kg, N, s, V, A) ! NOTE: Any data that requires units (...
3
1,466
Formatting BIGQUERY output for SQL Server-bound CSV
<p>I am using Airflow to move a table of data from bigquery to SQL Server.</p> <p>The logical process is query the table, export to GCS, download local, and BCP into SQL Server.</p> <pre><code>Export_TABLE_to_GCS = BigQueryToCloudStorageOperator( task_id='Export_to_GCS', bigquery_conn_id='myconn1', source...
3
1,081
Remove duplicates between different array dimensions
<p>I have a table in the database with navbar menu items, this table has a relationship 1xN with itself, I'm retrieving the data (like: <code>\App\Menu::with(['childs'])-&gt;get()</code>) as:</p> <pre><code>array( array( 'id' =&gt; 1, 'id_parent' =&gt; NULL, 'url' =&gt; '/', 'childs...
3
1,824
AngularJS state change using ui-router causing flickering on UI
<p>I have a very simple two page app and when navigating from listing page to details page, there is a very distinct flicker caused due to hide/show of the UI components. Attached is a screenshot where you can see both UIs visible at the time of transition (at the top is the details UI and at the bottom is the list UI)...
3
1,984
Not taking value from json array in android?
<p>I am taking value from Json Array and passing it to GridView but its not taking value from json into gridview..i know something is missing in code...as a newbie i dont know know what is missing??</p> <p>here is a code:</p> <pre><code> private void getData() { //Showing a progress dialog while our app fetch...
3
2,672
Object picking with Ray casting in elm-webgl
<p>Demo almost (?) working example: <a href="https://ellie-app.com/4h9F8FNcRPya1/1" rel="nofollow noreferrer">https://ellie-app.com/4h9F8FNcRPya1/1</a><br> For demo: Click to draw ray, and rotate camera with left and right to see ray. (As the origin is from the camera, you can't see it from the position it is created)<...
3
1,198
can't erase drawn lines more than once with quartz 2d drawing app
<p>I'm making a draw app and what I do is to load an image from camera roll in a previous view controller, and send it to here, and load it in mainImage, then the app do some drawing in the photo. Now if I choose the eraser tool, I can erase what the app has drawn but it works only the first time I erase, because when ...
3
3,119
IOS charts with different X,Y values in iOS?
<p>I had an iPhone application in which i have to calculate the values for x axis and y axis with some intervals as xaxis array and Yaxis array I had fixed values.</p> <blockquote> <p>Then i need to draw 3 line graph with their on x values and Y values.then i need to plot scatter points on that graph itself with ...
3
1,674
Selenium, python: How to extract <head> and all contained the <script> tags on it
<p>Im am trying to extract a specific parameter from an html using Selenium, this html has varios scripts inside of it, I am having various issues with this.</p> <p>First of all, I want to extract the specific script that contains the pizza functions and form the second pizza function extract the parameter contained in...
3
1,644
rustc false positive warning about value never read?
<p>Following <a href="https://www.joshmcguigan.com/blog/build-your-own-shell-rust/" rel="nofollow noreferrer">this article</a> about writing a shell in Rust. Compiler outputs a warning about a variable never being read.</p> <pre><code>use std::io::stdin; use std::io::stdout; use std::io::Write; use std::process::Comman...
3
1,409
React: Trying to achieve a sequential fade-in effect with a Masonry layout but it's out of order
<p>I been trying to make a Masonry gallery with a sequential fade-in effect so that the pictures fade in one by one. And there is also a shuffle feature which will randomize the images and they fade in again after being shuffled.</p> <p>here is the demo and the code:</p> <p><a href="https://tuo1t.csb.app/" rel="nofol...
3
1,811
Failing to update certain records in the database
<p>Well, for a good while I've now been stuck trying to figure out why most of my records are updating successfully while a certain few aren't. I've checked the php variable name/sql row names, ajax request and I don't see anything wrong. So here I am, hoping that someone can take a look at my code and help me figure o...
3
9,847
How to style a option
<p>I am trying to make the <code>select</code> option wider but I cant get it to work. I have tried with <code>width</code> but it didn't work for me. I also couldn't find anything on the internet. I hope somebody can help me.</p> <p>This is my HTML:</p> <pre><code>&lt;form action="" method="post"&gt; &lt;legend&gt;N...
3
1,993
Emberjs not working when using url directly
<p>I'm new to EmberJs and was following <a href="https://github.com/ahawkins/hawkins.io/blob/7c8f0984060a19611010eeb3d2963099c7b1f2e1/blog/_posts/2013-03-29-master-detail-views-with-ember.md" rel="nofollow">this</a> post from Adam Hawkins. When I tried to run this in a browser it seems to work but not as expected. when...
3
2,538
JavaScript Suddenly not working - TypeError: document.hform.sSecureUser is undefined
<p>My Code:</p> <pre><code> &lt;?php include ($_SERVER['DOCUMENT_ROOT'].'/functions/functions.php');?&gt; &lt;div id="hasJavaScript"&gt; &lt;form name="signup"&gt; &lt;label&gt;Username&lt;/label&gt; &lt;input type="text" name="user_temp" size=32 maxlength=32&gt;&lt;span&gt;alphanumeric, no spaces&lt;...
3
1,817
Tables Not Aligning/Can't fix resolution
<p>This is the first site I've made, and I'm just struggling with a few things. Let me explain the issues.</p> <ol> <li><p>I have a screen with a resolution of 1366 X 768, which I have designed on, and it looks great there. However, when I move it over to my larger screen(2560X1080), several elements shift around and i...
3
3,805
Single option in scale_fill_stepsn changes color rendering in legend
<p>I'm using ggplot's scale_fill_stepsn to generate a map with a stepped scale. When I use the option n.breaks the colors specified render properly in the legend. n.breaks calculates the breaks based on the number of breaks specified. However, when I use the option to manually specify the breaks with the same numbe...
3
2,245
Matching and indexing through two dataframes and one matrix
<ol> <li>I have a dataframe <code>events</code> with xy-coords of unique points.</li> <li>I have a dataframe <code>all_nodes</code> with xy-coords of network nodes. All points of <code>events</code> are also in <code>all_nodes</code>, but not necessarily only once, and at different positions, i.e., the index (row id) o...
3
1,123
WSO2 ESB 7.1.0 Binary response is truncated to 375B
<p>I have problem with binary response in WSO2 ESB 7.1.0 - it looks like the answer is truncated to 375B (body part - binary data).</p> <p>This is fragment of my sequence - response build:</p> <pre><code>&lt;payloadFactory description=&quot;Build Payload Response&quot; media-type=&quot;xml&quot;&gt; &lt;format&gt; ...
3
1,556
unable to create a table in magento 2
<p>I'm trying to create a table using install schema but it throws the error given below Installing schema... SQLSTATE[HY000]: General error: 1005 Can't create table <code>magento</code>.<code>questionanswer</code> (errno: 150 "Foreign key constraint is incorrectly formed"), query was: CREATE TABLE IF NOT EXISTS <code...
3
2,632
iOS: How to implement search controller using objective c & How to call API at runtime i.e when I start typing in search controller?
<p>I want to implement search controller like gmail application,</p> <p><a href="https://i.stack.imgur.com/T9te6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T9te6.jpg" alt="enter image description here"></a></p> <p><strong>OR</strong> I want to implement like this example</p> <p><a href="https...
3
1,845
YoutubePlayer Initialize Fail
<p>I have found this code here [<a href="https://stackoverflow.com/questions/33807072/how-to-view-youtube-list-of-a-specific-playlist][1]">how to view youtube list of a specific playlist?</a></p> <p>I have added the YoutubeAndroidPlayerAPI.jar, but it doesn't play it says 'An Error occurred while initializing the YouT...
3
1,246
My div goes out from the website width?
<p><a href="https://i.stack.imgur.com/oWChq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oWChq.png" alt="as you can see in picture, my div goes of the range of my website, / Orange color, and i have given my site to me 100 % width, but every time i make a div, it goes of the range. "></a></p> <p>...
3
4,090
Spring @Autowired OK on JUnit, NPE on main class
<p>I have a open source project hosted at <a href="https://github.com/robertobado/open-restaurant-core" rel="nofollow">this</a> github. I am facing a weird scenario. I found many people who could make @Autowired Spring annotation work on their main classes but not on their JUnit test classes. My problem is the other wa...
3
2,440
How do I build and run coroutine basics examples?
<p>I'm just trying to follow the instructions on <a href="https://kotlinlang.org/docs/reference/coroutines/basics.html" rel="nofollow noreferrer">this page</a>, which state to run the following code:</p> <pre><code>import kotlinx.coroutines.* fun main() { GlobalScope.launch { // launch new coroutine in background...
3
1,241
Ansible always fails at 22nd line in requirements.yml file
<p>I run the following command: <code>ansible-galaxy install -r requirements.yml --force -vvv</code></p> <p>This is my requirements.yml file:</p> <pre><code>--- - src: andrewrothstein.hub - src: geerlingguy.adminer - src: geerlingguy.apache - src: geerlingguy.certbot - src: geerlingguy.composer - src: geerlingguy.doc...
3
1,381
OnItemClickListener does not work for ListView and TableLayout
<p>I just stuck here while programming an android app. </p> <p>I created a list of items based on adapter (Extends BaseAdapter), which shows items in TableLayout due to required positioning of items. Then, I add the onItemClickListener, but nothing happens...</p> <p>ActivityNews.xml:</p> <pre><code>&lt;RelativeLayou...
3
2,177
Not able to mock S3 `deleteObjects` using jest
<p>I am trying to cover unit test case <code>removeFiles</code> method. For AWS S3 i tried to mock <code>s3.deleteObjects</code> for one switch case Can anyone suggest me how to do that?</p> <p><strong>Method</strong></p> <pre><code>import S3 from 'aws-sdk/clients/s3'; container.register(S3, { useValue: new S3(AWS_OP...
3
1,157
Create JSON from form fields - jQuery
<p>What I am trying to do is to create a JSON from html form. Then to use this script (Formulator - <a href="https://github.com/walpolea/Formulator" rel="nofollow noreferrer">https://github.com/walpolea/Formulator</a>) to visualize it.</p> <p>I can use <code>serializeArray()</code> to export values and names to JSON. ...
3
3,776
Lag issue while scrolling vertically using nested adapter | IGListKit
<p>I'm using <strong>IGListKit</strong> to show images <strong>vertically</strong> and <strong>horizontally</strong>. That's why I used <strong>nested</strong> adapter approach to have horizontally scrolling collectionViews inside a vertically scrolling collectionView. But when having many images/items it starts to la...
3
1,441
ERROR 79-322 Expecting a ) / ERROR 388-185: Expecting an arithmetic operator / ERROR 200-322: The symbol is not recognized and will be ignored
<p>I am really frustrated. I just changed the code definition for certain comorbidities using the same format as the original NCI macro code. However, I got the following error. Could you please help me to identify the problem? I sincerely appreciate your time and help. (I attached the log and original code below for y...
3
5,855
Array Based List - error in dynamic array creation
<p>So I have an assignment from my computer science professor to create an array based list on a user defined data type.</p> <p>The error I'm getting is this:</p> <pre><code>In file included from Main.cpp:7:0: AddressBook.h: In constructor β€˜addressBookType::addressBookType(int)’: AddressBook.h:54:37: error: no matchi...
3
6,499
How can i bind my Angular App with Azure Active Directory?
<p>I have created an Angular App with just two components, Login and User Details component. Wanted to show the logged in user details only. Whenever I click on login button from application it redirects me to azure-client. Getting below redirection url on browser. Please suggest/recommend next steps?</p> <p><a href="...
3
1,026
Laravel 8 Summernote Jquery Errors
<p>I am trying to hook up summernote wysiwyg with Laravel 8, no matter what I do I am getting a constant jquery error. I have tried to use webpack for the scripts and added scripts directly to the page. The order to my scripts should be correct and I am executing the code after the scripts However, the error is a basic...
3
1,600
How to fix "IndexError" on python?
<p>I am a beginner who studies machine learning and tries to train neural networks. but there is a problem when I run my code. error saying " IndexError: index 114 outside the limit for 0 axis with size 93 ". how this can happen dan how to fix it? thank you in advance if you can help me</p> <p>this is the code that i ...
3
1,567
Getting variables "into" RxJava chain for use later
<p>I am using RxJava on Android to perform a login operation.</p> <p>I need to pass in a username, password and a boolean flag. The username and password and sent to a server for verification and once a response is returned I need to use the flag to determine what to do next.</p> <p>Since the login operation is async...
3
2,170
PHP - How can I retrieve data from a database and display it in a form and make changes to it and update it?
<p>I'm new to PHP and I've been trying out PHP for a while. I have been able to retrieve data from my database and viewed it in a form but I cant seem to update it when I try to change any of the values. My code is below. Ive been trying a few things so sorry for the bad code </p> <pre><code>&lt;form action="user.php"...
3
1,860
Set::extract Cakephp change format of the returned array
<p>I am new to cake so please be patient. I have this array </p> <pre><code>Array ( [0] =&gt; Array ( [CoursesLessons] =&gt; Array ( [id] =&gt; 108 [course_id] =&gt; 88 [lesson_id] =&gt; 6 [deleted] =&gt; ) [U...
3
1,266
Enabling and disabling form fields with JavaScript
<p>I am having trouble with getting the JavaScript to do what I need it to. I have a form with a country drop down list that has United States or Other; then I have a State field with a list of all 50 states in the US; then I have a text field for people to put what country they live in if they don't live in the Unite...
3
2,449
React Native - External javascript library not working in Webview
<p>I'm trying to use, in my React Native application, the Webview component to simulate the functionality of an HTML web screen. The javascript code snippet below works normally in a web application, the callback passed to PagSeguroDirectPayment.onSenderHashReady receives the senderHash at the appropriate time.</p> <pr...
3
2,018
Android: java.lang.NullPointerException at setText in method
<p>Getting NullPointerException at [dateView.setText(tempDate);]...any tips please? Bascially I need to get the changed date from Calendar and then update a TextView with this new date. Thanks.</p> <pre><code>CalendarView calendar; String tempDate; TextView dateView; @Override protected void onCreate(Bundle savedInst...
3
2,207
Ruby on Rails error
<p>I really need some help, I am not a Ruby expert and I am trying to get an existing ruby app to run on my Ubuntu server.</p> <p>I think I have done everything correctly but I keep on getting the following error:</p> <pre><code>Warning! PATH is not properly set up, $GEM_HOME is not set, usually this is caus...
3
1,403
Why must I include a where clause column in group by if I am not returning that column as a result?, how can I aggregate duplicate results?
<p>I have a query that uses a column in the where clause but does not return that column: </p> <pre><code>SELECT t1.upc, l1.description, l1.size, l2.Name AS SectionName, l1.section, l3.Name, l1.department, (SELECT SUM(QuantitySold) FROM ProductMovement JOIN ProductsMaster ON ProductsMaster.u...
3
1,264