title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
React Router is not acknowledging change to link pathname
<p>I have a react application and need to link to a component called, &quot;CourseSelectionContainer&quot;, and pass a “lessonId” parameter. The Link is setup in the &quot;CoursesSetupMenu&quot; component and I am using the Link format below.</p> <pre><code> &lt;Link to = { { pathname: `${activity.gradeLevelURL}` ...
3
1,116
Inserting/Deleting into UITableView with NSFetchedResultsController
<p>I'm relatively new to Swift development and I'm struggling with updating a UITableView with a new entity (CoreData) when using NSFetchedResultsController.</p> <p>I've searched around on the internet and followed various tutorials, but despite following them, when I convert it to my situation something is going amis...
3
1,084
How to calculate a rank in a property decorator in Django model when the rank is based on another property decorator?
<p>I am a new coder and very new to Django/Python. I am building an application that consolidates results for a rowing race. I have the following models in models.py.</p> <pre><code>class Crew(models.Model): name = models.CharField(max_length=50) id = models.IntegerField(primary_key=True) composite_code ...
3
3,233
How to update existing rows using Entity Framework?
<p>I have the following one to many table as below. I am experiencing issue when it comes to editing the existing rows with the following code. Please understand that I am pretty new to the ET relationship, so any detailed explanation would be greatly appreciated. Why it is returning null values?</p> <p><a href="https...
3
2,175
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxxxx.azurewebsites.net' is therefore not allowed access
<p>I am getting No 'Access-Control-Allow-Origin' header is present on the requested resource error when azure web application is requesting azure web API resource, but locally it is working fine, I am getting the above error after deployment when I am accessing the azure website.</p> <p>Below is the code:</p> <p><em>...
3
1,090
Typeerror for file deletion from database in django
<p>I'm trying to get together code that uploads and deletes photos from a django/bootstrap carousel, as well as a database. However, I can't seem to get past this error: </p> <pre><code>TypeError at /alzheimers/delete delete() takes exactly 2 arguments (1 given) </code></pre> <p>Can anyone help me? I'm kind of a n...
3
2,450
Why does OpenMP SLOW down my code proportional to number of threads
<p>I have a code I'm trying to parallelize, but I'm finding that the number of threads I use gives me an approximately 0.5x slow down. For instance, I use 4 threads and it runs twice as slow.</p> <p>-edit: sorry, had the wrong portion of the program in here before.</p> <pre><code> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...
3
1,383
JndiLookupFailureException when spring.batch.initializer.enabled=false
<p>Please see <a href="https://stackoverflow.com/questions/39284947/springboot-jndi-datasource-throws-java-lang-classnotfoundexception-org-apache-t">my other question </a> where I added data source information in JNDI of embedded tomcat. </p> <p>Now I wish to suppress database metadata initialization sql scripts so I ...
3
1,883
Mandrill appears to be breaking a MySQL Select
<p>I have stripped this right down, to try and find the source of this issue, but can not pin point it at all.</p> <p>This successfully echos each of the IDs</p> <pre><code>$result = mysqli_query($con,"SELECT id FROM users"); // Each user matching criteria while($row = mysqli_fetch_array($result)) { echo $row...
3
1,105
If statement that checks select query is being ignored
<p>I got the following code:</p> <pre><code>if(isset($_POST['vote'])){ if (!$wgUser-&gt;isLoggedIn()) { // User is not online, don't accept the vote, set error message $msg = 'Login required to vote.'; } if ($wgUser-&gt;isBlocked()) { // User is banned, don't accept...
3
1,148
bug in python code azure speech-cognitive-services
<p>Hello I have this code from <a href="https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/scenarios/python/console/captioning/" rel="nofollow noreferrer">https://github.com/Azure-Samples/cognitive-services-speech-sdk/tree/master/scenarios/python/console/captioning/</a></p> <p>This should print ...
3
6,455
MSSQL: GROUP BY and Count
<p>I have 3 tables that contain info about users. I would like to find how many of each type of item in each bucket a person has.</p> <p>I'm not grasping why this wouldn't work. Does table join order matter or something I not aware of?</p> <p>A sample of the tables:</p> <p>PERSONS</p> <div class="s-table-container"> <t...
3
1,029
No favicon.ico for a simple Spring - Maven Web Application
<p>I am learning Spring Java Framework, but have the problem with the favicon. I want to get ordinary favicon in the simplest way. I placed the <code>favicon.ico</code> file like this <code>src/main/resources/static/favicon.ico</code>, also tried in just <code>resources</code> folder.</p> <p>When I did a deployment to ...
3
1,754
How to prevent multiple entries of the same db? and sqlite3 now wont execute?
<pre><code>from tkinter import * import tkinter.messagebox as tm import sqlite3 import array import pygame from pygame import * import random pygame.init() f=pygame.font.SysFont(None,60) class Login: def __init__(self): Label1 = Label(root,text = "Username") Label2 = Label(root,text = "Password") ...
3
1,484
Unable to get the hang of Guice Method Interceptor (Null Pointer Exception during bindInterceptor)
<p>I have an interceptor to throttle requests to arbitrary APIs. I am trying to write an annotation that supports plugging in a TPS value so that any method can be rate limited. </p> <pre><code>import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; ...
3
2,231
Access in-app purchase on iOS device
<p>I am developing an iOS app that includes an in-app purchase that consists of a PNG file that is downloaded to the user's device.</p> <p>From what I can tell viewing log statements, the file is being dowloaded successfully to this directory:</p> <p><code>/var/mobile/Containers/Data/Application/ABC43D27-B79C-486C-AE...
3
1,261
Password to Confirm then Continue
<p><strong>EDIT :</strong> iam using Netbeans 8.0.1</p> <p>I've been days trying to search for a solution I tried jdialog and other things and couldn't help I hope you guys help me. I noticed that after the user set the passwords and I set the <code>fechadesalida = null</code>, in my Database MySQL it will save all t...
3
3,567
Details of compiling out-of-tree drivers for Linux
<p>I am trying to compile a WiFi driver for an oldish (3.18.29) kernel.</p> <p>Processor is an MT7628 (mips), board is a VoCore2.</p> <p>I have the kernel correctly configured and built in <code>/home/mcon/vocore/kernel</code>. As I am cross-compiling I also need to give a pointer to my cross-toolchain.</p> <pre><co...
3
1,074
Updating child prop breaks connection with parent state
<p>I'm using <code>react-google-maps</code> to display markers on a map. When I use the <code>SearchBox</code> function in the child component to set <code>props.locations</code> my map <code>Markers</code> appear. However, when I use a button in the parent component to update the state of the <code>locations</code> wi...
3
1,733
Unable to start my nodejs application
<p>Hi I am trying to start a node-js based application but it is giving me some mongodb based error and I can't seem to start my plugin.</p> <p>Error:</p> <pre><code>/home/jira-Plugins/cloud/test-plugin/node_modules/mongodb/lib/server.js:110 if(host.indexOf('\/') != -1) { ^ TypeError: Cannot call method '...
3
2,114
MockRestServiceServer.verify() is failed when the test did not mock all of API in the project
<p>My project have 2 APIs and I want to separate test for each API. So I am trying to use MockRestServiceServer to mock my API but MockRestServiceServer requires all of API that I have in my project have to mock even it does not need.</p> <p>My spring boot version:</p> <pre><code>&lt;parent&gt; &lt;groupId&gt;org.s...
3
6,026
My recursive function is not creating TextInputLayouts
<p>i am creating an app for someone. In that app, there is an activity where he can save his charge fees by entering the name and the amount.</p> <p><a href="https://i.stack.imgur.com/wrCjS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wrCjS.jpg" alt="enter image description here" /></a></p> <p>For...
3
8,499
what use spring multiple handler websocket session service
<p>I'm using two Websockethandles(Text, Binary) in the spring(4.3.16.RELEASE)</p> <p>The structure of this handler is as follows</p> <p>TextHandler(handleMessage) → service &gt; service2</p> <p>Binary(sendMessage)</p> <p>I want to send binary by calling a websocket session connected to binary handler from service 2 ope...
3
1,388
Flutter Method Chanel Error java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread
<p>Please Help Me.</p> <p>My Flutter Plugin Java can't return the list from native android please tell me to resolve it.</p> <p>I created a flutter plugin to connect to my watch. I created a method Chanel to execute android native SDK, but I am stuck because I can't send a value back to flutter in this function but oth...
3
1,391
What is wrong with my code? I think it may be the header() command
<p>When I run the below code, it clears the form and keeps me on the same page. I am wanting it to, on successful login, re-direct to home.php</p> <p>I think there is a problem with my</p> <pre><code>header() </code></pre> <p>I've tried various different things here and have also read that the Location must be a http a...
3
1,466
Getting error while calling Intent from fragment (User Login)
<p>I have getting error while calling intent from Fragment. Following are the log error of the same. Below are the pieces of code from the same activities. The application automatically gets off as i click on the Button for Login. Please help me out. Thank you in advance.</p> <p><strong>Log Report</strong> </p> <pr...
3
2,985
Socket.io double emits when executing express (v4) route
<p>I have a problem with double emits when executing express (v4) route.</p> <p>Lets for example run bellow code. Request (pipe) and mkdir will start immediately (race condition) and there will be error, about that the folder does not exist (mkdir can't create it fast enough, before request is started and start to pipe...
3
1,891
Android Dev Beginner here, trying to make button display Obama's face on ImageView
<h2>So the problem is... I can't seem to find out why the image wont show up when I click the button.</h2> <p>Also found this in the logcat (if it means anything):</p> <pre><code>01-04 12:05:43.032 21338-21345/? E/art: Failed sending reply to debugger: Broken pipe </code></pre> <p>Here is content_main.xml </p> <pre...
3
1,110
Project creation using GWT+maven(gwt-maven-plugin) compiles following error,normal GWT project creation(without maven)compiles good(luna,GWT sdk2.6)
<p>This is the exception while project compilation, The environment is ubuntu 14.01LTS, ECLIPSE LUNA, also eclipse Juno, gwt-eclipse-plugin, Java 1.7,</p> <p>But it compiles good when i was creating without maven project(New project - > google gwt)</p> <pre><code>Loading inherited module 'com.***.***.Application' ...
3
1,196
How to pass a variable from Express to Jade
<p>I am using IBM Bluemix to make a web service for a school project.</p> <p>I need to pass some variables from the .js to the .jade file, but I am having trouble in doing so.</p> <p>I know I have to declare an object which hold the variables and then use </p> <pre><code>#{Variable} </code></pre> <p>in the Jade Tem...
3
1,144
I have a weights variable and I need to create cross tabulations for a chord diagram
<p>I have a dataset with over 15,000 observations. I've dropped all variables but three (3). One is the individual's origin <code>or</code>, the other is the individual's destination <code>dest</code>, and the third is weight of that individual <code>wgt</code>.</p> <p>Origin and destination are categorical variables.<...
3
1,384
Dart sqflite clear db and insert
<p>I'm having trouble doing a very simple task, delete a DB or drop table and insert new values. Tried several things but I always end up with an error <code>SqfliteDatabaseException (DatabaseException(database_closed 1))</code>. This happens when <code>batchInsert</code> is called. I'd expect the new db connection to ...
3
1,338
javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in &lt;forEach&gt
<p>What I am want to do is to add a record to a table and then to display that newly added record in a jsp page.</p> <p>Here is what I tried:</p> <p>Controller:</p> <pre><code>@Controller public class UserController { @Autowired UserRepository userRepo; @RequestMapping(&quot;/adduser&quot;) ...
3
1,369
JQuery custombox CSS scrolling issues
<p>I'm using JQuery custombox and for some reason having trouble enabling scrolling/scrollbar on the mobile view of the page. </p> <p>The JqueryCustomBoxCSS shown below enables the custombox to be shown middle of the page on a PC but changing that JqueryCustomBox CSS to enable scrolling on the mobile view by changing...
3
1,167
How to set the slider max value and how to make two way binding for the slider?
<p>Following the example provided <a href="http://jsfiddle.net/PRg5h/1/" rel="nofollow noreferrer">here</a> , I have fit the slider as per the requirement</p> <h2>index.html</h2> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&...
3
1,685
MomentJS changing value when assigned to new variable
<p>When I try assigning a moment to a new variable it changes the value without me modifying it.</p> <p>I have tried everything from forcing the use of UTC and settings timezones. It just keeps changing the value.</p> <pre><code>@Component({ selector: 'app-appointment-create', templateUrl: './appointment-create.c...
3
1,698
fstream does not work well with Pin
<p>I've written a very simple Pin tool that only contains one instrumention function, that is, <code>instruction</code> below. It has no analysis function/callback. Its purpose is to only store the address of instructions that may be executed.</p> <pre><code>#include &lt;cstdint&gt; #include &lt;iostream&gt; #include ...
3
1,227
Is it a bad practice to create a template language that is not valid HTML nor PHP (Stacy CMS)?
<p>This is the template language of <a href="http://staceyapp.com/" rel="nofollow">Stacy</a> (a super light HTML/PHP CMS that doesn't use database)</p> <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Cont...
3
1,147
Cannot fix the cyrillic issue. htmlspecialchars/PHP/MySQL
<p>guys. When I type anything on cyrillic like: <code>Цветана Пиронкова</code>, and click submit (into the table), it is showing it (and saving it in the mysql table), like that: <code>&amp;amp;#1062;&amp;amp;#1074;&amp;amp;#1077;&amp;amp;#1090;&amp;amp;#1072;&amp;amp;#1085;&amp;amp;#1072; &amp;amp;#1055;&amp;amp;#1080...
3
2,115
Avoiding race conditions while sending to channel?
<p>go version go1.11.2 darwin/amd64</p> <p>I have the following code sample, created for SO demo purposes:</p> <pre><code>package main import ( ... ) type T struct { ctx context.Context ch1 chan string } func New(ctx context.Context) *T { t := &amp;T{ctx: ctx} go t.run(2) return t } func ...
3
1,557
Jquery mobile listview css on pageshow
<p>I try to load a json file and and put the content in a <strong>listview with flipswitches at the right side.</strong></p> <p>My HTML file with one example listview line, which is working fine (here without the first page and navbar to keep it clearly)</p> <pre><code>&lt;head&gt; &lt;meta name="viewport" content="w...
3
1,314
Returned array from ajax query looks ok but its organs do not appear properly
<p>I'm passing the coordinates of a map's viewport bounds to the server who returns all the coordinates in the db which are in this area, as a jsoned array.<br> When I'm not using ajax and I send hard coded numbers instead of parameters it's working fine: </p> <pre><code>&lt;script type="text/javascript"&gt; var coor...
3
1,178
Getting an error when trying to import a component into Jest
<p>I am using React+Redux/Redux-thunk and I am trying to implement jest/enzyme. I was able to successfully make a passing test for the root component. However I'm stuck at a point where I am trying to make a new test file for another component. No matter what component I try to test (connected or not connected) I am ge...
3
1,175
R: conditional join based on timestamp interval
<p>I have two data.frames: </p> <pre><code># limits ID Start_1 End_1 Start_2 End_2 1 A 2013-04-23 2013-06-09 2013-04-26 2017-02-06 2 B 2013-05-12 2013-08-08 2013-04-26 2017-02-06 3 C 2013-04-24 2013-04-26 2017-02-05 2017-02-08 </code></pre> <p>and</p> <pre><code># df (header shown) Timestam...
3
2,346
Generating horizontal notch plot in ggplot2
<p>I have a data with 3 different disease conditions and several outcomes of them. Diseases are in the first column and outcomes are named from second column on. Please see the data in the attachment. </p> <pre><code>Disease A B C D E F G H X 0.001527882 0.003459413 0.000648574 0.002127627 0.000847073 ...
3
2,317
Need some help with my XML Schema
<p>I'm using Qt C++ and am reading in an XML file for data. I want to ensure the XML file contains valid elements, so I began to write an XML Schema to validate against (Qt doesn't support validating against a DTD). The problem is, I'm not sure if my Schema itself is valid, and I can't seem to find an actual XSD valida...
3
1,346
Problems Implementing Search Bar with Parse Data
<p>I have searched the land of Google far and wide and I have found tutorials on this, but they are before IOS8. I have tried to piece this together as best as I can, but yet when the app runs, and I type words into the search bar, nothing returns, or it crashes. So here's how the view looks, and what each object mea...
3
2,962
PHP Prepared Statements fails to assign correct values
<p>What i'm trying to do is to insert multiple rows of key/value pairs. The Entries need to be Unique (PrimaryKeys to be specific).</p> <p>The statement is prepared with the count of values to insert:</p> <pre><code>$sql = "INSERT INTO `test_values` (`foreignID1`,`value`) VALUES"; for($ix=0;$ix&lt;count($values);$ix...
3
1,187
Login system using curl in php
<p>first of all i have done it using classes but actually i have to do it using curl. I want to send my email username and password to system and then taking this values for login check and redirect to table.php</p> <p>This is my service i tried: </p> <pre><code> case 'LOGIN': $uname = strip_tags($_POS...
3
1,103
load() in joomla to add part of form returns 404
<p>I am trying to use jQuery - AJAX load() Method to load part of registration form as a primitive protection against spam. I do not have experience with ajax and jquery in joomla and I suspect that is main problem here.</p> <p>I tried to modify existing default.php file of registration form with code from <a href="ht...
3
1,085
Alternating row colours in CSS with nested levels
<p>I'm looking for the best way to implement alternating row colours for a theoretically infinite number of nested levels. Below is an example of the markup i'm testing with and the jsFiddle <a href="http://jsfiddle.net/DFn82/" rel="nofollow noreferrer">http://jsfiddle.net/DFn82/</a></p> <p>With nth-child it's very di...
3
1,557
Table rowspan issue
<p>I have the following table. The header is at it looks and the content is generated within a PHP loop. It contains some taxes that a user has to pay and a tax can be paid in installments. For example, if the user has to pay a 100$ tax and he first pays 25$ and then 75$, there will be two rows in the table for that ta...
3
1,190
How To Parse XDocument (Ebay) Items (List) Using Visual Basic?
<pre><code>&lt;code&gt; For Each oXElement In oXDocument.Descendants("searchResult") sTitle = oXElement.Element("title").Value Next &lt;/code&gt; </code></pre> <p>I have also tried: </p> <pre><code>&lt;code&gt; For Each oXElement In oXDocument.Elements(searchResults) ...
3
2,029
Trouble with creating a list of protein fragment sequences that corresponds with a list of their weights
<p>This my code so far:</p> <pre><code>def weightcombinations(sequence, fragments): #Calculating sequence weight for seq_rec in sequence: seq_weight = 0.0 ...
3
1,625
Trying to dockerize Spring Boot and Laravel apps with Nginx
<p>Basically I do have an app where I have 2 backend projects.</p> <p>The first one is a Spring Boot project where I have some recommendations algorithms which I want Angular to execute.</p> <p>The second one is a Laravel project which contains some endpoints for the database (users, items, etc.)</p> <p>The way Angular...
3
1,639
How to find the halfway mark on a bezier curve?
<p>I am trying to calculate where points are on a bezier curve, and I'm using the standard formula for doing so. That is:</p> <pre><code>x = (1 - t) * (1 - t) * x1 + 2 * (1 - t) * t * cpX + t * t * x2; y = (1 - t) * (1 - t) * y1 + 2 * (1 - t) * t * cpY + t * t * y2; </code></pre> <p>However, I am pretty confused by the...
3
1,085
Doing a Move and an edit in one Commit with Git TFS API in C#?
<p>I am trying to edit one of our files and also move it to another place in our repo and so far have this setup:</p> <pre><code> GitRepository repo = new GitRepository(); repo.Id = new Guid(RepositoryId); repo.Url = "Working.url.goes.here.com"; repo.DefaultBranch = "heads/master"; ...
3
1,300
Compilation error while implementing extensible record
<p>I'm playing around with idris and was trying to implement extensible records. </p> <p>The main goal is to guarantee that the record's keys are unique.</p> <p>For example </p> <pre><code>("Year" := 1998) +: rnil </code></pre> <p>is legal</p> <pre><code>("Title" := "test") +: ("Year" := 1998) +: rnil </code></pre...
3
1,329
Error 500 on Ajax Call
<p>So I am developing a website where users can write articles. I'm coming across a problem. When a user writes a short article it works fine, but when a user writes or edits a longer article it gives me an Ajax 500 Error in the console. I'm not sure if the problem is happening because I'm working with <a href="https:/...
3
1,251
How to retrieve data from database through anchor tag and display in list in html using codeigniter
<p>anyone please help me to retrieve the db data and how to view it in html table.in the below code i was trying to fetch data from database using anchor tag. please tell me hoe should is write it in codeigniter.and i have to display that by clicking that on that anchor tag dynamically.</p> <p><strong>controller</stro...
3
1,642
Cannot play a video from internal storage with the native codec given by Google using adb
<p>I am using the native codec app given by Google: (<a href="https://github.com/googlesamples/android-ndk/tree/master/native-codec" rel="nofollow noreferrer">https://github.com/googlesamples/android-ndk/tree/master/native-codec</a>). The app has a folder (assets) which contains some video samples to play. My purpose i...
3
1,856
Node JS mysql looping query push to array
<p>I'm having some trouble with below code. Can someone please take a look and advise what's going on?</p> <pre><code>const name = [&quot;a&quot;, &quot;b&quot;, &quot;c&quot;] let query1 = ('SELECT name FROM table WHERE name = ? AND status IN (&quot;Pending&quot;,&quot;Active&quot;) limit 1') if (name instanceof ...
3
1,080
How to target the right ID in a modal window with Vue JS?
<p>I am currently learning to connect a Vue JS front with a basic API built on Node.js and Express on a TodoList project using Axios.</p> <p>My issue is the following:</p> <p>I have already made all the connections back to the front. I set up the different requests like to add, delete or display. My problem is that I...
3
1,771
How can I get clang-format to put the parameters of a brace-initialized construction on the same line?
<p>I'm running <code>clang-format</code>, with a <code>.clang-format</code> file which only specifies <code>Language: Cpp</code>, on this input (invalid C++, but that's unimportant for this):</p> <pre class="lang-cpp prettyprint-override"><code>const auto SOME_VARIABLE_NAME = {{&quot;key&quot;, { {&quot;key2&quot;, std...
3
1,331
Onclick Event Causes Random FC
<p>I have been working on a simple app to play a random sound byte on button click and pretty much have everything working correctly, but for some reason the app force closes randomly after a click event and I am unable to figure out what is causing the issue as I am still relatively new to android programming. Any as...
3
1,220
map left_join to a lot of matching tables by there names in a list
<p>How can I join tables when there are many each related to another?</p> <p>In the example I have two sets of tables. I try to add the totals from the tables from 2021 to the tables from 2022 as a new column with the name 2021. I have more than 100 of such table sets for 4 years back. Therefor I look for a possibility...
3
1,075
How to modify the function below to fetch all the elements based on the selected category?
<p>How to modify the function below to fetch all the elements based on the selected category? I simply want to fetch and show information without having to click on a button/ submission. Please guide how this can be achieved? I am open to suggestions.</p> <pre><code>&lt;head&gt; &lt;script src=&quot;https://ajax.google...
3
1,144
Error while trying to export a pandas dataframe as an excel file
<p>I'm trying to send a pandas dataframe to C directory as a excel file</p> <pre><code>df=pd.DataFrame([[1,3,5],[2,4,6]],index=['a1','a2'], columns=['b1','b2','b3']) df.to_excel('C:/df1.xlsx',sheet_name='data') </code></pre> <p>This code gives me an error message such as</p> <pre><code>PermissionError ...
3
1,253
SQL Server - Manipulating Values to Create a String
<p>I am trying to populate the column String_to_Use the way it displays on the 5th column from left to right, with values from the ID column, displaying the ranges with "-". Code below produces the last column string_to_use incorrectly. </p> <pre><code>select t.*, (case when Checking_id = -2 ...
3
1,149
Not Able to Change Transitions in Revolution Slider
<p>First I created my own slide show but could not set transitions, because showing only fade effect. Slider have data-kenburns effect and after include it in code other transition effects stop and i cat not see where is the problem with code. Please advise. Here is a code for slider: </p> <pre><code>if($homeSliders...
3
7,311
Paralax Materialize
<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>$(document).ready(function() { $('.parallax').parallax(); });</code></pre> <pre class="snippet-code-html lang-html prettyprint-ove...
3
1,802
php PDO for loop brakes code
<p>The following is part of my <code>PDO</code> script that gets <code>AJAX POST</code> requests from my webpage. So far I've got it working as intented, but now I would like to add a simple for-loop that iterates trough my <code>$results</code> array, and runs <code>strtotime</code> on a timestamp that's under the key...
3
3,513
Is creating MPI_Groups at runtime possible?
<p>I am trying to create MPI groups based on the number <em>k</em> so in each group we have equal number of processes and the last group takes whatever remains as well. So for example if we have 5 processes and <em>k = 2</em>, we are going to have group_1 = {0,1} and group_2 = {2,3,4} The problem is when I start to run...
3
1,389
Name header for context menu
<p>The title seems easier than first thought, but I have a context menu that is bound to a list of items. I want to be able to display a title for the context menu to access the list. Currently it just shows up as blank and then allows me to view the list, however I need it to display a title "Add Existing Properties"....
3
3,747
Jekyll Social Icon's Background Image
<p>Trying to orientate myself with Jekyll. I've downloaded the following theme <a href="http://incorporated.sendtoinc.com/" rel="nofollow">Mediator Theme</a>. I'm trying to adjust the social icons to show icons for things like Github and Linked in. When I pop over to the _icons.scss file in the _assets folder/styleshee...
3
2,053
clearAfterAdd Event not working
<p>Currently I have my formedit working using the [Enter key] to save records to the grid while keeping the form open. My understanding from the jqgrid wikiDoc was the clearAfterAdd will clear the fields on the modal form for the entry of the next record, however this event is not working. Can anyone shed some insight....
3
5,176
Best schema for a relational database with 2 parents and childs in mysql
<p>I have 2 ways to solve a relational problem, but I don't know which one is better or even if they're correct/would work.</p> <p>I have 3 tables, <code>category, subcategory and skill</code>. Category is the parent of subcategory, and subcategory is the parent of skill. Each category can have many subcategories, but ...
3
1,091
T-SQL: How to dynamize this Join-Function?
<p>i have following UDF in SQL-Server 2005. It's joining a Table and concatenates all rows with a separator to one scalar value. Because i need it for other tables too, i wondered how to make it dynamic so that it takes the FK, delimiter, relation-table-names and the destination-column-name. </p> <p>For example this d...
3
1,035
how to correct an overflow problem related to the structure pointer?
<p>I did not share all of my code since it's long, so I hope you can help me with the debugging I did with valgrind and it's overflow problem. I just wanted to retrieve data that I assigned in this pointed structure in another function.</p> <pre><code>struct paramAL{ int noVersion; int noligne; char tligne[...
3
7,002
Write to Cloud Storage every X messages from Pubsub
<p>I am new to Cloud Dataflow / Apache Beam, so the concept/programming is still hazy to me.</p> <p>What I want to do is that Dataflow listens to Pubsub and gets messages of this format in JSON:</p> <pre><code>{ "productId": "...", "productName": "..." } </code></pre> <p>And transform that to:</p> <pre><code>{ ...
3
1,217
arrays and sorting in C
<p>I am writing a program for a coursework , basically its idea is to track an element in an array before sorting it and find its index after sorting.It work for numbers up to around 9999 I think but when I enter a large input as 18383833 (on the first input) the mac OS terminal gives me this error: segmentation fault ...
3
1,788
Analysis of different Sets and optimizations. Best approach?
<p>For the last few days, I've tried to accomplish the following task regarding the analysis of a Set of Objects, and the solutions I've come up with rely heavily on Memory (obtaining OutOfMemory exceptions in some cases) or take an incredible long time to process. I now think is a good idea to post it here, as I'm out...
3
1,244
WCF post a byte[] to service?
<p>I'm trying to post a byte[] or FromBase64String string to my webservice. I keep getting the 404 error. I've changed the ["Content-type"] to "text/plain" and still get the error. However when I comment out the byteArray everything is fine. Does anyone have suggestions?</p> <p>Client:</p> <pre><code> Object _ob...
3
1,056
How to save MantToMany filed attribute in databse?
<p>I am making an api in django rest framework. I have created three models in Linkeddata, Individuals group, Event. I have another model Keybase which is another app and have ManyToMany relation with Individual, group and Event. Linked data is in ManyToMany Relation with Individual group and event. While adding data i...
3
4,752
Auto increment ID not being correclty assigned in SQL database by PHP
<p>I am confused. Something isn't working in my new CMS I am designing. I am following this tutorial but am changing some things (including using SQLite not MySQL) and adding more functionality. <a href="http://www.elated.com/articles/cms-in-an-afternoon-php-mysql/" rel="nofollow">http://www.elated.com/articles/cms-in...
3
2,661
Extra commands in raspberry pi u-boot using yocto
<p>I want to add a custom command in raspberry pi u-boot using yocto I was able add custom in using make by following the answers provided here <a href="https://stackoverflow.com/questions/60913034/implement-custom-u-boot-command">Implement custom u-boot command</a></p> <p>Now I want add it using yocto in raspberry pi...
3
2,836
Why is this lua dijkstra's algorithm not working in some cases?
<p>Im using Dijkstra algorythm code from this site: <a href="https://rosettacode.org/wiki/Dijkstra%27s_algorithm#Lua" rel="nofollow noreferrer">https://rosettacode.org/wiki/Dijkstra%27s_algorithm#Lua</a></p> <p>Unfortunately It doesnt work for current edges table.</p> <p>I have determined that the problem disappears ...
3
1,307
RESOLVED I can't get access to menu in my fragment?
<hr> <p><h1>UPD:</h1> This link helped me resolve this issue <a href="https://riptutorial.com/android/example/19832/searchview-in-toolbar-with-fragment" rel="nofollow noreferrer">https://riptutorial.com/android/example/19832/searchview-in-toolbar-with-fragment</a></p> <hr> <p>I want to get access to menu items throu...
3
4,442
Nested Reduce Functions / Recursion / Functional Programming / Tree Traversal
<p>I keep running into situations where I end up nesting very many <code>reduce</code> functions to drill down into an object. It's hard to pull out the logic because at the bottom I need access to the various keys traversed along the way. Essentially, I'm looking for a better way to achieve the following:</p> <pre cl...
3
1,996
how to link laravel presence channel with nodejs socket.io
<p>I'm trying to make a SPA with vuejs in frontend and laravel in backend and nodejs server to serve socket.io connections. I can broadcast events from laravel public and private channels to socket.io through redis and emit it to the client side. Previously When I made an app with laravel and vuejs that comes with lara...
3
1,593
JWT Authorization failed with Angular 7 + Spring Boot + h2 database
<p>This is the <strong>error</strong> I am getting in <strong>intelliJ</strong> when I call the Angular code from the frontend:</p> <pre><code>io.jsonwebtoken.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted. at io.jsonwebtoken.impl....
3
5,120
Grouping articles based on category on the same page in Gatsby JS
<p>I have a Gatsby JS website and I would like to display on the same page a list of articles grouped by 'families' (categories, basically). </p> <p>Here's what I did so far: </p> <pre><code>... {edges.map(({ node }) =&gt; { let families = [] _.each(edges, edge =&gt; { ...
3
1,369
Downloading files asynchronously from httpwebrequest throws timeout error
<p>I have the following method to download files from a web address using httpwebrequest. I am downloading 150 files contained in a list. This may take say 30 mins max. When I run my service my webrequests keep timeing out and I'm not sure why? I'm guessing it is creating 150 tasks and processing as many as it can but ...
3
1,188
Form binding back with List of multiple select options
<p>I'am trying to bind model in spring form multiple select using Select2 jquery library but selected options are always null, first i display form correctly with the available options, then user can update (add or remove) other choice which i fetch them remotely with an ajax request.</p> <p>i am using next dto to bind...
3
1,174
Main loop isn't working on single.php. Wordpress
<p>I'm new to Wordpress and struggling to get to grips with it. On single.php i have the main loop that is suposed to show the content of a specific post, and on the same page i also run an additional loop that iterates through the posts of specific category and displays them one by one in the sidebar. The problem is: ...
3
2,818
mySQL to GCP Cloud-storage slowness
<p>I made this code to copy all tables from mySQL to json files in GCP Cloud-Storage.</p> <pre><code>#!/usr/bin/env python3 #mysql to bigquery (all tables) import os import pandas as pd import pandas_gbq as pd_gbq import modin.pandas as pd_mod from sqlalchemy import create_engine from google.oauth2 import service_acc...
3
1,175
iOS in-app purchases randomly not being recognized, or never recognized to begin with
<p>Ok this one really has me stumped and if anyone can figure it out I will love you long time. I have several iOS apps and I'm getting a lot of reports from users that when they pay using apple's in-app payment system to purchase app upgrades, the apps are not recognizing their purchase, or sometimes it recognizes it ...
3
3,135
ruby: cannot find sinatra
<p>I am trying to use an app (redmon: <a href="https://github.com/steelThread/redmon" rel="nofollow noreferrer">https://github.com/steelThread/redmon</a>) packaged in a ruby gem Could you please help me getting it up and running ?</p> <p>I have installed redmon like this:</p> <pre><code>tasks: - name: "Install...
3
1,280
Simple Client Server program
<p>I making an elementary project based on TCP/IP where server listens to the client and then provides a capital sentence of the incoming data.</p> <p>Server.java:</p> <pre><code>import java.io.*; import java.net.*; public class Server { public static void main(String[] args) throws Exception { Serv...
3
1,273
Core-Data : Data is not been saved up
<p>while following the ebook of <a href="http://timroadley.com/" rel="nofollow">http://timroadley.com/</a> i am inserting. but when i check in sqlite their is no data present in it.also i have used -com.apple.CoreData.SQLDebug to debug but no query is being shown.<a href="https://drive.google.com/file/d/0B5T2z28ShqrFWl...
3
2,385