title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Display specific category products on no results search page
<p>When we search for a wrong keyword like "sdfsdf" in magento site, it displays that "your search returns no results". Here I want to display any category products like "similar products" category as we display "best sellers" on home page. I have tried by calling the block in the catalogsearch.xml. BUt catalogsearch.x...
2
1,167
Android SeekBar NullPointerException
<p>I have a probleme with my code. When I lunch my program i have a crash. On the Android monitor i can see :</p> <pre><code>04-04 20:21:10.369 2042-2042/com.led.led E/AndroidRuntime: FATAL EXCEPTION: main Process: com.led.led, PID: 2042 ...
2
5,580
How Can i target one of my pictureboxes created on runtime? VB.NET
<p>So basically, i have successfully randomized certain pictureboxes in a grid to contain mines, and show that mine, and for testing purposes, those mines are currently showing. What do you think I need to do to be able to say:</p> <blockquote> <p>If, you click this box and mine = 1 (there's a mine), then you lose. ...
2
1,549
How to validate automatically String/Unicode columns maximum length when specified on declaration?
<p>SQLAlchemy allows to specify a length when declaring <code>String</code> columns:</p> <pre class="lang-py prettyprint-override"><code>foo = Column(String(10)) </code></pre> <p>as in SQL:</p> <pre class="lang-sql prettyprint-override"><code>foo VARCHAR(10) </code></pre> <p>I know this length value is used by some...
2
1,346
How to refresh Repeater and SqlDataSource c# or vb.net
<p>In My application i am using Repeater and binding data using SqlDataSource and in that i am performing add operation after that i want Repeater should be refreshed inorder to show newly added record </p> <p>Code i used:</p> <pre><code>&lt;asp:Repeater ID="rptOrderReport" EnableViewState="false" runat="server" Dat...
2
1,355
How to access the x axis index of a scipy denogram?
<p>I have data, for which I create a linkage model, like this:</p> <pre><code>model = sc.linkage(data, 'ward') </code></pre> <p>Where model is as follows:</p> <pre><code>Z = np.array([ [ 2. , 9. , 20.12172148, 2. ], [ 0. , 1. , 26.16772232, 2. ], [ 11. ...
2
1,116
How to add vertical scrolling to reactstrap carousel slide content
<p>I want to add articles in this carousel, but when the content inside the slide exceeds the fixed length it looks like bellow.</p> <p><a href="https://i.stack.imgur.com/Gw8JN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gw8JN.png" alt="enter image description here"></a></p> <p>I have hardcoded...
2
3,101
Android NDK Linker wrong path
<p>I'm currently working with a NDK Project that uses shared libraries. And I have two shared libraries to integrate: libsatprotocol.so and libsat-tanca.so.</p> <p>So I added to my Android.mk these libraries so I could make a wrapper. For libsatprotocol everything is working fine. But for libsat-tanca, I get a crash o...
2
1,743
Atmosphere socket established but no data being received/sent
<p>I am following the Atmosphere <a href="https://github.com/Atmosphere/atmosphere/wiki/Getting-Started-with-AtmosphereHandler,-WebSocket-and-Long-Polling" rel="nofollow">tutorial</a> to get a basic chat application setup. Currently when running the javascript, it appears to be able to establish a connection to the ser...
2
2,246
Problems with MVC4 & External Login with Google
<p>I've an ASP .NET MVC4 application that uses SimpleMembership and allows users to sign in with their google accounts.</p> <p>In order to do that I configured the application's AuthConfig class by uncommenting the <code>OAuthWebSecurity.RegisterGoogleClient();</code> line to add google as an external login method. I ...
2
1,061
Authenticate user to Exchange online with Outlook online token from an add-in
<h1>Update</h1> <p>It seems that the <a href="https://dev.outlook.com/reference/add-ins/Office.context.mailbox.html#getUserIdentityTokenAsync" rel="nofollow"><strong>UserIdentityToken</strong></a> is not usable for identifying the user to Exchange Online. That token can be use by a third-party service (i.e. a custom c...
2
1,716
Postgres 9.x Joining on Overlaping Date & Time Range
<p>I have several tables that have a <code>TIMESTAMP WITH TIME ZONE</code> column along with some additional information. I need to be able to join these tables such that all of the information on each row is "valid" as of a given date and time window (labeled <code>begin</code> and <code>end</code> in the desired resu...
2
2,338
How do I get two modal dialogues in one page to work?
<p>I have two modal dialogues in my webpage, using Twitter-bootstrap, but only one of them works.</p> <p>Here is the code:</p> <pre><code>&lt;a href="#format" role="button" class="btn btn-info" data-toggle="format"&gt;Phone and Email&lt;/a&gt; &lt;div id="format" class="modal hide fade" tabindex="-1" role="dialog" ...
2
1,099
Google maps navigation to a particular place using latitude and longitude
<p>I am a newbie to Android development, I am working on Google maps. I am trying to navigate to particular location by using latitude and longitude. I have give required permissions in manifest file, but I couldn't do navigation, please help me.</p> <p><strong>MainActivity,java</strong></p> <pre><code>package com.ex...
2
1,302
dojo dialog box with dynamic checkboxes not working
<p>Please forgive me if I ask basic questions. Am new to javascript..</p> <p>I am trying to make a dialog box, dynamically creating a list of checkboxes to appear on this dialog, everyTime a user requests to show one. The dialog box should have a scrollbar to scroll if the number of checkboxes increase from defined wi...
2
3,905
How to update PrimeFaces datatable using poll with updated toggled columns
<p>I've been working on a jsf project(using primefaces 5.2). I've a datatable which gets updated using a poll in every 10 seconds.I also have a column toggler. Everything is working fine but the only problem is that when poll updates the datatable it again adds all the columns to the table.Is there some way to restrict...
2
1,081
Free-running application under test exits shortly after I attach with VS2010 SP1 in x86
<p>On Windows 7 x64, when I attach in x86 mode to a fairly complex free-running app, it runs for a while, then reproducibly exits.</p> <pre><code>MyApp.exe Managed (v4.0.30319)' has exited with code -1073740791 (0xc0000409). </code></pre> <p>followed immediately by</p> <pre><code>MyApp.vshost.exe: Managed (v4.0.3031...
2
1,030
update of weights in a neural network
<p>I was trying to program the perceptron learning rule for the case of an AND example. Graphically we will have:</p> <p><img src="https://i.stack.imgur.com/Hi4b2.jpg" alt="enter image description here"></p> <p>where the value of x0=1, the algorithm for updating the weights is:</p> <p><img src="https://i.stack.imgur...
2
1,362
SQL Update Dynamic Based on Table?
<p>I am trying to think through a way to do some rule-based SQL Update statements on a table. Things look like the below, which IMO is not really optimal:</p> <pre><code>create table #typeofchange ( TypeOfChangeId Int , ChangeNote VarChar(16) ) Insert into #typeofchange values ( 0 , 'prepend' ) Insert into #typeofch...
2
1,130
What is stopping data flow with .NET 3.5 asynchronous System.Net.Sockets.Socket?
<p>I have a .NET 3.5 client/server socket interface using the asynchronous methods. The client connects to the server and the connection should remain open until the app terminates. The protocol consists of the following pattern:</p> <ol> <li>send stx</li> <li>receive ack</li> <li>send data1</li> <li>receive ack </li>...
2
1,811
android TextView setText issue
<p>I tried to display a message on a TextView in a activity like this:</p> <pre><code> protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_display_message); // Get the message from the intent Intent intent = getIntent(); ...
2
1,072
Unity: Compute Shader to calculate closest point to each vertex
<p>I have a mesh, and an array of points. I want to calculate, for each vertex, the index of the closest point in the array. I have a routine that works:</p> <pre><code> for (int i=0;i&lt;vertexPositions.Length;i++) { float minDist = 100000.0f; int index=0; float dist; for (i...
2
1,037
jQuery toggle tbody
<p>I am nesting tables within tables and want to toggle the them when you click on a <code>&lt;th class="folder"&gt;</code></p> <pre><code> $('table').each(function(){ $('th.folder', this).bind('click', function(){ $(this).closest('table').children('tbody').toggle(); }); }); </code><...
2
1,132
Understanding the Codes of Tello Drone
<p>I am a beginner learning to program a drone, called Tello. I have got these codes online. They are working with the drone.</p> <p>Here are the codes of <code>tello.py</code> file:</p> <pre><code># This code is adopted from https://learn.droneblocks.io/p/tello-drone-programming-with-python/ # Import the necessary m...
2
1,648
How to display a JasperReports pdf file in an iframe?
<p>in currently I run my pdf report using JasperReports when clicking on report button the pdf report run with another browser tab but now I want to run the report on my JSP page using iframe tag. please help me to view / embedded jasper report on my web page.................................</p> <p>everybody can give ...
2
4,445
Using a string stream to fill a vector of integers
<p>This is a code snippet from a program that asks for inputs in a loop which is pretty bulky and hard to sift through so I limited my post to this snippet. This should be reading the inputs of some number of integers into the vector iin. For some reason, when the program completes its first loop, the next loop which a...
2
1,147
Error while trying to install Node, and its related programs, and apparently because I can't get TLS 1.2 support in Windows 7
<p>I tried to install Node, plus any extra tools it optionally 'needs' which apparently included "Chocolatey". </p> <p>("Chocolatey" is a poorly named package manager. The developer of it saw that Visual Studio IDE has NuGet, he thought it'd be good if Windows had a package manager, just as unix-based OSs have package...
2
1,450
Angular 2 - use cshtml instead of html in Asp.Net mvc 4x
<p>I've created asp.net mvc application using angular 2 following this <a href="https://angular.io/guide/visual-studio-2015" rel="nofollow noreferrer">template</a></p> <p><strong>My app:</strong></p> <p><strong><em>index.cshtml</em></strong></p> <pre><code>@{ Layout = null; ViewBag.Title = "Home Page"; } &l...
2
2,517
XIB view not showing with correct layout [iOS Swift]
<p>I'm trying to make a custom alert view and facing some issues with the fact that the displayed view is cutting the bottom half of the view (Images below)</p> <p><strong>How it's being displayed:</strong></p> <p><img src="https://i.stack.imgur.com/6Sp3U.png" alt="How it&#39;s being displayed"></p> <p><strong>Desir...
2
1,213
How to set one Dropify input for multiple button?
<p>I have a customer list and table and an edit button on each row. I use a modal form to edit customer information and I have a dropify input field to change customer image. When edit button clicked, if exist, I set default image to dropify and modal close button clicked form values and dropify is rested. Everything i...
2
2,264
Speed up nautilus python-extensions for reading image's Exif
<p>I've written a Nautilus extension which reads picture's metadata (executing <code>exiftool</code>), but when I open folders with many files, it really slows down the file manager and hangs until it finishes reading the file's data.</p> <p>Is there a way to make Nautilus keep its work while it runs my extension? Per...
2
1,671
Sqoop job to import data drom SQL server stuck at Map 0%
<p>I have a pseudo distributed hadoop cluster running CDH5.0.2. I'm running a sqoop import command:</p> <pre><code>sudo -u sqoop sqoop import --connect "jdbc:sqlserver://x.x.x.x:1433;databaseName=yyyyy" --username x --password y --table table_name </code></pre> <p>I'm just importing a very small table that has 12 row...
2
2,105
Disable and Enable button according to certain conditions
<p>I'm relatively new to android programming . Currently using eclipse and I have a problem .</p> <p>I'm asked to code a button called clockin , whereby this button will check if "Allow non-working site" to clock in . Meaning to say that when opening up this application , this button will automatically check if it all...
2
1,308
Strapi.io filter data by date
<p>I'm trying to deep filter API response from Strapi backend from a custom controller with entityService, but seems like I'm doing something wrong.</p> <p>According to the documentation: <a href="https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest/filtering-locale-publication....
2
9,076
padding is invalid and cannot be removed c# decrypt
<p>I saw that exists another questions about this topic, but I checked every question and I can't solve my problem.. This is my method to decrypt and another method to call decrypt method with required parameters:</p> <pre><code>public string Decrypt(AesOperationType operationType, byte[] criptotext, byte[] Key, byte[...
2
1,255
How to append "delete button" to EVERY list item that is newly created in JS?
<p>Shopping List exercise using JS DOM. My full code: <a href="https://codepen.io/lil_a/pen/BaQKvqZ?editors=0110" rel="nofollow noreferrer">https://codepen.io/lil_a/pen/BaQKvqZ?editors=0110</a></p> <p>I have to add a new &quot;Delete&quot; button to every newly created list item. I managed to do that, but it only appen...
2
1,116
Parse byte array for yaml value - kubebuilder
<p>We are using <a href="https://github.com/kubernetes-sigs/kubebuilder" rel="nofollow noreferrer">kubebuilder</a> to build our custom controller, the problem is we are not able to parse <strong>raw data</strong> as it comes empty when you apply the file.</p> <p>I’ve created very minimal example which describe the issu...
2
1,549
(Unity3D) Saving/Loading Player Inventory
<p>Whenever saving or loading via the Player script, the inventory always comes up blank on both sides, and I can't figure out where the problem is. The inventory uses the same system that is used in the Intermediate Inventory Tutorial by Unity, which works fine, but the inventory is always blank when loading.</p> <p>...
2
1,904
SessionFactory NoClassDefFoundError in Hibernate 5 and Spring 4 MVC
<p>I'm using Spring MVC 4.2.5.RELEASE and Hibernate 5.1.0.Final. I've configured all beans and pom.xml. I run the app and get: </p> <pre><code>SEVERE: Context initialization failed java.lang.NoClassDefFoundError: org/hibernate/SessionFactory </code></pre> <p>My pom.xml:</p> <pre><code>&lt;properties&gt; &lt;spri...
2
2,957
Strange behaviour of IE and plugin (.Net based)
<p>I'm writing a plugin for Internet Explorer using SpicIE framework and C# 4.0. My plugin does the following: user presses the button (share link button) and the plugin opens separate IE window with specific url. When I do the following: open 3 tabs, from last to first click the 'share link', -> tabs #3 and #2 open wi...
2
1,377
Word wrap using FPDF in table cell
<p>I am having a problem getting text to word wrap using FPDF. The only row I need to wrap is product_description which you can see in my code below. I have tried MultiCell without success.</p> <p>Can anyone help?</p> <p>Thanks.</p> <pre><code>function CreatePDFQuote($var) { require_once(DIR.'/classes/fpdf/fpd...
2
3,905
CSS SVG Path - Circular Progress Bar (small ammends)
<p>As you will see from the code below I have a lovely circular progress bar however I have a few questions and a little lost on how to achieve this (ideally I don't want to use any JS)</p> <ol> <li>I want to make the pink bar that goes around be curved and not flat, is this possible? like the edge of it. So instead o...
2
1,593
How to verify dynamic element present in Selenium WebDriver
<p>I'm writing scripts in Python using Selenium WebDriver to test a web application.</p> <p>The web application allows users to ask questions, which are added to a div as they are asked. Each question div has their own "upvote" and "downvote" link/image. The image changes when the "upvote" icon is clicked, from active...
2
1,530
Convertation error in bean method execution from simple language expression
<p>I want to set exchange header to result of executing bean method, in XML DSL. I found solution in comment for this question - <a href="https://stackoverflow.com/questions/23910858/camel-passing-specific-parameters-from-routes-to-a-generic-bean-method">Camel - Passing specific parameters from routes to a generic bean...
2
6,814
Edit Items in a List Using Modal in Ionic 3
<p>I have created an Array and I'm adding items to the array using Modal. Now i need to edit the item by selecting it from the list. please help me with the Code. How to fetch the item to modal and bring back the edited item in the same place in the list</p> <p>HOME.HTML</p> <pre><code> &lt;ion-header&gt; &lt;io...
2
1,068
MYSQL High CPU Usage and slow queries
<p>I have a problem with slow queries during high mysql load. This happens when I import products to woocoomerce using WP All Import. CPU and Memory load during import:</p> <p>TOP command:</p> <p><img src="https://i.stack.imgur.com/V2K8M.png" alt="TOP command"></p> <p>Sample Query before import:</p> <pre><code>SELE...
2
2,264
.predict() runs only on CPU even though GPU is available
<p>I used <a href="https://www.tensorflow.org/tutorials/keras/classification" rel="noreferrer">this script to train a model &amp; predict</a> on a machine with GPU installed and enabled and it seems that it's using only the CPU in the prediction stage.</p> <p>The device placement log I'm seeing during the <code>.predic...
2
1,132
How to parse complex JSON in Swift 4 using Codable
<p>I need help with parsing JSON from server. Here's the JSON:</p> <pre><code>{ "response": { "items": [ { "type": "post", "source_id": -17507435, "date": 1514538602, "post_id": 4105, "post_type": "post", "text": "Some text here", ...
2
3,440
Create dataTables in a Django application
<p>I have followed <a href="https://pypi.python.org/pypi/django-datatables-view" rel="nofollow">this tutorial</a> in order to add <strong>dataTables</strong> module to my django project, but I don't know how am I suposed to actually create that table on my <code>mytable.html</code> page.</p> <p><strong>models.py</stro...
2
1,306
Treeview Tkinter widget - clickable links
<p>I have ten links in my treeview widget (<a href="http://www.example.com" rel="noreferrer">http://www.example.com</a>, <a href="http://www.example1.com" rel="noreferrer">http://www.example1.com</a> and so on). It is plain text inserted into treeview. Is it possible to make it clickable? How can I convert text into li...
2
1,605
Comparing two List values in JSTL tag
<p>I'm comparing two different values each from different list using JSTL tag, but I keep getting the error. I tried to change the brackets associated with it, but none worked. I searched for comparing two list values in JSTL, but none helps me.</p> <pre><code>&lt;c:forEach items="${commentsList}" var="commentsList"&g...
2
1,122
jQuery Scrollable Next/Prev Buttons Can't Be Wrapped In Other Tags
<p>I have a scrollable going here: <a href="http://treethink.treethink.net/portfolio/" rel="nofollow noreferrer">http://treethink.treethink.net/portfolio/</a></p> <p>I am trying to put a p tag around the 2 a tags that cause the scrollable to move back and forth but no matter what I put around the a tags it breaks the ...
2
1,157
parseJSON error (jQuery 1.7.2)
<p>I am attempting to parse a JSON object located on another page on my website. The page is a hosted ecommerce platform, so I don't have server side access or control over certain elements on page.</p> <p>I have some code that i'm using that is returning a strange error. I've tested this snippet (with a different URL...
2
1,601
EnterTransitionCoordinator causes NPE in Android 5.0
<p>After adding exit and enter Activity transitions to an app, I am getting crash reports like the following:</p> <blockquote> <p>Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewParent android.view.View.getParent()' on a null object reference at androi...
2
1,157
Problems with certificate authentication for grpc client
<p>I've created a demo solution with a gRPC client (console application) and a gRPC server application. (the provided template for it on .NET Core 3)</p> <p>I'm trying to test certificate authentication between the two, but for some reason it fails with the following error:</p> <p><code>AuthenticationException: The rem...
2
1,165
Expandable Recycler View only showing one item in parent
<p>My recycler view has a parent and a child. My parent is only displaying one item with then all the topics in that one item. I can post my code below I'm not sure what it is I need to do to correct this as this is my first time using expandable views. I've posted the whole class below. Not sure what was needed for yo...
2
2,640
EditText in dialog returning null string
<p>I have this <code>button</code> to show a <code>dialog</code> which in turn has an <code>EditText</code> for the users to write something and then tap the <code>done</code> button to save it otherwise another <code>button</code> to close the <code>dialog</code>. The problem here is that I am not able to fetch that <...
2
1,344
How to assign values to an array using HubSpot's HubL
<p>I'm currently trying to figure out how to allow a content manager to change the order in which elements appear within recent post link lists. Essentially, the concept involves them picking the index in a sorting array that will hold that element's type as a string, which will later be iterated over with output logic...
2
2,463
How to include css and js files (Codeigniter + Twig)
<p>im new in the forum and im spanish... sorry for my low level of english...</p> <p>Im using Codeigniter with twig engine in my project but I having some problems...</p> <p>When I use:</p> <pre><code>&lt;link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}"&gt; </code></pre> <p>Codeigniter throw...
2
1,089
Embed custom font fot text box use in Visual Basic 2010
<p>OK I'm working on a problem tyring to embed a LCD type true type font in a text box. As for some background, I can get the lcd font to display if I install the font onto my system, then load it as the font type for the text box and it works great. However, it will not work as an embedded font in the application. I"m...
2
1,642
TemplateSyntaxError in Django at /admin/login (default requires 2 arguments, 1 provided)
<p>I looked thoroughly into my files and I could not find one error. Staring and reading my files for 45 minutes was a pain. I now need someone's help, I can't do this</p> <p>this is the path of the app: </p> <pre><code>website music project1 #this is the main folder that includes settings...
2
8,375
Program hangs up when using NAudio record sound and save
<p>I encountered some problems in using NAudio to save sound recordings. Most of time, the following code will work. It will start recording and saving to .wav file after I press the "start recording" button, and stops recording after I press the "stop" button. But sometimes, the program just hangs up after I click the...
2
1,066
Swift Could Not Cast Value of Type __NSInlineData to PFFile
<p>I am trying to display my Parse users image in a tableview cell and I run into an error when I try to pull the image</p> <pre><code>Could not cast value of type '_NSInlineData' (0x1086e9cf8) to 'PFFile' (0x106b2ee80) </code></pre> <p>I'm trying to figure out whether this is a result of how I'm trying to get the da...
2
2,629
javascript onmouseover and onmouseout (change a label's contents and set change an image botton's border color
<p>I have a set of image buttons that are used for navigation. I wrote a javascript function to display a description of the image button and also highlight the button by setting it border style and color with onmouseover. A second function clears the description and border with onmouseout.</p> <p>The description cod...
2
1,936
Sequelize model insert with array datatypes (postgresql)
<p>Hi can anyone help me how to create sequelize model that can be inserted with array datatypes. My scenario is that I have 2 models (<code>product</code> &amp; <code>order</code>), and what I want to do is that in order model I have <code>order_item</code> which will be array of <code>product_id</code> and refers to ...
2
1,442
Jacoco Jenkins plugin working but maven report showing 0% coverage
<p>I am wanting to collect coverage metrics with JaCoCo for Restassured based integration tests running against an external JVM process all orchestrated in Maven 3.</p> <p>I have the following setup:</p> <ol> <li>The pre-integration-test phase exec's the java process via ant to fork it off in it's own process, passin...
2
3,352
Does db.session.commit change app context in Flask-SQLAlchemy?
<p>I am configuring a fixture for pytest that creates a flask app instance. My app is created with <a href="http://flask.pocoo.org/docs/0.12/patterns/appfactories/" rel="nofollow noreferrer">Application Factories pattern</a>. I am at the stage of connecting it to the database and struggle to understand the difference b...
2
1,169
alternative of scrollLeft()
<p>G'day!<br><br></p> <p>I have a page which has Horizontally Scroll feature going on there.<br> I have a side bar and a content box<br><br></p> <p>In side bar I have 5 links, say LINK1 - LINK5<br><br></p> <p>In the content box, I have 3500px of width which contains 5 sections of divs of 700px each.<br> So the page ...
2
1,312
How to make content next to a fixed-position menu not overlap in smaller resolutions
<p>I'm trying to figure out how to make it so if a user has a browser window that's under about 1024px (the site has no horizontal-scroll at 1024px+), if they do scroll right to see more of the main content, that it does not get overlapped/messy'd by the left fixed-position menu.</p> <p>I've made a JS fiddle that recr...
2
1,828
retrieving data from mysql using hibernate without primary key in restful web service
<p>I am developing web application using <code>restful web service</code>. I have used <code>hibernate</code> and <code>POJO</code> to <code>mysql communication</code>.</p> <p>I have database which has the user table and the primary is the <code>empid</code>. For getting the single row, I have passed the empid from ht...
2
2,025
MVC 4 ConnectionString on my godaddy hosting Error 166
<p>I am testing a website, mvc 4 website; I am learning actually MVC.</p> <p>I have published the website to my personal hosting, on my computers works good, but once is on my hosting I have an error, here are the connection string first: (I am using northwind to practice)</p> <pre><code> &lt;add name="NorthwindEntit...
2
2,102
rxjs process ajax request
<p>I'm trying to apply the ajax method posted here: <a href="https://github.com/redux-observable/redux-observable/blob/master/docs/basics/Epics.md" rel="nofollow noreferrer">https://github.com/redux-observable/redux-observable/blob/master/docs/basics/Epics.md</a></p> <pre><code>import { ajax } from 'rxjs/ajax'; // ac...
2
1,059
Osgi Exception in Activator.start()
<p>I new Start osgi My code is running java application but it is not running osgi the error reason is 'import com.sun.codemodel' how resolve this problem .</p> <p>My activator class is : </p> <pre><code>package deneme; import java.io.File; import java.net.URL; import org.jsonschema2pojo.SchemaMapper; import org.os...
2
1,463
org.sqlite.SQLiteException: [SQLITE_ERROR] SQL error or missing database (no such table: account)
<p>i know this question maybe have repeated several times, but i couldn't find a real answer to this problem &quot; so i want to connect sqlite database to Java application , I am using Intellij and using sqlite-jdbc-3.34.0 as external library I am trying to read from the database &quot;account&quot; using select. and ...
2
1,480
How can I retrieve all google Contacts with the Contacts API?
<p>I'm trying to use the Contacts API to retrieve all the contacts of the person who clicks on the <code>&lt;a&gt;</code> at the bottom of response-callback.php. I am using Google App Engine and within the GAE I enabled the Contacts API. I got this code by following a tutorial so it's rather hard to find errors myself....
2
1,732
How to align Google Recaptcha using Bootstrap classes?
<p>I have the default register form in ASP.NET MVC5. I have added the Google Recaptcha but it doesn't align with the rest of the form as can be seen in the screen shot below. I have tried many different ways but was unsuccessful. I even looked at <a href="https://bootstrapious.com/p/bootstrap-recaptcha" rel="nofollow n...
2
1,270
Out of memory and OpenGL errors while manipulating two images on android
<p>Hi: I have to images on two files (left and right) What I want to do is show them side by side in a ImageSwitcher. This is the function that returns the Drawable that I want to set in the imageswitcher:</p> <pre><code>public Drawable getImage(String left, String right){ System.err.println("Decoding both images"...
2
1,220
Android project wont pull facebook events
<p>Hi I am trying to make a app that will pull a list the logged in users friends from facebook into my application I am using the facebook SDK the code compiles and seems to work but hangs on the spinner animation when I select the get friends option from the menu! here is the code I am using bellow</p> <pre><code>pu...
2
5,116
set react state after props get the value from redux state(which is axios request in action and ReduxPromise in Midleware)
<p>I have component that gets props from the redux state with connect function. However my Redux state is a ReduxPromise when this component starts so if I assign this.state = {books: this.props.books} in the constructor I obviously get an error. I tried </p> <pre><code>componentWillUpdate(nextProps, nextState){ th...
2
1,062
Powershell Get-ADUser - invalid enumeration context error
<p>I'm having issues getting all AD users in my work environment. It runs for about 30 minutes before displaying the following error below:</p> <pre><code> Get-ADUser : The server has returned the following error: invalid enumeration context. At line:3 char:19 + Get-ADUser -filter * -Properties *...
2
1,870
Add html to a lightning component from a visual force page
<p>I am wondering if it is possible to add an HTML template to a lightning component that I am calling in a visual force page. I have this template in my Vf page:</p> <pre><code>&lt;script id="user_filter_template" type="text/x-kendo-template"&gt; &lt;input type="text" id="comboBox" name="comboBox"/&gt; ...
2
2,042
Swift How to wrap long text of label in collection cell and set margin in text label
<p>For now, I am using custom collection view layout to implement this.</p> <p><a href="https://i.stack.imgur.com/lj4Ec.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lj4Ec.png" alt="enter image description here"></a></p> <p>Each cell contains a label with different length of text. I return the wi...
2
1,203
Java Open socket getting Connection Refused attempting to connect to localhost server
<p>I'm running a simple test server on my PC. The server is written in Python and it seems to work, sitting there listening on Port 8048 and just sending back messages to show what it has received. I can test the server using Putty and it seems to be good (if I choose Raw connection).</p> <p>This is all about testing ...
2
1,250
503 with no trace in the logs using apache/wsgi
<p>My Flask app returns 503 errors regularly. I can't tell the reason. Could be load related. It is not systematic, so it's not a file permissions issue. It's more like 5 times on 10 subsequent requests. Easy to reproduce using F5 in a browser.</p> <p>I'd like to debug that but I can't find anything in the logs.</p> ...
2
1,598
How and where validate ownership of resource in spring boot rest delete endpoint
<p>I am writing simple spring boot rest application and i come up with little architecture problem while creating DELETE endpoint. I have try way to solve this problem and I need advice which one is better and why.</p> <p>First of all, I have class annoted with <code>@ControllerAdvice</code> which contains exception h...
2
1,122
Why does this JSP snippet break my html code?
<p>So i have a jsp that serves a nomination view and form depending on variables passed through spring mvc. Now the view works when the user wants to fill out a new nomination. It also works when they are viewing the nomination for review (where it is flagged as disabled) but it doesn't work a reviewer (called generali...
2
11,168
Cannot filter a query once slice has been taken django
<p>Follow up onto:</p> <p><a href="https://stackoverflow.com/questions/64954687/autofield-should-be-present-but-its-not-django/64954724#64954724">AutoField should be present but it&#39;s not (django)?</a></p> <p>related to:</p> <p><a href="https://stackoverflow.com/questions/35206482/cannot-update-a-query-once-a-slice-...
2
1,154
creating dynamic xml with php
<p>here is my xml code</p> <p> </p> <pre><code> &lt;autoLoad value="true"/&gt; &lt;autoPlay value="false"/&gt; &lt;playContinuously value="true"/&gt; &lt;jumpToNextCategory value="false"/&gt; &lt;loop value="false"/&gt; &lt;keepAspectRatio value="true"/&gt; ...
2
1,617
ASP.NET MVC tests with MSpec. Is this correct or needs refactoring?
<p>I'm new to MSpec and would like to know if the way I wrote my test for ASP.NET MVC is correct. The test passes but I don't really like the way it's written and it seems awkward. I'm certainly missing something.</p> <pre><code>public class AccountControllerTests3 { protected static AccountController controller; ...
2
1,850
contentResolver returns null
<p>Instead of using direct query to db im using contentResolver but it returns null. And i dont know do i need to add some code or there is a mistake in mine.</p> <pre><code>private void displayDatabaseInfo() { // Define a projection that specifies which columns from the database // you will actually use after...
2
1,632
Ringtone mode changed during incoming call in Android. Need for Text to speech app
<p>During incoming call user can put the ringing of the phone in silent but pressing the volume up down or power on button in Android Phones. I am creating a speak caller name app where in my app will speak the name of the caller. I am not muting the current ringtone. Everything is working fine in my app except when p...
2
1,388
Couldn't load resource Error : net::ERR_CONNECTION_REFUSED
<p>i'm using react JS for front end and .NET API for backend , i'm trying to fetch data from API , i enabled CORS (i added some configuration in startup file ) and it's all fine normally . in react js , i want to fetch data using my API so this is my code to show a list of data : </p> <pre><code>import React from "rea...
2
1,796
Hibernate - Object Is Not An Instance Of Declaring Class
<p>I have a very simple entity:</p> <pre><code>import javax.persistence.*; @Entity(name = "Message") public class MessageEntity { private Long id; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long getId() { return this.id; } public void setId(Long id) { thi...
2
2,356
How to connect with bloomberg terminal using python skd?
<p>I am trying to run Bloomberg example code on my machine. I have created teamviewer VPN to machine where Bloomberg Terminal is installed. I have also disable firewall for both machine. </p> <p>Bloomberg Terminal is up and logged in.</p> <p>Code :</p> <pre><code># import blpapi # options = blpapi.SessionOptions() #...
2
4,849
React: custom function parameters
<p>Given a basic component and a custom handleChange() function, where is the parameter of 'id' coming from in App.js? I know that all event functions receive an event property as an argument, but where did 'id' come from? Does this mean that all custom functions I write in a given class based component will receive a...
2
1,048
WCF webservice with custom certificate validation
<p>I am hosting a WCF webservice with custom certificate validation, but I am not able to configure it properly. When I try to get the WSDL of the WebService, I get a compilation error below. What am I doing wrong?</p> <p>Thanks</p> <h1>Edit:</h1> <p>I've looked into: <a href="https://stackoverflow.com/questions/155...
2
2,687
Bison example code not compiling
<p>I'm reading LFS and came across <strong>bison</strong> which I've seen it before other places so I thought I should learn a bit more about it. I found <a href="http://alumni.cs.ucr.edu/~lgao/teaching/bison.html" rel="nofollow">this page from UC Riverside CS department</a> and the example code is not working. Anyone ...
2
1,210
Can't get Phonegaps FileWriter to work
<p>New to Phonegap and having a hard time understanding the <code>FileWriter</code> function. I am trying to get this example to work on iOS6 but I'm stuck with the <code>error</code> message</p> <pre><code> &lt;script type="text/javascript" charset="utf-8" src="cordova-2.3.0.js"&gt;&lt;/script&gt; &lt;script t...
2
1,263
Variant implementation (variadic template) C++
<p>I'm trying to implement a variant class but I'm having a problem with a recursive function:</p> <pre><code>template&lt;typename Visitor, typename... Types&gt; class VariantVisitor; template&lt;typename... Types&gt; class Variant { template &lt;typename V, typename... types&gt; friend class VariantVisitor; ...
2
1,222
My HTML CSS code doesn't work on Safari but works on all other Browsers
<p>I have created an animation card for my clients website, but the html css code doesn't work on safari (On Mobile) while it works on Chrome, Firefox properly. I have also added -webkit-animation: for browser compatibility. It works fine on andriod browsers but in iPhone safari animation doesn't work. Below is my css...
2
1,359