title stringlengths 13 150 | body stringlengths 749 64.2k | label int64 0 3 | token_count int64 1.02k 28.5k |
|---|---|---|---|
Graphite. Some metrics lost, but seen in tcpdump | <p>I'm using graphite for pretty long time, and first time facing issue with some metrics getting… lost?
Through <code>tcpdump -nA dst port 2003</code> I can see that metrics are delivered to Graphite node.
Also, some of them are getting created in whisper database, and seen in <code>/var/log/carbon/updates.log</code>... | 2 | 1,065 |
ModuleNotFoundError: No module named 'keras' using tensorflow 2.6.0 in Anaconda | <p>I am trying to learn tensorflow and use a book to gain some first insights. The code I am currently trying to get to run can also be found here:</p>
<p><em><a href="https://github.com/chrismattmann/MLwithTensorFlow2ed/blob/tensorflow2/TFv2/ch03/Listing%203.1-3.2.ipynb" rel="nofollow noreferrer">https://github.com/ch... | 2 | 12,394 |
XMonad on Nix - cannot find xmonad-contrib | <p>I am trying to use nix on ubuntu, with XMonad as my window manager.
I have this working well on one host using nixOS, but I have a second device that isn't yet ready for nixOS. nix on top of Ubuntu is mostly working well there, but xmonad cannot find contributory libraries.</p>
<p>The relevant packages are install... | 2 | 1,267 |
stat_sum and stat_identity give weird results | <p>I have the following code, including randomly generated demo data:</p>
<pre><code>n <- 10
group <- rep(1:4, n)
mass.means <- c(10, 20, 15, 30)
mass.sigma <- 4
score.means <- c(5, 5, 7, 4)
score.sigma <- 3
mass <- as.vector(model.matrix(~0+factor(group)) %*% mass.means) +
rnorm(n*4, 0, mass.si... | 2 | 1,159 |
python 3.6 JsonResponse issue | <p>So i recently migrated to Python 3.6 and Django 1.11 and my JsonResponse code looked like this:</p>
<pre><code> return JsonResponse({'status': '1'})
</code></pre>
<p>it worked fine but after the migration i started getting this error:</p>
<blockquote>
<p>TypeError: Object of type 'bytes' is not JSON serializ... | 2 | 1,316 |
Why composer in laravel no install package in wsl 2 docker | <p>I'm trying install laravel package via composer in WSL 2 docker with <code>sail</code> laravel CLI, but composer not install package, why?</p>
<p><strong>Error screenshot</strong>
<a href="https://i.stack.imgur.com/zSkto.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zSkto.png" alt="enter image d... | 2 | 1,167 |
Google plus login activity with fragment | <p>Hello i have a problem to integrate the login google plus in my app. I call an Activity Login that deals with the integration with social networks. I have already integrated the code of the login of facebook and went to fruition, but when I try to integrate google plus I didn't succeed. The activity consists of a fr... | 2 | 2,322 |
Avoid attaching debugger in Qt5 QTest | <p>I have a small <code>QTest</code> case that crashes. Even if I run this as a normal program (no debugger) it seems that <strong>GDB</strong> is attached by qmake/QtCreator/<em>something</em> when it finds that the program crashed.</p>
<p>However, I would like to run my QTest without this happening. How can I config... | 2 | 9,042 |
Applying google currency converter to all prices on a page | <p>what I am trying to do is convert all prices on a page with jquery, ajax and google currency.</p>
<p>I found this, it's working fine.</p>
<pre><code>$('#submit').click(function(){
//Get the values
var amount = $('#amount').val();
var from = $('#from').val();
var to = $('#to').val();
var p... | 2 | 1,565 |
In angular 9 dialog material is render as blank in left end | <p>I need a help on mat dialog render on screen.
adding the steps which i followed to perform this action below.</p>
<p>The packages installed in the project is</p>
<pre><code>Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.900.... | 2 | 1,560 |
Whats the correct way to allow different jdbc drivers for deployed applications on JBoss / Wildfly? | <p>My setting is the following:</p>
<ul>
<li>I got an application, which I deploy in <code>/standalone/deployments</code></li>
<li>The <code>jboss-deployment-structure.xml</code> of my deployment in <code>/standalone/deployments</code> looks the following:</li>
</ul>
<pre class="lang-xml prettyprint-override"><code>&... | 2 | 1,689 |
spring.profiles.active ist not set to the profile name specified on the command line for the maven build | <p>I use Spring Boot 2.1.3.RELEASE and have the following issue:</p>
<p>I use a standard spring boot project created with Spring Initializr.
I have setup maven resource filtering by specifying the following in the pom.xml:</p>
<pre><code><build>
...
<resources>
<resource>
<directory&g... | 2 | 1,141 |
Using Markov Chains for time series data | <p>Here is how my data frame is currently structured (first 6 rows). The data I used is available <a href="https://figshare.com/s/ace5b44bc12394a7c46d" rel="nofollow noreferrer">here</a>.</p>
<pre><code>ID date sps time pp datetime km
1 2012-06-19 MICRO 2:19 0 2012-06-19 02:19 8... | 2 | 1,038 |
Adding extra parameters when sending request with django and stripe | <p>I've been trying to send extra parameters when submiting the stripe button, which is integrated in my Django application, but I cannot make it work.</p>
<p>So far, I have this:</p>
<p><strong>views.py</strong></p>
<pre><code>stripe.api_key = "XXXX"
class StripeApi(View):
@staticmethod
def post(request):
... | 2 | 1,578 |
Execute two AJAX calls in commandButton onclick bootsfaces jsf | <p>I have a modal with a form, and what I want is first to close the modal from bean (method "cerrarModal") and after execute the AJAX that makes the insert in database (method "crearUsuario"). I saw <a href="https://stackoverflow.com/questions/37379272/using-multiple-ajax-calls-on-the-same-element-bootsfaces">this que... | 2 | 1,945 |
JavaFX program does not run when VM Options set to one directory, but runs fine when set to another directory with the same files | <p>I have a project in IntelliJ (Java 11) containing two modules. One is a simple java module and the other is a JavaFX program. These are both empty as I am setting up the project structure for use on Git and am trying to get rid of any absolute file paths.</p>
<p>At the root of the project is a lib folder that conta... | 2 | 2,324 |
ASP.NET to host Active Directory RSAT powershell scripts--DC hangs up | <p>I'm working on making a ASP.NET (C#) app that is basically a gateway for running Powershell scripts for routine admin tasks. Some of these scripts use the ActiveDirectory RSAT module and I'm finding that some of these cmdlets will not run correctly when invoked via the gateway and the trace seems to imply that the ... | 2 | 1,202 |
Django - tests.py already exists, overlaying a project or app into an existing directory won't replace conflicting files | <p>In my project I'm using Django 1.9. I started this project on older version of Django. After update everything works fine. But now I need to install new app but i can't. When i try to do this i get an error:
<code>CommandError: /var/www/myproject/myapp/tests.py already exists, overlaying a project or app into an exi... | 2 | 1,153 |
Packer | Ansible | NoCredentialsError: Unable to locate credentials | <p>I am trying to execute ansible script via Packer to Obtain EFS facts. Within my packer.json I am passing AWS_ACCESS_KEY_ID/KEY/TOKEN. My facts.yml works fine if I execute it individually by passing <code>-sts_assume_role</code> in my code.</p>
<p>As suggested by @error404 I have added sts_assume_role task and receiv... | 2 | 2,786 |
Show pop-up when user clicked on the line | <p>Need to show a pop-up when user clicks on the line. Code as below but does not work:</p>
<pre><code> var ClickLon;
var ClickLat;
OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
defaultHandlerOptions: {
'single': true,
'double': fa... | 2 | 1,943 |
Visual studio - enabling optimization lead to crash | <p>I'm using visual studio 2012 on windows 8, and the 2012 november CTP.<br>
When I run the release version of my c++ application with optimization enabled (/o2) it crashes.<br>
It happens inside a std::vector (not the first time I use vectors though).<br>
Stepping inside the code I found out that the second time I do ... | 2 | 1,188 |
Android Studio 2.0+ crashes on OS X | <p>i haven't been able to run any version of Android Studio 2.x. it crashes seemingly randomly with this same exception after < 1min of simply navigating through files in a project: </p>
<pre><code>Exception Name: JavaNativeException
Description: java.lang.NullPointerException
at sun.lwawt.macosx.CAccessibility... | 2 | 1,811 |
XPath to find nodes having 2 leaf children | <p>I have an XML like this:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<Math mode="inline" tex="\tilde{p}_{d}\leq\tilde{p}_{d+1}" text="(tilde@(p)) _ d less= (tilde@(p)) _ (d + 1)">
<RMath>
<RApp>
<RTok meaning="less-than-or-equals" name="leq" role="RELOP"&... | 2 | 1,224 |
boost graph library directed multigraph edge_range bug | <p>I have a directed multigraph with vertices A..C and edges E1..E4</p>
<pre><code>A ---E1--> B
A ---E2--> B
A ---E3--> B
B ---E4--> C
</code></pre>
<p>I wanted to iterate over the edges that connect A and B.</p>
<p>In BGL, I expressed this as:</p>
<pre><code>#include <boost/graph/adjacency_list.hpp&... | 2 | 1,224 |
Spring generic Hibernate DAO | <p>I am writing a Generic Hibernate DAO class that all Hibernate DAO classes will inherit from. I am trying to use spring to inject the dependencies for the classes but I am getting an exception.</p>
<pre><code>@Repository
public class HibernateDaoImpl <T> implements Dao<T>{
@Autowired
private Ses... | 2 | 3,053 |
Android issue in Background Drawable with layer-list with API v16 | <p>I am trying to achieve something like this:</p>
<p><a href="https://i.stack.imgur.com/FKgy9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FKgy9.png" alt="enter image description here"></a></p>
<p>The code I have created is working fine with API v21 and above but it is not working as desired. H... | 2 | 2,016 |
Show current date in correct format in angular 2 | <p>I want to show current date in correct format
Example is: 12/19/2016.
Now i am using Date.now(). But it show garbage value, I want to show only date.
I am also using pipes but pipes are not bind with database. Now i am using formcontrol, which get the current date using Date.now(). and later i must show this date i... | 2 | 1,284 |
Why would I receive An Authentication object was not found in the SecurityContext when dot or period is included in the Path Variable? | <p>After reading numerous posts that were relevant to the following Spring error message.</p>
<p>An Authentication object was not found in the SecurityContext</p>
<p>I believe i maybe dealing with a bug in Spring... but I'd like to validate. I am using Spring Authentication to protect a Rest WebService. Here is the R... | 2 | 7,021 |
Updating a Partial View in MVC 5 | <p>I am getting an error when trying to load a partial view that should display a list on the create view of the MVC app. The list is based on a value will come from a list of values drop control. </p>
<p>On create view there is no selection so the list is empty and will need to refreshed after the user selects a valu... | 2 | 1,197 |
Group by Core Data gives error | <p>I am trying to fetch a request and I want to group by "Premium Accounts" and fetch the card number, card holder name and stuff like that. I am getting a weird error -</p>
<p><em>*</em> Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'SELECT clauses in queries with GROUP BY components... | 2 | 1,141 |
How to detect when iOS app goes the background using HTML and JavaScript | <p>I need to know when my GWT web application goes to the background on an iPad. The application is not a native iOS app, but rather has a "wrapper" around it allowing it to run as an app. The wrapper is written in Swift and uses the UIWebView.</p>
<p>The application needs to know when the home button is pressed in ... | 2 | 1,480 |
Haskell: Trapped in IO monad | <p>I am trying to parse a file using the <code>parseFile</code> function found in the the <code>haskell-src-exts</code> package.</p>
<p>I am trying to work with the output of <code>parseFile</code> which is of course <code>IO</code>, but I can't figure out how to get around the <code>IO</code>. I found a function <cod... | 2 | 1,164 |
Spark 2.0: 4 Rows. IllegalArgumentException: bound must be positive | <p>I'm trying a super simple test program on Spark 2.0 on Amazon EMR 5.0:</p>
<pre><code>from pyspark.sql.types import Row
from pyspark.sql.types import *
import pyspark.sql.functions as spark_functions
schema = StructType([
StructField("cola", StringType()),
StructField("colb", IntegerType()),
])
rows = [
... | 2 | 1,979 |
updating EmbeddedDocument in Document with Flask - Mongoengine mongoengine.errors.OperationError | <p>I am developing a project with flask and mongodb(mongoengine drive). The application uses Note model as a embeddedDocument for User Modal.</p>
<pre><code>class User(db.Document, UserMixin):
fields like created_at, content, slug etc...
notes = db.ListField(db.EmbeddedDocumentField('Note'))
class Note(db.Doc... | 2 | 2,155 |
Routing issue causing Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException error | <p>I am getting this error when testing my code. I know it is a routing issue but I can't see anything wrong with my routes.</p>
<p>Here is the routes that are causing the problems:</p>
<pre><code>Route::get('/messages', 'MessageController@create');
Route::get('/messages/show/{comment}', 'MessageController@show');
<... | 2 | 1,072 |
one of the variables needed for gradient computation has been modified by an inplace operation : can't find inplace operation | <blockquote>
<p>I have this code below and I can't find the inplace operation that prevents the gradient from computing.</p>
</blockquote>
<pre><code>for epoch in range(nepoch):
model.train()
scheduler.step()
for batch1 in loader1:
torch.ones(len(batch1[0]), dtype=torch.float)
x, label = ba... | 2 | 1,103 |
'Illegal attempt to call getOutputStream() after getWriter() has already been called' during Jersey test | <p>I have a Jersey endpoint that I am trying to test.</p>
<p>Endpoint:</p>
<pre><code>@Path("image")
class ImageResource {
@Inject
private ImageService imageService;
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public Response save(ImageVO imageVO) {
... | 2 | 1,952 |
AppCompat ShareActionProvider icon is too big compared to other icons | <p>I changed the ActionBarSherlock to AppCompat v7. I already did all the changes that are needed to make it work, but something weird is happening with share icon (which is using ShareActionProvider). The share icon is too big compared to other icons. I also use the support library for my search, and its size is corre... | 2 | 1,733 |
How to enable static weaving in eclipseLink with remote persistence.xml using Maven? | <p>I have a separate jar which contains the persistence.xml. This jar has been added as a dependency in the parent pom of the jar which has the entities. I want to enable static weaving.
According to <a href="https://wiki.eclipse.org/EclipseLink/UserGuide/JPA/Advanced_JPA_Development/Performance/Weaving/Static_Weaving"... | 2 | 1,699 |
Xamarin.Forms iOS mTouch Error | <p>I am developing an application at ESRI ArcGIS Runtime (Xamarin.Forms [Shared]). I am using a default ArcGIS template in Visual Studio. When i run the app for IOS, it runs successfully but whenever i zoom in 4-5 times, the application returns me the error below and i added xamarin log file. I think it is not about Es... | 2 | 8,520 |
Changing the Position of clicked item in RecyclerView on scroll | <p>On click of button when I'm scrolling the view, it changes the
position of that clicked button. On every scroll it's showing different
position.</p>
<pre><code> public class ProductAdapter extends
RecyclerView.Adapter<ProductAdapter.ProductViewHolder> {
Context ctx;
ArrayList<Produ... | 2 | 1,113 |
Pass C# Variable to HTML Button | <p>I'm trying to dynamically change the text/value of 5 HTML buttons on a web page, via passing C# variables to those buttons. I'm generating the variables via a SQL query in the page load but can't figure out how to pass the variables to the buttons.</p>
<p>Variable generation:</p>
<pre><code> DataSet ds= new... | 2 | 2,121 |
NonType Object when transforming a scraped table to DataFrame | <p>I am trying to scrape a list of stocks tickers that are displayed in a table in the following link: <a href="http://www.advfn.com/nyse/newyorkstockexchange.asp?companies=A" rel="nofollow noreferrer">http://www.advfn.com/nyse/newyorkstockexchange.asp?companies=A</a>
I scraped the table using beautiful soup but when I... | 2 | 2,280 |
How to Add layouts to navigation Drawer? | <p>I Created a Navigation Drawer project from Android Studio. Now I want to add a linear layout to my navigation Drawer. So i Added it. But it shows a Error like this </p>
<pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.arul.anatotion/com.arul.anatotion.Navigation}: android.view.Infla... | 2 | 8,055 |
Winsock echo server port | <p>I'm trying to port this simple TCP echo program (<a href="https://github.com/mafintosh/echo-servers.c/blob/master/tcp-echo-server.c" rel="nofollow">https://github.com/mafintosh/echo-servers.c/blob/master/tcp-echo-server.c</a>) under Windows for teaching purposes.
My adaptation compiles and run, but it doesn't work:... | 2 | 1,032 |
finding smallest two nodes in a linked list in c | <p>I am trying to find the smallest two numbers in a linked list in C++ (without using any built-in functions).</p>
<p>I tried to do so as below:</p>
<p><strong>My logic is:</strong></p>
<p>(1) Assume the first node in the linked list is <code>minimum1</code> and the second is <code>minimum2</code>. Compare them. Th... | 2 | 1,734 |
Segue Error : ViewController has no segue with identifier | <p>Im in a very deep pickle. I realize there are a good amount of SO topics regarding my error and i'v been through 3-4 pages of Google search results of those answers and have tried all the solutions. None have worked.</p>
<p>What Iv tried :</p>
<ol>
<li>Reset Simulator Settings</li>
<li>Clean out Xcode Build files<... | 2 | 3,494 |
FCM Go Adming SDK giving MismatchSenderId | <p>I have an application that has two components: A server that uses FCM Go Adming SDK to send push notifications; and a web client that uses FCM web SDK to receive generate registration tokens and receive push notifications.</p>
<p>However, when I try to send a message from the server side; it gives me the following ... | 2 | 1,146 |
Map problem with JPA / Hibernate / PG | <p>I have two entities, Entity1 and Entity2, on a one to many relationship. On Entity1 I have a map which contains entries. </p>
<p>The code I use to persist a new Entity1 with some Entity2 on the map is like this:</p>
<pre><code> Entity1 e1 = new Entity1();
Entity2 e2 = null;
e1.setE2s(new HashMap<S... | 2 | 1,108 |
resposive template with skel.js and asp.net mvc relative content | <p>I am developing an asp.net mvc application and I use <a href="http://html5up.net/minimaxing/" rel="nofollow">this</a> template for my app. For js and css resources, I use URL.Content helper method, but the problem is that css resources referenced by template loads only in home/index action and when I go to other act... | 2 | 1,145 |
In ExtJS, how to define jsonreader for different json input formats? | <p>I have an external source that generates JSON in given format. I need to use ScriptTagProxy to access that data. Format of data is (two records):</p>
<pre><code>{
"COLUMNS":["KEDBID","EMPID","KE","SOLUTION","ATTACH_KE","ATTACH_SOLUTION"],
"DATA":[
[1,36661,"While adding a new user, if his\/her profile is missing, i... | 2 | 2,006 |
Uncaught ReferenceError: $ is not defined. (jQuery, javascript) | <p>I know that "Uncaught ReferenceError: $ is not defined" is a common problem. But I have no idea where my code is wrong. I googled but no solution could solve this. Thanks in advance!</p>
<p><img src="https://i.stack.imgur.com/DvK3P.jpg" alt="Screenshot of the bug"></p>
<p>My code is below.</p>
<p>Because my code ... | 2 | 2,159 |
Jupyter cannot start, "ImportError: This package should not be accessible" | <p>I am unable to start a Jupyter notebook server on a linux machine. When I type <code>jupyter notebook</code>, I get the following errors:</p>
<pre><code>ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-futur... | 2 | 2,167 |
Apache: CGI scripts requires permission | <p>I'm running Gentoo with apache.<br>
If I go in <a href="http://localhost/" rel="nofollow">http://localhost/</a> I get "It works!".
But, if I execute CGI scripts (<a href="http://localhost/cgi-bin/counter.cgi" rel="nofollow">http://localhost/cgi-bin/counter.cgi</a>) I get this error:</p>
<p><em>403 Forbidden<br>
You... | 2 | 2,621 |
Laravel AWS SES - 403 Forbidden - SignatureDoesNotMatch when trying to send email | <p>I'm using the SES Driver <code>"aws/aws-sdk-php"</code> in my Laravel app to send out email via AWS SES(Simple Email Service).</p>
<p>The access key and secret were generated from the SES console > SMTP Settings > Create My SMTP Credentials button.</p>
<p>The credentials are being saved in the production <code>.en... | 2 | 1,338 |
Which intent-filter scheme use for Youtube in Android | <p>I want to register an intent-filter exclusively for the share in the Youtube app.</p>
<p>So far I'm able to receive the intent from Youtube successfully. The problem is my intent filer is not specific enough. My app is displayed as available for other share features in other apps (not only for Youtube).</p>
<p>Thi... | 2 | 1,149 |
how to execute .bat from within a .bat with different path? | <p>I'm working with multiple .bat files on multiple locations and I would like to connect whole work in one job. So here's the issue:</p>
<p>I have folder called <code>A A1</code> and inside there is .bat file which is working with file which is also in the same folder. Then there is folder <code>A B1</code> with same... | 2 | 1,048 |
Magento Install SQL script through addAttribute not working Customer | <p>I cant create custom customer attribute.</p>
<pre><code>Xkey\
Xkey\Cadastros\
Xkey\Cadastros\etc\config.xml
Xkey\Cadastros\Helper\Data.php
Xkey\Cadastros\Model\
Xkey\Cadaestros\Model\Entity\
Xkey\Cadaestros\Model\Entity\Setup.php
Xkey\Cadaestros\sql\
Xkey\Cadaestros\sql\cadastros_setup\
Xkey\Cadaestros\sql\cadastro... | 2 | 1,611 |
RabbitMQ - pika - rabbit.js - node.js | <p>I'm using Python, rabbitmq, pika, rabbit.js and node.js.</p>
<p>The idea is to send messages to clients and act accordingly.
There are multiple types of messages being sent.</p>
<p>So, on the server side I have a method which will receive the message and the exchange to send the message to:</p>
<pre><code>import... | 2 | 1,500 |
codelite unittest++/UnitTest++.h: no such file or directory | <p>I am trying to do unit testing with C++/Codelite. I have UnitTest++ plugin installed from codelite-plugins package (Ubuntu 18.04). I can also see this:</p>
<pre><code>$ ls -la /usr/include | grep Unit
drwxr-xr-x 3 root root 4096 Mar 2 11:47 UnitTest++
$ sudo dpkg -l | grep unittest++
ii libunittest++-dev ... | 2 | 1,043 |
node.js node-http-proxy: How to avoid exceptions with WebSocket when target in proxy.web | <p>Using http-proxy (aka node-http-proxy) in node.js, I am having trouble figuring out how to proxy web sockets when the target is determined dynamically (i.e. when processing the request).</p>
<p>Looking at the documentation:
<a href="https://github.com/nodejitsu/node-http-proxy" rel="nofollow noreferrer">https://git... | 2 | 1,188 |
How to get pixel colour from framebuffer on linux (Raspberry Pi) | <p>I am trying to make a small program to control the colour of an RGB LED according to the colour of certain pixels on the screen.
Since this is on Raspberry Pi running Raspbmc, I cant use XLib because everything is drawn from the frame buffer(not sure if this is true, but from what I read on the FAQ this appears to ... | 2 | 1,545 |
Facing issue while submitting the form - "500 Internal Server Error" | <p><strong>JQuery</strong></p>
<pre><code>$(document).ready(function () {
var EmailContainer = $('#EmailContainer');
var url = EmailContainer.attr('data-url');
EmailContainer.load(url, function () {
var Emailform = $('#EmailForm');
$.validator.unobtrusive.parse(Emailform);
Emailform... | 2 | 1,170 |
How to enable Spring security? | <p>I wonder why my Spring security is not working. I've got this spring-security.xml</p>
<pre><code><beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
... | 2 | 2,531 |
Select all checkboxes in generated table | <p>I need to select all checkboxes in generated table. I've used this jquery code but it seems it's not working. Checkbox is shown. Sorry for this messy code, but I was unsure what is important and whats not.
Thank you for any help guys</p>
<pre><code><input type="checkbox" id="selectAll" />
<table>
... | 2 | 2,217 |
sorting the array in table view in iOS 6 | <p>Hello I have created one of my application in which i have implemented sorting functionality in a table view The sorting method is working fine on iOS 4 and 5 but when I try to test the application on iOS 6, it shows an error in the sorting method on iOS 6
Please help <img src="https://i.stack.imgur.com/ZE4lZ.png"... | 2 | 1,032 |
How to get the IIS site Physical path and the Binding details using power shell script | <p>I wrote a PS script where in it will export all the IIS site details and App-pool details to the Excel sheet, but when i use the command <strong>Get-IISSite</strong> the physical path and the binding details are not displaying in the output console as below, the code is as follows, please help me to fix the issue wh... | 2 | 1,555 |
Gensim Doc2Vec visualization issue when using t-SNE and/or PCA | <p>I am trying to familiarize with Doc2Vec results by using a public dataset of movie reviews. I have cleaned the data and run the model. There are, as you can see below, 6 tags/genres. Each is a document with its vector representation.</p>
<pre><code>doc_tags = list(doc2vec_model.docvecs.doctags.keys())
print(doc_tags... | 2 | 1,203 |
Kafka partition leader not updated after broker removed | <p>I have Kafka cluster managed by marathon/mesos which had 3 brokers version <code>0.10.2.1</code>. The docker images are based on <a href="https://github.com/wurstmeister/kafka-docker" rel="nofollow noreferrer">wurstmeister/kafka-docker</a>. The <code>broker.id=-1</code> which is assigned automatically and sequential... | 2 | 2,104 |
register_uninstall_hook not working on wordpress plugin uninstall | <p>Hi there i make a plugin, now i want that when a user deactivate the plugin, all the functions and posts and option values and meta values also be deleted.</p>
<p>I write a hook and make a file where i delete all the values, but it did not work, i use this hook</p>
<pre><code>register_uninstall_hook('foo_uninstall... | 2 | 1,549 |
IHTMLDocument2 - click button inside iframe | <p>I'm creating a DCOM extension for some really old application.
Main application has IE control inside of it.</p>
<p>Using C# I was able to get handler for that IE Control as below:</p>
<pre><code>Process pr = Process.GetCurrentProcess();
var title = pr.MainWindowTitle;
if(title.IndexOf("My old application -")<... | 2 | 1,828 |
Weird race condition by using ViewModel-first (binding) approach | <p>I am experimenting with a simple ViewModel-first based WPF application and some primitive navigation logic. The application consists of two views (screens). One screen contains a button "Go forward" and the other a button "Go backward". By pressing one of the buttons a delegate command is invoked, which in turn caus... | 2 | 1,855 |
Angular / google map not drawing polyline between path points | <p>Im very new to angular, the issue is my I unable to get agm-polyline to draw the path on my map. My data is populating my Array of objects but no action is being performed after that. Thank you in advance for your help.</p>
<p></p>
<pre><code><agm-map [latitude]="lat" [fitBounds]="bounds" [longitude]="lng" [zoo... | 2 | 1,330 |
Retrofit 2.0.0 Beta2 OkHttpClient interceptor throwing StackOverFlowError | <p>I am trying to build an interceptor for logging in. Here is my following code for that:</p>
<pre><code>OkHttpClient client = new OkHttpClient();
client.interceptors().add(new Interceptor() {
@Override
public Response intercept(Chain chain) throws IOException {
Request... | 2 | 1,654 |
Wallpaper Settings force close | <p>I'm having a force close problem whenever I try to launch the settings for my live wallpaper. I don't really have anything there, so I'm not sure what could possibly be causing the problem... Here is the logCat</p>
<pre><code>03-17 02:13:55.262: ERROR/AndroidRuntime(12429): FATAL EXCEPTION: main
03-17 02:13:55.262:... | 2 | 1,336 |
How to output items from an array in angular | <p>Im really new to angular. And I find that it is really hard to get an item from an array and output in the relevant html file in that component.
The below code shows the onClick function of the <strong><em>bill-item.component.ts</em></strong> file</p>
<pre><code>arr: Array<any> =[];
itemArray: Array<any>... | 2 | 1,446 |
Rails 5 - How to create custom scaffold generator? | <p>The goal is for command...</p>
<p><code>bin/rails generate custom_scaffold Thing</code></p>
<p>... to generate the following 6 files:</p>
<pre><code>db/migrate/201812031331_create_things.rb
app/models/thing.rb
app/controllers/things_controller.rb
app/serializers/thing_serializer.rb
test/fixtures/things.yml
test/i... | 2 | 1,285 |
Get url from uploaded video on facebook | <p>In my app you can share the video you have just taken. I want to get the link to the video back to android so i can call another function that will input the link in the database. So basically i need to know how to get a link from video i just shared. I am using the following code.</p>
<pre><code> S... | 2 | 1,847 |
Excel VBA Range variables and Autofill | <p>I'm adding columns to the end of the table. First headings and then formulas in the column underneath. Then I want to Autofill the formulas for the whole list. I believe the variable declaration is the problem. I keep on getting an error at the Autofill section at the bottom.</p>
<pre><code>Dim LastCol As Long, las... | 2 | 1,237 |
Login with email address or username in CakePHP v2.0 | <p>In CakePHP prior to 2.0 you could allow a user to login using their email address by stopping the autoRedirect and then comparing the username data to the email column in your database (apparently Cake could then fallback to username checks if not an email).</p>
<p>In CakePHP 2.0 this has changed and you login manu... | 2 | 3,899 |
Spring Cloud Stream Kafka Streams Binder KafkaException: Could not start stream: 'listener' cannot be null | <p>I am new to Kafka Streams and Spring Cloud Stream but have read good things about it in terms of moving the integration related codes into properties file so devs can focus mostly on the business logic side of things.</p>
<p>Here I have my simple application class.</p>
<pre><code>package com.some.events.consumer
im... | 2 | 2,061 |
Dynamic feature release build failed with duplicate resources | <p>I am creating one sample to check dynamic feature delivery provided by android. I have project structure in following way. Base project <strong>app</strong> and one dynamic feature <strong>sample_dynamic_feature</strong>. All the setup required for dynamic feature delivery is in place. The problem comes when I add a... | 2 | 4,153 |
Android: Adding Icon to DrawerLayout | <p>When you first create the app you have the option to choose the kind of Navigation type and i chose Actionbar Activity.</p>
<pre><code><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_... | 2 | 4,606 |
How to disable next button in ui bootstrap pagination? | <p>I am trying to create pagination in my page and using pagination control. Everything works fine, but only doubt is how to manually disable next button here</p>
<pre><code><pagination
total-items="totalItems"
items-per-page= "itemsPerPage"
ng-model="currentPage"
class="pagination-sm"
pa... | 2 | 1,732 |
WSDL file for Apache CXF with "any xml" body | <p>Background: I'm developing web-service which communicates over WS-Management protocol. The original WSDL from here <a href="http://schemas.xmlsoap.org/ws/2005/06/management/wsman.wsdl" rel="nofollow">http://schemas.xmlsoap.org/ws/2005/06/management/wsman.wsdl</a> looks like:</p>
<pre><code><xs:complexType name="... | 2 | 1,346 |
Can't connect to Snowflake with newly created Airflow environment on EC2 | <p>I have an AWS Cloudformation template that creates a basic airflow environment (one EC2 t3.small instance hosts both the webserver and scheduler, no external DB, no celery executor). This environment connects to a Snowflake data warehouse to push files from S3 into the databases on Snowflake. I successfully create a... | 2 | 2,602 |
How to test a Angular 2 service used in a component using Jasmine | <p>I am trying to learn how to set up a Unit test using Jasmine and Angular 2 with Async. I have a component which calls a service. But I seem to hit a road block. I have a service like below:
<strong>item.service.ts</strong></p>
<pre><code>import { Injectable } from "@angular/core";
import { Http, Response } from "@a... | 2 | 2,062 |
How to implement checkbox over GridView correctly | <p>I have checkbox for selecting and deselecting photos.
There is a visible loading screen for each tap.</p>
<p><a href="https://i.stack.imgur.com/IwUy7.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IwUy7.gif" alt="Visible loading screen" /></a></p>
<p><code>_mediaList</code> has the photo asset. ... | 2 | 1,164 |
React Native - Calling Flatlist item outside the Flatlist itself | <p>I'm trying to have a <strong>Send Order Button</strong> below my <strong>FLATLIST</strong> where this <strong>Send Order Button</strong> will send the states to the other screen/view together with the <strong>item</strong> in my <strong>Flatlist</strong>.</p>
<p>"But the problem is I don't know how to call the <str... | 2 | 2,015 |
Too Many Arguments in C++ | <p>I am facing difficulties in my C++ code. I am a beginner. Like, only with very basic knowledge of C++. So, I really can't figure a way to do this. I thought of making an RPG game using C++ commands and am close to finishing it. But somehow, I couldn't make a constant health for the hero. Taking a look at the code,</... | 2 | 1,928 |
EditText AdjustResize forcing content out of view | <p>I'm currently developing a simple Notes application where the user can input a title and the content of their note. What I am looking to achieve is that when the user clicks the note content (EditText) the soft keyboard comes up and only the note content EditText reduces in size (resizes) whilst everything else rema... | 2 | 2,387 |
How to post JSON POST API in PHP file | <pre><code>{
"id": "4a59a50e-904a-674d-2553-8954ec4a841d",
"name": "JSON API",
"description": "",
"order": [
"155ae062-f839-ef5a-6c40-61e821202984"
],
"folders": [],
"folders_order": [],
"timestamp": 1522932542555,
"owner": 0,
"public": false,
"requests": [
{
"id": "155ae062-f839-ef5a-6c40-61e821202984"... | 2 | 1,604 |
RecyclerView and ViewPager with collapsing toolbar | <p>I am trying to create this kind of a layout where -</p>
<ol>
<li>A <code>CollapsingToolbarLayout</code> that has a <code>ViewPager</code> like google play app.</li>
<li>Below that there is a Grid <code>RecyclerView</code>.</li>
<li>And at the end, there is another <code>ViewPager</code>.</li>
</ol>
<p>The <code>Re... | 2 | 3,909 |
WPF - not refreshing data in DataGrid when i remove items from dictionary | <p>I have problem with binding dictionary and delete and adding ellements to dictionary.</p>
<p>1th:</p>
<p>I have base class named 'Produkt' </p>
<pre><code>public class Produkt : ICloneable, INotifyPropertyChanged
{
private string producent;
public string Producent
{
get { return producent; }
... | 2 | 5,962 |
Capistrano - undefined method `map' | <p>I am using capistrano through <a href="https://github.com/alistairstead/Magentify" rel="nofollow">Magentify</a>. I am using RVM as a regular user on archlinux. I have it using Ruby 2.0.0 and I ran <code>gem install magentify</code> in a gemset I defined for this purpose. It installed Capistrano 3.0.1 and a about 9 o... | 2 | 1,773 |
Phonegap Capture not working for jelly bean | <p>I am facing issue regarding Phonegap Capture image function. Though this question has been asked many times before, but I found no solution. So I'm asking here again.
I am trying to capture an Image and set it in my HTML page using phonegap.
Here is my code:</p>
<pre><code>function captureImage() {
navigator.device... | 2 | 2,051 |
How does execl deal with "/bin/sh" in Linux? | <p>I read about <a href="https://rads.stackoverflow.com/amzn/click/com/0321637739" rel="nofollow noreferrer" rel="nofollow noreferrer">APUE 3rd</a>, 8.13, system Function, and I saw a version of system function implementation without signal handling.Code is like below:</p>
<pre><code>#include <sys/wait.h>
#in... | 2 | 1,047 |
Complex use of JTable, TableModel and others | <p>I have some problems with the manage of two JTable, and relative data.</p>
<p>I had make this GUI:
<img src="https://i.stack.imgur.com/rIpuG.png" alt="enter image description here"></p>
<p>I explain the use:
In the first jTable I have a list of vehicles (trucks, cars...) and relative info.
In the second jTable I ... | 2 | 6,160 |
SPOJ Bitmap (BFS) | <p>I try to solve the spoj problem using <strong>python</strong>. My algorithm should be only <strong>O(n^2)</strong>, but still <strong>TLE</strong> is returned...<br>
My method is just a <strong>multiple source BFS</strong>. </p>
<ol>
<li>Find out the position of all 1 </li>
<li>Run BFS on each '1', store the shor... | 2 | 1,331 |
FCM Multiple push notifications not working properly when app in background state | <p>I am using fcm for push notifications, I am handling only data payload. Multiple Notifications are working fine when app is in foreground, here I am using id value from server in click_action to move the notification to related post when we tap on it.But, when app is in background/closed state whenever my getting mu... | 2 | 1,095 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.