title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
What's wrong with named pipes used between 2 processes (no. 2)? | <p>So, let's start from beginning: 2 processes 1 pipe to communicate, right? No! because communication is blocking, one waits for another. We need results from the second process through a different channel. Though it seems redundant it is not.</p>
<p>Let's change it a bit: 2 processes 2 pipes, you can call one proces... | 3 | 1,147 |
How to submit django model forms via ajax, preventing reload/refresh on submit | <p>Problem: every time I click the login button, the page reloads and then goes to some funny URL appending 'undefined' in the URL - <a href="http://127.0.0.1:8000/accounts/userLogin/undefined" rel="nofollow noreferrer">http://127.0.0.1:8000/accounts/userLogin/undefined</a>. I would like if the form has errors, then th... | 3 | 5,595 |
SwingNode contents not resizing when the SwingNode's parent resizes | <p>EDIT:
I've left my original question as it was, below. If you wish to test the issue using the AnchorFX sourcecode and my code below, you should be able to recreate the problem. It happens in some other circumstances as well, and is similar to the issues in these two questions: <a href="https://stackoverflow.com/que... | 3 | 1,044 |
Access objects in array list | <p>I am trying to access objects an arraylist using javascript, the arraylist is:</p>
<pre><code>membersList:{
"kind":"admin#directory#users",
"users":[{"orgUnitPath":"/",
"isMailboxSetup":true,
"id":"1076823423424234",
"isAdmin":false,
"suspended":false,
"isDelegatedAdm... | 3 | 1,134 |
SQL error 1064. Statement works in mysqladmin but not in PHP script | <p>I have a PHP script installed on the admin side of our website that is supposed to allow us to run SQL queries. However, I'm not getting the same results as I am when running it through mysqladmin on our host company's OPS page.</p>
<p><strong>When I submit:</strong></p>
<pre><code>SELECT orders_id FROM `orders_s... | 3 | 2,872 |
How code an integration formula using Python | <p>I have an integration equations to calculate key rate and need to convert it into Python. </p>
<p><strong>The equation to calculate key rate is given by:</strong></p>
<p><a href="https://i.stack.imgur.com/HLBeP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HLBeP.png" alt="enter image descripti... | 3 | 1,085 |
Can't deploy webpack to gh-pages (react app) | <p>First time using webpack as well as deploying using gh-pages. I cloned a webpack project from a udemy course. Instructor doesn't get into how to actually use webpack. It's telling me that [etc.]/build doesn't exist. When I create a build folder, I get the same error.</p>
<p>package.json:</p>
<pre><code> "scripts"... | 3 | 2,137 |
Remove duplicate on the basis of attribute value | <p>I want to remove duplicate array from the response on the basis of the attribute value. If the <code>attribute_value</code> data match with other array attribute value then other should be removed. </p>
<p>logic is very simple. check duplicate attribute_value in each array and remove duplicate array and return
In r... | 3 | 1,548 |
Xpages: Load field values on page when a value changes - bound to a bean | <p>Please see clarification at the botom of this email.</p>
<p>I have an Xpage where the user will choose an employee, after which a series of employee dependent fields should populate. I have done this before when my source was a document, but now I am using Objects. My object is bound to a java bean. </p>
<p><a hre... | 3 | 4,345 |
Why label of file size on filepond show 1kb every file when displaying edit form? | <p>I have a module that has add and edit form. In the add and edit form, the user can upload files. When edit, it will show uploaded files</p>
<p>In add form, it works. When user upload, file size of file displays file size correctly</p>
<p>But my problem is when edit form, each file displays 1kb file size on all files... | 3 | 4,085 |
lapply and data.frame in R | <p>I am attempting to use R to accept as many user input files as required and to take those files and make one histogram per file of the values stored in the 14th column. I have gotten this far:</p>
<pre><code>library("tcltk")
library("grid")
File.names<-(tk_choose.files(default="", caption="Choose your files", mu... | 3 | 3,133 |
Can't get Secret Santa code to memorize assigned names | <p>I am a newbie in Python, I've learned some basic things like data types, cycles and how functions work so far. The thing is I don't know anything about databases...<br />
I want to write a Secret Santa code to make a bot for me and my friends. The idea is that after you were invited to join the bot, you enter your n... | 3 | 1,106 |
Minified React error #31 with sharepoint online using React + redux | <p>I'm facing an error that has been searching by myself for 2 days. But currently It's still not resolved, so I came here to ask If anyone ever faced this?</p>
<p>I'm using Redux toolkit in a sharepoint online project for passing data to each other components.</p>
<p>The first component worked perfectly, but when I us... | 3 | 1,033 |
java.lang.NullPointerException: Cannot invoke "javax.persistence.EntityManager error in Spring MVC while pulling data | <p>I am trying to learn creating ReST API end points using spring mvc and Hibernate without using springboot. When I am running my end point , I am getting internal server error saying that ,</p>
<p><code>java.lang.NullPointerException: Cannot invoke "javax.persistence.EntityManager.createQuery(String, java.lang.C... | 3 | 2,654 |
Send Form Value to Modal | <p>I have a form that asks for 3 fields. Once the form is submitted, it should open a modal. In the modal a budget summary should show. The budget summary data is pulled from a database and the values are based on the 3 form fields entered. I can't seem to get the values to show up in the modal so the query will work b... | 3 | 2,982 |
StringBuilder with Caching, ThreadStatic | <p>I came across the code below from <a href="https://docs.microsoft.com/en-us/dotnet/framework/performance/writing-large-responsive-apps" rel="nofollow noreferrer">Writing Large, Responsive .NET Framework Apps</a>.</p>
<p>The code below creates a string like <code>SomeType<T1, T2, T3></code> using <code>StringB... | 3 | 1,347 |
JQuery UI DatePicker Covering Controls Below | <p>I have a set of two date fields where the JQuery UI DatePicker is covering up the controls below. How do I set the ZIndex or Position of the DatePicker so it does not collide with the controls? I am using FireFox. </p>
<p>Here is my JSFiddle:
<a href="http://jsfiddle.net/pNP22/4/" rel="nofollow">http://jsfiddle.ne... | 3 | 1,235 |
How to get resovled value from $routeProvider in AngularJS? | <p>On change of views in my application i created resolve function which should find out if user is logged in or not: </p>
<pre><code> $routeProvider.
when('/taskoverview', {
templateUrl: 'Home/Template/taskoverview', resolve: TaskOverviewCtrl.resolve, access: { allowAnonymous: t... | 3 | 1,201 |
Losing Gesture Recognizers in UIPopoverController | <p>I have a class called PhotoBoothController that I use to manipulate an image using gestures. It works fine when I run it on iPhone. However when I run it on iPad, I display the PhotoBoothController inside a UIPopoverController. The image appears fine, however I can't manipulate it as my gestures don't appear to be r... | 3 | 1,619 |
CSS floating and positioning | <p>I have 2 boxes that should show up next to eachother. I want one to have a vertical fixed position.
So when I scroll up or down the box stays at the same height. </p>
<p>But I don't want it to be horizontal fixed, because I want the 2 boxes together always in the center. Even when you make your browser bigger or ... | 3 | 1,539 |
Sending & Reading using JSON | <p>My Android Application Reads JSON Data from PHP File according to username and password Sent from Application also as JSON.<br>What I have reached for now that I can Only Read by specifying the username and password, No Sending for username and password from App happens..<br><br>
My question is, Is it possible to Re... | 3 | 3,209 |
How to re-index an AuditLog table? non clustered primary key, clustered covering index, guid | <p>Using SQL Server 2016 Standard. I have an existing <code>AuditLog</code> table, with a PK on a <code>bigint</code> column (generated C# side) and an additional index.</p>
<pre><code>CREATE TABLE [dbo].[AuditLog]
(
[Id] [bigint] NOT NULL,
[ChangeTime] [datetime] NOT NULL,
[User] [varchar](100) NOT NULL,
... | 3 | 1,354 |
App crashing because "It appears that 'PubNub' is not a valid Fabric Kit" | <p>Let me preface by saying that I'm using <code>CocoaPods</code> to manage my frameworks. I'm not sure if this really matters, but I thought you might as well know just in case. I'm also running on iOS 10.x with the latest version of Xcode (not beta).</p>
<hr>
<p>My app is crashing on <code>Fabric.with([Crashlytics.... | 3 | 1,355 |
Extjs 4. combobox in grid. using index to get data | <p>I need my controller to load a grid with comboboxes. </p>
<p>The status field (number) in the 'equipment data' should load the status field of possible states from 'equipment states' and display these in the combobox.</p>
<p>When selecting a new option, the id should be saved in 'equipment data', status field. As ... | 3 | 1,106 |
CSS Positioning - Fill whitespace from floated elements | <p>How do I go about positioning Box4 so that is pushed up against Box1?</p>
<p><img src="https://i.stack.imgur.com/E1eTL.png" alt="enter image description here"></p>
<p>Looking forward to your suggestions and any help would be much appreciated.</p>
<pre><code><!DOCTYPE html>
<html lang="en">
<head>... | 3 | 1,167 |
Use variables from one .as file in another? | <p>If I have created variables in one document named Main.as as follows:</p>
<pre><code>var backgroundLayer:Sprite = new Sprite;
var gameLayer:Sprite = new Sprite;
var interfaceLayer:Sprite = new Sprite;
</code></pre>
<p>How can I access these in another .as file? I'm trying to sort the objects in my game into layers... | 3 | 1,316 |
While running specs entries are getting delete from schema migrations table | <p>When upgraded to rails 6.1 my specs are failing due to entries are getting delete from schema_migrations table</p>
<pre><code>ActiveRecord::SchemaMigration.count
(2.1ms) SELECT COUNT(*) FROM "SCHEMA_MIGRATIONS"
=> 1
ActiveRecord::NoEnvironmentInSchemaError:
Environment data not found in the sche... | 3 | 1,071 |
Can't seem to properly run python MSS library | <p>I am trying to learn the MSS python library to stream/reflect what's in the monitor. My intention is to use it with OpenCV to process the image. I got this source code from a youtube tutorial but I am getting the this error: (I can't solve this to run the code). Any tips and guidance are very much appreciated.</p>
<... | 3 | 1,075 |
Why my component in Angular doesn't display? | <p>I try to learn Angular Animation from : <a href="https://angular.io/guide/animations" rel="nofollow noreferrer">https://angular.io/guide/animations</a>. I think I have follow corretly the steps and my component doesn't display.</p>
<p><strong>index.html</strong></p>
<pre><code><!doctype html>
<html lang=&q... | 3 | 1,357 |
Measuring children in custom view breaks in RTL | <p>I have a custom view that extends LinearLayout and implements onMeasure. I'd like the children to be either as wide as they need to be or filling the available space.</p>
<p>XML files:
Parent:</p>
<pre class="lang-xml prettyprint-override"><code><FrameLayout
xmlns:android="http://schemas.android.com/apk/... | 3 | 1,521 |
Enable all Select Options up to selectedIndex | <p>Greeting fellow code-jugglers!</p>
<p>I am dealing with a kinda frustrating problem, which it seems I can't solve to 100% I want it to work.</p>
<p>I've got a select field with various <strong>dynamic options amount</strong> (<em>could be more than one "middle", e. g. "middle 1", "middle 2"</em>) deactivated and f... | 3 | 1,514 |
Can't fix Concurrency Violation VB/Access Database | <p>Cannot figure out how to resolve this issue. If I add rows to the database and close the form and then open the form an remove rows, I get no issues. The issue only arises when I add rows and remove rows without closing the form. What happens when the form closes that doesn't happen when the form is open?</p>
<p>If... | 3 | 1,684 |
How to add a menu button to layout (template) form in Bootstrap | <p>I would like to add a <a href="https://i.stack.imgur.com/Isbi1.png" rel="nofollow noreferrer">menu button</a> (3 horizontal lines) to the right of my Layout form , so that it will be not responsive (visible at the normal resolution 100% of my PC browser 1366 x 768 without zoomig or unzooming), but I don't know how ... | 3 | 2,511 |
why use django haystack slice queryset too slow? | <p>I use whoosh as the search backend.</p>
<p>when I get just 3 search result, code:</p>
<blockquote>
<pre><code>#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.append('/home/guomeng/projects/tapplex_ringtones')
import os
os.environ['DJANGO_SETTINGS_MODULE'] = "tapplex_ringtones.settings"
from haystack... | 3 | 1,050 |
Figuring out the launch problem from the log | <p>This is very similar it seems, to
discover-why-godc-wont-start-on-mac but I Can't comment and what I have isn't an answer so
I'm opening a new question. </p>
<p>I have this problem where the Go Agent won't stay running on my Mac. It launches and then quickly exits. The log seems like a java issue but I have Java ... | 3 | 1,327 |
Java REST - 404 resource can not be found | <p>I am trying to access a resource on my Hello world (for now) application.
However, I get this HTTP status 404 - not found when I deploy it ot Tomcat and hit the URL: localhost:8080/test/rest.
Here are my pom.xml depdendencies:</p>
<pre><code><dependency>
<groupId>org.glassfish.jersey.core</gr... | 3 | 1,139 |
android: dlopen failed to load not 32 bit | <p>There's giving me following error in my demo app:</p>
<p>FATAL EXCEPTION: main</p>
<pre><code>Process: com.example.android.pos_api_android_demo, PID: 9359
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app-lib/com.exampl... | 3 | 2,613 |
Garbage collecting in a ThreadPool? | <p>I need to handle http requests and the best way I found was using a ThreadPool. Please dont recommend using a finished library, because when I try to do something similar, there will be the same problem(s)!</p>
<p>When try a DDOS-Tool on my own webserver the cpu usage gets high and the memory increases incredible f... | 3 | 1,110 |
How to send static html as an email content in c#? | <p>I am sending an static html with some dynamic content to user email id using c# and JQuery.
Below is the JavaScriot file from where I am calling th method SendEmail.</p>
<p>$(".EmailInvoice").click(function () {</p>
<pre><code> $.ajax({
type: 'POST',
url: siteUrl + '/invoiceEmail.asmx/SendEmail'... | 3 | 2,420 |
can I read Gmail messages while running the PowerShell | <p>I am doing the PowerShell script in that when I am running the PowerShell script I can read the message in the PowerShell I can't get a clear idea from that please help anyone see this one. I have successfully managed to connect to GMAIL API using Powershell. However, I'm having difficulties finding where to get the... | 3 | 1,081 |
JsonSluper and JsonOutput convert some symbols in string to strange characters | <p>I am using a groovy script to convert some of the values in the body to their primitive datatype. To achieve this I am using JsonSluper and JsonOutput.
JsonSluper and JsonOutput are converting some symbols in string from my json body to strange characters. Any suggestions how this can be fixed ?</p>
<blockquote>
<p>... | 3 | 1,517 |
ValueError: Supported target types are: ('binary', 'multiclass'). Got 'continuous-multioutput' instead | <p>I want to do KFold cross-validation on my CNN model in Keras as shown below:</p>
<pre><code>X = df.iloc[:,0:10165]
X = X.to_numpy()
X = X.reshape([X.shape[0], X.shape[1], 1])
X_train_1 = X[:,0:10080,:].reshape(921,10080)
X_train_2 = X[:,10080:10165,:].reshape(921,85)
Y = df.ilo... | 3 | 1,670 |
using boto3 in a python3 virtual env in AWS Lambda | <p>I am trying to use <strong>Python3.4</strong> and <strong>boto3</strong> to walk an <strong>S3</strong> bucket and publish some file locations to an <strong>RDS</strong> instance. The part of this effort I am having trouble with is when using boto3. My lambda function looks like the following:</p>
<pre><code>impo... | 3 | 1,192 |
NotificationManager.notify locks the phone and Emulator | <p><strong>PROBLEM:</strong></p>
<p>The phone/emulator locks up on repeated Notification updates. The only way to get the emulator back responsive after it gets locked is by pressing Home => Menu => Lock => Home => Menu Button in that given order.</p>
<p><strong>CODE:</strong></p>
<p>Notification pushing code:</p>
... | 3 | 1,484 |
How to update ScrollView Width after device rotation? | <p>I am following a <a href="https://www.youtube.com/watch?v=EKAVB_56RIU&t=617s" rel="nofollow noreferrer">tutorial</a> to create a swift app that adds a number of views to a scroll view and then allows me to scroll between them. I have the app working and understand it for the most part. When I change the orientat... | 3 | 1,312 |
Check whether exists index k such that elements of array A[] moved clockwise make a reverse bitonic array | <p>Check whether exists index <code>0 <= k < n - 2</code> such that elements of array <code>A[]</code> moved clockwise by <code>k</code> indexes make a reverse bitonic array.
My approach to do it in <strong>O(n)</strong> time complexity:</p>
<pre><code>bool is_antibitonicable(int A[], int n) {
// returns if t... | 3 | 1,071 |
how can I return all object's id and placed in my_result objects? [django] | <p>when I submit this form always returns to me the value of id 1 only and when I tried to replace another value I wrote 2 has returned to me this value indeed. then I understood that this loop process doesn't work and I knew that because of (return). so, I need to know how can I return all object's id and placed in my... | 3 | 3,075 |
How to select value from search dropdown In selenium | <p>I need to import all the values from a dropdown menu to combobox in my GUI .</p>
<p>After that I need to select a value by click on combobox. </p>
<p>but it did not work.
Please help me with selecting a value from the dropdown.
How do i get all text values available in the dropdown ?</p>
<pre class="lang-py pret... | 3 | 1,924 |
Stop animation after time | <p>My application's main screen contains a SliverAppBar with three TabBarViews.</p>
<pre><code>Widget build(BuildContext context) {
return _loaded
? Scaffold(
backgroundColor: mainBgColor,
body: MaterialApp(
theme: ThemeData(
iconTheme: iconsStyle,
... | 3 | 2,004 |
React apply function to single item in array | <p>The following code creates a simple movie rating app. Everything works except that when an up or down vote is clicked in one of the array items, the votes state for all items in the array update, rather than just for the item that was clicked. How do I code this so that the vote only applies to the item where it was... | 3 | 1,550 |
Change Name of some columns in multindex dataframe by splitting their current name into two levels | <p>I have the following dataframe,</p>
<pre><code> AA46 AE48 \
Open High Low Close Open High Low
2018-08-31 72.5700 72.5700 72.5700 72.5700 67.9300 67.9300 67.9300
2018-08-30 74.7800 74.7800 74.7800 74.7800 7... | 3 | 1,093 |
Laravel - Issues with Vue and Javascript | <p>Using</p>
<ul>
<li>Laravel 5.7</li>
<li>Buefy 0.7.3</li>
<li>Vue 2.5.17</li>
</ul>
<p>In my project, I have a sidebar which has elements that slide down up with javascript code .. and in my page, I have a <code>Tab</code> from <code>Buefy</code>
Now I notice that every page contains any <code>Vue</code> object ..... | 3 | 2,135 |
How to deal with input=file / IFormFile two-way binding in Razor Pages | <p>I have an entity that has byte[] to store logos in the database as varbinary. But to use this model on a Razor Page, I have extended it and added a IFormFile property to receive the uploaded file.</p>
<pre><code>public class Company
{
public string Name { get; set; }
public byte[] Logo { get; set; }
}
</cod... | 3 | 1,911 |
How can I setup Visual Studio Code(VSC) or Sublime Text3 to run ReactJS | <p>I am new with ReactJS. I tried VSC and Sublime Text3 as my IDE. My OS is Windows 10, I installed NodeJS, Babel and added {"type": "module"} in package.json file. I cannot run or build JSX syntax. Below is a simple JSX file.</p>
<pre><code>import React from 'react';
const Footer = () => {
... | 3 | 1,035 |
Error Spring integration xsd for aws sqs | <p>I'm getting an error:</p>
<pre><code>Caused by: org.xml.sax.SAXParseException; lineNumber: 16; columnNumber: 44; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aws-messaging:sqs-async-client'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.creat... | 3 | 1,522 |
expandable listview child click event | <p>I am using following layout for child row of expandable listview</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="55dip"
android:orientation="vertical" >
... | 3 | 3,858 |
jsonResponse.getJSONArray not working | <p>I'm trying to fetch data from MySQL database which is on web server.
my goal is to retrieve array of location data which is already on MySQL database.
I'm getting this array of data from server,but I cant convert it from jsonResponse.getJSONArray to JSONArray object.</p>
<pre><code>private void setUpMap() {
Res... | 3 | 1,349 |
HTML, Border Blocking Problem on Welcome Screen | <p>The Code:</p>
<pre><code><html>
<style>
.img {
max-width: 100%;
}
.Headerstyle {
color: Black;
transition: transform .2s;
text-align: center;
margin-top: 39%;
}
.Headerstyle:hover {
transform: scale(1.5);
transition: 0.2s;
}
.HeaderstyleBack {
color:... | 3 | 5,133 |
Using GoogleMock to avoid dependencies when testing a Card and a CardCollection class | <p>I'm learning about mocking and am reasonably new to the concepts. For the sake of learning, I'm implementing a <code>Card</code> class and a <code>CardCollection</code> class which depends on the <code>Card</code>. Therefore I've created a <code>MockCard</code> for testing the <code>CardCollection</code>.</p>
<p>Her... | 3 | 1,230 |
cant make connections betwen uploaded image and template django | <p>I'm trying to upload a picture for my post model by admin panel but I can't display it in my template, please help
this is my post model
and I get this error please help me
ValueError at /
The 'Img' attribute has no file associated with it.</p>
<pre><code>class Post(models.Model):
author = models.ForeignKey('aut... | 3 | 1,447 |
c# UWP scan for music files | <p>I am implementing a music player for windows 10, and i am in a bit of a pickle at the library phase.</p>
<p>I am scanning for all the files in music library (plus optional folders the user selects) and i need to also get their tags (only need the title and artist, don't need complex details).</p>
<p>The problem is... | 3 | 1,186 |
Parse iOS SDK: Dynamic cell height for PFQueryTableViewController based on results from Query | <p><strong>Scenario</strong> </p>
<p>I have an app that downloads data from my parse.com database and displays it into a PFQueryTableViewController. The PFQTVC has multiple (6) prototype cells each with their own reuseIdentifier as well as most importantly, their own height. I am currently using the following design t... | 3 | 1,348 |
Is Realm's .where faster than filtering a list manually? | <p>I am creating a project using a realm database.</p>
<p>I also have a lot of lists which I wish to filter while the user types.</p>
<p>The biggest one of them will probably be the list of customers</p>
<p>Currently I am using realm by using a wrapper class for each object (if anyone has a better suggestion I'm def... | 3 | 1,075 |
Soap to consume web service : Encoding: object has no 'any' property | <p>I have this WSDL <a href="http://testxml.e-tsw.com/AffiliateService/AffiliateService.svc?Wsdl" rel="nofollow noreferrer">http://testxml.e-tsw.com/AffiliateService/AffiliateService.svc?Wsdl</a></p>
<p>I am trying to use SoapClient to send a request to the Book method with the following code:</p>
<pre><code> <... | 3 | 3,920 |
onClick crash Resources$NotFoundException | <p>I'm creating a simple microwave power calculator app in Android Studio. I've only just downloaded this tonight and haven't written anything for Android before. </p>
<p>My code shows no errors yet when I run the app on my phone it force closes when I hit the calculate button, with the following error in the log.</p>... | 3 | 4,118 |
Listview doesn't gives correct values | <p>I'm getting wrong values from the Listview after clicking on it.</p>
<p><strong>Flow:</strong></p>
<p>a)I have a Spinner once Spinner selected the Listview values gets changed using the help of an Asynctask.</p>
<p>OnPostMethod Method of Asynctask to load items in the Listview</p>
<pre><code>protected void onPos... | 3 | 3,200 |
LabeledPieChart: Style overrides DataTemplate | <p>I have customized the template of LabeledPieChart (source: <a href="http://bea.stollnitz.com/blog/?p=438" rel="nofollow">Bea</a>) in a Style. Then I created a DataTemplate for the Slices of the LabeledPieChart. Both the style and the DataTemplate works great if they are alone. If they are together the Style override... | 3 | 2,271 |
how i can connect and login in mysql localhost in php by using this html code | <p>how i can connect with database by using this code and how i can login for student and redirect to the student panel please write down
the php login code</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-css lang-... | 3 | 4,651 |
Reading and Writing with Multiple Children C++ Unix | <p>So, this is a follow up on my assignment I posted earlier.
Link: <a href="https://stackoverflow.com/questions/42913617/piping-and-forking-in-c-in-unix">https://stackoverflow.com/questions/42913617/piping-and-forking-in-c-in-unix</a></p>
<p>Got that section of the code all working now, but now I have to move onto 4... | 3 | 3,508 |
bootstrap box spaning rows right side img element | <p>there's some problems with responsive grid system to me.</p>
<p><a href="http://imageshack.com/a/img537/9687/4H48G0.jpg" rel="nofollow">http://imageshack.com/a/img537/9687/4H48G0.jpg</a></p>
<p><a href="http://imageshack.com/a/img539/8265/ANvr0Y.jpg" rel="nofollow">http://imageshack.com/a/img539/8265/ANvr0Y.jpg</a... | 3 | 1,806 |
Google Places not returning complete results with RouteBoxer | <p><strong>EDIT: It seems that I'm hitting the query limit, but I'm not being returned a full 200 results. So upon further research it looks like the Google API will let me query 10 boxes, return those results, and then smacks me with an OVER_QUERY_LIMIT status for the rest. So I figure I now have two options: slow my ... | 3 | 2,080 |
Socket Serialization Error , a bytes-like object is required, not 'str' | <p>I tried Encoding but is not working can anyone help me with the serialization in python3 <code>a bytes-like object is required, not 'str'</code></p>
<pre><code>#!/usr/bin/python3
import socket
import json
import pickle
class Listener:
def __init__(self,ip,port):
listener = socket.socket(socket.AF_INE... | 3 | 1,810 |
How to use SQLAlchemy models to generate raw SQL which is able to create all tables? | <p>It is possible to generate raw SQL statement to create any SQLAlchemy table <a href="https://stackoverflow.com/questions/2128717/sqlalchemy-printing-raw-sql-from-create">as shown here</a>.</p>
<p>However, I would like to generate raw SQL which creates all tables, not just one.</p>
<p>Let's assume I have such tables ... | 3 | 2,073 |
Is there a way to store pipeline stages in sklearn? | <p>I am about to create a simple model-pipeline using sklearn´s pipeline module:</p>
<pre><code>from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.decomposition import TruncatedSVD
from sklearn.linear_model import LogisticRegression
class T... | 3 | 1,133 |
Upload Image to URI using HttpClient | <p>I´m a newbie about http related things, so I am a little stacked.</p>
<blockquote>
<p>What I want is simple, I need to POST, upload a imaged to a server like this: <code>http://web.com/imageGalerry</code> . </p>
</blockquote>
<p>I think its not too much complicated <strong>but I dont know why I am no getting err... | 3 | 1,319 |
TableView does not load realm database values | <p>I have used <strong>XMPPFramework</strong>, since the user authentication and receiving only messages is done using XMPP. I am sending messages using <strong>RestApi</strong>. I have parsed the received xml message using <strong>SwiftyXMLParser</strong> library and now I have to store 'senderName', 'messageBody', 't... | 3 | 1,290 |
Clients using `GET` requests for a form, even though `POST` is defined. is javascript iframe the cause? | <p>I have two subsequent forms on my website with POST method.</p>
<p>The first page of my website <code>first.php</code> contains this code:</p>
<pre><code><form action="a.php" method="POST" target="_blank">
<input name="value" type="hidden" value="foo"/>
<div class="button"><label><span c... | 3 | 1,329 |
Python Catching Popen Output | <p>I'm experiencing some strange behavior with my Python script exiting without any error messages. Based on my debugging it is happening around a popen() call to scp a file to a server.</p>
<p>The code was (I was not the original author):</p>
<pre><code>logMessage(LEVEL_INFO, "copyto is " + copyto)
pid = Popen(["scp... | 3 | 1,475 |
Drop down my boostrap navbar in mobile view is always collapsed by default..how can i fix this? | <p>Here is my code for navbar. It's working perfectly in desktop view but when it comes to mobile view the drop down is not functioning properly. What I might be doing wrong?</p>
<pre><code><nav class="fixed-top navbar navbar-expand-lg navbar-dark ftco_navbar bg-dark ftco-navbar-light" id="ftco-navbar... | 3 | 1,392 |
secure web server asp.net | <p>I have a graphical user interface for my company product.
I want to secure the data being sent back and forth between client and server.</p>
<p>Is SSL one of the options? if yes, Please can some1 tell me the steps on how to implement it in my application code. </p>
<p>Do i need to buy the certificate or can i make... | 3 | 1,087 |
Vue3 Object - than is not a function | <p>I have a problem with my slider on vue3:</p>
<p><code>SlideShow</code></p>
<pre><code><template>
<div class="slides-wrapper">
<button
class="btn btn-primary btn-action btn-lg slides-prev"
@click="changePhoto(-1)"
:disabled="prevBtn">
... | 3 | 1,424 |
Trying to filters an array of objects by an array of numbers with find my index and forEach doesnt work | <p>Im trying to filter all the contact I have with an array of numbers I want to remove. This should loop on every contact and remove the numbers not needed. Some contacts have two numbers and only one could be deleted but not the hole contact. I tried already to filter and see if the selected number is in an index bu... | 3 | 1,103 |
Little changes in the given algorithm | <p>It's about changing a maze algorithm.</p>
<p>What I mean by that? We got a 2-dimensional array filled with 0 and 1 where 0 stands for "not possible to pass" and 1 for "possible to pass".
An that algorithm finds its way from x to y (also known example: cat to mouse).
And this exactly is what the following algorithm ... | 3 | 1,520 |
creating a list of anonymous type and passing to view | <p>i want to to display all items from my parent table with selected items from child table and create a list of them to pass to my view. </p>
<h1>Here is my action method</h1>
<pre><code>public ActionResult Index()
{
int Month = DateTime.Now.Month;
List<EmployeeAtt> empWithDate = new List<EmployeeA... | 3 | 1,827 |
Google script UI - reading to and posting from a spreadsheet, link to populated UI | <p>I have created a UI that I would like to use to read from and post to a <a href="https://docs.google.com/spreadsheets/d/11Tf5vD_b_s__F6jPkggE7LUhGH7pQ5Rbuaf_zk2qiWI/edit?usp=sharing" rel="nofollow">spreadsheet</a>. Please ignore, for now, the link formatting in col A. Right now, that's linking to a form. I want t... | 3 | 3,827 |
Why does an angular factory interfere with MongoId? | <p>I do have a Rails application (Rails 4 / Mongoid) which uses Capybara / Rspec. Furthermore I do use Angular.js for some client stuff. Unfortunately I experience a strange behavior in a spec test.</p>
<pre><code>RuntimeError: Circular dependency detected while autoloading constant Offer
</code></pre>
<p><code>creat... | 3 | 1,053 |
Adding a UI-Bootstrap Element to DOM inside Directive | <p>I am new to angular and I am trying to figure out the following problem. When the user highlights some text, I would like a ui-bootstrap popover to surround the highlighted text. Since this would manipulate the DOM I think I need to use a directive for this. I was able to successfully implement a simpler version ... | 3 | 1,221 |
How do I speed up this multi-statement tabled valued function? | <p>I wrote this function that feeds into an XSLT tool for reporting. It's incredibly slow, taking about 1.5-2 seconds on average to return 100 rows. This gets worse as this query can return up to 2000 rows. Any sort of excess load is causing the query to time out, so now I need to optimize it.</p>
<pre><code>USE [I... | 3 | 5,036 |
Android ListFragment (sherlock) xml parsing from url | <p>I have problem with SherlockListFtagment and xml parser. On ListActivitiy working with AsyncTask and no have problem. What I need edit for working on ListFragment.</p>
<p>Code:</p>
<pre><code>public class AndroidFragment extends SherlockListFragment{
static final String URL = "http://...";
// XML node ke... | 3 | 3,107 |
Dataset ReadXml returns Rows Instead of Columns | <p>I am trying to create a datatable from an xml file, using the dataset readxml method. however i am struggling to define the schema correctly to properly interpret this file.</p>
<p>i think the problem lies with the nesting and the fact that the ColumnUid (which ideally should be the column name) is a value rather th... | 3 | 1,408 |
Laravel resource index listing limited amount of records | <p>I have two resources</p>
<ul>
<li><p>Organizations</p>
</li>
<li><p>OrganizationUsers (which has FK to Users on <code>user_id</code>)</p>
</li>
</ul>
<p>The User model</p>
<pre><code>class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var a... | 3 | 2,007 |
Create complex object in Python based on property names in dot notation | <p>I am trying to create a complex object based on metadata I have. It is an array of attributes which I am iterating and trying to create a dict. For example below is the array:</p>
<pre><code>[
"itemUniqueId",
"itemDescription",
"manufacturerInfo[0].manufacturer.value",
&... | 3 | 1,783 |
How to stop sprite on collision (Keep it from walking on walls)? | <p>Thanks to ellertsmari, I am able to get collision detection.
<a href="https://stackoverflow.com/questions/55625639/adding-collision-to-rectangles-so-sprite-wont-go-through">Adding Collision to Rectangles so Sprite Wont Go Through?</a></p>
<p>Just now I want to get my sprite to stop on collision so he won't be walki... | 3 | 2,573 |
Tensorflow : Generate freeze graph without having node_names | <p>I have some (old) Tensorflow model that have been created by another person.</p>
<p>For each of these model, I want to create frozen graph.</p>
<p>My models can be either <code>Saved Model</code> : </p>
<pre><code>+--- name.txt
+--- saved_model.pb
+--- variables
| +--- variables.data-00000-of-00001
| +--- var... | 3 | 3,587 |
Connection refused trying to access REST endpoint on BigIP | <p>Attempting to connect to the REST endpoint of my BigIP:</p>
<pre><code>curl https://10.1.0.69/mgmt/shared/appsvcs/info
curl: (7) Failed to connect to 10.1.0.69 port 443: Connection refused
</code></pre>
<p>I've seen some posts online stating that this could be due to <code>icrd</code> not being enabled, so to che... | 3 | 1,047 |
Swift - Store Dates of Step Counter in Firebase Database | <p>I've created a pedometer that stores in a firebase database. However it only stores step data for that one day and when I start another day the steps disappear. I'm guessing I would need to store this data under separate dates to see how many steps were taken each day. I cannot work out how to implement this into my... | 3 | 1,956 |
Creating a dequeue method using a Circlular linked Queue in java | <p>I'm having trouble figuring out how to finish my dequeue method. I'm only allowed a rear pointer instance variable. I am getting the first two entries delelted from the queue but then it doesn't delete the rest. My code is below. I'm super confused what is going on in my method. Thank you</p>
<pre><code>public clas... | 3 | 1,086 |
Python Can't find string in file | <p>I started working on my game few days ago. I made system for loading(on start) and saving(on exit). On first loging in everything is fine but on second error(NameError: name 'strange' is not defined) showed up. Can someone help me to solve it please? I know that problem is in finding name in file becouse I tryed to ... | 3 | 1,596 |
Multipart data sending got 408 Status | <p>guys. Need help with sending POST request with multipart-data.</p>
<p>I have a method to create request on my client side. Here it is:</p>
<pre><code>public void sendMultipart(String cmd , Employee emp) {
CloseableHttpClient httpClient = HttpClients.createDefault();
HttpPost uploadFile = new HttpPost(base... | 3 | 1,079 |
PHP how to reuse a function from a clean state | <p>`I have a function called lets say calculate; what i want to do is run some loops with in the function calculating an outcome. at times this function does fail as it will get stuck in a loop, so iv got it covered to exit the loop but my problem is i want to restart this function and hope it come out with an outcome ... | 3 | 1,130 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.