title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
how to place a text in expandable list item dyanmically?
<p>i hava an app where i required to enter a text dynamically at run time? please say me how can i do it? I tryed below like that but it changed when i expand other parent. thanks you</p> <pre><code> @Override public View getChildView(final int groupPosition, final int childPosition, boolean isLastC...
2
3,224
Uninstall software
<p>My product has a helper executable to uninstall all related sub-products. I uninstall based on upgrade codes of all sub-products. </p> <p>First, I fetch the product code from upgrade code using <a href="http://msdn.microsoft.com/en-us/library/aa370103%28v=vs.85%29.aspx">MsiEnumRelatedProducts</a> function. Then I t...
2
1,063
PHP 5.4.16 - mcrypt installation error
<p>Please help to solve the problem with php-mcrypt for Opencart <a href="https://i.stack.imgur.com/9mFGd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9mFGd.png" alt="Opencart installation"></a></p> <pre><code>user&gt; yum -y install php-mcrypt Loaded plugins: fastestmirror PHP52_17 ...
2
3,314
Hive Vertex failed, vertexName=Map 2 while running on EMR for on big files
<p>I am running my hive query on EMR cluster that which is 25 nodes cluster and i have used r4.4xlarge in stances to run this .</p> <p>When i run my query i get below error .</p> <pre><code>Job Commit failed with exception 'org.apache.hadoop.hive.ql.metadata.HiveException(java.io.IOException: com.amazon.ws.emr.hadoop...
2
2,984
java.sql.SQLException: Error parsing time stamp
<p>I want to get Date object with Hibernate 5 from SQLite database. I implemented this code:</p> <p><strong>Entity:</strong></p> <pre><code>@Entity @Table(name = "CLIENT_CARDS") public class ClientCardsModel implements Serializable { @Id @GeneratedValue private Integer id; @Column private String ...
2
1,357
How to convert string to telebot.types.message in Python?
<p>I am learning how to create telegram bots using telebot. The user enters a query strictly of 2 words: &quot;Weather Moscow&quot; or &quot;Humidity Paris&quot;. I split the string into 2 list items. Then I want to use 1st element of the list - the city. But this is a string, and telebot can only work with types.messa...
2
3,262
Tensorflow weight matrix rank error
<pre><code>import tensorflow as tf import numpy as np import os from PIL import Image cur_dir = os.getcwd() def modify_image(image): resized = tf.image.resize_images(image, 180, 180, 1) resized.set_shape([180,180,3]) flipped_images = tf.image.flip_up_down(resized) return flipped_images def read_image(file...
2
1,209
GridView is not binding C#
<p>I am using GridView and trying to bind data to this GridView, but I am facing unusual problem, here is my code : </p> <p>Method to bind GridView : </p> <pre><code>private void BindDataSource() { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionStr...
2
1,360
JQuery Datepicker - setting MinDate based on current time
<p>I'm using JQuery Datepicker for customers to choose a delivery date. I want to be able to check if the customer is ordering before noon and if so next day delivery is available. If they are ordering after noon, next day delivery is unavailable and so that day is unselectable.</p> <p>I've got some code to check agai...
2
1,273
getting error in Laravel command when using pthreads
<p>Bellow is my script that I use to verify email address existence, using pthreads for speed. The problem is the when I put it in Laravel command I get this error:</p> <pre><code>Fatal error: Call to undefined method Illuminate\Support\Facades\Log::error() in /vendor/laravel/framework/src/Illuminate/Support/Facades/F...
2
1,595
SAP JCo parse XML to IDOC with field extensions
<p>i have some problems parsing an XML to IDOC using the SAP JCo library. I know I need a connection to the SAP system which is given.</p> <p>Here is my gradle test code :</p> <pre><code> when: JCoIDocServer server = JCoIDoc.getServer(sapProperties.get("jco.server.progid")) IDocXMLProcessor xmlProcessor =...
2
9,790
Tiles 3 and Spring 3 integration throwing exception
<p>I am trying to integrate Spring 3 and Tiles 3, I am viewing the page fine and application is working fine but its giving me following error. <code>javax.servlet.ServletException: File &amp;quot;/WEB-INF/template/WEB-INF/template/layout.jsp&amp;quot; not found</code></p> <p>Here are my configuration files.</p> <pre...
2
1,303
Not able to add Cookies for IE8 browser (Java, Selenium Grid, WebDriver 2.41.0)
<p>I create remote webdriver as:</p> <pre><code>URL hubUrl = new URL("http://172.30.234.216:4444/wd/hub"); DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer(); capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true); webDriver = new RemoteWebDriver(hubUrl, capab...
2
2,341
d3.tree => transform does not seem to work
<p>I create a tree layout graph using d3js. The nodes are clickable to toggle showing the children. The child node should be inserted at a predefined position and then transitioned to the desired location. The problem is that the insertion coordinates are always off. When debugging with Firebug, it shows that directly ...
2
1,126
Gstreamer RTSP client timeout issues
<p>I am having some problems with the Gstreamer's RTSP client. So I have a client program and I want it to give proper responses to me from a watch dog function whenever the RTSP client receives/sends a message or returns an error etc. and exit the code accordingly if there is an error. So what I do is this,</p> <ol> ...
2
1,735
Progress bar in foreach function not working
<p>The program i am designing makes an image by getting the file name of the image, searches for that name in a cdb and then makes a picture with the data from that database item.All of that works. What i want to do now is add a progress bar because if you're doing for a large amount of pics it can take a while so a pr...
2
3,142
openfire error with no answers
<p>I am running openfire server as a basis for my chat server, but i am not happy with the robustness of the openfire, it seems to be having lot of java errors, </p> <p>java expert people who i talked to says that its all coding errors, that java exceptions hasn't handle correctly. Just want to know from a java expert...
2
1,520
UWP - How to properly support multiple screen resolutions
<p>I have just started learning programming for UWP. And I want to write an application similar to People in windows 10. And I have a problem with supporting multiple screens.</p> <p>I have layout like this:</p> <pre><code> &lt;ScrollViewer Background="Black" &gt; &lt;Grid &gt; &lt;Grid.RowDefinit...
2
1,570
Sending JSON object to WCF Rest Service
<p>I am trying to get my application working by using REST, WCF and JSON (new to all those technologies). I have the 'GET' working fine. It is the 'POST' that is causing me problems.</p> <p>As you will see below I 'pack up' my JSON using JSON.stringify, then fire off the POST to the REST resource. However, when the ob...
2
1,035
Unreliable/Flakey Capybara/AngularJS Integration Tests With Timing Issues
<h1>How do I make these tests reliably pass?</h1> <p>Currently these tests are flakey.<br> Sometimes they pass. Sometimes they fail.<br> Below is the setup, code and output demonstrating this issue.<br> Suggestions to overcome this issue will be greatly appreciated and I am sure will help many others, so please commen...
2
4,569
PHP mail() BCC - display only the end receivers address in To: header
<p>I'm attempting to BCC to a list of subscribers from a database, using PHP mail(). Everything works, but I'm running into a problem that has troubled me all morning. I'm able to send the list with BCC, but are unable to append the receiving end email address to the deader "To:". </p> <p>For example, I send the list ...
2
1,688
Using AdMob in MonoTouch Projects with iOS SDK 4.2
<p>Using AdMob in MonoTouch Projects with iOS SDK 4.2</p> <p>We have a test project to try using AdMob with MonoTouch. The setup is as follows:</p> <p>We created a (fat) TouchJSON library as described in post <a href="https://stackoverflow.com/questions/4271126/">Monotouch binding for TouchJSON?</a></p> <p>We have a...
2
9,396
use csvhelper to download files to a specific location
<p>I want to use the linq and then let the user download a csv file to their speicifc location.</p> <p>I learn something from internet and learning a csvhelper. I write something which works and download to a specific location (D:\export.csv) as below.</p> <pre><code> public ActionResult YRecordReport() { ...
2
1,902
After publishing website (WebPublish) login database not found
<p>I've been doing a website with VS13 Express and MVC 5. I'm using ExternalLogin using owin. The project uses a local db generated axiomatically. In local it works perfectly. When deploying the website using WebDeploy, deploys the [db].mdf to the server, but when executing the login it's not able to found the database...
2
4,336
Absent Code attribute in method that is not native or abstract in class file javax/validation/Validation
<p>getting this kind of error while try to run this in eclipse </p> <p>Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/validation/Validation</p> <pre><code>at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassL...
2
4,794
Div id tag not working on tumblr theme
<p>Sorry, this is probably a "noob" question, but here it goes... I'm modifying the header to a sidebar on my tumblr theme. I created a new class, but realized I could create an id due to the fact that I was only going to be using it for that one instance. I created a new id:</p> <pre><code>#bigborder {font-size: 13px...
2
2,245
Decode image and add to list of widgets [flutter]
<p>I want to load and display multiple images from a folder in Windows, grouping them based on their sizes (for example, large, medium, icons, and so on ...).</p> <p>In order to know their size before displaying them, I'm looping a list using <code>decodeImage</code> function from <code>'package:image/image.dart'</cod...
2
1,697
structure with pointer through FIFO pipe in C
<p>I am trying to setup a FIFO pipe with one server and one client. </p> <h3>client.c</h3> <pre><code>#include&lt;stdio.h&gt; #include&lt;fcntl.h&gt; #include&lt;stdlib.h&gt; #include&lt;string.h&gt; typedef struct buffer { int pid; char *buffer; } my_buffer; /* void removefifo() { unlink("fifo_server")...
2
1,348
cygwin 64 bit - can't install Pillow via pip
<p>I can't seem to install pip on cygwin 64-bit no matter which of the gcc compilers i install. i've tried all of the ones that come up when is search for g++</p> <p>does anyone know which one i should use? or if i'm going about this completely the wrong way?</p> <p>when building pip i get errors like this:</p> <pre...
2
1,060
Meteor and Video.js player loading issues
<p>I have probelm running video.js player.</p> <p>First I put the <code>video.js</code> and <code>video-js.css</code> in <code>client/compatibility</code> folder so it will load first</p> <p>Then in my client side html I write the following simple code,, It is not working</p> <pre><code> &lt;video id="examp...
2
1,348
OleDbDataReader object cannot read the file
<p>I have developed a functionality, where I import Excel sheet to the table. But when I upload the file and click on the button to import. The code doesn't works and gives me the below mentioned error. I tried with DataAdapter but that was also not working. Please see the error below:-</p> <blockquote> <p>The Micro...
2
1,469
parsing xml doc with cursor within sql server stored procedure
<p>I have an xml document which i want to pass as a parameter to a stored procedure the xml looks like this</p> <pre><code>&lt;root&gt; &lt;EMPLOYEE ID= 100&gt; &lt;PERIOD&gt;AUG-2010&lt;/PERIOD&gt; &lt;earnings&gt; &lt;title&gt;BASIC&lt;/title&gt; &lt;amount&gt;2000&lt;/amou...
2
1,027
How to set multiple image in multiple imageview
<p>I am new to programming and android. I'm building an app that allows users to upload multiple images,I am using two image view, pic from camera to set one image view and another image view to set another camera pic from to set another images and same thing pic from gallery.I need to upload 2 different image in to di...
2
4,188
AttributeError: 'dict' object has no attribute while converting json string to Python Object
<p>I am new to Python and learning python. I have a requirement where I need to convert Python object to Json String and Json String to Python object just like what we do in Jackson in Java. I am able to convert to Json String but while converting from json String to Python object, I am getting the following error.</p>...
2
1,201
Application_AuthenticateRequest Executing first before a Forms authentication ticket is created
<p>I am having trouble while using role based security with Forms Authentication, every time I try and login for the first time ticket seems to have no UserData as Application_Authenticate request is executing first, and my if statements is not executing as the roles are none after first post back.</p> <p>please help!...
2
1,333
Writing Base64 Images in an XML to a File
<p>I have a XML which contains Base64 data, what's the best way to strip it out using a XSLT file? I am using Saxon to reformat the XML and would want to include a filepath in the formatted XML. I looked at a few examples on SO, but can't seem to get it working. </p> <p>I'm trying to extract the Base64 encoded data...
2
1,631
WPF DataContext inheritance confusion
<p>I have <code>UserControl</code> with two <code>DependencyProperties</code>. I'm trying to understand how <code>DataContext</code> works here, because it seems inconsistent for me and it's probably somethin obvious that I'm missing. </p> <p>My user control:</p> <pre><code>&lt;UserControl x:Class="XYZ.MyControl" xml...
2
1,300
Property bound to DataGrid's SelectedItem does not change its child properties when CellEditEnding is fired
<p>I have a DataGrid which looks like:</p> <pre><code>&lt;DataGrid Grid.Row="3" Grid.Column="1" ItemsSource="{Binding Purchases}" SelectionMode="Single" SelectionUnit="FullRow" SelectedItem="{Binding SelectedPurchase, Source={x:Static ex:ServiceLocator.Instance}}" AutoGenerateColumns="False" CanUs...
2
2,905
Sending don't fragment UDP packets at the server and receiving fragmented packets at the client
<p>I've created a program in C that sends data with UDP packets.</p> <p>Socket is made don't fragment using</p> <pre><code>int optval = IP_PMTUDISC_DO; if(setsockopt(sd,IPPROTO_IP,IP_MTU_DISCOVER,&amp;optval,sizeof(int))!=0) { perror("setsocketopt()"); return 0; } </code></pre> <p>Checking with TSHARK at the...
2
1,268
'DataFrame' object has no attribute 'data' but I have added it in my dataset
<p>I was following this tutorial on using deep belief networks <a href="https://www.pyimagesearch.com/2014/09/22/getting-started-deep-learning-python/" rel="nofollow noreferrer">https://www.pyimagesearch.com/2014/09/22/getting-started-deep-learning-python/</a> then I decided to attach my external dataset and I get the ...
2
1,969
Error: column is of type timestamp without time zone but expression is of type double precision
<p>The following code...</p> <pre><code>import time import numpy as np import pyodbc import datetime import win32com.client import pythoncom import re from sqlalchemy import create_engine, event import pandas as pd import runpy import codecs import collections from multiprocessing import Process, Queue from datetime i...
2
1,999
Mocking HTable data for a unit test of a spark job
<p>I have a Scala spark job that reads from HBase like so:</p> <pre><code>val hBaseRDD = sc.newAPIHadoopRDD(conf, classOf[TableInputFormat], classOf[org.apache.hadoop.hbase.io.ImmutableBytesWritable], classOf[org.apache.hadoop.hbase.client.Result]) val uniqueAttrs = calculateFreqLocation(hBaseRDD) </code></pre> <p>I ...
2
1,402
Java SSL client not selecting a smartcard key
<p>I'm trying to use an Estonian ID card for SSL client authentication in a java program. This works in Chrome/Firefox against both banking sites and test servers (nginx or openssl s_server).</p> <p>However my Java client (okhttp) works fine for a local keystore and fails when trying to use the ID card. I've boiled ...
2
1,687
Entity Framework 4 SaveChanges not working and not throwing any error?
<p>I am trying to use my generic repository with a "unit of work" pattern.</p> <p>Here is my work details</p> <pre><code>public class GenericRepository:IRepository { private readonly string _connectionStringName; private ObjectContext _objectContext; private readonly PluralizationService _pluralizer = P...
2
3,563
Deleting items from JQuery based only shopping cart
<p>i am trying to build a JQuery shopping cart just for exercise and learning propuse. But i have a problem with coding the option to delete items from the shopping cart. Here is the code:</p> <pre><code>&lt;script src="assets/jquery-2.1.0.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"...
2
1,143
UDP server app on Linux can't receive packets from more than 150 clients
<p>I've written a UDP C++ server app on Linux and am now load testing it to see how many clients it can handle. I find that it peaks at about 150 simultaneous clients sending packets at a rate of 2-4 per second.</p> <p>Clients added after that will cause some other clients' packets to be dropped.</p> <p>The server i...
2
1,357
nginx redirect all http to https with one exception
<p>I would like to redirect all http traffic to https with one exception. Anything with /preview/ in the url I would like to keep on http.</p> <p>I have tried with below configuration but it keeps telling me i have a redirect loop. </p> <pre><code>server { listen 80; server_name example.com; root ...
2
1,160
React Js getting Image from AWS s3 URL
<p>I have 7URL's out of which sometimes of 3-4 are valid downloadable Images.. so before rendering the Images using <strong>getPhotosList</strong> function I check the Valid download URL using function <strong>CheckValidImages</strong></p> <pre><code>const CheckValidImages = async () =&gt; { if (!props.location.state.i...
2
1,143
3 Processes Synchronization using 2 pipes
<p>I am trying to create 2 child processes using fork() and synchronize them so they display a message one after another five times infinitely.</p> <pre><code>e.g. Process 1 has process (pid) ... Process 2 has process (pid) ... Process 3 has process (pid) ... Process 1 has p...
2
1,947
Only works on one-to-one of which was to be many-to-many, webrtc
<p>I am developing a conference style application (many-to-many) for video calls <a href="http://spaceify.net/talk/" rel="nofollow">this</a> style. The code is available on GitHub but I do not have much node.js experience, hence I decided to create my own server using PHP.</p> <p>I created the server using WebSockets....
2
1,692
React + Material UI testing with jest
<p>I use this library for UI: <a href="https://github.com/callemall/material-ui" rel="nofollow">https://github.com/callemall/material-ui</a> and use Jest for unit testing. </p> <p>But when I require a component use that library I got the error syntax error. Other components are with jest.</p> <pre><code> - SyntaxErro...
2
1,955
ContainerRequestFilter returns wrong content type for entity
<p>I want to make a global check for every request. Therefore, I use a <a href="https://docs.oracle.com/javaee/7/api/javax/ws/rs/container/ContainerRequestFilter.html" rel="nofollow"><code>ContainerRequestFilter</code></a> (without <a href="https://docs.oracle.com/javaee/7/api/javax/ws/rs/container/PreMatching.html" re...
2
1,294
JAVA LZW For Audio Compression
<p>I am working on a project to compress WAV files using LZW compression.</p> <p>I found this code and tried to modify it to handle the wav files,</p> <p>However, two things are getting messed up:</p> <ol> <li><p>The Compressed Audio file is no longer can be played by media players.</p></li> <li><p>The code below I ...
2
2,583
Can't represent a size of 214748364 in Constraints
<p>I just created a simple Composable and wished to render it using a <code>Layout</code>, but while implementing the solution, I stumbled upon this error in the measurement phase.</p> <pre><code>java.lang.IllegalArgumentException: Can't represent a size of 214748364 in Constraints at androidx.compose.ui.unit.C...
2
1,444
How to update dll-file without main program being restart?
<p>How to update dll-file without program being restart?</p> <p>I want to create my "Updater" class. It's main idea is to check local(connected to executive file) and server dll-files, and when newer version is available, copying server file to local.</p> <p><strong>Code:</strong> </p> <pre><code>Updater ...
2
1,031
How do i get a Id value into my delete function in angular 2
<p>I have an angular app in which I am trying to delete a table row data using the id of that data. But I am unable to pass the id into the delete function. I am getting undefined when I try this.id how do I get the id value into a function in angular. How do i call a Delete function with id in services? </p> <p>Compo...
2
2,850
Add attributes to the selected list items in select2
<p><a href="https://jsfiddle.net/saffrons/cbwpvug0/" rel="nofollow noreferrer">Here</a> is a working jsfiddle. I wish to add attributes (in particular id) to the <code>&lt;li&gt;</code> elements created. My use case is slightly different from the fiddle, rather than using an array, I am getting my data from ajax. In ad...
2
1,339
Getting "Bad Request" on the post request to Django Rest-Api using serializers
<p>I am trying to save data into a model using django-rest framework. I have already written the api, it works fine when i access it directly using the url to api. But I get a bad-request error when i try to post data using ajax. If it is working fine when data is inserted using the api interface, it should work fine w...
2
1,482
Can't scrape more than 12 posts on public Instagram account
<p>I want to scrape all posts from a public instagram account using Python for a study I'm conducting at my university. However, I'm starting to feel dismayed since I can't manage to extract more than 12 posts from Instagram. </p> <p>Selenium does its job of scrolling the page and I've gotten beautifulsoup to parse th...
2
4,346
Argument is of length 0, no NA's
<p>I have a dataframe that looks like this:</p> <pre><code> logentrytime ord_lat_dt0 ord_lat_dt1 ord_lat_dt2 ord_lat_dt3 ord_lat_dt4 ord_lat_dt5 ord_lat_dt6 ord_lat_dt7 ord_lat_dt8 ord_lat_dt9 ord_num0 ord_num1 ord_num2 1 2016-11-10 14:23:36 0 0 0 0 0 ...
2
1,545
AddScoped service is not retaining settings throughout the request
<p>I have created an Interface </p> <pre><code>public interface ICurrentUser { Task&lt;bool&gt; Set(UserAuth user); User Get(); } </code></pre> <p>and a class </p> <pre><code>public class CurrentUserSvc : Interface.ICurrentUser { private User _u; private UserAuth _ua; private AppDbContext db; ...
2
1,686
Tomcat8 + c3p0, connections are being interruped and auto closed
<p>I'm developing a web app on Tomcat 8 with Maven, I'm using c3p0 to handle connections on the main thread and on 2 other concurrent threads, my connection manager class is asking a DataSource singleton class I've implemented for synchronized connections, like so</p> <pre><code>public synchronized Connection getConne...
2
1,097
Basic Dagger example NoClassDefFoundError: dagger/internal/Preconditions
<p>I have a very bare bones basic project that is giving me a NoClassDefFoundError.</p> <p>Here is my gradle: </p> <pre><code> plugins { id "net.ltgt.apt" version "0.10" } group 'test' version '1.0-SNAPSHOT' apply plugin: 'java' sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies { ...
2
1,376
Xamarin.Android JSON.Net serilization fails on 4.2.2 device only TimeZoneNotFound exception
<p>I am using JSON.Net to serialize a DTO and I am getting the following exception on the physical device. THis works on all other devices we have tested on, but is failing on the <code>Samsung Galaxy Tab 3lite SM-T110</code> running version 4.2.2.</p> <p>I was having <a href="https://stackoverflow.com/questions/18451...
2
1,146
PHP calculation from html form
<p>I have created a reservations page for a restaurant website, with a form present to book a dinner reservation. It contains a dropdown box which allows the user to select the amount of people who will be dining in their party. It also contains a radio button to allow the user to select if they wish to be seated in th...
2
1,455
StringBuilder Field in a Structure Cannot Be Marshaled Properly
<p>I've struggled with at p/invoke problem for some time now. Keep getting "Attempted to read or write protected memory." all the time, and I suspect my marshaling is a bit off.</p> <p>Here is the c signature:</p> <pre><code>long ft_show( /* show file-attributes */ const struct ...
2
4,187
My Laravel project don't conect to XAMPP DataBase
<p>I've followed good tutorials on the web and I do make, I've made step by step its advices and I don't achive to conect my laravel framework to XAMPP.. I don't have idea what's going on.. I've written down the .env and config/database.php with the same data configurations (DB_DATABASE= styde_curso, DB_USERNAME= root,...
2
1,333
Error using python logging from Pydev
<p>I am using PyDev with Python 3.5 from Aptana installation. All worked fine until I decided to explore logging module, which I never used before. I started with new script from the tutorial:</p> <pre><code>import logging logging.warning('Watch out!') # will print a message to the console logging.info('I told you so...
2
1,754
Unexpected "mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in"
<p>I have been trying to solve this problem for a while now. I am getting an unexpected error namely "mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in" </p> <p>Below is the sample code referring to where this error is happening.</p> <pre><code>function tep_db_input($string, $link = 'db_link...
2
3,637
Routing syntax error zone symbol error angular 2
<p>I am getting the below error while trying route my app :</p> <pre><code>metadata_resolver.js:972 Uncaught SyntaxError {__zone_symbol__error: Error: Unexpected value '[object Object]' imported by the module 'AppModule' at SyntaxError.Zone……} </code></pre> <p><strong>app.component.html</strong></p> <pre><code>&lt;...
2
2,063
Programmatically insert a line in a JS file
<p>I want to write a program that will add a line to JS within an existing HTML file. I thought I would use node.js as it's the same language.</p> <p>I have looked at a number of projects, <a href="http://esprima.org/" rel="nofollow">esprima</a>, <a href="http://marijnhaverbeke.nl/acorn/" rel="nofollow">acorn</a>, <a ...
2
1,024
Starting App in background when iBeacon detected
<p>I am experimenting the Android Beacon Library and I am able to make it working for monitoring and ranging with Apple compatible beacons adding a custom Parser (see <a href="https://stackoverflow.com/questions/25027983/is-this-the-correct-layout-to-detect-ibeacons-with-altbeacons-android-beacon-li">Is this the correc...
2
1,273
Downloading files; Executing a JavaScript function using .execScript VBA
<p><strong>Situation:</strong> </p> <p>I am downloading files from the webpage <a href="https://www.england.nhs.uk/statistics/statistical-work-areas/delayed-transfers-of-care/delayed-transfers-of-care-data-2017-18/" rel="nofollow noreferrer">NHS Delayed Transfers of Care</a>. </p> <p>In the HTML I can see the followi...
2
2,126
Not able to parse XML document
<p>I am not able to parse this xml. can anyone please help me what is wrong in this</p> <p>Here is my XML file</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;gea-sr:GETOFFERSResponse xmlns:gea-sr="http://schemas.com/soap/requests" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch...
2
2,653
NSExpression based Core Data fetch does not retrieve current values (iOS 5, GCD)
<h2>What I am trying to do</h2> <p>I am using the code below to download data (historic foreign exchange rates) from my backend server (parse.com) to my app's Core Data store.</p> <p>The app checks for the latest available data stored locally and fetches only the newer data from the server. If there is no data stored l...
2
2,363
Syntax Error in Preprocessor Macro Code
<p>I am trying to write some code for a macro which returns the length of a string, and am attempting to implement it using BOOST_PP_WHILE. The code stems from the fact that a character at a position specified by <code>position</code> of the string represented by a macro argument <code>foo</code> may be obtained by <co...
2
1,046
Illegal instruction error when running openMP in gfortran mac
<p>I am new to openMP so bear with me. I use a macbook pro with OX Mavericks and installed a version of gfortran compatible with my OS.</p> <p>I implemented a very simple dynamic programming problem to solve something that economist call the Neoclassical Growth Model.</p> <p>I find no problem when I run it without op...
2
3,107
Getting 'conversion failed...' when using UNION ALL, but running the queries separately works
<p>I am trying to use <code>SELECT INTO</code> and <code>UNION ALL</code> to join 3 tables together.</p> <p>Table 1 uses a number of <code>Ltrim(Rtrim())</code> and <code>CONVERT</code> commands, whilst with the other two tables, I am just taking their columns out and pasting them into this combined table.</p> <p>Whe...
2
1,064
How can I submit this form using json to another page and parse json in PHP or jQuery?
<p>I know this seems like I should have immediately found the one example out there that simply explained this concept, and I can't find the right one. The examples in tutorials out there use flickr as the request url, and I get it up to a point. I'm trying to handle a very complex form with four different buckets of...
2
2,865
Test Angular. TypeError: this._platformStrategy.getBaseHref is not a function
<p>I want to test routing. I tried this script:</p> <pre><code>describe('Router: App', () =&gt; { let location: Location; let router: Router; let fixture; beforeEach(() =&gt; { TestBed.configureTestingModule({ declarations: [ AlarmsTableComponent, Add...
2
1,169
Cannot connect to remote HDFS from Windows
<p>i am trying to connect to a remote HDFS instance as</p> <pre><code> Configuration conf = new Configuration(); conf.set("fs.defaultFS", "hdfs://hostName:8020"); conf.set("fs.hdfs.impl", "org.apache.hadoop.hdfs.DistributedFileSystem"); FileSystem fs = FileSystem.get(conf); Remot...
2
2,093
chart js not dispalying data array that comes from an axios request
<p>I have an API end point that returns an array of 24 values that I want to use in my chartjs within a vue component.</p> <p>when the page loads I get no errors but the bars on the charts just don't show and I don't know why.</p> <p>EDIT: I noticed that the async function returns a promise instead of the actual data:<...
2
1,606
Hibernate Query.list() is returning no value
<p>Hibernate Query.list() is returning no value. even it is generating proper query i have checked the value of sessionFactory also it is also printing nothing</p> <p></p> <p></p> <p></p> <pre><code>&lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt; &lt;property name=...
2
1,917
Generate CSV from an ArrayList Android
<p>I am creating an app where do some image processing on the onPreviewFrame and then generate the Y, U and V values of each frame. I then stored these values into an ArrayList.</p> <p>example from the log (Y, U , V)</p> <pre><code>10-08 05:06:10.941 20405-20405/redlight55.com.bpreader D/MyEntryData: [1590690, 270069...
2
1,282
Using BehaviorSubject to share data between sibling components
<p>I am still learning Angular and trying to see how <code>BehaviorSubject</code> works but got stuck where to start. Here is waht I am trying to do:</p> <p>Create a search box component called <code>HeroDetailComponent</code> where I enter some text and based on this text I will search a list of heroes and show them t...
2
1,972
Are Ratchet 2 Popovers working?
<p>Documentation says </p> <blockquote> <p>Popovers are designed to only fire from title bars. Set the value of the title href to the id of a popover, like so:</p> </blockquote> <p>However I have added to the sample template but does not work for me</p> <pre><code> &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&...
2
1,693
pikaday with moment is not working
<p>I am trying to use <code>pikaday</code> with <code>moment</code>, but somehow I can't make it work.</p> <p>I am trying to use it in a <code>aurelia</code> <code>custom-attribute</code> as follows:</p> <pre><code>import "moment"; import "pikaday"; ... self.picker = new Pikaday({ field: $(this.eleme...
2
1,530
Issue while building the docker on M1 macbook pro
<p>I am using recent M1 chip model of Mac, my base is image of Docker is of CentOS on top of which I am going to run a Flask application. This application requires to have Tensorflow installed to run the model written inside.</p> <p>Now as we know that M1 chip is based of ARM64, how do I add Tensorflow to this image is...
2
1,443
Cassandra Cluster in AWS Multi Region VPC
<p>I am trying to achieve the following schema for my Cassandra Cluster :</p> <ul> <li>1 VPC in 4 different AWS Regions linked together with IPSec instances.</li> <li>1 Cassandra Cluster made of 4 nodes, 1 in each VPC</li> <li>Nodes communicating together with private IP in VPC (10.0.0.0/8)</li> <li>Cassandra data acc...
2
2,662
Why .valid() always returns TRUE?
<p>I know that there were loads and loads questions like this one, but none of them really helped.</p> <p>I have two forms on one page (some fields are shared), only one form is going to be submitted at a time. I thought that it's because the some fields are shared, but I removed 2nd form completely from the page and ...
2
1,436
Smack throws java.lang.ClassNotFoundException: org.apache.http.conn.ssl.StrictHostnameVerifier
<p>I have followed the tutorial at the link <a href="https://developer.android.com/google/gcm/ccs.html#implement" rel="nofollow">https://developer.android.com/google/gcm/ccs.html#implement</a>.</p> <p>I am using Smack 4.0.4.</p> <p>I have created an endpoint for the method "connect" and deployed this class on google ...
2
3,431
Concat boost::asio::read() response
<p>Juste a short question... I use sync_client.cpp, an exemple given by boost.asio, for try this librairy. Code :</p> <pre><code>#include &lt;iostream&gt; #include &lt;istream&gt; #include &lt;ostream&gt; #include &lt;string&gt; #include &lt;string.h&gt; #include &lt;boost/asio.hpp&gt; using boost::asio::ip::tcp; in...
2
1,237
Join 2 tables to retrieve name and count linq Entity Framework
<p>I have 2 tables <code>Orders</code> and <code>Items</code> and I am trying to query these 2 tables for statistics retrieval.</p> <ul> <li><code>Orders</code> has columns <code>OrderID[PK]</code>, <code>ItemID[FK]</code>, <code>OrderStatus</code> etc.</li> <li><code>Items</code> has columns <code>ItemID[PK]</code>, ...
2
1,126
Firefox and Chrome not loading a script from a coldfusion include?
<p>I've inherited some coldfusion code that generally works fine.</p> <p>The problem I'm having is on a page that has a cfinclude that refuses to load one particular script. It wouldn't bother me nearly as much if it didn't load the script the line before it, but it does.</p> <p>Firefox doesn't even attempt to get th...
2
2,448
How do I create a tcp-inbound-gateway which detects connection loss and auto-reconnects?
<p>I'm trying to configure a set of spring-integration components to consume data from a TCP socket. The basic protocol is that upon opening the connection I am prompted for my username, then password, then if authentication succeeds data is streamed to me as it becomes available. A ping message is sent to me every 3...
2
3,297
Log4Net Issue with .Net 4.0
<p>I have looked for a "fix" to my issue for a few days not and have gotten nowhere. Basically what is happening is that I have an application that writes to a database and sends an email via log4Net. </p> <p>Here is where I initialize my log object:</p> <pre><code>private static readonly log4net.ILog log; #endregion...
2
2,083
How to configure EclipseLink to use HikariCP as its connection pool
<p>I am using EclipseLink as a Persistence Provider for our application using the Play framework and Akka. With play framework 2.3.x, the application ran properly. Now I am migrating to 2.4.x and subsequently will migrate to 2.5.x, but I' getting issues when running the application from outside of eclipse saying: </p>...
2
7,493
Web API using EF Core and SQL Server database deadlocks
<p>I have 3 tables in my database. One table with simple data and the other 2 tables are configured in one to many relationships. If I <code>AddRange()</code> to first table and web API gets many requests like that at the same time everything is OK. </p> <p>The problem is when the API gets many requests for adding to ...
2
3,377
Method threw 'java.lang.StackOverflowError' exception. Cannot evaluate org.json.JSONObject.toString() - on calling json post method
<p>Code to call the api is as mentioned and the json response post method. error while calling json object at the line"JSONObject mJsonObj = new JSONObject(response);". Response available but error occurs as"Method threw 'java.lang.StackOverflowError' exception. Cannot evaluate org.json.JSONObject.toString()"</p> <pre...
2
8,638
How write this complex query in codeigniter?
<p>I use mysql and try to write this query into a model of Codeigniter. This query run perfectly in phpmyAdmin.</p> <pre><code>SELECT a.ar, a.jabatan, COUNT(*) AS JumlahWPBaru, SUM( CASE WHEN a.no_shim IS NOT NULL THEN 1 WHEN a.no_shim IS NULL ...
2
1,316