title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Retrieve variable from WiX during CustomAction
<p>I am trying to retrieve a variable from WiX during an install. Here is the tests I have tried:</p> <pre><code>try { string reqid = session["REQUESTID"]; TraceLog.LogMessage("CustomAction =&gt; ReportUpgradeStatus: Straight Session is valid"); } catch { TraceLog.LogMessage("CustomAction =&gt; ReportUpgra...
2
1,159
DocumentDB LINQ match multiple child objects
<p>I have a simple document.</p> <pre><code>{ Name: "Foo", Tags: [ { Name: "Type", Value: "One" }, { Name: "Category", Value: "A" }, { Name: "Source", Value: "Example" }, ] } </code></pre> <p>I would like to make a LINQ query that can find these documents by matching multiple <code...
2
1,274
How to take f(x) as user input and make it work like formula using java code?
<p>I am new to coding! If you find this question silly then I beg your pardon at the beginning! I was trying to solve Bisection Method using java. And I successfully did it! I took user input for <strong>initial guess 'a' and 'b'</strong>! In my code I created a method that stores the <strong>"f(x) = x^3 - x - 1"</str...
2
1,484
multiple countdown time in one page
<p>first of all , i work with jalali/persian date and countdown jQuery plugins does not work for me. for ex plugins must enter gregorian date like 2017/5/2 but persian/jalali date is 1396/2/17 .</p> <p>i have muliple datetime with specify day , hour , min and sec . ex:</p> <p>3 days 13 hour 4min 25 sec</p> <p>23 day...
2
2,127
Problems linking FreeImage 3.16.0 using make and Clang on Mac OS X 10.8
<p>I've modified the Makefile.osx file that comes with FreeImage 3.16.0 to compile using Clang and to use the latest 10.8 Mac OS X SDK, which has gotten rid of most of the problems, but I'm completely stuck on a small set of linker errors that I can't find any information on.</p> <p>I modified the makefile based off o...
2
2,363
Nullpointer exception in HBase MapReduce
<p>I have a mapreduce app that takes an HBase source data and mapreduces it to another HBase table, all written in Java.When I run it using </p> <pre><code>hadoop jar myhbase.jar </code></pre> <p>It terminated with a <code>NullpointerException</code> as below:</p> <pre><code> 14/01/31 11:07:02 INFO zookeeper.Client...
2
1,040
Submit a Form using PUT instead of POST
<p>I have a controller which processes form submission from AJAX requests. I don't want to repeat myself, so I put the form processing code in a method:</p> <pre><code>// Should process POST request public function create(Request $request) { return $this-&gt;processEdit($request); } // Should process PUT request ...
2
1,038
The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[System.String]
<p>I am first time programming with MVC4.</p> <p>I have simple textbox and want to access it from Controller.</p> <p>I done following:</p> <p>HomeController:</p> <pre><code> [HttpPost] public ActionResult getValues(ModelClass mClass) { mClass.userName = "Hi!!, I am Sagar"; ...
2
2,301
Tensorflow 2.0 Keras BatchNorm: how to update the online params in custom training?
<p>How to train the batch norm layer without using any keras.compile methods? Typically layers have losses that are accessible. Here the losses method is empty.</p> <p>UPDATE: </p> <p>It seems like there is a lot of confusion about this and even the way the BatchNorm is implemented is pretty confused. </p> <p>First,...
2
1,229
Plotly-Dash: How to improve plot responsiveness to slider changes
<p>I'm developing a tool to visualize the effects of a set of parameters on a mathematical function by modifying those parameters via Dash sliders. I'm using the approach from a few of the Dash tutorial examples which use a callback to replace the figure.</p> <p>This works, but the plot isn't as responsive to slider ch...
2
1,134
Can't find variable: Symbol
<p>I'm using create-react-native-app with expo's react-native v22.0.1. I've developed my app using the emulator, where it works properly. However, when I open it with the Expo app, I get a "Can't find variable: Symbol" error, occurring in <em>assembleStyles</em> (<strike>I've got no idea what that is</strike> that's ju...
2
1,051
morris.js chart doesn't work on production server
<p>I have this <code>morris.js</code> chart which I populated with random values (the ones provided in the exemple). Whereas it renders perfectly in <code>localhost</code>, once I upload on the production server it no longer works.</p> <h2>Set up</h2> <p><strong>JS code</strong></p> <pre><code>new Morris.Line({ ...
2
1,242
OpenGL Model/Texture rendering using VAO/VBO
<p>I am trying to render 3D models with textures using <a href="http://assimp.sourceforge.net/" rel="nofollow">Assimp</a>. The conversion goes perfect, all textures positions and what not gets loaded. I have tested the texture images by drawing them to the screen in 2D. For some reason it does not render the textures ...
2
3,919
Sonar successfully executed, no code coverage reported
<p>I have a java-project that I wish to do some analysis on using Sonar.</p> <p>I have a build.xml file with a target called sonar that just points out where my sonar-ant-task.jar-file is located, and this is the rest:</p> <pre><code>&lt;sonar:sonar workDir="${source.path}" key="${ant.project.name}" version="${versio...
2
1,788
Custom drop-in icons for DMG background for application packaging on MacOSX
<p>I'm having trouble adding custom icons for a DMG background in a self-contained package built on MacOSX. I have added a package in the root directory of my project. The custom icon is getting loaded from it, but the DMG background icon isn't. I am using Java fx 2.2.3 and jdk1.7.0_09. Here is the verbose output gener...
2
1,083
Change child animation/transition on parent hover
<p><strong>What I am trying to achieve:</strong><br> I am trying to change a child CSS animation when hovering the parent. It is, however, for some reason not working.</p> <p><strong>Explanation:</strong><br> <em>.front-ball</em> has the <em>hvr-wobble-vertical</em> applied to it from the start. I then want the animat...
2
1,087
Why the following Eigen example won't compile?
<p>I am trying to compile this MWE, but getting lots of errors:</p> <pre><code>#include &lt;eigen/Eigen/Core&gt; #include &lt;eigen/unsupported/Eigen/CXX11/Tensor&gt; #include &lt;array&gt; using namespace Eigen; int main() { // Create 2 matrices using tensors of rank 2 Eigen::Tensor&lt;int, 2&gt; a(2, 3); a.setValu...
2
1,064
How Create Bitcoin wallet from a private key works?
<p>I'm trying to understand how i can create a pair of bitcoin private key and public key and import them in electrum wallet</p> <p>1 try with : <a href="https://github.com/Destiner/blocksmith" rel="nofollow noreferrer">https://github.com/Destiner/blocksmith</a></p> <p>for example :</p> <pre><code> import blocksmith ...
2
1,128
Bootstrap dropdown doesn't collapse on mobile
<p>I'm trying to use Bootstrap to create a responsive menu.</p> <p>I need help with making the dropdown collapse when it has been toggled on a mobile/tablet view.</p> <p>Currently it only toggles the menu open but doesn't know when to close it.</p> <p>HTML</p> <pre><code> &lt;!-- Navigation bar style --&gt; ...
2
3,706
Unity3D WebGL App works in Safari, crashes in Chrome
<p>I'm working on an X-ray simulator found here: <a href="http://ec2-54-218-86-147.us-west-2.compute.amazonaws.com/" rel="nofollow noreferrer">http://ec2-54-218-86-147.us-west-2.compute.amazonaws.com/</a></p> <p>I've updated Unity from 5.3 to 5.5 and, while it might not be related, has caused my application to crash w...
2
1,611
Android.app.Application cannot be cast to GoogleAnalyticsApp (libgdx)
<p>I am trying to add Google Analytics to my application on Android (LibGDX). But I get ClassCastException </p> <pre><code>04-06 15:15:07.359: E/AndroidRuntime(7564): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mygdx.one4all/com.mygdx.one4all.AndroidLauncher}: java.lang.ClassCastException: a...
2
1,370
Powermock imageio UnsatisfiedLinkError
<p>After adding powermock (1.5.6 in combination with Easymock 3.2) to my current project (jdk 1.6.0) I get some test failures in test methods which worked perfectly fine before:</p> <blockquote> <p>java.lang.UnsatisfiedLinkError: com.sun.imageio.plugins.jpeg.JPEGImageReader.initReaderIDs(Ljava/lang/Class;Ljava/lan...
2
1,826
how to stay in the same jquery ui tab after insertion in asp.net mvc 3?
<p>I have used jquery ui tab effect. What I am trying is to insert data into a model..it works perfectly..I can insert record..but my question is how to stay on the same tab after insertion ?can I do it from the controller ? I am trying to do it in my asp.net mvc 3 application</p> <p><em>Here goes my Tab calling porti...
2
1,325
How to set colorPrimary and colorPrimaryDark in nativescript
<p>before continuing i have to say that i've read a lot of questions about this and any solution didn't work for me. I am working with nativescript(v2.1.1) and i'm trying to change the status bar and actionbar color using the xml files approach, but i couldn't make it work. Here is my attempt:</p> <p>path: app/App_Res...
2
1,166
Pinch for ImageView
<p>I have imageView. I need to use pinch for imageView. I referred some documents. But everything used doubleTap. When use doubleTap zoomIn and ZoomOut. I dn't want doubltTap ZoomIn and out. I need to use fingers for pinch. I used OnTouch for imageView moving.</p> <p>code:</p> <p>Touch class:</p> <pre><code>package ...
2
2,456
few barcodes are scanned but few are not using Zxing
<p>I am using zxing to scan barcode and split that in pdf. But most barcodes are scanned and few aren't. Although all barcodes are properly visible and i can scan them using barcode android app. my code is</p> <pre><code> Boolean flag = Boolean.FALSE; PDDocument pdfDoc = null; Result prevResult = null; ...
2
2,592
How to get all sub collection data to Widget with StreamBuilder in Firebase + Firestore + Flutter
<p>In flutter, I use Firebase Firestore to save data. I created the root collection as <strong>Users</strong> and in that collection, each user has a subcollection named by <strong>Books</strong>.</p> <p>This is my Firebase Cloud Firestore</p> <p><a href="https://i.stack.imgur.com/ESUUr.png" rel="nofollow noreferrer"><...
2
1,721
how to parse pagination url using alamofire and swiftyjson in swift?
<p>I have a json url that supports pagination. My question is how can i parse this paginations page with using alamofire and swiftyjson ? </p> <p>my json url like : </p> <pre><code>{ "meta":{ "code":200 }, "data":{ }, "pagination":{ "total":86, "totalPages":3, "page":1, ...
2
1,642
Display JSP Table using JSTL while iterating multiple objects
<p>I am actually still a starter in this java ee stuff, and I have managed to get quite far still..</p> <p>I will try to explain my problem the simplest way I can so bear with me.. :)</p> <p>I am using my Servlet "MajTablesController.java" to retrieve object info ( name, ref etc.. ) from multiple objects [ The Goal i...
2
5,010
Java Threads reading and writing from a shared stack array
<p>The result of this program should be the same with 1 or 2 or 3 threads. However, the result with thread 1 is the real one. I think I am meshing up with shared and private variables, what am I doing wrong? Threads have to read from the stack an interval and then calculate the quadrature model.If the error is small en...
2
2,843
Sending SOAP messages Using KSOAP2 With Android
<p>Hi I'm trying to use KSOAP2 2.6.2 android assembly to connect to a java WebService deployed on glassfish 3.1.1. from my android program. Here are my Namespaces</p> <pre><code>public static final String SERVICE_NAMESPACE = "za.co.n7.mobilebackup"; public static final String SERVICE_URL = "http://ipaddress:8080/Mobil...
2
1,924
VB.NET [Cross-thread operation not valid: Control 'txtIncomingText' accessed from a thread........]
<p>I'm a beginner in VB.NET, please bear with me.</p> <p>I've downloaded a multiclient TCP-IP Socket Server-Client application in VB.NET. The Server listens pretty well, but the Client encounters below exception:</p> <p>"Cross-thread operation not valid: Control 'txtIncomingText' accessed from a thread other than the...
2
1,565
Files Upload to wrong folder on Sharepoint Online
<p>I've been attempting to upload files and folders to SharePoint Online using PowerShell. I'm almost there but there is something wrong with the code in the recursive method. It's upload the files into the folder below its supposed to. For example if I had a folder structure and each folder had 3 files:</p> <blockquo...
2
1,289
Events are not fired from nested Accordion control
<p>Suppose we have Accordion control with several buttons placed in other Accordion control. Issue is in the fact that those button's events are not handled on server side. Example: </p> <p>I have following code:</p> <pre><code>&lt;form runat="server"&gt; &lt;ajax:ToolkitScriptManager ID="ToolkitScriptManager1" runat...
2
1,070
Javascript Array splice removes data but does not reset index
<p>I have an array of objects. It had 3 objects</p> <p><img src="https://i.stack.imgur.com/ix50S.png" alt="Print out in console. Array of three objects starting at index 0"></p> <p>I then deleted them one by one using arr.splice(0,1) which I repeated 3 times. I then added a new object to the (what is supposed to be ...
2
1,044
onkeyup event on dynamic array
<p>Good Evening,</p> <p>I am having trouble setting up the <code>onkeyup</code> event. I am trying to get it to fire an objects method when a user enters text into the text field. It does not seem to find the object. I have cut down on the code and have made the following sample:</p> <pre><code>&lt;!DOCTYPE html&gt; ...
2
1,760
Can't kill workers after running R script
<p>I am using: R Version 3.0.1 (2013-05-16) and snowfall 1.84-4 initialized (using snow 0.3-13) on an m2.2xl AWS EC2 with the original AMI coming from <a href="http://www.louisaslett.com/RStudio_AMI/" rel="nofollow">http://www.louisaslett.com/RStudio_AMI/</a> . </p> <p>My problem is that after creating a cluster using...
2
5,000
Strange jump when making an element "css-absolute" via jquery
<p>i try to "absolutize" previously relative DOM element, and everytime i try it, a strang "jump" occures, and i just don't know what i'm doing wrong or how to solve this.</p> <p>ok, the JS_fidle can be found here <a href="http://jsfiddle.net/rhqy3/3/" rel="nofollow">http://jsfiddle.net/rhqy3/3/</a></p> <p>this is th...
2
1,102
resigned ipa installs in iOS 8 but not installing in iOS 9+
<p>I am resigning the app with another developer account using the following script</p> <pre><code>codesign -f -s "Distribution Certificate Name" &lt;app-name&gt;.app </code></pre> <p>The app installs but not opens. This is the approach everybody is following</p> <p>But it is not working for me</p> <p>Please find t...
2
3,663
Undefined references during linking when compiling with clang, but not with gcc
<p>I'm working on quite a large c++ project, and I have the option to compile it either with clang (3.6) or gcc (5.1).</p> <p>Now the project itself produces an executable, which uses quite a bit of shared libraries (which are built as part of the project).</p> <p>Now when I compile with gcc, everything is fine and I...
2
1,757
Bootstrap Datepicker goes bottom
<p>I am not an expert in Bootstrap 3. It was my first time to use the widget "datepicker". I have two date pickers that need to be displayed inline to each other. When I try a normal input it works but if it is a date picker it goes a little far at the bottom. I tried the position relative however it did not resolve th...
2
1,123
Zoho CRM Python SDK v2 initialization problem for Django
<p>Im trying to integrate the Zoho CRM v2 SDK with my Django app. On the Django runserver, im able to get access tokens and using the refresh method and store them in the zcrm_oauthtokens.pkl file. The sdk then automatically refreshes the access token using the refresh token, so no problem here. However on my product...
2
3,296
Number of solutions for rat in a maze puzzle
<p>Rat in Maze Puzzle - A Maze is given as N*N binary matrix of blocks where source block is the upper left most block i.e., maze[0][0] and destination block is lower rightmost block i.e., maze[N-1][N-1]. A rat starts from source and has to reach destination. The rat can move any directions: forward,down,Left,Right.In ...
2
1,696
Trying to make a forum using Bootstrap. Code won't work. Any ideas?
<p>there!</p> <p>So, I stumbled over this website (<a href="http://bootstrap.snipplicious.com/snippet/8/forum" rel="nofollow">http://bootstrap.snipplicious.com/snippet/8/forum</a>), where I found a Bootstrap template for a forum. I copy/pasted the HTML and CSS code, but it doesn't look exactly like on the page. Can an...
2
3,284
"Permission denied" error when sending a query with Athena
<h2>Want to Achieve</h2> <p>I would like to execute a SELECT statement in AWS Athena, but I am getting the following error.<br /> Glue catalog is ready, meta information is ready, DDL can be displayed.<br /> I would appreciate it if you could tell me how to make the query work properly.</p> <pre><code>SELECT * FROM &qu...
2
1,632
flutter: check if user logged in
<p>i've implemented android application using flutter , and i have created a login/signup form , it works perfect when connected with API but the problem is after i logged in and go back to any other page again when i click on the login button it shows me again the login form , what i want is to add function that detec...
2
1,515
How to start native activity while the current activity is still initiating
<p>I need an advice on how to start native activity while the current activity is still initiating.. I read the <a href="http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle" rel="nofollow">reference</a> and I don't see what would be the right way to get what I need.</p> <p>So to explain....
2
1,067
Apache Camel SFTP download is not working
<p>I am trying to download file from SFTP server location but log looks good finally nothing is downloaded from the server to local.No errors also coming.Please give your inputs thanks in advance.</p> <p><strong>SFTP files available:</strong></p> <pre><code>[root@rsysftp test1]# ls /tmp/files/test1 test1.txt test2.t...
2
1,825
Website error - Proxy Authentication Required
<p>So I'm trying to set up an internal website that requires windows authentication - so that those credentials are used for the proxy server.</p> <p>The code is calling the Rally API passing in the proxy server settings:</p> <pre><code>var webProxy = new WebProxy(WebConfigurationManager.AppSettings["WebProxyUrl"], C...
2
2,825
Address space for shared libraries loaded multiple times in the same process
<p>First off, I've already found <a href="http://www.akkadia.org/drepper/dsohowto.pdf" rel="nofollow">a</a> <a href="http://www.dabeaz.com/papers/CiSE/c5090.pdf" rel="nofollow">few</a> references which might answer my question. While I plan on reading them soon (i.e. after work), I'm still asking here in case the answe...
2
1,282
Is there an idiomatic approach in Django for writing unobtrusive JavaScript and/or making AJAX form submissions?
<p>I'm a Ruby/Rails developer now working at a Python/Django shop. I've started to warm up to Python, however, I'm still struggling to find Django comparable to Rails in certain aspects I find important. A lot of my current and future work will focus on making AJAX requests to our API. As a Rails developer, I'd have us...
2
1,038
NoMethodError in Devise::RegistrationsController#create undefined method 'sanitize'
<p>I am quite new to rails and would appreciate any help. I am unable to have my users sign up using devise and am getting:</p> <p>NoMethodError in Devise::RegistrationsController#create undefined method `sanitize' for #</p> <p>based on my registrations_controller:</p> <pre><code> def create build_resource(sign...
2
3,036
How to keep a table hidden on load and then show it on button click
<p>Hi I am trying to achieve the hiding and showing the table. while loading the page table should be hide and when I click button it has to visible. for that I have created a table under div and created a button and created script function. Here is table with div //div for table ...
2
1,483
Error: android.os.NetworkOnMainThreadException while using asynctask
<p>I am having a problem with creating a socket and sending messages from an android app to a raspberry pi. I used this example from the following site: <a href="http://android-er.blogspot.nl/2016/05/android-client-example-2-communicate.html" rel="nofollow">http://android-er.blogspot.nl/2016/05/android-client-example-2...
2
4,262
XML request using post method
<p>I need to create payment module for opencart. The problem how to build xml output in php to post it to remote leasing server url: <code>https://ecredit.leasing.com/eshop_test/UBLOnline.aspx?eshopdata=?</code></p> <p>using post method. I trying to build this xml:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-...
2
2,681
Cannot contact docker container on Windows host
<p>tl;dr summary of the problem:</p> <ul> <li>Application launches successfully within container, binds to 127.0.0.1:8080 within the container, and successfully services web requests, but only within the container</li> <li>docker ps -a confirms that port 8080 is being exposed</li> <li>I cannot communicate with the app...
2
1,188
How would you refactor a "switch on Type" to be polymorphic if you don't control the types involved?
<p>I'm writing a <a href="http://microformats.org" rel="nofollow noreferrer">microformats</a> parser in C# and am looking for some refactoring advice. This is probably the first "real" project I've attempted in C# for some time (I program almost exclusively in VB6 at my day job), so I have the feeling this question may...
2
1,793
Opencv sample in Qt crashes immediately with the error 'The program has unexpectedly finished'
<p>I tried to create a simple Opencv application in Qt and upon running, the whole application is crashed. If I comment out the opencv related codes from the project, the project runs just fine. </p> <p>What I did:</p> <pre><code>Downloaded the Qt 5.5.0 VS2013 64bit version Downloaded the OpenCV 3.0 Downloade...
2
1,705
NullPointerException: LinearLayout is Null
<p>Please have a look at the following code</p> <pre><code>private class OpenFileEvent implements OnClickListener { @Override public void onClick(View arg0) { LinearLayout openFileDialogView = (LinearLayout)findViewById(R.id.open_file_dialog); // TODO Auto-generated metho...
2
1,924
reload page once hidden value has been set
<p>How do I make a page reload once a hidden input field has been set?</p> <p>This is my field:</p> <pre><code>&lt;input id="fieldID" type="hidden" value=""&gt; </code></pre> <p>Thanks for your help.</p> <p>Here is my intire script including the proposed answer.</p> <p>It currently doesn't work but I have a feelin...
2
2,058
Codeigniter Form Helper Duplicate from_hidden?
<p>Im totally stumped.. Im creating some form elements using the CI form helper and for some weird reason, its creating a duplicate version. </p> <p>Here is my PHP</p> <pre><code> &lt;div id=&quot;receiveInventoryItemDetails&quot;&gt; &lt;p&gt;&lt;?php echo form_open('#', array(&quot;class&quot; =&gt; &quot;...
2
1,144
Spring Aspect doesn't work if bean is instantiated manually first
<p>I have a simple aspect like below</p> <pre><code>@Aspect public class PersistentAspect { @AfterReturning("@annotation(org.aspect.PersistentOperation)") public void log(JoinPoint jp) { System.out.println("aspect call"); } } </code></pre> <p>and an <code>AppConfig</code> like below</p> <pre><c...
2
1,105
exception with hazelcast config file v3.6
<p>I am getting the following exception when I use the hazelcast config file (also copied below). I am using SBT to run the project. I took out the map names, properties etc but I have not been able to get rid of the exception. I am using hazelcast v3.6. </p> <p><strong>hazelcast.xml file</strong></p> <pre><cod...
2
3,095
Reset/Refresh Search Form Button in WordPress Theme
<p>First time posting. I appreciate any help in advance. I really appreciate it.</p> <p>I am currently work with a wordpress theme to search villas around the world and I would love to add a reset button that would clear the fields, drop downs and check boxes that are populated by a custom fields app. The normal reset...
2
4,665
Call Oracle Package from Jasper report Having Multiple Cursors
<p>I have a Package In Oracle Which Spools Customer Information. The Package is like:</p> <p><strong>EDIT</strong></p> <pre><code>create or replace PACKAGE mfi_statement_spool AS PROCEDURE mfi_main_spool (fromdate IN DATE, todate IN DATE,c1 out SYS_REFCURSOR,c2 out SYS_REFCURSOR); FUNCTION mfi_cust_deta...
2
5,318
Student scores array, average function not implementing
<p>I have an assignment for my first JavaScript class to create an application that takes the last name, first name, and score as input for a student. The app should keep a running average of the scores and provide a button to clear the scores, as well as a button to sort by last name. I have everything working except ...
2
1,814
The description com.google.android.gms.play-services.4.2.42 is invalid
<p>Android studio - googgle maps api v2 using these links:</p> <p><a href="https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2" rel="nofollow noreferrer">https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2</a></p> <p><...
2
1,470
Error installing APK INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Android
<p>i'm having this error which can't let me install the apk on any device : </p> <blockquote> <p>Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED</p> </blockquote> <p>Here is my manifest : </p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;manifest xmlns:android="http://schemas.android.com...
2
2,457
Android: Draw a custom view programmatically
<p>I am developing an application in which i am showing a image followed by text followed by image again horizontally in table layout.</p> <p>I am creating the table layout programmatically as:</p> <pre><code>for(i = 0; i &lt; arrayList.size(); i++){ /* Find Tablelayout defined in main.xml */ TableLayout tabl...
2
1,049
RuntimeBinderException - C# .NET 4 Dynamic Keyword - Help Me Understand Why Method Isn't Matching
<p>I've built a generic config system for an HttpModule that allows pluggable HTTP header inspectors. For reference, here is the basic layout of the code -- this should be enough to get a feel for what I'm doing:</p> <pre><code>public interface IHttpHeaderInspectingAuthenticatorFactory&lt;T&gt; where T: HttpHeade...
2
2,389
Using SshNet to Retrieve Folder List from Remote Server (SSH Interactive Client)
<p>I am trying to create an interactive SSH client session in C#. I am using the Renci.SshNet library to accomplish this. To get a proof of concept, I am only interested in connecting to the server, running the "ls" command, and retrieving the list of folders in the current directory.</p> <p>I have been able to do thi...
2
1,145
SQL Server Stored Procedure via SOCI/ODBC in C++
<p>I am using the <a href="http://soci.sourceforge.net/index.html" rel="nofollow">SOCI library</a> to programmatically interact with a SQL Server DB via ODBC. I am having trouble getting values via output parameters in stored procedures. Some code (modeled after <a href="http://soci.sourceforge.net/doc/3.2/statements.h...
2
1,304
unable to fetch data from hive through java code in eclipse
<p>i am using Ubuntu 14.04, hadoop-1.2.1(<a href="http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/" rel="nofollow noreferrer">Single node</a>), hive-1.1.0(<a href="http://www.rohitmenon.com/index.php/how-to-install-apache-hive/" rel="nofollow noreferrer">Stable 1.1.0</a>), eclip...
2
1,517
How to update Azure API Management named values in a batch?
<p>We have existing production services which are based on this <a href="https://github.com/Azure/api-management-policy-snippets/blob/master/examples/Get%20OAuth2%20access%20token%20from%20AAD%20and%20forward%20it%20to%20the%20backend.policy.xml" rel="nofollow noreferrer">policy sample</a> which acquires a bearer token...
2
1,487
Zooming Image in WPF
<p>I try make a zoom on image, I create style, here is :</p> <pre class="lang-xml prettyprint-override"><code>&lt;Style x:Key="ZoomImage" TargetType="{x:Type Image}"&gt; &lt;Style.Triggers&gt; &lt;Trigger Property="IsMouseOver" Value="True"&gt; &lt;Setter Property="LayoutTransform"&gt; ...
2
1,339
2D Vector rotation in Java
<p>I try to make a simple Race-Game. For that I got a car with a vector for the position and one for the direction it is facing.</p> <p>I have an update and an input method:</p> <pre><code>public void update(double delta) { float rotation = 0; if(movement.normalized().getY() &lt; 0) { rotation = (floa...
2
1,754
Apple Pay - authorize.net returns error 153 only when live, sandbox works
<p>After searching a lot of articles i couldn't find a solution for my problem.</p> <p>I have integrated ApplePay button on my site and <strong><em>successfuly made transactions in sandbox mode</em></strong>. I'm using authorize.net php SDK to generate the request. The problems started when i switched to live. The mes...
2
4,160
How do I make a relative layout an item of my ListView? And detect gestures over my ListView?
<p>I am trying to make a ListView that has relative layout items, one after another. Each relative layout consists of a Button view, followed by three TextViews aligned to the right of the Button, and below each other. My RelativeLayout XML code is as follows, and it is fine, but how do I make it so that I can populate...
2
1,695
flutter: Null check operator used on a null value
<h2>I have Business Model. I used that model for posting data in post api. but when i store data in this <code> Business? business = Business(); business.bank!.bankName = _selectedIdProof.toString(); </code> then i got errror.</h2> <p>I have Business Model. I used that model for posting data in post api. but when i st...
2
13,209
Passing data through Java FX Controller to other View
<p>I guess it's a simple question but it was a long day at work and I cant figure the right way out right now. </p> <p>I have 3 FXML files.</p> <ul> <li><code>Menge.fxml</code></li> <li><code>Start.fxml</code></li> <li><code>Suche.fxml</code></li> </ul> <p>I'm starting from Main.java as usual</p> <pre><code>@Overri...
2
1,042
gcc linking shared library works, but dlopen of the same shared lib fails
<p>I have a project that looks like this:</p> <pre><code>executable \---&gt; bsp.so |---&gt; bsp_protobuf.a \---&gt; protobuf.a </code></pre> <p>Where there are two static libraries that get build first (the two protobuf ones) that are statically linked into the bsp.so shared lib. And then f...
2
1,041
Problems getting data on event change vue and laravel
<p>I'm having a hard time getting data from an event triggered by a change in a select, let me show you the code:</p> <p>This is the select:</p> <pre><code>&lt;b-col md="4" sm="12"&gt; &lt;b-form-group label="Tipo: " label-for="tipo"&gt; &lt;input type="hidden" v-model="maintenance...
2
1,024
SQL Find if a product has been ordered by a customer within the last 12 months
<p>I have been racking my brains out over the thanksgiving holiday an have had no luck in doing the following.</p> <p>I run the following SQL script to get the last twelve months of data from our sales database. While this has returned every sale as I had wanted for another report it has been asked of me to now search...
2
1,454
Generate a quasi periodic signal
<p>Is there a way to generate a quasi periodic signal (a signal with a specific frequency distribution, like a normal distribution)? In addition, the signal should not have a stationary frequency distribution since the inverse Fourier transform of a Gaussian function is still a Gaussian function, while what I want is a...
2
1,253
Why does this code write a "corrupt file" that Word cannot open (not even "Open and Repair")?
<p>I'm a newb, feel free talk down to me. Sorry to be so vague; the code executes and writes a corrupt file. I can't get into the corrupt file to observe any errors/anomolies. The size does look like a sum of the files being merged.</p> <p>I've googled the snot outta this and can't find anything I can understand how ...
2
2,779
Generate combinations of values from rolling window in Pandas
<p>For every row in my dataframe, I need to create every combination of two values of column <code>a</code> <em>from a three-day sliding window ending at that row</em>. My dataframe is like this:</p> <pre><code>import pandas as pd df = pd.DataFrame({'a': [1, 2, 3, 4, 5]}, index=[pd.Timestamp('20...
2
1,319
Gujarati text in Java String
<p>I have Gujarati Bible and trying to insert each verse in MySQL database using parser written in Java. When I assign Gujarati text to Java String variable it shows junks in debug. </p> <p>E.g. This is my Gujarati text </p> <blockquote> <p>હે યહોવા તું મારો દેવ છે;</p> </blockquote> <p>I assign it to Java String ...
2
1,875
AVAssetWriterInputPixelBufferAdaptor appendPixelBuffer: EXC_BAD_ACCESS
<p>I have a problem that is driving me crazy the last few days. It's about AVAssetWriterInputPixelBufferAdaptor appendPixelBuffer method. No matter what I do, it always cause EXC_BAD_ACCESS on this line. I know there're a couple of posts talking about it, but none can help me.</p> <p>This is my situation: I'm renderin...
2
2,023
Best practice redux actions with flowtype?
<p>I want to write redux with flowtype, but I have questions about how to do that.</p> <h2>Redux with Flowtype</h2> <pre class="lang-js prettyprint-override"><code>type ActionType = | 'A' | 'B' ; // A generic type conforming to Flux Standard Action type ActionT&lt;A, P&gt; = {| type: A, payload?: P | Error...
2
1,186
how do I format an entire column (or cells I can iterate thru)as text format using openpyxl
<p>I need help with how to change excel columns to text before the python script copies them from one file to another file</p> <p>currently using openpyxl.... but open to any library that does the job and doesnt lose any of the other formatting or coloring in the worksheets</p> <p>the problem is, when something has a...
2
1,264
How to inspect windows application using Appium
<p>Is it possible to inspect a Windows application using Appium? If yes can someone show me what "Desired Capability" shall be set to launch for example notepad?</p> <p>What I have done is:</p> <ul> <li>Installed/Started Appium</li> <li>Launched server on 0.0.0.0:4723</li> <li>Clicked on start inspector</li> <li><p>P...
2
1,234
Titan Cassandra Multithreaded Transactions Locking
<p>I have created a class which wraps within it a <code>Graph</code>. For example:</p> <pre><code>public class GraphManager(){ Graph graph; public GraphManager(Graph graph){ this.graph = graph; } public void commitGraph(){ graph.commit(); } } </code></pre> <p>This <code>GraphManage...
2
1,397
Angular ng-repeat in table to iterate over key with array
<p>I am using Angular with Smart-Table to iterate through a nested array of objects to fill a table. I am able to get some of the values out easily, but others have proved difficult. In the sample data below, you'll see that the keys <code>voucherNumber</code>, <code>vendor</code>, <code>description</code>, and <code>a...
2
2,007
jQuery 403 Forbidden when loading image
<p>I'm trying to load an image into my modal plugin, but for some reason it's giving me a 403 Forbidden error. The actual error I get is this:</p> <pre><code>"NetworkError: 403 Forbidden - http://localhost/Groundwork/%3Cimg%3E" </code></pre> <p>The image is in the root folder so I know it's there, I'm just not sure w...
2
1,700
custom Android Virtual Device: System UI Stopped, Launcher Stopped
<p>I created an AVD with the properties below to emulate a customer's device. Each time I start it up, it gives the <strong>"Unfortunately, System UI stopped"</strong> dialog and, when dismissed, the <strong>"Unfortunately, Launcher stopped."</strong> dialog. Tweaking the parameters (at least, those which don't alter t...
2
5,775
Rendering a partial View with Ajax Unobtrusive
<p>I have the following View and Partial View. In the index action method I need the Create to rendered as a Partial View. Based on the answer in <a href="https://stackoverflow.com/questions/11961374/partial-view-render-on-button-click">this</a> question I tried using Ajax helper methods(I find AJAX and JS so hard for ...
2
3,028
Go equivalent of type inheritace (gob encode/decode via interfaces)
<p>I'm trying to write one function that encodes/decodes various types of Messages.</p> <p>In OO languages, I would use type inheritance, but Go doesn't have this concept, ref: <a href="http://golang.org/doc/faq#inheritance" rel="nofollow">http://golang.org/doc/faq#inheritance</a>, so instead, here I'm trying to use t...
2
1,380
div contents scrolls back up when using overflow: auto in IE 10
<p>I am trying to add multiple input elements and other data inside a div and using overflow:auto for that div (using jquery to show/hide that div)</p> <p>It works fine in Firefox browser but in IE (10) the scroll bar does come when the elements are more than the height of that div, but when the user uses the scroll b...
2
2,085
getting column contents using cursor
<p>I have a Cursor returned From a SQLiteDataBase object , I am using cursor getXXX()method to get the content of columns from the cursor but I am getting error. My code is where I fetch the cursor from database and get the object...</p> <pre><code>public List&lt;Message&gt; getAllMessages(char ch) { Cursor curs...
2
2,492
navigator.onLine is not working in Firefox, Safari, Opera? Works in IE, Chrome?
<p>In my chat application I need give a intimation to the user, when the Internet connection is inactive?</p> <p>So I used the JavaScript <strong>navigator.onLine</strong>, but it works in IE and Chrome. Not in other browsers.</p> <p>My JavaScript will be:</p> <pre><code>function pingAction(){ if (navigator.onLine)...
2
1,096