title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Uploading a CSV to Plotly Dash and rendering a bar plot based on a Pandas dataframe | <p>I'm new to the <code>Plotly Dash</code> framework and have attempted to build a simple dashboard that:</p>
<ol>
<li><p>Allows the user to upload a CSV file to analyze graphically.</p></li>
<li><p>Creates a Pandas data frame based on the file uploaded in step #1.</p>
<p>2a. Renders nothing if the CSV file (and resu... | 1 | 2,171 |
i'm trying to send emails using PHPmailer but i Get this error | <p>i get this errors </p>
<blockquote>
<p>2020-06-03 21:08:07 Connection: opening to ssl://smtp.gmail.com:25, timeout=300, options=array()
2020-06-03 21:08:07 Connection failed. </p>
<p>Error #2: stream_socket_client(): SSL operation failed with code 1. </p>
<p>OpenSSL Error messages:error:1408F10B:SSL r... | 1 | 1,363 |
Kendo UI BarChart Data Grouping | <p>Not sure if this is possible. In my example I am using json as the source but this could be any size. In my example on <a href="http://jsfiddle.net/jqIndy/ZPUr4/3/" rel="nofollow">fiddle</a> I would use this data in a shared fashion by only binding two columns ProductFamily (xAxis) and Value (yAxis) but I would like... | 1 | 1,201 |
css crop an image then scale by percentage | <p>I am trying to crop a (non background) image then scale that cropped image by a percentage of the body. The idea I have is to combine all logos and basic graphics on my website into one image so that the browser can cache the image (quicker after the fist download). I then want to scale relative to the body width so... | 1 | 1,447 |
Why Kendo Ui Grid is not fire Update Action in MVC 4? | <p>I create Kendo UI Grid that can Create, Update and Delete Data. But it is not fire Update Action in my Controller.</p>
<p>Here is My Code :</p>
<pre><code><script src="~/Scripts/Kendo/jquery.min.js"></script>
<script src="~/Scripts/Kendo/kendo.all.min.js"></script>
<script src="~/Scripts... | 1 | 1,189 |
Object of class could not be converted to string Symfony2 error | <p>I get this error:</p>
<p>An exception has been thrown during the rendering of a template ("Catchable Fatal Error: Object of class Mihail\SearchBundle\Entity\FileSearch could not be converted to string") in form_div_layout.html.twig at line 13.</p>
<p>Using symfony 2.8LTS.
Here are the files I am using to basically... | 1 | 2,624 |
DirectX 11: Use UpdateSubresource to update Vertex and Index buffers | <p>in my sientific simulation I have got huge data sets (around 600000 vertices) to update in regular time intervals (around 1sec). </p>
<p>For the first data set I create a buffer like follows:</p>
<pre><code>mVertexStride = sizeof(VertexType);
D3D11_BUFFER_DESC VertexBufferDesc;
ZeroMemory(&VertexBufferDesc, s... | 1 | 1,055 |
Table 'XXX.dbo.aspnetusers' doesn't exist, migrations VS-Mysql | <p>I added some properties into ApplicationUser, now I want delete those properties, but I have this:</p>
<p>MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'intranetproto.dbo.aspnetusers' doesn't exist.</p>
<p>this are the properties that I want delete:</p>
<pre><code> public class ApplicationUser : Ident... | 1 | 1,357 |
Ruby on Rails 4: test nested resources with rspec not working | <p>i have some troubles with testing my ruby on rails application. I have a resource Restaurant and a nested resource menu. </p>
<p>Routes file:</p>
<pre><code>resources :restaurants do
resources :menus
</code></pre>
<p>Menu model:</p>
<pre><code>class Menu
include Mongoid::Document
belongs_to :restaurant
accept... | 1 | 1,493 |
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform | <p>I am running java embedded pig pseudomode with following java code and pig code respectively..</p>
<p>Versions:</p>
<p>Hadoop version - 2.0.0-cdh4.1.2</p>
<p>Pig Version - 0.10.0-cdh4.1.2</p>
<p>Java code:</p>
<pre><code>public class CallPig {
public static void main(String[] args) {
try {
... | 1 | 3,092 |
what log value to use for Kullback leibler divergence implementation? | <p>I have done a method to implement the Kullback-leibler divergence in java. I have used the log with base 2 value and i am not sure whether i have used it right or i should used log base 10 value. I am using this method to measure the divergence between two text units(each of different length). </p>
<p>My proble... | 1 | 1,031 |
Simple Relational Database - Efficient Querying | <p>This is essentially very simple I've just been rather verbose about it. My data is structured as shown at the bottom of my post. My goal is to organise the data in a simple spreadsheet format, 'flattening' the relational database. Something like:</p>
<pre><code>Product1 URL
Product2 URL URL URL
Product3 URL
</code>... | 1 | 1,440 |
Storing pandas DataFrame with mixed data and category into hdf5 | <p>I want to store a dataFrame with different columns into an hdf5 file (find an excerpt with data types below). </p>
<pre><code>In [1]: mydf
Out [1]:
endTime uint32
distance float16
signature category
anchorName category
stationList object
</code></pre>
<p>Before convert... | 1 | 1,147 |
Datetime Timezone conversion using pytz | <p>This is just another post on <code>pytz</code>. </p>
<p>There are two functions to convert datetime objects between two timezones. The second functions works for all cases. The first function fails in two cases, (3) and (4). Similar <a href="https://stackoverflow.com/questions/1379740/pytz-localize-vs-datetime-repl... | 1 | 1,509 |
Shuffling multidimensional array in js | <p>This function shuffles only matrix[y], but I want it to shuffle matrix[y][x] But it doesn't want to shuffle correctly.</p>
<p>The code what I used:</p>
<pre><code>function Shuffle(arguments) {
for (var k = 0; k < arguments.length; k++) {
var i = arguments[k].length;
if (i == 0)
r... | 1 | 1,052 |
Getting a 100% height div inside a flexbox item | <p>I'm trying to produce the following layout, using flexbox.</p>
<p><a href="https://i.stack.imgur.com/mnsVq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mnsVq.png" alt="enter image description here"></a></p>
<p>The top black bar, the middle section and bottom black bar are all flex items, whic... | 1 | 2,410 |
Still getting duplicate token error after calling DuplicateTokenEx for impersonated token | <p>I'm trying to return a <code>Sytem.IntPtr</code> from a service call so that the client can use impersonation to call some code. My imersonation code works properly if not passing the token back from a WCF service. I'm not sure why this is not working. I get the following error: </p>
<blockquote>
<p>"Invalid toke... | 1 | 1,187 |
Bootstrap - Yamm Mega Menu - Multi dropdown | <p>I'm using the Yamm mega menu for Bootstrap 3 and need a multi dropdown to work as a grid.</p>
<p>The first dropdown section is within the first 4 column grid, then the second half of the dropdown should go into the second 4 column grid and lastly the third one goes into the final 4 column grid.</p>
<p><a href="htt... | 1 | 2,674 |
C++0x memory model and speculative loads/stores | <p>So I was reading about the memory model that is part of the upcoming C++0x standard. However, I'm a bit confused about some of the restrictions for what the compiler is allowed to do, specifically about speculative loads and stores.</p>
<p>To start with, some of the relevant stuff:</p>
<p><a href="http://www.hpl.h... | 1 | 1,160 |
no core dump in /var/crash | <p>I am trying to understand a bit how the core dump work.</p>
<p>I use the test.c file to generate a core dump :</p>
<pre><code>#include <stdio.h>
void foo()
{ ... | 1 | 1,285 |
Unwrap and access T from an Option<Rc<RefCell<T>>> | <p>I am trying to solve some Leetcode problems with Rust. However, I ran into some difficulties with LeetCode's <code>TreeNode</code> implementation. </p>
<pre><code>use std::cell::RefCell;
use std::rc::Rc;
// TreeNode data structure
#[derive(Debug, PartialEq, Eq)]
pub struct TreeNode {
pub val: i32,
pub left... | 1 | 2,057 |
React navigation drawer V5 | <p>I'm using react-navigation version 5.
I have tab navigation and drawer navigation together.</p>
<p>I'm trying to add an icon in my header to open/close drawer:</p>
<p>here is my custom right header for toggling the drawer:</p>
<pre><code>const HeaderRight = ({ navigation }) => {
return (
<View ... | 1 | 1,620 |
Why is the re module trying to import enum.IntFlag? | <p>How is it possible that a core module is importing a non-existent name from another core module?</p>
<p>Specifically, the <code>re</code> module importing <code>enum.IntFlag</code></p>
<hr>
<p><strong><em>Ways to Reproduce</em></strong></p>
<p>It can be reproduced by launching an interpreter and attempting the i... | 1 | 2,478 |
Change Menu Bar Icon on Navigation Page | <p>I'm desperately trying to change the icon color on my Xamarin Forms app. I thought this hamburger menu was text but I can't seem to change it at all now. Is it an image? I found a slideout.png image, but any edits to that do not display within the app. Where is it pulling this hamburger menu icon from?<a href="https... | 1 | 2,562 |
forwarding packets to service in same host without using loopback network | <p>I have this libnetfilter_queue application which receives packets from kernel based on some iptables rule. Before going straight to my problem, i'm giving a sample workable code and other tools to set up a test environment so that We problem definition and possible solutions can be more accurate and robust.</p>
<p>... | 1 | 3,332 |
OutOfMemoryError when inflating a layout | <p>I keep seeing this out of memory error in my developer console and I do not know why</p>
<p>log:</p>
<pre><code>android.view.InflateException: Binary XML file line #52: Error inflating class <unknown>
at android.view.LayoutInflater.createView(LayoutInflater.java:518)
at com.android.internal.policy.impl.Phone... | 1 | 3,354 |
Detecting small circles with OpenCV (bad image quality) | <p>I'm trying to detect the four dots you can see in the center of this picture:
<img src="https://i.stack.imgur.com/tZqDR.png" alt="enter image description here">
This one is converted to png, I actually use a ppm format (after conversion from raw output from the camera). The actual processed image is available <a hre... | 1 | 1,053 |
React-js Fetch api being called multiple times during Login | <p>I am new to the React world, and usage of components, I have an underlying issue where I have a Login Component that I call from <code>App.js</code> render(). </p>
<p>The <code>Login.js</code> is having a <code>fetch()</code> api, which is used to fetch the response of whatever is typed on the <code>form</code>. </... | 1 | 2,525 |
Hangfire Configuration Issue (Common.Logging.Core & Common.Logging.LogManager) | <p>I have installed Hangfire via 'Manage NuGet Packages' option in Visual Studio 2012. I am using SQL Server 2008 R2 for one project and SQL Server 2012 Enterprise for another project. My project is compatible with .Net 4.0 so I couldn't download the latest Hangfire which is compatible with .Net4.5 so I downloaded Hang... | 1 | 2,057 |
ReflectionException with Symfony and Sonata, "Class does not exist" | <p>I'm experiencing a problem trying to fit my Entities in the Sonata Admin Bundle. I have something like 5 entities, which are finely listed and viewed in the bundle, but I cannot edit or create a new entry.</p>
<p>When I try to edit or create, I get a <code>ReflectionException</code> error:</p>
<blockquote>
<p>Cl... | 1 | 9,096 |
Laravel application with Apache gives "use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'" | <p>I am very new to Laravel and my problems start at the running-my-application stage. For some reason I get this error when I try to access my application at <a href="http://127.0.0.1/test/public/" rel="nofollow noreferrer">http://127.0.0.1/test/public/</a> (I have Apache server):</p>
<pre><code>ErrorException in Enc... | 1 | 1,065 |
Awesomium WebControl WPF seems to misinterpret Scaling | <p>I'm trying to build a simple prototype (that use Awesomium 1.7 RC3) that allows a WPF application to display a WebPage, allowing the page to be zoomed in / out. I don't want to preserve the layout, but adapt the layout in the same manner that you can resize the window. It's the same behavior as the zoom feature of I... | 1 | 2,609 |
Difference between java.util.regex and org.apache.regexp? | <p>I tried this code:</p>
<pre><code>public static void main(String[] args) throws Exception {
String regexp = "[\\w-]+(\\.[\\w-]+)*@[\\w-]+(\\.[\\w-]+)*(\\.)[a-zA-Z]+";
String text1 = "my.name-here@my.domain-here.ext";
String text2 = "my.name-here@m@y.domain-here.ext";
String text... | 1 | 1,184 |
How to align text to left side in Flutter | <p>I'm trying to replicate the design but I'm not really sure how I can make all my text to align to the left just like the design instead of center but not sure how to do it so I will be really appreciated if I can get help or suggestion.</p>
<pre><code> Container(
decoration: BoxDecoration(
... | 1 | 1,244 |
Error handling in Teradata Stored Procedure | <p>I am trying to develop a stored procedure within TERADATA to handle and manage exceptions. </p>
<p>The stored procedure should raise the error to the caller, which is an SSIS Package.</p>
<p>I am trying to illustrate this by creating a stored procedure for illustration only. </p>
<p>I have these tables:</p>
<p... | 1 | 2,137 |
Charts js only showing 2 data points on sparkline | <p>Charts js only showing 2 data points on sparkline style charts that has 24 data points. Is this a chart size issue? I have another chart based of the same data that works fine... is this a tool tip issue or a sizing issue? I cannot seem to get this to display all the data. I have tried many configs but he problem pe... | 1 | 1,661 |
Maven, Webstart, and Java 8 Headaches | <p>I am trying to convert a project from compiling with Java 6 to Java 8. We are using the webstart-maven-plugin for which there is currently a workaround (<a href="http://mojo.10943.n7.nabble.com/jira-MWEBSTART-269-Java-8-support-td44357.html">http://mojo.10943.n7.nabble.com/jira-MWEBSTART-269-Java-8-support-td44357.... | 1 | 1,198 |
Incompatible Jackson version: Spark Structured Streaming | <p>I am trying to run a very simple Spark Streaming word count program which reads from a <code>Kafka</code> topic. Below is my code:</p>
<pre><code>val spark = SparkSession
.builder()
.appName("KafkaWordCount")
.config("spark.master", "local")
.getOrCreate()
import spark.implicits._
val df = spark
.readSt... | 1 | 2,084 |
Spring + Hibernate, nested exception is org.hibernate.QueryParameterException: Position beyond number of declared ordinal parameters | <p>This code not work correctly: </p>
<pre><code>getHibernateTemplate()
.find("from elephant.model.Setup s where s.settingName = ?",setupName);
</code></pre>
<p>Error: Position beyond number of declared ordinal parameters. Remember that ordinal parameters are 1-based! Position: 1; nested exception is ... | 1 | 2,719 |
Packet loss in socket programming java | <p>I am trying to send a file from client to server. Below is the code i have tried. But at times, there is a packet loss during the transfer. I am not sure where i am wrong.</p>
<p>SERVER SIDE CODE:</p>
<pre><code>public static void ReadAndWrite(byte[] aByte, Socket clientSocket,
InputStream inputStream,... | 1 | 1,341 |
Hibernate java.lang.NullPointerException | <p>I have nested Set to my Entities. Here is my code:</p>
<p><strong><code>MyClassA:</code></strong></p>
<pre><code>@Entity
@Table(name = "aaa")
public class MyClassA {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private int id;
@NotEmpty
@Size(min = 3, max = 255... | 1 | 8,281 |
Dynamically added controls missing during GridView RowUpdating | <p>I have a GridView with a TemplateField column that I put PlaceHolder controls in. During the DataBound event for the GridView I dynamically add a few CheckBoxes to the PlaceHolder. That works fine and displays as expected.</p>
<p>My problem is that during the RowUpdating event the PlaceHolder contains no controls... | 1 | 1,612 |
Firebase dependencies: "WARNING: API 'variant.getMergeResources()' is obsolete and has been replaced" | <p>I recently started using firebase and following the official guide I've add few dependencies to my project to be able to use it. Here are the dependencies I added to a newly created project:</p>
<pre><code>apply plugin: 'com.google.gms.google-services'
implementation "com.google.firebase:firebase-core:$firebaseCore... | 1 | 6,347 |
Two Pointcuts for two methods with the same name but different arguments | <p>Hei.</p>
<p>I'm writing an @Aspect for the logging of my persistence layer.</p>
<p>First some code which may show the error to an experienced developer ;)</p>
<pre><code>/** Interface of the class to observe. */
public interface PersistenceService {
public Serializable save(Serializable serializable);
p... | 1 | 2,101 |
Connect to Google drive API without user interaction using PHP | <p>I want to upload files to Google Drive using the API, but I need to do this using a cron job (autobackup of webfiles+sql to Google drive). </p>
<p>That means (I suppose) that I need to authenticate using something else than the user interaction method.</p>
<p>The example that I have been using: <a href="https://de... | 1 | 1,049 |
Avoiding stack overflow (with F# infinite sequences of sequences) | <p>I have this "learning code" I wrote for the morris seq in f# that suffers from stack overflow that I don't know how to avoid. "morris" returns an infinite sequence of "see and say" sequences (i.e., {{1}, {1,1}, {2,1}, {1,2,1,1}, {1,1,1,2,2,1}, {3,1,2,2,1,1},...}).</p>
<pre><code> let printList l =
Seq.i... | 1 | 1,694 |
Integrated Crashlytics Kit failed with Android project | <p>First of all, using Eclipse. It creates 4 projects(as libraries) after plugin installed and creates kit-libs with those 4 projects in my android-project. Then I built the project and the apk compiled successfully but ran failed. Failed log:</p>
<pre><code>12-22 17:50:07.377: E/dalvikvm(8452): Could not find class '... | 1 | 1,165 |
yum install apt error | <p>I got below errors when installing apt.
It seems I am missing require packges.</p>
<pre><code>Error: Package: apt-0.5.15lorg3.94a-5.el5.rf.x86_64 (rpmforge)
Requires: librpm-4.4.so()(64bit)
Error: Package: apt-0.5.15lorg3.94a-5.el5.rf.x86_64 (rpmforge)
Requires: librpmio-4.4.so()(... | 1 | 1,124 |
Weird .NET Assembly warnings when building my .NET web application | <p>When I build my ASP.NET web application I'm seeing the following weird warnings in my build output.</p>
<pre><code>1>------ Build started: Project: Hornet.Api, Configuration: Debug Any CPU ------
1> No way to resolve conflict between "Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6... | 1 | 4,811 |
Google services added Force close application with log cat error | <p>I have been developing a simple app for load a map view. I have followed the API. <a href="https://developers.google.com/maps/documentation/android/start#add_a_map" rel="nofollow">https://developers.google.com/maps/documentation/android/start#add_a_map</a></p>
<p>BUT </p>
<p>after the execution app goes force ... | 1 | 1,257 |
File Size Goes to Zero when Returning FileStreamResult from MVC Controller | <p>I am attempting to download a file from Azure Storage in the form of an CloudBlockBlob. I want to allow the user to select where to put the downloaded file, so I have written the following code to do this </p>
<pre><code>[AllowAnonymous]
public async Task<ActionResult> DownloadFile(string displayName)
{
A... | 1 | 1,030 |
How to parse JSON in applescript | <p>I'm using the following syntax:</p>
<pre><code>tell application "JSON Helper"
set Resultado to (fetch JSON from Request)
end tell
</code></pre>
<p>and I get:</p>
<blockquote>
<p>{results:{{formatted_address:\"Rua Dr. Carmelo D'Agostino, 628 - Jardim Rincão, São Paulo - SP, 02991-040, Brazil\", partial_mat... | 1 | 1,111 |
c++ - extract all files names - FindFirstFile | <p>I want to get a list of all files in particular directory.For that |I use the following code</p>
<pre><code>void GetFileListing(std::list<std::string>& listing, std::string directory, std::string fileFilter, bool recursively=true)
{
//check if directory exits:
DWORD attribs = ::GetFileAttributesA(... | 1 | 1,245 |
ASP.NET Forms Authentication Cookie not set in Safari | <p>I have a ASP.NET Web Service which exposes a method called DoLogin</p>
<pre><code>[WebService(Namespace = "http://rtns.ism.ec/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
[ScriptService]
public class UserManagerService : WebServiceBase
{
[WebMethod(EnableSession=tr... | 1 | 1,125 |
LWJGL - screen flickering on rendering cycle | <p>I am developing a 3D visualization application using LWJGL 2.8.5.
After reading the first tutorials from the project home page I also went deeper in my analysis reading an OpenGL book.
I see the typical procedure in OpenGL is drawing the scene in the init function, then simply calling the update of display in a lo... | 1 | 1,115 |
Google Cloud Platform Authentification: Recognized as end user anthentification despite using a service account | <p>Anyone can HELP? This one is really driving me crazy... Thank you!</p>
<p>I tried to use a google cloud platform API Speech-to-text.</p>
<p>Tools: WINDOWS 10 && GCP &&Python(Pycharm IDE)</p>
<ol>
<li><p>I've created a service account as a owner for my speech-to-test project and generated a key fro... | 1 | 1,190 |
Can't delete dynamically added table row | <p>I am pretty new to jquery and I want to add and delete table rows by
clicking the add or remove image.</p>
<p>The adding button works perfectly and a manually added row with a delete button works perfectly, but if I add a new row and then click the delete button for the new row, it does nothing.</p>
<p>I have trie... | 1 | 1,108 |
Django NoReverseMatch Reverse for DetailView | <p>My application is throwing an error when I redirect back to a detail view in Django 1.5.</p>
<blockquote>
<p>NoReverseMatch: Reverse for 'InventoryPlotDetailView' with arguments
'(3,)' and keyword arguments '{}' not found.</p>
</blockquote>
<p>It's getting the correct forestinventoryplot_id, but it seems that ... | 1 | 1,737 |
How to manually acknowledge RabbitMQ messages in Spring Cloud Stream? | <p>For stream-based services, I want the message to remain in the queue when the underlying service invoked within a <code>@StreamListener</code> fails. To that end, my understanding is that the only way to do this is to configure <code>spring.cloud.stream.bindings.channel_name.consumer.acknowledge-mode=MANUAL</code>.<... | 1 | 1,604 |
Fragments in Android- Cant dynamically edit text view | <p>I get an error when I try and use:
TextView tv = (TextView) getView().findViewById(R.id.textView1);
inside my FragmentOne class.</p>
<p>I'm new to fragments and im hoping to learn PagerView but i cant work out how to dynamically change my widgets.</p>
<p><strong>MainActivity.java</strong></p>
<pre><code>public cl... | 1 | 1,075 |
GridView onDataBinding | <p>i have a gridview that uses template where in that template i have two buttons:
here is my code:</p>
<pre><code> <asp:GridView ID="gvtransaction" runat="server" AutoGenerateColumns="False" Width="60%" OnDataBinding="gvtransaction_DataBinding">
<Columns>
<asp:TemplateFiel... | 1 | 2,067 |
how to disable Data Execution prvention(DEP) in ubuntu to execute shellcode | <p>am using ubuntu 14.04, 64bit.
i am studying shellcode writing. So to spawn a shell i wrote the following program</p>
<pre><code>segment .text
global _start:
_start:
jmp short GotoCall
shellcode:
pop esi
xor eax, eax
mov byte [esi + 7], al #here i get Error
lea ebx, [esi]
mov long [es... | 1 | 1,084 |
Getting an average in a function in Python | <p>I am trying to learn Python and I am stuck. Everything went fine until the last function which is the: </p>
<pre><code>def get_class_average(students):
</code></pre>
<p>up to that point it all works fine, but there, at the last function, I can't figure out how to make it work. I am trying to get the averages ... | 1 | 1,061 |
How to solve persistence unit on Tomcat | <p>I had this web project setup on Glassfish, but I decided to move to Tomcat since I was having some problems.</p>
<p>But now my persistence class is throwing the following error</p>
<pre><code>Caused by: javax.persistence.PersistenceException: No Persistence provider for EntityManager named JetCarBd
</code></pre>
... | 1 | 1,158 |
Access my AWS EC2 server index.html from external browser | <p>I've been setting up an AWS EC2 server this week, and I'm almost there with what I want to do. But opening up as a web server is proving to be a stumbling block. </p>
<p><strong>MY SETUP</strong></p>
<p>I have an AWS EC2 instance running Red Hat EL7. </p>
<p>I have an Apache server running on my instance:</p>
<p... | 1 | 2,102 |
How can I integrate this html within this php loop? | <p>I have this PHP code I am trying to integrate with the html layout below it however I can not figure it out, the php
code gets all status post and displays them in order but it then displays all comments that are associated with the status post so a status post could have
0 comments or it could have multiple comment... | 1 | 1,292 |
ggplot: y-axis (breaks) values from stacked proportional bar graph? | <p><strong>Problem solves! Thanks to all of you! (solution at bottom of this post)</strong></p>
<p>I like to create a stacked, proportional bar graph with ggplot. My problem are the breaks of the y-axis, which seem to relate to the percentage value of each bar tile, but does not range from 0 to 100 as expected.</p>
<... | 1 | 1,391 |
Adding a Horizontal Scroll View to a ListView | <p>I currently have an adapter that takes two images and a text view to add to a <code>listView</code>. I want to change this so that I can add a <code>horizontalScrollView</code> inside each list item that contains the images. Would there be any way to do this?
<img src="https://i.stack.imgur.com/IvCYR.png" alt="Horiz... | 1 | 3,483 |
JAVA AWS S3 multipart upload with inputstream and length of inputstream is unknown | <p><br/>
If content length is unknown then AmazonS3Client and TransferManager buffers the content in the memory,it results in out of memory exception.
<br/>So i wanted to go with multipart upload(Low Level of API).
But i didn't find ways to upload with inputstream(Examples are there with File).<br/>
I tried by passing ... | 1 | 2,032 |
How can I get a project in netbeans using the gradle plugin to find native libraries? | <p>I am trying to figure out gradle and the netbeans plugin. I have easily been able to put together simple projects, but when trying to convert a project that uses JOGL to gradle I have run into problems. I can get it to compile, but when I try to get it to run, it does not. I assume it is not finding the native libra... | 1 | 1,527 |
C++ project source code layout | <p>One of the popular way to organize project directory is more or less like this:</p>
<pre>
MyLib
+--mylib_class_a.h
mylib_class_a.cpp
mylib_library_private_helpers.h
mylib_library_private_helpers.cpp
MyApp
+--other_class.h
other_class.cpp
app.cpp
</pre>
<p><code>ap... | 1 | 1,100 |
manhattan skyline cover failing some test cases | <p>I am doing exercises on codility. I have spent two days on this problem with no improvement in my score. I get 100% on my correctness score, but fail some performance tests because it returns the wrong answer (not because of time or space complexity). My wrong results are always less than the expected answer. Can an... | 1 | 1,573 |
How to use LockScreen.SetImageUri to Set Windows Phone 8 Lock Screen Background | <p>I have an image in IsolatedStorage, and I would like to programmatically set it as the device lock screen background. My problem is that I cannot get the correct path required by <code>LockScreen.SetImageUri</code>. From referencing <a href="http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206968(v=vs.... | 1 | 1,435 |
Python FTP grabbing and saving images issue | <p><strong>EDIT: I got it working it just won't download anything...</strong></p>
<p>So here is my code simplified now:</p>
<pre><code>notions_ftp = ftplib.FTP(ftp_host, ftp_user, ftp_passwd)
folder = "Leisure Arts - Images"
notions_ftp.cwd(folder)
image = open("015693PR-com.jpg","wb")
notions_ftp.retrlines("RETR 015... | 1 | 1,559 |
Get all images from specific directory via GraphQL and Gatsby JS | <p>I have three folders with images that will be loaded in multiple carousel components. Here is the folder structure, I would get all the images that in the <code>collection</code> folders.</p>
<pre><code>src/
images/
collection1/
collection2/
collection3/
randomImage.jpg
randomImage.svg
... | 1 | 1,043 |
Button Command CanExecute not called when property changed | <p>I have a form with a textbox and a button.</p>
<p>When that textbox has it's value changed, the button command doesn't call the CanExecute method of it's command.</p>
<p>The command parameter is set but doesn't seem to change.
After load the window, the button remains disabled.</p>
<pre><code><TextBox Text="{B... | 1 | 1,394 |
MongoOperations save function not working properly | <p>I am using Sprind Data MongoDb, MongoTemplate and MongoOperations for saving on my data into the MongoDB.
Everything is working fine, there is no error or exception, but still the data is not inserted into the database. I am using MongoOperations' save method to save the data.</p>
<p>Here is relavant part my pom.x... | 1 | 2,516 |
Adding JPanels from other classes to the cardLayout | <p>I've got 3 windows in 3 separate classes and I would like to use cardLayout so that when you click the next button, the next window will appear. How do I add JPanels containing different elements to one cardLayout? This is the first window: (the only difference is the background though - but it represents the idea o... | 1 | 1,275 |
Can't install PHPREDIS on PHP7 with Ubuntu 14.04 | <p>I'm using PHP7 on ubuntu 14.04. Here is my PHP version information from terminal(using command PHP -v).</p>
<pre><code>PHP 7.0.11-1+deb.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.11-1+deb.sury.org~tru... | 1 | 8,062 |
How to convert mesh defined in a right-handed XYZ coordinate system to a left-handed XZY one | <p>I need a way to pass to these coordinate systems, but I'm struggling with the math.</p>
<p>Basically I have a mesh created "for OpenGL", so right-handed XYZ coordinate system, and I would like to load it in a different environment (the Unreal Engine 4) which uses a left-handed XZY coordinate system.</p>
<p>For now... | 1 | 1,356 |
Using CSV file in node-sqlite3 package | <p>I'm using the npm <code>sqlite3</code> package in my web application for a mock-up restaurant (for learning purposes). In my current implementation, when my local server is started, I'm creating a <code>menuItems</code> table, like so:</p>
<pre><code>var db = new sqlite3.Database(':memory:');
db.serialize(function(... | 1 | 1,206 |
The namespace '<global namespace>' already contains a definition for 'Handler" | <p>This HTml Code</p>
<pre><code><html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Capctha Image with Refresh Button</title>
<script type="text/javascript">
function RefreshCaptcha() {
var img = document.getElementById("imgcapt... | 1 | 1,218 |
JSF preRenderView called too many times | <p>A page/bean of mine has its <code>preRenderView</code> event fired twice on the first page load then <code>2 + n</code> times for each postback, where <code>n</code> is the number of postbacks (including the current one) that have occurred.</p>
<p>After reading a few other posts here, I moved <code><f:event type... | 1 | 1,691 |
Dozer mapping for complex objects | <p>I have 2 POJOs as shown below :</p>
<pre><code>package com.main.java.src;
public class SourceObj {
protected String name;
...
...
10 String objects
protected Addresses addresses;
...
...
getter and setter for all fields
}
---------
package com.java.main.src;
pu... | 1 | 1,984 |
Incorrect datetime value; Ruby on Rails | <p>I am running a test with mailers within Ruby on Rails, and I am getting the following errors:</p>
<pre><code>*********-C02MGBVJFD57:myapp ************$ bundle exec rake test:mailers
# Running:
EE
Finished in 0.110500s, 18.0995 runs/s, 0.0000 assertions/s.
1) Error:
UserMailerTest#test_account_activation:
Acti... | 1 | 1,650 |
VB Script to Check, Download, and Install Windows Updates from Microsoft with Exclusions in a text file | <p>I have a script that will check, download, and install windows updates. Got the basic script from <a href="http://gallery.technet.microsoft.com/scriptcenter/VB-Script-to-Check-and-620579cd#content" rel="nofollow">http://gallery.technet.microsoft.com/scriptcenter/VB-Script-to-Check-and-620579cd#content</a>.</p>
<p>... | 1 | 1,245 |
Onclick doesn't get triggered on CardView | <p>I have an <code>OnClickListener</code> on a <code>CardView</code>. The listener only works when I tap on a region outside the content(TextViews/ImageViews). I also have a linear layout inside my <code>CardView</code>. I wanted it to work when I tap anywhere on the <code>CardView</code>. Is there a better way to impl... | 1 | 3,533 |
Rfc2898DeriveBytes for .NET and Java generate different values | <p>I'm trying to use Rfc2898DeriveBytes for Android Java and .NET C# framework to generate key for encryption and decryption process. </p>
<p>The problem is in spite of that the input values are same, I'm getting different keys in .NET and Java. </p>
<p>.NET code:</p>
<pre><code>private void btnRfc2898DeriveBytes_Cl... | 1 | 3,098 |
Create user in keycloak through keycloak admin client returns IllegalArgumentException | <p>I want to create a user through keycloak admin client but I am getting: </p>
<blockquote>
<p>java.lang.IllegalArgumentException: RESTEASY003720: path param realm has not been provided by the parameter map</p>
</blockquote>
<p>Here's my bean for keycloak:</p>
<pre><code>@Bean
Keycloak keycloak() {
return Keycloa... | 1 | 1,061 |
How can jQuery select Table Row group by Colum's value? | <p>I have a problem regarding jQuery selector, where I have a Table structure as below (<strong>HTML Portion</strong>), and there is a link in table column for click and move the Table Row "UP" and "Down" by using jQuery (<strong>jQuery Portion</strong>, reference from <a href="https://stackoverflow.com/questions/15698... | 1 | 1,778 |
How to align my dropdown menu to center of the page? | <p>So if you want to see my menu go <a href="http://www.gameplay-universe.uphero.com/" rel="nofollow">here</a>.</p>
<p>Since I know you'll want my source, here's the HTML:</p>
<pre><code><div id='menu-container'>
<ul id='menu' class="menu">
<li class='active'><a href='/'><span>Home<... | 1 | 3,672 |
Don't get all users object in web application spring mvc + jpa + postgreSQL | <p>I uses spring MVC, JPA, postgreSQL develop Web Application</p>
<p>Here is some codes:</p>
<p>File: user.java</p>
<pre><code>@Entity
@Table(name = "USER")
public class User implements Serializable{
private Long id;
private String name;
private DateTime birthDate;
private String address;
private... | 1 | 9,209 |
c - setlocale() not working as expect | <p>The following program use <code>setlocale()</code> to take locale settings from environment variable, and print time.</p>
<p><strong>locale_test.c</strong>:</p>
<pre><code>// locale test
#include <stdio.h>
#include <locale.h>
#include <time.h>
// locale test
void locale_test() {
// use envi... | 1 | 1,423 |
Kubernetes pod and service not showing in prometheus target | <p>I have deployed prometheus 2.0 on my multi node kubernetes cluster made from kubeadm. While accessing the prometheus dashboard i am not able to view pods and service job even after configuring it in prometheus configuration yaml file.
prometheus target are as follow <a href="https://i.stack.imgur.com/jiQPG.png" rel=... | 1 | 2,395 |
Save postfix email copy in database | <p>I currently have a mail and webserver for a customer.
I am using <code>postfix</code> as mail server to relay email adresses to the correct users. for example, john.doe@mydomain.com is relayed to john.doe@gmail.com.</p>
<p>Now I would like to be able to display the mails on the website, but also keep sending them t... | 1 | 3,048 |
Pyenv, Python installation failure: OpenSSL development header is not installed | <p>I've been unable to use Pyenv to install Python on macOS (10.13.6) and have exhausted advice about common build problems. </p>
<p>pyenv-doctor reports: <strong>OpenSSL development header is not installed.</strong> Reinstallation of OpenSSL, as suggested in various related GitHub issues has not worked, not have vari... | 1 | 1,610 |
Valgrind shows memory leak in std::make_unique | <p>I'm using Valgrind to check for memory leaks.
Unfortunately I get a <code>Leak_DefinitelyLost</code> warning.</p>
<p>Attached is a simplified version of my code that reproduces the error:</p>
<pre><code>#include <iostream>
#include <vector>
#include <memory>
#include <unordered_map>
using ... | 1 | 1,436 |
Testing weighted categorical cross entropy for multiple classes in keras with tensorflow backend | <p>I have an issue that seems to have no straight forward solution in Keras. My server runs on ubuntu 14.04, Keras with backend tensorflow. It has 4 Nvidia Geforce gtx1080 GPUs.</p>
<p>I am trying to test the best available implementation of weighted categorical cross entropy(<a href="https://github.com/keras-team/ker... | 1 | 7,390 |
File drag and drop in IE11 and Firefox | <p>I am trying to create a drop box where image files can be dragged for upload. This works fine in Chrome and Edge. However, I am having troubles in Firefox and IE 11. For example, in IE 11, when I click on the browse button, a window pops up titled, "Choose File to Upload." If I click an Image and click "open" it... | 1 | 1,339 |
Checking database and avoid duplicate before inserting data by using laravel | <p>I am trying to check database before inserting data to avoid duplicate. I store the URLs in array, and inserting those URL in "link" column on a table. So first I am checking the column, istere same URL or not? If not, then insert the data with this code.</p>
<p>Here is my whole codes of database inserting;</p>
<p... | 1 | 2,624 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.