title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Deprecated - Methods with the same name as their class will not be constructors in a future version of PHP
<p>In php v 5 these php codes have no problem : </p> <pre><code>&lt;?php $ERRORS=array("INVALID_ERROR"=&gt;"Invalid/Unknown error", "ACCESS_DENIED"=&gt;"Access Denied", "INVALID_INPUT"=&gt;"Invalid Input", "INCOMPLETE_REQUEST"=&gt;"INCOMPLETE REQUEST" ); class ...
0
1,227
How to resolve Uncaught TypeError: Cannot set property 'outerHTML' of null?
<p>The error is not disabling the page from rendering correct results; however, it is quite annoying! I am showing the HTML and JavaScript portion of the code where the error is originating from. Please assist me with this as I have been attempting to resolve the issue for hours now without any effect! </p> <p>Code:</...
0
1,131
Destructuring to get the last element of an array in es6
<p>In coffeescript this is straightforward:</p> <pre><code>coffee&gt; a = ['a', 'b', 'program'] [ 'a', 'b', 'program' ] coffee&gt; [_..., b] = a [ 'a', 'b', 'program' ] coffee&gt; b 'program' </code></pre> <p>Does es6 allow for something similar?</p> <pre><code>&gt; const [, b] = [1, 2, 3] ...
0
1,071
Doctrine OneToOne remove entity
<p>When I remove entity, relations OneToOne has not been removed. Gallery has been removed successfully from database, but largeImage, mediumImage and smallImage not. </p> <p>What I do wrong?</p> <p>Delete action in controller:</p> <pre><code>public function deleteAction($id) { $em = $this-&gt;getDoctrine()-&gt;...
0
3,245
Wait for async function to complete
<p>My question is more or less like <a href="https://stackoverflow.com/questions/56689198/runtimeerror-task-got-future-future-pending-attached-to-a-different-loop">this</a>, which is really an X-Y problem leading back to <a href="https://stackoverflow.com/questions/55147976/run-and-wait-for-asynchronous-function-from-a...
0
1,290
parse an XML with SimpleXML which has multiple namespaces
<p>I have this ugly XML which has alot of namespaces on it, when I try to load it with simpleXML if i indicate the first namespace I'd get an xml object ,but following tags with other namespaces would not make it to the object. </p> <p>How can I parse this XML ?</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?...
0
1,246
Error: Timeout - Async callback was not invoked within timeout specified.... .DEFAULT_TIMEOUT_INTERVAL
<p>I have an angular service class : - </p> <pre><code>angular.module('triggerTips') .service('userData', function ($rootScope, $http, $log, $firebase) { this._log = { service : 'userData' }; // Synchronized objects storing the user data var config; var userState; // Loads the...
0
1,748
NameError: name '_mysql' is not defined after setting change to mysql
<p>I have a running Django blog with sqlite3 db at my local machine. What I want is to</p> <ol> <li>convert sqlite3 db to mysql db</li> <li>change Django settings.py file to serve MySQL db</li> </ol> <p>Before I ran into the first step, I jumped into the second first. I followed <a href="https://www.digitalocean.com/co...
0
3,431
Unable to run import tensorflow as tf
<p>I installed tensorflow using the following command.</p> <pre><code>pip install tensorflow </code></pre> <p>I am running a simple program which is</p> <pre><code>import tensorflow as tf node1 = tf.constant(3.0, tf.float32) node2 = tf.constant(4.0) # also tf.float32 implicitly print(node1, node2) </code></pre> <p>...
0
1,695
Ignore fields from Java object dynamically while sending as JSON from Spring MVC
<p>I have model class like this, for hibernate</p> <pre><code>@Entity @Table(name = "user", catalog = "userdb") @JsonIgnoreProperties(ignoreUnknown = true) public class User implements java.io.Serializable { private Integer userId; private String userName; private String emailId; private String encryp...
0
1,123
Angular Material - Custom Autocomplete component
<p>I'm trying to create my own custom angular material component that would be able to work with a <code>mat-form-field</code> control. </p> <p>Added to that, I'd like the control to use the <code>mat-autocomplete</code> directive.</p> <p>My aim is simply to create a better-looking <code>mat-autocomplete</code> compo...
0
3,209
Updating angular version
<p>I want to update my angular version from 1.4.9 to 1.5.6. While executing <strong>bower install angular#1.5.6 --save</strong> I am getting ECONFLICT Unable to find suitable version for angular.</p> <p>Here is the trace:</p> <pre><code>$ bower install angular#1.5.6 --save bower angular#1.5.6 cached https...
0
2,101
.tableExport is not a function
<p>still me with the same deal..</p> <p>So i'll explain it quick. I've all includes in my page so thats not it.</p> <p>I'm working on visual studio.</p> <p>I've created a table that i want to export in pdf or anything else. And so i'm using this :</p> <p><a href="https://github.com/hhurz/tableExport.jquery.plugin" ...
0
3,728
Python 2.7 CSV file read/write \xef\xbb\xbf code
<p>I have a question about Python 2.7 read/write csv file with '<code>utf-8-sig</code>' code, my csv . header is</p> <pre><code>['\xef\xbb\xbfID;timestamp;CustomerID;Email'] </code></pre> <p>there have some code(<code>"\xef\xbb\xbfID"</code>) I read from file <code>A.csv</code> and I want write the same code and head...
0
1,459
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
<p>The titled exception throwing in a table when I run a method where a row might be deleted there and after that when I try to clear the table rows. Can any one explain me why is this happening? I am not an expert in java. </p> <p>Exception:</p> <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexO...
0
2,860
JQuery how to clear all the input:textfields of a .class on a form. Not working for me
<p>I have a form, the first .class has 5 input:text boxes in it. I want to be able to clear all the text boxes with the click of a button. I've tried it a few ways and it's not working... here's what I've done.... (FYI, I have more classes in the form so I can't use .reset.</p> <h2>The Form...</h2> <pre><code>&lt;tab...
0
1,052
Class nor any of its super class is known to this context
<p>Im trying to understand this particular issue i'm having. Using Spring OXM here to implement a Soap WS Consumer.</p> <p>I'm only attaching the relevant information to explain the problem.</p> <p>LoginWsConfiguration,</p> <pre><code>@Configuration public class LoginWsConfiguration { @Inject private Onboar...
0
2,558
Using the g++ C++ compiler from cygwin
<p>I am trying to execute my first &quot;Hello World!&quot; in C++. I am using Windows XP, and I have installed cygwin, in which the g++ C++ compiler is installed. I have written a small hello-world program, and saved it in hello.cpp. From the command prompt I write:</p> <blockquote> <p>g++ hello.cpp</p> </blockquote> ...
0
1,103
Convert image to bitmap
<p>I want to create a bitmap image of particular image but i want to resist the width and height of the bitmapimage. i am using the following code ......</p> <pre><code>image2 = BitmapFactory.decodeResource(getResources(), rid); Log.w("DEBUG","which is null:image i " + i.getWidth() + " OR " +i.getDrawable().g...
0
2,431
Safari not rendering SVGs to the desired size/height (SVGS are clipped)
<p>I have some responsive inline SVGs I made. Their sizes render as I want them to in Chrome, Firefox and Edge, but in Safari they escape their containers/are cut off. For some reason their containers doesn't stretch to accommodate them. The following screenshot demonstrates the unwanted, cut-off Safari rendering: </p>...
0
1,932
Retrieve the values from a list to Gridview in SharePoint Webpart?
<p>I have a List called <strong>Registration</strong> and the following are the columns of my list.</p> <p><strong>Column</strong> : <strong>Type</strong></p> <p>Employee Name : Person or Group<br> Manager Name : Person or Group<br> Practice Name : Single line of text<br> Program Name : Lookup<br> Status ...
0
1,537
Jenkins How to find if a given slave is running a Job
<p>I have this unique requirement to check if the given node is running a job or not. I am thinking of using groovy as it looks easiest option.</p> <p>I have found this answer to be useful.</p> <p><a href="https://stackoverflow.com/questions/23761479/how-can-i-check-via-a-script-or-a-plugin-in-jenkins-whether-a-slave...
0
1,095
cant connect to Local mongodb server with nodejs
<p>when trying to connect to mongo db from the project directory i get this</p> <p><em>/Users/tadeothompson/Documents/design work/stressful/site/node_modules/connect-mongo/lib/connect-mongo.js:133 throw err; ^ MongoError: cannot connect to server at Collection.listIndexes (/Users/tadeotho...
0
1,337
What is contained in "./META-INF/CERT.RSA" file for an Android app?
<p>I am new to cryptography certificate and am trying to figure out the components of "CERT.RSA" file under "./META-INF" folder for an Android application.</p> <p>To my understanding, "CERT.RSA" is used to verify the signiture of "CERT.SF" file under the same directory. It should consist of the certificate meta info (...
0
1,362
How to fill progress bar in a specific amount of time?
<p>I have the following splash screen for my app:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:orientation=&quot;vertical&quot; android:layout_width=&quot;match_parent&quot; and...
0
1,549
ElasticSearch - Searching For Human Names
<p>I have a large database of names, primarily from Scotland. We're currently producing a prototype to replace an existing piece of software which carries out the search. This is still in production and we're aiming to get our results as closes as possible to the current results of the same search.</p> <p>I was hoping...
0
2,452
socket-based simple python chat program
<p>I am writing a simple socket-based chat program that allows the server to send and receive message to the client. The client can send message to server but when I try sending a message from the server, it crashes saying that 'file' objects has attribute 'recv'.</p> <h1>Server.py</h1> <pre><code>import socket impor...
0
1,076
Failed to convert string in java.util.Date with @DateTimeFormat(pattern="dd/MM/yyyy")
<p>I have a simple <code>POJO</code> with a Date field. I want to bind the object with values from a form.<br> In the form I'm using <code>jquery ui datepicker</code> with date format("dd/mm/yyyy")<br> I have <code>console.log</code> the value and is a string : 13-11-2014<br> I'm using <code>spring 4.0.7</code><br> I h...
0
2,780
Can a website detect when you are using Selenium with chromedriver?
<p>I've been testing out Selenium with Chromedriver and I noticed that some pages can detect that you're using Selenium even though there's no automation at all. Even when I'm just browsing manually just using Chrome through Selenium and Xephyr I often get a page saying that suspicious activity was detected. I've check...
0
1,697
Nginx doesn't get host from embedded DNS in docker 1.10.1
<p>I have several services running in docker containers, and one nginx server in front of them, all containers within the same docker network. Before docker 1.10 I created a dnsmasq container and within nginx set resolver to it so my services can be discovered from nginx.</p> <p>But after upgrading to docker 1.10.1, t...
0
1,133
Use JSch sudo example and Channel.setPty for running sudo command on remote host
<p>I have used JSch Sudo example under following link:</p> <p><a href="http://www.jcraft.com/jsch/examples/Sudo.java.html" rel="nofollow noreferrer">http://www.jcraft.com/jsch/examples/Sudo.java.html</a></p> <p>And changed it a bit and get rid of all the dialogs as I have to use it for EC2 instances using PuTTY.</p> ...
0
1,231
Run-time Error 458, Variable uses an Automation Type not supported in Visual Basic
<p>Basically, I'm getting this error when I try to call a function inside the upnp.dll using VB6, where upnp.dll is returning a datatype that is not supported by VB6. Previously, this same error occured but on a different function/variable, and the resolution was to open up upnp.dll in oleview.exe (to view Type Library...
0
1,614
Chrome 'please match the requested format' validation message
<p>I am playing around with HTML 5 validation and localization and have managed to get some code working that allows me to localize the HTML 5 validation error messages (see below). My problem is, in Chrome when matching against a pattern you still get a pop up in English (or I guess whatever language you have Chrome ...
0
2,901
.htaccess - RewriteCond: bad flag delimiters
<p>I'm using .htaccess to block some bad request to my site. Everything worked as expected on my local server(XAMPP) but when I uploaded it to the host(shared) I got this error: <code>RewriteCond: bad flag delimiters</code></p> <p>Here is the code that's in my .htaccess</p> <pre><code>ServerSignature Off Options -Ind...
0
1,808
Read/Write String from/to a File in Android
<p>I want to save a file to the internal storage by getting the text inputted from EditText. Then I want the same file to return the inputted text in String form and save it to another String which is to be used later.</p> <p>Here's the code:</p> <pre><code>package com.omm.easybalancerecharge; import android.app.Ac...
0
1,045
TLS 1.2 was supported in Java 8 but not in Java 7
<p>When I tried to connect a URL (one of vendors URL which supports TLS 1.2 and worked fine previously with Java 7) by using Java 7, I found bellow Exception:</p> <pre><code>javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ...
0
6,133
sequelize with postgres database not working after migration from mysql
<p>I change MySQL databese into postgreSQL in sequelize. But After migration I have issue with upper and lowercase first letter in Table or Model... Before my MySQL version was working properly but after migration I got error message: <code>500 SequelizeDatabaseError: relation "Users" does not exist</code></p> <p><st...
0
1,374
Ajax.BeginForm and validation
<p>Client side validation is not working for me in Ajax.BeginForm </p> <p>This is my code:</p> <pre><code>&lt;div id="report"&gt; &lt;div id="projectReport"&gt; &lt;div &gt; @{ Html.EnableClientValidation(); } @using (Ajax.BeginForm("AnalyticsDates", ne...
0
1,135
A PHP Error was encountered Severity: Notice Message: Undefined property: Site::$site_model
<blockquote> <p>A PHP Error was encountered</p> <p>Severity: Notice</p> <p>Message: Undefined property: Site::$site_model</p> <p>Filename: controllers/site.php</p> <p>Line Number: 13 </p> <p>Site Controller site.php Fatal error: Call to a member function delete_row() on a non-object in C:...
0
2,363
CLion - CMake error while creating new project
<p>I just installed CLion on my computer with MinGW and decided to create a simple Hello World project to test it, but when I create it the console outputs an error:</p> <pre><code>&gt;"C:\Program Files (x86)\JetBrains\CLion 2016.3.3\bin\cmake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" "...
0
1,108
Linux: controlling where `ld` searches for .o object files?
<p>Ok, this is the situation: I'm trying to use some older software: works fine on Ubuntu Lucid, fails on Natty. </p> <p>So, I <code>strace</code>d around a bit, and it turns out that this software calls <code>ld</code>, and <code>ld</code> eventually fails with: </p> <pre><code>.../ld: crt1.o: No such file: No such ...
0
1,049
Plotly Value error - Invalid property for colour
<p>I have been experiencing errors while generating charts using Plotly and it seems to be affecting most of the charts I try producing on it. The error also seems to be a duplicate across all the failures. I am using Jupyter notebook (Anaconda 3, Python 3.6).</p> <p>Code that fails to generate output is found below (...
0
3,235
Using WallpaperManager in Android to set wallpaper
<p>Below are my codes, I want to use wallpaper manager to set as wallpaper. I'm using <a href="https://github.com/nostra13/Android-Universal-Image-Loader" rel="noreferrer">Universal Image Loader</a>, but i dont know how implement wallpaper manager. My setWall() is not working, kinda confusing. </p> <pre><code> impo...
0
2,732
javascript : Permission denied to access property on cross-origin object despite having cors enables
<p>I have a website "mydomain.com" including an iframe on from a different subdomain "sub.mydomain.com" containt a wordpress page. Some js in the page hooks some buttons of the iframe :</p> <pre><code> var target_height = parseInt(obj.contentWindow.document.body.scrollHeight); obj.style.height = target_heig...
0
1,718
How do I format x-axis label in highcharts
<p>I have the following highchart output: <img src="https://i.stack.imgur.com/gFCQc.png" alt="enter image description here"></p> <p>I just want to see the Feb-10 instead of Feb-10 18:00 in x-axis label. So all the xaxis label will be like Feb-10, Feb-12, and so on. But The tooltip will be the same as the output screen...
0
1,594
convert xml to Java object using jackson
<p>I want to convert XML to JSON using Jackson library. I have tried below code to get Json as below using jackson but I can't. if I tried using json, I can but I want to know how to do with Jackson library.</p> <pre><code>@RequestMapping(value="/convertXMLtoJson",method=RequestMethod.POST,consumes = MediaType.APPLICA...
0
3,185
Error :- Execution failed for task ':app:dexDebug' in android studio
<p>I newly Android project started a new default project. Everytime I try to start the app this error occurs:</p> <p>build.gradle(Module:app)</p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.exampl...
0
1,403
MIPS Using Bit Shift Operators to Print a Decimal in Binary
<p>I've read numerous threads here and elsewhere online concerning this topic. Great topics regarding bit shifts (not necessarily pertaining to Assembly but the topic in general are: <a href="https://stackoverflow.com/questions/141525/what-are-bitwise-shift-bit-shift-operators-and-how-do-they-work">What are bitwise sh...
0
1,580
Why does my ASP.NET 4.0 web service fail with a compliation error with NetworkService but succeed with LocalSystem
<p>I started getting server-side compliation errors indicating that the identity of my web service's application pool could not access files within a temporary ASP.NET folder. If I change the identity of the application pool from NetworkService to LocalSystem, the problem goes away. I can't see any issue with the sec...
0
2,905
Java Simple Calculator
<p>I have made this calculator program in Java. This works well only when two numbers are calculated at one time. That means to get the sum of 1+2+3 you have to go this way : press 1 press + press 2 press = press + press 3 press =</p> <p>and it calculates it as 6.</p> <p>But I want to program this so that I can get t...
0
3,999
Loading WPF Style from Resource File
<p>I am trying to load WPF Style from other file actually from WPF Custom Control Library but i am failing to load here is my solution.</p> <p>The solution contains two projects </p> <ol> <li><p>WpfTestControls of Type WPF Custom Control Library</p></li> <li><p>WpfTestApp of type WPF Application Library which has ref...
0
1,065
Errors installing plyr / rcpp
<p>I have two computers and in one of them I can't manage to install the plyr package for R. This is the error I get:</p> <pre><code>* installing *source* package ‘plyr’ ... ** package ‘plyr’ successfully unpacked and MD5 sums checked ** libs g++ -I/usr/share/R/include -DNDEBUG -I"/usr/lib/R/site-library/Rcpp/includ...
0
1,154
JPA User, Role, manyToMany hibernate relationship
<p>I'm using JPA+Hibernate+SpringBoot+PostgreSQL, to create a relationship between different entities, but I am getting a ton of errors, including what looks like SQL errors, but the application started up anyway. Did I code the manyToMany relation correctly? There could be many users, and each user can have multiple r...
0
2,739
ELF file exists in /usr/bin but turns out "-ash: file: not found"
<p>i'm trying to install some new software package under openwrt using opkg,and the installation has been successful,and we can see the binary file really exists in the /usr/bin,and i have trird the lld check but turns out the same . as below:</p> <pre><code>root@OpenWrt /usr/bin [#]# opkg files cfdisk Package cfdisk ...
0
1,689
Android: java.lang.ClassCastException: android.widget.imageView cannot be cast to android.widget.textView
<p>I can't fix this problem on my listview template: i have the error as in the title of my post, but i won't cast imageview to textview. Here's my code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match...
0
1,691
ERROR in node_modules/@angular/fire/firebase.app.module.d.ts?
<p>I Get this Error after the completion of compiler.I have tried uninstalling and reinstalling the firebase @angular/fire but can't get it fixed . I am confused about the error.I can't find it's solution</p> <pre><code>&quot;@angular/cli&quot;: &quot;~10.2.0&quot;, &quot;firebase&quot;: &quot;^8.0.0&quot;, &quot;@angu...
0
1,176
Error: Cannot read property 'checked' of undefined
<p>I'm trying to store the result of checked checkboxes in local storage but when I try to save I get the error mentioned above. </p> <p>Not quite sure what is undefined since I see the property in my code. Here's the code:</p> <pre><code>var getCheckboxValue = function (){ var checkboxes = document.forms[0].fea...
0
1,222
Create image from Huffman code - Matlab
<p>I have a project about image compression in Matlab. So far i have successfully implemented Huffman encoding to the image which gives me a vector of binary codes. After that i run Huffman decoding and i get a vector which contains the elements of the image compressed. My problem is that i can find how is possible fro...
0
1,363
React Native TypeError: TypeError: undefined is not an object (evaluating 'this.props.data.map')
<p>I decide to reuse a component that I thought would work for my new application that is pulling in a third-party API.</p> <p>The reusable component in question is iterating <code>this.props.data.map()</code> which is evaluating as being undefined in my <code>components/Swipe.js</code> file:</p> <pre><code>import Re...
0
5,917
How do I use Moq and DbFunctions in unit tests to prevent a NotSupportedException?
<p>I'm currently attempting to run some unit tests on a query that is running through the Entity Framework. The query itself runs without any issues on the live version, but the unit tests are always failing.</p> <p>I've narrowed this down to my usage of DbFunctions.TruncateTime, but I don't know of a way around this ...
0
1,403
StaTaskScheduler and STA thread message pumping
<p>TL;DR: <em>A deadlock inside a task run by <code>StaTaskScheduler</code>.</em> Long version:</p> <p>I'm using <a href="http://blogs.msdn.com/b/pfxteam/archive/2010/04/07/9990421.aspx"><code>StaTaskScheduler</code></a> from <a href="http://code.msdn.microsoft.com/ParExtSamples">ParallelExtensionsExtras</a> by Parall...
0
2,823
Hibernate error: current transaction is aborted, commands ignored until end of transaction block
<p>I randomly see the same error in the catalina.out log:</p> <pre><code>WARNING: SQL Error: 0, SQLState: 25P02 Sep 8, 2010 11:50:13 PM org.hibernate.util.JDBCExceptionReporter logExceptions SEVERE: ERROR: current transaction is aborted, commands ignored until end of transaction block org.hibernate.exception.GenericJD...
0
2,039
How to create kafka compacted topic
<p>I have a <code>Kafka</code> application that has a <code>producer</code> who produces messages to a topic. A <code>consumer</code> then takes the messages from the topic, does some logic to the given messages and then produces them to another topic. I'm using <code>ProducerRecord</code> and <code>ConsumerRecords</co...
0
2,807
Error creating transactional connection factory during running Spark on Hive project in IDEA
<p>I am trying to setup a develop environment for a Spark Streaming project which requires write data into Hive. I have a cluster with 1 master, 2 slaves and 1 develop machine (coding in Intellij Idea 14).</p> <p>Within the spark shell, everything seems working fine and I am able to store data into default database in...
0
11,025
How to delete table row using Javascript
<p>I have created new rows using Javascript <code>function addRow(id)</code>, but I can't delete it. When I click the remove button, nothing happens. What am I doing wrong? I'm grateful for any advice.</p> <pre><code>&lt;table&gt; &lt;tr&gt; somethingElse &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="5"&gt; &l...
0
1,971
MS Chart Control Scale - Line graph show 12 months
<p>On my X Axis, I have months. The chart shows up to 11 points, i.e. Jan - Nov of the same year, but when I add 12 points (Jan - Dec), it will do an auto label thing and change the interval for every 4 months.</p> <p>How can I change the graph so that it shows 12 months before it does the auto labels?</p> <p>Here is...
0
2,101
Javascript: How to loop through files
<p>I am making an Illustrator CS6 Javascript that does the following:</p> <ol> <li>Open a folder of Illustrator files </li> <li>Open each file in the folder (these files are called the source files) </li> <li>Select all the contents of the source file </li> <li>Copy the contents of the source file </li> <li>Create a n...
0
1,241
File Upload Control is not working
<p>File name and extension are empty. Please help.</p> <p><strong>ASPX FILE CODE:</strong></p> <pre><code>&lt;tr&gt; &lt;td colspan="3" style="height:0px"&gt; &lt;div id="trFile" runat="server" class="inlineGridAddAddress"&gt; &lt;table cellpadding="0" cellspacing="0"&gt; &lt;tr&gt; &lt;...
0
1,732
In a java REST API, using PATCH vs PUT to update an entity
<p>I am about to start development on a new rest api in Java. My question is about the use of PATCH - Why?</p> <p>Lets say, we have an entity named Address.java</p> <pre><code>public class Address { @Id private Long id @NotNull private String line1; private String line2; //optional ...
0
1,310
"Illegal instruction: 4" shows up in OS X Lion
<p>Some C++ application compiled and run seamlessly in OS X Snow Leopard, but I changed recently to OS X Lion, and here, although there is no compilation error, when I try to run it I get the error "Illegal instruction: 4", I have no clue, what could be the reason?</p> <p>PS: </p> <p>These are the linking flags I use...
0
3,938
How to fix the "Found Netty's native epoll transport in the classpath, but epoll is not available. Using NIO instead" warning?
<p>I am using Cassandra and, during startup, Netty prints a warning with a stack trace:</p> <blockquote> <p>Found Netty's native epoll transport in the classpath, but epoll is not available. Using NIO instead."</p> </blockquote> <p>The application works normally, but is there a way to fix the warning? </p> <p>Here...
0
2,910
getDate with Jquery Datepicker
<p>i am trying to get date from my implementation of jquery date picker, add it to a string and display the resulting image in my div. Something however is just not working. Can anyone check out the code and have a look at it? </p> <p>The code is supposed to take the date from date picker, combine it in a string which...
0
1,211
Play mp3 file from raw resource on click of a TextView
<p>I want to play a certain mp3 file when a text is clicked. For example, I clicked the word &quot;Nicholas&quot;, the app have to play nicholas.mp3.</p> <p>Sorry for my messy code, I'm new to android dev:</p> <pre><code>package com.example.playword; import java.io.IOException; import android.app.Activity; import and...
0
1,987
HTTP Status 500 - Servlet.init()
<p>MyResource </p> <pre><code>@Path("myresource") public class MyResource { /** * Method handling HTTP GET requests. The returned object will be sent * to the client as "text/plain" media type. * * @return String that will be returned as a text/plain response. */ @GET @Produces(M...
0
3,212
label.setText NullPointerException
<p>Hi first time here but here goes:</p> <p>I have a JavaFX application that changes the FXML UI labels dynamically and the data is pulled from a Player class.</p> <p>The two classes in question are <code>Player.java</code> and <code>InterfaceHandler.java</code>.</p> <p>The player class stores player details and I w...
0
1,247
Displaying Integer value in a Label , int to String conversion?
<p>How to display an integer value in a <code>UILabel</code> in <code>ViewDidLoad</code>? I did for text and date and image but how to convert int to string. I was trying with following code</p> <pre><code> NSString* label=[aa stringWithFormat:@"%d",((Comments *) [self.list objectAtIndex:0]).noofcomm]]; [self.commen...
0
2,107
Chartjs - keeping 2 graphs aligned side by side
<p>Jsfiddle: <a href="http://jsfiddle.net/8gvkmLxL/" rel="noreferrer">http://jsfiddle.net/8gvkmLxL/</a></p> <p>I have 2 bar graphs that are next to each other and I want them to be aligned relative to their x-axis. I'm having trouble achieving this as the graph height changes according to the length of the labels (see...
0
1,805
How do I use NTLM authentication with Active Directory
<p>I am trying to implement NTLM authentication on one of our internal sites and everything is working. The one piece of the puzzle I do not have is how to take the information from NTLM and authenticate with Active Directory.</p> <p>There is a <a href="http://www.innovation.ch/personal/ronald/ntlm.html" rel="nofollow...
0
1,034
Check if dynamically loaded images are complete
<p>I have a code that post to a php script that reads all files in a folder and returns them, all of them are img's, the jquery parses the information, on a var that's an array each image is saved as an img object with the src , width, height and attr, on successed I want to check if each image is loaded and then final...
0
1,565
How to pass and get php value to jquery
<p>I have one problem in passing the value, and I can't pass it through the query string. My PHP is:</p> <pre><code> &lt;div class="menu"&gt; &lt;div class="sub_menu_header"&gt;ABOUT&lt;/div&gt; &lt;?php $query1="SELECT id,title FROM aboutus_tbl"; $resulto=mysql_query($query1);...
0
2,502
bootstrap, white line under navigation menu, active link
<p>I have this: _Layout.cshtml</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt; &lt;title&gt;@ViewBag.Title - LolaBikeMen&lt;/title&gt; @Styles.Render("~/Content/css") @Scripts....
0
4,420
node.js & express - global modules & best practices for application structure
<p>I'm building a node.js app that is a REST api using express and mongoose for my mongodb. I've got the CRUD endpoints all setup now, but I was just wondering two things.</p> <ol> <li><p>How do I expand on this way of routes, specifically, how do I share modules between routes. I want each of my routes to go in a new...
0
2,419
Using GoogleApiClient + LocationServices not updating
<p>I'm just trying to do a simple 'tutorial' app to get my phone's location (to learn how to use it later in some other app) but I'm just not getting anywhere.</p> <h3>What I've done</h3> <ol> <li><p><strong>Android Developer's tutorial :</strong> First of, I followed the tutorial in the Android's developer site (dev...
0
1,865
How can I get a Content Query Web Part to show items from more than one type of list?
<p>I am trying to use a Content Query Web Part to create a "What's New" page in Sharepoint 2010. The goal of this page is to display any documents that have been uploaded in the last 14 days. The trick is that these documents could belong to any number of lists that are defined in any number of list definitions. The...
0
1,242
GMaps API V3 - Multiple Markers & InfoWindow
<p>I know, it is a recurrent but... I have a big problem with my multiple markers : all of them have the same title and the same infowindow content.</p> <p>I've searched on many websites, but I didn't find where is the problem in my code. I hope you'll be able to help me (I am sure it is the case !)</p> <p>This is m...
0
2,639
how to change tablayout selected text color in custom tablayout
<p>i have viewpager that have 4 tab which implement it with tablayout. because i wanted to change the font to custom font i used a custom tab layout. now the problem is that the selected tab text color wouldn't change with tabSelectedTextColor. </p> <p>this is my java code:</p> <pre><code>package com.example.noavaran...
0
3,499
JSON request with JQuery/Ajax with Spring
<p>I'm very new to JSON/Spring MVC and am trying to get a simple example of an AJAX call to a Spring MVC controller - but I keep returning an error of 400 - Bad Request. </p> <p>After scouring the Internet, I've found that this is usually caused by not setting the appropriate content type - but [I believe] I have do...
0
1,691
Internet Explorer 11 ignores list-style:none on the first load
<p>I am using the Superfish jQuery plugin for my menu. In Chrome and in mobile Opera emulator it works fine but in Internet Explorer 11 the CSS property <code>list-style:none</code> only applies to the top level of the menu and not to the toggled submenus, although in the dev tools view it seemingly applies to the appr...
0
1,422
CodeIgniter showing only default controller
<p>I am using Codeigniter in Local <strong>WAMP</strong>. Here code is working fine. But i upload in Cpanel ( inside of example.com, folder name call '<code>mysite</code>'). There I changed as,</p> <ul> <li>db_name (config/database.php)</li> <li>db_user_name (config/database.php)</li> <li>db_password (config/databas...
0
1,261
How do I load a local image using JS?
<p>I want to load two separate images in my script. I've accomplished it using:</p> <pre><code>&lt;img src="iphone4.png" id="img1"&gt; &lt;img src="screenshot.png" id="img2"&gt; &lt;script&gt; window.onload = function () { var img1 = document.getElementById('img1'); var img2 = document...
0
1,145
RequestEntityTooLarge response from Web Api when trying to upload a file with HttpClient
<p>I'm trying to create a web service to upload files by Post with Asp.Net Web Api. These are the implementations for Client and Web Api respectively:</p> <p>Client:</p> <pre><code>using (var client = new HttpClient()) { client.BaseAddress = new Uri("https://127.0.0.1:44444/"); using (var content = new...
0
1,143
Android Two Fragments in Same Activity
<p>I am aware of the following post: <a href="https://stackoverflow.com/questions/4949216/using-multiple-fragments-in-an-single-activity">Using Multiple Fragments in an single activity</a></p> <p>What I am looking for is a specific answer to a specific problem. The result of the following code is a blank FragmentActiv...
0
2,857
Unable to set Pthread Priority
<p>I am unable to set Pthread priority using <code>pthread_attr_setschedparam()</code>. I have tried to resolve this issue but couldn't do it. I also consulted my text book which also uses the same function. I copied this code from book. Can you tell me how to set thread priority?</p> <p>Here is the code:</p> <pre><c...
0
1,030
Deploy web applications to JBoss from Eclipse, with dependencies
<p>I have a project developed under Eclipse with JBoss tools installed. When I deploy the application to the Jboss server, some helper jar files which are made available to the project through Maven are not copied inside the WEB-INF/lib folder. Hence, I get a <code>ClassNotFound</code> exception at runtime.</p> <p>Is ...
0
3,806
Remove spacing between items in RecyclerView android
<p>I am using a RecyclerView to show a List of Items and I need to remove the default spacing between Items. I'm trying to set a RecyclerView.LayoutParams and set margins to zero on my LinearLayoutManager but didn't work!</p> <p>Here is my code:</p> <p><strong>layout/fragment_recycler.xml</strong></p> <pre><code> ...
0
1,133
Hibernate Criteria Query for multiple columns with IN clause and a subselect
<p>I have a question very similar to <a href="https://stackoverflow.com/questions/12411894/hibernate-criteria-query-for-multiple-columns-in-in-clause">this question</a>.</p> <p>I am selecting all data from table1 for all matching unique combinations of field3 and field4 from table2.</p> <p>Here is my stripped down SQ...
0
1,290
Elasticsearch docker image with data persistence
<p>I am having an issue with data persistence on my Elasticsearch docker image on my linux AWS EC2 machine.</p> <p>I am launching the container like so:</p> <pre><code>docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 \ -v $PWD/elasticsearch/data:/usr/share/elasticsearch/data \ -e "discovery.type=singl...
0
2,387
Merge multiple word documents into one Open Xml
<p>I have around 10 word documents which I generate using open xml and other stuff. Now I would like to create another word document and one by one I would like to join them into this newly created document. I wish to use open xml, any hint would be appreciable. Below is my code:</p> <pre><code> private void CreateSa...
0
1,978
Begin stream simple mp4 with ffserver
<p>I want to stream a mp4 and for this I read about ffserver.<br> So I search and read ffserver documentations but still cant stream a simple file.<br> For this I done these:<br> 1-A win 8 and last VLC installed.<br> 2-A Ubuntu 13 with last ffmpeg package.<br> 3-A ffserver.conf file saved to /etc/ and copied from <a hr...
0
1,732
VS Code 2017 - C# Error - "Some projects have trouble loading. Please review the output for more detail"
<p>So I've installed the C# extension and .Net and everything else according to the tutorials on Internet, I have a workspace... and have done some other stuff like inputting some dotnet commands in terminal. Everything worked fine with no problem, but whenever I open the script/file... the one which is created initial...
0
1,966