title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Binding source parameter inference in ASP.NET core
<p>I'm currently upgrading a project from <a href="https://www.nuget.org/packages/Microsoft.AspNet.WebApi/5.2.6" rel="nofollow noreferrer">ASP.NET WebAPI 5.2.6</a> (OWIN) to <a href="https://www.nuget.org/packages/Microsoft.AspNetCore.Mvc.Core/2.1.1" rel="nofollow noreferrer">ASP.NET Core 2.1.1</a> (Kestrel).</p> <p>O...
2
1,284
Login using API in Ionic 6
<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>## login.page.ts ## import { Component, OnInit } from '@angular/core'; import { AuthService } from 'src/services/auth/auth.service'...
2
1,447
External sorting text lines in a huge file lexicographically using C++
<p>We have 200Gb file filled with text lines divided by "\n". Our server has Linux on board, gcc, 8GB RAM and unlimited hard disk space. The requirement is to implement in C++ the most efficient way to lexicographically sort lines of this file from our point of view. </p> <p>I have done the external sorting of text li...
2
2,718
ActiveRecord::StatementInvalid in AuthorsController#create
<p>I am creating a Rails Blog and i populated the database with <strong><code>test samples</code></strong> and now when i run <code>db:reset</code> and <code>db:migrate</code>, tables are created in Database but shows up the following error while creating a new Article or Author.</p> <pre><code>Mysql2::Error: Field '...
2
2,258
Why are the Delphi zlib and zip libraries so slow under 64 bit?
<p>Whilst benchmarking a real-world application I came across a surprising performance characteristic relating to the zlib and zip libraries that ship with Delphi. </p> <p>My real-world application exports .xlsx files. This file format is a collection of XML files wrapped in a ZIP container file. The .xlsx export code...
2
1,060
Cannot get @Transactional and Hibernate 4 to work together
<p>I'm trying to get Hibernate 4 and Spring Transactions to play together. At this point, I'm just trying to get a Hibernate setup that works.</p> <p>Here's the method called. When I call it, I get </p> <pre><code>"org.hibernate.HibernateException: createQuery is not valid without active transaction" @Autowired ...
2
1,331
WordPress 4.7.2 update on multisite causes wp-admin redirect loop
<p>I have a website running multisite using a subdirectory setup. I have just tried updating my site to 4.7.2 and the update goes through and no errors happen during the installation, but then after the install is finished I am redirected to /wp-admin/network/about.php?updated which returns a 404 page. So then I try to...
2
1,929
Generate Image as byte[] in WinRT with SharpDX
<p>I'm trying to generate a simple image and display it in WinRT/XAML. For that I want the byte[] of an image drawn with SharpDX. My Approach so far seems fine but the resulting buffer is empty.</p> <p>I tried CopyPixels as well but it also only produced zeros.</p> <p>Can somebody point me in the right direction?</p>...
2
1,089
Database not being found... iOS/SQLite
<p>I working on an app that takes input from a text field and puts it into a string. I have a table with a field in it that I want to check the value of the string from the input against the value in the field in the database. I'm new to iOS and fairly new to SQLite.</p> <p>Code:</p> <pre><code>-(IBAction)setInput:(i...
2
1,206
Opening Outlook new email windows using jQuery using loop
<p>I have a list of records on a webpage (say html table).</p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;th&gt;checkbox&lt;/th&gt; &lt;th&gt;id&lt;/th&gt; &lt;th&gt;name&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;input type="checkbox" name="email[]"&gt;1&lt;/td&gt; &lt;td&gt;1&lt...
2
1,295
Web Scraping a tableauViz into an R dataframe
<p>I have spent a lot of time searching for an answer to this, but have not found anything yet. What I am trying to accomplish is to scrape Tableau table information that is contained in a tableauViz element and propagate it into an R dataframe. In my first attempt, using RStudio, I employed the following code and trie...
2
1,533
memcpy() segmentation fault debugging exercise on PROT_READ in mmap()
<p>I have generated SIGSEGV in my code intentionally to learn to debug it under various utilities like <em>catchsegv</em>, <em>gdb</em>, <em>valgrind</em> &amp; <em>pmap</em>. I intentionally used memcpy() on mmap'ed file which is having flag of PROT_READ set by mprotect(). Now when I am debugging it under gdb I am not...
2
2,649
Validation in table control
<p>Currently I'm doing a web form and added some <code>textbox</code> for users to insert into the database. It is working alright already, the validation seems to work successfully without any exception or errors. But I need to align the <code>textbox</code> to make it properly displayed on the browser (Mozilla FireFo...
2
2,409
How to get a button press to ease in and ease out in CSS3?
<p>I'm trying to get my nav-bar header logo to ease in and out on click/release.</p> <p>Currently, when you click the logo, the image eases correctly but when you release it snaps back and doesn't ease back into the normal size.</p> <p>What am I doing wrong with the CSS3?</p> <p><div class="snippet" data-lang="js" d...
2
1,099
Why write.csv and read.csv are not consistent?
<p>The problem is simple, consider the following example:</p> <pre><code>m &lt;- head(iris) write.csv(m, file = 'm.csv') m1 &lt;- read.csv('m.csv') </code></pre> <p>The result of this is that <code>m1</code> is different from the original object <code>m</code> in that it has a new first column named "X". If I really ...
2
1,101
Application fails to start once onClickListener is set
<p>Being new to android development I'm expecting few hiccups there and now, but this one got me scratching my head.</p> <p>I started out by creating few buttons in fragment_main.xml file (I'm working in Android Studio and using Genymotion as my Emulator)</p> <p>The reason why I mentioned this is because I use activi...
2
1,489
Verify Menu Buttons in Selenium
<p>I am working on script where navigating to Menu and clicking on menu button and it will navigate to specific page, again verifying if page title is as expected, then clicking on second menu button and repeating same process for all menu buttons. </p> <p>Here is html code </p> <pre><code>&lt;md-menu-content width="...
2
1,465
Disassociated exception in Akka.Remoting
<p>Using Akka.net I am trying to implement simple scenario. I have created 2 servers and 1 client, where Servers receives the messages sent from client and processes it.</p> <p>Setup works fine sometimes and sometimes it gives following error, I am not able to figure out the cause:</p> <p>**</p> <pre><code>No respo...
2
1,676
refresh page after switching tab
<p>I've got some tabs with data. How to refresh page when I switch tab? My tabs on the page looks like this</p> <pre><code>&lt;form&gt; &lt;ul id="dateTab" class="nav nav-tabs"&gt; &lt;c:choose&gt; &lt;c:when test="${activeTab eq 1}"&gt; &lt;li id="yd" class="active"&gt; &lt;a ...
2
1,057
EF6 CodeFirst Ubercontext DB Creation with use of multipe DBContext
<p>I have an issue with Entity Framework 6. I try to create my huge DB (CodeFirst) (50+ tables) with a single "ubercontext" and then work with different dbcontext for different concerns.</p> <p>This UberContext contains:</p> <pre><code> public class UberDbContext :DBContent { Database.SetInitializer&lt...
2
1,130
IE6 Absolute positioning
<p>There is structure. ad is positioned relative. And the all other divs in div.ad positioned absolute.</p> <p>top-left, bottom-left, top-right, bottom-right styles looking as it should. But "inside", "left", "right", "top", and "bottom" styles not working. <br/> left, right dont have specific heights and top, bottom ...
2
1,094
NSRunLoop is consuming a lot of cpu and memory
<p>I have a infinite loop that drives my worker thread.</p> <pre><code>-(void) myThread { NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init]; while(![myThread isCancelled]) { [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:600]]; } [pool release]; } </...
2
4,996
Django: OperationalError: no such column: User_profile.user_id
<p>I am a beginner working on my first "independent" project without tutorial guidance. I have been working on a two password confirmation form for my registration page, without utilizing the django.contrib.auth.forms UserCreationForm. I have my Profile model with one attribute of 'user' which is a OneToOneField with t...
2
3,018
Spring/REST Application with HOT Deployment: Groovy script does not load dynamically from applicationContext.xml on tomcat startup at runtime
<p>I am in the process of converting an already exisiting Java Web application into a RESTful web application using Spring MVC and Groovy. One of the main features I wanted to achieve was HOT DEPLOYMENT. I chose groovy because I did not want to make changes to the already implemented Business logic(handlers) and also i...
2
2,743
Failed to download yiisoft/yii2-composer from dist:
<p>I am facing an issue now while composer install/update.It says </p> <pre><code>Failed to download yiisoft/yii2-composer from source: Failed to clone https://github.com/yiisoft/yii2-composer.git via https, ssh protocols, aborting. </code></pre> <p>I am using <code>XAMPP</code> and cloned my repo from bitbucket ...
2
1,773
How to convert a Java Enum using Sharpen
<p>I am trying to convert the unbound id ldap java sdk source code to c# using the <a href="http://community.versant.com/Blogs/db4o/tabid/197/entryid/95/Default.aspx" rel="nofollow">sharpen converter</a> from versant. However, I am getting an exception related to a java enum class that has several constructors and seem...
2
3,988
How to run (nested) for loops simultaneously over multiple elements of an array?
<p>I'm a total beginner at Python and am currently running this nested for loop webscraping program to scrape for several Excel files for thousands of observations in my dataset. However, my code runs so slow in that I need to speed up this process so I can do this for 5-20 observations AT ONCE. People have suggested t...
3
5,279
How to Loop thru images on a Rails Table
<p>I am attempting to loop thru images for a game in a full rails application. I have a table set up with information about each game, however when I attempt to do images I can only get one image to show on all the games instead of just iterating over each image in my image file to show the correct image against the c...
3
1,179
MS Access Continuous Form Not Updating
<p>So I'm fairly new to Ms Access and VBA. I'm trying to create an attendance calendar template where </p> <ul> <li>I calculate an attendance code based on an employee's attendance</li> <li>present that code onto a continuous form, as the employee number is fairly large</li> </ul> <p>I have gotten all the necessary q...
3
1,497
UI blocked when using await to run a time consuming task
<p>I want to build a folder cleaner program. It is expected to report deleted files to a <code>TextBox</code> control at real-time. So I use <code>await Task.Run(() =&gt; CleanFolder(folderPath, progress))</code> function in my button click event. But the UI blocked when running. After a while when the <code>CheanFold...
3
1,250
New to CSS and coding. Organizing radio buttons and divs for a beginner gallery
<p>So the issue I can't seem to solve is how to move the obscured divs under the radio+label buttons.</p> <p><a href="https://pastebin.com/ya4FerSF" rel="nofollow noreferrer" title="My HTML">My Html</a></p> <p><a href="https://pastebin.com/yErYZa0w" rel="nofollow noreferrer" title="My CSS">My CSS</a> <div class="snip...
3
2,008
How to make color coded chats between client and server using JTextPane?
<p>I have a simple client-server chat system that I want to colour code so that messages from the client and messages fom the server get displayed in different colors. I have the following:</p> <pre><code> try { String messageout=""; messageout=jTextField1.getText(); jTextField1...
3
1,135
Android group chat display only empty listview without old messages just new messages when user join group
<p>ISo i have group chat in my app. I have "rooms" and button join "room", when user click join button all old messages appears on screen but I want to display only new ones, I'm using firebase list adapter for displaying...everything works fine but just don't know how to display empty list and only new messages, ty.</...
3
1,113
Sort custom container (implemented as one integer)
<p>I have a class which holds small numbers inside bigger integer variable. It works fine and fast and looks like this:</p> <pre><code>template class Container&lt;IntegerT&gt; static int bitsPerElement; IntegerT data; // [0000] [0000] [0000] [0000] up to 128bits(or maybe more) int size; </code></pre> <p>iterato...
3
1,607
I am trying to write out the results of a process to a text file, the issue I have is with the alignment of the columns
<p>I am sure someone somewhere has had this same issue but I have looked far and wide (including here on the stackoverflow) to find out how to properly align my columns in an output file. The following is the complete code I am using (for an event generator called Pythia 8 of which C++ is the primary language):</p> <p...
3
1,079
Upper Bound Error in nloptr
<p>I use <code>nloptr</code> to model a non linear optimization problem using <code>R.Net</code> . I pass initial values of the parameters to the Rscript where I define <code>lb</code> and <code>ub</code>to the variables. </p> <p><code>lb</code> for all the variables is 0 whereas <code>ub</code>is "1" for some &amp; "...
3
1,041
backgroung image of the body disappears after changing tab on firefox
<p>i have a site with a backgroung image with 1,32mb, that's located in css of the body, the problem is when i change tab in firefox and back again on my site the background disappears, and displays a white background... someone knows what's happing ?</p> <p>//html</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD...
3
1,601
JS - getElementById not working. Firefox throws: Syntax Error Chrome throws: Unexpected }
<p>Validating a form is not working. Below you see the code and error message. Don't think its a problem with JS, Chrome and Firefox point to the HTML part. See screenshot I made from Firefox' Firebug.</p> <p><img src="https://i.stack.imgur.com/qx5rN.png" alt="enter image description here"></p> <p>HTML:</p> <pre><co...
3
1,545
Collision using Tiled and LibGDX not working
<p>I have implemented a Player class which handles collision between the player and the objects in game. When I run it, he falls through the floor. I have followed a tutorial step by step but it is not working.</p> <p>Below I have added the Player class and GameScreen class.</p> <p>I have tried making rectangles around...
3
3,904
How would I reset a .click toggle function?
<p>I'm making a infographic slider and I have buttons when clicked that reveal text. When I go to the next slider and then hit the previous button and go back my toggles reveal the text and then bounce back to be invisible.</p> <p>Here is some of the code... I'm not sure if I should be resetting the css or Javascript d...
3
2,414
Application installed from Test flight crashes in real device, while working fine in Simulator Xamarin.Forms iOS 13.6
<p>I have recently update my OS to macOSCatalina 10.15.6 and Xcode to 11.6 version to support the latest Xamarin.iOS version 13.18.3.2 (Visual Studio Community).</p> <p>I have implemented LinkedIn Login in my app, when I click on the LinkedIn login option it calls the iOS renderer I have created and runs the below code...
3
1,736
PHP Javascript - cannot change selector onclick to Remove preview file
<p>I'm doing upload multiple files(use <code>&lt;input type="file" multiple/&gt;</code>) with preview image file and can remove the image preview and filedata successfully.</p> <p>but the problem is, I cannot change the selector for onclick to remove filedata. (If I change to other selector, it will only remove the p...
3
2,161
Receiving error: the connectionstring property has not been initialized
<p>I get this error:<br> the connectionstring property has not been initialized<br> when I execute a <code>SELECT</code> . This is the calling code:</p> <pre><code>Sub New() Dim con As New OleDbConnection If IO.File.Exists(Application.StartupPath &amp; "\lab2015.accdb") Then If My.Settings....
3
1,081
How i fix parallax and reveal overflow?
<p>I'm creating landing page where a parallax effect is needed to reveal animations. The problem occurs because the <code>overflow-x: hidden;</code> of the parallax wrapper makes prevents the reveal animations from appearing. When that overflow is off, the animations work perfectly, but the parallax stops working.</p> ...
3
2,095
Countdown Timer Unable to Work Properly In Chrome Extension Popup
<p>I'm building a popup chrome extension that works as a countdown timer, but it is not working as intended. When a user inputs a certain amount of minutes, for instance, seconds will immediately turn to 59 and begin decrementing, but minutes will remain static. The same happens with hours.</p> <p>This is my html code:...
3
3,424
How using 'tf.compat.v1.estimator.inputs.pandas_input_fn ' to feed a multihead tensorflow model for multitask learning?
<p>I'm trying to feed a tensorflow multihead model with a pandas dataframe.</p> <p>The input function is following :</p> <pre><code>feature_column_names = [...] input_fn_test_action = tf.compat.v1.estimator.inputs.pandas_input_fn( x=test_preflop_dataframe[feature_column_names], y=test_preflop_dataframe...
3
1,886
Next Previous with Android Listview and JSON data
<p>I want to develop an MCQ app with PHP rest API. How to show Questions in ListView one by one with Next and Previous button click.</p> <p>My JSON data is as follows which retrieved by PHP API from my live server</p> <pre><code>[{ "id": 1, "title": "Apple MacBook ", "shortdesc": "13.3 inch, Silver", ...
3
3,316
VBA Add row in table if new combination appears - partially solved
<p>I am a bit struggling with a way to variably adding lines to table according to capex category, partner number and period.</p> <p>Mu final table looks like (more sections, but for example), it is not a listobject item: <a href="https://i.stack.imgur.com/7wWTb.png" rel="nofollow noreferrer"><img src="https://i.stack....
3
2,807
Is there a function to export Treeview data into a PDF in Python?
<p>I have developed a program using Tkinter in Python which allows users to view the list of loaned items(Using the Search function to populate the Treeview)by a Company from the data stored in the Loan Table in MYSQL DB. The I would like to include a functionality(Print Button) which allows the user to export that di...
3
2,840
Issue while searching user into ldap
<p><strong>I'm using open LDAP running on one server and it is running on 10.0.26.X IP and my client is running on IP 10.0.25.X and firewall in between but port 389 is open and in listen state. So problem I'm facing issue with the client is that it closes the client server and after that I have to restart the client i...
3
1,997
How to update frame for more objects class Enemy in Array<Enemy>?
<p>I have an List that contains type Enemy, I populate this list using the below loop: </p> <pre><code>for(....) { arrayEnemy.add(new Enemy(new Rectangle(50.50f, 50.50f, Enemy.WIDTH, Enemy.HEIGHT), facesRight? 0.10f : -0.10f, 0.7f)); } </code></pre> <p>and cheking objects Enemy:</p> <pre><code> if(arrayEnemy.ge...
3
1,406
Android Camera2 JNI Image Processing - Surface not being unlocked from JNI?
<p>I've followed the Camera2Video example and also implemented some JNI code to do some image processing on the Surface belonging to the SurfaceTexture for the preview on the screen. This works fine but when I hit the record button it fails to record as I get a onConfigureFailed() from the CameraCaptureSession.StateCal...
3
1,875
Jetty: Hide port number in the URL
<p>I buy a domain name: <code>test.com</code>.</p> <p>Then I run jetty by doing:</p> <pre><code>/opt/jetty# nohup java -jar start.jar </code></pre> <p>When I go on my web site (<code>http://test.com</code>), It's not working, I need to add the port number like: <code>http://test.com:8080</code> and this is very dirt...
3
3,958
Find nearest Number when one of the fields is null but you need a Value
<p>I am working on a report that gives me a Monthly Rate for each Generator we have based on the GenAmps and GenVolts. If My Pricing table has the GenAmps # and GenVolt size then it will populate a Monthly Rate. There are cases as you can see below when there is a GenAmps # and GenVolts value that are not found in my P...
3
1,514
C program hanging while getting response from Flask server
<p>EDIT After some more reading, the broken pipe error just means that I terminated the connection. But the question remains, why is the <code>read</code> request hanging? </p> <p>I'm very new to this so please bear with me.</p> <p>I've got a tiny webapp in flask running on localhost which looks like this:</p> <pre>...
3
1,782
The action 'update' could not be found for JobsController + missing params
<p>I have been working on my startup for a week, after implementing the braintree (sandbox) I can not load <code>params</code> from the form <a href="http://0.0.0.0:3000/jobs/new" rel="nofollow noreferrer">http://0.0.0.0:3000/jobs/new</a>. In the show and index action nothing is simply displayed. When I try to edit the...
3
4,772
Contact Form Disappearing When Div is Set?
<p>Ok, so I've got a contact form:</p> <pre><code>&lt;?php if (isset($_POST['subtest'])) { $to = 'thomofawsome@gmail.com'; $name = $_POST['firstname']; $lastName = $_POST['lastname']; $email = $_POST['email']; $city = $_POST['city']; $state = $_POST['state']; ...
3
1,058
Need to run Java code in GWT
<p>I created a new google web application project (using eclipse) and noticed the code runs in the .server package. I have a slot machine game i wrote in java and am trying to implement it into GWT, but the syntax seems to be totally different. (for example, i noticed \n doesn't work)</p> <p>Here is the code i want t...
3
2,747
Viewflipper listener for when next view is actually displayed
<p>I have 2 ExpandableListViews and I'm using a ViewFlipper to switch between them using a fling action. My flipper layout looks something like this</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; ...
3
1,160
Vue - how to pass array in this case?
<p>This is my sample code. I wanted to create a small form builder.</p> <p>I will have many select fields. How can I pass an array into a loop? My code doesn't work, but I hope you know what effect I want to get.</p> <pre><code>&lt;template&gt; &lt;div&gt; &lt;div v-for=&quot;(input, index) in formBuilder&q...
3
1,278
Add geom_smooth to ggplot facets conditionally based on p-value
<p>I'm using ggplot to visualize many linear regressions and facet them by groups. I'd like geom_smooth() to show the trend line as one color if P &lt; 0.05, a different color if P &lt; 0.10, and not show it at all if P ≥ 0.10.</p> <p>I managed to do this using a loop to extract P-values from lm() for each regression, ...
3
1,040
How to create a sort of Context Template for different parents components in react native?
<p>I wanted to Internationalize my react native app only using redux, but for the sake of brevity I'm going to elude the part relative to redux since the whole app is working perfectly fine. for each screen component of the app, I create a context to wrap the screen component and pass down all the strings related to th...
3
1,282
Dynamically add a UserControl from ViewModel to View
<p>I have a View that is just a ListBox or ItemsControl (tried both) I'm trying to add multiple instances of a usercontrol to the ListBox from the ViewModel. I'm trying this :</p> <p>I have an ObservableCollection of the UserControl ViewModel in my Main ViewModel.</p> <pre><code>&lt;Controls:MetroWindow.Resources&gt;...
3
9,007
Why is my after_save callback stopping my ActiveRecord association from saving properly?
<p>When I comment out my <code>after_save</code> call back, my ActiveRecord associations work just fine. In Rails Console, you'd see:</p> <pre><code>&gt; @report = Report.create :name =&gt; "foo" =&gt; #&lt;Report id: 9, name: "foo", created_at: "2013-03-05 09:51:55", updated_at: "2013-03-05 09:51:55"&gt; &gt; @quest...
3
1,555
Code from JPanel form which was made in NetBeans does not work in Eclipse
<p>I made login panel in NetBeans(you know drag and drop). I copied code to Exlipse (because there I work) and I was shocked. The code is not working properly. I see only frame and label information(even not all only one). Should code made in NetBeans work in Eclipse?</p> <p>Here is my code:</p> <pre><code>package ja...
3
2,235
Overlaying text on youtube embed iframe [html and css]
<p>I'm working an existing Wordpress website to add youtube video display section. This would be a section with sub section containing a youtube iframe embed.</p> <p>Each sub section will contain a short clickable text that will partly overlay on the iframe section.</p> <p>To do this, Ive created a custom post type for...
3
2,223
pandas - remove duplicated rows in a MultiIndex DataFrame
<p>I need to remove duplicated rows with the same multi-index from a <code>df</code>.</p> <p>The multi-index are [latitude, longitude, AET_date].</p> <pre><code> FFDI_daily_max latitude longitude AET_date -39.200...
3
1,032
Public Transportation Webapp in DJANGO : models (many-to-many relationship) for transportation systems and routes
<p>This webapp would allow users to create alerts about controlers in public transportation in a big city. It would include mostly trains and buses.</p> <p>I'm quite stuck with how to create the model. I've already created the Alert that has a station attribute with a one-to-one relationship, and a line attribute also....
3
1,025
Get XML Nodes and SubNodes by an order Using PowerShell
<p>I am facing some challenges to get the nodes and sub-nodes by an order. Could you please answer?</p> <p>MY XML: </p> <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;sequence version="3.10"&gt; &lt;referenceList&gt; &lt;reference package="PSOO01434" /&gt; &l...
3
2,103
Unable to initialize bean cxf?
<p>currently i'm working on karaf prject, i have deployed 3 bundle module-data, module-service and module-jaxrs with Active status, then when i configured karaf feature to automaticaly deploy jar's the status of module-jaxrs became failure beacause of cxf. i have tried everything but always the same error.</p> <p>Th...
3
1,471
Change background-color of an element of the same class name, depending on the level in the DOM tree
<p>I have this basic HTML structure:</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;div class="section-container"&gt; &lt;div class="section-expander"&gt; &lt;div...
3
1,436
Yii2 tagging 2amigos is not saving tags to the table
<p>I am trying to implement tagged articles for my new small CMS written with yii2.</p> <p>This is what i have tried <a href="https://forum.yiiframework.com/t/how-to-create-tags-for-posts-in-yii2/123890" rel="nofollow noreferrer">https://forum.yiiframework.com/t/how-to-create-tags-for-posts-in-yii2/123890</a></p> <p>...
3
3,987
HTML5 / kineticJS "getIntersection" function implementation (Canvas Game)
<p>I am trying to recreate the game <a href="http://www.sinuousgame.com/" rel="nofollow">http://www.sinuousgame.com/</a> and started studying <strong>html5 canvas</strong> and <strong>kineticJS</strong>.</p> <p>As you can see, My <strong>Fiddle</strong>: <a href="http://jsfiddle.net/p9fnq/5/" rel="nofollow">http://jsf...
3
1,760
php mail() sending mail before form is filled
<p>I have a self posting document that has form fields to fill out with php processing on the same document. My problem is that upon opening the page (website), the message "Message Sent!" shows up immediately before the form can be filled out with information. The php mail() function is linked to my email account so I...
3
4,186
Cannot find H2 Db Syntax for USING INDEX ENABLE equivalent in Oracle
<p>Running Spring Boot App with Liquibase changeset</p> <p>My main code uses Oracle to run the sql query but my integration test cases are using H2 database to run the same query.</p> <p>below is my <strong>db/changelog/db.changelog-quartz.sql</strong> file.</p> <pre><code>--liquibase formatted sql --changeset quartz:...
3
1,392
Error in if: argument is of length zero: encountered in a shiny app after trying to refer to an reactive element twice
<p>I'm completely new to R and shiny apps and couldn't find a solution for this specific problem: I tried to realize a shiny app that allows users to upload their own data file and do further analysis with the columns of the specific data file. Computing Cohen's D and the t-test works just fine. Only the effect size of...
3
1,773
How can i set a max-values to a css mask?
<p>i am using this code to implemente a svg mask in top of a video layer. It works great, but how can i set a <code>max</code> value to the <code>css-mask</code>, so i can control the maxium size of it?</p> <p>My Code looks like this at moment:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console...
3
1,116
AlpineJS loop inside loop to add table row
<p>I need help to solve this problem, i know AlpineJs must use something for &quot;fragments&quot;, its fine when i workin on div, but when i do loop table row, and have another row, it become a problem, because i cant use div for the fragment. is there any solution?</p> <p>here's my code</p> <pre><code>&lt;template x-...
3
1,424
CSS - how can I add a vertical scroll in html table
<p>I'm working on a JSP web Project. I have a table that can contains data more than my table height can handle. So I want to add a vertical scroll on my table. How can I do this? I've tried other solution I saw in here but sadly it didn't work out good on me. </p> <p>What I want is the header should stay/still visibl...
3
1,145
Session Data overwriting in a two page form PHP
<p>To register a user, I am using a form that consists of two pages. the first form(addUser.php) sends the data over post to the second form(plz.php). In the second form I save the post values from the previous page in session variables, for example </p> <pre><code> $_SESSION['phone1'] = $_POST['telnr']; </code></...
3
1,313
How to sumarize "sickness time" to the end of order - mysql
<p>In that case i have "sickness" table:</p> <pre><code>+--------+---------+---------+-------------+---------+-------------------------------+---------------+ | Id_SICK|ID_WORKER| FNAME | LNAME | BEGIN_DATE | END_DATE | SICKNESS_TIME | +--------+---------+---------+---------+------------+----...
3
2,178
Docker image size not matching the announced size on https://github.com/docker-library/repo-info
<p>I'm pulling images from the main default docker registry without adding anything to them, so I would expect them to have the exact size which is annouced on : <a href="https://github.com/docker-library/repo-info" rel="nofollow noreferrer">https://github.com/docker-library/repo-info</a>, but it's not the case.</p> <...
3
1,980
Duplicates using Node/Express/Socket.IO/Angular
<p>My client is dropping its first socket.io message and seeing duplicates for other messages. The server sends one message at a time but the client misses the first message, receives the second message once, the third message twice and the fourth three times, etc.. On the server side I have Node server using Expres...
3
2,163
Is there anyway to make this work without explicit casting? (trying a Generic Parent-Child relationship)
<p><strong>The Interfaces:</strong></p> <pre><code>package sandBox.ps.generics.compositePattern; import java.util.Collection; interface AnimalInterface { String getID(); /* * getAnimals can be: * 1. AnimalInterface * 2. Anything that implements/extends AnimalInterface (i.e. AnimalInterface or...
3
1,276
When called opendatabase in angular factory, it thows security_err dom exception 18 error
<p>I am developing Angularjs app in vs2015. I want to open database in websql through factory function. While testing app in ripple emulator it works perfectly(also works perfectly in android OS version 4.4 and higher) but while testing app in android OS version 4.2 and lower it throws <code>security_err dom exception ...
3
1,116
NotificationManager Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object reference
<p>In dev environment I have no problem with creating notification channel. But in qa/prod release creating notification channel causes following exception: </p> <pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Context.getPackageName()' on a null object refe...
3
2,410
Haskell: Reading from FS to "dynamically" create widgets in taffybar
<p>I'm trying to use taffybar as my status bar (uses Dyre framework so configuration is code). It has a widget that can show network interface statistics. In the default configuration this widget requires a <code>String</code> at compile time. I want it to create a widget per (non-loopback) interface dynamically instea...
3
1,926
Using Sibling Combinator to create tabs for dynamic content
<p>I'm basing my tab implementation on the following: </p> <p><a href="https://codepen.io/oknoblich/pen/tfjFl" rel="nofollow noreferrer">https://codepen.io/oknoblich/pen/tfjFl</a></p> <p>Within this pen, we have the following structure: </p> <pre><code> &lt;input id="tab1" type="radio" name="tabs" checked&gt; &lt...
3
1,328
R Shiny + Future + Plumber
<h2>Preamble</h2> <p>Inspired by the presentation by Barret Schloerke at studio::global(2021) (I will add the link as soon as it becomes available), I tried to implement an app to see the differences between using <code>{future</code>}, <code>{plumber}</code>, both or none into a Shiny app running a sequence of fast-sl...
3
1,047
simple_fields_for was remove once the validation occur
<p>I need some help.</p> <p><code>&quot;= form.association :lead&quot;</code> : the user can select a lead through select2 via ajax.</p> <p><code>.lead-form-inputs</code> : the user can create a lead and automatically set the lead_id of the property once it was submitted.</p> <p>I do have a select2 gem installed and ru...
3
2,001
How can I place an image inside an input?
<p>So I am trying to make an input field which is a search bar and I want to place a search icon on the left of the input field. I tried making this with setting the background-image property of the input field but it didn't work for me. I've already read some other questions like this on Stackoverflow but these soluti...
3
1,136
Replacing one specific item inside a 2dArray in numPy
<p>I'm trying to script a battleship game (i.e. where you say "B4" and the enemy says "HIT")</p> <p>Actually i'm trying to let the pc randomly pick the ship position. Everything is ok but now i need to change the value of the choosen box in "X" or something different.</p> <pre class="lang-py prettyprint-override"><co...
3
1,949
How to match and validate with the provided API in Ionic?
<p>I have created login function accordingly but the login function is not working. <strong>Whenever I enter the sample input (phoneNumber and password) it did not directing me to the HomePage.</strong> Details about API has been provided in the pictures below. Is there anything I am missing out? Please HELP me to solv...
3
2,225
Managing several classes in php
<p>Trying to get my head around classes and OOP</p> <p>I have the following situation and i define my classes as such</p> <pre><code>// Include database connection class require_once INCLUDE_PATH.'database.class.php'; $database = new Database; // include the functions helper class require_once INCLUDE_PATH.'function...
3
1,031
How to get data from post form with express.js server
<p>Problem: When the client sumbit form with post reqest to the server, the express server gets an empty body (req.body = {}).</p> <p>What I am trying to do: To get req.body.username and req.body.password on post reqest from the client (sending the form down below)</p> <p>Server.js (Main app file)</p> <pre><code>var ex...
3
1,742
Fixing if statement to stop movement
<p><strong>What I am trying to achieve</strong></p> <p>The racer-offset is so that the user can set how far a image can move in px. The offsetted manages how far it has offsetted. Speed-racer tells how fast the Image can move during scrolling. My problem is it doesnt stop. I can provide a fiddle, but lets try first to...
3
1,032
[symfony 4]Filter CollectionType
<p>I manage student enrollment with a student entity as well as an ActivityStudent entity. Students necessarily have a class. So for the inscription I made a CollectionType like This:</p> <p><em>RegistrationType.php</em></p> <pre><code>$builder -&gt;add('StudentsNonSubscribe', CollectionType::class, array( 'entry...
3
2,552
Unable to concatenate two IEnumerable lists
<p>I am creating a <code>WEB API</code>. I have two <code>IEnumerable</code> lists. And at the end I want to concatenate them. </p> <pre><code>IEnumerable result; IEnumerable prodDetails = new List&lt;tj_xhqd&gt;(); IEnumerable mainDetails= new List&lt;tj_xhqd&gt;(); int prodInterval, prodCount = 0; int mainInterval, ...
3
1,083
Error 1054 after start fetching on MySQL Workbench
<p>My query had 3 <code>UNION</code> working, and I need to add a fourth one.</p> <p>The query is:</p> <pre><code>SELECT SQL_CACHE posts.* FROM ( SELECT posts.id, posts.text, posts.image, posts.date, posts.status, posts.location as postLocation, posts.user AS user, users.name, use...
3
4,919
I'm trying to graphic with django using python but jump IndentationError: expected an indented block
<p>Looks like simple but I'm starting code and I don't know what to do or why this error happened.</p> <p>What I'm trying is to make an example graphic in django that's all not with success, all the information showed is confusing me.</p> <p>this is my views.py</p> <pre><code> from django.shortcuts import render import...
3
1,963