title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
JIT Compiler encountered an internal limitation
<p>When i run the test cases i got follwing error <em>JIT Compiler encountered an internal limitation</em> when i run this line <code>actual = StoreHealth_Accessor.lookupRuleManagerandFilterRawdata(rawdt, dtRuleManagerTable, ref listobj, distinctredc, idevicegroupcount, storeID);</code> i get error so how to resolve i...
1
1,792
Error: SyntaxError: Unexpected token <
<p>I am getting this error when I load the application. I have referred the router references : 3.0.0-beta.1 </p> <p>The error in the browser console on the loading of the application</p> <pre><code>index.html:24 Error: SyntaxError: Unexpected token &lt; at Object.eval (http://localhost:49928/app/main.js:7:36...
1
1,577
Gradle build in Docker container taking up too much memory
<p>I need your help limiting the amount of memory Gradle builds are taking up on a build machine. I try to build an Android project that has almost 100 modules, including a single <code>com.android.application</code> module and a lot of <code>com.android.library</code>. The single Gradle command is doing both the build...
1
2,439
Error: Cannot enqueue Handshake after already enqueuing a Handshake
<p>I am fetching news feeds from different sources &amp; adding to DB but I get below exception</p> <blockquote> <p>Error: Cannot enqueue Handshake after already enqueuing a Handshake. at Protocol._validateEnqueue (/home/vikas/node_modules/mysql/lib/protocol/Protocol.js:210:16) at Protocol._enqueue (/hom...
1
1,458
How do I include header files from /usr/include in my cmake project?
<p>I have been scouring similar, existing Stack Overflow questions, but I am still clueless (this is my first time using cmake). I simply want to include headers that lie in subdirectories of /usr/include in my cmake project, but I obviously have no idea what I am doing :-) I am using the Bash shell and vim because I a...
1
2,060
How to programmatically login into a website that does not return an html response using c#? It hangs when calling GetResponse()
<p>I am trying to programmatically login into a website ("<a href="http://www.smscountry.com" rel="nofollow noreferrer">http://www.smscountry.com</a>") using C#, but the program hangs at the second GetResponse() request, where I try to login by POST method and filling the form fields.</p> <pre><code> public Str...
1
1,681
How to install Impala on Ubuntu?
<p>I want to install <a href="https://impala.apache.org/" rel="nofollow noreferrer">Impala</a> on an Ubuntu instance. So far, none of the methods below didn't work.</p> <p>How can I install a stable version of Impala in Ubuntu?</p> <p><strong>Failed method nr. 1: apt-get</strong></p> <p>First I tried to install bina...
1
1,344
Invalid OpenStack Identity credentials - Glance
<p>I installed Openstack on RedHad using RDO. Then I get the following error when I execute the glance commands. </p> <pre><code>glance image-list Request returned failure status. Invalid OpenStack Identity credentials. </code></pre> <p>Below is the backend error of <code>api.log</code></p> <pre><code>2014...
1
1,690
php - insert multiple rows into mysql from form loop
<p>So I am displaying multiple html forms on a page - works great because I am just using a simple loop to display it 80 times but the issue I am facing is I would like to take all 80 forms and submit them into multiple rows in my database. It's only submitting the last form (which is 80)</p> <p>If anyone can help me...
1
1,218
(still) cannot properly install lxml 2.3 for python, but at least 2.2.8 works
<ul> <li><p><em>30 jun 2011</em> -- I am awarding @Pablo for this question, because of his <a href="https://stackoverflow.com/questions/6417881/updated-29-june-still-cannot-properly-install-lxml-for-python/6523725#6523725">answer</a>. I am still unable to properly install lxml 2.3 for reasons discussed in his comments...
1
9,122
AES encrypt/decrypt on Android doesn't run
<p>I need help on encryption/decryption on Android application.</p> <p>I explain the situation. I'm actually wrote an application that used content generated and encrypted by an iPhone application.</p> <p>And for securisation, the user provide his own passphrase to correctly encrypt/decrypt data between different pla...
1
1,306
Data-delay function for a website
<p>I have been struggling with this for some time now.</p> <p>Basically I have a website and I will show some images and I want them to animate one by one. I have added the <a href="http://daneden.github.io/animate.css/" rel="nofollow">animate.css</a> I found on internet and added to my website.</p> <p>This is my HT...
1
1,171
how to convert multiple div into image (png/jpeg) using php and javascript?
<p>How can I convert multiple dynamic div (created at runtime) into image. There are more than 50 div which are created at runtime using php array. I just want all those div to be converted to image seperately.</p> <p>Here is the code I tried for -</p> <pre><code>&lt;?php $names = [" ", "abc", "def", "ghi yfg", "jkl...
1
1,025
why is invalidateLayout is not triggering sizeForItemAtIndexPath in UICollectionView? (code attached)
<p>The issue is the number of columns in the collectionView does NOT stay at 7 (the desired amount) upon rotation. What code change is required to fix this?</p> <p>It seems the invalidateLayout from the custom UICollectionViewFlowLayout is NOT triggering the sizeForItemAtIndexPath method in the collectionView? Any ...
1
2,605
How do I update my package.json to fix peer dependencies and its conflicts?
<p>I am working on a relatively old Ionic project written by some other guy that worked in my company before me and I can't get it to build properly. The reason is that when I run npm install, I get too many warnings about peer dependencies.</p> <p>I've tried to install the peer dependencies manually without success. ...
1
3,425
PHP openssl AES in Python
<p>I am working on a project where PHP is used for decrypt AES-256-CBC messages</p> <pre><code>&lt;?php class CryptService{ private static $encryptMethod = 'AES-256-CBC'; private $key; private $iv; public function __construct(){ $this-&gt;key = hash('sha256', 'c7b35827805788e77e41c50df4444149...
1
1,102
How to indicate there is more text to scroll?
<p>I'm making a webpage and I have quite a bit of text, so I made a text-box that you can scroll using <code>Overflow: auto</code>. My question is how could I make it more clear that you can scroll to see more? At the moment if you don't know there is more text, you're probably not going to scroll, so I was thinking of...
1
1,196
Implementing Singleton DB Connection in Java
<p>I'm trying to implement a singleton DB connection in Java. I think I have it mostly correct, but when I try to use it in other classes, I keep getting java.lang.NullPointerExceptions. </p> <p>The error I'm getting is in my FileManipulation class, on the PreparedStatement line where I do conn.PreparedStatement(query...
1
1,732
Table Pagination with Semantic UI React Table
<p>I have a <a href="https://react.semantic-ui.com/collections/table/" rel="nofollow noreferrer"><code>&lt;Table&gt;</code></a> component from <code>semantic-ui-react</code> that I use to render fetched data from a mocked api call. I could potentially have <code>X</code> amount of rows, so I'm looking into adding pagin...
1
2,058
What standard errors are returned with predict.glm(..., type = "response", se.fit = TRUE)?
<p>I am going to fit the model on the data provided in this <a href="https://stackoverflow.com/a/14424417">excellent example</a> on how to compute the 95% confidence interval for the response, after performing a logistic regression:</p> <pre><code>foo &lt;- mtcars[,c("mpg","vs")]; names(foo) &lt;- c("x","y") mod &lt;-...
1
1,217
Java fork/join framework logic
<p>This came up as a "side effect" to an <a href="https://stackoverflow.com/a/12212803/572743">an answer</a> on another question today. It's more about curiosity than about an actual problem.</p> <p>Java SE 7 offers what Oracle calls "the fork/join framework". It is a presumably superior way to schedule work to multip...
1
1,816
Android SQLite issue: 'Table [...] has no column named' error
<p>I keep getting error that a column in my table cannot be found. Cannot figure out why this is happening. The column names appear to be spelled correctly.</p> <p>I'm getting this error : <code>06-11 21:27:02.701 3703-3703/com.example.luca.contatti E/SQLiteLog﹕ (1) table Contatti has no column named imageUri</cod...
1
1,495
Entity Framework Snapshot History
<p>I am trying to figure out how to use Code First Entity Framework and keep a snapshot history of certain tables. This means that for each table I want to track, I would like to have a duplicate table postfixed _History. Every time I make a change to a tracked table row, the data from the database is copied to the his...
1
1,575
R - Compare rows of data.frame (to combine based on conditions)
<p>I'm starting with a data.frame of genome ranges (a chromosome, and a start - end position). I'm trying to combine rows that are 1) adjacently positioned and 2) that share a value in two other columns. Note: I'd like an efficient method since my real data is > 10 million rows. (data.table if possible)</p> <p>Toy d...
1
1,345
Shiny app loading locally, disconnects from server when deployed
<p>My app runs fine locally. I can interact with it, etc. But when deployed globally it immediately throws the "Disconnected from Server" error. I've been googling for days and have tried everything I know how to try. </p> <p>First things first:</p> <ul> <li>I tried uninstalling then reinstalling a bunch of packages<...
1
2,047
Django REST overrride destroy method to make user inactive
<p>I'm trying to first access the users table via the user foreign key present in userinformations models and later override the RetriveUpdateDestroy API view's destroy method to change the status of the user to inactive instead of deleting them. I can't seem to access the is-active field of the in built User database....
1
1,133
Hibernate query cache with criteria
<p>I think there is a point that I have not understand yet. I have a class witch have 3 collections of elements in attribute</p> <pre><code>public class Pays implements Serializable{ private static final long serialVersionUID = -8767337896773261244L; /** * the id of the country */ private long id; /** * name of th...
1
1,660
AngularJS Scroll to element prevent browser from jumping
<p>I've written an app that has a list of blocks.</p> <p>Each block contains links to other blocks. When a link to a block is clicked e.g #/home/page-19, the page animates down/up depending on current position.</p> <p>This all currently works but when the anchor is clicked and the route updates, the browser jumps to th...
1
1,993
Load Balancing CloudSim
<p>I have been recently trying to work on Cloud Computing as a part of my College assignment.</p> <p>I have been trying to implement a new Load Balancing algorithm, (which has been proposed in some research paper) using CloudSim.</p> <p>Please help me out with this algorithm, I have some major issues implementing it....
1
2,602
org.postgresql.util.PSQLException: FATAL: password authentication failed for user "postgres" while connecting to postgress from Spring Boot
<p><a href="https://i.stack.imgur.com/2w8yr.png" rel="nofollow noreferrer">This is the command prompt where I have created container and database</a> application.yml</p> <pre><code>app: datasource: jdbc-url: jdbc:postgresql://localhost:5432/postgresDB username: postgres password: password pool-size: ...
1
2,633
error "java.lang.StackOverflowError:" when try to save object in Firebase Database
<p>I am new to the firebase. I tried to save the properties of the users listed in my application into the database <code>Firebase</code>, this is code </p> <pre><code>mAuthListener = new FirebaseAuth.AuthStateListener() { @Override public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) { ...
1
3,270
Customize Notification Area in Android
<p>I am using <code>RemoteViews</code> to create a custom notification. Is there any way to customize the Notification Area Specially Height...??? I don't want to use <code>BigView</code> coz i need use it for APIs less than 11.</p> <p>The sanpshots are : </p> <p><img src="https://i.stack.imgur.com/oLPUD.png" alt="en...
1
1,748
How to have the click event of a ListView item turn on and off the checkbox in the item template for the listview
<p>I have UWP app with a XAML listview in a user control as seen below.</p> <pre><code>&lt;ListView x:Name="lvDevices" Margin="12,8,0,0" Grid.Row="4" HorizontalContentAlignment="Stretch" ItemTemplate="{StaticResource DeviceTemplate}" Width="Auto" ItemsSource=...
1
1,974
How to implement an Android Service in Xamarin.Forms
<p>I'm trying to periodically check with a web service if a new item has been added to a database. If there's a new item a listview that the user sees should be updated. I'm using PCL and I have accomplish it creating a new Task with a timer inside. But this only works if the app is open. I want to do the same when the...
1
1,055
Transcoding HEVC 4K HDR using ffmpeg and vaapi
<p>I am trying to transcode a 4K HEVC HDR video to a lower bitrate using ffmpeg and VAAPI hardware acceleration for my LG OLED television.</p> <p>I use the following file: <a href="http://drive.google.com/open?id=1HxrMIjxOK8oF5-mR2sOg5OxpYDt4_OD7" rel="noreferrer">Video</a></p> <p>Using the following command:</p> <p...
1
4,372
SIGABRT error when running on iPad
<p>all. I've been banging my head for a few hours because of this problem. I have a universal project that's a mix of iPhone and iPad projects. I put these codebases together into the universal project and, after a lot of "<code>#if __IPHONE_OS_VERSION_MIN_REQUIRED &gt;= 30200</code>" checks, got the project to run in ...
1
1,152
How to make Docker use all CPU cores?
<p>I'm trying to get Docker to use all the available CPU cores on my hardware (4). Docker can only see one CPU core:</p> <pre><code>$ docker run --cpuset-cpus="0-3" -ti ubuntu bash C:\Program Files\Docker Toolbox\docker.exe: Error response from daemon: Requested CPUs are not available - requested 0-3, available: 0. Se...
1
1,289
Using ajax request to get previous and next object
<p>I am trying to create a Ajax function which will create an article navigation according to their date of creation, so the user can navigate through articles using previous(older) and next(newer) links. </p> <pre><code>&lt;div class="content clear"&gt; &lt;div class="article"&gt; Article contents... &lt;/di...
1
1,195
Xamarin.Forms Data Binding to class properties
<p>I know that there are a way to bind data of page <code>StackLayout</code> variables to class properties, but unfortunately I don't find any resources about it. I know how to implement simple binding. For example: between <code>Editor</code> and <code>Label</code> . But how can I bind <code>Editor</code> input text t...
1
1,277
How to change navigation drawer hamburger menu icon to arrow icon when open/close drawer layout - Flutter?
<p>When I created drawer layout following the <a href="https://flutter.dev/docs/cookbook/design/drawer" rel="nofollow noreferrer">Add a Drawer to a screen docs</a>, it works OK. However, I have a problem, this is menu Icon.</p> <p>In Android, I setup drawer layout with DrawerToggle and when I open drawer, menu icon is...
1
1,124
nodejs join two videos together?
<p>So I am working on a concept and while I understand I could use FFMPEG to do what I need to do I was hoping that there would be a way to use nodejs Request to join a video onto the end of another video.</p> <p>The following code does work for audio, and the video file I am using is an MP4 (note I am trying to join ...
1
1,766
Serialize a Dictionary<string, object> that contains a List<string>?
<p>I've found a Serializeable Dictionary which works quite fine: <a href="http://www.jankowskimichal.pl/en/2010/10/serializabledictionary/" rel="nofollow">http://www.jankowskimichal.pl/en/2010/10/serializabledictionary/</a></p> <p>But I'm getting an exception whenever one of the objects in the dictionary is simply a l...
1
1,065
OpenGL "Invalid operation error" After glDrawElements function on android phone
<p>I can't run my app on my phone, and I'v located the error, yet lack the knowledge in programming and in english to repair it. The app run's on emulator perfectly, without any errors in code neither in opengl. Yet on the phone everything runs fine without any errors, but show no opengl elements which i want to draw....
1
1,510
javax.xml.parsers.DocumentBuilderFactory could not be instantiated in Websphere Application Server with Hibernate 5.2.2 Upgrade
<p>Upgrading Hibernate 4.2 to Hibernate 5.2 version</p> <p>While deploying application in Websphere 8.5.5.13 version, throwing up following error </p> <blockquote> <p>00000001 ContainerHelp E WSVR0501E: Error creating component com.ibm.ws.runtime.component.CompositionUnitMgrImpl@b9dc2b3a com.ibm.ws.exception....
1
4,083
Seeing multiple events with Python watchdog library when folders are created
<p>I am having issues where I am seeing additional events that I am not expecting. </p> <p>I am watching the folder <code>C:\Users\kvasko\Downloads\data</code>. If I copy a folder <code>2017\07\25\LogFile.xml</code> I will see the following 3 "created" events, when I would expect to only see 1. If I create the date fo...
1
1,436
Maven compilation fails with "cannot find symbol" while with Eclipse, it compiles
<p>I have a compilation error in Maven but in Eclipse everything goes well.</p> <p>Is there something I am doing wrong or is it a Maven bug?</p> <p>I have created a code snippet, so you can try to reproduce it.</p> <p>Here are the Java source files and a pom.xml.</p> <pre><code>package p1; import p1.A.D.C; import ...
1
1,797
Task scheduler Windows Server 2019 - Task not running ONSTART
<p>I am trying to build an AWS AMI for a gitlab runner for building our .NET application. I am using packer for building the image based one the official Windows Server 2019 base AWS AMI.</p> <p>I am using WinRM, with HTTPS, not changing any password.</p> <p>Here are the powershell commands to configure the virtual mac...
1
1,461
Primefaces / JSF: selectOneMenu value is not set, ajax listener not called
<p>I am using Primefaces and JSF to develop this frontend. My issue is that one of my selectonemenus never sets its value binding, "selectedGroup", so the second dropdown is never populated. My backing bean is being called to "update" the second selectonemenu, but the listener of that ajax is not called, nor is selec...
1
1,081
Arduino/Processing Bluetooth Communication [Android, HC-06]
<p>So I'm trying to communicate with an Arduino Uno through an HC-06 chip, but the SoftwareSerial isn't available for reading, even after a connection has been established. The Processing code was mainly taken from this article: <a href="http://arduinobasics.blogspot.com/2013/03/arduinobasics-bluetooth-android_25.html...
1
3,313
After update the APK supports fewer devices than previously
<p>I have a relative simple App that was already in the Play-Store of Google.</p> <p>Now I've made an Update of this App. One Point of this Update was that I include the ZBar-Scanner. The Rest of the changes were minimal and shouldn't have any influence on my problem.</p> <p>I just put the newest verison of my App i...
1
1,507
Change the color of a row or record on a gridview on asp.net c#?
<p>I am making a table for an appointment book... and I need to do the following...</p> <p>Display all appointments that have not been attended yet (I have a button to mark them as attended)... If an appointment has not been attended and it's date is before today's date, that row must appear in red (the text font colo...
1
3,802
I have installed Tensorflow but I can not import it in Python: ImportError: cannot import name 'descriptor' from 'google.protobuf' (unknown location)
<p>I have installed Tensorflow successfully in my Windows 10 Notebook:</p> <pre><code>(base) C:\WINDOWS\system32&gt;pip install tensorflow-gpu Requirement already satisfied: tensorflow-gpu in c:\users\alienware\anaconda3\lib\site-packages (2.0.0) Requirement already satisfied: gast==0.2.2 in c:\users\alienware\anacond...
1
2,276
Android ImageView zoom, rotate, position change prob
<p>I am using a the following code for a image, which will rotate, zoom in-out with pinch. User can make its position by dragging it. </p> <p><strong>activity_img_match.xml</strong></p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/to...
1
3,614
Binary expression tree converting postfix to infix and vice versa
<p>Task In this project, you are asked to develop a binary expression tree and use the tree to convert postfix and infix expressions to each other. An expression may contain 4 types of operators: multiplication (*), division (/), plus (+), and minus (-). We assume that multiplication and division have the same preceden...
1
3,247
Pass data from component to action and saga using React/Redux saga
<p>I'm using React with Redux Saga. When I try to execute a Saga Effect in my component with this.props.dispatch({type: CreateActionType.CREATE_ASYNC}); nothing happens, it is not executed.</p> <p>And when I console.log this.props.data in index.js, it's null</p> <p>Please let me know if missing necessary info here.</...
1
1,159
How to alternate-reverse loop an SVG animation?
<p>I am new to SVG specially in SVG animation so I don't know how to do this. I need to reverse the animation once it is finished and start it over again. I found this one <a href="https://stackoverflow.com/questions/32423332/how-to-reverse-the-moving-direction-of-the-svg-animation-on-the-mpath">How to reverse the movi...
1
5,526
Get Currently Opened Word Document from Process
<p>The goal is to get the full path to the document opened in an instance of Microsoft Word that I have a process reference for.</p> <p><strong>Pseudocode Example:</strong></p> <pre><code>Process myWordProcess = something; // This is my process reference DocumentInformation docInfo = SomeNamespace.GetDocumentInformat...
1
1,047
entity cannot be constructed in a LINQ to Entities query
<p>My entity Person is generated by EF. I'm trying to show the firstname in a autocomplete textbox when you search for a specific character, just like a facebook search. When I try to run i get the error-message: </p> <pre class="lang-none prettyprint-override"><code>The entity or complex type 'Dejtingsajt3.Repositori...
1
1,441
Using hogan.js with express.js + vhosts
<p>What is the correct way to use hogan.js with express.js?</p> <p>I've tried the following:</p> <pre><code>var hogan = require('hogan.js') ... app.set('view engine', 'hogan'); </code></pre> <p>followed by</p> <pre><code>app.register('.hogan', hogan); </code></pre> <p>But I end up with the following error:</p> <p...
1
1,369
How to make modal box responsive?
<p>I have implemented this jQuery-based modal box: <a href="http://leanmodal.finelysliced.com.au/" rel="nofollow">http://leanmodal.finelysliced.com.au/</a>. It works perfect, and it is quite easy to use. However, it is not responsive - contrary to the rest of the website. Here is what I got so far:</p> <p><strong>CSS-...
1
1,050
Unable to retrieve the input field of material UI using refs in react js
<p>I am developing a Web application using React JS + Material UI core. Now, I am building a form with the material ui control. Now, I am trying to retrieve the input field value (TextField) using refs of React. It is always saying undefined.</p> <p>This is my component</p> <pre><code>class CreateEventComponent exten...
1
1,591
Parsing Json in Python for root element
<p>Here is my JSON string which I need to parse.</p> <pre><code>{ "192.168.1.2_151b3a32-ce00-114a-e000-0004a50c1c6d_stream1" : { "@class" : "com.barco.compose.media.transcode.internal.h264.H264Gateway", "id" : "192.168.1.2_151b3a32-ce00-114a-e000-0004a50c1c6d_stream1", "uri" : { "high" : "rtp://239...
1
1,185
Corrupted file when creating Word document
<p>I'm quite new to docx4j. After installing everything, I tried creating an empty .docx file, and then write text in it. Here's the code :</p> <pre><code>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage(); wordMLPackage.getMainDocumentPart().addParagraphOfText("Hello Word!"); wordMLPacka...
1
1,354
hive.HiveImport: FAILED: SemanticException [Error 10072]: Database does not exist:
<p>I am trying to import MySQL database into Hive to analysis of large MySQL Data according to <strong><a href="http://www.percona.com/blog/2013/07/11/mysql-and-hadoop/" rel="nofollow">Blog</a></strong> there are couple of ways to do this</p> <ol> <li><strong><em>Non realtime: Sqoop</em></strong></li> <li><strong><em...
1
1,964
jQuery: Show and hide menu
<p>I have this code:</p> <pre><code>$('.skaftetopmenu-li &gt; a').click(function(e) { e.preventDefault(); var subid = $(this.parentNode).attr('id'); if (subid !="forsidemenu"){ var str = $('#submenu-content-'+subid).html(); if ($.trim(str) == ""){ $('.submenu-content', this.parentNode).lo...
1
1,449
How to debug a cap deploy error and find log files for Net::SSH::ChannelOpenFailed network error?
<p>I run into <em>Net::SSH::ChannelOpenFailed</em> error when deploying (the error occurs at capistrano's assets:precompile task - see assets.rb below) and only on one server of two. Both servers have similar installation (Gentoo kernel 3.6, Ruby 1.9.3, rails gem 3.2.12, net-ssh gem 2.6.5), but only one gives me this e...
1
2,032
How to combine array of array values into one array?
<p>I have following array,</p> <pre><code>Array ( [14289] =&gt; Array ( [0] =&gt; Ability||STROKE CLINIC,Session||Session #3: Tues June 28th - Fri July 8th (9-2:00PM),Time||#1 only: 2pm,child1||FC [1] =&gt; Ability||N/S++,Session||Session #3: Tues June 28th - Fri July 8th (9-2:00PM)...
1
1,193
Dynamically add the same CSS file from different pages at different directory depths
<p>Okay I've been trying to figure this out for a while now. I have a website I'm working on and here is basically my structure:</p> <pre><code>index.php page-x/ index.php page-x-y/ index.php include/ functions.php css/ main.css </code></pre> <p>Except add on more sub-folders and index pages. ...
1
1,056
Simple Calculator class in a C# Console Application
<p>I am beginner at c# and i have a homework , so i need your help , here is what i have done for now, </p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleCalculator{ class SimpleCalculator { double number1; ...
1
3,302
Remove hash (#) from URL in Jhipster (both java and angular 6)
<p>I am using Jhipster Spring boot + angular 6. But i'm having trouble because of the hash(#) in URL. It is affecting SEO.</p> <p>I tried setting <code>useHash: false</code> in <code>app-routing-module.ts</code>. But then the API is not working when I run the project via <code>npm start</code>.</p> <p>I think somewhe...
1
7,209
Uncaught TypeError: Cannot read property 'data' of undefined jquery Jtable
<p>I've been investigating for this issue for more than 12 hours with no clue for any solution. I have good knowledge about jtable and I've been using it for long time. I have an ordinary div which I want to build it using jtable, so I copied the code from an old working sample in my application and edited it, but ther...
1
3,530
Adaptive vertical scrollbar for jQuery Mobile tab content when navbar is in header
<p>In some jQuery mobile tabs I have content that requires a scrollbar.</p> <p>The navbar that controls them is in the header like in <a href="http://jsfiddle.net/VjYq9/1/" rel="nofollow">this fiddle</a>.</p> <p>I have tried to set <code>height: 100%; overflow: auto;</code> on all levels of the tab content, but the s...
1
1,258
How to upgrade a solution and project files from the command line
<p>I am testing Free and Open Source Software using Microsoft's <a href="https://www.visualstudio.com/vs-2015-product-editions" rel="nofollow noreferrer">Visual Studio 2015 Community Edition</a> (and <a href="https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx" rel="nofollow noreferrer">here</a>...
1
1,788
mongodb group and subgroup counts
<p>I have the following document type</p> <pre><code>{ "_id" : "-fA2845ORqeyMUItKXfqZw", "user" : "553247ffdc8a4ade4bb09c5e", "state" : 2, "metadata" : { "language" : "en-US" }, "pipeline" : { "api" : "http://localhost:4000", "provider" : 0 }, "ingest" : { ...
1
1,131
Kubernetes unable to access the kube-apiserver from inside pod on node
<p>I have configured a vagrant backed kubernetes cluster but I am unable to access the kube-apiserver running on master from within pods running on nodes. I am trying to look up a service from within a pod via the api but it looks like the api keeps dropping the connection.</p> <p>Using curl from within the pod I get ...
1
1,846
How to initialize the parse.com code in Android
<p>I am trying to use the Parse.com sdk and I can't get my Parse codes to initialize. I don't know where to put it and I need help because I can't tell if I need to put it in my main or if I need to put it in somewhere else. </p> <p><strong>This is a few blocks of code I have put in different classes</strong></p> <p>...
1
3,443
youtubeExtractor for Android
<p>I want to use youtubeExtractor for android app and I found library like</p> <pre><code>compile 'com.github.HaarigerHarald:android-youtubeExtractor:master-SNAPSHOT' </code></pre> <p>There is a sample code in github I copied it. After I open app, it closes at the same time. There isn't an error in phone and also Log...
1
2,086
Add sqlite query result to angularjs $scope
<p>I have this sqlite query in a angularjs app. </p> <pre><code> $scope.testArr = []; $scope.testFunk = function(){ var db = window.openDatabase("test", "1.0", "Test DB", 1000000); db.transaction(function(tx){ tx.executeSql('SELECT * FROM EVENTS', [], ...
1
1,213
Android Glide load picture file apply overlay and set to imageview
<p>I have image files(png/jpg). When loading to listview, some of them I need to overlay with another transparent image. I do this using something like the following:</p> <pre><code>public Bitmap applyOverlay(Context context, Bitmap sourceImage, int overlayDrawableResourceId){ Bitmap bitmap = null; try...
1
1,611
JQGrid load data on another grid with OnSelectRow
<p>I have been tearing my hair out over the last couple of days. Just as a quick outline of the problem. I am using JqGrid 4.2.0 (latest version at the time of writing). In a single page, I have two grids. One on the left, looking to act as the navigator. I want to load the data on the right-hand grid with data determi...
1
2,388
Master not starting when running Kubernetes locally via Docker
<p>I am following the <a href="https://github.com/kubernetes/kubernetes/blob/v1.0.6/docs/getting-started-guides/docker.md" rel="nofollow">Running Kubernetes locally via Docker</a> guide and I am unable to get the master to start normally.</p> <p><strong>Step One: Run etcd</strong></p> <p><code>docker run --net=host -...
1
4,057
How to get viewbag data in jquery?
<p>Hi I am developing web application in mvc5. I have login form with username and password fields as below.</p> <pre><code>@using (Html.BeginForm("ClickAction", "Login", FormMethod.Post)) { @Html.TextBox("txtUid", null, new { @maxlength = "15", id = "txtUid", @class = "form-control validate[re...
1
2,500
How to mock socket module in python?
<p>I am working on a multicast project with <code>python3</code> and have a small program to search for <code>upnp</code> devices on the local network. I want to use <code>unittest</code> and <code>mock</code> the expensive call to <code>socket.recvfrom(bufsize[, flags])</code>.</p> <p>Here is my program <code>./upnp/...
1
1,193
iOS 8.3 UIAlertController crashes when trying to add a textfield
<p>I have an iPad app. I am creating an UIAlertController and adding a textfield. It crashes. It only crashes when I add a textfield. </p> <pre><code>let alert = UIAlertController(title: "Enter Name", message:nil, preferredStyle: UIAlertControllerStyle.Alert); alert.addTextFieldWithConfigurationHandler { (te...
1
3,949
void is an invalid type for the variable
<p>I am getting this error:</p> <blockquote> <p>void is an invalid type for the variable q1b1</p> </blockquote> <p>When I tried this:</p> <p><strong>My layout:</strong></p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xml...
1
1,991
Angular2 RC1 Karma Error - unable to find @angular/core/testing
<p>I am trying to setup <strong>Angular2 (RC1 version)</strong> project with Karma. I was able to do this setup for ng2 beta.17, but for RC1 I am getting the following error: </p> <blockquote> <p>Error: Error: XHR error (404 Not Found) loading <a href="http://localhost:9876/@angular/core/testing" rel="nofollow">h...
1
2,306
OpenCL: clAmdFft (OpenCL FFT lib from AMD) on NVIDIA GPUs
<p>Has anyone experiences with running the OpenCL FFT library from AMD (http://developer.amd.com/libraries/appmathlibs/pages/default.aspx) on NVIDIA GPUs?</p> <p>I'm trying to port an existing algorithm from CUDA (with the most recent CUFFT) to OpenCL. The new code is running fine with an AMD GPU but not with my NVIDI...
1
7,956
How to handle exception on empty textfields?
<p>I want to calculate logarithm values but error occurs on empty text fields.</p> <pre><code>//Libraries import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JOptionPane; import java.awt.Font; //For Font And Size import java.awt.Color; //F...
1
1,369
create a cascading dropdown list with JavaScript and jQuery
<p>Hi I have this code But I don't Know why not working is gives me a display but if I change the first drop-down list don't change the drop-down to the second list.</p> <p>I&quot;m using this HTML in-app script.</p> <p>This is my code I using HTML and jQuery:</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;h...
1
1,075
AJAX request parameters for JSON store. ExtJS
<p>I want to <strong>string together some parameters into an address where I can view an AJAX request in browser</strong>... I think this is what I mean, though I am not comfortable talking about AJAX. I am only a novice front-end web application programmer.</p> <p>So to start, I have an ExtJS application with a combo...
1
1,066
SafeArrayTypeMismatchException when passing c# struct to unmanaged C++ DLL
<p>Hi I'm new to C# and C++ programming and trying to use an unmanaged C++ dll in a C# project (.NET 3.5). I'm stuck on this error:</p> <p>System.Runtime.InteropServices.SafeArrayTypeMismatchException: Specified array was not of the expected type.</p> <p>Here is the header file for the DLL </p> <pre><code>#ifdef FUN...
1
1,468
We are unable to register the default service worker
<p>I am having the file firebase-messaging-sw.js, which is visible in the networks, logging message in the console too. But sill I am getting :</p> <pre><code>An error occurred while retrieving token. FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker: A...
1
1,085
Sending data in Laravel using Axios & Vue
<p>I have been following the Stripe integration tutorial by Laracasts and it's become apparent to me that a lot has changed since Laravel 5.4 was released. I have been able to still find my way along but I have hit a bump trying to submit a payment form using Vue and Axios.</p> <p>The product is being retrieved from a...
1
2,370
WCF wont accept JSON request
<p>I have this code submitted to the server:</p> <pre><code>var obj = { "param": { "WithdrawalRequestId": window.Xrm.Page.data.entity.getId()} }; $.ajax({ type: "POST", dataType: "json", data: JSON.stringify(obj), url: crmConfig.service + '/WithdrawRequestService.svc/ExecuteWith...
1
1,038
To create an spreadsheet document in OPEN XML and and add an TABLE to it
<p>I am trying to create an spread sheet by <strong>open xml</strong> with an <strong>table</strong>. But while opening the created excel file always it returns the error "Excel found unreadable content in test1.xlsx, do u want to recover. Why this error always happens? When the excel is created without table, i didnt ...
1
1,252
Is it possible for a JPA embeddable to contain Embeddable or Collection of Embeddables?
<p>I wonder whether it is possible to have an ElementCollection of Embeddable inside another Embeddable ?</p> <p>Here's an example of my Supplier entity which has a list of Addresses, which is of an embeddable type :</p> <pre><code>@Entity public class Supplier extends BaseCommonEntity { @Column(unique=true) ...
1
2,605
Google Maps API, error with InfoWindow domready event handler
<p>I'm setting up a form within an info info window for crowd-sourcing location data. I've got everything up and running, but I'm trying to copy the lat and lng values into the form elements when the info window pops open.</p> <p>I've been successful with other event listener on the map div, but when I use the <code>...
1
1,374
Div to Float over div with hover effect
<p>I am trying to get a 100% div which is fixed (so that it stays at the top of the page when you scroll) to scroll over multiple small div's with a hover affect. I cannot seem to figure out how to get the navigation to hover over the small divs, it always goes behind it. I believe the problem is the css position tags,...
1
7,858
How to send multiple jQuery datepicker values to a database
<p>I am creating a website that facilitates setting a meeting time for a group of people, very much like <a href="http://whenisgood.net/" rel="nofollow" title="WhenIsGood">WhenIsGood</a>.</p> <p>When creating a new meeting, users start by inputting the dates that a meeting could possibly occur (using a jQuery datepick...
1
1,342
Display total sale from sum of datagrid column in C# WPF application
<p><a href="https://i.stack.imgur.com/6HPoH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6HPoH.png" alt="enter image description here"></a></p> <p>I am having trouble understanding how to bind the total sale textbox on the UI to the sum of the total price in the datagrid. I have read several arti...
1
3,117